Oaz / Femyou

loading and running fmi-standard FMUs in dotnet core
MIT License
16 stars 6 forks source link

Exception when loading FMU file BouncingBall.fmu #9

Open noar12 opened 1 week ago

noar12 commented 1 week ago

Hello,

Thanks a lot for this project.

I tried to load a custom FMU file from one of our simulations and received an exception stating that it cannot load the model description when calling the Model.Load(string fmuPath) method.

I then tried to load your BouncingBall.fmu simulation. I cloned the project to more easily follow the exception. I found that during the loading of the modelDescription.xml file, the variable coSimulationId was null. The attribute 'modelIdentifier' is searched for in the BasicCoSimulation tag, which seems to not exist.

Am I misusing the API in some way?

Thank you for your help!

I used the fmu file from here: https://github.com/modelica/Reference-FMUs/releases/download/v0.0.35/Reference-FMUs-0.0.35.zip

damian-leporis-se commented 1 day ago

I have the same problem, I fixed it by renaming every variable / method name that contains something"BasicCoSimulation"something to something"CoSimulation"something