OpenModelica FMU creation and usage #691
Replies: 3 comments 6 replies
-
hey @jmythms. Going point by point:
The BOPTEST team is working on implementing OpenModelica as a native compiler option for test cases. You can check branch issue422
BOPTEST uses pyfmi to run FMUs, ideally OpenModelica FMUs should run out of the box, but that is not necessarily the case. I would test the FMU stand alone running in OpenModelica and then check the resource file structure.
OpenModelica has a scripting API that can be used to create models, compile, create FMUs, simulate, plot, etc... |
Beta Was this translation helpful? Give feedback.
-
@EttoreZ Thanks for replying. When you say "I would test the FMU stand alone running in OpenModelica and then check the resource file structure" do you mean "I would test the FMU stand lone running in pyfmi?" (instead of running in OpenModelica?) |
Beta Was this translation helpful? Give feedback.
-
Seemed like one of the major issues was also that spawn path was not set ok. @kbenne helped me fix that and progress further. I'm currently hitting this error message, and we think it may be an OpenModelica solver issue:
I'm attaching the case I am trying to simulate, it is the building.mo in the Heatpump_singleSpeed directory. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm trying to change my OPTIMICA-based FMU creation workflow to use OpenModelica instead. The FMUs will be uploaded to BOPTEST later as testcases. I was wondering if there are any resources available that explain creating BOPTEST-compatible FMU using OpenModelica. I have the .mo files and the resource files available (which were used to compile as an FMU successfully using OPTIMICA and successfully ran on BOPTEST).
I tried to compile the FMU using OMedit, and the compiled FMU failed to run on BOPTEST out of the box. I think the reason was that the resource files were not in the appropriate places.
I also need to switch to a script-based workflow, and leave OMEdit, so any suggestions on using a different tool are welcome.
Beta Was this translation helpful? Give feedback.
All reactions