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.001307/0.001307, allocations: 75.75 kB / 21.69 MB, free: 2.852 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.001387/0.001387, allocations: 166.7 kB / 24.99 MB, free: 8.688 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.938/0.938, allocations: 177.1 MB / 205.3 MB, free: 5.285 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.372e-06/1.372e-06, allocations: 0 / 276 MB, free: 14.76 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.807e-05/1.945e-05, allocations: 5.969 kB / 276 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01092/0.01094, allocations: 13.43 MB / 289.4 MB, free: 1.273 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1114/0.1223, allocations: 15.17 MB / 304.6 MB, free: 11.11 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001058/0.1224, allocations: 1.312 kB / 304.6 MB, free: 11.11 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002916/0.1227, allocations: 80.08 kB / 304.7 MB, free: 11.07 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002613/0.123, allocations: 115.3 kB / 304.8 MB, free: 11.01 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01012/0.1331, allocations: 5.985 MB / 310.8 MB, free: 8.551 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002938/0.1334, allocations: 347.6 kB / 311.1 MB, free: 8.422 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.99e-05/0.1334, allocations: 11.28 kB / 311.1 MB, free: 8.418 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003358/0.1337, allocations: 276.4 kB / 311.4 MB, free: 8.293 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001012/0.1339, allocations: 86.22 kB / 311.5 MB, free: 8.262 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.077e-05/0.1339, allocations: 14.31 kB / 311.5 MB, free: 8.262 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005941/0.1398, allocations: 6.49 MB / 318 MB, free: 4.867 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.777e-05/0.1399, allocations: 47.83 kB / 318 MB, free: 4.82 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.421e-05/0.1399, allocations: 79.88 kB / 318.1 MB, free: 4.742 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003877/0.1438, allocations: 4.927 MB / 323 MB, free: 15.8 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1438, allocations: 0 / 323 MB, free: 15.8 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1438, allocations: 0 / 323 MB, free: 15.8 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.1438, allocations: 0 / 323 MB, free: 15.8 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.001513/0.1453, allocations: 1.039 MB / 324.1 MB, free: 14.72 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.1454, allocations: 16.03 kB / 324.1 MB, free: 14.71 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009621/0.1463, allocations: 280 kB / 324.4 MB, free: 14.43 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002278/0.1466, allocations: 200.3 kB / 324.6 MB, free: 14.21 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.158e-05/0.1466, allocations: 19.25 kB / 324.6 MB, free: 14.2 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.715e-05/0.1466, allocations: 28.33 kB / 324.6 MB, free: 14.17 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001888/0.1485, allocations: 1.115 MB / 325.7 MB, free: 13.02 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.1485, allocations: 0 / 325.7 MB, free: 13.02 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.608e-05/0.1485, allocations: 11.94 kB / 325.7 MB, free: 13.01 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.438e-06/0.1486, allocations: 12 kB / 325.7 MB, free: 13 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001707/0.1503, allocations: 0.9486 MB / 326.7 MB, free: 12.05 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.0009417/0.1512, allocations: 1.057 MB / 327.8 MB, free: 10.94 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001493/0.1527, allocations: 0.8732 MB / 328.6 MB, free: 10.06 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001187/0.1528, allocations: 99.64 kB / 328.7 MB, free: 9.957 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03478/0.1876, allocations: 20.6 MB / 349.3 MB, free: 5.34 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.953e-05/0.1876, allocations: 49.38 kB / 349.4 MB, free: 5.281 MB / 298.7 MB Notification: Performance of pre-optimization done (n=33): time 1.603e-06/0.1876, allocations: 4 kB / 349.4 MB, free: 5.277 MB / 298.7 MB Notification: Performance of matching and sorting (n=33): time 0.00296/0.1906, allocations: 1.518 MB / 350.9 MB, free: 3.754 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.957e-05/0.1906, allocations: 59.34 kB / 351 MB, free: 3.684 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.268e-05/0.1907, allocations: 183.8 kB / 351.1 MB, free: 3.488 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.911e-05/0.1908, allocations: 29.7 kB / 351.2 MB, free: 3.453 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002797/0.191, allocations: 163.6 kB / 351.3 MB, free: 3.289 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.022e-05/0.1911, allocations: 119 kB / 351.4 MB, free: 3.172 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001737/0.1913, allocations: 175.2 kB / 351.6 MB, free: 2.992 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000106/0.1914, allocations: 0.5 MB / 352.1 MB, free: 2.48 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003987/0.1918, allocations: 400.5 kB / 352.5 MB, free: 2.09 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004481/0.1923, allocations: 0.4963 MB / 353 MB, free: 1.559 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008243/0.1931, allocations: 0.8484 MB / 353.8 MB, free: 0.6719 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.1931, allocations: 0 / 353.8 MB, free: 0.6719 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001184/0.1943, allocations: 1.014 MB / 354.9 MB, free: 15.66 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.1943, allocations: 8 kB / 354.9 MB, free: 15.65 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.1943, allocations: 0 / 354.9 MB, free: 15.65 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.1943, allocations: 4 kB / 354.9 MB, free: 15.64 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003329/0.1946, allocations: 179.7 kB / 355 MB, free: 15.47 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.814e-06/0.1946, allocations: 4 kB / 355.1 MB, free: 15.46 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000149/0.1948, allocations: 27.78 kB / 355.1 MB, free: 15.44 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.758e-05/0.1949, allocations: 72.11 kB / 355.1 MB, free: 15.37 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.000146/0.195, allocations: 180.5 kB / 355.3 MB, free: 15.18 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001203/0.1951, allocations: 23.91 kB / 355.3 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003836/0.199, allocations: 5.301 MB / 360.6 MB, free: 9.848 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.757e-05/0.199, allocations: 31.95 kB / 360.7 MB, free: 9.816 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.199, allocations: 0 / 360.7 MB, free: 9.816 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.199, allocations: 0 / 360.7 MB, free: 9.816 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001156/0.2001, allocations: 1.922 MB / 362.6 MB, free: 7.648 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.2001, allocations: 0 / 362.6 MB, free: 7.648 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002974/0.2004, allocations: 118.7 kB / 362.7 MB, free: 7.535 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.179e-06/0.2005, allocations: 4 kB / 362.7 MB, free: 7.531 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.665e-05/0.2005, allocations: 8 kB / 362.7 MB, free: 7.523 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.013e-06/0.2005, allocations: 0 / 362.7 MB, free: 7.523 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2005, allocations: 0 / 362.7 MB, free: 7.523 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001173/0.2017, allocations: 1.319 MB / 364 MB, free: 6.184 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.571e-05/0.2017, allocations: 71.3 kB / 364.1 MB, free: 6.113 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.638e-05/0.2017, allocations: 4 kB / 364.1 MB, free: 6.109 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000125/0.2019, allocations: 16 kB / 364.1 MB, free: 6.094 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.984e-05/0.2019, allocations: 31.94 kB / 364.2 MB, free: 6.062 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.352e-05/0.202, allocations: 11.98 kB / 364.2 MB, free: 6.051 MB / 314.7 MB Notification: Performance of sorting global known variables: time 4.371e-05/0.202, allocations: 139.1 kB / 364.3 MB, free: 5.914 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.202, allocations: 0 / 364.3 MB, free: 5.914 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00176/0.2038, allocations: 1.002 MB / 365.3 MB, free: 4.91 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.002716/0.2065, allocations: 1.284 MB / 366.6 MB, free: 3.617 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008427/0.2073, allocations: 0.8204 MB / 367.4 MB, free: 2.793 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.2073, allocations: 4 kB / 367.4 MB, free: 2.789 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003591/0.2077, allocations: 359.4 kB / 367.8 MB, free: 2.438 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004199/0.2081, allocations: 101 kB / 367.9 MB, free: 2.34 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001567/0.2097, allocations: 1.162 MB / 369 MB, free: 1.141 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.315e-05/0.2097, allocations: 144.6 kB / 369.2 MB, free: 0.9766 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001205/0.211, allocations: 1.789 MB / 371 MB, free: 15.2 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000224/0.2112, allocations: 88.42 kB / 371.1 MB, free: 15.11 MB / 330.7 MB Notification: Performance of SimCode: time 9.41e-07/0.2112, allocations: 0 / 371.1 MB, free: 15.11 MB / 330.7 MB Notification: Performance of Templates: time 0.03616/0.2473, allocations: 42.42 MB / 413.5 MB, free: 4.664 MB / 362.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: 4.311796730849892]