fmi2ExitIn​itializati​onMode error

Hello Team,
I am importing one FMU from GT suite (2024 build 1 version) to matlab (2021b) , and giving 3 inputs to calculate one output, but when I try to run them model, I am getting an error stating " An error occurred while running the simulation and the simulation was terminated
Caused by:
  • Error in supplied FMU: An error occurred in function 'fmi2ExitInitializationMode' for block 'GT_FMU/FMU' during simulation. To debug your FMU file, select the "Enable FMU Debug Logging" check box. For more information, see the FMU troubleshooting documentation. "
Please help me with this.

5 件のコメント

Advait
Advait 2024 年 6 月 27 日
Hi Harish, may I request you to create a support request Contact Support - MATLAB & Simulink (mathworks.com) so that someone from our technical support can take a look?
Divyanshu
Divyanshu 2024 年 7 月 4 日
Hi Harish, Can you share the logs generated after selecting 'Enable FMU Debug Logging' check box? These logs are required for further investigation of the issue.
Harish
Harish 2024 年 7 月 5 日
Hi Divyanshu,
I have attached the snip of the logging in the FMU, please have a look into it.
Divyanshu
Divyanshu 2024 年 7 月 8 日
Hi, This is snapshot of Block Parameters. Can you please attach the snapshot of the log file generated? Now as the option 'Enable FMU debug logging' is checked a log file should be generated somewhere in the FMU Working directory. I think click on 'Open FMU Log File' should open it or you can find it manually in the working directory and share the snapshot of logs.
Harish
Harish 2024 年 7 月 8 日
Please find the attachment of the log file.

サインインしてコメントする。

 採用された回答

Harish
Harish 2024 年 7 月 11 日

0 投票

The above error occurs because the GT suite path is not added to the environment variables.
When I tried to add it to the environmental variable path, the fmu model imported from GT suite inside simulink works

その他の回答 (0 件)

質問済み:

2024 年 6 月 25 日

回答済み:

2024 年 7 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by