Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Media.Examples.IdealGasH2O.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Media.Examples.IdealGasH2O,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothState.p|der_p|der_T",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Media.Examples.IdealGasH2O") Notification: Performance of loadModel(Modelica): time 1.551/1.551, allocations: 171.2 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003504/0.0003505, allocations: 11.98 kB / 233.1 MB, free: 3.086 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06825/0.06862, allocations: 38.78 MB / 271.9 MB, free: 12.23 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.IdealGasH2O): time 0.3522/0.4208, allocations: 125.4 MB / 397.3 MB, free: 1.742 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003547/0.4244, allocations: 2.117 MB / 399.4 MB, free: 15.62 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.532e-05/0.4245, allocations: 0 / 399.4 MB, free: 15.62 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001268/0.4246, allocations: 23.89 kB / 399.4 MB, free: 15.6 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008937/0.4255, allocations: 275.1 kB / 399.7 MB, free: 15.33 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001891/0.4257, allocations: 47.92 kB / 399.8 MB, free: 15.28 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 9.678e-05/0.4259, allocations: 55.84 kB / 399.8 MB, free: 15.23 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.013e-05/0.4259, allocations: 4 kB / 399.8 MB, free: 15.22 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001453/0.4261, allocations: 47.81 kB / 399.9 MB, free: 15.18 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.368e-05/0.4262, allocations: 27.94 kB / 399.9 MB, free: 15.15 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 9.486e-06/0.4262, allocations: 0 / 399.9 MB, free: 15.15 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008945/0.4271, allocations: 383.5 kB / 400.3 MB, free: 14.77 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 1.822e-05/0.4271, allocations: 11.97 kB / 400.3 MB, free: 14.76 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 3.701e-05/0.4272, allocations: 37.64 kB / 400.3 MB, free: 14.72 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004252/0.4276, allocations: 206 kB / 400.5 MB, free: 14.52 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.968e-06/0.4276, allocations: 0 / 400.5 MB, free: 14.52 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.026e-06/0.4276, allocations: 0 / 400.5 MB, free: 14.52 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.89e-06/0.4276, allocations: 0 / 400.5 MB, free: 14.52 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0009219/0.4286, allocations: 423.1 kB / 400.9 MB, free: 14.06 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.4286, allocations: 12.03 kB / 400.9 MB, free: 14.05 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006705/0.4353, allocations: 455.7 kB / 401.4 MB, free: 13.61 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001501/0.4355, allocations: 167.6 kB / 401.5 MB, free: 13.4 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.65e-05/0.4356, allocations: 11.95 kB / 401.6 MB, free: 13.39 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001026/0.4357, allocations: 4 kB / 401.6 MB, free: 13.39 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009893/0.4367, allocations: 301.2 kB / 401.9 MB, free: 13.09 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.4367, allocations: 0 / 401.9 MB, free: 13.09 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.176e-05/0.4368, allocations: 4 kB / 401.9 MB, free: 13.08 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.797e-06/0.4368, allocations: 0 / 401.9 MB, free: 13.08 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001112/0.4379, allocations: 275.8 kB / 402.1 MB, free: 12.81 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00118/0.4391, allocations: 430.4 kB / 402.5 MB, free: 12.34 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00116/0.4403, allocations: 202.4 kB / 402.7 MB, free: 12.13 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.464e-05/0.4404, allocations: 11.92 kB / 402.8 MB, free: 12.12 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.809e-05/0.4404, allocations: 34.56 kB / 402.8 MB, free: 12.08 MB / 330.7 MB Notification: Performance of pre-optimization done (n=13): time 2.477e-06/0.4404, allocations: 0 / 402.8 MB, free: 12.08 MB / 330.7 MB Notification: Performance of matching and sorting (n=17): time 0.002087/0.4425, allocations: 422 kB / 403.2 MB, free: 11.66 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.138e-05/0.4426, allocations: 59.34 kB / 403.3 MB, free: 11.59 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.91e-05/0.4427, allocations: 101.8 kB / 403.4 MB, free: 11.48 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.248e-05/0.4428, allocations: 33.7 kB / 403.4 MB, free: 11.44 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.588e-05/0.4429, allocations: 166.1 kB / 403.6 MB, free: 11.28 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.581e-05/0.443, allocations: 63.19 kB / 403.6 MB, free: 11.21 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.518e-05/0.443, allocations: 4 kB / 403.6 MB, free: 11.21 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.4432, allocations: 310.8 kB / 403.9 MB, free: 10.9 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003385/0.4435, allocations: 80.31 kB / 404 MB, free: 10.82 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003686/0.4439, allocations: 120.2 kB / 404.1 MB, free: 10.69 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003504/0.4443, allocations: 87.03 kB / 404.2 MB, free: 10.61 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.268e-06/0.4443, allocations: 0 / 404.2 MB, free: 10.61 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0008841/0.4452, allocations: 245.3 kB / 404.4 MB, free: 10.36 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.4452, allocations: 7.953 kB / 404.5 MB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.782e-06/0.4452, allocations: 4.5 kB / 404.5 MB, free: 10.35 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.4453, allocations: 0 / 404.5 MB, free: 10.35 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004688/0.4457, allocations: 56.02 kB / 404.5 MB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.225e-05/0.4458, allocations: 4 kB / 404.5 MB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002923/0.4461, allocations: 21.34 kB / 404.5 MB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.54e-05/0.4461, allocations: 11.94 kB / 404.5 MB, free: 10.26 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (21): * Single equations (assignments): 21 * 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.0001494/0.4463, allocations: 121.8 kB / 404.7 MB, free: 10.13 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.342e-05/0.4464, allocations: 7.906 kB / 404.7 MB, free: 10.12 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001087/0.4475, allocations: 282 kB / 404.9 MB, free: 9.844 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.515e-06/0.4475, allocations: 4 kB / 405 MB, free: 9.84 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.454e-06/0.4475, allocations: 0 / 405 MB, free: 9.84 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.985e-06/0.4475, allocations: 0 / 405 MB, free: 9.84 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001608/0.4491, allocations: 0.5777 MB / 405.5 MB, free: 9.199 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.746e-06/0.4492, allocations: 7.312 kB / 405.5 MB, free: 9.195 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004141/0.4496, allocations: 43.95 kB / 405.6 MB, free: 9.152 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.621e-06/0.4496, allocations: 0 / 405.6 MB, free: 9.152 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.246e-05/0.4497, allocations: 8 kB / 405.6 MB, free: 9.145 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.126e-06/0.4497, allocations: 0 / 405.6 MB, free: 9.145 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.991e-06/0.4497, allocations: 3.938 kB / 405.6 MB, free: 9.141 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008681/0.4506, allocations: 335.2 kB / 405.9 MB, free: 8.793 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.264e-05/0.4507, allocations: 89.02 kB / 406 MB, free: 8.688 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.348e-05/0.4507, allocations: 4 kB / 406 MB, free: 8.684 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003098/0.451, allocations: 11.98 kB / 406 MB, free: 8.672 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.773e-05/0.4511, allocations: 11.98 kB / 406 MB, free: 8.66 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.789e-05/0.4511, allocations: 11.98 kB / 406 MB, free: 8.648 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.2e-05/0.4512, allocations: 83.28 kB / 406.1 MB, free: 8.566 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.26e-07/0.4512, allocations: 0 / 406.1 MB, free: 8.566 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000505/0.4517, allocations: 44 kB / 406.2 MB, free: 8.523 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (18): * Single equations (assignments): 18 * 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.0002573/0.452, allocations: 131.1 kB / 406.3 MB, free: 8.387 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007674/0.4528, allocations: 195.8 kB / 406.5 MB, free: 8.195 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.981e-06/0.4528, allocations: 0 / 406.5 MB, free: 8.195 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003878/0.4532, allocations: 111.7 kB / 406.6 MB, free: 8.086 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003997/0.4536, allocations: 36.3 kB / 406.6 MB, free: 8.051 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009786/0.4546, allocations: 340 kB / 407 MB, free: 7.684 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003788/0.455, allocations: 0.6974 MB / 407.7 MB, free: 6.961 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002559/0.4553, allocations: 39.34 kB / 407.7 MB, free: 6.922 MB / 330.7 MB Notification: Performance of SimCode: time 1.339e-06/0.4553, allocations: 0 / 407.7 MB, free: 6.922 MB / 330.7 MB Notification: Performance of Templates: time 0.005381/0.4607, allocations: 2.313 MB / 410 MB, free: 4.609 MB / 330.7 MB