Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T") Notification: Performance of loadModel(Modelica): time 2.158/2.158, allocations: 194.8 MB / 212.3 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003854/0.0003856, allocations: 8 kB / 264.5 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1104, allocations: 44.49 MB / 309 MB, free: 1.051 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.Inverse_sh_T): time 0.002309/0.1128, allocations: 1.035 MB / 310 MB, free: 4 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.02334/0.1361, allocations: 10.11 MB / 320.1 MB, free: 5.855 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.747e-05/0.1363, allocations: 0 / 320.1 MB, free: 5.855 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 3.743e-05/0.1363, allocations: 3.938 kB / 320.1 MB, free: 5.852 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005276/0.1416, allocations: 0.8412 MB / 321 MB, free: 5.008 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002891/0.1446, allocations: 0.4946 MB / 321.5 MB, free: 4.512 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001457/0.1447, allocations: 43.88 kB / 321.5 MB, free: 4.469 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.372e-05/0.1448, allocations: 3.984 kB / 321.5 MB, free: 4.465 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.729e-05/0.1449, allocations: 27.91 kB / 321.5 MB, free: 4.438 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001146/0.145, allocations: 27.92 kB / 321.6 MB, free: 4.41 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.738e-05/0.1451, allocations: 4 kB / 321.6 MB, free: 4.406 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006453/0.1515, allocations: 1.506 MB / 323.1 MB, free: 2.898 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.16e-05/0.1516, allocations: 7.984 kB / 323.1 MB, free: 2.891 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.278e-05/0.1517, allocations: 37.64 kB / 323.1 MB, free: 2.848 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002993/0.1547, allocations: 0.6668 MB / 323.8 MB, free: 2.18 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.1548, allocations: 0 / 323.8 MB, free: 2.18 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.695e-06/0.1548, allocations: 0 / 323.8 MB, free: 2.18 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.1548, allocations: 0 / 323.8 MB, free: 2.18 MB / 266.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.001374/0.1562, allocations: 0.5378 MB / 324.3 MB, free: 1.594 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.309e-05/0.1563, allocations: 15.97 kB / 324.3 MB, free: 1.578 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001998/0.1565, allocations: 15.86 kB / 324.3 MB, free: 1.562 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002112/0.1567, allocations: 167.1 kB / 324.5 MB, free: 1.359 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.692e-05/0.1568, allocations: 8 kB / 324.5 MB, free: 1.352 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.885e-05/0.1568, allocations: 0 / 324.5 MB, free: 1.352 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003239/0.1571, allocations: 71.31 kB / 324.6 MB, free: 1.27 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.1572, allocations: 0 / 324.6 MB, free: 1.27 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.119e-05/0.1572, allocations: 4 kB / 324.6 MB, free: 1.266 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.1572, allocations: 4 kB / 324.6 MB, free: 1.262 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003406/0.1576, allocations: 23.97 kB / 324.6 MB, free: 1.238 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000316/0.1579, allocations: 174.6 kB / 324.8 MB, free: 1.016 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005553/0.1585, allocations: 89.11 kB / 324.9 MB, free: 0.9102 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01368/0.1722, allocations: 3.266 MB / 328.1 MB, free: 13.2 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.285e-05/0.1723, allocations: 34.56 kB / 328.2 MB, free: 13.16 MB / 282.7 MB Notification: Performance of pre-optimization done (n=6): time 2.855e-06/0.1723, allocations: 4 kB / 328.2 MB, free: 13.15 MB / 282.7 MB Notification: Performance of matching and sorting (n=6): time 0.0006732/0.173, allocations: 89.48 kB / 328.3 MB, free: 13.06 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.053e-05/0.173, allocations: 77.11 kB / 328.3 MB, free: 12.96 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001387/0.1732, allocations: 117.8 kB / 328.5 MB, free: 12.84 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.342e-05/0.1732, allocations: 25.7 kB / 328.5 MB, free: 12.81 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.59e-05/0.1733, allocations: 150.6 kB / 328.6 MB, free: 12.66 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.479e-05/0.1734, allocations: 27.64 kB / 328.7 MB, free: 12.63 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.272e-06/0.1734, allocations: 4 kB / 328.7 MB, free: 12.63 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.1735, allocations: 318.8 kB / 329 MB, free: 12.31 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001314/0.1737, allocations: 15.92 kB / 329 MB, free: 12.29 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001471/0.1738, allocations: 25.7 kB / 329 MB, free: 12.26 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001354/0.174, allocations: 15.98 kB / 329 MB, free: 12.25 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.174, allocations: 0 / 329 MB, free: 12.25 MB / 282.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.00035/0.1744, allocations: 73.66 kB / 329.1 MB, free: 12.17 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/0.1744, allocations: 7.938 kB / 329.1 MB, free: 12.16 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.1744, allocations: 0 / 329.1 MB, free: 12.16 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.952e-05/0.1745, allocations: 8 kB / 329.1 MB, free: 12.16 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001441/0.1746, allocations: 11.98 kB / 329.1 MB, free: 12.14 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.1746, allocations: 0 / 329.1 MB, free: 12.14 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.271e-05/0.1747, allocations: 4 kB / 329.1 MB, free: 12.14 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.125e-05/0.1748, allocations: 4 kB / 329.1 MB, free: 12.14 MB / 282.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.0001107/0.1749, allocations: 121.8 kB / 329.3 MB, free: 12.01 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.838e-05/0.1749, allocations: 7.906 kB / 329.3 MB, free: 12 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004849/0.1754, allocations: 105.4 kB / 329.4 MB, free: 11.89 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.777e-06/0.1754, allocations: 3.984 kB / 329.4 MB, free: 11.89 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.1755, allocations: 7.938 kB / 329.4 MB, free: 11.88 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001002/0.1756, allocations: 93.59 kB / 329.5 MB, free: 11.77 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.616e-05/0.1756, allocations: 4 kB / 329.5 MB, free: 11.77 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001654/0.1758, allocations: 7.922 kB / 329.5 MB, free: 11.76 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.694e-05/0.1759, allocations: 7.953 kB / 329.5 MB, free: 11.75 MB / 282.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004662/0.1763, allocations: 244.1 kB / 329.7 MB, free: 11.5 MB / 282.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0004692/0.1768, allocations: 322 kB / 330 MB, free: 11.17 MB / 282.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001477/0.177, allocations: 15.98 kB / 330.1 MB, free: 11.16 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.417e-05/0.1771, allocations: 95.56 kB / 330.2 MB, free: 11.06 MB / 282.7 MB Notification: Performance of Backend: time 1.242e-06/0.1771, allocations: 0 / 330.2 MB, free: 11.06 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002584/0.1797, allocations: 0.611 MB / 330.8 MB, free: 10.44 MB / 282.7 MB Notification: Performance of SimCode: time 0.0007452/0.1805, allocations: 0.6517 MB / 331.4 MB, free: 9.742 MB / 282.7 MB 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! Error: Internal error GetVarIndexListByMapping: No Element for Th found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946: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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946: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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946: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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946: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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946: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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946: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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946: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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946: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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946: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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946: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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946: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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946: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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:6: s_min (no alias) initial: no arrCref index:(13) []