Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001076/0.001076, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001483/0.002558, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001011/0.001011, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001375/0.002386, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8893/0.8893, allocations: 173.4 MB / 185.8 MB, free: 8.992 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08361/0.9729, allocations: 52.5 MB / 238.3 MB, free: 4.438 MB / 234.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 242.4 MB, free: 284 kB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.912e-05/2.067e-05, allocations: 6.812 kB / 242.4 MB, free: 276 kB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01589/0.01591, allocations: 13.41 MB / 255.8 MB, free: 2.82 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01133/0.02725, allocations: 15.24 MB / 271.1 MB, free: 3.52 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001324/0.02738, allocations: 0 / 271.1 MB, free: 3.52 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002357/0.02762, allocations: 75.52 kB / 271.2 MB, free: 3.445 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002363/0.02785, allocations: 111.2 kB / 271.3 MB, free: 3.336 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.1115/0.1393, allocations: 5.418 MB / 276.7 MB, free: 3.227 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003717/0.1397, allocations: 354.5 kB / 277 MB, free: 3.133 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.976e-05/0.1397, allocations: 13.42 kB / 277 MB, free: 3.133 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004519/0.1402, allocations: 280.4 kB / 277.3 MB, free: 3.105 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001471/0.1403, allocations: 86.45 kB / 277.4 MB, free: 3.098 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.679e-05/0.1404, allocations: 13 kB / 277.4 MB, free: 3.098 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009729/0.1501, allocations: 6.969 MB / 284.4 MB, free: 3.07 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.242e-05/0.1502, allocations: 33.66 kB / 284.4 MB, free: 3.062 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001507/0.1503, allocations: 63.22 kB / 284.5 MB, free: 3.059 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008232/0.1586, allocations: 3.755 MB / 288.2 MB, free: 2.941 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.808e-05/0.1586, allocations: 0 / 288.2 MB, free: 2.941 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1586, allocations: 0.625 kB / 288.2 MB, free: 2.941 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.856e-05/0.1586, allocations: 0.5312 kB / 288.2 MB, free: 2.941 MB / 266.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.002576/0.1612, allocations: 1.275 MB / 289.5 MB, free: 18.3 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.249e-05/0.1612, allocations: 9.188 kB / 289.5 MB, free: 18.3 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008093/0.162, allocations: 312.8 kB / 289.8 MB, free: 18.26 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002306/0.1622, allocations: 179.4 kB / 290 MB, free: 18.12 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.069e-05/0.1623, allocations: 21.38 kB / 290 MB, free: 18.12 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.762e-05/0.1623, allocations: 20.78 kB / 290 MB, free: 18.12 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001389/0.1637, allocations: 1.015 MB / 291.1 MB, free: 17.87 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.1637, allocations: 0 / 291.1 MB, free: 17.87 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.805e-05/0.1637, allocations: 16.25 kB / 291.1 MB, free: 17.86 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.965e-06/0.1637, allocations: 6.203 kB / 291.1 MB, free: 17.86 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001131/0.1649, allocations: 0.7766 MB / 291.9 MB, free: 17.62 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.0007578/0.1656, allocations: 0.7663 MB / 292.6 MB, free: 17.12 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001185/0.1668, allocations: 0.7335 MB / 293.4 MB, free: 16.89 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.109e-05/0.1669, allocations: 69.59 kB / 293.4 MB, free: 16.88 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2439/0.4107, allocations: 132.4 MB / 425.8 MB, free: 340 kB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.927e-05/0.4108, allocations: 38.56 kB / 425.8 MB, free: 292 kB / 394.7 MB Notification: Performance of pre-optimization done (n=33): time 2.164e-06/0.4108, allocations: 0 / 425.8 MB, free: 292 kB / 394.7 MB Notification: Performance of matching and sorting (n=33): time 0.1082/0.519, allocations: 1.249 MB / 427.1 MB, free: 133.1 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.426e-05/0.519, allocations: 58.91 kB / 427.2 MB, free: 133 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.474e-05/0.519, allocations: 128.5 kB / 427.3 MB, free: 132.9 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.409e-05/0.5191, allocations: 30.33 kB / 427.3 MB, free: 132.9 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.856e-05/0.5191, allocations: 119.3 kB / 427.4 MB, free: 132.8 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.541e-05/0.5192, allocations: 119.9 kB / 427.5 MB, free: 132.7 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001506/0.5194, allocations: 127 kB / 427.7 MB, free: 132.7 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 3.486e-05/0.5194, allocations: 328.8 kB / 428 MB, free: 132.4 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002704/0.5197, allocations: 278.2 kB / 428.3 MB, free: 132.4 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002993/0.52, allocations: 354 kB / 428.6 MB, free: 132.3 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006054/0.5206, allocations: 0.6327 MB / 429.2 MB, free: 132.2 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.5206, allocations: 2 kB / 429.2 MB, free: 132.2 MB / 394.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0006858/0.5213, allocations: 0.6538 MB / 429.9 MB, free: 132.2 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.997e-05/0.5213, allocations: 12.16 kB / 429.9 MB, free: 132.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.5213, allocations: 2.906 kB / 429.9 MB, free: 132.2 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.5213, allocations: 4.312 kB / 429.9 MB, free: 132.2 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004898/0.5218, allocations: 215.2 kB / 430.1 MB, free: 132.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.61e-06/0.5218, allocations: 7.531 kB / 430.1 MB, free: 132.2 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001477/0.5219, allocations: 26.72 kB / 430.2 MB, free: 132.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.895e-05/0.522, allocations: 41.94 kB / 430.2 MB, free: 132.2 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.0001266/0.5221, allocations: 136.7 kB / 430.3 MB, free: 132.1 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.906e-05/0.5222, allocations: 30.62 kB / 430.4 MB, free: 132.1 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003121/0.5253, allocations: 4.426 MB / 434.8 MB, free: 131.8 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.845e-05/0.5253, allocations: 27.17 kB / 434.8 MB, free: 131.8 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.244e-06/0.5253, allocations: 0 / 434.8 MB, free: 131.8 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.191e-06/0.5254, allocations: 2.875 kB / 434.8 MB, free: 131.8 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007804/0.5261, allocations: 1.291 MB / 436.1 MB, free: 131.6 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.5261, allocations: 4.125 kB / 436.1 MB, free: 131.6 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000297/0.5264, allocations: 118.5 kB / 436.2 MB, free: 131.6 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.409e-05/0.5265, allocations: 79.72 kB / 436.3 MB, free: 131.6 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.5265, allocations: 3.5 kB / 436.3 MB, free: 131.6 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.585e-05/0.5265, allocations: 9.125 kB / 436.3 MB, free: 131.6 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.5265, allocations: 3.312 kB / 436.3 MB, free: 131.6 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.5265, allocations: 0 / 436.3 MB, free: 131.6 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000749/0.5273, allocations: 1.036 MB / 437.4 MB, free: 131.3 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.289e-05/0.5273, allocations: 9.531 kB / 437.4 MB, free: 131.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001204/0.5274, allocations: 10 kB / 437.4 MB, free: 131.3 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.367e-05/0.5275, allocations: 35.38 kB / 437.4 MB, free: 131.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.876e-05/0.5275, allocations: 8.344 kB / 437.4 MB, free: 131.3 MB / 394.7 MB Notification: Performance of sorting global known variables: time 1.452e-05/0.5275, allocations: 17.78 kB / 437.4 MB, free: 131.3 MB / 394.7 MB Notification: Performance of sort global known variables: time 5e-08/0.5275, allocations: 0 / 437.4 MB, free: 131.3 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002132/0.5296, allocations: 0.9902 MB / 438.4 MB, free: 131.3 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.002538/0.5322, allocations: 1.372 MB / 439.8 MB, free: 131.1 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004876/0.5326, allocations: 0.5934 MB / 440.4 MB, free: 131.1 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.568e-06/0.5327, allocations: 6.562 kB / 440.4 MB, free: 131.1 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001961/0.5329, allocations: 276.2 kB / 440.7 MB, free: 131.1 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003205/0.5332, allocations: 123.9 kB / 440.8 MB, free: 131.1 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003606/0.5368, allocations: 1.087 MB / 441.9 MB, free: 130.3 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.648e-05/0.5368, allocations: 151.8 kB / 442 MB, free: 130.2 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001022/0.5379, allocations: 1.784 MB / 443.8 MB, free: 129.2 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003541/0.5382, allocations: 166.2 kB / 444 MB, free: 129.1 MB / 394.7 MB Notification: Performance of SimCode: time 8.62e-07/0.5382, allocations: 4 kB / 444 MB, free: 129.1 MB / 394.7 MB Notification: Performance of Templates: time 0.03354/0.5718, allocations: 48.58 MB / 492.5 MB, free: 81.15 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.420134820975363]