﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
6040	Output variables changing name in FMU	Andreas Heuermann	Andreas Heuermann	"When declaring a variable as an output and generating a FMU the variable name gets changed.

Run
{{{
loadString(""
model simpleOutput
  output Real x (fixed=true, start=1);
  Real y (fixed=true, start=2);
  parameter Real a=2;
equations
  der(x) = a*x;
  der(y) = a*y;
end simpleOutput;
""); getErrorString();

buildModelFMU(simpleOutput); getErrorString();

system(""unzip -p simpleOutput.fmu modelDescription.xml > modelDescription.xml""); getErrorString();
}}}

and than the modelDescription.xml will contain
{{{
  <ModelVariables>
  <!-- Index of variable = ""1"" -->
  <ScalarVariable
    name=""_D_outputAlias_x""
    valueReference=""0""
    initial=""exact"">
    <Real start=""1.0""/>
  </ScalarVariable>
  <!-- Index of variable = ""2"" -->
  <ScalarVariable
    name=""y""
    valueReference=""1""
    initial=""exact"">
    <Real start=""2.0""/>
  </ScalarVariable>
  <!-- Index of variable = ""3"" -->
  <ScalarVariable
    name=""der(_D_outputAlias_x)""
    valueReference=""2""
    >
    <Real derivative=""1""/>
  </ScalarVariable>
  <!-- Index of variable = ""4"" -->
  <ScalarVariable
    name=""der(y)""
    valueReference=""3""
    >
    <Real derivative=""2""/>
  </ScalarVariable>
  <!-- Index of variable = ""5"" -->
  <ScalarVariable
    name=""x""
    valueReference=""4""
    causality=""output""
    >
    <Real/>
  </ScalarVariable>
  <!-- Index of variable = ""6"" -->
  <ScalarVariable
    name=""a""
    valueReference=""5""
    variability=""fixed""
    causality=""parameter""
    >
    <Real start=""2.0""/>
  </ScalarVariable>
  </ModelVariables>
}}}

This internal name should not be visible outside of the FMU."	defect	assigned	low		FMI	v1.16.0-dev		fmi-cross-check output	
