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.001891/0.001891, allocations: 95.86 kB / 20.96 MB, free: 3.457 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.001828/0.001828, allocations: 153.1 kB / 24.26 MB, free: 160 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 1.509/1.509, allocations: 173.4 MB / 200.8 MB, free: 9.309 MB / 186.7 MB " [Timeout remaining time 178] 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.2 MB, free: 3.836 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.37e-05/2.505e-05, allocations: 2.312 kB / 270.2 MB, free: 3.832 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01944/0.01947, allocations: 13.28 MB / 283.5 MB, free: 6.508 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.134/0.1535, allocations: 15.17 MB / 298.6 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001495/0.1536, allocations: 1.031 kB / 298.6 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003715/0.154, allocations: 72.67 kB / 298.7 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003208/0.1543, allocations: 121.2 kB / 298.8 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01417/0.1685, allocations: 5.988 MB / 304.8 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000409/0.1689, allocations: 346.9 kB / 305.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.579e-05/0.1689, allocations: 15.12 kB / 305.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004545/0.1694, allocations: 263.4 kB / 305.4 MB, free: 13.1 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001443/0.1695, allocations: 88.12 kB / 305.5 MB, free: 13.08 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.333e-05/0.1696, allocations: 13.75 kB / 305.5 MB, free: 13.08 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01129/0.1809, allocations: 6.482 MB / 312 MB, free: 11.12 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.345e-05/0.1809, allocations: 46.88 kB / 312.1 MB, free: 11.09 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001362/0.1811, allocations: 82.56 kB / 312.1 MB, free: 11.06 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006788/0.1879, allocations: 4.964 MB / 317.1 MB, free: 7.398 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1879, allocations: 0 / 317.1 MB, free: 7.398 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1879, allocations: 0 / 317.1 MB, free: 7.398 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.873e-06/0.1879, allocations: 0 / 317.1 MB, free: 7.398 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.002168/0.19, allocations: 1.041 MB / 318.1 MB, free: 6.32 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.322e-05/0.1901, allocations: 8.922 kB / 318.2 MB, free: 6.312 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001359/0.1914, allocations: 288 kB / 318.4 MB, free: 6.031 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002141/0.1916, allocations: 200.3 kB / 318.6 MB, free: 5.809 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.853e-05/0.1917, allocations: 20.88 kB / 318.7 MB, free: 5.789 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.264e-05/0.1917, allocations: 20.38 kB / 318.7 MB, free: 5.77 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002821/0.1945, allocations: 1.112 MB / 319.8 MB, free: 4.621 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.338e-05/0.1945, allocations: 0 / 319.8 MB, free: 4.621 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.023e-05/0.1946, allocations: 15.94 kB / 319.8 MB, free: 4.605 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.222e-06/0.1946, allocations: 4 kB / 319.8 MB, free: 4.602 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002928/0.1975, allocations: 1.099 MB / 320.9 MB, free: 3.504 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.001176/0.1987, allocations: 1.13 MB / 322 MB, free: 2.332 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002456/0.2011, allocations: 0.8405 MB / 322.9 MB, free: 1.484 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002026/0.2013, allocations: 147.6 kB / 323 MB, free: 1.336 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07645/0.2778, allocations: 19.71 MB / 342.7 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.977e-05/0.2778, allocations: 37.39 kB / 342.8 MB, free: 13.57 MB / 298.7 MB Notification: Performance of pre-optimization done (n=33): time 2.043e-06/0.2779, allocations: 3.938 kB / 342.8 MB, free: 13.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=33): time 0.006138/0.284, allocations: 1.613 MB / 344.4 MB, free: 11.95 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.066e-05/0.284, allocations: 55.41 kB / 344.4 MB, free: 11.88 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001899/0.2842, allocations: 197.8 kB / 344.6 MB, free: 11.67 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.9e-05/0.2843, allocations: 29.7 kB / 344.7 MB, free: 11.63 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001206/0.2844, allocations: 163.6 kB / 344.8 MB, free: 11.47 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000188/0.2846, allocations: 129.8 kB / 344.9 MB, free: 11.34 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003404/0.285, allocations: 171.2 kB / 345.1 MB, free: 11.17 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002878/0.2852, allocations: 0.5117 MB / 345.6 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008166/0.2861, allocations: 439.8 kB / 346 MB, free: 10.21 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009413/0.287, allocations: 0.5242 MB / 346.6 MB, free: 9.652 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001969/0.289, allocations: 0.916 MB / 347.5 MB, free: 8.699 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.289, allocations: 0 / 347.5 MB, free: 8.699 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002294/0.2913, allocations: 1.075 MB / 348.6 MB, free: 7.617 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.2913, allocations: 4.25 kB / 348.6 MB, free: 7.613 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.2913, allocations: 8 kB / 348.6 MB, free: 7.605 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.2913, allocations: 4 kB / 348.6 MB, free: 7.602 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007324/0.292, allocations: 171.8 kB / 348.7 MB, free: 7.434 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.097e-05/0.2921, allocations: 4 kB / 348.7 MB, free: 7.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000365/0.2924, allocations: 31.78 kB / 348.8 MB, free: 7.398 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001434/0.2926, allocations: 68.55 kB / 348.8 MB, free: 7.332 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.0002689/0.2928, allocations: 188.8 kB / 349 MB, free: 7.137 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00021/0.293, allocations: 23.91 kB / 349.1 MB, free: 7.113 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006385/0.2994, allocations: 5.025 MB / 354.1 MB, free: 2.078 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.049e-05/0.2995, allocations: 27.95 kB / 354.1 MB, free: 2.051 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.2995, allocations: 0 / 354.1 MB, free: 2.051 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/0.2995, allocations: 7.078 kB / 354.1 MB, free: 2.047 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002316/0.3018, allocations: 1.852 MB / 356 MB, free: 15.96 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.926e-06/0.3018, allocations: 3.984 kB / 356 MB, free: 15.95 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006717/0.3025, allocations: 107.8 kB / 356.1 MB, free: 15.85 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.704e-06/0.3025, allocations: 8 kB / 356.1 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.689e-05/0.3025, allocations: 8 kB / 356.1 MB, free: 15.83 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.3025, allocations: 0 / 356.1 MB, free: 15.83 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.626e-06/0.3025, allocations: 3.984 kB / 356.1 MB, free: 15.83 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002471/0.305, allocations: 1.522 MB / 357.6 MB, free: 14.29 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.882e-05/0.3051, allocations: 67.36 kB / 357.7 MB, free: 14.22 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.727e-05/0.3051, allocations: 15.94 kB / 357.7 MB, free: 14.2 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002894/0.3054, allocations: 11.98 kB / 357.7 MB, free: 14.19 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001084/0.3055, allocations: 31.94 kB / 357.7 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.218e-05/0.3056, allocations: 20.03 kB / 357.8 MB, free: 14.14 MB / 314.7 MB Notification: Performance of sorting global known variables: time 9.325e-05/0.3057, allocations: 135.2 kB / 357.9 MB, free: 14.01 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.3057, allocations: 0 / 357.9 MB, free: 14.01 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002983/0.3087, allocations: 0.9941 MB / 358.9 MB, free: 13.01 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.005185/0.3139, allocations: 1.277 MB / 360.2 MB, free: 11.81 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001786/0.3156, allocations: 0.8878 MB / 361.1 MB, free: 10.92 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.3156, allocations: 4 kB / 361.1 MB, free: 10.92 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007537/0.3164, allocations: 427.8 kB / 361.5 MB, free: 10.49 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006858/0.3171, allocations: 109.6 kB / 361.6 MB, free: 10.39 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002189/0.3193, allocations: 1.195 MB / 362.8 MB, free: 9.176 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000277/0.3195, allocations: 255.2 kB / 363 MB, free: 8.898 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.002322/0.3219, allocations: 1.78 MB / 364.8 MB, free: 7.133 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003658/0.3222, allocations: 88.42 kB / 364.9 MB, free: 7.047 MB / 314.7 MB Notification: Performance of SimCode: time 1.122e-06/0.3222, allocations: 0 / 364.9 MB, free: 7.047 MB / 314.7 MB Notification: Performance of Templates: time 0.06595/0.3882, allocations: 42.29 MB / 407.2 MB, free: 12.74 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.1132488689618185]