- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Error in running co-simulation fmu in...
Error in running co-simulation fmu in OpenModelica
Error in running co-simulation fmu in OpenModelica
RC-cs.fmu
While trying to simulate RC_cs.fmu using OMShell, getting the following error:
messages = "Simulation execution failed for model: RC_cs_cs_st_FMU
[INFO][RC_cs] [debug][FMU status:OK] fmiInstantiateSlave called
[ERROR][RC_cs] [error][FMU status:Error] fmiDoStep called with currentCommunicationPoint = 0.00000000000000e+000 whereas current time is 2.00000000000000e-003
assert | debug | fmiDoStep failed with status : Error
assert | info | simulation terminated by an assertion at initialization
",
Can anybody please help me with this? I am new to FMUs.
Re: Error in running co-simulation fmu in OpenModelica
I would suggest to use OMSimulator to simulate a FMU. To do this from OMEdit check the user's guide for documentation: https://openmodelica.org/doc/OpenModeli … -modelling
Scripting is available as well, e.g. from Python, Julia or OMShell, see https://openmodelica.org/doc/OpenModeli … scripting.
The FMI import importFMU() from OpenModelica is kinda wonky.
Also there are different ways to export an FMU. Can you tell us how you generated the FMU? The modelDescription.xml in your FMU is very short and missing stuff I would expect to find there. Maybe because it is an 1.0 FMU(?), so then I would strongly comment to use FMI 2.0 for export.
- AnHeuermann
- 52 Posts
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Error in running co-simulation fmu in...