Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001921/0.001921, allocations: 106 kB / 21.18 MB, free: 0.6992 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002268/0.002268, allocations: 181.2 kB / 24.46 MB, free: 4.062 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.474/1.474, allocations: 207.6 MB / 235.2 MB, free: 10.02 MB / 190.1 MB
"
[Timeout remaining time 178]
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.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2200,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates")
translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2200,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") [Timeout 660]
"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.001756/0.001756, allocations: 47.92 kB / 348.5 MB, free: 8.734 MB / 286.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2438/0.2455, allocations: 49.16 MB / 397.6 MB, free: 9.582 MB / 318.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01302/0.2585, allocations: 13.46 MB / 411.1 MB, free: 424 kB / 318.1 MB
Notification: Performance of NFInst.instExpressions: time 0.01916/0.2777, allocations: 15.65 MB / 426.7 MB, free: 3.977 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001998/0.2779, allocations: 5.156 kB / 426.7 MB, free: 3.973 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0003947/0.2783, allocations: 85.06 kB / 426.8 MB, free: 3.902 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0003716/0.2787, allocations: 107.3 kB / 426.9 MB, free: 3.812 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.01737/0.296, allocations: 5.955 MB / 432.9 MB, free: 15.66 MB / 350.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0005336/0.2966, allocations: 350.1 kB / 433.2 MB, free: 15.46 MB / 350.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 5.301e-05/0.2966, allocations: 8.719 kB / 433.2 MB, free: 15.46 MB / 350.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0005423/0.2972, allocations: 236.5 kB / 433.5 MB, free: 15.23 MB / 350.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001686/0.2973, allocations: 103.5 kB / 433.6 MB, free: 15.13 MB / 350.1 MB
Notification: Performance of NFPackage.collectConstants: time 2.895e-05/0.2974, allocations: 12 kB / 433.6 MB, free: 15.12 MB / 350.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.01418/0.3115, allocations: 6.766 MB / 440.4 MB, free: 8.348 MB / 350.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001/0.3116, allocations: 47.83 kB / 440.4 MB, free: 8.301 MB / 350.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001772/0.3118, allocations: 103.5 kB / 440.5 MB, free: 8.199 MB / 350.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.009066/0.3209, allocations: 3.898 MB / 444.4 MB, free: 4.293 MB / 350.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.3209, allocations: 0 / 444.4 MB, free: 4.293 MB / 350.1 MB
Notification: Performance of FrontEnd: time 1.643e-06/0.3209, allocations: 0 / 444.4 MB, free: 4.293 MB / 350.1 MB
Notification: Performance of Transformations before backend: time 6.783e-06/0.3209, allocations: 0 / 444.4 MB, free: 4.293 MB / 350.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 53
 * Number of variables: 53
