modelon-community / fmi-library

C library for importing FMUs
Other
108 stars 34 forks source link

Error parsing 'independent' variable #21

Open hplatou opened 2 years ago

hplatou commented 2 years ago

If modelDescription.xml (FMI2) contains a variable with causality=independent, the xml-parser reports a parse error: [error ] [FMI Library: FMI2XML] Start attribute is required for this causality, variability and initial combination

According to the specification, this variable must be defined without the start attribute: If one variable is defined as "independent", it must be defined as "Real" without a "start" attribute.

lionelbelmon commented 8 months ago

Hi, we noticed the same problem here. One other way to solve it is to modify the table in fmi_enum.c https://github.com/modelon-community/fmi-library/pull/98