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.0018/0.0018, allocations: 92.31 kB / 20.96 MB, free: 3.473 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.002149/0.002149, allocations: 161.7 kB / 24.26 MB, free: 176 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.508/1.508, allocations: 177.2 MB / 204.6 MB, free: 5.605 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.413e-06/1.413e-06, allocations: 0 / 275.1 MB, free: 15.04 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.563e-05/2.704e-05, allocations: 2.312 kB / 275.1 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01874/0.01877, allocations: 12.3 MB / 287.4 MB, free: 2.691 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1238/0.1426, allocations: 13.63 MB / 301 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001228/0.1427, allocations: 2.156 kB / 301 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003221/0.143, allocations: 78.84 kB / 301.1 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003069/0.1433, allocations: 118.2 kB / 301.2 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01379/0.1571, allocations: 5.986 MB / 307.2 MB, free: 10.5 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003822/0.1575, allocations: 352.5 kB / 307.5 MB, free: 10.37 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.434e-05/0.1575, allocations: 11.3 kB / 307.5 MB, free: 10.36 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004303/0.158, allocations: 258.1 kB / 307.8 MB, free: 10.25 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001326/0.1581, allocations: 88.91 kB / 307.9 MB, free: 10.22 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.924e-05/0.1581, allocations: 13.62 kB / 307.9 MB, free: 10.22 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01055/0.1687, allocations: 6.489 MB / 314.4 MB, free: 7.375 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.283e-05/0.1688, allocations: 51.81 kB / 314.4 MB, free: 7.324 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001413/0.1689, allocations: 75.88 kB / 314.5 MB, free: 7.25 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006574/0.1755, allocations: 4.993 MB / 319.5 MB, free: 2.246 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1755, allocations: 3.938 kB / 319.5 MB, free: 2.242 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1755, allocations: 0 / 319.5 MB, free: 2.242 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.1755, allocations: 0 / 319.5 MB, free: 2.242 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.001906/0.1774, allocations: 0.9356 MB / 320.4 MB, free: 1.27 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.317e-05/0.1774, allocations: 12.03 kB / 320.5 MB, free: 1.258 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001387/0.1788, allocations: 289.1 kB / 320.7 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002671/0.1791, allocations: 197.5 kB / 320.9 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.323e-05/0.1791, allocations: 16.88 kB / 320.9 MB, free: 0.7422 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.742e-05/0.1791, allocations: 24.33 kB / 321 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003077/0.1822, allocations: 0.9569 MB / 321.9 MB, free: 15.73 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.1822, allocations: 0 / 321.9 MB, free: 15.73 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.833e-05/0.1823, allocations: 15.94 kB / 321.9 MB, free: 15.71 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.1823, allocations: 7.844 kB / 321.9 MB, free: 15.71 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003638/0.1859, allocations: 0.9697 MB / 322.9 MB, free: 14.74 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.001877/0.1878, allocations: 0.9097 MB / 323.8 MB, free: 13.79 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00294/0.1907, allocations: 0.7255 MB / 324.6 MB, free: 13.05 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003187/0.1911, allocations: 152.8 kB / 324.7 MB, free: 12.9 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07755/0.2686, allocations: 20.61 MB / 345.3 MB, free: 8.277 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.898e-05/0.2687, allocations: 34.56 kB / 345.3 MB, free: 8.234 MB / 298.7 MB Notification: Performance of pre-optimization done (n=33): time 1.874e-06/0.2687, allocations: 4 kB / 345.4 MB, free: 8.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=33): time 0.00638/0.275, allocations: 1.441 MB / 346.8 MB, free: 6.777 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.201e-05/0.2751, allocations: 55.34 kB / 346.8 MB, free: 6.711 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001446/0.2752, allocations: 127.7 kB / 347 MB, free: 6.578 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.38e-05/0.2753, allocations: 29.7 kB / 347 MB, free: 6.543 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.2754, allocations: 116.9 kB / 347.1 MB, free: 6.426 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001738/0.2756, allocations: 119 kB / 347.2 MB, free: 6.309 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003356/0.2759, allocations: 169.5 kB / 347.4 MB, free: 6.137 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001884/0.2761, allocations: 330.8 kB / 347.7 MB, free: 5.805 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007404/0.2769, allocations: 335.8 kB / 348 MB, free: 5.477 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008454/0.2777, allocations: 403.5 kB / 348.4 MB, free: 5.055 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001582/0.2793, allocations: 0.7144 MB / 349.2 MB, free: 4.316 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.2793, allocations: 0 / 349.2 MB, free: 4.316 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002204/0.2815, allocations: 0.8916 MB / 350 MB, free: 3.418 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.968e-05/0.2815, allocations: 4 kB / 350.1 MB, free: 3.414 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/0.2815, allocations: 7.938 kB / 350.1 MB, free: 3.406 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.369e-05/0.2815, allocations: 7.938 kB / 350.1 MB, free: 3.398 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007434/0.2823, allocations: 171.8 kB / 350.2 MB, free: 3.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.374e-05/0.2823, allocations: 7.984 kB / 350.2 MB, free: 3.223 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004035/0.2827, allocations: 31.78 kB / 350.3 MB, free: 3.191 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001304/0.2828, allocations: 67.92 kB / 350.3 MB, free: 3.125 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.00027/0.2831, allocations: 141.8 kB / 350.5 MB, free: 2.977 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002265/0.2833, allocations: 27.91 kB / 350.5 MB, free: 2.949 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01064/0.294, allocations: 8.508 MB / 359 MB, free: 10.43 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.269e-05/0.294, allocations: 27.95 kB / 359 MB, free: 10.4 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.294, allocations: 0 / 359 MB, free: 10.4 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.294, allocations: 0 / 359 MB, free: 10.4 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004428/0.2985, allocations: 3.648 MB / 362.7 MB, free: 6.512 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.724e-06/0.2985, allocations: 4 kB / 362.7 MB, free: 6.508 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007341/0.2992, allocations: 107.8 kB / 362.8 MB, free: 6.402 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.607e-05/0.2992, allocations: 4 kB / 362.8 MB, free: 6.398 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.716e-05/0.2993, allocations: 11.98 kB / 362.8 MB, free: 6.387 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/0.2993, allocations: 0 / 362.8 MB, free: 6.387 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.2993, allocations: 3.141 kB / 362.8 MB, free: 6.387 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003131/0.3024, allocations: 1.916 MB / 364.7 MB, free: 4.453 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001165/0.3025, allocations: 67.33 kB / 364.8 MB, free: 4.387 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.967e-05/0.3026, allocations: 8 kB / 364.8 MB, free: 4.379 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003297/0.3029, allocations: 12.86 kB / 364.8 MB, free: 4.367 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001233/0.303, allocations: 31.94 kB / 364.9 MB, free: 4.336 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.749e-05/0.3031, allocations: 16 kB / 364.9 MB, free: 4.32 MB / 314.7 MB Notification: Performance of sorting global known variables: time 9.634e-05/0.3032, allocations: 99.14 kB / 365 MB, free: 4.223 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.3032, allocations: 0 / 365 MB, free: 4.223 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00303/0.3062, allocations: 1.002 MB / 366 MB, free: 3.219 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.00486/0.3111, allocations: 1.292 MB / 367.3 MB, free: 1.93 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001933/0.313, allocations: 0.8993 MB / 368.2 MB, free: 1.027 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.313, allocations: 0 / 368.2 MB, free: 1.027 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008839/0.3139, allocations: 0.5205 MB / 368.7 MB, free: 0.5078 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007244/0.3146, allocations: 101.2 kB / 368.8 MB, free: 424 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002208/0.3168, allocations: 1.302 MB / 370.1 MB, free: 15.08 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002943/0.3171, allocations: 255.2 kB / 370.3 MB, free: 14.8 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.002401/0.3195, allocations: 1.782 MB / 372.1 MB, free: 13.05 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000381/0.3199, allocations: 88.42 kB / 372.2 MB, free: 12.96 MB / 330.7 MB Notification: Performance of SimCode: time 1.463e-06/0.3199, allocations: 0 / 372.2 MB, free: 12.96 MB / 330.7 MB Notification: Performance of Templates: time 0.06718/0.3871, allocations: 41.74 MB / 413.9 MB, free: 3.195 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 480] 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.1984881709795445]