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.001665/0.001665, allocations: 108.6 kB / 21.18 MB, free: 0.7617 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.001755/0.001755, allocations: 189.2 kB / 24.48 MB, free: 4.164 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.411/1.411, allocations: 225.6 MB / 253.3 MB, free: 13.04 MB / 206.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 0.001636/0.001636, allocations: 43.94 kB / 372.5 MB, free: 8.555 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2678/0.2695, allocations: 52.18 MB / 424.7 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01742/0.2869, allocations: 13.45 MB / 438.1 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01935/0.3062, allocations: 15.67 MB / 453.8 MB, free: 1.207 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001819/0.3064, allocations: 4 kB / 453.8 MB, free: 1.203 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003762/0.3068, allocations: 83.47 kB / 453.9 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003924/0.3072, allocations: 111.3 kB / 454 MB, free: 1.012 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01749/0.3247, allocations: 5.97 MB / 460 MB, free: 11.05 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006622/0.3253, allocations: 342.6 kB / 460.3 MB, free: 10.71 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.545e-05/0.3254, allocations: 9.797 kB / 460.3 MB, free: 10.7 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000653/0.3261, allocations: 227 kB / 460.5 MB, free: 10.48 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002713/0.3263, allocations: 115.5 kB / 460.7 MB, free: 10.36 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.065e-05/0.3264, allocations: 15.94 kB / 460.7 MB, free: 10.35 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01398/0.3404, allocations: 6.771 MB / 467.4 MB, free: 3.57 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001243/0.3405, allocations: 43.83 kB / 467.5 MB, free: 3.527 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001837/0.3407, allocations: 103.6 kB / 467.6 MB, free: 3.426 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0102/0.3509, allocations: 3.917 MB / 471.5 MB, free: 15.5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.766e-06/0.3509, allocations: 4 kB / 471.5 MB, free: 15.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.3509, allocations: 4 kB / 471.5 MB, free: 15.49 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.165e-05/0.3509, allocations: 0 / 471.5 MB, free: 15.49 MB / 382.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.003229/0.3541, allocations: 0.9351 MB / 472.4 MB, free: 14.52 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.3542, allocations: 8.031 kB / 472.5 MB, free: 14.52 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001475/0.3556, allocations: 176.7 kB / 472.6 MB, free: 14.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005667/0.3562, allocations: 206.1 kB / 472.8 MB, free: 14.12 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.803e-05/0.3562, allocations: 24.8 kB / 472.9 MB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.55e-05/0.3563, allocations: 24.12 kB / 472.9 MB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003354/0.3597, allocations: 0.9012 MB / 473.8 MB, free: 13.15 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.317e-05/0.3597, allocations: 0 / 473.8 MB, free: 13.15 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.874e-05/0.3597, allocations: 15.94 kB / 473.8 MB, free: 13.13 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.307e-05/0.3597, allocations: 4 kB / 473.8 MB, free: 13.13 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003499/0.3632, allocations: 0.9696 MB / 474.8 MB, free: 12.16 MB / 382.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.002058/0.3653, allocations: 1.307 MB / 476.1 MB, free: 10.72 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002733/0.368, allocations: 0.7255 MB / 476.8 MB, free: 9.988 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003092/0.3683, allocations: 160.8 kB / 477 MB, free: 9.828 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07222/0.4406, allocations: 19.64 MB / 496.6 MB, free: 6.164 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.94e-05/0.4406, allocations: 38.56 kB / 496.6 MB, free: 6.117 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.464e-06/0.4406, allocations: 0 / 496.6 MB, free: 6.117 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.00542/0.446, allocations: 1.36 MB / 498 MB, free: 4.75 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.48e-05/0.4461, allocations: 51.41 kB / 498 MB, free: 4.688 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001406/0.4462, allocations: 133.7 kB / 498.2 MB, free: 4.547 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.767e-05/0.4463, allocations: 29.7 kB / 498.2 MB, free: 4.512 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.872e-05/0.4464, allocations: 124.8 kB / 498.3 MB, free: 4.387 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001596/0.4466, allocations: 115 kB / 498.4 MB, free: 4.273 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003011/0.4469, allocations: 173.3 kB / 498.6 MB, free: 4.098 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000179/0.447, allocations: 326.8 kB / 498.9 MB, free: 3.77 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006693/0.4477, allocations: 339.8 kB / 499.3 MB, free: 3.438 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007522/0.4485, allocations: 407.5 kB / 499.7 MB, free: 3.012 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001403/0.4499, allocations: 0.7153 MB / 0.4886 GB, free: 2.27 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.077e-06/0.4499, allocations: 0 / 0.4886 GB, free: 2.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001939/0.4518, allocations: 0.8758 MB / 0.4895 GB, free: 1.387 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.386e-05/0.4518, allocations: 4 kB / 0.4895 GB, free: 1.383 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/0.4519, allocations: 7.938 kB / 0.4895 GB, free: 1.375 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.08e-05/0.4519, allocations: 4 kB / 0.4895 GB, free: 1.371 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000669/0.4525, allocations: 172 kB / 0.4897 GB, free: 1.203 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.812e-05/0.4526, allocations: 11.98 kB / 0.4897 GB, free: 1.191 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003447/0.4529, allocations: 35.83 kB / 0.4897 GB, free: 1.156 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001089/0.453, allocations: 59.88 kB / 0.4898 GB, free: 1.098 MB / 398.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.0002719/0.4533, allocations: 145.8 kB / 0.4899 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001485/0.4534, allocations: 15.91 kB / 0.4899 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009024/0.4625, allocations: 8.498 MB / 0.4982 GB, free: 8.41 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.448e-05/0.4625, allocations: 23.95 kB / 0.4983 GB, free: 8.387 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.4625, allocations: 384 / 0.4983 GB, free: 8.387 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.307e-05/0.4625, allocations: 7.922 kB / 0.4983 GB, free: 8.379 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003747/0.4663, allocations: 3.771 MB / 0.502 GB, free: 4.352 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.304e-06/0.4663, allocations: 0 / 0.502 GB, free: 4.352 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006658/0.4669, allocations: 111.7 kB / 0.5021 GB, free: 4.242 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.56e-06/0.4669, allocations: 0 / 0.5021 GB, free: 4.242 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.069e-05/0.467, allocations: 23.92 kB / 0.5021 GB, free: 4.219 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.077e-06/0.467, allocations: 0 / 0.5021 GB, free: 4.219 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.467, allocations: 0 / 0.5021 GB, free: 4.219 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002811/0.4698, allocations: 1.889 MB / 0.5039 GB, free: 2.309 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001239/0.4699, allocations: 71.33 kB / 0.504 GB, free: 2.238 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.711e-05/0.47, allocations: 12 kB / 0.504 GB, free: 2.227 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003079/0.4703, allocations: 16 kB / 0.504 GB, free: 2.211 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.4704, allocations: 31.94 kB / 0.5041 GB, free: 2.18 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.766e-05/0.4704, allocations: 11.98 kB / 0.5041 GB, free: 2.168 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.36e-05/0.4705, allocations: 91.27 kB / 0.5041 GB, free: 2.078 MB / 414.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.4705, allocations: 0 / 0.5041 GB, free: 2.078 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002989/0.4735, allocations: 0.9902 MB / 0.5051 GB, free: 1.086 MB / 414.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.004878/0.4784, allocations: 1.141 MB / 0.5062 GB, free: 15.93 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001832/0.4802, allocations: 0.8919 MB / 0.5071 GB, free: 15.04 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.4802, allocations: 0 / 0.5071 GB, free: 15.04 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008284/0.4811, allocations: 0.5283 MB / 0.5076 GB, free: 14.52 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006916/0.4817, allocations: 99.78 kB / 0.5077 GB, free: 14.42 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002237/0.484, allocations: 1.386 MB / 0.5091 GB, free: 13 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005688/0.4845, allocations: 0.8574 MB / 0.5099 GB, free: 12.11 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000382/0.4849, allocations: 95.34 kB / 0.51 GB, free: 12.02 MB / 430.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4849, allocations: 0 / 0.51 GB, free: 12.02 MB / 430.1 MB Notification: Performance of Templates: time 0.03964/0.5246, allocations: 23.97 MB / 0.5334 GB, free: 3.992 MB / 446.1 MB " [Timeout remaining time 659] 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins1/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: 9.747901900904253]