Getting Started with OMSimulatorPython #1304
-
Hi! I am new to OMSimulator and ran into an error I have not been able to fix. I hope you can help me get started. I exported two basic models to fmu (from OMEdit) which I would like to co-simulate using Python. The code I used is based on the OpenModelicaUsersGuide, where I added the path to the exported fmu's. I got the following error:
Thanks in advance. code:
|
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 12 replies
-
@Markus2xj this is a known issue and which version of OpenModelica you are using, I suggest you to download the latest nightly builds and then export your fmu, the problem should be resolved by itself |
Beta Was this translation helpful? Give feedback.
-
@Markus2xj I tested your example and it works for me, see the attached file with the fmu's and python script, What i see is you are trying to do co simulation, if you have exported your fmu with only co-simulation model then you should change the type of system to WC in your python script
I have exported the fmu as both model_exchange and co Simulation mode , so that should work. And also make sure you download the I hope this should resolve the issue |
Beta Was this translation helpful? Give feedback.
-
@Markus2xj From OMEdit select |
Beta Was this translation helpful? Give feedback.
-
@Markus2xj my omc version is |
Beta Was this translation helpful? Give feedback.
-
@Markus2xj can you please upload your fmu's and i can see if i find something |
Beta Was this translation helpful? Give feedback.
-
@Markus2xj I looked into your fmu's and i see one problem |
Beta Was this translation helpful? Give feedback.
I bet this is related to OpenModelica/OpenModelica#12065. Maybe try
gcc
instead ofclang
.