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.0009413/0.0009413, allocations: 83.69 kB / 21.18 MB, free: 3.395 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.0009464/0.0009464, allocations: 165 kB / 24.56 MB, free: 24 kB / 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.9062/0.9062, allocations: 177.1 MB / 205 MB, free: 5.25 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.734e-06/1.734e-06, allocations: 0 / 275.9 MB, free: 14.43 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.712e-05/2.886e-05, allocations: 2.312 kB / 275.9 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01308/0.01311, allocations: 13.45 MB / 289.4 MB, free: 0.9297 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1146/0.1277, allocations: 15.21 MB / 304.6 MB, free: 10.99 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001509/0.1279, allocations: 1.469 kB / 304.6 MB, free: 10.99 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003281/0.1282, allocations: 70.53 kB / 304.6 MB, free: 10.96 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002963/0.1285, allocations: 126.7 kB / 304.8 MB, free: 10.88 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01262/0.1411, allocations: 5.991 MB / 310.8 MB, free: 8.375 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003589/0.1415, allocations: 352.7 kB / 311.1 MB, free: 8.238 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.491e-05/0.1415, allocations: 11.94 kB / 311.1 MB, free: 8.234 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003943/0.1419, allocations: 266 kB / 311.4 MB, free: 8.121 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001285/0.142, allocations: 89.73 kB / 311.5 MB, free: 8.086 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.608e-05/0.1421, allocations: 13.72 kB / 311.5 MB, free: 8.086 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008106/0.1502, allocations: 6.491 MB / 318 MB, free: 4.578 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.3e-05/0.1502, allocations: 51.81 kB / 318 MB, free: 4.527 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.261e-05/0.1503, allocations: 75.84 kB / 318.1 MB, free: 4.453 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00601/0.1563, allocations: 4.93 MB / 323 MB, free: 15.51 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.1563, allocations: 0 / 323 MB, free: 15.51 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1563, allocations: 0 / 323 MB, free: 15.51 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.1563, allocations: 0 / 323 MB, free: 15.51 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.001887/0.1582, allocations: 1.047 MB / 324.1 MB, free: 14.42 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.1583, allocations: 12.03 kB / 324.1 MB, free: 14.41 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008738/0.1591, allocations: 272.6 kB / 324.3 MB, free: 14.14 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003762/0.1595, allocations: 200.3 kB / 324.5 MB, free: 13.92 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.009e-05/0.1595, allocations: 16.88 kB / 324.6 MB, free: 13.91 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.159e-05/0.1596, allocations: 36.25 kB / 324.6 MB, free: 13.87 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001806/0.1614, allocations: 1.105 MB / 325.7 MB, free: 12.73 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.1614, allocations: 0 / 325.7 MB, free: 12.73 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.593e-05/0.1614, allocations: 18.19 kB / 325.7 MB, free: 12.71 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.1614, allocations: 4 kB / 325.7 MB, free: 12.71 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001645/0.1631, allocations: 0.9619 MB / 326.7 MB, free: 11.75 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.0009846/0.1641, allocations: 1.057 MB / 327.7 MB, free: 10.64 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001417/0.1655, allocations: 0.8637 MB / 328.6 MB, free: 9.77 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001208/0.1656, allocations: 107.6 kB / 328.7 MB, free: 9.66 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03645/0.2021, allocations: 20.61 MB / 349.3 MB, free: 5.043 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.068e-05/0.2021, allocations: 41.39 kB / 349.4 MB, free: 4.992 MB / 298.7 MB Notification: Performance of pre-optimization done (n=33): time 2.665e-06/0.2021, allocations: 4 kB / 349.4 MB, free: 4.988 MB / 298.7 MB Notification: Performance of matching and sorting (n=33): time 0.00313/0.2052, allocations: 1.519 MB / 350.9 MB, free: 3.465 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3e-05/0.2053, allocations: 55.41 kB / 350.9 MB, free: 3.398 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001026/0.2054, allocations: 187.8 kB / 351.1 MB, free: 3.199 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.888e-05/0.2054, allocations: 37.64 kB / 351.2 MB, free: 3.156 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.488e-05/0.2055, allocations: 163.5 kB / 351.3 MB, free: 2.992 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.905e-05/0.2056, allocations: 119 kB / 351.4 MB, free: 2.875 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001955/0.2058, allocations: 171.2 kB / 351.6 MB, free: 2.699 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.2059, allocations: 0.5 MB / 352.1 MB, free: 2.188 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004231/0.2063, allocations: 406 kB / 352.5 MB, free: 1.793 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004634/0.2068, allocations: 498.5 kB / 353 MB, free: 1.27 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00109/0.2079, allocations: 0.8587 MB / 353.8 MB, free: 384 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.2079, allocations: 0 / 353.8 MB, free: 384 kB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001236/0.2091, allocations: 1.016 MB / 354.9 MB, free: 15.35 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.848e-05/0.2091, allocations: 4 kB / 354.9 MB, free: 15.35 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.268e-06/0.2091, allocations: 7.984 kB / 354.9 MB, free: 15.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.2091, allocations: 4 kB / 354.9 MB, free: 15.34 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003597/0.2095, allocations: 171.8 kB / 355 MB, free: 15.17 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.2095, allocations: 0 / 355 MB, free: 15.17 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001613/0.2097, allocations: 31.84 kB / 355.1 MB, free: 15.14 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.241e-05/0.2097, allocations: 68.11 kB / 355.1 MB, free: 15.07 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.0001561/0.2099, allocations: 176.5 kB / 355.3 MB, free: 14.89 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000123/0.21, allocations: 27.91 kB / 355.3 MB, free: 14.86 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003889/0.2139, allocations: 5.304 MB / 360.6 MB, free: 9.547 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.969e-05/0.2139, allocations: 31.95 kB / 360.7 MB, free: 9.516 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.9e-06/0.2139, allocations: 0.875 kB / 360.7 MB, free: 9.516 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.2139, allocations: 0 / 360.7 MB, free: 9.516 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001131/0.2151, allocations: 1.914 MB / 362.6 MB, free: 7.359 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.05e-06/0.2151, allocations: 0 / 362.6 MB, free: 7.359 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002922/0.2154, allocations: 107.8 kB / 362.7 MB, free: 7.254 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.2154, allocations: 0 / 362.7 MB, free: 7.254 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.735e-05/0.2154, allocations: 18.92 kB / 362.7 MB, free: 7.238 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.367e-06/0.2154, allocations: 4 kB / 362.7 MB, free: 7.234 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2154, allocations: 0 / 362.7 MB, free: 7.234 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001155/0.2166, allocations: 1.315 MB / 364 MB, free: 5.898 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.552e-05/0.2166, allocations: 71.3 kB / 364.1 MB, free: 5.828 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.59e-05/0.2166, allocations: 8 kB / 364.1 MB, free: 5.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001336/0.2168, allocations: 8 kB / 364.1 MB, free: 5.812 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.077e-05/0.2169, allocations: 39.81 kB / 364.1 MB, free: 5.773 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-05/0.2169, allocations: 19.98 kB / 364.2 MB, free: 5.754 MB / 314.7 MB Notification: Performance of sorting global known variables: time 4.282e-05/0.2169, allocations: 131.2 kB / 364.3 MB, free: 5.625 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2169, allocations: 0 / 364.3 MB, free: 5.625 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001941/0.2189, allocations: 1.006 MB / 365.3 MB, free: 4.617 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.002955/0.2218, allocations: 1.277 MB / 366.6 MB, free: 3.344 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009217/0.2227, allocations: 0.8176 MB / 367.4 MB, free: 2.52 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.2227, allocations: 0 / 367.4 MB, free: 2.52 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005809/0.2233, allocations: 367.3 kB / 367.8 MB, free: 2.16 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004249/0.2237, allocations: 101.9 kB / 367.9 MB, free: 2.062 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001629/0.2254, allocations: 1.154 MB / 369 MB, free: 0.8711 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.205e-05/0.2255, allocations: 144.6 kB / 369.1 MB, free: 0.707 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001246/0.2267, allocations: 1.782 MB / 370.9 MB, free: 14.94 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002522/0.227, allocations: 96.34 kB / 371 MB, free: 14.84 MB / 330.7 MB Notification: Performance of SimCode: time 1.092e-06/0.227, allocations: 0 / 371 MB, free: 14.84 MB / 330.7 MB Notification: Performance of Templates: time 0.04036/0.2673, allocations: 42.42 MB / 413.4 MB, free: 4.395 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.463283739052713]