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.0009369/0.0009369, allocations: 88.73 kB / 21.5 MB, free: 2.984 MB / 18.57 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.001072/0.001072, allocations: 164.2 kB / 24.91 MB, free: 8.762 MB / 18.57 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 0.9223/0.9223, allocations: 177 MB / 205.2 MB, free: 5.055 MB / 186.7 MB " [Timeout remaining time 179] 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 1.352e-06/1.352e-06, allocations: 0 / 276.3 MB, free: 14.14 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.338e-05/2.474e-05, allocations: 5.125 kB / 276.3 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01334/0.01337, allocations: 13.41 MB / 289.7 MB, free: 0.6719 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1106/0.1239, allocations: 15.16 MB / 304.9 MB, free: 11.42 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001293/0.1241, allocations: 1.125 kB / 304.9 MB, free: 11.42 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002791/0.1244, allocations: 69.77 kB / 304.9 MB, free: 11.39 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002819/0.1246, allocations: 123 kB / 305.1 MB, free: 11.32 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01184/0.1365, allocations: 6.034 MB / 311.1 MB, free: 8.691 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003615/0.1368, allocations: 356 kB / 311.4 MB, free: 8.555 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.869e-05/0.1369, allocations: 8.469 kB / 311.5 MB, free: 8.555 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003763/0.1373, allocations: 269.1 kB / 311.7 MB, free: 8.434 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001212/0.1374, allocations: 87.47 kB / 311.8 MB, free: 8.402 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.946e-05/0.1374, allocations: 15 kB / 311.8 MB, free: 8.402 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008062/0.1455, allocations: 6.492 MB / 318.3 MB, free: 4.355 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.058e-05/0.1455, allocations: 47.83 kB / 318.4 MB, free: 4.309 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001079/0.1456, allocations: 79.81 kB / 318.4 MB, free: 4.23 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006687/0.1523, allocations: 4.93 MB / 323.4 MB, free: 15.29 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.1523, allocations: 0 / 323.4 MB, free: 15.29 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1523, allocations: 0 / 323.4 MB, free: 15.29 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.1523, allocations: 4 kB / 323.4 MB, free: 15.29 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.001838/0.1542, allocations: 0.9225 MB / 324.3 MB, free: 14.33 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.27e-05/0.1542, allocations: 11.98 kB / 324.3 MB, free: 14.32 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008424/0.1551, allocations: 320 kB / 324.6 MB, free: 14.01 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001985/0.1553, allocations: 161.5 kB / 324.8 MB, free: 13.82 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.839e-05/0.1553, allocations: 16.88 kB / 324.8 MB, free: 13.81 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.551e-05/0.1553, allocations: 24.38 kB / 324.8 MB, free: 13.79 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001504/0.1568, allocations: 1.03 MB / 325.8 MB, free: 12.73 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.707e-06/0.1568, allocations: 0 / 325.8 MB, free: 12.73 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.045e-05/0.1568, allocations: 13.25 kB / 325.9 MB, free: 12.71 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.1568, allocations: 4 kB / 325.9 MB, free: 12.71 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001306/0.1582, allocations: 0.7698 MB / 326.6 MB, free: 11.95 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.0007979/0.159, allocations: 0.7696 MB / 327.4 MB, free: 11.15 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001202/0.1602, allocations: 0.732 MB / 328.1 MB, free: 10.41 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.978e-05/0.1602, allocations: 61.41 kB / 328.2 MB, free: 10.35 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3388/0.4991, allocations: 132.5 MB / 460.7 MB, free: 102 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.039e-05/0.4991, allocations: 36.06 kB / 460.7 MB, free: 102 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 2.345e-06/0.4991, allocations: 2.078 kB / 460.7 MB, free: 102 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.002145/0.5012, allocations: 1.246 MB / 462 MB, free: 100.9 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.303e-05/0.5013, allocations: 58.41 kB / 462 MB, free: 100.9 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.823e-05/0.5013, allocations: 125.9 kB / 462.2 MB, free: 100.8 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.126e-05/0.5014, allocations: 37.27 kB / 462.2 MB, free: 100.7 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.461e-05/0.5014, allocations: 114.2 kB / 462.3 MB, free: 100.6 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.431e-05/0.5015, allocations: 124 kB / 462.4 MB, free: 100.5 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001297/0.5016, allocations: 130.1 kB / 462.6 MB, free: 100.5 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 2.84e-05/0.5016, allocations: 327.6 kB / 462.9 MB, free: 100.1 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000193/0.5018, allocations: 280.2 kB / 463.2 MB, free: 99.88 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002022/0.502, allocations: 346.7 kB / 463.5 MB, free: 99.53 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000404/0.5024, allocations: 0.6471 MB / 464.1 MB, free: 98.91 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.5024, allocations: 0 / 464.1 MB, free: 98.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0005439/0.503, allocations: 0.647 MB / 464.8 MB, free: 98.3 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.503, allocations: 7.75 kB / 464.8 MB, free: 98.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.503, allocations: 5.266 kB / 464.8 MB, free: 98.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.503, allocations: 4.25 kB / 464.8 MB, free: 98.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002981/0.5033, allocations: 133 kB / 464.9 MB, free: 98.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.022e-06/0.5033, allocations: 7.844 kB / 464.9 MB, free: 98.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001393/0.5034, allocations: 32.05 kB / 465 MB, free: 98.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.874e-05/0.5035, allocations: 36.81 kB / 465 MB, free: 98.14 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.0001408/0.5036, allocations: 130.6 kB / 465.1 MB, free: 98.02 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00012/0.5037, allocations: 28.16 kB / 465.2 MB, free: 97.99 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002152/0.5059, allocations: 4.431 MB / 469.6 MB, free: 93.66 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.417e-05/0.5059, allocations: 26.53 kB / 469.6 MB, free: 93.64 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.034e-06/0.5059, allocations: 7.922 kB / 469.6 MB, free: 93.63 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.5059, allocations: 0 / 469.6 MB, free: 93.63 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007347/0.5067, allocations: 1.297 MB / 470.9 MB, free: 92.87 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.5067, allocations: 0 / 470.9 MB, free: 92.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002567/0.5069, allocations: 106.3 kB / 471 MB, free: 92.78 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.5069, allocations: 4 kB / 471 MB, free: 92.78 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.097e-05/0.5069, allocations: 15.55 kB / 471.1 MB, free: 92.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.345e-06/0.5069, allocations: 2.297 kB / 471.1 MB, free: 92.77 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.5069, allocations: 3.844 kB / 471.1 MB, free: 92.77 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006484/0.5076, allocations: 1.026 MB / 472.1 MB, free: 91.78 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.964e-05/0.5076, allocations: 66.45 kB / 472.1 MB, free: 91.72 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.235e-05/0.5077, allocations: 12.5 kB / 472.2 MB, free: 91.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001094/0.5078, allocations: 7.375 kB / 472.2 MB, free: 91.71 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.268e-05/0.5078, allocations: 31.5 kB / 472.2 MB, free: 91.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.909e-05/0.5078, allocations: 11.61 kB / 472.2 MB, free: 91.68 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.624e-05/0.5079, allocations: 29.16 kB / 472.2 MB, free: 91.65 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-08/0.5079, allocations: 0 / 472.2 MB, free: 91.65 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001703/0.5096, allocations: 1.002 MB / 473.2 MB, free: 90.69 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.002468/0.512, allocations: 1.351 MB / 474.6 MB, free: 89.46 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004769/0.5125, allocations: 0.5934 MB / 475.2 MB, free: 88.91 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.5125, allocations: 3.188 kB / 475.2 MB, free: 88.91 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001892/0.5127, allocations: 267.7 kB / 475.5 MB, free: 88.66 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003117/0.513, allocations: 100.2 kB / 475.5 MB, free: 88.59 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001193/0.5142, allocations: 1.101 MB / 476.6 MB, free: 87.59 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.681e-05/0.5143, allocations: 144.6 kB / 476.8 MB, free: 87.43 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0009138/0.5152, allocations: 1.779 MB / 478.6 MB, free: 85.71 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00035/0.5155, allocations: 171.3 kB / 478.7 MB, free: 85.56 MB / 378.7 MB Notification: Performance of SimCode: time 1.012e-06/0.5155, allocations: 0 / 478.7 MB, free: 85.56 MB / 378.7 MB Notification: Performance of Templates: time 0.03558/0.5511, allocations: 48.62 MB / 0.515 GB, free: 37.24 MB / 378.7 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 240] 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","",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.40318793989718]