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.0009796/0.0009796, allocations: 83.89 kB / 21.19 MB, free: 3.383 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.0009678/0.0009678, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 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.9635/0.9635, allocations: 173.3 MB / 201.1 MB, free: 9.324 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.343e-06/1.343e-06, allocations: 0 / 270.9 MB, free: 3.516 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.554e-05/2.688e-05, allocations: 6.25 kB / 270.9 MB, free: 3.508 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01191/0.01194, allocations: 13.36 MB / 284.2 MB, free: 6.109 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1318/0.1438, allocations: 15.2 MB / 299.4 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001124/0.1439, allocations: 1.438 kB / 299.4 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003456/0.1442, allocations: 74.5 kB / 299.5 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003331/0.1446, allocations: 118.9 kB / 299.6 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01253/0.1571, allocations: 5.99 MB / 305.6 MB, free: 12.98 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004458/0.1575, allocations: 353.9 kB / 306 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.207e-05/0.1576, allocations: 7.875 kB / 306 MB, free: 12.85 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004678/0.1581, allocations: 267.1 kB / 306.2 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001495/0.1582, allocations: 92.66 kB / 306.3 MB, free: 12.72 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.046e-05/0.1582, allocations: 14.12 kB / 306.3 MB, free: 12.72 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009109/0.1674, allocations: 6.473 MB / 312.8 MB, free: 10.88 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.091e-05/0.1674, allocations: 47.58 kB / 312.9 MB, free: 10.86 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001053/0.1675, allocations: 85.23 kB / 312.9 MB, free: 10.84 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005849/0.1734, allocations: 4.908 MB / 317.8 MB, free: 7.262 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1734, allocations: 0 / 317.8 MB, free: 7.262 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1734, allocations: 0 / 317.8 MB, free: 7.262 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.704e-06/0.1734, allocations: 7.938 kB / 317.8 MB, free: 7.254 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.00175/0.1751, allocations: 1.026 MB / 318.9 MB, free: 6.191 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.1752, allocations: 12.92 kB / 318.9 MB, free: 6.18 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008174/0.176, allocations: 284 kB / 319.2 MB, free: 5.902 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001978/0.1762, allocations: 200.3 kB / 319.4 MB, free: 5.68 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.738e-05/0.1762, allocations: 20.88 kB / 319.4 MB, free: 5.66 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.538e-05/0.1762, allocations: 22.2 kB / 319.4 MB, free: 5.641 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001618/0.1779, allocations: 1.11 MB / 320.5 MB, free: 4.492 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/0.1779, allocations: 3.938 kB / 320.5 MB, free: 4.488 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.168e-05/0.1779, allocations: 11.94 kB / 320.5 MB, free: 4.477 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.839e-06/0.1779, allocations: 4 kB / 320.5 MB, free: 4.473 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001459/0.1794, allocations: 0.9576 MB / 321.5 MB, free: 3.52 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.00084/0.1802, allocations: 1.061 MB / 322.6 MB, free: 2.418 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001286/0.1815, allocations: 0.8694 MB / 323.4 MB, free: 1.535 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001092/0.1816, allocations: 103.5 kB / 323.5 MB, free: 1.434 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03358/0.2152, allocations: 19.7 MB / 343.2 MB, free: 13.72 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.063e-05/0.2152, allocations: 42.02 kB / 343.3 MB, free: 13.67 MB / 298.7 MB Notification: Performance of pre-optimization done (n=33): time 2.735e-06/0.2152, allocations: 0 / 343.3 MB, free: 13.67 MB / 298.7 MB Notification: Performance of matching and sorting (n=33): time 0.002918/0.2181, allocations: 1.514 MB / 344.8 MB, free: 12.15 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.349e-05/0.2182, allocations: 55.41 kB / 344.8 MB, free: 12.08 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001007/0.2183, allocations: 185.8 kB / 345 MB, free: 11.88 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.394e-05/0.2183, allocations: 33.7 kB / 345.1 MB, free: 11.84 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.461e-05/0.2184, allocations: 162 kB / 345.2 MB, free: 11.68 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001079/0.2185, allocations: 122.2 kB / 345.3 MB, free: 11.57 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003428/0.2188, allocations: 175 kB / 345.5 MB, free: 11.39 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.2189, allocations: 0.5039 MB / 346 MB, free: 10.87 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003903/0.2193, allocations: 410.8 kB / 346.4 MB, free: 10.47 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004252/0.2198, allocations: 497.8 kB / 346.9 MB, free: 9.949 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007943/0.2206, allocations: 0.8543 MB / 347.7 MB, free: 9.062 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.2206, allocations: 4 kB / 347.7 MB, free: 9.059 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001123/0.2217, allocations: 1.012 MB / 348.8 MB, free: 8.043 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.2217, allocations: 4 kB / 348.8 MB, free: 8.039 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.2217, allocations: 7.438 kB / 348.8 MB, free: 8.035 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.971e-05/0.2217, allocations: 4 kB / 348.8 MB, free: 8.031 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005761/0.2223, allocations: 175.8 kB / 348.9 MB, free: 7.859 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.2223, allocations: 7.938 kB / 349 MB, free: 7.852 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001482/0.2225, allocations: 28.09 kB / 349 MB, free: 7.824 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.76e-05/0.2225, allocations: 71.86 kB / 349.1 MB, free: 7.754 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.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.0001434/0.2227, allocations: 176.4 kB / 349.2 MB, free: 7.57 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001076/0.2228, allocations: 27.91 kB / 349.3 MB, free: 7.543 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003443/0.2262, allocations: 5.295 MB / 354.5 MB, free: 2.234 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.001e-05/0.2262, allocations: 27.95 kB / 354.6 MB, free: 2.207 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.858e-06/0.2262, allocations: 0 / 354.6 MB, free: 2.207 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.2263, allocations: 3.984 kB / 354.6 MB, free: 2.203 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001369/0.2276, allocations: 1.912 MB / 356.5 MB, free: 52 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.2276, allocations: 0 / 356.5 MB, free: 52 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002916/0.2279, allocations: 107.8 kB / 356.6 MB, free: 15.95 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.2279, allocations: 0 / 356.6 MB, free: 15.95 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.423e-05/0.2279, allocations: 8 kB / 356.6 MB, free: 15.94 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.228, allocations: 7.984 kB / 356.6 MB, free: 15.93 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.228, allocations: 4 kB / 356.6 MB, free: 15.93 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001149/0.2291, allocations: 1.323 MB / 357.9 MB, free: 14.58 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.178e-05/0.2291, allocations: 67.36 kB / 358 MB, free: 14.52 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.292e-05/0.2292, allocations: 4 kB / 358 MB, free: 14.51 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001271/0.2293, allocations: 15.98 kB / 358 MB, free: 14.5 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.873e-05/0.2294, allocations: 27.95 kB / 358 MB, free: 14.47 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.566e-05/0.2294, allocations: 15.98 kB / 358.1 MB, free: 14.45 MB / 314.7 MB Notification: Performance of sorting global known variables: time 4.087e-05/0.2294, allocations: 135.2 kB / 358.2 MB, free: 14.32 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2294, allocations: 0 / 358.2 MB, free: 14.32 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002038/0.2315, allocations: 0.9941 MB / 359.2 MB, free: 13.32 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.003016/0.2345, allocations: 1.286 MB / 360.5 MB, free: 12.12 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008733/0.2354, allocations: 0.8133 MB / 361.3 MB, free: 11.3 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2354, allocations: 0 / 361.3 MB, free: 11.3 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003589/0.2357, allocations: 371.3 kB / 361.7 MB, free: 10.93 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004153/0.2361, allocations: 97.92 kB / 361.7 MB, free: 10.84 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001646/0.2378, allocations: 1.157 MB / 362.9 MB, free: 9.66 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.74e-05/0.2379, allocations: 152.5 kB / 363.1 MB, free: 9.488 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001384/0.2393, allocations: 1.78 MB / 364.8 MB, free: 7.707 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002393/0.2395, allocations: 92.41 kB / 364.9 MB, free: 7.617 MB / 314.7 MB Notification: Performance of SimCode: time 1.502e-06/0.2395, allocations: 0 / 364.9 MB, free: 7.617 MB / 314.7 MB Notification: Performance of Templates: time 0.03979/0.2793, allocations: 42.28 MB / 407.2 MB, free: 13.32 MB / 362.7 MB " [Timeout remaining time 660] 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 -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.587269474286586]