Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph") translateModel(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001282/0.001282, allocations: 175.2 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.422/1.422, allocations: 205.4 MB / 222.9 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007823/0.0007822, allocations: 86.36 kB / 271.2 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003321/0.0003322, allocations: 12 kB / 327.5 MB, free: 15.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2422/0.2426, allocations: 47.58 MB / 375.1 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph): time 0.02161/0.2642, allocations: 30.21 MB / 405.3 MB, free: 18.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01168/0.276, allocations: 14.64 MB / 420 MB, free: 3.754 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004025/0.2764, allocations: 4 kB / 420 MB, free: 3.75 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006228/0.277, allocations: 210.8 kB / 420.2 MB, free: 3.543 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005899/0.2776, allocations: 342.2 kB / 420.5 MB, free: 3.207 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01282/0.2905, allocations: 4.448 MB / 425 MB, free: 14.76 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001509/0.292, allocations: 1.204 MB / 426.2 MB, free: 13.55 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002163/0.2922, allocations: 90.03 kB / 426.2 MB, free: 13.46 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006224/0.2985, allocations: 3.321 MB / 429.6 MB, free: 10.14 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004737/0.299, allocations: 302.8 kB / 429.9 MB, free: 9.84 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 5.179e-05/0.299, allocations: 20 kB / 429.9 MB, free: 9.82 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01092/0.31, allocations: 5.81 MB / 435.7 MB, free: 4.004 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001868/0.3102, allocations: 83.7 kB / 435.8 MB, free: 3.922 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003279/0.3105, allocations: 225 kB / 436 MB, free: 3.695 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004403/0.3149, allocations: 2.576 MB / 438.6 MB, free: 1.113 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.315, allocations: 0 / 438.6 MB, free: 1.113 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.315, allocations: 0 / 438.6 MB, free: 1.113 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.694e-06/0.315, allocations: 0 / 438.6 MB, free: 1.113 MB / 314.7 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.002506/0.3175, allocations: 0.9437 MB / 439.5 MB, free: 124 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.3176, allocations: 8.031 kB / 439.5 MB, free: 116 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0013/0.3189, allocations: 172.3 kB / 439.7 MB, free: 15.95 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004078/0.3193, allocations: 319.6 kB / 440 MB, free: 15.59 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.291e-05/0.3193, allocations: 32.97 kB / 440 MB, free: 15.56 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.122e-05/0.3194, allocations: 32.38 kB / 440.1 MB, free: 15.53 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001398/0.3208, allocations: 0.5736 MB / 440.6 MB, free: 14.92 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.551e-05/0.3208, allocations: 4 kB / 440.6 MB, free: 14.91 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.809e-05/0.3209, allocations: 12 kB / 440.7 MB, free: 14.9 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.307e-06/0.3209, allocations: 8 kB / 440.7 MB, free: 14.89 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001467/0.3224, allocations: 0.5367 MB / 441.2 MB, free: 14.36 MB / 330.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.00291/0.3253, allocations: 2.616 MB / 443.8 MB, free: 11.48 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001509/0.3268, allocations: 481.8 kB / 444.3 MB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004296/0.3272, allocations: 184.7 kB / 444.5 MB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007701/0.328, allocations: 0.5677 MB / 445 MB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.998e-05/0.3281, allocations: 30.56 kB / 445.1 MB, free: 10.12 MB / 330.7 MB Notification: Performance of pre-optimization done (n=30): time 3.356e-06/0.3281, allocations: 7.984 kB / 445.1 MB, free: 10.12 MB / 330.7 MB Notification: Performance of matching and sorting (n=34): time 0.004752/0.3328, allocations: 1.606 MB / 446.7 MB, free: 8.438 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.669e-05/0.3329, allocations: 55.41 kB / 446.7 MB, free: 8.371 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002651/0.3332, allocations: 244.9 kB / 447 MB, free: 8.121 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.109e-05/0.3332, allocations: 33.7 kB / 447 MB, free: 8.082 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001109/0.3333, allocations: 176.2 kB / 447.2 MB, free: 7.906 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.374e-05/0.3334, allocations: 122.3 kB / 447.3 MB, free: 7.785 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.924e-05/0.3334, allocations: 4 kB / 447.3 MB, free: 7.781 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.3336, allocations: 342.8 kB / 447.6 MB, free: 7.438 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004369/0.334, allocations: 152.8 kB / 447.8 MB, free: 7.289 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004703/0.3345, allocations: 251.4 kB / 448 MB, free: 7.008 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008614/0.3354, allocations: 406.9 kB / 448.4 MB, free: 6.57 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.3354, allocations: 0 / 448.4 MB, free: 6.57 MB / 330.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0013/0.3367, allocations: 0.5307 MB / 449 MB, free: 6.023 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/0.3367, allocations: 7.938 kB / 449 MB, free: 6.016 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.816e-06/0.3368, allocations: 7.938 kB / 449 MB, free: 6.008 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005226/0.3373, allocations: 122.8 kB / 449.1 MB, free: 5.879 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003623/0.3377, allocations: 95.88 kB / 449.2 MB, free: 5.785 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001927/0.3396, allocations: 2.424 MB / 451.6 MB, free: 3.172 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003672/0.34, allocations: 51.95 kB / 451.7 MB, free: 3.121 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.634e-05/0.34, allocations: 20 kB / 451.7 MB, free: 3.102 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 3 (volume.medium.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 initialization (44): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002062/0.3402, allocations: 161.7 kB / 451.8 MB, free: 2.934 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.923e-05/0.3403, allocations: 31.66 kB / 451.9 MB, free: 2.902 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001936/0.3422, allocations: 1.37 MB / 453.2 MB, free: 1.516 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.632e-05/0.3423, allocations: 15.97 kB / 453.3 MB, free: 1.5 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-06/0.3423, allocations: 0 / 453.3 MB, free: 1.5 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001696/0.344, allocations: 1.456 MB / 454.7 MB, free: 15.95 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002748/0.3467, allocations: 2.143 MB / 456.9 MB, free: 13.74 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.249e-06/0.3468, allocations: 0 / 456.9 MB, free: 13.74 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003868/0.3472, allocations: 99.86 kB / 456.9 MB, free: 13.64 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003508/0.3475, allocations: 80.78 kB / 457 MB, free: 13.56 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.505e-05/0.3476, allocations: 8 kB / 457 MB, free: 13.55 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003888/0.348, allocations: 0.599 MB / 457.6 MB, free: 12.93 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.348, allocations: 4.031 kB / 457.6 MB, free: 12.93 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001823/0.3498, allocations: 1.301 MB / 458.9 MB, free: 11.6 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002146/0.35, allocations: 164.2 kB / 459.1 MB, free: 11.42 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.04e-05/0.3501, allocations: 16 kB / 459.1 MB, free: 11.41 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003129/0.3504, allocations: 43.88 kB / 459.2 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.391e-05/0.3505, allocations: 39.92 kB / 459.2 MB, free: 11.32 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.81e-05/0.3506, allocations: 16 kB / 459.2 MB, free: 11.31 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002572/0.3508, allocations: 231 kB / 459.4 MB, free: 11.08 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.11e-07/0.3508, allocations: 3.938 kB / 459.4 MB, free: 11.07 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002732/0.3536, allocations: 0.8628 MB / 460.3 MB, free: 10.21 MB / 346.7 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: 11 ($cse1.phase,$cse1.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,volume.medium.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 (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 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.003871/0.3575, allocations: 0.9621 MB / 461.3 MB, free: 9.242 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001574/0.359, allocations: 0.675 MB / 461.9 MB, free: 8.555 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.3591, allocations: 0 / 461.9 MB, free: 8.555 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006946/0.3598, allocations: 420.7 kB / 462.4 MB, free: 8.145 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00116/0.3609, allocations: 200.3 kB / 462.5 MB, free: 7.949 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002144/0.3631, allocations: 1.595 MB / 464.1 MB, free: 6.324 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004264/0.3635, allocations: 0.8688 MB / 465 MB, free: 5.434 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.877e-05/0.3636, allocations: 35.44 kB / 465 MB, free: 5.402 MB / 346.7 MB Notification: Performance of SimCode: time 7.62e-07/0.3637, allocations: 4 kB / 465.1 MB, free: 5.398 MB / 346.7 MB Notification: Performance of Templates: time 0.03672/0.4004, allocations: 24.48 MB / 489.5 MB, free: 12.88 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.sim & ./Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_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/WaterIF97_ph/WaterIF97_ph.csv","../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches