Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register
  • Index
  • » Users
  • » zxlangle
  • » Profile

Posts

Posts

Dymola plug-in loading
FMUSimulator plug-in loading
OpenModelica plug-in loading
OMC Server is up and running at file:///c:\users\zxl\appdata\local\temp\openmode
lica.objid.309eb4e8b1d4410db757a27a9f329e9b

DymolaMat plug-in loading
Mtsf plug-in loading
EigenvalueAnalysis plug-in loading
LinearSystemAnalysis plug-in loading
MinMax plug-in loading
SignalProcessing plug-in loading
No Model Callbacks for plugin:  SignalProcessing
The selected model could not be instantiated, check for any dependencies that th
e model might have
Traceback (most recent call last):
  File "C:\OpenModelica1.9.0\share\omc\scripts\PythonInterface\PySimulator\Integ
ratorControl.py", line 457, in _simulate
    self.showSimulationInfo()
  File "C:\OpenModelica1.9.0\share\omc\scripts\PythonInterface\PySimulator\Integ
ratorControl.py", line 476, in showSimulationInfo
    model.integrationStatistics.reachedTime = model.getReachedSimulationTime()
  File "C:\OpenModelica1.9.0\share\omc\scripts\PythonInterface\PySimulator\Plugi
ns\Simulator\OpenModelica\OpenModelica.py", line 144, in getReachedSimulationTim
e
    if self.file_thread is None:
AttributeError: Model instance has no attribute 'file_thread 


Could anybody help me please ?

thanks,

Xiaolong

When I import OMPython, i find some errors, the error message is as follows

Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
    import OMPython
  File "C:\Python27\lib\site-packages\OMPython\__init__.py", line 87, in <module>
    from omniORB import CORBA
  File "C:\OpenModelica1.9.0\lib\python\omniORB\__init__.py", line 254, in <module>
    import _omnipy
ImportError: DLL load failed: %1 is not a valid Win32 application。

I need your help to solve this problem. Thank you!

When I try to install OMPython using the command line:

python setup.py install

it returns "can't open file setup.py..." then i can't find this file in the directory: ...\share\omc\scripts\PythonInterface\OMPython

  • Index
  • » Users
  • » zxlangle
  • » Profile
You are here: