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.000722/0.000722, allocations: 76.17 kB / 9.933 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009631/0.001685, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 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.0007082/0.0007082, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008811/0.001589, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.8829/0.8829, allocations: 177.2 MB / 189.6 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0726/0.9555, allocations: 53.65 MB / 243.3 MB, free: 15.58 MB / 250.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.443e-06/1.443e-06, allocations: 0 / 247.4 MB, free: 11.39 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.37e-05/1.514e-05, allocations: 8.922 kB / 247.4 MB, free: 11.38 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01089/0.0109, allocations: 13.52 MB / 261 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1181/0.129, allocations: 15.23 MB / 276.2 MB, free: 1.086 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001517/0.1291, allocations: 1.188 kB / 276.2 MB, free: 1.086 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002529/0.1294, allocations: 73.23 kB / 276.3 MB, free: 1.086 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002589/0.1296, allocations: 121 kB / 276.4 MB, free: 1.086 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01025/0.1399, allocations: 5.428 MB / 281.8 MB, free: 0.6992 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003349/0.1402, allocations: 353.9 kB / 282.2 MB, free: 0.6055 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.517e-05/0.1403, allocations: 15.98 kB / 282.2 MB, free: 0.6055 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003822/0.1406, allocations: 270.2 kB / 282.4 MB, free: 0.5781 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001196/0.1408, allocations: 90.14 kB / 282.5 MB, free: 0.5703 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.266e-05/0.1408, allocations: 14.94 kB / 282.5 MB, free: 0.5703 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009228/0.15, allocations: 7 MB / 289.5 MB, free: 15.96 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.86e-05/0.1501, allocations: 36.25 kB / 289.6 MB, free: 15.95 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.199e-05/0.1501, allocations: 65.72 kB / 289.6 MB, free: 15.95 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004718/0.1549, allocations: 3.759 MB / 293.4 MB, free: 14.88 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.301e-05/0.1549, allocations: 0 / 293.4 MB, free: 14.88 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1549, allocations: 2.75 kB / 293.4 MB, free: 14.88 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.331e-05/0.1549, allocations: 0 / 293.4 MB, free: 14.88 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.001827/0.1567, allocations: 1.287 MB / 294.7 MB, free: 14.14 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.864e-05/0.1567, allocations: 10.94 kB / 294.7 MB, free: 14.14 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007764/0.1575, allocations: 315.6 kB / 295 MB, free: 14.03 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001835/0.1577, allocations: 176.1 kB / 295.2 MB, free: 13.88 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.768e-05/0.1577, allocations: 19.19 kB / 295.2 MB, free: 13.88 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.808e-05/0.1578, allocations: 24.38 kB / 295.2 MB, free: 13.88 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001352/0.1591, allocations: 1.019 MB / 296.2 MB, free: 13.43 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.1591, allocations: 0 / 296.2 MB, free: 13.43 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.584e-05/0.1591, allocations: 10.41 kB / 296.3 MB, free: 13.43 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.463e-06/0.1591, allocations: 9.875 kB / 296.3 MB, free: 13.42 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001181/0.1603, allocations: 0.7724 MB / 297 MB, free: 13.19 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.0006828/0.161, allocations: 0.7617 MB / 297.8 MB, free: 12.68 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001098/0.1621, allocations: 0.7434 MB / 298.5 MB, free: 12.28 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.623e-05/0.1622, allocations: 63.16 kB / 298.6 MB, free: 12.22 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3565/0.5187, allocations: 132.5 MB / 431.1 MB, free: 128.9 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.179e-05/0.5187, allocations: 42.81 kB / 431.2 MB, free: 128.8 MB / 394.7 MB Notification: Performance of pre-optimization done (n=33): time 2.425e-06/0.5187, allocations: 0 / 431.2 MB, free: 128.8 MB / 394.7 MB Notification: Performance of matching and sorting (n=33): time 0.002202/0.5209, allocations: 1.252 MB / 432.4 MB, free: 128.8 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.97e-05/0.5209, allocations: 57.56 kB / 432.5 MB, free: 128.7 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.375e-05/0.521, allocations: 121.9 kB / 432.6 MB, free: 128.6 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.945e-05/0.521, allocations: 34.47 kB / 432.6 MB, free: 128.6 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.438e-05/0.521, allocations: 121.8 kB / 432.8 MB, free: 128.5 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.663e-05/0.5211, allocations: 124.2 kB / 432.9 MB, free: 128.5 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001267/0.5212, allocations: 123.5 kB / 433 MB, free: 128.4 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 3.426e-05/0.5213, allocations: 329.6 kB / 433.3 MB, free: 128.1 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002017/0.5215, allocations: 279 kB / 433.6 MB, free: 128.1 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002148/0.5217, allocations: 355.7 kB / 433.9 MB, free: 128.1 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004469/0.5221, allocations: 0.6375 MB / 434.6 MB, free: 128 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.5221, allocations: 0.8438 kB / 434.6 MB, free: 128 MB / 394.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0005589/0.5227, allocations: 0.6446 MB / 435.2 MB, free: 127.9 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.5227, allocations: 15 kB / 435.2 MB, free: 127.9 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.5227, allocations: 1.969 kB / 435.2 MB, free: 127.9 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.198e-06/0.5227, allocations: 5.844 kB / 435.2 MB, free: 127.9 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003824/0.5231, allocations: 211.7 kB / 435.4 MB, free: 127.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.178e-06/0.5231, allocations: 9.062 kB / 435.5 MB, free: 127.9 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001386/0.5232, allocations: 31.19 kB / 435.5 MB, free: 127.9 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.095e-05/0.5233, allocations: 40.69 kB / 435.5 MB, free: 127.9 MB / 394.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.0001069/0.5234, allocations: 136 kB / 435.7 MB, free: 127.8 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.179e-05/0.5235, allocations: 20.48 kB / 435.7 MB, free: 127.8 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002118/0.5256, allocations: 4.441 MB / 440.1 MB, free: 125.8 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.576e-05/0.5256, allocations: 27.7 kB / 440.1 MB, free: 125.8 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-06/0.5256, allocations: 0 / 440.1 MB, free: 125.8 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.5256, allocations: 2.625 kB / 440.1 MB, free: 125.8 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006753/0.5263, allocations: 1.302 MB / 441.5 MB, free: 125 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.5263, allocations: 0 / 441.5 MB, free: 125 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002687/0.5266, allocations: 116.2 kB / 441.6 MB, free: 125 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.834e-05/0.5266, allocations: 69.7 kB / 441.6 MB, free: 124.9 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.5266, allocations: 4 kB / 441.6 MB, free: 124.9 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.959e-05/0.5266, allocations: 14.39 kB / 441.6 MB, free: 124.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.5266, allocations: 0 / 441.6 MB, free: 124.9 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-06/0.5266, allocations: 0 / 441.6 MB, free: 124.9 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006202/0.5272, allocations: 1.029 MB / 442.7 MB, free: 124 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.253e-05/0.5273, allocations: 14.77 kB / 442.7 MB, free: 124 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001109/0.5274, allocations: 10.53 kB / 442.7 MB, free: 124 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.322e-05/0.5274, allocations: 32.53 kB / 442.7 MB, free: 124 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.814e-05/0.5275, allocations: 10.56 kB / 442.7 MB, free: 124 MB / 394.7 MB Notification: Performance of sorting global known variables: time 1.339e-05/0.5275, allocations: 12.86 kB / 442.8 MB, free: 123.9 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.5275, allocations: 4.031 kB / 442.8 MB, free: 123.9 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001685/0.5291, allocations: 0.9998 MB / 443.8 MB, free: 123.1 MB / 394.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.002488/0.5316, allocations: 1.382 MB / 445.1 MB, free: 122 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004547/0.5321, allocations: 0.5974 MB / 445.7 MB, free: 121.5 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.156e-06/0.5321, allocations: 4 kB / 445.7 MB, free: 121.5 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001758/0.5323, allocations: 272.5 kB / 446 MB, free: 121.2 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003096/0.5326, allocations: 124.6 kB / 446.1 MB, free: 121.1 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003569/0.5362, allocations: 1.102 MB / 447.2 MB, free: 120.1 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.432e-05/0.5362, allocations: 149.7 kB / 447.4 MB, free: 120 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0008661/0.5371, allocations: 1.78 MB / 449.2 MB, free: 118.2 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003431/0.5374, allocations: 164.6 kB / 449.3 MB, free: 118.1 MB / 394.7 MB Notification: Performance of SimCode: time 8.12e-07/0.5374, allocations: 0 / 449.3 MB, free: 118.1 MB / 394.7 MB Notification: Performance of Templates: time 0.03482/0.5722, allocations: 48.76 MB / 498.1 MB, free: 69.66 MB / 394.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 -ignoreHideResult -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.496944910846651]