Maplesoft-fmigroup / MapleSim_FMI

FMI compatibility resources
0 stars 0 forks source link

ControlledTemperature FMI3 ME crash #5

Open KarlWernersson opened 2 weeks ago

KarlWernersson commented 2 weeks ago

Hi when i try to simulate ControlledTemperature as ME in fmi 3 i get a crash when i call freeInstance.

CallStack bmp

Attached is the call stack. If i can help with additional info or anything else let me know

Maplesoft-fmigroup commented 2 weeks ago

@KarlWernersson Thanks for the report. It seems to be running without a crash in our FMU Import and fmusim. I wonder if this is related to directional derivatives. Are you using the directional derivatives that this FMU provides in your import? Does this crash still occur if you don't? Also, does the FMI 2 version of this FMU also result in a crash? Thanks in advance for any additional info.

KarlWernersson commented 2 weeks ago

Hi, I checked again and i had turned on analytical Jacobian for the model translation so directionalDerivative was called, when i turned this of the simulation went well and I didn't have any crash. I tried with FMI 2 and I didn't get any crash with or without directional derivatives.

Maplesoft-fmigroup commented 1 day ago

@KarlWernersson Hi Karl, could you please try the updated FMU CT3_dirderiv.fmu to see if it resolves the issue?