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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.002147/0.002147, allocations: 173.1 kB / 13.64 MB, free: 1.672 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.56/1.56, allocations: 221.3 MB / 235.5 MB, free: 2.883 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000971/0.0009711, allocations: 87.92 kB / 286.5 MB, free: 180 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.297e-05/4.318e-05, allocations: 0 / 343.8 MB, free: 4.316 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.1359, allocations: 50.42 MB / 394.2 MB, free: 1.855 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.588/9.724, allocations: 3.026 GB / 3.411 GB, free: 99.41 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.02348/9.748, allocations: 11.21 MB / 3.422 GB, free: 98.2 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3184/10.07, allocations: 113.9 MB / 3.533 GB, free: 25.43 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.274e-06/10.07, allocations: 4 kB / 3.533 GB, free: 25.43 MB / 458.7 MB Notification: Performance of Transformations before backend: time 2.087e-05/10.07, allocations: 7.984 kB / 3.533 GB, free: 25.42 MB / 458.7 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.007093/10.07, allocations: 1.13 MB / 3.534 GB, free: 24.24 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.755e-05/10.07, allocations: 8.031 kB / 3.534 GB, free: 24.23 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001581/10.08, allocations: 183.5 kB / 3.535 GB, free: 24.05 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004181/10.08, allocations: 254.8 kB / 3.535 GB, free: 23.77 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.913e-05/10.08, allocations: 16.44 kB / 3.535 GB, free: 23.75 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.023e-05/10.08, allocations: 27.95 kB / 3.535 GB, free: 23.72 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002922/10.08, allocations: 0.9091 MB / 3.536 GB, free: 22.8 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.865e-05/10.08, allocations: 4 kB / 3.536 GB, free: 22.79 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.9e-05/10.08, allocations: 8 kB / 3.536 GB, free: 22.79 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.398e-06/10.08, allocations: 4 kB / 3.536 GB, free: 22.78 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002717/10.08, allocations: 0.9541 MB / 3.537 GB, free: 21.82 MB / 458.7 MB Warning: The model contains alias variables with conflicting start and/or 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.001755/10.08, allocations: 1.354 MB / 3.538 GB, free: 20.33 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002249/10.09, allocations: 0.737 MB / 3.539 GB, free: 19.59 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002012/10.09, allocations: 137.4 kB / 3.539 GB, free: 19.45 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3973/10.48, allocations: 37.34 MB / 3.575 GB, free: 72.62 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.533e-05/10.48, allocations: 41.72 kB / 3.575 GB, free: 72.58 MB / 458.7 MB Notification: Performance of pre-optimization done (n=33): time 4.198e-06/10.48, allocations: 0 / 3.575 GB, free: 72.58 MB / 458.7 MB Notification: Performance of matching and sorting (n=33): time 0.005111/10.49, allocations: 1.24 MB / 3.577 GB, free: 72.55 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.978e-05/10.49, allocations: 56.59 kB / 3.577 GB, free: 72.48 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001241/10.49, allocations: 108.9 kB / 3.577 GB, free: 72.39 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001017/10.49, allocations: 30.95 kB / 3.577 GB, free: 72.36 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.58e-05/10.49, allocations: 122.8 kB / 3.577 GB, free: 72.27 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001575/10.49, allocations: 115.8 kB / 3.577 GB, free: 72.21 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.362e-05/10.49, allocations: 5.188 kB / 3.577 GB, free: 72.21 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 9.571e-05/10.49, allocations: 325.3 kB / 3.577 GB, free: 71.9 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005331/10.49, allocations: 317.5 kB / 3.578 GB, free: 71.9 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006164/10.49, allocations: 380.1 kB / 3.578 GB, free: 71.83 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005427/10.49, allocations: 310.6 kB / 3.578 GB, free: 71.82 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.961e-06/10.49, allocations: 5.672 kB / 3.578 GB, free: 71.82 MB / 458.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001697/10.49, allocations: 0.8183 MB / 3.579 GB, free: 71.78 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.796e-05/10.49, allocations: 5.875 kB / 3.579 GB, free: 71.78 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.344e-05/10.49, allocations: 2.156 kB / 3.579 GB, free: 71.78 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.825e-05/10.49, allocations: 12.22 kB / 3.579 GB, free: 71.78 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007762/10.49, allocations: 181.1 kB / 3.579 GB, free: 71.78 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.867e-05/10.49, allocations: 5.688 kB / 3.579 GB, free: 71.78 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005439/10.49, allocations: 41.64 kB / 3.579 GB, free: 71.77 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001291/10.49, allocations: 65.48 kB / 3.579 GB, free: 71.77 MB / 458.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002011/10.49, allocations: 129.6 kB / 3.579 GB, free: 71.66 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001057/10.49, allocations: 16.12 kB / 3.579 GB, free: 71.65 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006862/10.5, allocations: 6.507 MB / 3.586 GB, free: 71.48 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.111e-05/10.5, allocations: 22.22 kB / 3.586 GB, free: 71.48 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/10.5, allocations: 0 / 3.586 GB, free: 71.48 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.517e-06/10.5, allocations: 3.891 kB / 3.586 GB, free: 71.48 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002381/10.5, allocations: 2.896 MB / 3.589 GB, free: 70.64 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/10.5, allocations: 0 / 3.589 GB, free: 70.64 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006831/10.5, allocations: 134.1 kB / 3.589 GB, free: 70.64 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.768e-06/10.5, allocations: 0 / 3.589 GB, free: 70.64 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.959e-05/10.5, allocations: 18.58 kB / 3.589 GB, free: 70.64 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.173e-06/10.5, allocations: 7.5 kB / 3.589 GB, free: 70.64 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/10.5, allocations: 0 / 3.589 GB, free: 70.64 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001951/10.51, allocations: 1.744 MB / 3.591 GB, free: 70.41 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001317/10.51, allocations: 139.4 kB / 3.591 GB, free: 70.29 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.454e-05/10.51, allocations: 9.531 kB / 3.591 GB, free: 70.29 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000403/10.51, allocations: 22.05 kB / 3.591 GB, free: 70.29 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001164/10.51, allocations: 42.02 kB / 3.591 GB, free: 70.29 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.812e-05/10.51, allocations: 28.16 kB / 3.591 GB, free: 70.29 MB / 458.7 MB Notification: Performance of sorting global known variables: time 5.644e-05/10.51, allocations: 92.59 kB / 3.591 GB, free: 70.22 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.4e-07/10.51, allocations: 0 / 3.591 GB, free: 70.22 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005387/10.51, allocations: 1.004 MB / 3.592 GB, free: 70.22 MB / 458.7 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: 13 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.region3boundary,$cse9.region3boundary,medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01089/10.52, allocations: 1.272 MB / 3.593 GB, free: 70.12 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001672/10.53, allocations: 0.8564 MB / 3.594 GB, free: 70.1 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/10.53, allocations: 1.031 kB / 3.594 GB, free: 70.1 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008317/10.53, allocations: 0.5645 MB / 3.594 GB, free: 70.1 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007436/10.53, allocations: 78.83 kB / 3.595 GB, free: 70.09 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002015/10.53, allocations: 1.015 MB / 3.596 GB, free: 69.93 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003627/10.53, allocations: 0.8445 MB / 3.596 GB, free: 69.23 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002767/10.53, allocations: 2.742 MB / 3.599 GB, free: 69.18 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003634/10.53, allocations: 99.55 kB / 3.599 GB, free: 69.17 MB / 458.7 MB Notification: Performance of SimCode: time 9.42e-07/10.53, allocations: 1.781 kB / 3.599 GB, free: 69.17 MB / 458.7 MB Notification: Performance of Templates: time 0.04645/10.58, allocations: 31.63 MB / 3.63 GB, free: 68.06 MB / 458.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","../files/Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches