Closed clagms closed 1 year ago
@levisen this issue is pressing. Lectures and external tutorials are depending on this very basic functionality working. I've asked @mapalmieri to try reproduce this issue as it could be just on my machine. Thanks!
After discussions with @mapalmieri , we have found out that this issue is probably caused by https://github.com/INTO-CPS-Association/into-cps-application/issues/182 because the FMUs exported by open Modelica often contain parameters which are enumeration types.
The workaround is as follows:
<!-- Index of variable = "31" -->
<ScalarVariable
name="dut_turbine.stateSelect"
valueReference="3"
description="Priority to use phi and w as states"
variability="fixed"
causality="calculatedParameter"
>
<Enumeration declaredType="StateSelect"/>
</ScalarVariable>
<Enumeration declaredType="StateSelect"/>
with <Real />
. this will make the intercps up think this parameter is a real number. As long as the user does not have to set this parameter then everything will work.
Steps to reproduce:
This is a particularly nasty problem, as the user looses the multi-model configuration.
UPDATE: Some more investigation with the developer tools seems to point out at the problem source being the TestBench FMU. When the INTO-CPS app contains that FMU, we get the following error: