INTO-CPS-Association / unifmu

A universal mechanism for implementing Functional Mock-up Units (FMUs) in various languages
32 stars 4 forks source link

not able to run the FMU in the simulink #61

Open ankur-cfc opened 2 months ago

ankur-cfc commented 2 months ago

I have generated a python based FMU using unifmu. This is the simple adder fmu. The FMU is uploaded on the google drive. Here is the link to it. https://drive.google.com/file/d/1Wpvh58X4mx6DPhbvhd39DHQMUInZCHKu/view?usp=drive_link

I am trying to run the simulation after loading this fmu on the simulink. But the simulink crashes after few seconds of running the simulation. It fails to generate any log files. At the bottom it says 'initializing' and then after few seconds it crashes.

I would really appreciate if I can get some help with this.

Screenshot from 2024-04-30 13-40-00 Screenshot from 2024-04-30 13-39-49 Screenshot from 2024-04-30 13-39-44 Screenshot from 2024-04-30 13-39-38 Screenshot from 2024-04-30 13-39-04

clagms commented 1 month ago

Dear, sorry for the delay. There can be multiple causes to this. Usually it's the command to run the python part that's failing and you might be missing some python package.

See this documentation: https://github.com/INTO-CPS-Association/unifmu/blob/f921f645d420c236464330abef79de5ce76bdf6b/assets/python/fmi3/README.md#implementing-the-model

We are planning work on improving the logging so these errors can be more easily caught.

ankur-cfc commented 1 month ago

@clagms Thanks for the reply. I really appreciate it. Yes. Indeed it was due to a missing python package. I was able to resolve it.