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_TX.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_TX,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_TX") Notification: Performance of loadModel(Modelica): time 2.138/2.138, allocations: 194.8 MB / 212.3 MB, free: 3.016 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003773/0.0003774, allocations: 8 kB / 264.5 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1138, allocations: 44.51 MB / 309 MB, free: 1.059 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX): time 0.002064/0.116, allocations: 1.035 MB / 310 MB, free: 12 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.04546/0.1615, allocations: 20.46 MB / 330.5 MB, free: 11.5 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.881e-05/0.1617, allocations: 0 / 330.5 MB, free: 11.5 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001325/0.1618, allocations: 11.98 kB / 330.5 MB, free: 11.49 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01979/0.1816, allocations: 4.204 MB / 334.7 MB, free: 7.273 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009883/0.1827, allocations: 223.4 kB / 334.9 MB, free: 7.055 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001485/0.1828, allocations: 43.92 kB / 335 MB, free: 7.012 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.256e-05/0.1829, allocations: 7.984 kB / 335 MB, free: 7.004 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.834e-05/0.183, allocations: 35.84 kB / 335 MB, free: 6.969 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001091/0.1831, allocations: 27.91 kB / 335 MB, free: 6.941 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.343e-05/0.1832, allocations: 4 kB / 335 MB, free: 6.938 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02491/0.2081, allocations: 7.795 MB / 342.8 MB, free: 15.13 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.945e-05/0.2082, allocations: 19.91 kB / 342.8 MB, free: 15.11 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.905e-05/0.2083, allocations: 33.7 kB / 342.9 MB, free: 15.07 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009831/0.2182, allocations: 2.764 MB / 345.6 MB, free: 12.3 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.2182, allocations: 3.938 kB / 345.6 MB, free: 12.3 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.456e-06/0.2182, allocations: 0 / 345.6 MB, free: 12.3 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.087e-05/0.2183, allocations: 0 / 345.6 MB, free: 12.3 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.003827/0.2221, allocations: 0.8927 MB / 346.5 MB, free: 11.36 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.846e-05/0.2222, allocations: 8.031 kB / 346.5 MB, free: 11.35 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.274e-05/0.2223, allocations: 8 kB / 346.6 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002935/0.2226, allocations: 198.9 kB / 346.7 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.299e-05/0.2226, allocations: 0 / 346.7 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.806e-05/0.2227, allocations: 4 kB / 346.7 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003181/0.223, allocations: 75.38 kB / 346.8 MB, free: 11.02 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.572e-05/0.223, allocations: 3.953 kB / 346.8 MB, free: 11.02 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.158e-05/0.223, allocations: 3.938 kB / 346.8 MB, free: 11.01 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.523e-06/0.2231, allocations: 0 / 346.8 MB, free: 11.01 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002936/0.2234, allocations: 43.91 kB / 346.9 MB, free: 10.97 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003313/0.2237, allocations: 186.6 kB / 347.1 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005126/0.2242, allocations: 97.17 kB / 347.2 MB, free: 10.62 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.029e-05/0.2243, allocations: 15.98 kB / 347.2 MB, free: 10.61 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.809e-05/0.2244, allocations: 34.56 kB / 347.2 MB, free: 10.56 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 4.058e-06/0.2244, allocations: 0 / 347.2 MB, free: 10.56 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0006384/0.2251, allocations: 113.4 kB / 347.3 MB, free: 10.45 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.287e-05/0.2252, allocations: 77.11 kB / 347.4 MB, free: 10.35 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002031/0.2254, allocations: 142 kB / 347.5 MB, free: 10.2 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.83e-05/0.2254, allocations: 29.7 kB / 347.6 MB, free: 10.17 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.882e-05/0.2255, allocations: 150.6 kB / 347.7 MB, free: 10.02 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.039e-05/0.2256, allocations: 19.73 kB / 347.7 MB, free: 10 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.014e-06/0.2256, allocations: 0 / 347.7 MB, free: 10 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.2258, allocations: 314.8 kB / 348 MB, free: 9.684 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001592/0.226, allocations: 19.98 kB / 348 MB, free: 9.664 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000183/0.2262, allocations: 42.06 kB / 348.1 MB, free: 9.617 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000158/0.2263, allocations: 15.98 kB / 348.1 MB, free: 9.602 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.2264, allocations: 0 / 348.1 MB, free: 9.602 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000434/0.2268, allocations: 89.92 kB / 348.2 MB, free: 9.508 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.391e-05/0.2268, allocations: 10.12 kB / 348.2 MB, free: 9.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.2269, allocations: 0 / 348.2 MB, free: 9.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.307e-05/0.2269, allocations: 4 kB / 348.2 MB, free: 9.496 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001493/0.2271, allocations: 15.98 kB / 348.2 MB, free: 9.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.8e-05/0.2271, allocations: 3.953 kB / 348.2 MB, free: 9.477 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001031/0.2272, allocations: 4 kB / 348.2 MB, free: 9.473 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.314e-05/0.2272, allocations: 48 / 348.2 MB, free: 9.473 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 0.0001554/0.2274, allocations: 121.8 kB / 348.3 MB, free: 9.344 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.467e-05/0.2274, allocations: 11.89 kB / 348.4 MB, free: 9.332 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005235/0.228, allocations: 105.5 kB / 348.5 MB, free: 9.219 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.228, allocations: 4 kB / 348.5 MB, free: 9.215 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.228, allocations: 128 / 348.5 MB, free: 9.215 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001284/0.2282, allocations: 105 kB / 348.6 MB, free: 9.094 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.177e-05/0.2282, allocations: 0 / 348.6 MB, free: 9.094 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001502/0.2284, allocations: 11.92 kB / 348.6 MB, free: 9.082 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.199e-05/0.2284, allocations: 8 kB / 348.6 MB, free: 9.074 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005552/0.229, allocations: 252.1 kB / 348.8 MB, free: 8.82 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0006354/0.2297, allocations: 333.9 kB / 349.2 MB, free: 8.477 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001734/0.2299, allocations: 19.98 kB / 349.2 MB, free: 8.457 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001434/0.23, allocations: 115.2 kB / 349.3 MB, free: 8.344 MB / 298.7 MB Notification: Performance of Backend: time 3.076e-06/0.23, allocations: 0 / 349.3 MB, free: 8.344 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.01067/0.2407, allocations: 1.547 MB / 350.8 MB, free: 6.793 MB / 298.7 MB Notification: Performance of SimCode: time 0.000988/0.2418, allocations: 0.6654 MB / 351.5 MB, free: 6.074 MB / 298.7 MB 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! 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 X 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: X[1] (no alias) initial: 0.01 arrCref:X index:(9) [2] Error: Internal error GetVarIndexListByMapping: No Element for X 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: X[2] (no alias) initial: 0.99 no arrCref index:(10) [2] 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:4: h_max (no alias) initial: no arrCref index:(11) [] 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:5: h_min (no alias) initial: no arrCref index:(12) [] 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:6: p (no alias) initial: 100000.0 no arrCref index:(13) [] 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:7: s_max (no alias) initial: no arrCref index:(14) [] 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:8: s_min (no alias) initial: no arrCref index:(15) []