Error in run FMU block in SIMULINK from AMESIM

조회 수: 18 (최근 30일)
Alejandro Pumarega
Alejandro Pumarega 2023년 7월 21일
댓글: Faryansyah Putra 2023년 8월 31일
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

답변 (1개)

Sugandhi
Sugandhi 2023년 8월 23일
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
Faryansyah Putra
Faryansyah Putra 2023년 8월 31일
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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Create Standalone FMU에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by