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.001028/0.001028, allocations: 91.5 kB / 21.19 MB, free: 3.379 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.001105/0.001105, allocations: 160.5 kB / 24.56 MB, free: 20 kB / 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.9361/0.9361, allocations: 177 MB / 204.8 MB, free: 5.234 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.443e-06/1.443e-06, allocations: 0 / 275.8 MB, free: 14.34 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.63e-05/2.774e-05, allocations: 2.312 kB / 275.8 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01123/0.01126, allocations: 13.47 MB / 289.3 MB, free: 0.8203 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.135/0.1463, allocations: 15.2 MB / 304.5 MB, free: 11.49 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001409/0.1464, allocations: 1.062 kB / 304.5 MB, free: 11.49 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003514/0.1468, allocations: 70.69 kB / 304.6 MB, free: 11.46 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003518/0.1471, allocations: 128.5 kB / 304.7 MB, free: 11.38 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01317/0.1603, allocations: 5.991 MB / 310.7 MB, free: 8.832 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003749/0.1607, allocations: 348.6 kB / 311 MB, free: 8.703 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.66e-05/0.1607, allocations: 8.844 kB / 311 MB, free: 8.703 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003852/0.1611, allocations: 269.9 kB / 311.3 MB, free: 8.582 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001205/0.1612, allocations: 92.05 kB / 311.4 MB, free: 8.547 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.424e-05/0.1612, allocations: 18.62 kB / 311.4 MB, free: 8.543 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009614/0.1708, allocations: 6.482 MB / 317.9 MB, free: 4.598 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.924e-05/0.1709, allocations: 51.83 kB / 317.9 MB, free: 4.547 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000101/0.171, allocations: 83.81 kB / 318 MB, free: 4.465 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006611/0.1776, allocations: 4.93 MB / 323 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.1776, allocations: 0 / 323 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1776, allocations: 4 kB / 323 MB, free: 15.52 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.1777, allocations: 0 / 323 MB, free: 15.52 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.00209/0.1797, allocations: 1.035 MB / 324 MB, free: 14.44 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.1798, allocations: 11.98 kB / 324 MB, free: 14.43 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001214/0.181, allocations: 284 kB / 324.3 MB, free: 14.15 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000277/0.1813, allocations: 196.4 kB / 324.5 MB, free: 13.93 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.829e-05/0.1813, allocations: 28.81 kB / 324.5 MB, free: 13.91 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.289e-05/0.1814, allocations: 31.12 kB / 324.5 MB, free: 13.88 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002385/0.1837, allocations: 1.106 MB / 325.6 MB, free: 12.74 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.1838, allocations: 4 kB / 325.6 MB, free: 12.73 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.003e-05/0.1838, allocations: 11.94 kB / 325.7 MB, free: 12.72 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.165e-05/0.1838, allocations: 4 kB / 325.7 MB, free: 12.72 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002176/0.186, allocations: 0.9537 MB / 326.6 MB, free: 11.77 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.001219/0.1872, allocations: 1.053 MB / 327.7 MB, free: 10.66 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001896/0.1891, allocations: 0.8658 MB / 328.5 MB, free: 9.785 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001577/0.1892, allocations: 104.2 kB / 328.6 MB, free: 9.68 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0445/0.2337, allocations: 20.62 MB / 349.3 MB, free: 5.047 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.788e-05/0.2338, allocations: 37.39 kB / 349.3 MB, free: 5 MB / 298.7 MB Notification: Performance of pre-optimization done (n=33): time 2.475e-06/0.2338, allocations: 0 / 349.3 MB, free: 5 MB / 298.7 MB Notification: Performance of matching and sorting (n=33): time 0.002936/0.2367, allocations: 1.519 MB / 350.8 MB, free: 3.477 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.189e-05/0.2368, allocations: 55.41 kB / 350.9 MB, free: 3.41 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001062/0.2369, allocations: 181.8 kB / 351 MB, free: 3.215 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.593e-05/0.2369, allocations: 37.7 kB / 351.1 MB, free: 3.172 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002128/0.2371, allocations: 167.5 kB / 351.2 MB, free: 3.004 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.093e-05/0.2372, allocations: 122.9 kB / 351.4 MB, free: 2.883 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001888/0.2374, allocations: 175.2 kB / 351.5 MB, free: 2.703 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001122/0.2375, allocations: 0.5 MB / 352 MB, free: 2.191 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003988/0.2379, allocations: 398 kB / 352.4 MB, free: 1.805 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004572/0.2384, allocations: 0.4922 MB / 352.9 MB, free: 1.273 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008201/0.2392, allocations: 0.8503 MB / 353.8 MB, free: 400 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.2392, allocations: 0 / 353.8 MB, free: 400 kB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001223/0.2404, allocations: 1.017 MB / 354.8 MB, free: 15.37 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/0.2404, allocations: 4.25 kB / 354.8 MB, free: 15.37 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.2404, allocations: 8 kB / 354.8 MB, free: 15.36 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.031e-05/0.2405, allocations: 4 kB / 354.8 MB, free: 15.36 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003546/0.2408, allocations: 171.8 kB / 355 MB, free: 15.19 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.664e-06/0.2408, allocations: 4 kB / 355 MB, free: 15.18 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001529/0.241, allocations: 29.16 kB / 355 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.951e-05/0.241, allocations: 67.86 kB / 355.1 MB, free: 15.09 MB / 314.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.bubble2.phase,medium.bubble.phase,medium.dew.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.0001491/0.2412, allocations: 172.5 kB / 355.2 MB, free: 14.91 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000113/0.2413, allocations: 27.91 kB / 355.3 MB, free: 14.88 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004215/0.2455, allocations: 5.303 MB / 360.6 MB, free: 9.566 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.26e-05/0.2455, allocations: 27.95 kB / 360.6 MB, free: 9.539 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.2455, allocations: 0 / 360.6 MB, free: 9.539 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.2456, allocations: 3.984 kB / 360.6 MB, free: 9.535 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001218/0.2468, allocations: 1.922 MB / 362.5 MB, free: 7.367 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.2468, allocations: 4 kB / 362.5 MB, free: 7.363 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003083/0.2471, allocations: 107.8 kB / 362.6 MB, free: 7.258 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.2471, allocations: 0 / 362.6 MB, free: 7.258 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.737e-05/0.2471, allocations: 8.875 kB / 362.6 MB, free: 7.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.2471, allocations: 11.92 kB / 362.6 MB, free: 7.238 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.2471, allocations: 0 / 362.6 MB, free: 7.238 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001233/0.2484, allocations: 1.311 MB / 364 MB, free: 5.906 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.214e-05/0.2484, allocations: 71.34 kB / 364 MB, free: 5.836 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.498e-05/0.2484, allocations: 4 kB / 364 MB, free: 5.832 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001369/0.2486, allocations: 23.23 kB / 364.1 MB, free: 5.812 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.335e-05/0.2487, allocations: 27.98 kB / 364.1 MB, free: 5.785 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.251e-05/0.2487, allocations: 19.98 kB / 364.1 MB, free: 5.766 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.296e-05/0.2487, allocations: 136.5 kB / 364.2 MB, free: 5.633 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2487, allocations: 0 / 364.2 MB, free: 5.633 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002434/0.2512, allocations: 1.006 MB / 365.2 MB, free: 4.625 MB / 314.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.003187/0.2544, allocations: 1.275 MB / 366.5 MB, free: 3.34 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001053/0.2554, allocations: 0.8133 MB / 367.3 MB, free: 2.523 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2554, allocations: 0 / 367.3 MB, free: 2.523 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003608/0.2558, allocations: 363.8 kB / 367.7 MB, free: 2.164 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004138/0.2562, allocations: 106.9 kB / 367.8 MB, free: 2.07 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001752/0.2579, allocations: 1.161 MB / 368.9 MB, free: 0.8789 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.58e-05/0.258, allocations: 148.6 kB / 369.1 MB, free: 0.7109 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001297/0.2593, allocations: 1.786 MB / 370.9 MB, free: 14.95 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002435/0.2596, allocations: 88.36 kB / 371 MB, free: 14.87 MB / 330.7 MB Notification: Performance of SimCode: time 1.042e-06/0.2596, allocations: 0 / 371 MB, free: 14.87 MB / 330.7 MB Notification: Performance of Templates: time 0.03872/0.2983, allocations: 42.41 MB / 413.4 MB, free: 4.402 MB / 362.7 MB " [Timeout remaining time 660] 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.653601821046323]