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
  • Index
  • » Users
  • » ChristianMa
  • » Profile

Posts

Posts

May-24-18 10:35:05
FMU-Import works in Matlab R2017b and R2018a with FMU-Block, but doesn't work with FMI-Kit...


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?




  • Index
  • » Users
  • » ChristianMa
  • » Profile
You are here: