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.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.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.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph") Notification: Performance of loadModel(Modelica): time 1.782/1.782, allocations: 171.2 MB / 186.7 MB, free: 1.117 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003663/0.0003664, allocations: 12 kB / 233.2 MB, free: 0.9414 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07007/0.07047, allocations: 38.77 MB / 271.9 MB, free: 10.09 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph): time 0.2116/0.2821, allocations: 26.91 MB / 298.9 MB, free: 1.449 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.02143/0.3036, allocations: 13.19 MB / 312 MB, free: 7.656 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005348/0.3042, allocations: 3.625 kB / 312 MB, free: 7.656 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009043/0.3051, allocations: 226.5 kB / 312.3 MB, free: 7.469 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008372/0.306, allocations: 251.7 kB / 312.5 MB, free: 7.25 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01718/0.3232, allocations: 4.484 MB / 317 MB, free: 3.836 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001228/0.3244, allocations: 0.5842 MB / 317.6 MB, free: 3.469 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002171/0.3246, allocations: 84.14 kB / 317.7 MB, free: 3.418 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0068/0.3315, allocations: 3.232 MB / 320.9 MB, free: 1.73 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003967/0.3319, allocations: 191.3 kB / 321.1 MB, free: 1.543 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.679e-05/0.332, allocations: 16 kB / 321.1 MB, free: 1.527 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01441/0.3464, allocations: 5.892 MB / 327 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001817/0.3466, allocations: 75.78 kB / 327.1 MB, free: 11.55 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002126/0.3469, allocations: 109.5 kB / 327.2 MB, free: 11.44 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005621/0.3525, allocations: 2.584 MB / 329.8 MB, free: 8.848 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.301e-06/0.3525, allocations: 0 / 329.8 MB, free: 8.848 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.304e-06/0.3526, allocations: 4 kB / 329.8 MB, free: 8.844 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.734e-06/0.3526, allocations: 0 / 329.8 MB, free: 8.844 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.00243/0.355, allocations: 0.8967 MB / 330.7 MB, free: 7.895 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.3551, allocations: 16.03 kB / 330.7 MB, free: 7.879 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001689/0.3568, allocations: 151.5 kB / 330.8 MB, free: 7.73 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005714/0.3574, allocations: 314.4 kB / 331.1 MB, free: 7.383 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.43e-05/0.3574, allocations: 28.61 kB / 331.2 MB, free: 7.355 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.01e-05/0.3575, allocations: 32 kB / 331.2 MB, free: 7.324 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001694/0.3592, allocations: 0.519 MB / 331.7 MB, free: 6.77 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.357e-05/0.3593, allocations: 7.938 kB / 331.7 MB, free: 6.762 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.936e-05/0.3593, allocations: 12 kB / 331.7 MB, free: 6.75 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.495e-05/0.3594, allocations: 8 kB / 331.7 MB, free: 6.742 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009075/0.3603, allocations: 329.9 kB / 332 MB, free: 6.418 MB / 266.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004108/0.3644, allocations: 2.57 MB / 334.6 MB, free: 3.59 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000827/0.3653, allocations: 270.8 kB / 334.9 MB, free: 3.316 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07869/0.444, allocations: 31.21 MB / 366.1 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.74e-05/0.444, allocations: 34.56 kB / 366.1 MB, free: 0.5234 MB / 298.7 MB Notification: Performance of pre-optimization done (n=27): time 3.598e-06/0.4441, allocations: 0 / 366.1 MB, free: 0.5234 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.004449/0.4485, allocations: 1.212 MB / 367.3 MB, free: 15.23 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.731e-05/0.4486, allocations: 55.41 kB / 367.4 MB, free: 15.17 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003837/0.449, allocations: 258.5 kB / 367.6 MB, free: 14.91 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.592e-05/0.4491, allocations: 33.64 kB / 367.7 MB, free: 14.87 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001883/0.4493, allocations: 250.5 kB / 367.9 MB, free: 14.62 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001154/0.4494, allocations: 106.5 kB / 368 MB, free: 14.51 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.174e-05/0.4494, allocations: 4 kB / 368 MB, free: 14.51 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001809/0.4496, allocations: 330.8 kB / 368.4 MB, free: 14.18 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002496/0.4499, allocations: 96.78 kB / 368.4 MB, free: 14.08 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000342/0.4502, allocations: 210.8 kB / 368.7 MB, free: 13.82 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000313/0.4506, allocations: 139.9 kB / 368.8 MB, free: 13.69 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.476e-06/0.4506, allocations: 4 kB / 368.8 MB, free: 13.68 MB / 314.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001013/0.4516, allocations: 391.2 kB / 369.2 MB, free: 13.29 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.241e-05/0.4516, allocations: 8.781 kB / 369.2 MB, free: 13.28 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.352e-05/0.4517, allocations: 7.953 kB / 369.2 MB, free: 13.27 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003688/0.4521, allocations: 57.67 kB / 369.2 MB, free: 13.21 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004561/0.4525, allocations: 87.84 kB / 369.3 MB, free: 13.12 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002378/0.4549, allocations: 2.442 MB / 371.8 MB, free: 10.5 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003525/0.4553, allocations: 35.83 kB / 371.8 MB, free: 10.47 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.227e-05/0.4554, allocations: 20.08 kB / 371.8 MB, free: 10.45 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 3 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002719/0.4556, allocations: 163.5 kB / 372 MB, free: 10.28 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.397e-05/0.4558, allocations: 27.72 kB / 372 MB, free: 10.25 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001498/0.4573, allocations: 0.8762 MB / 372.9 MB, free: 9.367 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.567e-05/0.4573, allocations: 4 kB / 372.9 MB, free: 9.363 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.721e-06/0.4573, allocations: 7.984 kB / 372.9 MB, free: 9.355 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001385/0.4587, allocations: 1.045 MB / 373.9 MB, free: 8.223 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002427/0.4612, allocations: 1.49 MB / 375.4 MB, free: 6.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.186e-05/0.4612, allocations: 7.984 kB / 375.4 MB, free: 6.652 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002946/0.4615, allocations: 47.92 kB / 375.5 MB, free: 6.605 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004971/0.462, allocations: 76.78 kB / 375.6 MB, free: 6.527 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.941e-05/0.4621, allocations: 11.95 kB / 375.6 MB, free: 6.516 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005604/0.4626, allocations: 0.596 MB / 376.2 MB, free: 5.895 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.291e-06/0.4627, allocations: 0 / 376.2 MB, free: 5.895 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001427/0.4641, allocations: 0.8159 MB / 377 MB, free: 5.062 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001902/0.4643, allocations: 136.6 kB / 377.1 MB, free: 4.91 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.648e-05/0.4644, allocations: 8 kB / 377.1 MB, free: 4.902 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004615/0.4649, allocations: 39.91 kB / 377.2 MB, free: 4.863 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.238e-05/0.4649, allocations: 27.91 kB / 377.2 MB, free: 4.836 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.727e-05/0.465, allocations: 19.98 kB / 377.2 MB, free: 4.816 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003603/0.4654, allocations: 231.1 kB / 377.4 MB, free: 4.59 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.52e-07/0.4654, allocations: 3.938 kB / 377.4 MB, free: 4.586 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002675/0.4681, allocations: 0.8512 MB / 378.3 MB, free: 3.734 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 4 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 29 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.004637/0.4727, allocations: 0.9669 MB / 379.3 MB, free: 2.758 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001312/0.4741, allocations: 479.8 kB / 379.7 MB, free: 2.273 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.403e-06/0.4741, allocations: 8 kB / 379.7 MB, free: 2.266 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005402/0.4747, allocations: 244.4 kB / 380 MB, free: 2.027 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001189/0.4759, allocations: 176.4 kB / 380.2 MB, free: 1.855 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002236/0.4781, allocations: 1.24 MB / 381.4 MB, free: 0.5859 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005977/0.4787, allocations: 0.825 MB / 382.2 MB, free: 15.73 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001219/0.4789, allocations: 35.44 kB / 382.3 MB, free: 15.69 MB / 330.7 MB Notification: Performance of SimCode: time 1.449e-06/0.4789, allocations: 0 / 382.3 MB, free: 15.69 MB / 330.7 MB Notification: Performance of Templates: time 0.04706/0.526, allocations: 25.5 MB / 407.8 MB, free: 6.164 MB / 346.7 MB