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_T.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_T,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_T") Notification: Performance of loadModel(Modelica): time 1.952/1.952, allocations: 171.1 MB / 187.3 MB, free: 1.145 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003929/0.0003931, allocations: 8 kB / 233.8 MB, free: 3.086 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09774/0.09816, allocations: 38.78 MB / 272.6 MB, free: 12.23 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.Inverse_sh_T): time 0.001921/0.1001, allocations: 1.027 MB / 273.6 MB, free: 11.19 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.01864/0.1188, allocations: 10.09 MB / 283.7 MB, free: 1.066 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.465e-05/0.119, allocations: 0 / 283.7 MB, free: 1.066 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 2.836e-05/0.119, allocations: 3.984 kB / 283.7 MB, free: 1.062 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004255/0.1233, allocations: 0.8451 MB / 284.5 MB, free: 220 kB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002296/0.1256, allocations: 0.4984 MB / 285 MB, free: 15.71 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001279/0.1257, allocations: 39.94 kB / 285.1 MB, free: 15.68 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.596e-05/0.1258, allocations: 4 kB / 285.1 MB, free: 15.67 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.028e-05/0.1259, allocations: 27.91 kB / 285.1 MB, free: 15.64 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.644e-05/0.126, allocations: 31.89 kB / 285.1 MB, free: 15.61 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.087e-05/0.126, allocations: 0 / 285.1 MB, free: 15.61 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005216/0.1312, allocations: 1.506 MB / 286.6 MB, free: 14.11 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.709e-05/0.1313, allocations: 11.94 kB / 286.6 MB, free: 14.09 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.882e-05/0.1314, allocations: 33.69 kB / 286.7 MB, free: 14.05 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002363/0.1338, allocations: 0.6669 MB / 287.3 MB, free: 13.39 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1338, allocations: 0 / 287.3 MB, free: 13.39 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.1338, allocations: 0 / 287.3 MB, free: 13.39 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.103e-06/0.1338, allocations: 0 / 287.3 MB, free: 13.39 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.001004/0.1348, allocations: 0.5299 MB / 287.9 MB, free: 12.81 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.148e-05/0.1349, allocations: 16.03 kB / 287.9 MB, free: 12.79 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001556/0.1351, allocations: 7.984 kB / 287.9 MB, free: 12.79 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002136/0.1353, allocations: 182.9 kB / 288.1 MB, free: 12.57 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.916e-05/0.1353, allocations: 4 kB / 288.1 MB, free: 12.56 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.249e-05/0.1354, allocations: 7.984 kB / 288.1 MB, free: 12.55 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002612/0.1356, allocations: 63.39 kB / 288.2 MB, free: 12.48 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.1357, allocations: 0 / 288.2 MB, free: 12.48 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.432e-05/0.1357, allocations: 0 / 288.2 MB, free: 12.48 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-06/0.1357, allocations: 4 kB / 288.2 MB, free: 12.48 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000268/0.136, allocations: 35.89 kB / 288.2 MB, free: 12.44 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002732/0.1363, allocations: 182.5 kB / 288.4 MB, free: 12.21 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004286/0.1367, allocations: 77.19 kB / 288.4 MB, free: 12.12 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01085/0.1476, allocations: 3.274 MB / 291.7 MB, free: 8.398 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.03e-05/0.1477, allocations: 42.5 kB / 291.8 MB, free: 8.348 MB / 250.7 MB Notification: Performance of pre-optimization done (n=6): time 4.248e-06/0.1477, allocations: 4 kB / 291.8 MB, free: 8.344 MB / 250.7 MB Notification: Performance of matching and sorting (n=6): time 0.0005869/0.1483, allocations: 85.58 kB / 291.8 MB, free: 8.254 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.593e-05/0.1484, allocations: 81.11 kB / 291.9 MB, free: 8.156 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001337/0.1485, allocations: 114 kB / 292 MB, free: 8.035 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.204e-05/0.1486, allocations: 29.7 kB / 292.1 MB, free: 8 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.792e-05/0.1486, allocations: 150.6 kB / 292.2 MB, free: 7.852 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.324e-05/0.1487, allocations: 19.75 kB / 292.2 MB, free: 7.832 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.402e-06/0.1487, allocations: 4 kB / 292.2 MB, free: 7.828 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001529/0.1489, allocations: 314.8 kB / 292.5 MB, free: 7.512 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001303/0.149, allocations: 15.98 kB / 292.6 MB, free: 7.496 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001409/0.1492, allocations: 25.7 kB / 292.6 MB, free: 7.465 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001382/0.1493, allocations: 15.98 kB / 292.6 MB, free: 7.449 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.1493, allocations: 3.938 kB / 292.6 MB, free: 7.445 MB / 250.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003476/0.1497, allocations: 81.55 kB / 292.7 MB, free: 7.359 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/0.1497, allocations: 9.094 kB / 292.7 MB, free: 7.352 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.1497, allocations: 128 / 292.7 MB, free: 7.352 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/0.1498, allocations: 4.469 kB / 292.7 MB, free: 7.348 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001361/0.1499, allocations: 8 kB / 292.7 MB, free: 7.34 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.01e-05/0.1499, allocations: 12.05 kB / 292.7 MB, free: 7.328 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.922e-05/0.15, allocations: 3.906 kB / 292.7 MB, free: 7.324 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.952e-05/0.1501, allocations: 4 kB / 292.7 MB, free: 7.32 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.0001125/0.1502, allocations: 117.8 kB / 292.8 MB, free: 7.195 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.089e-05/0.1502, allocations: 7.953 kB / 292.8 MB, free: 7.188 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004899/0.1507, allocations: 113.3 kB / 293 MB, free: 7.07 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.1508, allocations: 0 / 293 MB, free: 7.07 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.489e-06/0.1508, allocations: 8 kB / 293 MB, free: 7.062 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.098e-05/0.1509, allocations: 89.02 kB / 293.1 MB, free: 6.957 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.623e-05/0.1509, allocations: 8 kB / 293.1 MB, free: 6.949 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001426/0.1511, allocations: 4 kB / 293.1 MB, free: 6.945 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.413e-05/0.1511, allocations: 3.984 kB / 293.1 MB, free: 6.941 MB / 250.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000475/0.1516, allocations: 236.1 kB / 293.3 MB, free: 6.703 MB / 250.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0005319/0.1522, allocations: 329.9 kB / 293.6 MB, free: 6.363 MB / 250.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001448/0.1523, allocations: 15.98 kB / 293.6 MB, free: 6.348 MB / 250.7 MB Notification: Performance of sorting global known variables: time 8.073e-05/0.1524, allocations: 95.27 kB / 293.7 MB, free: 6.254 MB / 250.7 MB Notification: Performance of Backend: time 7.61e-07/0.1524, allocations: 0 / 293.7 MB, free: 6.254 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.002536/0.155, allocations: 0.5954 MB / 294.3 MB, free: 5.652 MB / 250.7 MB Notification: Performance of SimCode: time 0.0007493/0.1558, allocations: 0.6517 MB / 295 MB, free: 4.941 MB / 250.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) []