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.001879/0.001879, allocations: 115 kB / 18.46 MB, free: 4.621 MB / 14.72 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.002391/0.002391, allocations: 207.3 kB / 21.41 MB, free: 1.668 MB / 14.72 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.466/1.466, allocations: 230.6 MB / 254.8 MB, free: 15.26 MB / 206.1 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 0.001693/0.001693, allocations: 55.91 kB / 375 MB, free: 8.926 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1096, allocations: 53.33 MB / 428.3 MB, free: 3.496 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01869/0.1283, allocations: 13.5 MB / 441.8 MB, free: 5.938 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2269/0.3552, allocations: 15.6 MB / 457.4 MB, free: 8.176 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001719/0.3554, allocations: 1.094 kB / 457.4 MB, free: 8.176 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003926/0.3558, allocations: 82.25 kB / 457.5 MB, free: 8.172 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000365/0.3562, allocations: 115.8 kB / 457.6 MB, free: 8.168 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01783/0.374, allocations: 5.982 MB / 463.6 MB, free: 7.27 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000591/0.3746, allocations: 344.4 kB / 463.9 MB, free: 7.188 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.454e-05/0.3746, allocations: 8.438 kB / 463.9 MB, free: 7.188 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004835/0.3751, allocations: 236.1 kB / 464.2 MB, free: 7.137 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001717/0.3753, allocations: 107.1 kB / 464.3 MB, free: 7.117 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.967e-05/0.3753, allocations: 13.5 kB / 464.3 MB, free: 7.117 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01517/0.3905, allocations: 6.775 MB / 471.1 MB, free: 6.309 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001171/0.3906, allocations: 44.56 kB / 471.1 MB, free: 6.277 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002254/0.3908, allocations: 100.1 kB / 471.2 MB, free: 6.227 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01172/0.4026, allocations: 3.933 MB / 475.1 MB, free: 3.941 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.4026, allocations: 4 kB / 475.1 MB, free: 3.938 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.4026, allocations: 1.25 kB / 475.1 MB, free: 3.938 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.397e-06/0.4026, allocations: 0 / 475.1 MB, free: 3.938 MB / 366.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.003732/0.4063, allocations: 1.02 MB / 476.2 MB, free: 3.145 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/0.4064, allocations: 9.844 kB / 476.2 MB, free: 3.145 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001452/0.4078, allocations: 179.2 kB / 476.3 MB, free: 3.062 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003099/0.4081, allocations: 256.1 kB / 476.6 MB, free: 2.793 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.772e-05/0.4082, allocations: 22.62 kB / 476.6 MB, free: 2.781 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.473e-05/0.4082, allocations: 20.91 kB / 476.6 MB, free: 2.773 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003019/0.4112, allocations: 0.9004 MB / 477.5 MB, free: 2.211 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.4112, allocations: 0 / 477.5 MB, free: 2.211 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.182e-05/0.4113, allocations: 19.22 kB / 477.5 MB, free: 2.195 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.4113, allocations: 4.656 kB / 477.6 MB, free: 2.195 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003153/0.4144, allocations: 0.9717 MB / 478.5 MB, free: 1.66 MB / 366.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.001409/0.4158, allocations: 1.344 MB / 479.9 MB, free: 392 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002538/0.4184, allocations: 0.7238 MB / 480.6 MB, free: 15.96 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002882/0.4187, allocations: 157.9 kB / 480.7 MB, free: 15.88 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08946/0.5081, allocations: 42.18 MB / 0.5107 GB, free: 5.531 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.657e-05/0.5082, allocations: 38.56 kB / 0.5107 GB, free: 5.484 MB / 414.1 MB Notification: Performance of pre-optimization done (n=33): time 2.144e-06/0.5082, allocations: 4 kB / 0.5107 GB, free: 5.48 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.00569/0.5139, allocations: 1.357 MB / 0.512 GB, free: 4.117 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.637e-05/0.5139, allocations: 55.41 kB / 0.5121 GB, free: 4.051 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001379/0.5141, allocations: 129.7 kB / 0.5122 GB, free: 3.914 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.06e-05/0.5141, allocations: 29.7 kB / 0.5122 GB, free: 3.879 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.729e-05/0.5142, allocations: 112.9 kB / 0.5123 GB, free: 3.766 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000162/0.5144, allocations: 127.3 kB / 0.5125 GB, free: 3.645 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003193/0.5147, allocations: 165.5 kB / 0.5126 GB, free: 3.477 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.5149, allocations: 326.8 kB / 0.5129 GB, free: 3.148 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006827/0.5155, allocations: 339.6 kB / 0.5133 GB, free: 2.816 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007738/0.5163, allocations: 411.3 kB / 0.5137 GB, free: 2.387 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001449/0.5178, allocations: 0.7142 MB / 0.5144 GB, free: 1.645 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.5178, allocations: 0 / 0.5144 GB, free: 1.645 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002055/0.5198, allocations: 0.8723 MB / 0.5152 GB, free: 0.7656 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.5198, allocations: 8 kB / 0.5152 GB, free: 0.7578 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.229e-05/0.5199, allocations: 4 kB / 0.5152 GB, free: 0.7539 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.372e-05/0.5199, allocations: 3.938 kB / 0.5152 GB, free: 0.75 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007071/0.5206, allocations: 175.8 kB / 0.5154 GB, free: 0.5781 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.26e-05/0.5206, allocations: 4 kB / 0.5154 GB, free: 0.5742 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003627/0.521, allocations: 31.83 kB / 0.5154 GB, free: 0.543 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001212/0.5211, allocations: 64.11 kB / 0.5155 GB, free: 492 kB / 414.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.000292/0.5214, allocations: 145.7 kB / 0.5156 GB, free: 336 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001594/0.5215, allocations: 15.91 kB / 0.5156 GB, free: 320 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008238/0.5298, allocations: 7.979 MB / 0.5234 GB, free: 8.324 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.843e-05/0.5298, allocations: 27.97 kB / 0.5235 GB, free: 8.297 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.888e-06/0.5298, allocations: 4.609 kB / 0.5235 GB, free: 8.293 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.778e-06/0.5298, allocations: 0 / 0.5235 GB, free: 8.293 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003379/0.5332, allocations: 3.598 MB / 0.527 GB, free: 4.441 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.396e-06/0.5332, allocations: 4 kB / 0.527 GB, free: 4.438 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006719/0.5339, allocations: 109.5 kB / 0.5271 GB, free: 4.332 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.402e-06/0.5339, allocations: 0 / 0.5271 GB, free: 4.332 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.746e-05/0.5339, allocations: 19.92 kB / 0.5271 GB, free: 4.312 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.534, allocations: 0 / 0.5271 GB, free: 4.312 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.534, allocations: 0 / 0.5271 GB, free: 4.312 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002601/0.5366, allocations: 1.849 MB / 0.5289 GB, free: 2.445 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001181/0.5367, allocations: 140.5 kB / 0.529 GB, free: 2.289 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.186e-05/0.5367, allocations: 11.88 kB / 0.529 GB, free: 2.277 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003003/0.537, allocations: 16 kB / 0.5291 GB, free: 2.262 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.922e-05/0.5371, allocations: 31.95 kB / 0.5291 GB, free: 2.23 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.207e-05/0.5372, allocations: 16.05 kB / 0.5291 GB, free: 2.215 MB / 430.1 MB Notification: Performance of sorting global known variables: time 6.85e-05/0.5372, allocations: 91.27 kB / 0.5292 GB, free: 2.125 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5372, allocations: 0 / 0.5292 GB, free: 2.125 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003625/0.5409, allocations: 1.006 MB / 0.5302 GB, free: 1.117 MB / 430.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.005381/0.5462, allocations: 1.146 MB / 0.5313 GB, free: 15.99 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00184/0.5481, allocations: 0.8759 MB / 0.5322 GB, free: 15.12 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.5481, allocations: 4.125 kB / 0.5322 GB, free: 15.11 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007925/0.5489, allocations: 0.5173 MB / 0.5327 GB, free: 14.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006941/0.5496, allocations: 90.86 kB / 0.5327 GB, free: 14.52 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002082/0.5517, allocations: 1.357 MB / 0.5341 GB, free: 13.13 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004698/0.5521, allocations: 0.8575 MB / 0.5349 GB, free: 12.25 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004067/0.5525, allocations: 87.36 kB / 0.535 GB, free: 12.16 MB / 446.1 MB Notification: Performance of SimCode: time 1.162e-06/0.5525, allocations: 3.938 kB / 0.535 GB, free: 12.16 MB / 446.1 MB Notification: Performance of Templates: time 0.0394/0.5919, allocations: 24.17 MB / 0.5586 GB, free: 3.953 MB / 462.1 MB " [Timeout remaining time 659] 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins1/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: 9.727593000978231]