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 1.951/1.951, allocations: 209.3 MB / 224.8 MB, free: 0.5273 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004383/0.0004382, allocations: 15.98 kB / 282.5 MB, free: 9.676 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2877/0.2881, allocations: 48.7 MB / 331.2 MB, free: 6.508 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph): time 0.04899/0.3372, allocations: 32.71 MB / 363.9 MB, free: 13.72 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0434/0.3806, allocations: 17.01 MB / 380.9 MB, free: 12.71 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001702/0.3824, allocations: 27.75 kB / 380.9 MB, free: 12.69 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00234/0.3848, allocations: 398.1 kB / 381.3 MB, free: 12.3 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02459/0.4094, allocations: 3.946 MB / 385.3 MB, free: 8.34 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01232/0.4218, allocations: 2.076 MB / 387.4 MB, free: 6.258 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004235/0.426, allocations: 1.302 MB / 388.7 MB, free: 4.949 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001477/0.4276, allocations: 413.2 kB / 389.1 MB, free: 4.531 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02118/0.4488, allocations: 6.186 MB / 395.3 MB, free: 14.34 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02384/0.4727, allocations: 8.628 MB / 403.9 MB, free: 5.707 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001944/0.4729, allocations: 36 kB / 403.9 MB, free: 5.672 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01819/0.4911, allocations: 7.07 MB / 411 MB, free: 14.59 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004988/0.4917, allocations: 219.4 kB / 411.2 MB, free: 14.38 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003859/0.4921, allocations: 189.3 kB / 411.4 MB, free: 14.19 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008005/0.5001, allocations: 3.411 MB / 414.8 MB, free: 10.77 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.115e-06/0.5001, allocations: 0 / 414.8 MB, free: 10.77 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.739e-06/0.5002, allocations: 4 kB / 414.8 MB, free: 10.77 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.568e-05/0.5002, allocations: 4 kB / 414.8 MB, free: 10.76 MB / 346.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.004916/0.5051, allocations: 1.508 MB / 416.3 MB, free: 9.203 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.5052, allocations: 12.03 kB / 416.3 MB, free: 9.191 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002988/0.5082, allocations: 302.7 kB / 416.6 MB, free: 8.895 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001309/0.5095, allocations: 0.5472 MB / 417.2 MB, free: 8.305 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001822/0.5097, allocations: 116.7 kB / 417.3 MB, free: 8.176 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001451/0.5099, allocations: 63.98 kB / 417.3 MB, free: 8.113 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003679/0.5136, allocations: 1.212 MB / 418.6 MB, free: 6.805 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.214e-05/0.5136, allocations: 4 kB / 418.6 MB, free: 6.801 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001159/0.5138, allocations: 28 kB / 418.6 MB, free: 6.773 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.55e-05/0.5139, allocations: 53.22 kB / 418.6 MB, free: 6.723 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003657/0.5176, allocations: 1.047 MB / 419.7 MB, free: 5.676 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.009721/0.5273, allocations: 5.622 MB / 425.3 MB, free: 15.68 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003205/0.5306, allocations: 0.794 MB / 426.1 MB, free: 14.87 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04463/0.5752, allocations: 18.97 MB / 445.1 MB, free: 9.598 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.924e-05/0.5753, allocations: 39.28 kB / 445.1 MB, free: 9.551 MB / 378.7 MB Notification: Performance of pre-optimization done (n=45): time 3.593e-06/0.5753, allocations: 0 / 445.1 MB, free: 9.551 MB / 378.7 MB Notification: Performance of matching and sorting (n=49): time 0.008974/0.5843, allocations: 2.355 MB / 447.5 MB, free: 7.141 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001115/0.5845, allocations: 162.7 kB / 447.6 MB, free: 6.945 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001012/0.5855, allocations: 0.5937 MB / 448.2 MB, free: 6.34 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.423e-05/0.5856, allocations: 37.7 kB / 448.3 MB, free: 6.297 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003802/0.586, allocations: 445.4 kB / 448.7 MB, free: 5.855 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002004/0.5862, allocations: 169.6 kB / 448.9 MB, free: 5.688 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.477e-05/0.5863, allocations: 20 kB / 448.9 MB, free: 5.668 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001957/0.5865, allocations: 338.8 kB / 449.2 MB, free: 5.328 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008931/0.5874, allocations: 293.8 kB / 449.5 MB, free: 5.043 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001186/0.5886, allocations: 0.6428 MB / 450.1 MB, free: 4.23 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001021/0.5896, allocations: 384.5 kB / 450.5 MB, free: 3.855 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.084e-06/0.5897, allocations: 4 kB / 450.5 MB, free: 3.852 MB / 378.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002619/0.5923, allocations: 0.9692 MB / 451.5 MB, free: 2.871 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.141e-05/0.5923, allocations: 8 kB / 451.5 MB, free: 2.863 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.008e-05/0.5924, allocations: 12 kB / 451.5 MB, free: 2.852 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003976/0.5928, allocations: 80.75 kB / 451.6 MB, free: 2.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001675/0.5945, allocations: 311.8 kB / 451.9 MB, free: 2.465 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002215/0.5967, allocations: 1.991 MB / 453.9 MB, free: 320 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009975/0.5977, allocations: 88.06 kB / 454 MB, free: 232 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.876e-05/0.5978, allocations: 48 kB / 454 MB, free: 184 kB / 378.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.000561/0.5984, allocations: 273.4 kB / 454.3 MB, free: 15.9 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000196/0.5986, allocations: 71.16 kB / 454.3 MB, free: 15.83 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00457/0.6032, allocations: 2.598 MB / 456.9 MB, free: 13.23 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.892e-05/0.6033, allocations: 35.94 kB / 457 MB, free: 13.19 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.15e-06/0.6033, allocations: 0 / 457 MB, free: 13.19 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.781e-06/0.6033, allocations: 0 / 457 MB, free: 13.19 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006745/0.6101, allocations: 3.785 MB / 460.8 MB, free: 9.336 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.111e-06/0.6101, allocations: 4 kB / 460.8 MB, free: 9.332 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001466/0.6116, allocations: 247.7 kB / 461 MB, free: 9.09 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005207/0.6122, allocations: 84.72 kB / 461.1 MB, free: 9.004 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.889e-05/0.6122, allocations: 15.98 kB / 461.1 MB, free: 8.988 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002144/0.6144, allocations: 2.007 MB / 463.1 MB, free: 6.816 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.077e-06/0.6144, allocations: 0 / 463.1 MB, free: 6.816 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004472/0.6189, allocations: 2.365 MB / 465.5 MB, free: 4.426 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000666/0.6196, allocations: 326.9 kB / 465.8 MB, free: 4.086 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001409/0.6198, allocations: 19.94 kB / 465.8 MB, free: 4.066 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007468/0.6205, allocations: 63.88 kB / 465.9 MB, free: 4.004 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001512/0.6207, allocations: 56.48 kB / 465.9 MB, free: 3.949 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.844e-05/0.6208, allocations: 16 kB / 466 MB, free: 3.934 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001013/0.6218, allocations: 0.5459 MB / 466.5 MB, free: 3.387 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.71e-07/0.6218, allocations: 0 / 466.5 MB, free: 3.387 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003564/0.6254, allocations: 1.085 MB / 467.6 MB, free: 2.301 MB / 394.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.005659/0.6311, allocations: 1.204 MB / 468.8 MB, free: 1.094 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003277/0.6344, allocations: 1.105 MB / 469.9 MB, free: 15.99 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.084e-06/0.6344, allocations: 8.062 kB / 469.9 MB, free: 15.98 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002111/0.6366, allocations: 0.8011 MB / 470.7 MB, free: 15.19 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002231/0.6388, allocations: 367.2 kB / 471.1 MB, free: 14.84 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005485/0.6443, allocations: 3.082 MB / 474.1 MB, free: 11.72 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001097/0.6455, allocations: 1.177 MB / 475.3 MB, free: 10.51 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002872/0.6458, allocations: 75.42 kB / 475.4 MB, free: 10.44 MB / 410.7 MB Notification: Performance of SimCode: time 1.626e-06/0.6458, allocations: 4 kB / 475.4 MB, free: 10.43 MB / 410.7 MB Notification: Performance of Templates: time 0.2901/0.9359, allocations: 41.58 MB / 0.5049 GB, free: 116.9 MB / 410.7 MB