Notification: Performance of Generate backend data structure: time 0.00289/0.3238, allocations: 0.939 MB / 445.3 MB, free: 3.32 MB / 350.1 MB
Notification: Performance of prepare preOptimizeDAE: time 5.89e-05/0.3238, allocations: 15.98 kB / 445.4 MB, free: 3.305 MB / 350.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001465/0.3253, allocations: 176.6 kB / 445.5 MB, free: 3.133 MB / 350.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003847/0.3257, allocations: 202.2 kB / 445.7 MB, free: 2.91 MB / 350.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.874e-05/0.3257, allocations: 16.81 kB / 445.7 MB, free: 2.895 MB / 350.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 5.27e-05/0.3258, allocations: 32.08 kB / 445.8 MB, free: 2.863 MB / 350.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.003418/0.3292, allocations: 0.8973 MB / 446.7 MB, free: 1.945 MB / 350.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.706e-05/0.3292, allocations: 3.938 kB / 446.7 MB, free: 1.941 MB / 350.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.739e-05/0.3293, allocations: 12 kB / 446.7 MB, free: 1.93 MB / 350.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.3293, allocations: 4 kB / 446.7 MB, free: 1.926 MB / 350.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003468/0.3327, allocations: 0.9735 MB / 447.7 MB, free: 0.9492 MB / 350.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.001802/0.3345, allocations: 1.318 MB / 449 MB, free: 15.5 MB / 366.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.002794/0.3373, allocations: 0.7206 MB / 449.7 MB, free: 14.77 MB / 366.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0002929/0.3376, allocations: 148.8 kB / 449.8 MB, free: 14.62 MB / 366.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.07422/0.4118, allocations: 19.64 MB / 469.5 MB, free: 10.96 MB / 382.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.373e-05/0.4119, allocations: 46.48 kB / 469.5 MB, free: 10.91 MB / 382.1 MB
Notification: Performance of pre-optimization done (n=33): time 2.474e-06/0.4119, allocations: 0 / 469.5 MB, free: 10.91 MB / 382.1 MB
Notification: Performance of matching and sorting (n=33): time 0.005819/0.4177, allocations: 1.36 MB / 470.9 MB, free: 9.543 MB / 382.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 8.08e-05/0.4178, allocations: 55.41 kB / 470.9 MB, free: 9.477 MB / 382.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001968/0.418, allocations: 121.8 kB / 471.1 MB, free: 9.348 MB / 382.1 MB
Notification: Performance of collectPreVariables (initialization): time 0.0001227/0.4181, allocations: 33.7 kB / 471.1 MB, free: 9.309 MB / 382.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001264/0.4182, allocations: 120.9 kB / 471.2 MB, free: 9.188 MB / 382.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0002208/0.4185, allocations: 115.3 kB / 471.3 MB, free: 9.074 MB / 382.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003813/0.4188, allocations: 169.5 kB / 471.5 MB, free: 8.902 MB / 382.1 MB
Notification: Performance of setup shared object (initialization): time 0.0002513/0.4191, allocations: 326.8 kB / 471.8 MB, free: 8.574 MB / 382.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009098/0.42, allocations: 335.8 kB / 472.1 MB, free: 8.246 MB / 382.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008152/0.4208, allocations: 415.2 kB / 472.5 MB, free: 7.812 MB / 382.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.001487/0.4223, allocations: 0.7037 MB / 473.2 MB, free: 7.082 MB / 382.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.4223, allocations: 0 / 473.2 MB, free: 7.082 MB / 382.1 MB
Notification: Performance of matching and sorting (n=41) (initialization): time 0.002074/0.4244, allocations: 0.8719 MB / 474.1 MB, free: 6.203 MB / 382.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.4244, allocations: 8 kB / 474.1 MB, free: 6.195 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/0.4244, allocations: 7.938 kB / 474.1 MB, free: 6.188 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.05e-05/0.4244, allocations: 0 / 474.1 MB, free: 6.188 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007347/0.4252, allocations: 179.8 kB / 474.3 MB, free: 6.012 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.501e-05/0.4252, allocations: 4 kB / 474.3 MB, free: 6.008 MB / 382.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003924/0.4256, allocations: 39.95 kB / 474.4 MB, free: 5.969 MB / 382.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001339/0.4257, allocations: 63.92 kB / 474.4 MB, free: 5.906 MB / 382.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 9
 * Number of states: 0 ()
 * Number of discrete variables: 4 (medium.phase,medium.bubble2.phase,medium.bubble.phase,medium.dew.phase)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (41):
 * Single equations (assignments): 41
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of prepare postOptimizeDAE: time 0.0003193/0.426, allocations: 141.7 kB / 474.6 MB, free: 5.758 MB / 382.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001781/0.4262, allocations: 15.91 kB / 474.6 MB, free: 5.742 MB / 382.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009759/0.436, allocations: 8.505 MB / 483.1 MB, free: 13.21 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.702e-05/0.436, allocations: 23.97 kB / 483.1 MB, free: 13.19 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-05/0.436, allocations: 7.984 kB / 483.1 MB, free: 13.18 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.436, allocations: 0 / 483.1 MB, free: 13.18 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004002/0.44, allocations: 3.767 MB / 486.9 MB, free: 9.16 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.698e-06/0.44, allocations: 0 / 486.9 MB, free: 9.16 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000715/0.4408, allocations: 103.8 kB / 487 MB, free: 9.059 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 1.147e-05/0.4408, allocations: 8 kB / 487 MB, free: 9.051 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.061e-05/0.4408, allocations: 15.92 kB / 487 MB, free: 9.035 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.4408, allocations: 0 / 487 MB, free: 9.035 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.634e-06/0.4408, allocations: 4 kB / 487 MB, free: 9.031 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00286/0.4437, allocations: 1.882 MB / 488.9 MB, free: 7.129 MB / 398.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 8.761e-05/0.4438, allocations: 67.39 kB / 488.9 MB, free: 7.062 MB / 398.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.099e-05/0.4438, allocations: 11.94 kB / 489 MB, free: 7.051 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003139/0.4442, allocations: 16.06 kB / 489 MB, free: 7.035 MB / 398.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001071/0.4443, allocations: 31.94 kB / 489 MB, free: 7.004 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.501e-05/0.4443, allocations: 15.98 kB / 489 MB, free: 6.988 MB / 398.1 MB
Notification: Performance of sorting global known variables: time 7.185e-05/0.4444, allocations: 95.2 kB / 489.1 MB, free: 6.895 MB / 398.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.4444, allocations: 0 / 489.1 MB, free: 6.895 MB / 398.1 MB
Notification: Performance of remove unused functions: time 0.002898/0.4473, allocations: 0.9941 MB / 490.1 MB, free: 5.898 MB / 398.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * Number of states: 2 (medium.p,medium.h)
 * Number of discrete variables: 15 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.region3boundary,$cse10.region3boundary,medium.phase)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (43):
 * Single equations (assignments): 35
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 8
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of Backend phase and start with SimCode phase: time 0.004951/0.4522, allocations: 1.138 MB / 491.2 MB, free: 4.75 MB / 398.1 MB
Notification: Performance of simCode: created initialization part: time 0.001842/0.4541, allocations: 0.8954 MB / 492.1 MB, free: 3.855 MB / 398.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.4541, allocations: 0 / 492.1 MB, free: 3.855 MB / 398.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0008653/0.4549, allocations: 0.5322 MB / 492.7 MB, free: 3.324 MB / 398.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007395/0.4557, allocations: 76.28 kB / 492.7 MB, free: 3.25 MB / 398.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002228/0.4579, allocations: 1.348 MB / 494.1 MB, free: 1.871 MB / 398.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000562/0.4585, allocations: 0.8536 MB / 495 MB, free: 0.9922 MB / 398.1 MB
Notification: Performance of simCode: alias equations: time 0.002364/0.4608, allocations: 1.791 MB / 496.7 MB, free: 15.19 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003742/0.4612, allocations: 83.3 kB / 496.8 MB, free: 15.12 MB / 414.1 MB
Notification: Performance of SimCode: time 1.282e-06/0.4612, allocations: 0 / 496.8 MB, free: 15.12 MB / 414.1 MB
Notification: Performance of Templates: time 0.06456/0.5258, allocations: 41.67 MB / 0.5259 GB, free: 5.34 MB / 446.1 MB
"
[Timeout remaining time 659]
make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile [Timeout 660]
(rm -f Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660]
""
[Timeout remaining time 660]
Reference file matches
[Calling sys.exit(0), Time elapsed: 7.404112273827195]