Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001844/0.001844, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.002284/0.002284, allocations: 211.8 kB / 24.54 MB, free: 4.02 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.472/1.472, allocations: 230.3 MB / 258 MB, free: 8.219 MB / 206.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001909/0.001909, allocations: 63.89 kB / 379.6 MB, free: 1.934 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2381/0.24, allocations: 53.36 MB / 432.9 MB, free: 6.789 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01783/0.2578, allocations: 13.57 MB / 446.5 MB, free: 9.176 MB / 350.1 MB
Notification: Performance of NFInst.instExpressions: time 0.02089/0.2787, allocations: 15.65 MB / 462.2 MB, free: 9.473 MB / 366.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001489/0.2789, allocations: 0 / 462.2 MB, free: 9.473 MB / 366.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0003604/0.2792, allocations: 87.53 kB / 462.3 MB, free: 9.387 MB / 366.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0003931/0.2796, allocations: 107.2 kB / 462.4 MB, free: 9.281 MB / 366.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.01674/0.2964, allocations: 5.997 MB / 468.4 MB, free: 3.293 MB / 366.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0005427/0.2969, allocations: 354.5 kB / 468.7 MB, free: 2.945 MB / 366.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 5.997e-05/0.297, allocations: 9.812 kB / 468.7 MB, free: 2.934 MB / 366.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.000539/0.2975, allocations: 242.9 kB / 468.9 MB, free: 2.695 MB / 366.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.000201/0.2977, allocations: 103.7 kB / 469 MB, free: 2.594 MB / 366.1 MB
Notification: Performance of NFPackage.collectConstants: time 3.468e-05/0.2978, allocations: 19.94 kB / 469.1 MB, free: 2.574 MB / 366.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.01356/0.3113, allocations: 6.778 MB / 475.8 MB, free: 11.79 MB / 382.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001014/0.3114, allocations: 43.89 kB / 475.9 MB, free: 11.75 MB / 382.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001728/0.3116, allocations: 111.5 kB / 476 MB, free: 11.64 MB / 382.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.00825/0.3198, allocations: 3.909 MB / 479.9 MB, free: 7.719 MB / 382.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3198, allocations: 0 / 479.9 MB, free: 7.719 MB / 382.1 MB
Notification: Performance of FrontEnd: time 3.417e-06/0.3198, allocations: 3.984 kB / 479.9 MB, free: 7.715 MB / 382.1 MB
Notification: Performance of Transformations before backend: time 8.116e-06/0.3199, allocations: 4 kB / 479.9 MB, free: 7.711 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.002722/0.3226, allocations: 0.9467 MB / 480.9 MB, free: 6.73 MB / 382.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.3226, allocations: 12.03 kB / 480.9 MB, free: 6.719 MB / 382.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001486/0.3241, allocations: 176.6 kB / 481 MB, free: 6.547 MB / 382.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.000344/0.3244, allocations: 202.2 kB / 481.2 MB, free: 6.324 MB / 382.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.36e-05/0.3245, allocations: 16.81 kB / 481.3 MB, free: 6.309 MB / 382.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 5.902e-05/0.3245, allocations: 24.12 kB / 481.3 MB, free: 6.285 MB / 382.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.003422/0.328, allocations: 0.9089 MB / 482.2 MB, free: 5.359 MB / 382.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.633e-05/0.328, allocations: 4 kB / 482.2 MB, free: 5.355 MB / 382.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.459e-05/0.328, allocations: 8 kB / 482.2 MB, free: 5.348 MB / 382.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.847e-06/0.328, allocations: 4 kB / 482.2 MB, free: 5.344 MB / 382.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003473/0.3315, allocations: 0.9734 MB / 483.2 MB, free: 4.367 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.001888/0.3334, allocations: 1.303 MB / 484.5 MB, free: 2.938 MB / 382.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0028/0.3362, allocations: 0.7325 MB / 485.2 MB, free: 2.195 MB / 382.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0002999/0.3365, allocations: 152.7 kB / 485.4 MB, free: 2.043 MB / 382.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.07951/0.416, allocations: 20.56 MB / 0.4941 GB, free: 13.46 MB / 414.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.565e-05/0.416, allocations: 34.56 kB / 0.4941 GB, free: 13.41 MB / 414.1 MB
Notification: Performance of pre-optimization done (n=33): time 1.934e-06/0.416, allocations: 0 / 0.4941 GB, free: 13.41 MB / 414.1 MB
Notification: Performance of matching and sorting (n=33): time 0.005652/0.4217, allocations: 1.364 MB / 0.4954 GB, free: 12.04 MB / 414.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.379e-05/0.4217, allocations: 55.41 kB / 0.4955 GB, free: 11.98 MB / 414.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001205/0.4219, allocations: 117.8 kB / 0.4956 GB, free: 11.85 MB / 414.1 MB
Notification: Performance of collectPreVariables (initialization): time 8.76e-05/0.4219, allocations: 33.7 kB / 0.4956 GB, free: 11.81 MB / 414.1 MB
Notification: Performance of collectInitialEqns (initialization): time 7.66e-05/0.422, allocations: 120.8 kB / 0.4957 GB, free: 11.69 MB / 414.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001557/0.4222, allocations: 122.9 kB / 0.4959 GB, free: 11.57 MB / 414.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.000314/0.4225, allocations: 161.6 kB / 0.496 GB, free: 11.41 MB / 414.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001515/0.4226, allocations: 322.8 kB / 0.4963 GB, free: 11.08 MB / 414.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007031/0.4233, allocations: 347.6 kB / 0.4967 GB, free: 10.74 MB / 414.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007916/0.4241, allocations: 403.5 kB / 0.497 GB, free: 10.32 MB / 414.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.001474/0.4256, allocations: 0.7114 MB / 0.4977 GB, free: 9.582 MB / 414.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.491e-06/0.4256, allocations: 4 kB / 0.4977 GB, free: 9.578 MB / 414.1 MB
Notification: Performance of matching and sorting (n=41) (initialization): time 0.002047/0.4277, allocations: 0.8642 MB / 0.4986 GB, free: 8.707 MB / 414.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.4277, allocations: 8 kB / 0.4986 GB, free: 8.699 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.4277, allocations: 4.188 kB / 0.4986 GB, free: 8.695 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.932e-05/0.4277, allocations: 11.94 kB / 0.4986 GB, free: 8.684 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007815/0.4285, allocations: 179.8 kB / 0.4988 GB, free: 8.508 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.126e-05/0.4285, allocations: 4 kB / 0.4988 GB, free: 8.504 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003504/0.4289, allocations: 27.84 kB / 0.4988 GB, free: 8.477 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001301/0.429, allocations: 67.92 kB / 0.4989 GB, free: 8.41 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.0002452/0.4292, allocations: 138.1 kB / 0.499 GB, free: 8.266 MB / 414.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001583/0.4294, allocations: 19.91 kB / 0.499 GB, free: 8.246 MB / 414.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009128/0.4385, allocations: 8.513 MB / 0.5073 GB, free: 15.71 MB / 430.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.28e-05/0.4386, allocations: 31.95 kB / 0.5074 GB, free: 15.68 MB / 430.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.4386, allocations: 0 / 0.5074 GB, free: 15.68 MB / 430.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.198e-06/0.4386, allocations: 0 / 0.5074 GB, free: 15.68 MB / 430.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003782/0.4424, allocations: 3.767 MB / 0.511 GB, free: 11.66 MB / 430.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.184e-06/0.4424, allocations: 0 / 0.511 GB, free: 11.66 MB / 430.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007009/0.4431, allocations: 115.7 kB / 0.5112 GB, free: 11.55 MB / 430.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 1.125e-05/0.4431, allocations: 4 kB / 0.5112 GB, free: 11.54 MB / 430.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.904e-05/0.4432, allocations: 15.94 kB / 0.5112 GB, free: 11.53 MB / 430.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.933e-06/0.4432, allocations: 4 kB / 0.5112 GB, free: 11.52 MB / 430.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.4432, allocations: 0 / 0.5112 GB, free: 11.52 MB / 430.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002768/0.4459, allocations: 1.882 MB / 0.513 GB, free: 9.621 MB / 430.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 8.559e-05/0.446, allocations: 67.33 kB / 0.5131 GB, free: 9.555 MB / 430.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.744e-05/0.4461, allocations: 15.94 kB / 0.5131 GB, free: 9.539 MB / 430.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003144/0.4464, allocations: 11.98 kB / 0.5131 GB, free: 9.527 MB / 430.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001068/0.4465, allocations: 31.94 kB / 0.5131 GB, free: 9.496 MB / 430.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.831e-05/0.4466, allocations: 19.98 kB / 0.5132 GB, free: 9.477 MB / 430.1 MB
Notification: Performance of sorting global known variables: time 6.936e-05/0.4466, allocations: 91.22 kB / 0.5132 GB, free: 9.387 MB / 430.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.4466, allocations: 0 / 0.5132 GB, free: 9.387 MB / 430.1 MB
Notification: Performance of remove unused functions: time 0.002798/0.4494, allocations: 1.002 MB / 0.5142 GB, free: 8.383 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.004496/0.4539, allocations: 1.145 MB / 0.5153 GB, free: 7.227 MB / 430.1 MB
Notification: Performance of simCode: created initialization part: time 0.001779/0.4557, allocations: 0.8993 MB / 0.5162 GB, free: 6.328 MB / 430.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.4557, allocations: 0 / 0.5162 GB, free: 6.328 MB / 430.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0008029/0.4565, allocations: 0.5247 MB / 0.5167 GB, free: 5.805 MB / 430.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006917/0.4572, allocations: 88.34 kB / 0.5168 GB, free: 5.719 MB / 430.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002129/0.4593, allocations: 1.341 MB / 0.5181 GB, free: 4.344 MB / 430.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004804/0.4598, allocations: 0.8614 MB / 0.519 GB, free: 3.457 MB / 430.1 MB
Notification: Performance of simCode: alias equations: time 0.002162/0.462, allocations: 1.787 MB / 0.5207 GB, free: 1.668 MB / 430.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003681/0.4623, allocations: 87.36 kB / 0.5208 GB, free: 1.582 MB / 430.1 MB
Notification: Performance of SimCode: time 6.31e-07/0.4623, allocations: 0 / 0.5208 GB, free: 1.582 MB / 430.1 MB
Notification: Performance of Templates: time 0.2468/0.7092, allocations: 41.84 MB / 0.5617 GB, free: 92.3 MB / 446.1 MB
"
[Timeout remaining time 659]
make -j1 -f Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile [Timeout 660]
(rm -f Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_trunk_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_trunk_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.337929658591747]