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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=4400,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=4400,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00106/0.00106, allocations: 91.75 kB / 17.31 MB, free: 5.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009487/0.0009488, allocations: 182.4 kB / 18.21 MB, free: 5.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.278/1.278, allocations: 223.3 MB / 242.3 MB, free: 14.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002571/0.0002572, allocations: 11.94 kB / 302.1 MB, free: 5.875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08811/0.08838, allocations: 50.41 MB / 352.5 MB, free: 3.453 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01553/0.104, allocations: 13.64 MB / 366.1 MB, free: 5.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.21/0.314, allocations: 16.32 MB / 382.5 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001712/0.3142, allocations: 5.312 kB / 382.5 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000343/0.3146, allocations: 68.17 kB / 382.5 MB, free: 9.371 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003499/0.3149, allocations: 109.2 kB / 382.6 MB, free: 9.332 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01837/0.3333, allocations: 4.714 MB / 387.3 MB, free: 8.637 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005885/0.3339, allocations: 367.2 kB / 387.7 MB, free: 8.555 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.162e-05/0.334, allocations: 17.42 kB / 387.7 MB, free: 8.551 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005812/0.3346, allocations: 215 kB / 387.9 MB, free: 8.504 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002574/0.3348, allocations: 106.7 kB / 388 MB, free: 8.484 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.637e-05/0.3349, allocations: 7.969 kB / 388 MB, free: 8.484 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01532/0.3502, allocations: 6.689 MB / 394.7 MB, free: 6.512 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000112/0.3504, allocations: 34.31 kB / 394.8 MB, free: 6.492 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001974/0.3506, allocations: 129.2 kB / 394.9 MB, free: 6.406 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005839/0.3564, allocations: 2.617 MB / 397.5 MB, free: 5.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.3565, allocations: 0 / 397.5 MB, free: 5.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.3565, allocations: 5.281 kB / 397.5 MB, free: 5.086 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.396e-06/0.3565, allocations: 0 / 397.5 MB, free: 5.086 MB / 302.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.003433/0.3599, allocations: 0.9484 MB / 398.5 MB, free: 4.359 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.36, allocations: 16.69 kB / 398.5 MB, free: 4.352 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001404/0.3614, allocations: 185 kB / 398.7 MB, free: 4.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002729/0.3617, allocations: 252.2 kB / 398.9 MB, free: 4 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.389e-05/0.3617, allocations: 14.69 kB / 398.9 MB, free: 3.996 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.091e-05/0.3618, allocations: 25.12 kB / 398.9 MB, free: 3.984 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002818/0.3646, allocations: 0.9202 MB / 399.9 MB, free: 3.41 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.3646, allocations: 0 / 399.9 MB, free: 3.41 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.791e-05/0.3647, allocations: 15.03 kB / 399.9 MB, free: 3.398 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.143e-05/0.3647, allocations: 15.14 kB / 399.9 MB, free: 3.391 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002874/0.3676, allocations: 0.9838 MB / 400.9 MB, free: 2.852 MB / 302.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.001413/0.369, allocations: 1.331 MB / 402.2 MB, free: 1.586 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00235/0.3714, allocations: 0.7318 MB / 402.9 MB, free: 1.164 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002476/0.3716, allocations: 173.8 kB / 403.1 MB, free: 1.07 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07656/0.4482, allocations: 37.76 MB / 440.9 MB, free: 7.426 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.311e-05/0.4483, allocations: 42.56 kB / 440.9 MB, free: 7.375 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.194e-06/0.4483, allocations: 0 / 440.9 MB, free: 7.375 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.005173/0.4535, allocations: 1.364 MB / 442.3 MB, free: 6.004 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.23e-05/0.4536, allocations: 59.33 kB / 442.3 MB, free: 5.934 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001229/0.4537, allocations: 125.7 kB / 442.5 MB, free: 5.801 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.255e-05/0.4538, allocations: 29.7 kB / 442.5 MB, free: 5.766 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.617e-05/0.4539, allocations: 120.6 kB / 442.6 MB, free: 5.645 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000147/0.4541, allocations: 110.1 kB / 442.7 MB, free: 5.539 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001003/0.4542, allocations: 37.69 kB / 442.8 MB, free: 5.496 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.4543, allocations: 326.8 kB / 443.1 MB, free: 5.168 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006151/0.4549, allocations: 343.8 kB / 443.4 MB, free: 4.832 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006527/0.4556, allocations: 407.3 kB / 443.8 MB, free: 4.406 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001278/0.4568, allocations: 0.7192 MB / 444.5 MB, free: 3.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.4569, allocations: 4 kB / 444.5 MB, free: 3.656 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001728/0.4586, allocations: 0.8797 MB / 445.4 MB, free: 2.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.488e-05/0.4586, allocations: 4 kB / 445.4 MB, free: 2.766 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.171e-05/0.4587, allocations: 4 kB / 445.4 MB, free: 2.762 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.295e-05/0.4587, allocations: 11.88 kB / 445.4 MB, free: 2.754 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006248/0.4593, allocations: 180.4 kB / 445.6 MB, free: 2.578 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.368e-05/0.4593, allocations: 11.94 kB / 445.6 MB, free: 2.566 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003961/0.4597, allocations: 35.73 kB / 445.6 MB, free: 2.531 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001089/0.4599, allocations: 67.92 kB / 445.7 MB, free: 2.465 MB / 350.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.0002402/0.4601, allocations: 141.7 kB / 445.9 MB, free: 2.316 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001027/0.4602, allocations: 19.81 kB / 445.9 MB, free: 2.297 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00747/0.4677, allocations: 7.974 MB / 453.8 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.353e-05/0.4678, allocations: 31.89 kB / 453.9 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.788e-06/0.4678, allocations: 4 kB / 453.9 MB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.16e-05/0.4678, allocations: 7.984 kB / 453.9 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003067/0.4709, allocations: 3.598 MB / 457.5 MB, free: 6.422 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.578e-06/0.4709, allocations: 3.938 kB / 457.5 MB, free: 6.418 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000636/0.4716, allocations: 107.8 kB / 457.6 MB, free: 6.312 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.023e-06/0.4716, allocations: 0 / 457.6 MB, free: 6.312 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.494e-05/0.4717, allocations: 12 kB / 457.6 MB, free: 6.301 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.885e-06/0.4717, allocations: 7.938 kB / 457.6 MB, free: 6.293 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.4717, allocations: 3.938 kB / 457.6 MB, free: 6.289 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002522/0.4742, allocations: 1.85 MB / 459.5 MB, free: 4.418 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001425/0.4744, allocations: 148.2 kB / 459.6 MB, free: 4.254 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.718e-05/0.4744, allocations: 12 kB / 459.6 MB, free: 4.242 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003346/0.4748, allocations: 23.92 kB / 459.6 MB, free: 4.219 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/0.4749, allocations: 31.95 kB / 459.7 MB, free: 4.188 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.441e-05/0.4749, allocations: 15.98 kB / 459.7 MB, free: 4.172 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.119e-05/0.475, allocations: 91.27 kB / 459.8 MB, free: 4.082 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.475, allocations: 0 / 459.8 MB, free: 4.082 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003751/0.4788, allocations: 0.98 MB / 460.8 MB, free: 3.102 MB / 366.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.006474/0.4853, allocations: 1.149 MB / 461.9 MB, free: 2.027 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001762/0.4871, allocations: 0.9068 MB / 462.8 MB, free: 1.121 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.544e-06/0.4871, allocations: 4.5 kB / 462.8 MB, free: 1.117 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008342/0.488, allocations: 0.5993 MB / 463.4 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000764/0.4887, allocations: 83.86 kB / 463.5 MB, free: 448 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002123/0.4909, allocations: 1.659 MB / 465.2 MB, free: 14.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003729/0.4913, allocations: 0.8614 MB / 466 MB, free: 13.86 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003496/0.4916, allocations: 87.36 kB / 466.1 MB, free: 13.77 MB / 382.1 MB Notification: Performance of SimCode: time 1.142e-06/0.4916, allocations: 0 / 466.1 MB, free: 13.77 MB / 382.1 MB Notification: Performance of Templates: time 0.03573/0.5274, allocations: 23.96 MB / 490.1 MB, free: 5.754 MB / 398.1 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (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) 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) Reference file matches