Open chrbertsch opened 6 years ago
This problem is picked up by VDMCheck:
$ VDMCheck.sh scalartest.xml
2.2.7 Variability/causality <continuous>/<local> invalid at line 8
2.2.7 ScalarVariables["logicalNot.y"] invalid at line 8
2.2.1 ScalarVariables invalid
false
$
I can confirm that the same problem occurs in the two Test FMU examples you cite, and also in DFFREG.fmu (various versions). There are various other ScalarVariable problems in Test FMUs as well, for example:
VDMCheck.sh ./cs/win32/MWorks/2016/MixtureGases/MixtureGases.fmu
2.2.7 start -1 is not within min 1/max 10000
2.2.7 Variable min/max/start invalid at line 1143
2.2.7 ScalarVariables["Medium2.fluidConstants[6].normalBoilingPoint"] invalid at line 1143
2.2.1 ScalarVariables invalid
2.2.8 Derivatives declared, but no Real/derivative variables at line 3130
2.2.8 InitialUnknowns must include: {353, 354}
false
We're Still trying to verify the VDM model that produces these results, but I think these errors are valid.
(moved from https://trac.fmi-standard.org/ticket/398; reported by Lausdahl)
The FMU Checker seems to be missing the semantics checks from the standard and thus not reporting any error for modelDescription.xml which contain obvious errors.
Here is an example. The model description includes this scalar variable:
This is of cause not allowed since the standard says as follows:
and
So the above scalar variable can be expanded as follows:
So defining this with type Boolean is an error and should be reported.
Some of the Test_FMUs have this issue e.g: Test_FMUs/FMI_2.0/CoSimulation/win32/MWorks/2016/ControlledTemperature/ControlledTemperature.fmu Test_FMUs/FMI_2.0/CoSimulation/win32/MWorks/2016/BooleanNetwork1/BooleanNetwork1.fmu Reason