﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3390	Issues with unparsing the type of variable in model_init.xml	Adrian Pop	Lennart Ochel	"
Reported here:
https://openmodelica.org/forum/default-topic/1664-buildmodel-fails-with-template-error-from-codegenutil-tpl

We get an error in the CodegenUtil.tpl:207 when building the attached model. I made it to generate a text instead of failing and we get something like this in the XML file:
{{{#!xml
  <ScalarVariable
  name = ""$TMP_ThermoS_Uops_Valves_Valve$v1_Medium_ThermodynamicState$v1$state381.X""
  valueReference = ""1293""
  variability = ""continuous"" isDiscrete = ""false""
  causality = ""none"" isValueChangeable = ""false""
  alias = ""noAlias""
  classIndex = ""221"" classType = ""rAlg""
  isProtected = ""true""
  fileName = """" startLine = ""0"" startColumn = ""0"" endLine = ""0"" endColumn = ""0"" fileWritable = ""true"">
  /* ScalarVariableType: Real[2] */
  </ScalarVariable>
}}}
The variable seems to be an array of two: {{{/* ScalarVariableType: Real[2] */}}}

Weirdly enough these variables doesn't seem to be used in the C code,
so is maybe just a matter of filtering them out?"	defect	new	high	Future	Code Generation	trunk			
