Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009287/0.0009287, allocations: 80.8 kB / 21.5 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009251/0.0009251, allocations: 177.2 kB / 24.92 MB, free: 8.766 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8783/0.8783, allocations: 177.1 MB / 205.3 MB, free: 5.453 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_4.1.0_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_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.824e-06/1.824e-06, allocations: 0 / 276.4 MB, free: 14.34 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.195e-05/2.378e-05, allocations: 2.312 kB / 276.4 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01089/0.01091, allocations: 13.44 MB / 289.8 MB, free: 0.8555 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1194/0.1304, allocations: 15.15 MB / 304.9 MB, free: 11.6 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000155/0.1305, allocations: 4.938 kB / 304.9 MB, free: 11.59 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003096/0.1308, allocations: 74.34 kB / 305 MB, free: 11.56 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003175/0.1311, allocations: 121.2 kB / 305.1 MB, free: 11.49 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01436/0.1455, allocations: 6.034 MB / 311.2 MB, free: 8.879 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005027/0.146, allocations: 346.1 kB / 311.5 MB, free: 8.75 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.443e-05/0.1461, allocations: 13.55 kB / 311.5 MB, free: 8.746 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004491/0.1465, allocations: 272.7 kB / 311.8 MB, free: 8.625 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001361/0.1466, allocations: 92.22 kB / 311.9 MB, free: 8.59 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.532e-05/0.1467, allocations: 11.69 kB / 311.9 MB, free: 8.59 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009605/0.1563, allocations: 6.477 MB / 318.4 MB, free: 4.555 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.137e-05/0.1563, allocations: 51.81 kB / 318.4 MB, free: 4.504 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001209/0.1565, allocations: 83.83 kB / 318.5 MB, free: 4.422 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007764/0.1642, allocations: 4.93 MB / 323.4 MB, free: 15.48 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1642, allocations: 0 / 323.4 MB, free: 15.48 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1642, allocations: 0 / 323.4 MB, free: 15.48 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.11e-06/0.1642, allocations: 0 / 323.4 MB, free: 15.48 MB / 282.7 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.002076/0.1663, allocations: 0.9264 MB / 324.4 MB, free: 14.52 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.94e-05/0.1663, allocations: 8.031 kB / 324.4 MB, free: 14.52 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008218/0.1672, allocations: 312.1 kB / 324.7 MB, free: 14.21 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002355/0.1674, allocations: 184.4 kB / 324.8 MB, free: 14.01 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.072e-05/0.1674, allocations: 16.88 kB / 324.9 MB, free: 13.99 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.346e-05/0.1675, allocations: 24.38 kB / 324.9 MB, free: 13.97 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001477/0.1689, allocations: 1.014 MB / 325.9 MB, free: 12.92 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.1689, allocations: 0 / 325.9 MB, free: 12.92 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.089e-05/0.169, allocations: 15.94 kB / 325.9 MB, free: 12.91 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.169, allocations: 4 kB / 325.9 MB, free: 12.9 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001257/0.1702, allocations: 0.7742 MB / 326.7 MB, free: 12.14 MB / 282.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.0008112/0.171, allocations: 0.7593 MB / 327.5 MB, free: 11.35 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001151/0.1722, allocations: 0.7264 MB / 328.2 MB, free: 10.61 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.405e-05/0.1723, allocations: 68.83 kB / 328.3 MB, free: 10.54 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3355/0.5078, allocations: 132.5 MB / 460.8 MB, free: 102.4 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.072e-05/0.5078, allocations: 46 kB / 460.8 MB, free: 102.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 2.706e-06/0.5078, allocations: 0 / 460.8 MB, free: 102.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.002195/0.51, allocations: 1.244 MB / 462 MB, free: 101.3 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.547e-05/0.51, allocations: 58.41 kB / 462.1 MB, free: 101.2 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.319e-05/0.5101, allocations: 125.3 kB / 462.2 MB, free: 101.1 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.969e-05/0.5101, allocations: 33.92 kB / 462.3 MB, free: 101 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.788e-05/0.5102, allocations: 122.5 kB / 462.4 MB, free: 100.9 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.521e-05/0.5102, allocations: 120.2 kB / 462.5 MB, free: 100.9 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001281/0.5104, allocations: 122.3 kB / 462.6 MB, free: 100.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.581e-05/0.5104, allocations: 332.6 kB / 462.9 MB, free: 100.5 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001954/0.5106, allocations: 282.2 kB / 463.2 MB, free: 100.2 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000203/0.5108, allocations: 347.2 kB / 463.6 MB, free: 99.85 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004018/0.5112, allocations: 0.6389 MB / 464.2 MB, free: 99.23 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.5112, allocations: 0 / 464.2 MB, free: 99.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0005068/0.5117, allocations: 0.6495 MB / 464.8 MB, free: 98.61 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.5117, allocations: 8.375 kB / 464.9 MB, free: 98.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.5117, allocations: 4 kB / 464.9 MB, free: 98.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.5117, allocations: 4 kB / 464.9 MB, free: 98.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002713/0.512, allocations: 131 kB / 465 MB, free: 98.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.512, allocations: 7.562 kB / 465 MB, free: 98.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001371/0.5122, allocations: 28.38 kB / 465 MB, free: 98.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.778e-05/0.5122, allocations: 44.98 kB / 465.1 MB, free: 98.45 MB / 378.7 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.dew.phase,medium.bubble.phase,medium.bubble2.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.0001298/0.5123, allocations: 133.4 kB / 465.2 MB, free: 98.33 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.799e-05/0.5124, allocations: 21.52 kB / 465.2 MB, free: 98.31 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002065/0.5145, allocations: 4.441 MB / 469.7 MB, free: 93.98 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.995e-05/0.5145, allocations: 27.33 kB / 469.7 MB, free: 93.96 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.5145, allocations: 5.875 kB / 469.7 MB, free: 93.96 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.5145, allocations: 3.984 kB / 469.7 MB, free: 93.95 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000762/0.5153, allocations: 1.295 MB / 471 MB, free: 93.19 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.5153, allocations: 4 kB / 471 MB, free: 93.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002387/0.5155, allocations: 103 kB / 471.1 MB, free: 93.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.5155, allocations: 0 / 471.1 MB, free: 93.1 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.1e-05/0.5155, allocations: 13.81 kB / 471.1 MB, free: 93.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.554e-06/0.5155, allocations: 0 / 471.1 MB, free: 93.09 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.5155, allocations: 4 kB / 471.1 MB, free: 93.09 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006426/0.5162, allocations: 1.03 MB / 472.1 MB, free: 92.1 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.102e-05/0.5162, allocations: 73.55 kB / 472.2 MB, free: 92.04 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.909e-05/0.5162, allocations: 6.969 kB / 472.2 MB, free: 92.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001059/0.5163, allocations: 10.62 kB / 472.2 MB, free: 92.04 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.272e-05/0.5164, allocations: 31.88 kB / 472.3 MB, free: 92.01 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.942e-05/0.5164, allocations: 14.55 kB / 472.3 MB, free: 92 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.722e-05/0.5164, allocations: 24.22 kB / 472.3 MB, free: 91.98 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-08/0.5164, allocations: 0 / 472.3 MB, free: 91.98 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001785/0.5182, allocations: 0.9977 MB / 473.3 MB, free: 91.02 MB / 378.7 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.002525/0.5207, allocations: 1.362 MB / 474.7 MB, free: 89.78 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004825/0.5212, allocations: 0.5948 MB / 475.3 MB, free: 89.22 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.5212, allocations: 4 kB / 475.3 MB, free: 89.22 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001802/0.5214, allocations: 269.9 kB / 475.5 MB, free: 88.98 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003033/0.5217, allocations: 95.81 kB / 475.6 MB, free: 88.9 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001181/0.5229, allocations: 1.101 MB / 476.7 MB, free: 87.9 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.545e-05/0.523, allocations: 144.6 kB / 476.9 MB, free: 87.74 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0008947/0.5238, allocations: 1.784 MB / 478.6 MB, free: 86 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003365/0.5242, allocations: 167.2 kB / 478.8 MB, free: 85.85 MB / 378.7 MB Notification: Performance of SimCode: time 1.022e-06/0.5242, allocations: 4 kB / 478.8 MB, free: 85.85 MB / 378.7 MB Notification: Performance of Templates: time 0.03433/0.5585, allocations: 48.59 MB / 0.515 GB, free: 37.57 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.513253224082291]