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.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) 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.WaterIF97OnePhase_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.WaterIF97OnePhase_ph") Notification: Performance of loadModel(ModelicaTest): time 1.966/1.966, allocations: 209.3 MB / 224.8 MB, free: 1.215 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004394/0.0004396, allocations: 15.98 kB / 282.5 MB, free: 9.754 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1087, allocations: 48.7 MB / 331.2 MB, free: 8.961 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph): time 0.2669/0.3756, allocations: 32.7 MB / 363.9 MB, free: 13.49 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02917/0.4049, allocations: 17.02 MB / 380.9 MB, free: 0.5352 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001325/0.4062, allocations: 22.78 kB / 380.9 MB, free: 0.5234 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001598/0.4079, allocations: 396.7 kB / 381.3 MB, free: 196 kB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01618/0.4241, allocations: 3.953 MB / 385.3 MB, free: 13.11 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008061/0.4322, allocations: 2.067 MB / 387.4 MB, free: 11.56 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002649/0.4349, allocations: 1.289 MB / 388.6 MB, free: 10.73 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008675/0.4358, allocations: 425.9 kB / 389.1 MB, free: 10.45 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01359/0.4494, allocations: 6.2 MB / 395.3 MB, free: 4.898 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01761/0.467, allocations: 8.62 MB / 403.9 MB, free: 12.27 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002242/0.4673, allocations: 36 kB / 403.9 MB, free: 12.23 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01851/0.4858, allocations: 7.066 MB / 411 MB, free: 5.16 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005064/0.4864, allocations: 219.4 kB / 411.2 MB, free: 4.945 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004017/0.4868, allocations: 193.3 kB / 411.4 MB, free: 4.75 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008165/0.495, allocations: 3.414 MB / 414.8 MB, free: 1.328 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.084e-06/0.495, allocations: 0 / 414.8 MB, free: 1.328 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.55e-06/0.495, allocations: 3.938 kB / 414.8 MB, free: 1.324 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.48e-05/0.4951, allocations: 0 / 414.8 MB, free: 1.324 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: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.004793/0.4999, allocations: 1.481 MB / 416.3 MB, free: 15.79 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.4999, allocations: 8.031 kB / 416.3 MB, free: 15.79 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003011/0.503, allocations: 298.7 kB / 416.6 MB, free: 15.49 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001353/0.5044, allocations: 0.5434 MB / 417.1 MB, free: 14.91 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001666/0.5046, allocations: 112.7 kB / 417.2 MB, free: 14.79 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001431/0.5047, allocations: 67.94 kB / 417.3 MB, free: 14.72 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003502/0.5082, allocations: 1.165 MB / 418.5 MB, free: 13.45 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.863e-05/0.5083, allocations: 15.88 kB / 418.5 MB, free: 13.44 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001244/0.5084, allocations: 28 kB / 418.5 MB, free: 13.41 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.154e-05/0.5085, allocations: 37.3 kB / 418.5 MB, free: 13.38 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002574/0.5111, allocations: 0.844 MB / 419.4 MB, free: 12.53 MB / 346.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.008974/0.5201, allocations: 5.49 MB / 424.9 MB, free: 6.672 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001833/0.522, allocations: 0.5794 MB / 425.5 MB, free: 6.074 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1225/0.6445, allocations: 49.59 MB / 475.1 MB, free: 14.73 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.221e-05/0.6446, allocations: 38.56 kB / 475.1 MB, free: 14.68 MB / 410.7 MB Notification: Performance of pre-optimization done (n=42): time 3.468e-06/0.6446, allocations: 0 / 475.1 MB, free: 14.68 MB / 410.7 MB Notification: Performance of matching and sorting (n=46): time 0.006921/0.6516, allocations: 1.938 MB / 477 MB, free: 12.69 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001203/0.6517, allocations: 158.2 kB / 477.2 MB, free: 12.5 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001027/0.6527, allocations: 0.6054 MB / 477.8 MB, free: 11.88 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.611e-05/0.6528, allocations: 45.67 kB / 477.8 MB, free: 11.83 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003845/0.6532, allocations: 433.5 kB / 478.3 MB, free: 11.4 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002073/0.6535, allocations: 173.6 kB / 478.4 MB, free: 11.23 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.757e-05/0.6535, allocations: 12 kB / 478.4 MB, free: 11.21 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000202/0.6537, allocations: 346.8 kB / 478.8 MB, free: 10.87 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005556/0.6543, allocations: 225.9 kB / 479 MB, free: 10.65 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009058/0.6552, allocations: 0.5873 MB / 479.6 MB, free: 9.883 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007332/0.656, allocations: 336.5 kB / 479.9 MB, free: 9.559 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.712e-06/0.656, allocations: 4 kB / 479.9 MB, free: 9.555 MB / 410.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002016/0.658, allocations: 0.8477 MB / 480.8 MB, free: 8.695 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.738e-05/0.6581, allocations: 15.98 kB / 480.8 MB, free: 8.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.197e-05/0.6581, allocations: 12.84 kB / 480.8 MB, free: 8.668 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004035/0.6585, allocations: 68.83 kB / 480.9 MB, free: 8.598 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00159/0.6601, allocations: 295.5 kB / 481.1 MB, free: 8.309 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002321/0.6625, allocations: 1.979 MB / 483.1 MB, free: 6.176 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009328/0.6635, allocations: 60.25 kB / 483.2 MB, free: 6.117 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.338e-05/0.6636, allocations: 47.98 kB / 483.2 MB, free: 6.07 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 10 (volume.medium.phase,ambient.medium.phase,fixedMassFlowRate.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.0005795/0.6642, allocations: 281.4 kB / 483.5 MB, free: 5.785 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002043/0.6644, allocations: 75.11 kB / 483.6 MB, free: 5.711 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003613/0.668, allocations: 2.22 MB / 485.8 MB, free: 3.477 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.556e-05/0.6681, allocations: 27.95 kB / 485.8 MB, free: 3.449 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.037e-06/0.6681, allocations: 4 kB / 485.8 MB, free: 3.445 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.527e-05/0.6681, allocations: 3.984 kB / 485.8 MB, free: 3.441 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005495/0.6736, allocations: 3.281 MB / 489.1 MB, free: 92 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-05/0.6737, allocations: 3.984 kB / 489.1 MB, free: 88 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001233/0.6749, allocations: 187.8 kB / 489.3 MB, free: 15.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005418/0.6755, allocations: 88.69 kB / 489.4 MB, free: 15.81 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.582e-05/0.6756, allocations: 19.92 kB / 489.4 MB, free: 15.79 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002171/0.6778, allocations: 1.995 MB / 491.4 MB, free: 13.64 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.618e-06/0.6778, allocations: 0 / 491.4 MB, free: 13.64 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003396/0.6812, allocations: 1.974 MB / 493.4 MB, free: 11.64 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005846/0.6818, allocations: 283.2 kB / 493.7 MB, free: 11.35 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001321/0.682, allocations: 12 kB / 493.7 MB, free: 11.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007781/0.6828, allocations: 63.81 kB / 493.7 MB, free: 11.27 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.682e-05/0.6829, allocations: 36.33 kB / 493.8 MB, free: 11.24 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.555e-05/0.683, allocations: 23.98 kB / 493.8 MB, free: 11.21 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0009278/0.6839, allocations: 0.499 MB / 494.3 MB, free: 10.71 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.91e-07/0.6839, allocations: 0 / 494.3 MB, free: 10.71 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003725/0.6876, allocations: 1.074 MB / 495.4 MB, free: 9.641 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: 16 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.006035/0.6937, allocations: 1.221 MB / 496.6 MB, free: 8.414 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002571/0.6963, allocations: 0.9242 MB / 497.5 MB, free: 7.496 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.356e-06/0.6964, allocations: 4.062 kB / 497.5 MB, free: 7.492 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001686/0.6981, allocations: 0.6638 MB / 498.2 MB, free: 6.828 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002232/0.7003, allocations: 358.5 kB / 498.5 MB, free: 6.477 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004989/0.7053, allocations: 2.759 MB / 0.4895 GB, free: 3.676 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001047/0.7064, allocations: 1.133 MB / 0.4906 GB, free: 2.52 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002524/0.7067, allocations: 63.44 kB / 0.4907 GB, free: 2.461 MB / 426.7 MB Notification: Performance of SimCode: time 1.771e-06/0.7067, allocations: 0 / 0.4907 GB, free: 2.461 MB / 426.7 MB Notification: Performance of Templates: time 0.2821/0.9888, allocations: 40.03 MB / 0.5298 GB, free: 128.7 MB / 426.7 MB