﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4024	Bugs in  generating xml files	anonymous	Lennart Ochel	"Hi guys, I found several new bugs for OpenModelica v1.11.0-dev-54-g4ec62d0. I attached the xml file and model file.

1.On line 159 of xml file, I think we should exchange line 159 and line 160, since 'exp:QualifiedNamePart' on line 153 does not close. 

{{{
150:      <QualifiedName>
151:        <exp:QualifiedNamePart name=""pipe""/>
152:        <exp:QualifiedNamePart name=""flowModel""/>
153:        <exp:QualifiedNamePart name=""states"">
154:          <exp:ArraySubscripts>
155:            <exp:IndexExpression>
156:              <exp:IntegerLiteral>1</exp:IntegerLiteral>
157:            </exp:IndexExpression>
158:          </exp:ArraySubscripts>
159:        <exp:QualifiedNamePart name=""h""/>
160:        </exp:QualifiedNamePart>
161:      </QualifiedName>
}}}

2.On line 2985, the 'min' attribute should be '-100000.0'. 

{{{
2985:      <Real  min=""*ERROR* initial value of unknown type"" max=""100000.0"" unit=""kg/s"" />
}}}

3.On line 10160, based on the schema '​https://svn.jmodelica.org/trunk/XML/daeEquations.xsd', 'equ:Equation' is not allowed inside 'exp:Sub'. 

{{{
10158:    <equ:Equation>
10159:      <exp:Sub>
10160:        <equ:Equation>
10161:          <exp:Sub>
10162:            <exp:Identifier>
}}}

4.On line 31810, it is illegal based on schema '​https://svn.jmodelica.org/trunk/XML/daeFunctions.xsd' 

{{{
31810:          <fun:Expression>
}}}

5. On line 20240, we miss '<exp:Homotopy>' in schema. Actually not only 'Homotopy',  a lot of other builtin functions are missing. For example, 'semiLinear', 'dealy', and so on.

{{{
20240:              <exp:Homotopy>
}}}"	defect	new	critical		Code Generation	v1.11.0		xml	xiaofeiw@…
