﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5686	"Invalid FMU Export: Enumeration without start value and/or invalid combination of ""input"" and ""fixed"""	andreas.nicolai@…	arunkumar palanisamy	"Hi all,

I noticed that OpenModelica exports enumeration input values for example as follows:

---
  <!-- Index of variable = ""523"" -->
<ScalarVariable
        name=""Input.flowDirection""
        valueReference=""20""
        description=""Allowed flow direction""
        variability=""fixed""
        causality=""input""
    >
    <Enumeration declaredType=""Modelica.Fluid.Types.PortFlowDirection""/>
</ScalarVariable>
---

Importing such an FMU into a Co-Simulation master fails because the master does not have a valid initial value/selection for the enumeration value.

According to the FMI standard, the combination of ""input"" and ""fixed"" is invalid, when no initial value is given (see ""Functional Mock-up Interface 2.0"", July 25, 2014, Page 48 of 126).

I think this should be fixed by providing an initial value/selection for the enumeration.
"	defect	assigned	high		FMI				
