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

FMU-Import in older versions of Simulink

FMU-Import in older versions of Simulink


The FMU generated in openmodelica1.12.0.64bit works in the Standard Block FMU-Import in Simulink in Matlab R2018a, but in the Version Matlab R2016b with the FMU-Kit from Dymola I get the error message:
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Could not load shared library. Das angegebene Modul wurde nicht gefunden.
(System Error 126)
Error in 'Regelkreis_fmi_Dymola_open_modelica/FMU' while executing C MEX S-function 'sfun_fmurun', (mdlStart), at time 0.0.
Caused by:
Unexpected Standard exception from MEX file.
What() is:Could not load shared library. Das angegebene Modul wurde nicht gefunden.
(System Error 126)

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

With debug logging:
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
mdlInitializeSizes() called on Regelkreis_fmi_Dymola_open_modelica/FMU


mdlCheckParameters() called on Regelkreis_fmi_Dymola_open_modelica/FMU


ssSetInputPortDirectFeedThrough(S, 0, 1) called on Regelkreis_fmi_Dymola_open_modelica/FMU


mdlInitializeSampleTimes() called on Regelkreis_fmi_Dymola_open_modelica/FMU


mdlStart() called on Regelkreis_fmi_Dymola_open_modelica/FMU

Regelkreis_fmi_Dymola_open_modelica/FMU: Loading shared library: "C:\Users\marticia\Documents\MATLAB\Regelkreis_open_modelica\binaries\win64\Regelkreis_open_modelica.dll"
Could not load shared library. Das angegebene Modul wurde nicht gefunden.
(System Error 126)
Error in 'Regelkreis_fmi_Dymola_open_modelica/FMU' while executing C MEX S-function 'sfun_fmurun', (mdlStart), at time 0.0.
Caused by:
Unexpected Standard exception from MEX file.
What() is:Could not load shared library. Das angegebene Modul wurde nicht gefunden.
(System Error 126)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

The openmodelica version is 1.12.0 64 bit

All Matlab versions are also 64 bit..

How can I solve it?




Re: FMU-Import in older versions of Simulink

Same problem for me! Does anybody know how to fix this?

There are 0 guests and 0 other users also viewing this topic
You are here: