Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 1.888/1.888, allocations: 194.8 MB / 211.6 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000354/0.0003542, allocations: 12 kB / 263.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07864/0.07901, allocations: 44.51 MB / 308.4 MB, free: 1.027 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX): time 0.001523/0.08058, allocations: 1.035 MB / 309.4 MB, free: 15.98 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.03369/0.1143, allocations: 20.47 MB / 329.9 MB, free: 11.46 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.205e-05/0.1144, allocations: 0 / 329.9 MB, free: 11.46 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001101/0.1146, allocations: 4 kB / 329.9 MB, free: 11.46 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01418/0.1288, allocations: 4.216 MB / 334.1 MB, free: 7.234 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007012/0.1295, allocations: 215.4 kB / 334.3 MB, free: 7.023 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 9.771e-05/0.1296, allocations: 51.91 kB / 334.3 MB, free: 6.973 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.608e-05/0.1297, allocations: 0 / 334.3 MB, free: 6.973 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.064e-05/0.1297, allocations: 35.84 kB / 334.4 MB, free: 6.938 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.945e-05/0.1298, allocations: 35.89 kB / 334.4 MB, free: 6.902 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.877e-05/0.1299, allocations: 4 kB / 334.4 MB, free: 6.898 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0178/0.1477, allocations: 7.791 MB / 342.2 MB, free: 15.1 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.73e-05/0.1478, allocations: 19.91 kB / 342.2 MB, free: 15.08 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.024e-05/0.1478, allocations: 37.7 kB / 342.3 MB, free: 15.04 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006504/0.1544, allocations: 2.76 MB / 345 MB, free: 12.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.601e-06/0.1544, allocations: 0 / 345 MB, free: 12.27 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.017e-06/0.1544, allocations: 0 / 345 MB, free: 12.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.271e-05/0.1544, allocations: 0 / 345 MB, free: 12.27 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.002395/0.1568, allocations: 0.8966 MB / 345.9 MB, free: 11.32 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.1569, allocations: 8.031 kB / 345.9 MB, free: 11.32 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.981e-05/0.157, allocations: 8 kB / 345.9 MB, free: 11.31 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002266/0.1572, allocations: 194.9 kB / 346.1 MB, free: 11.08 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.028e-05/0.1572, allocations: 7.938 kB / 346.1 MB, free: 11.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.813e-05/0.1573, allocations: 4 kB / 346.1 MB, free: 11.07 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002177/0.1575, allocations: 67.38 kB / 346.2 MB, free: 10.99 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.1575, allocations: 3.953 kB / 346.2 MB, free: 10.98 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.632e-05/0.1575, allocations: 11.94 kB / 346.2 MB, free: 10.97 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.794e-06/0.1576, allocations: 0 / 346.2 MB, free: 10.97 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000213/0.1578, allocations: 43.89 kB / 346.3 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002513/0.158, allocations: 186.6 kB / 346.4 MB, free: 10.7 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003865/0.1585, allocations: 97.17 kB / 346.5 MB, free: 10.58 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.838e-05/0.1585, allocations: 12.06 kB / 346.5 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.374e-05/0.1586, allocations: 38.5 kB / 346.6 MB, free: 10.52 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 2.135e-06/0.1586, allocations: 0 / 346.6 MB, free: 10.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004896/0.1591, allocations: 117.4 kB / 346.7 MB, free: 10.4 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.548e-05/0.1592, allocations: 77.11 kB / 346.8 MB, free: 10.31 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001643/0.1593, allocations: 138 kB / 346.9 MB, free: 10.16 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.52e-05/0.1594, allocations: 29.7 kB / 346.9 MB, free: 10.13 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.018e-05/0.1595, allocations: 150.6 kB / 347.1 MB, free: 9.98 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.832e-05/0.1595, allocations: 23.73 kB / 347.1 MB, free: 9.957 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.279e-06/0.1595, allocations: 0 / 347.1 MB, free: 9.957 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.1597, allocations: 310.8 kB / 347.4 MB, free: 9.645 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001102/0.1598, allocations: 23.98 kB / 347.4 MB, free: 9.621 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001103/0.1599, allocations: 29.7 kB / 347.5 MB, free: 9.586 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001169/0.1601, allocations: 27.97 kB / 347.5 MB, free: 9.559 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.1601, allocations: 0 / 347.5 MB, free: 9.559 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003079/0.1604, allocations: 89.5 kB / 347.6 MB, free: 9.465 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/0.1604, allocations: 4 kB / 347.6 MB, free: 9.461 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.758e-06/0.1605, allocations: 0 / 347.6 MB, free: 9.461 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.1605, allocations: 0 / 347.6 MB, free: 9.461 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001024/0.1606, allocations: 19.98 kB / 347.6 MB, free: 9.441 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.201e-06/0.1606, allocations: 3.953 kB / 347.6 MB, free: 9.438 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.733e-05/0.1607, allocations: 4.125 kB / 347.6 MB, free: 9.434 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.478e-05/0.1607, allocations: 4 kB / 347.6 MB, free: 9.43 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.0001068/0.1608, allocations: 118.2 kB / 347.7 MB, free: 9.305 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.552e-05/0.1609, allocations: 7.906 kB / 347.7 MB, free: 9.297 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003709/0.1613, allocations: 109.9 kB / 347.8 MB, free: 9.18 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.41e-06/0.1613, allocations: 4 kB / 347.8 MB, free: 9.176 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.774e-06/0.1613, allocations: 3.938 kB / 347.9 MB, free: 9.172 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.533e-06/0.1613, allocations: 3.953 kB / 347.9 MB, free: 9.168 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000201/0.1615, allocations: 185.6 kB / 348 MB, free: 8.938 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.363e-06/0.1615, allocations: 3.938 kB / 348 MB, free: 8.934 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.831e-05/0.1616, allocations: 12 kB / 348.1 MB, free: 8.922 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.669e-06/0.1617, allocations: 0 / 348.1 MB, free: 8.922 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.968e-06/0.1617, allocations: 0 / 348.1 MB, free: 8.922 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.743e-06/0.1617, allocations: 3.984 kB / 348.1 MB, free: 8.918 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.972e-06/0.1617, allocations: 4 kB / 348.1 MB, free: 8.914 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003208/0.162, allocations: 125.8 kB / 348.2 MB, free: 8.77 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.32e-05/0.1621, allocations: 85.09 kB / 348.3 MB, free: 8.668 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.693e-05/0.1622, allocations: 8 kB / 348.3 MB, free: 8.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001083/0.1623, allocations: 3.984 kB / 348.3 MB, free: 8.656 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.198e-05/0.1624, allocations: 7.984 kB / 348.3 MB, free: 8.648 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.337e-05/0.1624, allocations: 8 kB / 348.3 MB, free: 8.641 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001138/0.1625, allocations: 107.3 kB / 348.4 MB, free: 8.535 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.89e-07/0.1625, allocations: 0 / 348.4 MB, free: 8.535 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.002778/0.1653, allocations: 0.9212 MB / 349.3 MB, free: 7.613 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (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 Backend phase and start with SimCode phase: time 0.00505/0.1704, allocations: 1.222 MB / 350.5 MB, free: 6.391 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003336/0.1708, allocations: 59.89 kB / 350.6 MB, free: 6.332 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.174e-06/0.1708, allocations: 3.938 kB / 350.6 MB, free: 6.328 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001455/0.1709, allocations: 31.97 kB / 350.6 MB, free: 6.297 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002695/0.1712, allocations: 19.97 kB / 350.7 MB, free: 6.277 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000564/0.1718, allocations: 236.9 kB / 350.9 MB, free: 6.012 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003627/0.1722, allocations: 0.6887 MB / 351.6 MB, free: 5.297 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.285e-05/0.1723, allocations: 19.44 kB / 351.6 MB, free: 5.277 MB / 298.7 MB Notification: Performance of SimCode: time 1.392e-06/0.1723, allocations: 0 / 351.6 MB, free: 5.277 MB / 298.7 MB Notification: Performance of Templates: time 0.3192/0.4915, allocations: 22.25 MB / 373.8 MB, free: 60.95 MB / 314.7 MB