Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX") Notification: Performance of loadModel(Modelica): time 1.841/1.841, allocations: 194.9 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003462/0.0003462, allocations: 12 kB / 264.6 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1118, allocations: 44.51 MB / 309.1 MB, free: 372 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX): time 0.002365/0.1142, allocations: 1.035 MB / 310.1 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.05753/0.1718, allocations: 20.46 MB / 330.6 MB, free: 10.8 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.205e-05/0.1719, allocations: 0 / 330.6 MB, free: 10.8 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001478/0.1721, allocations: 15.92 kB / 330.6 MB, free: 10.79 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02523/0.1973, allocations: 4.204 MB / 334.8 MB, free: 6.574 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001182/0.1985, allocations: 215.4 kB / 335 MB, free: 6.363 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001503/0.1987, allocations: 55.8 kB / 335 MB, free: 6.309 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.408e-05/0.1988, allocations: 0 / 335 MB, free: 6.309 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001024/0.1989, allocations: 39.91 kB / 335.1 MB, free: 6.27 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001149/0.1991, allocations: 31.89 kB / 335.1 MB, free: 6.238 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.796e-05/0.1991, allocations: 4 kB / 335.1 MB, free: 6.234 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03067/0.2298, allocations: 7.791 MB / 342.9 MB, free: 14.43 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.481e-05/0.2299, allocations: 11.98 kB / 342.9 MB, free: 14.42 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.912e-05/0.23, allocations: 37.64 kB / 343 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01089/0.2409, allocations: 2.756 MB / 345.7 MB, free: 11.62 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.241, allocations: 0 / 345.7 MB, free: 11.62 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.156e-06/0.241, allocations: 4 kB / 345.7 MB, free: 11.61 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.241, allocations: 0 / 345.7 MB, free: 11.61 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.004048/0.2451, allocations: 0.8966 MB / 346.6 MB, free: 10.67 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.081e-05/0.2452, allocations: 8.031 kB / 346.6 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.31e-05/0.2453, allocations: 7.984 kB / 346.6 MB, free: 10.65 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00029/0.2456, allocations: 191 kB / 346.8 MB, free: 10.43 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.235e-05/0.2456, allocations: 3.938 kB / 346.8 MB, free: 10.42 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.934e-05/0.2457, allocations: 4 kB / 346.8 MB, free: 10.42 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003541/0.246, allocations: 83.25 kB / 346.9 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.79e-05/0.2461, allocations: 3.953 kB / 346.9 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.474e-05/0.2461, allocations: 4 kB / 346.9 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.2461, allocations: 0 / 346.9 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003962/0.2465, allocations: 39.95 kB / 347 MB, free: 10.28 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003432/0.2469, allocations: 182.6 kB / 347.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006445/0.2476, allocations: 105.2 kB / 347.2 MB, free: 9.926 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.942e-05/0.2477, allocations: 16.14 kB / 347.3 MB, free: 9.91 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.93e-05/0.2478, allocations: 30.56 kB / 347.3 MB, free: 9.871 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 2.976e-06/0.2478, allocations: 0 / 347.3 MB, free: 9.871 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0008083/0.2486, allocations: 113.4 kB / 347.4 MB, free: 9.754 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.362e-05/0.2487, allocations: 85.09 kB / 347.5 MB, free: 9.652 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002112/0.2489, allocations: 142 kB / 347.6 MB, free: 9.504 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.665e-05/0.2489, allocations: 25.7 kB / 347.6 MB, free: 9.473 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.753e-05/0.249, allocations: 84.14 kB / 347.7 MB, free: 9.387 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.058e-05/0.2491, allocations: 15.75 kB / 347.7 MB, free: 9.371 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.199e-05/0.2491, allocations: 4 kB / 347.7 MB, free: 9.367 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.2493, allocations: 318.8 kB / 348.1 MB, free: 9.047 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002044/0.2495, allocations: 23.98 kB / 348.1 MB, free: 9.023 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002223/0.2498, allocations: 25.7 kB / 348.1 MB, free: 8.992 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000219/0.25, allocations: 27.97 kB / 348.1 MB, free: 8.965 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/0.25, allocations: 0 / 348.1 MB, free: 8.965 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0005592/0.2506, allocations: 89.5 kB / 348.2 MB, free: 8.871 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.392e-05/0.2506, allocations: 8 kB / 348.2 MB, free: 8.863 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.2507, allocations: 4 kB / 348.2 MB, free: 8.859 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.613e-05/0.2507, allocations: 0 / 348.2 MB, free: 8.859 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001924/0.2509, allocations: 11.98 kB / 348.2 MB, free: 8.848 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.671e-05/0.2509, allocations: 7.953 kB / 348.2 MB, free: 8.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001259/0.2511, allocations: 0 / 348.2 MB, free: 8.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.909e-05/0.2511, allocations: 4 kB / 348.2 MB, free: 8.836 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.0001346/0.2513, allocations: 110.2 kB / 348.4 MB, free: 8.719 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.179e-05/0.2513, allocations: 12.03 kB / 348.4 MB, free: 8.707 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006359/0.252, allocations: 113.4 kB / 348.5 MB, free: 8.586 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/0.252, allocations: 4 kB / 348.5 MB, free: 8.582 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.252, allocations: 3.938 kB / 348.5 MB, free: 8.578 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001281/0.2522, allocations: 104.9 kB / 348.6 MB, free: 8.457 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.91e-05/0.2522, allocations: 4.562 kB / 348.6 MB, free: 8.453 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002002/0.2525, allocations: 0 / 348.6 MB, free: 8.453 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.877e-05/0.2525, allocations: 11.92 kB / 348.6 MB, free: 8.441 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006472/0.2532, allocations: 248.2 kB / 348.8 MB, free: 8.191 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0006316/0.2539, allocations: 338 kB / 349.2 MB, free: 7.844 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002224/0.2541, allocations: 31.97 kB / 349.2 MB, free: 7.812 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000147/0.2543, allocations: 111.2 kB / 349.3 MB, free: 7.703 MB / 298.7 MB Notification: Performance of Backend: time 9.52e-07/0.2543, allocations: 0 / 349.3 MB, free: 7.703 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.01287/0.2672, allocations: 1.544 MB / 350.9 MB, free: 6.156 MB / 298.7 MB Notification: Performance of SimCode: time 0.0009198/0.2681, allocations: 0.6403 MB / 351.5 MB, free: 5.469 MB / 298.7 MB Notification: Performance of Templates: time 0.3725/0.6407, allocations: 37.03 MB / 388.5 MB, free: 56.75 MB / 314.7 MB "" Variables in the reference:time,Th,Ts,h2,s2 Variables in the result:T_max,T_min,Th,Ts,X[1],X[2],h2,h_max,h_min,p,s2,s_max,s_min,time