Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Th|Ts|h2|s2",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX") translateModel(Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Th|Ts|h2|s2",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002604/0.002605, allocations: 200.1 kB / 18.04 MB, free: 3.781 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.622/1.622, allocations: 226.5 MB / 245.3 MB, free: 6.484 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001134/0.001135, allocations: 97.17 kB / 297.4 MB, free: 6.664 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003502/0.0003503, allocations: 8 kB / 357.4 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4569/0.4572, allocations: 51.29 MB / 408.7 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX): time 0.001767/0.4591, allocations: 1.09 MB / 409.8 MB, free: 26.58 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02821/0.4873, allocations: 22.09 MB / 431.9 MB, free: 4.449 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.643e-05/0.4875, allocations: 4 kB / 431.9 MB, free: 4.445 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002098/0.4877, allocations: 3.938 kB / 431.9 MB, free: 4.441 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02022/0.5079, allocations: 4.659 MB / 436.5 MB, free: 15.79 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001181/0.5091, allocations: 302.9 kB / 436.8 MB, free: 15.49 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001892/0.5093, allocations: 83.67 kB / 436.9 MB, free: 15.41 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.097e-05/0.5094, allocations: 4 kB / 436.9 MB, free: 15.41 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001006/0.5095, allocations: 35.84 kB / 436.9 MB, free: 15.37 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001432/0.5097, allocations: 39.91 kB / 437 MB, free: 15.33 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.03e-05/0.5097, allocations: 0 / 437 MB, free: 15.33 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02246/0.5322, allocations: 8.622 MB / 445.6 MB, free: 6.699 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 8.638e-05/0.5323, allocations: 15.92 kB / 445.6 MB, free: 6.684 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001189/0.5325, allocations: 49.61 kB / 445.7 MB, free: 6.629 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009853/0.5423, allocations: 2.947 MB / 448.6 MB, free: 3.676 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.068e-05/0.5424, allocations: 0 / 448.6 MB, free: 3.676 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.356e-06/0.5424, allocations: 0 / 448.6 MB, free: 3.676 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.706e-06/0.5424, allocations: 0 / 448.6 MB, free: 3.676 MB / 314.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.004366/0.5468, allocations: 0.9085 MB / 449.5 MB, free: 2.719 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.806e-05/0.5469, allocations: 8.031 kB / 449.5 MB, free: 2.711 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.239e-05/0.5469, allocations: 8.844 kB / 449.5 MB, free: 2.703 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002811/0.5472, allocations: 199.8 kB / 449.7 MB, free: 2.469 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.434e-05/0.5472, allocations: 0 / 449.7 MB, free: 2.469 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.029e-05/0.5473, allocations: 0 / 449.7 MB, free: 2.469 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002319/0.5475, allocations: 71.39 kB / 449.8 MB, free: 2.387 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.644e-05/0.5475, allocations: 3.984 kB / 449.8 MB, free: 2.383 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.687e-05/0.5476, allocations: 0 / 449.8 MB, free: 2.383 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.5476, allocations: 4 kB / 449.8 MB, free: 2.379 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001462/0.5477, allocations: 39.91 kB / 449.9 MB, free: 2.34 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003282/0.5481, allocations: 194.5 kB / 450 MB, free: 2.098 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003889/0.5485, allocations: 93.12 kB / 450.1 MB, free: 1.988 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.138e-05/0.5486, allocations: 33.77 kB / 450.2 MB, free: 1.949 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.401e-05/0.5487, allocations: 11.98 kB / 450.2 MB, free: 1.938 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.372e-05/0.5487, allocations: 34.56 kB / 450.2 MB, free: 1.895 MB / 314.7 MB Notification: Performance of pre-optimization done (n=6): time 3.938e-06/0.5487, allocations: 0 / 450.2 MB, free: 1.895 MB / 314.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003902/0.5491, allocations: 101.5 kB / 450.3 MB, free: 1.789 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.179e-05/0.5492, allocations: 81.11 kB / 450.4 MB, free: 1.691 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001867/0.5494, allocations: 137.8 kB / 450.5 MB, free: 1.547 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.796e-05/0.5494, allocations: 29.7 kB / 450.6 MB, free: 1.512 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.65e-05/0.5495, allocations: 84.14 kB / 450.6 MB, free: 1.426 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.607e-05/0.5496, allocations: 19.7 kB / 450.7 MB, free: 1.406 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.091e-06/0.5496, allocations: 4 kB / 450.7 MB, free: 1.402 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000215/0.5498, allocations: 318.8 kB / 451 MB, free: 1.082 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.095e-05/0.5499, allocations: 15.98 kB / 451 MB, free: 1.066 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.876e-05/0.55, allocations: 37.64 kB / 451 MB, free: 1.023 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001319/0.5501, allocations: 53.69 kB / 451.1 MB, free: 0.9648 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.5501, allocations: 0 / 451.1 MB, free: 0.9648 MB / 314.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002094/0.5503, allocations: 85.98 kB / 451.2 MB, free: 0.875 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.5504, allocations: 4 kB / 451.2 MB, free: 0.8711 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.5504, allocations: 128 / 451.2 MB, free: 0.8711 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.652e-05/0.5504, allocations: 0 / 451.2 MB, free: 0.8711 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.223e-05/0.5505, allocations: 23.98 kB / 451.2 MB, free: 0.8477 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.17e-05/0.5505, allocations: 3.984 kB / 451.2 MB, free: 0.8438 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.224e-05/0.5505, allocations: 0 / 451.2 MB, free: 0.8438 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.172e-05/0.5506, allocations: 4 kB / 451.2 MB, free: 0.8398 MB / 314.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 0.0001316/0.5507, allocations: 117.7 kB / 451.3 MB, free: 0.7148 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.553e-05/0.5507, allocations: 7.906 kB / 451.3 MB, free: 0.707 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003146/0.5511, allocations: 105.5 kB / 451.4 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.5511, allocations: 0 / 451.4 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.5511, allocations: 4 kB / 451.4 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001094/0.5512, allocations: 89.08 kB / 451.5 MB, free: 0.4922 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.513e-05/0.5512, allocations: 4 kB / 451.5 MB, free: 500 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.752e-05/0.5513, allocations: 7.938 kB / 451.5 MB, free: 492 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.039e-05/0.5514, allocations: 11.92 kB / 451.5 MB, free: 480 kB / 314.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003029/0.5517, allocations: 232.2 kB / 451.8 MB, free: 240 kB / 314.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0003866/0.5521, allocations: 333.9 kB / 452.1 MB, free: 15.89 MB / 330.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 8.168e-05/0.5522, allocations: 27.92 kB / 452.1 MB, free: 15.86 MB / 330.7 MB Notification: Performance of sorting global known variables: time 9.657e-05/0.5523, allocations: 115.6 kB / 452.2 MB, free: 15.75 MB / 330.7 MB Notification: Performance of Backend: time 3.21e-07/0.5523, allocations: 0 / 452.2 MB, free: 15.75 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.008711/0.561, allocations: 1.703 MB / 453.9 MB, free: 14.05 MB / 330.7 MB Notification: Performance of SimCode: time 0.0008374/0.5619, allocations: 0.6615 MB / 454.6 MB, free: 13.33 MB / 330.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 X 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: X[1] (no alias) initial: 0.01 arrCref:X index:(9) [2] Error: Internal error GetVarIndexListByMapping: No Element for X 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: X[2] (no alias) initial: 0.99 no arrCref index:(10) [2] 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:4: h_max (no alias) initial: no arrCref index:(11) [] 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:5: h_min (no alias) initial: no arrCref index:(12) [] 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:6: p (no alias) initial: 100000.0 no arrCref index:(13) [] 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:7: s_max (no alias) initial: no arrCref index:(14) [] 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:8: s_min (no alias) initial: no arrCref index:(15) [] Error: Internal error GetVarIndexListByMapping: No Element for X found! 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!