Replies: 4 comments 6 replies
-
|
Code is as follows . Problem comes with mod_ee.simulate() . It is very strange because same code was working before yesterday and modelica models are working in OMEdit perfectly. -- coding: utf-8 --""" @author: jgarcia from math import pi, sqrt if name == 'main': |
Beta Was this translation helpful? Give feedback.
-
|
Which OMPython version are you using? Run The code you provided doesn't call |
Beta Was this translation helpful? Give feedback.
-
|
Hello Adeel I can send the modelica files and the python script if you wish. I am wondering whether it can be my system . |
Beta Was this translation helpful? Give feedback.
-
|
This line was correct : mod_ee.simulate(simflags='-noRootFinding') That was the problem. Thanks for the mental support :) |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
Hello
I have a strange problem. Perhaps I changed something in the original code, but now my modelica model is not able to simulate using the Python interface. The error is as follows :
Traceback (most recent call last):
Cell In[6], line 1
mod_ee.simulate()
File ~\AppData\Roaming\Python\Python312\site-packages\OMPython\ModelicaSystem.py:1121 in simulate
returncode = om_cmd.run()
File ~\AppData\Roaming\Python\Python312\site-packages\OMPython\ModelicaSystem.py:306 in run
raise ModelicaSystemError(f"Error running command {repr(cmdl)}") from ex
ModelicaSystemError: Error running command ['C:/Users/jgarcia/AppData/Local/Temp/tmp1up5r2n9/D_class_amplifier.exe', '-r=C:/Users/jgarcia/AppData/Local/Temp/tmp1up5r2n9/D_class_amplifier_res.mat']
Before yesterday it was working. So I am a bit puzzled. Can someone tell me what was happening?
Br
Beta Was this translation helpful? Give feedback.
All reactions