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.WaterIF97OnePhase_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.WaterIF97OnePhase_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.WaterIF97OnePhase_ph") Notification: Performance of loadModel(ModelicaTest): time 2.224/2.224, allocations: 234.9 MB / 250.5 MB, free: 9.602 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004576/0.0004576, allocations: 16 kB / 314.3 MB, free: 9.637 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3924/0.3929, allocations: 54.85 MB / 369.2 MB, free: 12.78 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph): time 0.1026/0.4955, allocations: 32.96 MB / 402.1 MB, free: 11.73 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.04933/0.5449, allocations: 17.18 MB / 419.3 MB, free: 10.52 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001554/0.5465, allocations: 27.75 kB / 419.3 MB, free: 10.49 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002261/0.5488, allocations: 398.1 kB / 419.7 MB, free: 10.1 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01922/0.5681, allocations: 3.985 MB / 423.7 MB, free: 6.102 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007846/0.576, allocations: 2.108 MB / 425.8 MB, free: 3.988 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.002639/0.5786, allocations: 1.321 MB / 427.1 MB, free: 2.668 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008288/0.5795, allocations: 413.3 kB / 427.6 MB, free: 2.25 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01339/0.5929, allocations: 6.272 MB / 433.8 MB, free: 11.97 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01714/0.6101, allocations: 8.725 MB / 442.5 MB, free: 3.242 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001993/0.6103, allocations: 36 kB / 442.6 MB, free: 3.207 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01797/0.6283, allocations: 7.172 MB / 449.8 MB, free: 12.03 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004883/0.6288, allocations: 235.3 kB / 450 MB, free: 11.8 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003796/0.6292, allocations: 189.3 kB / 450.2 MB, free: 11.61 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007793/0.637, allocations: 3.457 MB / 453.6 MB, free: 8.141 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.6371, allocations: 4 kB / 453.6 MB, free: 8.137 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.623e-06/0.6371, allocations: 4 kB / 453.6 MB, free: 8.133 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.227e-05/0.6371, allocations: 0 / 453.6 MB, free: 8.133 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.004736/0.6419, allocations: 1.496 MB / 455.1 MB, free: 6.586 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.6419, allocations: 8.031 kB / 455.1 MB, free: 6.578 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002936/0.6449, allocations: 314.7 kB / 455.4 MB, free: 6.27 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001325/0.6462, allocations: 0.5434 MB / 456 MB, free: 5.684 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001582/0.6464, allocations: 112.6 kB / 456.1 MB, free: 5.562 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001454/0.6466, allocations: 60 kB / 456.2 MB, free: 5.504 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003389/0.65, allocations: 1.173 MB / 457.3 MB, free: 4.227 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.049e-05/0.65, allocations: 0 / 457.3 MB, free: 4.227 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001252/0.6502, allocations: 32 kB / 457.4 MB, free: 4.195 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.707e-05/0.6503, allocations: 45.23 kB / 457.4 MB, free: 4.152 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00253/0.6528, allocations: 0.8401 MB / 458.2 MB, free: 3.309 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.008835/0.6617, allocations: 5.494 MB / 463.7 MB, free: 13.44 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00177/0.6635, allocations: 0.5733 MB / 464.3 MB, free: 12.85 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3723/1.036, allocations: 49.7 MB / 0.502 GB, free: 124.6 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.791e-05/1.036, allocations: 46.84 kB / 0.502 GB, free: 124.6 MB / 426.7 MB Notification: Performance of pre-optimization done (n=42): time 4.07e-06/1.036, allocations: 0 / 0.502 GB, free: 124.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=46): time 0.006719/1.043, allocations: 1.936 MB / 0.5039 GB, free: 123.7 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.474e-05/1.043, allocations: 162.5 kB / 0.5041 GB, free: 123.5 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007979/1.044, allocations: 0.5989 MB / 0.5046 GB, free: 123.2 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.353e-05/1.044, allocations: 37.23 kB / 0.5047 GB, free: 123.1 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002287/1.044, allocations: 449.7 kB / 0.5051 GB, free: 122.7 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001357/1.044, allocations: 168.6 kB / 0.5053 GB, free: 122.6 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.501e-05/1.044, allocations: 12 kB / 0.5053 GB, free: 122.6 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.127e-05/1.044, allocations: 340.7 kB / 0.5056 GB, free: 122.2 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005166/1.045, allocations: 233.9 kB / 0.5058 GB, free: 122.1 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006797/1.045, allocations: 0.5893 MB / 0.5064 GB, free: 121.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000668/1.046, allocations: 336.7 kB / 0.5067 GB, free: 121.3 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.109e-06/1.046, allocations: 3.781 kB / 0.5067 GB, free: 121.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.00181/1.048, allocations: 0.8601 MB / 0.5076 GB, free: 120.8 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.021e-05/1.048, allocations: 12 kB / 0.5076 GB, free: 120.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.79e-05/1.048, allocations: 12 kB / 0.5076 GB, free: 120.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003949/1.048, allocations: 65.47 kB / 0.5076 GB, free: 120.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00145/1.05, allocations: 291.6 kB / 0.5079 GB, free: 120.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001441/1.051, allocations: 1.98 MB / 0.5099 GB, free: 118.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000886/1.052, allocations: 64.11 kB / 0.5099 GB, free: 118.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.304e-05/1.052, allocations: 44 kB / 0.51 GB, free: 118.2 MB / 426.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.0004633/1.053, allocations: 279.5 kB / 0.5102 GB, free: 117.9 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001735/1.053, allocations: 71.16 kB / 0.5103 GB, free: 117.8 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002694/1.056, allocations: 2.215 MB / 0.5125 GB, free: 115.6 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.981e-05/1.056, allocations: 30.48 kB / 0.5125 GB, free: 115.6 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.409e-06/1.056, allocations: 7.984 kB / 0.5125 GB, free: 115.5 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.461e-06/1.056, allocations: 3.953 kB / 0.5125 GB, free: 115.5 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004007/1.06, allocations: 3.279 MB / 0.5157 GB, free: 112.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.239e-06/1.06, allocations: 4.031 kB / 0.5157 GB, free: 112.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001111/1.061, allocations: 187.8 kB / 0.5159 GB, free: 112 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004742/1.061, allocations: 92.77 kB / 0.516 GB, free: 111.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.42e-05/1.062, allocations: 11.95 kB / 0.516 GB, free: 111.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001352/1.063, allocations: 2.002 MB / 0.5179 GB, free: 109.8 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.714e-06/1.063, allocations: 0 / 0.5179 GB, free: 109.8 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002486/1.065, allocations: 1.978 MB / 0.5199 GB, free: 107.8 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004662/1.066, allocations: 283.3 kB / 0.5201 GB, free: 107.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001226/1.066, allocations: 12 kB / 0.5202 GB, free: 107.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007135/1.067, allocations: 55.95 kB / 0.5202 GB, free: 107.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.942e-05/1.067, allocations: 32.39 kB / 0.5202 GB, free: 107.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.663e-05/1.067, allocations: 19.98 kB / 0.5203 GB, free: 107.3 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0007043/1.068, allocations: 0.499 MB / 0.5207 GB, free: 106.9 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.62e-07/1.068, allocations: 0 / 0.5207 GB, free: 106.9 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003138/1.071, allocations: 1.087 MB / 0.5218 GB, free: 105.8 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.005235/1.076, allocations: 1.227 MB / 0.523 GB, free: 104.8 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002172/1.078, allocations: 0.9223 MB / 0.5239 GB, free: 103.9 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.532e-06/1.078, allocations: 7.844 kB / 0.5239 GB, free: 103.9 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001355/1.08, allocations: 0.6638 MB / 0.5246 GB, free: 103.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002055/1.082, allocations: 355.2 kB / 0.5249 GB, free: 102.9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003834/1.086, allocations: 2.767 MB / 0.5276 GB, free: 100.1 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000604/1.086, allocations: 1.133 MB / 0.5287 GB, free: 98.93 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002247/1.087, allocations: 63.44 kB / 0.5288 GB, free: 98.86 MB / 426.7 MB Notification: Performance of SimCode: time 1.55e-06/1.087, allocations: 0 / 0.5288 GB, free: 98.86 MB / 426.7 MB Notification: Performance of Templates: time 0.05565/1.142, allocations: 40.2 MB / 0.568 GB, free: 58.64 MB / 426.7 MB