Error in run FMU block in SIMULINK from AMESIM

21 views (last 30 days)
I'm trying to run a FMU AMESIM model in Simulink, but I get the following error:
When I look inside the FMU log file, I get the following error
Log from FMU: [category:model, status:fmi2Warning] Cannot find AMELic170 dynamic library ...
Log from FMU: [category:model, status:fmi2Warning] Simcenter Amesim model: initialization failed.
Log from FMU: [category:error, status:fmi2Fatal] master_Z612L0507E01_14_FMU_fmi2ExitInitializationMode failed
I don't now what that library is. Is it needed to install something in Simulink?
PD: The FMU file is Model Exchange, so in theory, don't need a external solver no?
Thanks

Answers (1)

Sugandhi
Sugandhi on 23 Aug 2023
Hi,
I understand that you are getting error on running FMU AMESIM in Simulink.
The error message you encountered indicates that there is an issue with the AMELic170 dynamic library, which is required by your AMESim FMU model. This library is necessary for the initialization of the FMU model, and its absence is causing the initialization to fail.
You need to ensure that the AMELic170 dynamic library is properly installed and accessible to Simulink. Few of the possible steps to solve the issue:
1. Check the AMESim installation: Verify that you have a valid and complete installation of AMESim. The AMELic170 dynamic library should be included in the installation package. If you don't have AMESim installed or the library is missing, you may need to reinstall or repair your AMESim installation.
2. Verify FMU compatibility: Make sure that the FMU file you are using is compatible with the version of AMESim you have installed. Incompatibility between the FMU and AMESim versions could lead to missing or incompatible libraries.
3. Check FMU generation settings: If you generated the FMU file yourself, ensure that you have selected the appropriate options to include all necessary dependencies and libraries. Check the FMU generation settings in AMESim to make sure the AMELic170 library is included in the FMU package.
4. Set library paths: If the AMELic170 library is installed in a non-standard location, you may need to set the library paths in your operating system or within Simulink. This will ensure that Simulink can locate and access the required library.
  1 Comment
Faryansyah Putra
Faryansyah Putra on 31 Aug 2023
Hello, I have the same issue on my model with FMU cosimulation to Amesim 2304, while I'm pretty sure I have Amesim properly installed with the dynamic library included. How do I set the library paths within Simulink?
Log from FMU:
Log from FMU: [category:model, status:fmi2Warning] ERROR: Cannot load AMELic2304.dll!
Log from FMU: [category:model, status:fmi2Warning] Cannot find AMELic2304 dynamic library ...
Log from FMU: [category:model, status:fmi2Warning] Simcenter Amesim model: initialization failed.
Log from FMU: [category:error, status:fmi2Fatal] Version_8_fmi2ExitInitializationMode failed

Sign in to comment.

Categories

Find more on Create Standalone FMU in Help Center and File Exchange

Products


Release

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!