Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph") translateModel(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001449/0.001449, allocations: 110.5 kB / 17.73 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001718/0.001719, allocations: 183.1 kB / 18.66 MB, free: 4.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.481/1.481, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 55.92 kB / 328.6 MB, free: 3.262 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09403/0.09539, allocations: 46.62 MB / 375.2 MB, free: 4.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph): time 0.2337/0.3292, allocations: 32.56 MB / 407.8 MB, free: 8.512 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01952/0.3488, allocations: 15.73 MB / 423.5 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005029/0.3494, allocations: 9.031 kB / 423.5 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001027/0.3504, allocations: 267.1 kB / 423.8 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008374/0.3513, allocations: 365.1 kB / 424.1 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01916/0.3704, allocations: 5.782 MB / 429.9 MB, free: 7.578 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001329/0.3718, allocations: 1.008 MB / 430.9 MB, free: 7.004 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002224/0.372, allocations: 107.3 kB / 431 MB, free: 6.945 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004454/0.3765, allocations: 2.212 MB / 433.2 MB, free: 5.508 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003838/0.3769, allocations: 302.8 kB / 433.5 MB, free: 5.211 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.498e-05/0.3769, allocations: 40 kB / 433.6 MB, free: 5.172 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01163/0.3886, allocations: 6.076 MB / 439.6 MB, free: 15.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001832/0.3888, allocations: 115.6 kB / 439.7 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003804/0.3892, allocations: 227.2 kB / 440 MB, free: 14.75 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007517/0.3967, allocations: 3.785 MB / 443.8 MB, free: 10.96 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.3967, allocations: 0 / 443.8 MB, free: 10.96 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.637e-06/0.3968, allocations: 0 / 443.8 MB, free: 10.96 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.275e-06/0.3968, allocations: 3.938 kB / 443.8 MB, free: 10.96 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.002046/0.3988, allocations: 0.9949 MB / 444.8 MB, free: 9.914 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.3989, allocations: 12.03 kB / 444.8 MB, free: 9.902 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001264/0.4001, allocations: 149.2 kB / 444.9 MB, free: 9.758 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004769/0.4006, allocations: 327.6 kB / 445.2 MB, free: 9.398 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.234e-05/0.4007, allocations: 25.03 kB / 445.3 MB, free: 9.375 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.074e-05/0.4007, allocations: 36.56 kB / 445.3 MB, free: 9.34 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001225/0.4019, allocations: 0.5112 MB / 445.8 MB, free: 8.789 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.704e-05/0.402, allocations: 3.984 kB / 445.8 MB, free: 8.785 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.117e-05/0.402, allocations: 12 kB / 445.8 MB, free: 8.773 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/0.402, allocations: 8 kB / 445.8 MB, free: 8.766 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006059/0.4027, allocations: 325.9 kB / 446.1 MB, free: 8.449 MB / 366.1 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.002736/0.4054, allocations: 2.56 MB / 448.7 MB, free: 5.629 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005614/0.406, allocations: 270.7 kB / 449 MB, free: 5.355 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001762/0.4062, allocations: 118 kB / 449.1 MB, free: 5.238 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06461/0.4708, allocations: 31.03 MB / 480.1 MB, free: 2.668 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.59e-05/0.4708, allocations: 38.56 kB / 480.2 MB, free: 2.621 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 1.623e-06/0.4709, allocations: 4 kB / 480.2 MB, free: 2.617 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.003317/0.4742, allocations: 1.198 MB / 481.4 MB, free: 1.34 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.596e-05/0.4742, allocations: 55.41 kB / 481.4 MB, free: 1.273 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002631/0.4745, allocations: 250.6 kB / 481.7 MB, free: 1.023 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.326e-05/0.4745, allocations: 37.64 kB / 481.7 MB, free: 0.9805 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001199/0.4747, allocations: 192.1 kB / 481.9 MB, free: 0.7891 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.267e-05/0.4747, allocations: 110.4 kB / 482 MB, free: 0.6797 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001046/0.4749, allocations: 78.05 kB / 482.1 MB, free: 0.5977 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.475, allocations: 338.8 kB / 482.4 MB, free: 264 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001561/0.4751, allocations: 92.84 kB / 482.5 MB, free: 172 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002569/0.4754, allocations: 218.9 kB / 482.7 MB, free: 15.9 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004266/0.4758, allocations: 338.3 kB / 483 MB, free: 15.52 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.4759, allocations: 7.938 kB / 483 MB, free: 15.51 MB / 414.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006937/0.4766, allocations: 410.7 kB / 483.4 MB, free: 15.09 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/0.4766, allocations: 11.28 kB / 483.4 MB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.809e-06/0.4766, allocations: 4 kB / 483.4 MB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000269/0.4769, allocations: 64.06 kB / 483.5 MB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003952/0.4773, allocations: 91.83 kB / 483.6 MB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001618/0.4789, allocations: 2.525 MB / 486.1 MB, free: 12.21 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001896/0.4791, allocations: 8 kB / 486.1 MB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.97e-05/0.4792, allocations: 28.17 kB / 486.2 MB, free: 12.17 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 3 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001935/0.4794, allocations: 161.7 kB / 486.3 MB, free: 12 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.546e-05/0.4795, allocations: 31.62 kB / 486.4 MB, free: 11.97 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009958/0.4805, allocations: 0.8632 MB / 487.2 MB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.394e-05/0.4805, allocations: 11.98 kB / 487.2 MB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/0.4805, allocations: 3.938 kB / 487.2 MB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009361/0.4814, allocations: 1.04 MB / 488.3 MB, free: 9.961 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001631/0.4831, allocations: 1.489 MB / 489.8 MB, free: 8.398 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.885e-06/0.4831, allocations: 7.922 kB / 489.8 MB, free: 8.391 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002178/0.4833, allocations: 47.98 kB / 489.8 MB, free: 8.344 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003175/0.4836, allocations: 76.69 kB / 489.9 MB, free: 8.266 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.282e-05/0.4837, allocations: 11.94 kB / 489.9 MB, free: 8.254 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003954/0.4841, allocations: 0.5876 MB / 490.5 MB, free: 7.641 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.4841, allocations: 3.875 kB / 490.5 MB, free: 7.641 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001008/0.4851, allocations: 0.8287 MB / 491.3 MB, free: 6.789 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.136e-05/0.4852, allocations: 108.7 kB / 491.4 MB, free: 6.664 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.014e-05/0.4853, allocations: 11.91 kB / 491.4 MB, free: 6.652 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003027/0.4856, allocations: 23.97 kB / 491.5 MB, free: 6.629 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.916e-05/0.4856, allocations: 19.97 kB / 491.5 MB, free: 6.609 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.81e-05/0.4857, allocations: 12 kB / 491.5 MB, free: 6.598 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002534/0.4859, allocations: 239 kB / 491.7 MB, free: 6.359 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4859, allocations: 0 / 491.7 MB, free: 6.359 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002662/0.4886, allocations: 0.8629 MB / 492.6 MB, free: 5.496 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 4 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003539/0.4922, allocations: 0.9592 MB / 493.5 MB, free: 4.523 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000946/0.4931, allocations: 490.3 kB / 494 MB, free: 4.031 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.4931, allocations: 0 / 494 MB, free: 4.031 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003514/0.4935, allocations: 241.5 kB / 494.3 MB, free: 3.797 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001044/0.4945, allocations: 195.8 kB / 494.5 MB, free: 3.609 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001568/0.4961, allocations: 0.9767 MB / 495.4 MB, free: 2.602 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003662/0.4965, allocations: 0.8211 MB / 496.3 MB, free: 1.758 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003867/0.4969, allocations: 179 kB / 496.4 MB, free: 1.586 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.187e-05/0.497, allocations: 31.44 kB / 496.5 MB, free: 1.555 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.497, allocations: 4 kB / 496.5 MB, free: 1.551 MB / 414.1 MB Notification: Performance of Templates: time 0.04753/0.5445, allocations: 34.86 MB / 0.5189 GB, free: 14.63 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.makefile (rm -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.sim & ./Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/Tests/MediaTestModels/Water/WaterIF97OnePhase_ph/WaterIF97OnePhase_ph.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches