Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Media.Examples.ReferenceAir.Inverse_sh_T,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Th|Ts|h2|s2",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T") translateModel(Modelica.Media.Examples.ReferenceAir.Inverse_sh_T,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Th|Ts|h2|s2",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00207/0.00207, allocations: 177 kB / 17.39 MB, free: 4.266 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.543/2.543, allocations: 205.4 MB / 223.5 MB, free: 9.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001189/0.001189, allocations: 87.8 kB / 271.9 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004714/0.0004716, allocations: 12 kB / 328.2 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5285/0.529, allocations: 47.57 MB / 375.7 MB, free: 45.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.Inverse_sh_T): time 0.00273/0.5318, allocations: 1.064 MB / 376.8 MB, free: 44.59 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01817/0.5501, allocations: 11.14 MB / 387.9 MB, free: 35.61 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001048/0.5503, allocations: 0 / 387.9 MB, free: 35.61 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.629e-05/0.5503, allocations: 0 / 387.9 MB, free: 35.61 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005518/0.5559, allocations: 0.8046 MB / 388.8 MB, free: 35 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002999/0.5589, allocations: 0.5018 MB / 389.3 MB, free: 34.62 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001822/0.5591, allocations: 60.42 kB / 389.3 MB, free: 34.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.674e-05/0.5592, allocations: 2.281 kB / 389.3 MB, free: 34.59 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001001/0.5593, allocations: 24.73 kB / 389.3 MB, free: 34.58 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001383/0.5594, allocations: 31.92 kB / 389.4 MB, free: 34.56 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.837e-05/0.5595, allocations: 2.625 kB / 389.4 MB, free: 34.56 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005306/0.5648, allocations: 1.509 MB / 390.9 MB, free: 33.55 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.768e-05/0.5648, allocations: 11.97 kB / 390.9 MB, free: 33.54 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000132/0.565, allocations: 53.56 kB / 390.9 MB, free: 33.48 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001576/0.5666, allocations: 0.7221 MB / 391.7 MB, free: 32.75 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.011e-05/0.5666, allocations: 0 / 391.7 MB, free: 32.75 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.918e-06/0.5666, allocations: 0 / 391.7 MB, free: 32.75 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.897e-06/0.5666, allocations: 0 / 391.7 MB, free: 32.75 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0009193/0.5676, allocations: 0.5341 MB / 392.2 MB, free: 32.17 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.606e-05/0.5676, allocations: 8.031 kB / 392.2 MB, free: 32.16 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000176/0.5678, allocations: 16.83 kB / 392.2 MB, free: 32.15 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002346/0.5681, allocations: 176.4 kB / 392.4 MB, free: 31.94 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.583e-05/0.5681, allocations: 384 / 392.4 MB, free: 31.94 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.554e-05/0.5681, allocations: 8.359 kB / 392.4 MB, free: 31.93 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002123/0.5684, allocations: 71.45 kB / 392.5 MB, free: 31.85 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.419e-05/0.5684, allocations: 0 / 392.5 MB, free: 31.85 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.533e-05/0.5684, allocations: 0 / 392.5 MB, free: 31.85 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.113e-06/0.5684, allocations: 0 / 392.5 MB, free: 31.85 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001118/0.5685, allocations: 23.98 kB / 392.5 MB, free: 31.82 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002644/0.5688, allocations: 174.4 kB / 392.7 MB, free: 31.6 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00039/0.5692, allocations: 81.22 kB / 392.7 MB, free: 31.5 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.657e-05/0.5693, allocations: 25.77 kB / 392.8 MB, free: 31.47 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006923/0.5762, allocations: 3.297 MB / 396.1 MB, free: 27.73 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.869e-05/0.5763, allocations: 46.48 kB / 396.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 3.046e-06/0.5763, allocations: 0 / 396.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.000405/0.5767, allocations: 77.61 kB / 396.2 MB, free: 27.59 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.525e-05/0.5768, allocations: 85.05 kB / 396.3 MB, free: 27.49 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001709/0.577, allocations: 109.8 kB / 396.4 MB, free: 27.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.025e-05/0.577, allocations: 29.7 kB / 396.4 MB, free: 27.34 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.374e-05/0.5771, allocations: 84.12 kB / 396.5 MB, free: 27.25 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.429e-05/0.5772, allocations: 27.59 kB / 396.5 MB, free: 27.23 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.153e-06/0.5772, allocations: 0 / 396.5 MB, free: 27.23 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001723/0.5774, allocations: 318.8 kB / 396.8 MB, free: 26.91 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.288e-05/0.5774, allocations: 11.98 kB / 396.8 MB, free: 26.89 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.932e-05/0.5775, allocations: 25.7 kB / 396.9 MB, free: 26.86 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001089/0.5776, allocations: 37.7 kB / 396.9 MB, free: 26.82 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.5776, allocations: 0 / 396.9 MB, free: 26.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001482/0.5778, allocations: 70.08 kB / 397 MB, free: 26.75 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.513e-05/0.5778, allocations: 7.938 kB / 397 MB, free: 26.74 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.757e-06/0.5778, allocations: 4 kB / 397 MB, free: 26.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.774e-05/0.5778, allocations: 3.984 kB / 397 MB, free: 26.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.718e-05/0.5779, allocations: 12 kB / 397 MB, free: 26.72 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.771e-05/0.5779, allocations: 3.984 kB / 397 MB, free: 26.71 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.768e-05/0.578, allocations: 7.906 kB / 397 MB, free: 26.71 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.801e-05/0.578, allocations: 4.125 kB / 397 MB, free: 26.7 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.69e-05/0.5781, allocations: 109.8 kB / 397.1 MB, free: 26.59 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.56e-05/0.5782, allocations: 7.938 kB / 397.1 MB, free: 26.58 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003229/0.5785, allocations: 113.8 kB / 397.2 MB, free: 26.46 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.982e-06/0.5785, allocations: 0 / 397.2 MB, free: 26.46 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.5785, allocations: 0 / 397.2 MB, free: 26.46 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.02e-05/0.5786, allocations: 104.9 kB / 397.3 MB, free: 26.34 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.871e-05/0.5786, allocations: 0 / 397.3 MB, free: 26.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.513e-05/0.5787, allocations: 4 kB / 397.3 MB, free: 26.34 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.496e-05/0.5788, allocations: 15.98 kB / 397.4 MB, free: 26.32 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002415/0.579, allocations: 224.1 kB / 397.6 MB, free: 26.1 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0002576/0.5793, allocations: 317.9 kB / 397.9 MB, free: 25.77 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 7.47e-05/0.5794, allocations: 15.98 kB / 397.9 MB, free: 25.75 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.93e-05/0.5794, allocations: 99.25 kB / 398 MB, free: 25.66 MB / 298.7 MB Notification: Performance of Backend: time 3.71e-07/0.5794, allocations: 0 / 398 MB, free: 25.66 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002092/0.5815, allocations: 0.6003 MB / 398.6 MB, free: 25.05 MB / 298.7 MB Notification: Performance of SimCode: time 0.0006935/0.5823, allocations: 0.6517 MB / 399.3 MB, free: 24.34 MB / 298.7 MB Error: Internal error GetVarIndexListByMapping: No Element for Th found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: Th (no alias) initial: 288.15 no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for Ts found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:1: Ts (no alias) initial: 288.15 no arrCref index:(2) [] Error: Internal error GetVarIndexListByMapping: No Element for h1 found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:2: h1 (no alias) initial: no arrCref index:(3) [] Error: Internal error GetVarIndexListByMapping: No Element for h2 found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:3: h2 (no alias) initial: no arrCref index:(4) [] Error: Internal error GetVarIndexListByMapping: No Element for s1 found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:4: s1 (no alias) initial: no arrCref index:(5) [] Error: Internal error GetVarIndexListByMapping: No Element for s2 found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:5: s2 (no alias) initial: no arrCref index:(6) [] Error: Internal error GetVarIndexListByMapping: No Element for T_max found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: T_max (no alias) initial: 500.0 no arrCref index:(7) [] Error: Internal error GetVarIndexListByMapping: No Element for T_min found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:1: T_min (no alias) initial: 300.0 no arrCref index:(8) [] Error: Internal error GetVarIndexListByMapping: No Element for h_max found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:2: h_max (no alias) initial: no arrCref index:(9) [] Error: Internal error GetVarIndexListByMapping: No Element for h_min found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:3: h_min (no alias) initial: no arrCref index:(10) [] Error: Internal error GetVarIndexListByMapping: No Element for p found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:4: p (no alias) initial: 100000.0 no arrCref index:(11) [] Error: Internal error GetVarIndexListByMapping: No Element for s_max found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:5: s_max (no alias) initial: no arrCref index:(12) [] Error: Internal error GetVarIndexListByMapping: No Element for s_min found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:6: s_min (no alias) initial: no arrCref index:(13) [] Error: Internal error GetVarIndexListByMapping: No Element for Th found! Error: Internal error GetVarIndexListByMapping: No Element for Ts found! Error: Internal error GetVarIndexListByMapping: No Element for h1 found! Error: Internal error GetVarIndexListByMapping: No Element for h2 found! Error: Internal error GetVarIndexListByMapping: No Element for s1 found! Error: Internal error GetVarIndexListByMapping: No Element for s2 found! Error: Internal error GetVarIndexListByMapping: No Element for T_max found! Error: Internal error GetVarIndexListByMapping: No Element for T_min found! Error: Internal error GetVarIndexListByMapping: No Element for h_max found! Error: Internal error GetVarIndexListByMapping: No Element for h_min found! Error: Internal error GetVarIndexListByMapping: No Element for p found! Error: Internal error GetVarIndexListByMapping: No Element for s_max found! Error: Internal error GetVarIndexListByMapping: No Element for s_min found!