Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002537/0.002537, allocations: 103.5 kB / 20.97 MB, free: 3.449 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002913/0.002913, allocations: 156.8 kB / 24.27 MB, free: 152 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.565/1.565, allocations: 177 MB / 204.4 MB, free: 5.641 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 275.1 MB, free: 14.91 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.584e-05/2.733e-05, allocations: 2.312 kB / 275.1 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.02037/0.0204, allocations: 13.39 MB / 288.5 MB, free: 1.465 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1256/0.146, allocations: 15.18 MB / 303.7 MB, free: 11.77 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000159/0.1462, allocations: 4.875 kB / 303.7 MB, free: 11.77 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003364/0.1465, allocations: 82.03 kB / 303.7 MB, free: 11.73 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003284/0.1469, allocations: 114.3 kB / 303.9 MB, free: 11.66 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01483/0.1617, allocations: 5.984 MB / 309.8 MB, free: 9.168 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004188/0.1621, allocations: 352 kB / 310.2 MB, free: 9.035 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.534e-05/0.1622, allocations: 7.5 kB / 310.2 MB, free: 9.035 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000457/0.1626, allocations: 268.1 kB / 310.5 MB, free: 8.918 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001345/0.1627, allocations: 89.5 kB / 310.5 MB, free: 8.883 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.171e-05/0.1628, allocations: 15.16 kB / 310.6 MB, free: 8.883 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0107/0.1735, allocations: 6.491 MB / 317 MB, free: 5.164 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.374e-05/0.1736, allocations: 47.81 kB / 317.1 MB, free: 5.117 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001531/0.1737, allocations: 83.84 kB / 317.2 MB, free: 5.035 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008865/0.1826, allocations: 4.981 MB / 322.2 MB, free: 44 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.1826, allocations: 4 kB / 322.2 MB, free: 40 kB / 266.7 MB Notification: Performance of FrontEnd: time 2.043e-06/0.1826, allocations: 0 / 322.2 MB, free: 40 kB / 266.7 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.1826, allocations: 0 / 322.2 MB, free: 40 kB / 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.002766/0.1854, allocations: 1.044 MB / 323.2 MB, free: 14.95 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/0.1854, allocations: 15.98 kB / 323.2 MB, free: 14.93 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001469/0.1869, allocations: 280 kB / 323.5 MB, free: 14.66 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003335/0.1872, allocations: 208.3 kB / 323.7 MB, free: 14.43 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.029e-05/0.1872, allocations: 16.88 kB / 323.7 MB, free: 14.41 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.776e-05/0.1873, allocations: 28.33 kB / 323.7 MB, free: 14.39 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003391/0.1907, allocations: 1.112 MB / 324.8 MB, free: 13.24 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.632e-05/0.1907, allocations: 3.938 kB / 324.9 MB, free: 13.24 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.887e-05/0.1907, allocations: 11.94 kB / 324.9 MB, free: 13.23 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.135e-06/0.1908, allocations: 4 kB / 324.9 MB, free: 13.22 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003449/0.1942, allocations: 1.099 MB / 326 MB, free: 12.12 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.001835/0.196, allocations: 1.13 MB / 327.1 MB, free: 10.95 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002818/0.1989, allocations: 0.834 MB / 327.9 MB, free: 10.1 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002702/0.1991, allocations: 144.1 kB / 328.1 MB, free: 9.957 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07659/0.2757, allocations: 20.61 MB / 348.7 MB, free: 5.328 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.749e-05/0.2758, allocations: 33.39 kB / 348.7 MB, free: 5.285 MB / 298.7 MB Notification: Performance of pre-optimization done (n=33): time 2.034e-06/0.2758, allocations: 0 / 348.7 MB, free: 5.285 MB / 298.7 MB Notification: Performance of matching and sorting (n=33): time 0.005902/0.2817, allocations: 1.618 MB / 350.3 MB, free: 3.66 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.07e-05/0.2817, allocations: 55.41 kB / 350.4 MB, free: 3.594 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001818/0.2819, allocations: 194.4 kB / 350.6 MB, free: 3.387 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.981e-05/0.282, allocations: 29.7 kB / 350.6 MB, free: 3.352 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001148/0.2821, allocations: 159.6 kB / 350.8 MB, free: 3.191 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003853/0.2825, allocations: 134.9 kB / 350.9 MB, free: 3.059 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003406/0.2828, allocations: 175.2 kB / 351.1 MB, free: 2.879 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002787/0.2831, allocations: 0.5078 MB / 351.6 MB, free: 2.359 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007859/0.2839, allocations: 439.8 kB / 352 MB, free: 1.93 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009208/0.2848, allocations: 0.5329 MB / 352.5 MB, free: 1.355 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001655/0.2864, allocations: 0.9156 MB / 353.5 MB, free: 416 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.2865, allocations: 0 / 353.5 MB, free: 416 kB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002283/0.2887, allocations: 1.075 MB / 354.5 MB, free: 15.32 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/0.2888, allocations: 4 kB / 354.5 MB, free: 15.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.2888, allocations: 4 kB / 354.5 MB, free: 15.31 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.971e-05/0.2888, allocations: 4 kB / 354.5 MB, free: 15.31 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007114/0.2895, allocations: 171.8 kB / 354.7 MB, free: 15.14 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.792e-05/0.2895, allocations: 11.92 kB / 354.7 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003448/0.2899, allocations: 28.09 kB / 354.7 MB, free: 15.1 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001327/0.29, allocations: 67.88 kB / 354.8 MB, free: 15.04 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.0002803/0.2903, allocations: 188.4 kB / 355 MB, free: 14.84 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002099/0.2905, allocations: 27.91 kB / 355 MB, free: 14.81 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006418/0.2969, allocations: 5.015 MB / 360 MB, free: 9.785 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.493e-05/0.2969, allocations: 23.95 kB / 360.1 MB, free: 9.762 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.2969, allocations: 4 kB / 360.1 MB, free: 9.758 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.2969, allocations: 0 / 360.1 MB, free: 9.758 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002144/0.2991, allocations: 1.861 MB / 361.9 MB, free: 7.656 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.259e-06/0.2991, allocations: 0 / 361.9 MB, free: 7.656 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006527/0.2997, allocations: 99.86 kB / 362 MB, free: 7.559 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.376e-06/0.2998, allocations: 4 kB / 362 MB, free: 7.555 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.788e-05/0.2998, allocations: 15.98 kB / 362 MB, free: 7.539 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.432e-06/0.2998, allocations: 3.938 kB / 362.1 MB, free: 7.535 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.2998, allocations: 3.938 kB / 362.1 MB, free: 7.531 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002413/0.3022, allocations: 1.53 MB / 363.6 MB, free: 5.98 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.209e-05/0.3023, allocations: 67.36 kB / 363.7 MB, free: 5.914 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.161e-05/0.3024, allocations: 8 kB / 363.7 MB, free: 5.906 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000278/0.3026, allocations: 12 kB / 363.7 MB, free: 5.895 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000109/0.3028, allocations: 27.94 kB / 363.7 MB, free: 5.867 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.491e-05/0.3028, allocations: 19.98 kB / 363.7 MB, free: 5.848 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001001/0.3029, allocations: 135.2 kB / 363.8 MB, free: 5.715 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3029, allocations: 0 / 363.8 MB, free: 5.715 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002957/0.3059, allocations: 1.002 MB / 364.9 MB, free: 4.711 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.004326/0.3102, allocations: 1.302 MB / 366.2 MB, free: 3.41 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001763/0.3119, allocations: 0.9032 MB / 367.1 MB, free: 2.504 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.312, allocations: 0 / 367.1 MB, free: 2.504 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007059/0.3127, allocations: 419.4 kB / 367.5 MB, free: 2.09 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006829/0.3133, allocations: 104.4 kB / 367.6 MB, free: 1.996 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001969/0.3153, allocations: 1.201 MB / 368.8 MB, free: 0.7617 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002678/0.3156, allocations: 255.2 kB / 369 MB, free: 496 kB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.00232/0.3179, allocations: 1.785 MB / 370.8 MB, free: 14.73 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004142/0.3183, allocations: 88.34 kB / 370.9 MB, free: 14.64 MB / 330.7 MB Notification: Performance of SimCode: time 8.42e-07/0.3183, allocations: 0 / 370.9 MB, free: 14.64 MB / 330.7 MB Notification: Performance of Templates: time 0.0671/0.3854, allocations: 42.42 MB / 413.3 MB, free: 4.184 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.249693262972869]