Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph") Notification: Performance of loadModel(ModelicaTest): time 2.002/2.002, allocations: 209.2 MB / 224.8 MB, free: 192 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004411/0.0004412, allocations: 12 kB / 282.6 MB, free: 9.578 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2869/0.2873, allocations: 48.7 MB / 331.3 MB, free: 6.488 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.069/6.356, allocations: 2.516 GB / 2.84 GB, free: 29.17 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002722/6.357, allocations: 94.75 kB / 2.84 GB, free: 29.11 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.139/8.495, allocations: 491.3 MB / 3.319 GB, free: 52.63 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.565e-06/8.495, allocations: 0 / 3.319 GB, free: 52.63 MB / 458.7 MB Notification: Performance of Transformations before backend: time 6.551e-05/8.495, allocations: 18.62 kB / 3.319 GB, free: 52.63 MB / 458.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.006419/8.502, allocations: 1.79 MB / 3.321 GB, free: 51.67 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/8.502, allocations: 7.438 kB / 3.321 GB, free: 51.67 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003177/8.505, allocations: 322.2 kB / 3.322 GB, free: 51.6 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001461/8.506, allocations: 0.6025 MB / 3.322 GB, free: 51.22 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001303/8.507, allocations: 115.6 kB / 3.322 GB, free: 51.13 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001316/8.507, allocations: 61.47 kB / 3.322 GB, free: 51.11 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003349/8.51, allocations: 1.199 MB / 3.323 GB, free: 50.54 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.192e-05/8.51, allocations: 3.375 kB / 3.323 GB, free: 50.54 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001143/8.51, allocations: 31.11 kB / 3.323 GB, free: 50.53 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.658e-05/8.51, allocations: 46.11 kB / 3.324 GB, free: 50.52 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003465/8.514, allocations: 1.055 MB / 3.325 GB, free: 50.22 MB / 458.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.006996/8.521, allocations: 5.595 MB / 3.33 GB, free: 45.77 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003029/8.524, allocations: 0.7925 MB / 3.331 GB, free: 45.54 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04107/8.565, allocations: 18.71 MB / 3.349 GB, free: 33.46 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.729e-05/8.565, allocations: 46.09 kB / 3.349 GB, free: 33.41 MB / 458.7 MB Notification: Performance of pre-optimization done (n=45): time 3.208e-06/8.565, allocations: 0 / 3.349 GB, free: 33.41 MB / 458.7 MB Notification: Performance of matching and sorting (n=49): time 0.009039/8.574, allocations: 2.346 MB / 3.351 GB, free: 32.42 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.909e-05/8.574, allocations: 162.5 kB / 3.352 GB, free: 32.23 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008091/8.575, allocations: 0.5245 MB / 3.352 GB, free: 31.98 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 7.853e-05/8.575, allocations: 37.67 kB / 3.352 GB, free: 31.95 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002186/8.575, allocations: 432.6 kB / 3.353 GB, free: 31.58 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001548/8.576, allocations: 178 kB / 3.353 GB, free: 31.45 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.259e-05/8.576, allocations: 15.5 kB / 3.353 GB, free: 31.43 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 8.04e-05/8.576, allocations: 341.4 kB / 3.353 GB, free: 31.11 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008567/8.577, allocations: 295.7 kB / 3.353 GB, free: 31.01 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001004/8.578, allocations: 0.6386 MB / 3.354 GB, free: 30.45 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008785/8.579, allocations: 394.7 kB / 3.354 GB, free: 30.29 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.379e-06/8.579, allocations: 3.969 kB / 3.354 GB, free: 30.29 MB / 458.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002461/8.581, allocations: 0.9594 MB / 3.355 GB, free: 29.91 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.731e-05/8.581, allocations: 14.5 kB / 3.355 GB, free: 29.91 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.664e-05/8.581, allocations: 15.62 kB / 3.355 GB, free: 29.91 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004034/8.582, allocations: 68.62 kB / 3.355 GB, free: 29.89 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00178/8.583, allocations: 322.9 kB / 3.356 GB, free: 29.86 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001532/8.585, allocations: 1.978 MB / 3.358 GB, free: 27.91 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001121/8.586, allocations: 85.81 kB / 3.358 GB, free: 27.89 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001142/8.586, allocations: 42.62 kB / 3.358 GB, free: 27.88 MB / 458.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.0005514/8.587, allocations: 277.5 kB / 3.358 GB, free: 27.68 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001963/8.587, allocations: 69.91 kB / 3.358 GB, free: 27.65 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003919/8.591, allocations: 2.613 MB / 3.361 GB, free: 26.44 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.973e-05/8.591, allocations: 37.92 kB / 3.361 GB, free: 26.43 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.443e-06/8.591, allocations: 0 / 3.361 GB, free: 26.43 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.197e-05/8.591, allocations: 3.469 kB / 3.361 GB, free: 26.43 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006085/8.597, allocations: 3.784 MB / 3.364 GB, free: 24.62 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.1e-05/8.597, allocations: 3.375 kB / 3.364 GB, free: 24.62 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001531/8.599, allocations: 240.7 kB / 3.365 GB, free: 24.61 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005565/8.599, allocations: 96.77 kB / 3.365 GB, free: 24.57 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.242e-05/8.599, allocations: 11.97 kB / 3.365 GB, free: 24.56 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001652/8.601, allocations: 1.998 MB / 3.367 GB, free: 22.61 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.274e-06/8.601, allocations: 3.812 kB / 3.367 GB, free: 22.61 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004258/8.605, allocations: 2.378 MB / 3.369 GB, free: 20.99 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006399/8.606, allocations: 330.7 kB / 3.369 GB, free: 20.69 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001532/8.606, allocations: 12 kB / 3.369 GB, free: 20.68 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007566/8.607, allocations: 58.28 kB / 3.369 GB, free: 20.63 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001419/8.607, allocations: 53.08 kB / 3.369 GB, free: 20.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.804e-05/8.607, allocations: 23.42 kB / 3.369 GB, free: 20.58 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0008646/8.608, allocations: 0.5499 MB / 3.37 GB, free: 20.11 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.86e-07/8.608, allocations: 0 / 3.37 GB, free: 20.11 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004817/8.613, allocations: 1.13 MB / 3.371 GB, free: 19 MB / 458.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.007813/8.621, allocations: 1.539 MB / 3.373 GB, free: 17.82 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002845/8.624, allocations: 1.105 MB / 3.374 GB, free: 16.86 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.99e-06/8.624, allocations: 0 / 3.374 GB, free: 16.86 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00171/8.625, allocations: 0.7963 MB / 3.374 GB, free: 16.14 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002202/8.628, allocations: 362.8 kB / 3.375 GB, free: 15.88 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005703/8.633, allocations: 3.069 MB / 3.378 GB, free: 13.09 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001077/8.635, allocations: 1.181 MB / 3.379 GB, free: 12.05 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003171/8.635, allocations: 71.44 kB / 3.379 GB, free: 11.98 MB / 458.7 MB Notification: Performance of SimCode: time 3.101e-06/8.635, allocations: 0 / 3.379 GB, free: 11.98 MB / 458.7 MB Notification: Performance of Templates: time 0.3536/8.989, allocations: 42.02 MB / 3.42 GB, free: 49.45 MB / 458.7 MB