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

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.

Attachments:

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.

Edited by: AnHeuermann - Jul-08-21 11:32:00
There are 0 guests and 0 other users also viewing this topic
You are here: