Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX") Notification: Performance of loadModel(Modelica): time 1.891/1.891, allocations: 171.1 MB / 187.3 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005486/0.0005488, allocations: 8 kB / 233.8 MB, free: 0.9727 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1009, allocations: 38.77 MB / 272.6 MB, free: 10.12 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX): time 0.001826/0.1028, allocations: 1.035 MB / 273.6 MB, free: 9.074 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.2593/0.3622, allocations: 20.41 MB / 294 MB, free: 5.766 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.251e-05/0.3623, allocations: 4.906 kB / 294 MB, free: 5.762 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001509/0.3624, allocations: 6.25 kB / 294 MB, free: 5.758 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02061/0.3831, allocations: 4.202 MB / 298.2 MB, free: 3.719 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009088/0.384, allocations: 222.4 kB / 298.4 MB, free: 3.555 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001184/0.3842, allocations: 48.53 kB / 298.5 MB, free: 3.527 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.378e-05/0.3842, allocations: 2.75 kB / 298.5 MB, free: 3.527 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.038e-05/0.3843, allocations: 29.66 kB / 298.5 MB, free: 3.512 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.364e-05/0.3844, allocations: 32.28 kB / 298.5 MB, free: 3.492 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.175e-05/0.3844, allocations: 4.125 kB / 298.6 MB, free: 3.492 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02383/0.4083, allocations: 7.741 MB / 306.3 MB, free: 15.76 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.303e-05/0.4084, allocations: 15.55 kB / 306.3 MB, free: 15.75 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.842e-05/0.4085, allocations: 35.98 kB / 306.3 MB, free: 15.71 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009893/0.4184, allocations: 2.756 MB / 309.1 MB, free: 14.22 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.4184, allocations: 0 / 309.1 MB, free: 14.22 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.835e-06/0.4184, allocations: 0 / 309.1 MB, free: 14.22 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.652e-06/0.4184, allocations: 0 / 309.1 MB, free: 14.22 MB / 250.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.003875/0.4223, allocations: 0.8877 MB / 310 MB, free: 13.47 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.842e-05/0.4224, allocations: 8.031 kB / 310 MB, free: 13.46 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.399e-05/0.4225, allocations: 11.86 kB / 310 MB, free: 13.45 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002486/0.4227, allocations: 196.4 kB / 310.2 MB, free: 13.22 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.936e-05/0.4228, allocations: 7.938 kB / 310.2 MB, free: 13.21 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.217e-05/0.4228, allocations: 11.88 kB / 310.2 MB, free: 13.2 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000279/0.4231, allocations: 75.38 kB / 310.3 MB, free: 13.12 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.4231, allocations: 0 / 310.3 MB, free: 13.12 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.642e-05/0.4231, allocations: 0 / 310.3 MB, free: 13.12 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.451e-06/0.4232, allocations: 0 / 310.3 MB, free: 13.12 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002796/0.4235, allocations: 39.92 kB / 310.3 MB, free: 13.08 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002904/0.4238, allocations: 198.4 kB / 310.5 MB, free: 12.83 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004652/0.4243, allocations: 97.23 kB / 310.6 MB, free: 12.72 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.364e-05/0.4244, allocations: 11.98 kB / 310.6 MB, free: 12.71 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.529e-05/0.4244, allocations: 38.5 kB / 310.7 MB, free: 12.66 MB / 250.7 MB Notification: Performance of pre-optimization done (n=6): time 1.974e-06/0.4244, allocations: 0 / 310.7 MB, free: 12.66 MB / 250.7 MB Notification: Performance of matching and sorting (n=6): time 0.0005937/0.425, allocations: 101.6 kB / 310.8 MB, free: 12.55 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.051e-05/0.4251, allocations: 81.05 kB / 310.8 MB, free: 12.46 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001807/0.4253, allocations: 138 kB / 311 MB, free: 12.31 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.356e-05/0.4253, allocations: 25.7 kB / 311 MB, free: 12.28 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.453e-05/0.4254, allocations: 158.6 kB / 311.2 MB, free: 12.12 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.594e-05/0.4255, allocations: 27.62 kB / 311.2 MB, free: 12.1 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.413e-05/0.4255, allocations: 0 / 311.2 MB, free: 12.1 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.4257, allocations: 322.8 kB / 311.5 MB, free: 11.77 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000142/0.4258, allocations: 15.98 kB / 311.5 MB, free: 11.76 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001508/0.426, allocations: 36.81 kB / 311.6 MB, free: 11.72 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001611/0.4262, allocations: 32.34 kB / 311.6 MB, free: 11.69 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.4262, allocations: 0 / 311.6 MB, free: 11.69 MB / 250.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003799/0.4266, allocations: 81.59 kB / 311.7 MB, free: 11.6 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.05e-05/0.4266, allocations: 4 kB / 311.7 MB, free: 11.6 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.4266, allocations: 0 / 311.7 MB, free: 11.6 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.977e-05/0.4267, allocations: 0 / 311.7 MB, free: 11.6 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001418/0.4268, allocations: 15.98 kB / 311.7 MB, free: 11.58 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.323e-06/0.4268, allocations: 0 / 311.7 MB, free: 11.58 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.976e-05/0.4269, allocations: 8 kB / 311.7 MB, free: 11.57 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.405e-05/0.427, allocations: 4 kB / 311.7 MB, free: 11.57 MB / 250.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.0001261/0.4271, allocations: 117.8 kB / 311.8 MB, free: 11.45 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.354e-05/0.4271, allocations: 12.22 kB / 311.8 MB, free: 11.43 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004641/0.4276, allocations: 101.5 kB / 311.9 MB, free: 11.33 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.4276, allocations: 3.938 kB / 311.9 MB, free: 11.33 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/0.4277, allocations: 0 / 311.9 MB, free: 11.33 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000109/0.4278, allocations: 108.8 kB / 312 MB, free: 11.2 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.518e-05/0.4278, allocations: 4 kB / 312 MB, free: 11.2 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001475/0.428, allocations: 7.984 kB / 312 MB, free: 11.19 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.409e-05/0.428, allocations: 11.95 kB / 312.1 MB, free: 11.18 MB / 250.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000483/0.4285, allocations: 240.1 kB / 312.3 MB, free: 10.94 MB / 250.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0004921/0.429, allocations: 338 kB / 312.6 MB, free: 10.59 MB / 250.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001573/0.4292, allocations: 20.27 kB / 312.6 MB, free: 10.57 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001198/0.4294, allocations: 111.2 kB / 312.7 MB, free: 10.46 MB / 250.7 MB Notification: Performance of Backend: time 7.81e-07/0.4294, allocations: 4 kB / 312.8 MB, free: 10.46 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.01101/0.4404, allocations: 1.546 MB / 314.3 MB, free: 8.914 MB / 250.7 MB Notification: Performance of SimCode: time 0.0008671/0.4413, allocations: 0.6731 MB / 315 MB, free: 8.184 MB / 250.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) []