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.001817/0.001817, allocations: 81.3 kB / 20.68 MB, free: 1.035 MB / 14.72 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.002065/0.002065, allocations: 146.7 kB / 23.93 MB, free: 4.188 MB / 14.72 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.439/1.439, allocations: 173.3 MB / 200.4 MB, free: 12.91 MB / 190.1 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.743e-06/1.743e-06, allocations: 0 / 321.7 MB, free: 1.594 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.128e-05/2.302e-05, allocations: 3.562 kB / 321.7 MB, free: 1.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01681/0.01683, allocations: 12.19 MB / 333.8 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01933/0.03616, allocations: 13.64 MB / 347.5 MB, free: 15.08 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001706/0.03633, allocations: 4 kB / 347.5 MB, free: 15.07 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000349/0.03668, allocations: 67.58 kB / 347.6 MB, free: 15.01 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004146/0.03709, allocations: 123 kB / 347.7 MB, free: 14.89 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01734/0.05444, allocations: 5.981 MB / 353.7 MB, free: 8.906 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005294/0.05497, allocations: 350.3 kB / 354 MB, free: 8.562 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.262e-05/0.05502, allocations: 13.8 kB / 354 MB, free: 8.551 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005842/0.05561, allocations: 263 kB / 354.3 MB, free: 8.293 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001874/0.05579, allocations: 91.77 kB / 354.4 MB, free: 8.203 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.772e-05/0.05583, allocations: 15.94 kB / 354.4 MB, free: 8.188 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01293/0.06876, allocations: 6.473 MB / 360.8 MB, free: 1.711 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.995e-05/0.06885, allocations: 51.83 kB / 360.9 MB, free: 1.66 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001392/0.06899, allocations: 79.81 kB / 361 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009789/0.07878, allocations: 4.962 MB / 365.9 MB, free: 12.61 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.07878, allocations: 0 / 365.9 MB, free: 12.61 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.07878, allocations: 0 / 365.9 MB, free: 12.61 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.07879, allocations: 0 / 365.9 MB, free: 12.61 MB / 334.1 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.00273/0.08152, allocations: 0.9434 MB / 366.9 MB, free: 11.63 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.08156, allocations: 12.92 kB / 366.9 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001497/0.08305, allocations: 176.6 kB / 367.1 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003687/0.08342, allocations: 197.5 kB / 367.3 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.746e-05/0.08346, allocations: 16.88 kB / 367.3 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.44e-05/0.08352, allocations: 28.36 kB / 367.3 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003549/0.08706, allocations: 0.9606 MB / 368.3 MB, free: 10.19 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.729e-05/0.08708, allocations: 3.938 kB / 368.3 MB, free: 10.19 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.882e-05/0.08712, allocations: 8 kB / 368.3 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.526e-05/0.08714, allocations: 8 kB / 368.3 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003551/0.09069, allocations: 0.9619 MB / 369.2 MB, free: 9.211 MB / 334.1 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.001637/0.09232, allocations: 0.9052 MB / 370.1 MB, free: 8.262 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002819/0.09514, allocations: 0.7255 MB / 370.9 MB, free: 7.527 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003018/0.09545, allocations: 148.8 kB / 371 MB, free: 7.379 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0767/0.1721, allocations: 19.71 MB / 390.7 MB, free: 3.641 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.845e-05/0.1722, allocations: 38.5 kB / 390.8 MB, free: 3.594 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.314e-06/0.1722, allocations: 4 kB / 390.8 MB, free: 3.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.005861/0.178, allocations: 1.356 MB / 392.1 MB, free: 2.227 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.046e-05/0.1781, allocations: 63.39 kB / 392.2 MB, free: 2.152 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001231/0.1782, allocations: 125.7 kB / 392.3 MB, free: 2.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.985e-05/0.1783, allocations: 29.7 kB / 392.3 MB, free: 1.984 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.264e-05/0.1784, allocations: 112.9 kB / 392.5 MB, free: 1.867 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001564/0.1786, allocations: 127 kB / 392.6 MB, free: 1.742 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003281/0.1789, allocations: 165.5 kB / 392.7 MB, free: 1.574 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.179, allocations: 326.8 kB / 393.1 MB, free: 1.246 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007314/0.1798, allocations: 335.8 kB / 393.4 MB, free: 0.918 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008153/0.1806, allocations: 415 kB / 393.8 MB, free: 496 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00155/0.1821, allocations: 0.7115 MB / 394.5 MB, free: 15.74 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.1821, allocations: 4 kB / 394.5 MB, free: 15.74 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002094/0.1842, allocations: 0.8719 MB / 395.4 MB, free: 14.86 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.1843, allocations: 8 kB / 395.4 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.1843, allocations: 0 / 395.4 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/0.1843, allocations: 4 kB / 395.4 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007345/0.185, allocations: 180 kB / 395.6 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.024e-05/0.185, allocations: 4 kB / 395.6 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003724/0.1854, allocations: 39.64 kB / 395.6 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001335/0.1855, allocations: 67.92 kB / 395.7 MB, free: 14.56 MB / 366.1 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.0002611/0.1858, allocations: 141.8 kB / 395.8 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001668/0.186, allocations: 15.91 kB / 395.8 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009189/0.1951, allocations: 8.527 MB / 404.4 MB, free: 5.867 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-05/0.1952, allocations: 23.97 kB / 404.4 MB, free: 5.844 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.313e-06/0.1952, allocations: 0 / 404.4 MB, free: 5.844 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.2e-05/0.1952, allocations: 7.922 kB / 404.4 MB, free: 5.836 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003647/0.1988, allocations: 3.64 MB / 408 MB, free: 1.953 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.767e-06/0.1989, allocations: 4 kB / 408 MB, free: 1.949 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006999/0.1996, allocations: 107.8 kB / 408.1 MB, free: 1.844 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.736e-06/0.1996, allocations: 4 kB / 408.1 MB, free: 1.84 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.153e-05/0.1996, allocations: 15.98 kB / 408.2 MB, free: 1.824 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.1996, allocations: 0 / 408.2 MB, free: 1.824 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.1996, allocations: 0 / 408.2 MB, free: 1.824 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002786/0.2024, allocations: 1.892 MB / 410 MB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.605e-05/0.2025, allocations: 67.33 kB / 410.1 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.962e-05/0.2025, allocations: 12 kB / 410.1 MB, free: 15.83 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003051/0.2028, allocations: 8 kB / 410.1 MB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/0.2029, allocations: 31.94 kB / 410.2 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.888e-05/0.203, allocations: 24.05 kB / 410.2 MB, free: 15.77 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.134e-05/0.2031, allocations: 95.2 kB / 410.3 MB, free: 15.68 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2031, allocations: 0 / 410.3 MB, free: 15.68 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00267/0.2057, allocations: 0.9979 MB / 411.3 MB, free: 14.68 MB / 382.1 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.004685/0.2104, allocations: 1.265 MB / 412.5 MB, free: 13.41 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001764/0.2122, allocations: 0.888 MB / 413.4 MB, free: 12.52 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.2122, allocations: 0.5 kB / 413.4 MB, free: 12.52 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008322/0.213, allocations: 0.5361 MB / 414 MB, free: 11.98 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006904/0.2137, allocations: 87.27 kB / 414.1 MB, free: 11.89 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002099/0.2158, allocations: 1.283 MB / 415.3 MB, free: 10.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002544/0.2161, allocations: 255.2 kB / 415.6 MB, free: 10.31 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002188/0.2183, allocations: 1.78 MB / 417.4 MB, free: 8.531 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003939/0.2186, allocations: 88.42 kB / 417.5 MB, free: 8.445 MB / 382.1 MB Notification: Performance of SimCode: time 7.01e-07/0.2187, allocations: 0 / 417.5 MB, free: 8.445 MB / 382.1 MB Notification: Performance of Templates: time 0.06196/0.2806, allocations: 41.44 MB / 458.9 MB, free: 14.96 MB / 430.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 480] 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.057825654745102]