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.001048/0.001048, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001507/0.002555, 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 trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00107/0.00107, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001309/0.002379, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 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.9038/0.9038, allocations: 177.4 MB / 189.9 MB, free: 4.836 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08138/0.9852, allocations: 53.87 MB / 243.7 MB, free: 14.9 MB / 250.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.563e-06/1.563e-06, allocations: 0 / 247.9 MB, free: 10.71 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.015e-05/2.171e-05, allocations: 2.312 kB / 247.9 MB, free: 10.7 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01358/0.0136, allocations: 13.52 MB / 261.5 MB, free: 13.13 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1091/0.1227, allocations: 15.23 MB / 276.7 MB, free: 1.055 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001572/0.1228, allocations: 1.281 kB / 276.7 MB, free: 1.055 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002415/0.1231, allocations: 78.23 kB / 276.8 MB, free: 1.055 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000266/0.1233, allocations: 119.9 kB / 276.9 MB, free: 1.055 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01101/0.1344, allocations: 5.429 MB / 282.3 MB, free: 0.6523 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002677/0.1346, allocations: 348.3 kB / 282.7 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.528e-05/0.1347, allocations: 14.7 kB / 282.7 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003241/0.135, allocations: 275.4 kB / 282.9 MB, free: 0.5273 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001034/0.1351, allocations: 88.09 kB / 283 MB, free: 0.5195 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.168e-05/0.1351, allocations: 14.16 kB / 283 MB, free: 0.5195 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008292/0.1434, allocations: 7.029 MB / 290.1 MB, free: 15.89 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.325e-05/0.1435, allocations: 33.84 kB / 290.1 MB, free: 15.88 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.274e-05/0.1435, allocations: 62.53 kB / 290.2 MB, free: 15.88 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003788/0.1473, allocations: 3.764 MB / 293.9 MB, free: 14.8 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.541e-05/0.1473, allocations: 4 kB / 293.9 MB, free: 14.79 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.1473, allocations: 0 / 293.9 MB, free: 14.79 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.66e-05/0.1473, allocations: 0 / 293.9 MB, free: 14.79 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.001555/0.1489, allocations: 1.287 MB / 295.2 MB, free: 14.06 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.692e-05/0.1489, allocations: 8.438 kB / 295.2 MB, free: 14.06 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007658/0.1497, allocations: 314.9 kB / 295.5 MB, free: 13.96 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001851/0.1499, allocations: 173.8 kB / 295.7 MB, free: 13.8 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.683e-05/0.1499, allocations: 19.59 kB / 295.7 MB, free: 13.8 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.855e-05/0.1499, allocations: 25.12 kB / 295.7 MB, free: 13.8 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001393/0.1513, allocations: 1.023 MB / 296.8 MB, free: 13.35 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.1513, allocations: 2.906 kB / 296.8 MB, free: 13.35 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.764e-05/0.1513, allocations: 12.34 kB / 296.8 MB, free: 13.34 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.124e-06/0.1514, allocations: 4.781 kB / 296.8 MB, free: 13.34 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001155/0.1525, allocations: 0.7717 MB / 297.6 MB, free: 13.11 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.0007066/0.1532, allocations: 0.7685 MB / 298.3 MB, free: 12.6 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001097/0.1543, allocations: 0.7302 MB / 299.1 MB, free: 11.95 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.222e-05/0.1544, allocations: 71.14 kB / 299.1 MB, free: 11.89 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3201/0.4745, allocations: 132.5 MB / 431.6 MB, free: 128.1 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.269e-05/0.4745, allocations: 34.38 kB / 431.7 MB, free: 128.1 MB / 394.7 MB Notification: Performance of pre-optimization done (n=33): time 2.755e-06/0.4745, allocations: 0 / 431.7 MB, free: 128.1 MB / 394.7 MB Notification: Performance of matching and sorting (n=33): time 0.002858/0.4774, allocations: 1.256 MB / 432.9 MB, free: 128.1 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.497e-05/0.4774, allocations: 57.22 kB / 433 MB, free: 128 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.444e-05/0.4775, allocations: 132.2 kB / 433.1 MB, free: 127.9 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.211e-05/0.4775, allocations: 33.58 kB / 433.1 MB, free: 127.9 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.062e-05/0.4776, allocations: 123.7 kB / 433.3 MB, free: 127.8 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.829e-05/0.4777, allocations: 114.5 kB / 433.4 MB, free: 127.7 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001714/0.4778, allocations: 125.6 kB / 433.5 MB, free: 127.7 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 3.888e-05/0.4779, allocations: 323 kB / 433.8 MB, free: 127.4 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002787/0.4782, allocations: 279.9 kB / 434.1 MB, free: 127.4 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003046/0.4785, allocations: 360.1 kB / 434.4 MB, free: 127.3 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006215/0.4791, allocations: 0.6437 MB / 435.1 MB, free: 127.2 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.4791, allocations: 0 / 435.1 MB, free: 127.2 MB / 394.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0007233/0.4798, allocations: 0.6463 MB / 435.7 MB, free: 127.2 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/0.4798, allocations: 9.406 kB / 435.7 MB, free: 127.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.4798, allocations: 6.219 kB / 435.7 MB, free: 127.2 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.4798, allocations: 4.688 kB / 435.8 MB, free: 127.2 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005011/0.4803, allocations: 212.8 kB / 436 MB, free: 127.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.4804, allocations: 7.266 kB / 436 MB, free: 127.2 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001841/0.4805, allocations: 31.92 kB / 436 MB, free: 127.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.811e-05/0.4806, allocations: 39.31 kB / 436 MB, free: 127.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.0001304/0.4807, allocations: 130.7 kB / 436.2 MB, free: 127.1 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.3e-05/0.4808, allocations: 23.67 kB / 436.2 MB, free: 127.1 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002835/0.4837, allocations: 4.44 MB / 440.6 MB, free: 125 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.98e-05/0.4837, allocations: 27.52 kB / 440.7 MB, free: 125 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.4837, allocations: 4 kB / 440.7 MB, free: 125 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.78e-06/0.4837, allocations: 0 / 440.7 MB, free: 125 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00091/0.4846, allocations: 1.291 MB / 442 MB, free: 124.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.4846, allocations: 4 kB / 442 MB, free: 124.2 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003612/0.485, allocations: 119.6 kB / 442.1 MB, free: 124.2 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.143e-05/0.485, allocations: 72.17 kB / 442.1 MB, free: 124.1 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.508e-06/0.485, allocations: 4 kB / 442.1 MB, free: 124.1 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.119e-05/0.485, allocations: 10.25 kB / 442.2 MB, free: 124.1 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.485, allocations: 4 kB / 442.2 MB, free: 124.1 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.4851, allocations: 0 / 442.2 MB, free: 124.1 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008094/0.4859, allocations: 1.032 MB / 443.2 MB, free: 123.1 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.793e-05/0.4859, allocations: 6.25 kB / 443.2 MB, free: 123.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001535/0.4861, allocations: 10.5 kB / 443.2 MB, free: 123.1 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.644e-05/0.4861, allocations: 38.94 kB / 443.2 MB, free: 123.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.563e-05/0.4861, allocations: 7.984 kB / 443.3 MB, free: 123.1 MB / 394.7 MB Notification: Performance of sorting global known variables: time 1.985e-05/0.4862, allocations: 23.33 kB / 443.3 MB, free: 123.1 MB / 394.7 MB Notification: Performance of sort global known variables: time 7e-08/0.4862, allocations: 0 / 443.3 MB, free: 123.1 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002137/0.4883, allocations: 0.9997 MB / 444.3 MB, free: 122.2 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.003078/0.4914, allocations: 1.372 MB / 445.6 MB, free: 121 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0006537/0.492, allocations: 0.6004 MB / 446.2 MB, free: 120.5 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.27e-05/0.492, allocations: 6.141 kB / 446.3 MB, free: 120.5 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002407/0.4923, allocations: 274.6 kB / 446.5 MB, free: 120.2 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004159/0.4927, allocations: 121.8 kB / 446.6 MB, free: 120.1 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004751/0.4975, allocations: 1.091 MB / 447.7 MB, free: 119.1 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.763e-05/0.4975, allocations: 148.6 kB / 447.9 MB, free: 119 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001251/0.4988, allocations: 1.782 MB / 449.7 MB, free: 117.2 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004221/0.4992, allocations: 170 kB / 449.8 MB, free: 117.1 MB / 394.7 MB Notification: Performance of SimCode: time 1.112e-06/0.4992, allocations: 4 kB / 449.8 MB, free: 117.1 MB / 394.7 MB Notification: Performance of Templates: time 0.03911/0.5383, allocations: 48.77 MB / 498.6 MB, free: 68.63 MB / 394.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 -ignoreHideResult -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.461474189534783]