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.DryAir2.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.DryAir2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p|volume1.medium.T|volume1.medium.p",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2") Notification: Performance of loadModel(Modelica): time 1.859/1.859, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003486/0.0003487, allocations: 16 kB / 263.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07844/0.07881, allocations: 44.51 MB / 308.4 MB, free: 1.027 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.03223/0.1111, allocations: 22.19 MB / 330.5 MB, free: 10.77 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.009041/0.1202, allocations: 5.29 MB / 335.8 MB, free: 5.469 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000485/0.1207, allocations: 7.938 kB / 335.8 MB, free: 5.461 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009244/0.1216, allocations: 239 kB / 336.1 MB, free: 5.227 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008269/0.1225, allocations: 323 kB / 336.4 MB, free: 4.91 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004774/0.1273, allocations: 1.348 MB / 337.7 MB, free: 3.559 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001291/0.1286, allocations: 0.733 MB / 338.5 MB, free: 2.824 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002597/0.1289, allocations: 106.1 kB / 338.6 MB, free: 2.719 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000609/0.1295, allocations: 351 kB / 338.9 MB, free: 2.375 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004126/0.1299, allocations: 251 kB / 339.2 MB, free: 2.129 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.697e-05/0.13, allocations: 20 kB / 339.2 MB, free: 2.109 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001971/0.132, allocations: 0.7532 MB / 339.9 MB, free: 1.355 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001584/0.1322, allocations: 107.6 kB / 340 MB, free: 1.25 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001853/0.1324, allocations: 125.5 kB / 340.2 MB, free: 1.121 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001258/0.1336, allocations: 0.7717 MB / 340.9 MB, free: 356 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.86e-06/0.1337, allocations: 0 / 340.9 MB, free: 356 kB / 282.7 MB Notification: Performance of FrontEnd: time 1.952e-06/0.1337, allocations: 0 / 340.9 MB, free: 356 kB / 282.7 MB Notification: Performance of Transformations before backend: time 1.195e-05/0.1337, allocations: 0 / 340.9 MB, free: 356 kB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001232/0.1349, allocations: 0.69 MB / 341.6 MB, free: 15.61 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.728e-05/0.135, allocations: 8.031 kB / 341.6 MB, free: 15.6 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007378/0.1357, allocations: 79.41 kB / 341.7 MB, free: 15.52 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005715/0.1363, allocations: 322.3 kB / 342 MB, free: 15.17 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.961e-05/0.1364, allocations: 29 kB / 342.1 MB, free: 15.14 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.311e-05/0.1365, allocations: 40 kB / 342.1 MB, free: 15.1 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009621/0.1374, allocations: 467.5 kB / 342.5 MB, free: 14.6 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.776e-05/0.1375, allocations: 7.922 kB / 342.6 MB, free: 14.59 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.188e-05/0.1376, allocations: 20 kB / 342.6 MB, free: 14.57 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.673e-05/0.1376, allocations: 8 kB / 342.6 MB, free: 14.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006756/0.1383, allocations: 303.7 kB / 342.9 MB, free: 14.27 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01677/0.1551, allocations: 6.723 MB / 349.6 MB, free: 6.957 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006289/0.1557, allocations: 282.3 kB / 349.9 MB, free: 6.672 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01304/0.1688, allocations: 3.869 MB / 353.7 MB, free: 2.504 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.146e-05/0.1689, allocations: 42.56 kB / 353.8 MB, free: 2.453 MB / 298.7 MB Notification: Performance of pre-optimization done (n=35): time 3.352e-06/0.1689, allocations: 0 / 353.8 MB, free: 2.453 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.01501/0.1839, allocations: 2.492 MB / 356.3 MB, free: 15.88 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.566e-05/0.184, allocations: 55.41 kB / 356.3 MB, free: 15.82 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004496/0.1845, allocations: 303.2 kB / 356.6 MB, free: 15.51 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.734e-05/0.1845, allocations: 29.7 kB / 356.7 MB, free: 15.48 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002076/0.1847, allocations: 282.5 kB / 356.9 MB, free: 15.2 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001647/0.1849, allocations: 157.7 kB / 357.1 MB, free: 15.04 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.488e-05/0.185, allocations: 15.94 kB / 357.1 MB, free: 15.03 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001843/0.1852, allocations: 342.8 kB / 357.4 MB, free: 14.68 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003688/0.1856, allocations: 149.1 kB / 357.6 MB, free: 14.54 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004815/0.186, allocations: 275.7 kB / 357.9 MB, free: 14.22 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004501/0.1865, allocations: 192.8 kB / 358 MB, free: 14.03 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.45e-06/0.1865, allocations: 0 / 358 MB, free: 14.03 MB / 314.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001501/0.188, allocations: 0.5761 MB / 358.6 MB, free: 13.43 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.298e-05/0.1881, allocations: 8 kB / 358.6 MB, free: 13.43 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/0.1881, allocations: 4.469 kB / 358.6 MB, free: 13.42 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007353/0.1955, allocations: 0.779 MB / 359.4 MB, free: 12.63 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005113/0.196, allocations: 103.9 kB / 359.5 MB, free: 12.53 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002741/0.1988, allocations: 2.467 MB / 362 MB, free: 9.879 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004303/0.1992, allocations: 31.89 kB / 362 MB, free: 9.848 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.493e-05/0.1993, allocations: 23.98 kB / 362 MB, free: 9.824 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (61): * Single equations (assignments): 58 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 1,2 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003008/0.1996, allocations: 181.7 kB / 362.2 MB, free: 9.637 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001105/0.1997, allocations: 35.62 kB / 362.2 MB, free: 9.602 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001657/0.2014, allocations: 0.8591 MB / 363.1 MB, free: 8.73 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.972e-05/0.2014, allocations: 11.98 kB / 363.1 MB, free: 8.719 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.243e-06/0.2014, allocations: 0 / 363.1 MB, free: 8.719 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001456/0.2029, allocations: 0.9535 MB / 364.1 MB, free: 7.688 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002769/0.2057, allocations: 1.496 MB / 365.6 MB, free: 6.125 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.602e-06/0.2057, allocations: 0 / 365.6 MB, free: 6.125 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003984/0.2061, allocations: 79.89 kB / 365.6 MB, free: 6.047 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004078/0.2102, allocations: 0.6375 MB / 366.3 MB, free: 5.402 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.091e-05/0.2103, allocations: 23.92 kB / 366.3 MB, free: 5.379 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001338/0.2116, allocations: 1.273 MB / 367.6 MB, free: 4.055 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.878e-06/0.2117, allocations: 4.031 kB / 367.6 MB, free: 4.051 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002225/0.2139, allocations: 1.219 MB / 368.8 MB, free: 2.801 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001587/0.2141, allocations: 116.5 kB / 368.9 MB, free: 2.668 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.276e-05/0.2142, allocations: 20.06 kB / 368.9 MB, free: 2.648 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003553/0.2146, allocations: 19.97 kB / 369 MB, free: 2.629 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.019e-05/0.2146, allocations: 31.95 kB / 369 MB, free: 2.598 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.048e-05/0.2147, allocations: 19.98 kB / 369 MB, free: 2.578 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000306/0.215, allocations: 209.9 kB / 369.2 MB, free: 2.375 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.77e-07/0.215, allocations: 4 kB / 369.2 MB, free: 2.371 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009625/0.216, allocations: 235.9 kB / 369.4 MB, free: 2.141 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (volume.medium.p,volume.medium.T,volume1.medium.p,volume1.medium.T) * 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 (43): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007386/0.2168, allocations: 270.9 kB / 369.7 MB, free: 1.863 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001544/0.2183, allocations: 0.6868 MB / 370.4 MB, free: 1.164 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.609e-06/0.2183, allocations: 3.938 kB / 370.4 MB, free: 1.16 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001179/0.2195, allocations: 428.3 kB / 370.8 MB, free: 0.7422 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001358/0.2209, allocations: 233.1 kB / 371 MB, free: 0.5156 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1949/0.4159, allocations: 1.498 MB / 372.5 MB, free: 66.22 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004141/0.4163, allocations: 0.8442 MB / 373.4 MB, free: 65.52 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001955/0.4165, allocations: 43.09 kB / 373.4 MB, free: 65.52 MB / 314.7 MB Notification: Performance of SimCode: time 1.808e-06/0.4166, allocations: 0 / 373.4 MB, free: 65.52 MB / 314.7 MB Notification: Performance of Templates: time 0.01974/0.4363, allocations: 12.71 MB / 386.1 MB, free: 60.77 MB / 314.7 MB