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.000933/0.000933, allocations: 85.17 kB / 21.5 MB, free: 2.988 MB / 18.57 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.000974/0.000974, allocations: 140.7 kB / 24.89 MB, free: 9.207 MB / 18.57 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.9054/0.9054, allocations: 173.4 MB / 201.5 MB, free: 9.191 MB / 186.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.373e-06/1.373e-06, allocations: 3.938 kB / 271.4 MB, free: 3.254 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2e-05/2.137e-05, allocations: 2.312 kB / 271.4 MB, free: 3.25 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01377/0.01379, allocations: 13.37 MB / 284.8 MB, free: 5.836 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1411/0.1549, allocations: 15.14 MB / 299.9 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000131/0.1551, allocations: 1.25 kB / 299.9 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003029/0.1554, allocations: 80.3 kB / 300 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002807/0.1556, allocations: 116.9 kB / 300.1 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01136/0.167, allocations: 5.438 MB / 305.5 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003995/0.1674, allocations: 345.3 kB / 305.9 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.173e-05/0.1674, allocations: 14.5 kB / 305.9 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004424/0.1679, allocations: 267.4 kB / 306.1 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001306/0.168, allocations: 86.67 kB / 306.2 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.333e-05/0.168, allocations: 17.47 kB / 306.2 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009597/0.1776, allocations: 6.959 MB / 313.2 MB, free: 11.36 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.818e-05/0.1777, allocations: 41.12 kB / 313.2 MB, free: 11.33 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001419/0.1779, allocations: 82.23 kB / 313.3 MB, free: 11.3 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007394/0.1853, allocations: 4.91 MB / 318.2 MB, free: 7.348 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.1853, allocations: 0 / 318.2 MB, free: 7.348 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1853, allocations: 0 / 318.2 MB, free: 7.348 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.561e-06/0.1853, allocations: 4 kB / 318.2 MB, free: 7.344 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.001649/0.1869, allocations: 0.9186 MB / 319.2 MB, free: 6.398 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.187, allocations: 8.922 kB / 319.2 MB, free: 6.391 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008934/0.1878, allocations: 320.1 kB / 319.5 MB, free: 6.078 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001811/0.188, allocations: 184.1 kB / 319.7 MB, free: 5.875 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.828e-05/0.188, allocations: 20.44 kB / 319.7 MB, free: 5.859 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.725e-05/0.1881, allocations: 24.36 kB / 319.7 MB, free: 5.836 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001388/0.1895, allocations: 1.01 MB / 320.7 MB, free: 4.793 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.1895, allocations: 0 / 320.7 MB, free: 4.793 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.7e-05/0.1895, allocations: 7.938 kB / 320.7 MB, free: 4.785 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.1895, allocations: 11.98 kB / 320.7 MB, free: 4.773 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001202/0.1907, allocations: 0.7767 MB / 321.5 MB, free: 3.996 MB / 266.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.0006591/0.1914, allocations: 0.7592 MB / 322.3 MB, free: 3.211 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001089/0.1924, allocations: 0.7284 MB / 323 MB, free: 2.473 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.946e-05/0.1925, allocations: 68.83 kB / 323.1 MB, free: 2.402 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3419/0.5344, allocations: 132.4 MB / 455.4 MB, free: 115.3 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.174e-05/0.5344, allocations: 40.34 kB / 455.5 MB, free: 115.2 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 2.335e-06/0.5344, allocations: 0 / 455.5 MB, free: 115.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.002203/0.5366, allocations: 1.238 MB / 456.7 MB, free: 114.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.908e-05/0.5366, allocations: 58.41 kB / 456.8 MB, free: 114.1 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.792e-05/0.5367, allocations: 138.7 kB / 456.9 MB, free: 114 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.636e-05/0.5367, allocations: 33.02 kB / 456.9 MB, free: 114 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.487e-05/0.5368, allocations: 112 kB / 457 MB, free: 113.9 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.597e-05/0.5368, allocations: 124.5 kB / 457.2 MB, free: 113.8 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001338/0.537, allocations: 120.8 kB / 457.3 MB, free: 113.7 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.612e-05/0.537, allocations: 334 kB / 457.6 MB, free: 113.4 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001912/0.5372, allocations: 278.6 kB / 457.9 MB, free: 113.1 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001996/0.5374, allocations: 351.9 kB / 458.2 MB, free: 112.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003932/0.5378, allocations: 0.6359 MB / 458.9 MB, free: 112.2 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.5378, allocations: 4 kB / 458.9 MB, free: 112.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004861/0.5383, allocations: 0.655 MB / 459.5 MB, free: 111.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.5383, allocations: 7.75 kB / 459.5 MB, free: 111.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.5383, allocations: 4 kB / 459.5 MB, free: 111.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.5383, allocations: 4 kB / 459.5 MB, free: 111.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003116/0.5386, allocations: 161.4 kB / 459.7 MB, free: 111.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.5386, allocations: 8.234 kB / 459.7 MB, free: 111.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001291/0.5387, allocations: 32.41 kB / 459.7 MB, free: 111.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.271e-05/0.5388, allocations: 42.53 kB / 459.8 MB, free: 111.4 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.0001113/0.5389, allocations: 134.9 kB / 459.9 MB, free: 111.2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.333e-05/0.539, allocations: 20.61 kB / 459.9 MB, free: 111.2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001999/0.541, allocations: 4.445 MB / 464.4 MB, free: 106.9 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.544e-05/0.541, allocations: 26.77 kB / 464.4 MB, free: 106.9 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.654e-06/0.541, allocations: 3.938 kB / 464.4 MB, free: 106.9 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.541, allocations: 0 / 464.4 MB, free: 106.9 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007393/0.5417, allocations: 1.293 MB / 465.7 MB, free: 106.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.5417, allocations: 5.031 kB / 465.7 MB, free: 106.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000269/0.542, allocations: 107.7 kB / 465.8 MB, free: 106 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.542, allocations: 0 / 465.8 MB, free: 106 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.142e-05/0.542, allocations: 14.17 kB / 465.8 MB, free: 106 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.542, allocations: 7.844 kB / 465.8 MB, free: 106 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.542, allocations: 0 / 465.8 MB, free: 106 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006449/0.5427, allocations: 1.028 MB / 466.8 MB, free: 105 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.538e-05/0.5427, allocations: 71.86 kB / 466.9 MB, free: 104.9 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.168e-05/0.5428, allocations: 6.875 kB / 466.9 MB, free: 104.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001108/0.5429, allocations: 8.25 kB / 466.9 MB, free: 104.9 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.057e-05/0.5429, allocations: 31.75 kB / 467 MB, free: 104.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.141e-05/0.5429, allocations: 11.42 kB / 467 MB, free: 104.9 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.802e-05/0.543, allocations: 17.44 kB / 467 MB, free: 104.9 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-08/0.543, allocations: 0 / 467 MB, free: 104.9 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001773/0.5447, allocations: 1 MB / 468 MB, free: 104 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.002607/0.5473, allocations: 1.353 MB / 469.3 MB, free: 102.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005089/0.5479, allocations: 0.5877 MB / 469.9 MB, free: 102.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.5479, allocations: 4 kB / 469.9 MB, free: 102.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000182/0.548, allocations: 270.3 kB / 470.2 MB, free: 101.9 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000321/0.5484, allocations: 95.48 kB / 470.3 MB, free: 101.9 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001192/0.5496, allocations: 1.108 MB / 471.4 MB, free: 100.9 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.842e-05/0.5496, allocations: 152.2 kB / 471.6 MB, free: 100.7 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0009022/0.5505, allocations: 1.78 MB / 473.3 MB, free: 98.96 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003622/0.5509, allocations: 165.1 kB / 473.5 MB, free: 98.82 MB / 378.7 MB Notification: Performance of SimCode: time 9.92e-07/0.5509, allocations: 0 / 473.5 MB, free: 98.82 MB / 378.7 MB Notification: Performance of Templates: time 0.03659/0.5875, allocations: 48.41 MB / 0.5097 GB, free: 50.71 MB / 378.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 -s gbode -gbm=radauIIA3 -emit_protected -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.430575232952833]