Hopsan / hopsan

Hopsan is a free multi-domain system simulation tool developed at the division of Fluid and mechatronic systems at Linköping university.
Apache License 2.0
146 stars 41 forks source link

Fix crash when using non-existing variables in FMI port specifications #2217

Closed robbr48 closed 1 month ago

robbr48 commented 2 months ago

Check that each variable in power port specifications actually exist in the FMU, else stop simulation at initialize.

Also removes some illegal function calls to better respect the FMU state machines.