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.001336/0.001336, allocations: 101 kB / 17.59 MB, free: 5.426 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.001368/0.001368, allocations: 191.3 kB / 18.51 MB, free: 4.504 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.352/1.352, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001128/0.001128, allocations: 46.89 kB / 301.3 MB, free: 5.898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1013, allocations: 49.44 MB / 350.7 MB, free: 4.449 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01555/0.1169, allocations: 13.32 MB / 364 MB, free: 7.066 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2186/0.3356, allocations: 15.55 MB / 379.6 MB, free: 9.039 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002172/0.3358, allocations: 1.062 kB / 379.6 MB, free: 9.039 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004376/0.3363, allocations: 83.95 kB / 379.7 MB, free: 9.035 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004182/0.3368, allocations: 110.5 kB / 379.8 MB, free: 9.031 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02204/0.3588, allocations: 5.953 MB / 385.7 MB, free: 8.207 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005968/0.3594, allocations: 339.7 kB / 386.1 MB, free: 8.125 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.327e-05/0.3595, allocations: 22.11 kB / 386.1 MB, free: 8.121 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005244/0.36, allocations: 228.2 kB / 386.3 MB, free: 8.074 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001784/0.3602, allocations: 106.9 kB / 386.4 MB, free: 8.051 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.524e-05/0.3603, allocations: 14.56 kB / 386.4 MB, free: 8.051 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01764/0.3779, allocations: 6.606 MB / 393 MB, free: 5.613 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001182/0.3781, allocations: 46.31 kB / 393.1 MB, free: 5.582 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002475/0.3783, allocations: 107.5 kB / 393.2 MB, free: 5.523 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01302/0.3913, allocations: 3.908 MB / 397.1 MB, free: 3.262 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.396e-06/0.3914, allocations: 0 / 397.1 MB, free: 3.262 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3914, allocations: 1.375 kB / 397.1 MB, free: 3.262 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.01e-05/0.3915, allocations: 0 / 397.1 MB, free: 3.262 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.004189/0.3956, allocations: 0.9879 MB / 398.1 MB, free: 2.508 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.811e-05/0.3957, allocations: 11.12 kB / 398.1 MB, free: 2.508 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001443/0.3972, allocations: 179.4 kB / 398.3 MB, free: 2.426 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002641/0.3974, allocations: 264.3 kB / 398.5 MB, free: 2.145 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.585e-05/0.3975, allocations: 13.72 kB / 398.5 MB, free: 2.141 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.037e-05/0.3975, allocations: 22.97 kB / 398.6 MB, free: 2.133 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002829/0.4004, allocations: 0.9051 MB / 399.5 MB, free: 1.566 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.568e-05/0.4004, allocations: 3.938 kB / 399.5 MB, free: 1.562 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.328e-05/0.4004, allocations: 14.91 kB / 399.5 MB, free: 1.551 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.4005, allocations: 9.141 kB / 399.5 MB, free: 1.547 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00292/0.4034, allocations: 0.9629 MB / 400.5 MB, free: 1.016 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.001492/0.4049, allocations: 1.344 MB / 401.8 MB, free: 15.74 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00252/0.4074, allocations: 0.7327 MB / 402.5 MB, free: 15.31 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000294/0.4077, allocations: 154.9 kB / 402.7 MB, free: 15.23 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07983/0.4876, allocations: 37.42 MB / 440.1 MB, free: 5.652 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.109e-05/0.4877, allocations: 37.06 kB / 440.1 MB, free: 5.609 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.354e-06/0.4877, allocations: 0 / 440.1 MB, free: 5.609 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.005343/0.493, allocations: 1.353 MB / 441.5 MB, free: 4.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.186e-05/0.4931, allocations: 63.34 kB / 441.6 MB, free: 4.176 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001229/0.4932, allocations: 125.7 kB / 441.7 MB, free: 4.043 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.208e-05/0.4933, allocations: 33.7 kB / 441.7 MB, free: 4.004 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.614e-05/0.4934, allocations: 116.6 kB / 441.8 MB, free: 3.887 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001429/0.4936, allocations: 112.4 kB / 441.9 MB, free: 3.777 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002892/0.4939, allocations: 169.5 kB / 442.1 MB, free: 3.605 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.494, allocations: 326.8 kB / 442.4 MB, free: 3.277 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006569/0.4947, allocations: 343.8 kB / 442.8 MB, free: 2.941 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000732/0.4954, allocations: 403.3 kB / 443.2 MB, free: 2.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001364/0.4968, allocations: 0.7153 MB / 443.9 MB, free: 1.777 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.4968, allocations: 4 kB / 443.9 MB, free: 1.773 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001873/0.4987, allocations: 0.8641 MB / 444.7 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.761e-05/0.4987, allocations: 8 kB / 444.7 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.4987, allocations: 0 / 444.7 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.387e-05/0.4988, allocations: 12.19 kB / 444.8 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006654/0.4994, allocations: 171.8 kB / 444.9 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.478e-05/0.4994, allocations: 7.984 kB / 444.9 MB, free: 0.707 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003575/0.4998, allocations: 35.69 kB / 445 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001053/0.4999, allocations: 63.92 kB / 445 MB, free: 0.6094 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.0002722/0.5002, allocations: 133.8 kB / 445.2 MB, free: 480 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001516/0.5004, allocations: 23.75 kB / 445.2 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007965/0.5083, allocations: 7.978 MB / 453.2 MB, free: 8.461 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.37e-05/0.5084, allocations: 27.89 kB / 453.2 MB, free: 8.434 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.115e-06/0.5084, allocations: 0 / 453.2 MB, free: 8.434 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/0.5084, allocations: 1.641 kB / 453.2 MB, free: 8.434 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003248/0.5117, allocations: 3.605 MB / 456.8 MB, free: 4.578 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.248e-06/0.5117, allocations: 0 / 456.8 MB, free: 4.578 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006315/0.5124, allocations: 115.8 kB / 456.9 MB, free: 4.465 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.019e-05/0.5124, allocations: 5.172 kB / 456.9 MB, free: 4.461 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.76e-05/0.5124, allocations: 8 kB / 456.9 MB, free: 4.453 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.885e-06/0.5125, allocations: 7.938 kB / 456.9 MB, free: 4.445 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.5125, allocations: 0 / 456.9 MB, free: 4.445 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002514/0.515, allocations: 1.846 MB / 458.8 MB, free: 2.578 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001221/0.5151, allocations: 140.2 kB / 458.9 MB, free: 2.422 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.68e-05/0.5152, allocations: 9.312 kB / 458.9 MB, free: 2.414 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003031/0.5155, allocations: 23.92 kB / 458.9 MB, free: 2.391 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.948e-05/0.5156, allocations: 27.95 kB / 459 MB, free: 2.363 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.797e-05/0.5156, allocations: 12 kB / 459 MB, free: 2.352 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.478e-05/0.5157, allocations: 91.27 kB / 459.1 MB, free: 2.262 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5157, allocations: 0 / 459.1 MB, free: 2.262 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.004277/0.52, allocations: 0.9877 MB / 460.1 MB, free: 1.273 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.005969/0.526, allocations: 1.146 MB / 461.2 MB, free: 208 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002231/0.5283, allocations: 0.9107 MB / 462.1 MB, free: 15.29 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.612e-06/0.5283, allocations: 0 / 462.1 MB, free: 15.29 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000804/0.5291, allocations: 0.5915 MB / 462.7 MB, free: 14.7 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007173/0.5298, allocations: 88.56 kB / 462.8 MB, free: 14.62 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002034/0.5319, allocations: 1.359 MB / 464.2 MB, free: 13.23 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004441/0.5323, allocations: 0.8575 MB / 465 MB, free: 12.33 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003631/0.5327, allocations: 91.36 kB / 465.1 MB, free: 12.24 MB / 382.1 MB Notification: Performance of SimCode: time 6.11e-07/0.5327, allocations: 0 / 465.1 MB, free: 12.24 MB / 382.1 MB Notification: Performance of Templates: time 0.03903/0.5717, allocations: 24 MB / 489.1 MB, free: 4.191 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