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.00151/0.00151, allocations: 80.31 kB / 22.21 MB, free: 2.289 MB / 18.57 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.001638/0.001638, allocations: 174.1 kB / 25.61 MB, free: 8.926 MB / 18.57 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.8473/0.8473, allocations: 177.2 MB / 206.1 MB, free: 4.496 MB / 186.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.332e-06/1.332e-06, allocations: 0 / 277.1 MB, free: 1.5 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.257e-05/1.391e-05, allocations: 2.312 kB / 277.1 MB, free: 1.496 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01013/0.01014, allocations: 13.32 MB / 290.4 MB, free: 4.156 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01088/0.02103, allocations: 14.94 MB / 305.4 MB, free: 5.16 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.605e-05/0.02109, allocations: 0 / 305.4 MB, free: 5.16 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000214/0.02131, allocations: 79.45 kB / 305.4 MB, free: 5.082 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002109/0.02152, allocations: 119.1 kB / 305.5 MB, free: 4.965 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009033/0.03055, allocations: 5.992 MB / 311.5 MB, free: 14.95 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002703/0.03082, allocations: 358.3 kB / 311.9 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.23e-05/0.03085, allocations: 5.812 kB / 311.9 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003453/0.0312, allocations: 271.1 kB / 312.2 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003617/0.03156, allocations: 87.78 kB / 312.2 MB, free: 14.24 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.776e-05/0.03158, allocations: 12 kB / 312.3 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007257/0.03884, allocations: 6.489 MB / 318.7 MB, free: 7.73 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.534e-05/0.03889, allocations: 47.88 kB / 318.8 MB, free: 7.684 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.12e-05/0.03896, allocations: 79.83 kB / 318.9 MB, free: 7.605 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00547/0.04443, allocations: 4.927 MB / 323.8 MB, free: 2.668 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.04444, allocations: 4 kB / 323.8 MB, free: 2.664 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.04444, allocations: 0 / 323.8 MB, free: 2.664 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.04444, allocations: 0 / 323.8 MB, free: 2.664 MB / 298.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.001859/0.0463, allocations: 1.039 MB / 324.8 MB, free: 1.586 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.08e-05/0.04633, allocations: 8.031 kB / 324.8 MB, free: 1.578 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008056/0.04714, allocations: 295.9 kB / 325.1 MB, free: 1.289 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001864/0.04732, allocations: 204.3 kB / 325.3 MB, free: 1.062 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.798e-05/0.04734, allocations: 20.88 kB / 325.4 MB, free: 1.043 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.033e-05/0.04737, allocations: 20.38 kB / 325.4 MB, free: 1.023 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001596/0.04897, allocations: 1.038 MB / 326.4 MB, free: 15.95 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.04898, allocations: 3.938 kB / 326.4 MB, free: 15.94 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.162e-05/0.049, allocations: 12 kB / 326.4 MB, free: 15.93 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.531e-06/0.04901, allocations: 4 kB / 326.4 MB, free: 15.93 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001569/0.05057, allocations: 0.8596 MB / 327.3 MB, free: 15.07 MB / 314.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.0008129/0.05139, allocations: 1.034 MB / 328.3 MB, free: 14 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001269/0.05266, allocations: 0.8068 MB / 329.1 MB, free: 13.18 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.852e-05/0.05273, allocations: 87.64 kB / 329.2 MB, free: 13.09 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1355/0.1882, allocations: 18.11 MB / 347.3 MB, free: 43.71 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.676e-05/0.1883, allocations: 36.39 kB / 347.4 MB, free: 43.67 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 2.765e-06/0.1883, allocations: 5.219 kB / 347.4 MB, free: 43.67 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.002434/0.1907, allocations: 1.398 MB / 348.8 MB, free: 43.64 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.061e-05/0.1907, allocations: 58.31 kB / 348.8 MB, free: 43.57 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.85e-05/0.1908, allocations: 183.2 kB / 349 MB, free: 43.41 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.779e-05/0.1908, allocations: 31.33 kB / 349 MB, free: 43.38 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.807e-05/0.1909, allocations: 170 kB / 349.2 MB, free: 43.24 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.031e-05/0.1909, allocations: 112.3 kB / 349.3 MB, free: 43.18 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001552/0.1911, allocations: 177.1 kB / 349.5 MB, free: 43.15 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.483e-05/0.1911, allocations: 0.5022 MB / 350 MB, free: 42.66 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002474/0.1914, allocations: 343.2 kB / 350.3 MB, free: 42.66 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002738/0.1917, allocations: 446.7 kB / 350.8 MB, free: 42.55 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005296/0.1922, allocations: 0.7511 MB / 351.5 MB, free: 42.44 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.1922, allocations: 0 / 351.5 MB, free: 42.44 MB / 314.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008447/0.193, allocations: 0.9125 MB / 352.4 MB, free: 42.39 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.1931, allocations: 6 kB / 352.4 MB, free: 42.39 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.1931, allocations: 0 / 352.4 MB, free: 42.39 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.117e-05/0.1931, allocations: 3.031 kB / 352.4 MB, free: 42.39 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003127/0.1934, allocations: 177.2 kB / 352.6 MB, free: 42.39 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.1934, allocations: 4.656 kB / 352.6 MB, free: 42.39 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000143/0.1935, allocations: 26.5 kB / 352.6 MB, free: 42.38 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.777e-05/0.1936, allocations: 66.44 kB / 352.7 MB, free: 42.38 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.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.0001276/0.1937, allocations: 185.9 kB / 352.9 MB, free: 42.21 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001212/0.1938, allocations: 24.19 kB / 352.9 MB, free: 42.21 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002323/0.1962, allocations: 4.469 MB / 357.4 MB, free: 41.99 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.488e-05/0.1962, allocations: 32.59 kB / 357.4 MB, free: 41.99 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.484e-06/0.1962, allocations: 7.797 kB / 357.4 MB, free: 41.99 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.1962, allocations: 4.406 kB / 357.4 MB, free: 41.99 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007868/0.197, allocations: 1.887 MB / 359.3 MB, free: 41.02 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.197, allocations: 4 kB / 359.3 MB, free: 41.02 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002647/0.1972, allocations: 112.5 kB / 359.4 MB, free: 40.96 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.1972, allocations: 0 / 359.4 MB, free: 40.96 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.177e-05/0.1973, allocations: 11.12 kB / 359.4 MB, free: 40.96 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.1973, allocations: 4 kB / 359.4 MB, free: 40.96 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1973, allocations: 0 / 359.4 MB, free: 40.96 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000747/0.198, allocations: 1.166 MB / 360.6 MB, free: 39.93 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.851e-05/0.198, allocations: 70.09 kB / 360.7 MB, free: 39.88 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.166e-05/0.1981, allocations: 3.688 kB / 360.7 MB, free: 39.88 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001228/0.1982, allocations: 15.69 kB / 360.7 MB, free: 39.87 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.491e-05/0.1983, allocations: 34.17 kB / 360.7 MB, free: 39.86 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.099e-05/0.1983, allocations: 11.09 kB / 360.7 MB, free: 39.86 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.999e-05/0.1983, allocations: 135.6 kB / 360.9 MB, free: 39.73 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1983, allocations: 0 / 360.9 MB, free: 39.73 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001632/0.1999, allocations: 1.004 MB / 361.9 MB, free: 38.92 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.002278/0.2022, allocations: 1.311 MB / 363.2 MB, free: 37.85 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005374/0.2027, allocations: 0.7051 MB / 363.9 MB, free: 37.3 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.2027, allocations: 0 / 363.9 MB, free: 37.3 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002253/0.203, allocations: 321.6 kB / 364.2 MB, free: 37.05 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000363/0.2033, allocations: 105.3 kB / 364.3 MB, free: 36.99 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001154/0.2045, allocations: 1.126 MB / 365.4 MB, free: 36.06 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.425e-05/0.2045, allocations: 143 kB / 365.6 MB, free: 35.92 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0008952/0.2054, allocations: 1.788 MB / 367.4 MB, free: 34.89 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003637/0.2058, allocations: 214.7 kB / 367.6 MB, free: 34.73 MB / 314.7 MB Notification: Performance of SimCode: time 7.52e-07/0.2058, allocations: 0 / 367.6 MB, free: 34.73 MB / 314.7 MB Notification: Performance of Templates: time 0.04604/0.2518, allocations: 49.84 MB / 417.4 MB, free: 2.719 MB / 330.7 MB " [Timeout remaining time 660] 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 -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: 5.223455199971795]