Export Simulink Model as Standalone FMU – [FATAL][FMICAPI] Could not load the DLL: module not found. [FATAL][FMUCHK] Could not create the DLL loading mechanism(C-API) for CoSi
Hello everyone!
I exported a simulink model as a standalone FMU (FMI version 2.0). The model uses a variable step solver.
Re – Importing this FMU into simulink works quite fine, but I want to use it in python. My tool of choice is the "fmpy" library. When I want to simulate the model in python using simulate_fmu(‘NEWmodel2Export.fmu’), I get the following error message:
Exception: Failed to load shared library C:UsersjakobAppDataLocalTemptmpt98a7m_2binarieswin64NEWmodel2Export.dll. Could not find module ‘C:UsersjakobAppDataLocalTemptmpt98a7m_2binarieswin64NEWmodel2Export.dll’ (or one of its dependencies). Try using the full path with constructor syntax.
I also checked the FMU by using the FMUChecker 2.0.4. It returns the following (fatal) error messages, which could be dependent in my opinion:
[INFO][FMUCHK] No input data provided. In case of simulation initial values from FMU will be used.
[INFO][FMUCHK] Printing output file header
"time","h_Laufrad","mL"
[INFO][FMUCHK] Model identifier for CoSimulation: NEWmodel2Export
[INFO][FMILIB] Loading ‘win64’ binary with ‘default’ platform types
[FATAL][FMICAPI] Could not load the DLL: Das angegebene Modul wurde nicht gefunden.
[FATAL][FMUCHK] Could not create the DLL loading mechanism(C-API) for CoSimulation.
FMU check summary:
FMU reported:
0 warning(s) and error(s)
Checker reported:
0 Warning(s)
2 Error(s)
2 Fatal error(s) occurred during processing
I think that this might have something to do with the usage of the variable step solver.
Thank you very much in advance!Hello everyone!
I exported a simulink model as a standalone FMU (FMI version 2.0). The model uses a variable step solver.
Re – Importing this FMU into simulink works quite fine, but I want to use it in python. My tool of choice is the "fmpy" library. When I want to simulate the model in python using simulate_fmu(‘NEWmodel2Export.fmu’), I get the following error message:
Exception: Failed to load shared library C:UsersjakobAppDataLocalTemptmpt98a7m_2binarieswin64NEWmodel2Export.dll. Could not find module ‘C:UsersjakobAppDataLocalTemptmpt98a7m_2binarieswin64NEWmodel2Export.dll’ (or one of its dependencies). Try using the full path with constructor syntax.
I also checked the FMU by using the FMUChecker 2.0.4. It returns the following (fatal) error messages, which could be dependent in my opinion:
[INFO][FMUCHK] No input data provided. In case of simulation initial values from FMU will be used.
[INFO][FMUCHK] Printing output file header
"time","h_Laufrad","mL"
[INFO][FMUCHK] Model identifier for CoSimulation: NEWmodel2Export
[INFO][FMILIB] Loading ‘win64’ binary with ‘default’ platform types
[FATAL][FMICAPI] Could not load the DLL: Das angegebene Modul wurde nicht gefunden.
[FATAL][FMUCHK] Could not create the DLL loading mechanism(C-API) for CoSimulation.
FMU check summary:
FMU reported:
0 warning(s) and error(s)
Checker reported:
0 Warning(s)
2 Error(s)
2 Fatal error(s) occurred during processing
I think that this might have something to do with the usage of the variable step solver.
Thank you very much in advance! Hello everyone!
I exported a simulink model as a standalone FMU (FMI version 2.0). The model uses a variable step solver.
Re – Importing this FMU into simulink works quite fine, but I want to use it in python. My tool of choice is the "fmpy" library. When I want to simulate the model in python using simulate_fmu(‘NEWmodel2Export.fmu’), I get the following error message:
Exception: Failed to load shared library C:UsersjakobAppDataLocalTemptmpt98a7m_2binarieswin64NEWmodel2Export.dll. Could not find module ‘C:UsersjakobAppDataLocalTemptmpt98a7m_2binarieswin64NEWmodel2Export.dll’ (or one of its dependencies). Try using the full path with constructor syntax.
I also checked the FMU by using the FMUChecker 2.0.4. It returns the following (fatal) error messages, which could be dependent in my opinion:
[INFO][FMUCHK] No input data provided. In case of simulation initial values from FMU will be used.
[INFO][FMUCHK] Printing output file header
"time","h_Laufrad","mL"
[INFO][FMUCHK] Model identifier for CoSimulation: NEWmodel2Export
[INFO][FMILIB] Loading ‘win64’ binary with ‘default’ platform types
[FATAL][FMICAPI] Could not load the DLL: Das angegebene Modul wurde nicht gefunden.
[FATAL][FMUCHK] Could not create the DLL loading mechanism(C-API) for CoSimulation.
FMU check summary:
FMU reported:
0 warning(s) and error(s)
Checker reported:
0 Warning(s)
2 Error(s)
2 Fatal error(s) occurred during processing
I think that this might have something to do with the usage of the variable step solver.
Thank you very much in advance! standalone fmu, dll missing, variable step solver, could not create the dll loading mechanism(c-api), [fatal][fmicapi] could not load the dll: MATLAB Answers — New Questions