﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5791	Wrong valueReference in modelDescription.xml	Lennart Ochel	Lennart Ochel	"OpenModelica produces a wrong FMU for the following model:

{{{#!modelica
model foo
  parameter Boolean p = false;
  Real y;
equation
  y = sin(time);
end foo;
}}}


Output of OpenModelica v1.16.0-dev.97+g2047f530b:
{{{#!xml
<ModelVariables>
  <!-- Index of variable = ""1"" -->
  <ScalarVariable
    name=""y""
    valueReference=""0""
    >
    <Real/>
  </ScalarVariable>
  <!-- Index of variable = ""2"" -->
  <ScalarVariable
    name=""p""
    valueReference=""0""
    variability=""fixed""
    causality=""parameter""
    >
    <Boolean start=""false""/>
  </ScalarVariable>
</ModelVariables>
}}}

The problem is that both `y` and `p` got the same value for the `valueReference` attribute."	defect	closed	high	1.16.0	FMI	v1.16.0-dev	invalid		arunkumar palanisamy
