Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph") Notification: Performance of loadModel(ModelicaTest): time 2.378/2.378, allocations: 234.9 MB / 250.5 MB, free: 9.691 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004843/0.0004845, allocations: 12 kB / 314.3 MB, free: 9.734 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2942/0.2947, allocations: 54.86 MB / 369.2 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph): time 0.04967/0.3445, allocations: 32.96 MB / 402.1 MB, free: 11.75 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02912/0.3736, allocations: 17.18 MB / 419.3 MB, free: 10.53 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001105/0.3748, allocations: 27.75 kB / 419.3 MB, free: 10.5 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001314/0.3761, allocations: 394.2 kB / 419.7 MB, free: 10.12 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0146/0.3907, allocations: 3.99 MB / 423.7 MB, free: 6.117 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007772/0.3985, allocations: 2.108 MB / 425.8 MB, free: 4.004 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.002662/0.4012, allocations: 1.329 MB / 427.2 MB, free: 2.676 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000878/0.4021, allocations: 413.3 kB / 427.6 MB, free: 2.258 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0135/0.4156, allocations: 6.264 MB / 433.8 MB, free: 11.99 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01754/0.4332, allocations: 8.729 MB / 442.6 MB, free: 3.254 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002184/0.4335, allocations: 36 kB / 442.6 MB, free: 3.219 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01769/0.4512, allocations: 7.18 MB / 449.8 MB, free: 12.03 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004755/0.4517, allocations: 223.4 kB / 450 MB, free: 11.81 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003802/0.4521, allocations: 185.3 kB / 450.2 MB, free: 11.62 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007809/0.4599, allocations: 3.457 MB / 453.6 MB, free: 8.148 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.196e-06/0.46, allocations: 0 / 453.6 MB, free: 8.148 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.567e-06/0.46, allocations: 0 / 453.6 MB, free: 8.148 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.377e-05/0.46, allocations: 0 / 453.6 MB, free: 8.148 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.005062/0.4651, allocations: 1.539 MB / 455.2 MB, free: 6.559 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.4652, allocations: 8.031 kB / 455.2 MB, free: 6.551 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003018/0.4682, allocations: 318.7 kB / 455.5 MB, free: 6.238 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001359/0.4696, allocations: 0.5434 MB / 456 MB, free: 5.652 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001856/0.4698, allocations: 112.7 kB / 456.1 MB, free: 5.531 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001476/0.47, allocations: 60 kB / 456.2 MB, free: 5.473 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00372/0.4737, allocations: 1.216 MB / 457.4 MB, free: 4.152 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.182e-05/0.4738, allocations: 7.938 kB / 457.4 MB, free: 4.145 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001174/0.4739, allocations: 27.98 kB / 457.4 MB, free: 4.117 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.995e-05/0.474, allocations: 45.28 kB / 457.5 MB, free: 4.074 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003975/0.478, allocations: 1.055 MB / 458.5 MB, free: 3.016 MB / 378.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.009155/0.4872, allocations: 5.619 MB / 464.2 MB, free: 13.02 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00321/0.4904, allocations: 0.798 MB / 465 MB, free: 12.2 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04635/0.5368, allocations: 19.07 MB / 484 MB, free: 6.844 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.439e-05/0.5369, allocations: 50.5 kB / 484.1 MB, free: 6.785 MB / 410.7 MB Notification: Performance of pre-optimization done (n=45): time 3.61e-06/0.5369, allocations: 0 / 484.1 MB, free: 6.785 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.00956/0.5465, allocations: 2.348 MB / 486.4 MB, free: 4.383 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000124/0.5467, allocations: 166.5 kB / 486.6 MB, free: 4.184 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001108/0.5478, allocations: 0.6014 MB / 487.2 MB, free: 3.57 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001015/0.5479, allocations: 37.7 kB / 487.2 MB, free: 3.527 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003906/0.5483, allocations: 433.5 kB / 487.6 MB, free: 3.098 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002294/0.5486, allocations: 173.6 kB / 487.8 MB, free: 2.926 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.365e-05/0.5486, allocations: 16 kB / 487.8 MB, free: 2.91 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002057/0.5489, allocations: 342.8 kB / 488.2 MB, free: 2.566 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009577/0.5498, allocations: 289.8 kB / 488.5 MB, free: 2.281 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001281/0.5511, allocations: 0.6429 MB / 489.1 MB, free: 1.469 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001095/0.5522, allocations: 396.4 kB / 489.5 MB, free: 1.082 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.314e-06/0.5523, allocations: 4 kB / 489.5 MB, free: 1.078 MB / 410.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002777/0.5551, allocations: 0.9655 MB / 490.5 MB, free: 104 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.312e-05/0.5551, allocations: 14.5 kB / 490.5 MB, free: 92 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.005e-05/0.5552, allocations: 12 kB / 490.5 MB, free: 80 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003966/0.5556, allocations: 68.81 kB / 490.5 MB, free: 8 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001787/0.5574, allocations: 315.7 kB / 490.9 MB, free: 15.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002284/0.5597, allocations: 1.992 MB / 492.8 MB, free: 13.55 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001022/0.5607, allocations: 88.06 kB / 492.9 MB, free: 13.46 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001116/0.5609, allocations: 47.98 kB / 493 MB, free: 13.42 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 10 (volume.heatTransfer.states[1].phase,fixedMassFlowRate.medium.phase,ambient.medium.phase,volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1],shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 97 * 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: 1 * 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: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0006006/0.5615, allocations: 277.4 kB / 493.2 MB, free: 13.14 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002305/0.5617, allocations: 67.25 kB / 493.3 MB, free: 13.07 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004786/0.5665, allocations: 2.601 MB / 495.9 MB, free: 10.46 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.046e-05/0.5666, allocations: 31.95 kB / 495.9 MB, free: 10.43 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.735e-06/0.5667, allocations: 3.984 kB / 496 MB, free: 10.42 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.269e-05/0.5667, allocations: 3.953 kB / 496 MB, free: 10.42 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006857/0.5735, allocations: 3.781 MB / 499.7 MB, free: 6.562 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.994e-06/0.5736, allocations: 0 / 499.7 MB, free: 6.562 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001469/0.5751, allocations: 243.7 kB / 500 MB, free: 6.324 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005412/0.5756, allocations: 88.78 kB / 0.4883 GB, free: 6.234 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.615e-05/0.5757, allocations: 15.95 kB / 0.4884 GB, free: 6.219 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002224/0.578, allocations: 1.999 MB / 0.4903 GB, free: 4.066 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.544e-06/0.578, allocations: 16 kB / 0.4903 GB, free: 4.051 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004636/0.5827, allocations: 2.369 MB / 0.4926 GB, free: 1.66 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007621/0.5835, allocations: 322.9 kB / 0.4929 GB, free: 1.324 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001997/0.5837, allocations: 15.98 kB / 0.493 GB, free: 1.309 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008478/0.5846, allocations: 55.94 kB / 0.493 GB, free: 1.254 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001658/0.5848, allocations: 52.47 kB / 0.4931 GB, free: 1.203 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.249e-05/0.5848, allocations: 20 kB / 0.4931 GB, free: 1.184 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001085/0.5859, allocations: 0.5498 MB / 0.4936 GB, free: 0.6328 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.99e-07/0.5859, allocations: 0 / 0.4936 GB, free: 0.6328 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.2561/0.8421, allocations: 1.087 MB / 0.4947 GB, free: 127.3 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 21 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,volume.heatTransfer.states[1].phase,fixedMassFlowRate.medium.phase,ambient.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * 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: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.005905/0.848, allocations: 1.214 MB / 0.4959 GB, free: 127.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003088/0.8511, allocations: 1.109 MB / 0.4969 GB, free: 127.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.884e-06/0.8512, allocations: 2 kB / 0.497 GB, free: 127.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001957/0.8531, allocations: 0.8062 MB / 0.4977 GB, free: 127 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002104/0.8553, allocations: 374.1 kB / 0.4981 GB, free: 127 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004286/0.8596, allocations: 3.077 MB / 0.5011 GB, free: 125.3 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006808/0.8603, allocations: 1.181 MB / 0.5023 GB, free: 124.6 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002832/0.8606, allocations: 74.23 kB / 0.5023 GB, free: 124.6 MB / 426.7 MB Notification: Performance of SimCode: time 1.756e-06/0.8606, allocations: 0 / 0.5023 GB, free: 124.6 MB / 426.7 MB Notification: Performance of Templates: time 0.0567/0.9173, allocations: 41.73 MB / 0.5431 GB, free: 85.73 MB / 426.7 MB