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.001129/0.001129, allocations: 81.86 kB / 21.42 MB, free: 3.078 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.0008819/0.0008819, allocations: 169.1 kB / 24.82 MB, free: 8.867 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.9001/0.9001, allocations: 177.1 MB / 205.3 MB, free: 5.473 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 2.084e-06/2.084e-06, allocations: 0 / 276.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.728e-05/2.937e-05, allocations: 2.312 kB / 276.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01185/0.01188, allocations: 13.32 MB / 289.6 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1207/0.1326, allocations: 14.94 MB / 304.6 MB, free: 11.73 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001647/0.1328, allocations: 1.062 kB / 304.6 MB, free: 11.73 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003094/0.1331, allocations: 70.78 kB / 304.6 MB, free: 11.71 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003269/0.1334, allocations: 125.5 kB / 304.7 MB, free: 11.63 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01505/0.1484, allocations: 5.991 MB / 310.7 MB, free: 9.09 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00044/0.1489, allocations: 354.9 kB / 311.1 MB, free: 8.953 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.719e-05/0.1489, allocations: 7.906 kB / 311.1 MB, free: 8.953 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005731/0.1495, allocations: 264.9 kB / 311.4 MB, free: 8.836 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001751/0.1497, allocations: 93.23 kB / 311.4 MB, free: 8.801 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.923e-05/0.1497, allocations: 14.22 kB / 311.5 MB, free: 8.801 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008811/0.1585, allocations: 6.487 MB / 317.9 MB, free: 4.887 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.644e-05/0.1586, allocations: 59.75 kB / 318 MB, free: 4.828 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001397/0.1588, allocations: 79.83 kB / 318.1 MB, free: 4.75 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007115/0.1659, allocations: 4.923 MB / 323 MB, free: 15.82 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.1659, allocations: 0 / 323 MB, free: 15.82 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1659, allocations: 0 / 323 MB, free: 15.82 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.1659, allocations: 7.938 kB / 323 MB, free: 15.81 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.00194/0.1678, allocations: 1.039 MB / 324.1 MB, free: 14.73 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.1679, allocations: 8.031 kB / 324.1 MB, free: 14.72 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008294/0.1687, allocations: 280.1 kB / 324.3 MB, free: 14.45 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002226/0.1689, allocations: 207.6 kB / 324.5 MB, free: 14.22 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.199e-05/0.1689, allocations: 20.88 kB / 324.6 MB, free: 14.2 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.256e-05/0.169, allocations: 27.08 kB / 324.6 MB, free: 14.18 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001603/0.1706, allocations: 1.037 MB / 325.6 MB, free: 13.1 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.998e-06/0.1706, allocations: 0 / 325.6 MB, free: 13.1 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.066e-05/0.1706, allocations: 11.94 kB / 325.6 MB, free: 13.09 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.989e-06/0.1706, allocations: 11.98 kB / 325.6 MB, free: 13.08 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00186/0.1725, allocations: 0.8609 MB / 326.5 MB, free: 12.22 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.0009413/0.1734, allocations: 1.03 MB / 327.5 MB, free: 11.15 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001277/0.1747, allocations: 0.8012 MB / 328.3 MB, free: 10.34 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.838e-05/0.1748, allocations: 95.62 kB / 328.4 MB, free: 10.24 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03126/0.2061, allocations: 18.26 MB / 346.7 MB, free: 7.984 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.546e-05/0.2061, allocations: 37.33 kB / 346.7 MB, free: 7.938 MB / 298.7 MB Notification: Performance of pre-optimization done (n=33): time 2.114e-06/0.2061, allocations: 0 / 346.7 MB, free: 7.938 MB / 298.7 MB Notification: Performance of matching and sorting (n=33): time 0.002597/0.2087, allocations: 1.396 MB / 348.1 MB, free: 6.535 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.065e-05/0.2087, allocations: 55.41 kB / 348.2 MB, free: 6.469 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002816/0.209, allocations: 181.8 kB / 348.4 MB, free: 6.273 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.528e-05/0.2091, allocations: 37.7 kB / 348.4 MB, free: 6.23 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.822e-05/0.2091, allocations: 167.5 kB / 348.6 MB, free: 6.062 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.901e-05/0.2092, allocations: 122.9 kB / 348.7 MB, free: 5.941 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001648/0.2094, allocations: 171.2 kB / 348.8 MB, free: 5.766 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.2095, allocations: 0.5 MB / 349.3 MB, free: 5.254 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000304/0.2098, allocations: 351.2 kB / 349.7 MB, free: 4.914 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003267/0.2101, allocations: 440.8 kB / 350.1 MB, free: 4.445 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006185/0.2107, allocations: 0.7546 MB / 350.9 MB, free: 3.656 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.2107, allocations: 0 / 350.9 MB, free: 3.656 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008885/0.2116, allocations: 0.904 MB / 351.8 MB, free: 2.75 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.2116, allocations: 4.25 kB / 351.8 MB, free: 2.746 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.2116, allocations: 10.94 kB / 351.8 MB, free: 2.738 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.2117, allocations: 4 kB / 351.8 MB, free: 2.734 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003024/0.212, allocations: 171.8 kB / 352 MB, free: 2.566 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.73e-06/0.212, allocations: 7.938 kB / 352 MB, free: 2.559 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001426/0.2121, allocations: 27.83 kB / 352 MB, free: 2.531 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.832e-05/0.2122, allocations: 59.94 kB / 352.1 MB, free: 2.473 MB / 298.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.0001369/0.2123, allocations: 180.5 kB / 352.2 MB, free: 2.285 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001046/0.2124, allocations: 27.91 kB / 352.3 MB, free: 2.258 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00297/0.2154, allocations: 4.47 MB / 356.7 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.926e-05/0.2154, allocations: 27.95 kB / 356.8 MB, free: 13.75 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.824e-06/0.2154, allocations: 0 / 356.8 MB, free: 13.75 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.543e-06/0.2154, allocations: 3.984 kB / 356.8 MB, free: 13.74 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001096/0.2165, allocations: 1.891 MB / 358.6 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.2165, allocations: 0 / 358.6 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002655/0.2168, allocations: 111.7 kB / 358.8 MB, free: 11.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.2168, allocations: 4 kB / 358.8 MB, free: 11.5 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.52e-05/0.2168, allocations: 15.98 kB / 358.8 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.2168, allocations: 0 / 358.8 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2168, allocations: 0 / 358.8 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009167/0.2177, allocations: 1.167 MB / 359.9 MB, free: 10.3 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.978e-05/0.2178, allocations: 63.36 kB / 360 MB, free: 10.23 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.208e-05/0.2178, allocations: 12 kB / 360 MB, free: 10.22 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00012/0.2179, allocations: 8 kB / 360 MB, free: 10.21 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.656e-05/0.218, allocations: 35.97 kB / 360.1 MB, free: 10.18 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.396e-05/0.218, allocations: 17.73 kB / 360.1 MB, free: 10.16 MB / 314.7 MB Notification: Performance of sorting global known variables: time 3.694e-05/0.218, allocations: 127.5 kB / 360.2 MB, free: 10.04 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.218, allocations: 0 / 360.2 MB, free: 10.04 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002065/0.2201, allocations: 1.002 MB / 361.2 MB, free: 9.035 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.002884/0.223, allocations: 1.317 MB / 362.5 MB, free: 7.707 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006628/0.2236, allocations: 0.7103 MB / 363.2 MB, free: 6.992 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2236, allocations: 0.5 kB / 363.2 MB, free: 6.992 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002639/0.2239, allocations: 319.3 kB / 363.5 MB, free: 6.68 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003731/0.2243, allocations: 99.95 kB / 363.6 MB, free: 6.586 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001367/0.2256, allocations: 1.127 MB / 364.8 MB, free: 5.422 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.692e-05/0.2257, allocations: 144.6 kB / 364.9 MB, free: 5.258 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001151/0.2269, allocations: 1.783 MB / 366.7 MB, free: 3.477 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003898/0.2273, allocations: 218 kB / 366.9 MB, free: 3.262 MB / 314.7 MB Notification: Performance of SimCode: time 9.92e-07/0.2273, allocations: 0 / 366.9 MB, free: 3.262 MB / 314.7 MB Notification: Performance of Templates: time 0.04508/0.2723, allocations: 49.58 MB / 416.5 MB, free: 1.641 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.192136307246983]