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.001906/0.001906, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.001994/0.001994, allocations: 161.3 kB / 24.27 MB, free: 156 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 1.533/1.533, allocations: 177.1 MB / 204.6 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] 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.473e-06/1.473e-06, allocations: 0 / 275.2 MB, free: 14.93 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.569e-05/2.716e-05, allocations: 2.312 kB / 275.2 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.0201/0.02012, allocations: 13.39 MB / 288.6 MB, free: 1.484 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.125/0.1451, allocations: 15.17 MB / 303.8 MB, free: 11.74 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001542/0.1453, allocations: 1.656 kB / 303.8 MB, free: 11.74 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003163/0.1456, allocations: 75.3 kB / 303.9 MB, free: 11.71 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003051/0.1459, allocations: 123.3 kB / 304 MB, free: 11.64 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01434/0.1602, allocations: 5.98 MB / 310 MB, free: 9.117 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003975/0.1606, allocations: 357.1 kB / 310.3 MB, free: 8.98 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.388e-05/0.1607, allocations: 7.438 kB / 310.3 MB, free: 8.98 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004417/0.1611, allocations: 269.1 kB / 310.6 MB, free: 8.863 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001371/0.1612, allocations: 88.14 kB / 310.7 MB, free: 8.828 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.121e-05/0.1613, allocations: 17.09 kB / 310.7 MB, free: 8.824 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01039/0.1717, allocations: 6.484 MB / 317.2 MB, free: 5.113 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.681e-05/0.1717, allocations: 51.81 kB / 317.2 MB, free: 5.062 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001567/0.1719, allocations: 75.84 kB / 317.3 MB, free: 4.988 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008225/0.1801, allocations: 4.981 MB / 322.3 MB, free: 15.99 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.219e-06/0.1801, allocations: 0 / 322.3 MB, free: 15.99 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1801, allocations: 0 / 322.3 MB, free: 15.99 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.1801, allocations: 0 / 322.3 MB, free: 15.99 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.002579/0.1827, allocations: 1.047 MB / 323.3 MB, free: 14.91 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.534e-05/0.1828, allocations: 12.03 kB / 323.3 MB, free: 14.89 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001596/0.1844, allocations: 284 kB / 323.6 MB, free: 14.62 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003447/0.1847, allocations: 204.3 kB / 323.8 MB, free: 14.39 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.283e-05/0.1847, allocations: 20.81 kB / 323.8 MB, free: 14.37 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.012e-05/0.1848, allocations: 34.52 kB / 323.9 MB, free: 14.34 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003477/0.1883, allocations: 1.105 MB / 325 MB, free: 13.2 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.458e-05/0.1883, allocations: 0 / 325 MB, free: 13.2 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.953e-05/0.1883, allocations: 16.56 kB / 325 MB, free: 13.18 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.346e-06/0.1883, allocations: 4 kB / 325 MB, free: 13.18 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003535/0.1919, allocations: 1.103 MB / 326.1 MB, free: 12.08 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.002018/0.1939, allocations: 1.122 MB / 327.2 MB, free: 10.91 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002916/0.1968, allocations: 0.8404 MB / 328 MB, free: 10.05 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002924/0.1971, allocations: 143.6 kB / 328.2 MB, free: 9.91 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07992/0.277, allocations: 20.61 MB / 348.8 MB, free: 5.281 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.048e-05/0.2771, allocations: 40.2 kB / 348.8 MB, free: 5.234 MB / 298.7 MB Notification: Performance of pre-optimization done (n=33): time 2.014e-06/0.2771, allocations: 0 / 348.8 MB, free: 5.234 MB / 298.7 MB Notification: Performance of matching and sorting (n=33): time 0.005946/0.283, allocations: 1.621 MB / 350.5 MB, free: 3.605 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.833e-05/0.2831, allocations: 55.41 kB / 350.5 MB, free: 3.539 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001858/0.2833, allocations: 195 kB / 350.7 MB, free: 3.332 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.098e-05/0.2833, allocations: 29.7 kB / 350.7 MB, free: 3.297 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001195/0.2834, allocations: 159.6 kB / 350.9 MB, free: 3.137 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001793/0.2836, allocations: 130.9 kB / 351 MB, free: 3.008 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003471/0.284, allocations: 179.2 kB / 351.2 MB, free: 2.824 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002838/0.2843, allocations: 0.504 MB / 351.7 MB, free: 2.309 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007878/0.285, allocations: 439.8 kB / 352.1 MB, free: 1.879 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009271/0.286, allocations: 0.532 MB / 352.7 MB, free: 1.305 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001805/0.2878, allocations: 0.9121 MB / 353.6 MB, free: 364 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.2878, allocations: 0 / 353.6 MB, free: 364 kB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002286/0.2901, allocations: 1.075 MB / 354.6 MB, free: 15.27 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/0.2901, allocations: 4 kB / 354.6 MB, free: 15.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.2901, allocations: 7.984 kB / 354.7 MB, free: 15.26 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.146e-05/0.2901, allocations: 4 kB / 354.7 MB, free: 15.26 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007299/0.2909, allocations: 175.8 kB / 354.8 MB, free: 15.09 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/0.2909, allocations: 4 kB / 354.8 MB, free: 15.08 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000356/0.2912, allocations: 32.08 kB / 354.9 MB, free: 15.05 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001326/0.2914, allocations: 67.88 kB / 354.9 MB, free: 14.98 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.0002857/0.2916, allocations: 192.4 kB / 355.1 MB, free: 14.79 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002169/0.2919, allocations: 27.91 kB / 355.1 MB, free: 14.76 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006521/0.2984, allocations: 5.01 MB / 360.2 MB, free: 9.734 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.789e-05/0.2984, allocations: 27.95 kB / 360.2 MB, free: 9.707 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.2984, allocations: 4 kB / 360.2 MB, free: 9.703 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.2984, allocations: 3.984 kB / 360.2 MB, free: 9.699 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00219/0.3006, allocations: 1.852 MB / 362 MB, free: 7.602 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.578e-06/0.3006, allocations: 0 / 362 MB, free: 7.602 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006628/0.3013, allocations: 103.8 kB / 362.1 MB, free: 7.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.524e-06/0.3013, allocations: 4 kB / 362.1 MB, free: 7.496 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.423e-05/0.3013, allocations: 15.92 kB / 362.2 MB, free: 7.48 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/0.3013, allocations: 0.875 kB / 362.2 MB, free: 7.48 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3013, allocations: 0 / 362.2 MB, free: 7.48 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002704/0.304, allocations: 1.542 MB / 363.7 MB, free: 5.918 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.658e-05/0.3041, allocations: 67.3 kB / 363.8 MB, free: 5.852 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.41e-05/0.3042, allocations: 8 kB / 363.8 MB, free: 5.844 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002826/0.3045, allocations: 8 kB / 363.8 MB, free: 5.836 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001159/0.3046, allocations: 31.94 kB / 363.8 MB, free: 5.805 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.801e-05/0.3046, allocations: 23.55 kB / 363.8 MB, free: 5.785 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001067/0.3047, allocations: 131.2 kB / 364 MB, free: 5.656 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.3047, allocations: 0 / 364 MB, free: 5.656 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002865/0.3076, allocations: 1.002 MB / 365 MB, free: 4.652 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.00426/0.3119, allocations: 1.29 MB / 366.3 MB, free: 3.352 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001818/0.3137, allocations: 0.8997 MB / 367.2 MB, free: 2.449 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/0.3137, allocations: 4 kB / 367.2 MB, free: 2.445 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007313/0.3144, allocations: 423.3 kB / 367.6 MB, free: 2.027 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007258/0.3151, allocations: 105 kB / 367.7 MB, free: 1.93 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002059/0.3172, allocations: 1.201 MB / 368.9 MB, free: 0.6953 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002748/0.3175, allocations: 251.2 kB / 369.1 MB, free: 432 kB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.002637/0.3201, allocations: 1.785 MB / 370.9 MB, free: 14.66 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003638/0.3205, allocations: 92.34 kB / 371 MB, free: 14.57 MB / 330.7 MB Notification: Performance of SimCode: time 1.182e-06/0.3205, allocations: 0 / 371 MB, free: 14.57 MB / 330.7 MB Notification: Performance of Templates: time 0.06775/0.3882, allocations: 42.41 MB / 413.4 MB, free: 4.121 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.160734585020691]