OpenModelica / OMSimulator

The OpenModelica FMI & SSP-based co-simulation environment.
Other
67 stars 49 forks source link

fmi2SerializeFMUState #1278

Closed robha67 closed 6 months ago

robha67 commented 6 months ago

I get the following error when executing a SSP containing multiple FMUs (11, 9-Dymola, and 2-Simulink using FMIKit):

Failed to load fucntion "fmi2SerializeFMUState" Failed to load function "fmi2DeserializeFMUState"

I get the error in OMsimulator v2.1.1.post247-g614c663-linux-notlm-debug

The same SSP works just fine in OMSimulator (downloaded as latest version from master ~2023-03-01). Unfortunatly I cannot get the exact version number and I cannot share the SSP.

However, the Dymola models (according to the ModelDescription files) support canGetAndSetFMUstate and canSerializeFMUstate. The Simulink models do not support this optional feature.

Does anyone have any hints on what is wrong?

@arun3688

robha67 commented 6 months ago

This issue seems to be originating in the FMU and the exporting tool