Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001324/0.001324, allocations: 105.1 kB / 21.22 MB, free: 0.5117 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001445/0.001445, allocations: 213.9 kB / 24.54 MB, free: 3.875 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.452/1.452, allocations: 230.6 MB / 258.3 MB, free: 8.02 MB / 206.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo)
Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo)
Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") [Timeout 660]
"Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Notification: Performance of FrontEnd - loaded program: time 0.00197/0.00197, allocations: 68.77 kB / 379.9 MB, free: 1.793 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2469/0.2489, allocations: 53.37 MB / 433.2 MB, free: 6.641 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01752/0.2664, allocations: 13.56 MB / 446.8 MB, free: 9.039 MB / 350.1 MB
Notification: Performance of NFInst.instExpressions: time 0.01881/0.2852, allocations: 15.66 MB / 462.5 MB, free: 9.328 MB / 366.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001242/0.2854, allocations: 0 / 462.5 MB, free: 9.328 MB / 366.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0003552/0.2857, allocations: 87.47 kB / 462.5 MB, free: 9.242 MB / 366.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0003393/0.286, allocations: 115.2 kB / 462.7 MB, free: 9.129 MB / 366.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.01532/0.3014, allocations: 5.987 MB / 468.6 MB, free: 3.148 MB / 366.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0006116/0.302, allocations: 338.6 kB / 469 MB, free: 2.816 MB / 366.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 6.515e-05/0.302, allocations: 13.8 kB / 469 MB, free: 2.801 MB / 366.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.000512/0.3026, allocations: 246.9 kB / 469.2 MB, free: 2.559 MB / 366.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001808/0.3027, allocations: 111.5 kB / 469.3 MB, free: 2.449 MB / 366.1 MB
Notification: Performance of NFPackage.collectConstants: time 3.213e-05/0.3028, allocations: 16 kB / 469.4 MB, free: 2.434 MB / 366.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0129/0.3157, allocations: 6.771 MB / 476.1 MB, free: 11.66 MB / 382.1 MB
Notification: Performance of NFScalarize.scalarize: time 8.685e-05/0.3158, allocations: 47.91 kB / 476.2 MB, free: 11.61 MB / 382.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001589/0.3159, allocations: 107.5 kB / 476.3 MB, free: 11.5 MB / 382.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.007547/0.3235, allocations: 3.913 MB / 480.2 MB, free: 7.582 MB / 382.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.3235, allocations: 0 / 480.2 MB, free: 7.582 MB / 382.1 MB
Notification: Performance of FrontEnd: time 1.292e-06/0.3235, allocations: 0 / 480.2 MB, free: 7.582 MB / 382.1 MB
Notification: Performance of Transformations before backend: time 9.027e-06/0.3235, allocations: 4 kB / 480.2 MB, free: 7.578 MB / 382.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.002516/0.326, allocations: 0.9467 MB / 481.1 MB, free: 6.598 MB / 382.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.326, allocations: 15.97 kB / 481.2 MB, free: 6.582 MB / 382.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001404/0.3274, allocations: 176.6 kB / 481.3 MB, free: 6.41 MB / 382.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003769/0.3278, allocations: 206.1 kB / 481.5 MB, free: 6.184 MB / 382.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.263e-05/0.3278, allocations: 16.81 kB / 481.5 MB, free: 6.168 MB / 382.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 5.55e-05/0.3279, allocations: 28.12 kB / 481.6 MB, free: 6.141 MB / 382.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.003218/0.3311, allocations: 0.9051 MB / 482.5 MB, free: 5.219 MB / 382.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.3311, allocations: 0 / 482.5 MB, free: 5.219 MB / 382.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.975e-05/0.3312, allocations: 8 kB / 482.5 MB, free: 5.211 MB / 382.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.285e-06/0.3312, allocations: 4 kB / 482.5 MB, free: 5.207 MB / 382.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003377/0.3345, allocations: 0.9695 MB / 483.5 MB, free: 4.234 MB / 382.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.001734/0.3363, allocations: 1.315 MB / 484.8 MB, free: 2.793 MB / 382.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.002768/0.339, allocations: 0.7255 MB / 485.5 MB, free: 2.059 MB / 382.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0003013/0.3393, allocations: 152.8 kB / 485.7 MB, free: 1.906 MB / 382.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.0714/0.4107, allocations: 20.56 MB / 0.4943 GB, free: 13.32 MB / 414.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.52e-05/0.4108, allocations: 34.56 kB / 0.4944 GB, free: 13.27 MB / 414.1 MB
Notification: Performance of pre-optimization done (n=33): time 1.973e-06/0.4108, allocations: 0 / 0.4944 GB, free: 13.27 MB / 414.1 MB
Notification: Performance of matching and sorting (n=33): time 0.00566/0.4165, allocations: 1.364 MB / 0.4957 GB, free: 11.9 MB / 414.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.148e-05/0.4165, allocations: 55.41 kB / 0.4958 GB, free: 11.84 MB / 414.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001346/0.4166, allocations: 117.8 kB / 0.4959 GB, free: 11.71 MB / 414.1 MB
Notification: Performance of collectPreVariables (initialization): time 8.073e-05/0.4167, allocations: 37.7 kB / 0.4959 GB, free: 11.67 MB / 414.1 MB
Notification: Performance of collectInitialEqns (initialization): time 8.289e-05/0.4168, allocations: 120.8 kB / 0.496 GB, free: 11.55 MB / 414.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001442/0.4169, allocations: 119 kB / 0.4961 GB, free: 11.43 MB / 414.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002954/0.4172, allocations: 161.6 kB / 0.4963 GB, free: 11.27 MB / 414.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001498/0.4174, allocations: 326.8 kB / 0.4966 GB, free: 10.94 MB / 414.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006794/0.4181, allocations: 343.6 kB / 0.4969 GB, free: 10.6 MB / 414.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007612/0.4188, allocations: 407.5 kB / 0.4973 GB, free: 10.18 MB / 414.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.001455/0.4203, allocations: 0.704 MB / 0.498 GB, free: 9.445 MB / 414.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.4203, allocations: 0 / 0.498 GB, free: 9.445 MB / 414.1 MB
Notification: Performance of matching and sorting (n=41) (initialization): time 0.001974/0.4223, allocations: 0.8797 MB / 0.4989 GB, free: 8.559 MB / 414.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.177e-05/0.4223, allocations: 8 kB / 0.4989 GB, free: 8.551 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.4223, allocations: 7.875 kB / 0.4989 GB, free: 8.543 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.088e-05/0.4223, allocations: 4 kB / 0.4989 GB, free: 8.539 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007161/0.423, allocations: 175.8 kB / 0.4991 GB, free: 8.367 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.146e-05/0.423, allocations: 4.25 kB / 0.4991 GB, free: 8.363 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003636/0.4234, allocations: 31.84 kB / 0.4991 GB, free: 8.332 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001322/0.4235, allocations: 67.92 kB / 0.4992 GB, free: 8.266 MB / 414.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.0002668/0.4238, allocations: 137.7 kB / 0.4993 GB, free: 8.121 MB / 414.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001534/0.424, allocations: 15.91 kB / 0.4993 GB, free: 8.105 MB / 414.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008871/0.4328, allocations: 8.513 MB / 0.5076 GB, free: 15.57 MB / 430.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-05/0.4329, allocations: 27.95 kB / 0.5076 GB, free: 15.55 MB / 430.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/0.4329, allocations: 4 kB / 0.5076 GB, free: 15.54 MB / 430.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/0.4329, allocations: 0 / 0.5076 GB, free: 15.54 MB / 430.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003586/0.4365, allocations: 3.767 MB / 0.5113 GB, free: 11.52 MB / 430.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.985e-06/0.4365, allocations: 3.938 kB / 0.5113 GB, free: 11.52 MB / 430.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006827/0.4372, allocations: 111.8 kB / 0.5114 GB, free: 11.41 MB / 430.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 9.498e-06/0.4372, allocations: 4 kB / 0.5114 GB, free: 11.4 MB / 430.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.84e-05/0.4372, allocations: 11.94 kB / 0.5115 GB, free: 11.39 MB / 430.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.008e-06/0.4372, allocations: 4 kB / 0.5115 GB, free: 11.39 MB / 430.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.4372, allocations: 0 / 0.5115 GB, free: 11.39 MB / 430.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002665/0.4399, allocations: 1.886 MB / 0.5133 GB, free: 9.48 MB / 430.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 8.072e-05/0.44, allocations: 67.33 kB / 0.5134 GB, free: 9.414 MB / 430.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.412e-05/0.44, allocations: 11.94 kB / 0.5134 GB, free: 9.402 MB / 430.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000309/0.4403, allocations: 20.05 kB / 0.5134 GB, free: 9.383 MB / 430.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 9.468e-05/0.4404, allocations: 27.94 kB / 0.5134 GB, free: 9.355 MB / 430.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.512e-05/0.4405, allocations: 23.98 kB / 0.5134 GB, free: 9.332 MB / 430.1 MB
Notification: Performance of sorting global known variables: time 6.338e-05/0.4405, allocations: 91.22 kB / 0.5135 GB, free: 9.242 MB / 430.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.4405, allocations: 0 / 0.5135 GB, free: 9.242 MB / 430.1 MB
Notification: Performance of remove unused functions: time 0.002686/0.4432, allocations: 1.002 MB / 0.5145 GB, free: 8.238 MB / 430.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.004187/0.4474, allocations: 1.145 MB / 0.5156 GB, free: 7.086 MB / 430.1 MB
Notification: Performance of simCode: created initialization part: time 0.001646/0.4491, allocations: 0.8994 MB / 0.5165 GB, free: 6.188 MB / 430.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.4491, allocations: 0 / 0.5165 GB, free: 6.188 MB / 430.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0007535/0.4498, allocations: 0.5283 MB / 0.517 GB, free: 5.66 MB / 430.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005894/0.4504, allocations: 91.09 kB / 0.5171 GB, free: 5.574 MB / 430.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001953/0.4524, allocations: 1.349 MB / 0.5184 GB, free: 4.195 MB / 430.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004523/0.4528, allocations: 0.8536 MB / 0.5193 GB, free: 3.316 MB / 430.1 MB
Notification: Performance of simCode: alias equations: time 0.002008/0.4548, allocations: 1.787 MB / 0.521 GB, free: 1.531 MB / 430.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003263/0.4552, allocations: 87.36 kB / 0.5211 GB, free: 1.445 MB / 430.1 MB
Notification: Performance of SimCode: time 3.61e-07/0.4552, allocations: 0 / 0.5211 GB, free: 1.445 MB / 430.1 MB
Notification: Performance of Templates: time 0.2294/0.6846, allocations: 41.84 MB / 0.5619 GB, free: 92.09 MB / 446.1 MB
"
[Timeout remaining time 659]
make -j1 -f Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile [Timeout 660]
(rm -f Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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.29199025593698]