Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001067/0.001067, allocations: 180.9 kB / 17.41 MB, free: 4.285 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.293/1.293, allocations: 205.4 MB / 223.6 MB, free: 9.008 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007841/0.0007841, allocations: 86.36 kB / 271.9 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003285/0.0003285, allocations: 8 kB / 328.2 MB, free: 15.93 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2561/0.2565, allocations: 47.57 MB / 375.7 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.862/6.119, allocations: 3.021 GB / 3.388 GB, free: 20.04 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.01874/6.138, allocations: 11.06 MB / 3.399 GB, free: 8.855 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4377/6.575, allocations: 113 MB / 3.509 GB, free: 68.34 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.605e-06/6.575, allocations: 0 / 3.509 GB, free: 68.34 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.508e-05/6.575, allocations: 4 kB / 3.509 GB, free: 68.33 MB / 426.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.005359/6.581, allocations: 1.146 MB / 3.51 GB, free: 67.13 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.596e-05/6.581, allocations: 8.031 kB / 3.51 GB, free: 67.12 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001391/6.582, allocations: 180.6 kB / 3.51 GB, free: 66.95 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000307/6.583, allocations: 260 kB / 3.511 GB, free: 66.66 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.509e-05/6.583, allocations: 16.81 kB / 3.511 GB, free: 66.64 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.733e-05/6.583, allocations: 20.38 kB / 3.511 GB, free: 66.62 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002833/6.585, allocations: 0.8861 MB / 3.511 GB, free: 65.71 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.493e-05/6.586, allocations: 3.938 kB / 3.511 GB, free: 65.71 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.316e-05/6.586, allocations: 15.94 kB / 3.511 GB, free: 65.7 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.586e-06/6.586, allocations: 4 kB / 3.511 GB, free: 65.7 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002845/6.588, allocations: 0.9617 MB / 3.512 GB, free: 64.73 MB / 426.7 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.001317/6.59, allocations: 1.347 MB / 3.514 GB, free: 63.25 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002243/6.592, allocations: 0.7135 MB / 3.514 GB, free: 62.52 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000249/6.592, allocations: 161.4 kB / 3.515 GB, free: 62.36 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05793/6.65, allocations: 37.23 MB / 3.551 GB, free: 20.7 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.444e-05/6.65, allocations: 38.84 kB / 3.551 GB, free: 20.65 MB / 426.7 MB Notification: Performance of pre-optimization done (n=33): time 2.184e-06/6.65, allocations: 0 / 3.551 GB, free: 20.65 MB / 426.7 MB Notification: Performance of matching and sorting (n=33): time 0.004712/6.655, allocations: 1.327 MB / 3.552 GB, free: 19.32 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.064e-05/6.655, allocations: 59.34 kB / 3.552 GB, free: 19.25 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.057e-05/6.655, allocations: 121.7 kB / 3.552 GB, free: 19.12 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.36e-05/6.655, allocations: 37.64 kB / 3.552 GB, free: 19.07 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.479e-05/6.655, allocations: 112.7 kB / 3.553 GB, free: 18.96 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001044/6.655, allocations: 114.4 kB / 3.553 GB, free: 18.85 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.015e-05/6.656, allocations: 8 kB / 3.553 GB, free: 18.84 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.125e-05/6.656, allocations: 326.8 kB / 3.553 GB, free: 18.51 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005247/6.656, allocations: 335.8 kB / 3.553 GB, free: 18.18 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005397/6.657, allocations: 407.3 kB / 3.554 GB, free: 17.76 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001042/6.658, allocations: 0.6998 MB / 3.554 GB, free: 17.03 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/6.658, allocations: 0 / 3.554 GB, free: 17.03 MB / 426.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001557/6.659, allocations: 0.8679 MB / 3.555 GB, free: 16.16 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/6.659, allocations: 4 kB / 3.555 GB, free: 16.15 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/6.659, allocations: 5.406 kB / 3.555 GB, free: 16.15 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/6.659, allocations: 4 kB / 3.555 GB, free: 16.14 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006808/6.66, allocations: 180 kB / 3.555 GB, free: 15.97 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.346e-05/6.66, allocations: 15.92 kB / 3.555 GB, free: 15.95 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000475/6.661, allocations: 35.73 kB / 3.555 GB, free: 15.92 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001027/6.661, allocations: 63.94 kB / 3.556 GB, free: 15.86 MB / 426.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002114/6.661, allocations: 141.7 kB / 3.556 GB, free: 15.71 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.33e-05/6.661, allocations: 23.81 kB / 3.556 GB, free: 15.68 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005582/6.667, allocations: 7.81 MB / 3.563 GB, free: 7.863 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.81e-05/6.667, allocations: 27.95 kB / 3.563 GB, free: 7.836 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.717e-06/6.667, allocations: 7.938 kB / 3.563 GB, free: 7.828 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.258e-06/6.667, allocations: 3.984 kB / 3.563 GB, free: 7.824 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002207/6.669, allocations: 3.498 MB / 3.567 GB, free: 4.07 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.965e-06/6.669, allocations: 0 / 3.567 GB, free: 4.07 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006594/6.67, allocations: 119.8 kB / 3.567 GB, free: 3.953 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.524e-06/6.67, allocations: 0 / 3.567 GB, free: 3.953 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.017e-05/6.67, allocations: 12 kB / 3.567 GB, free: 3.941 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.903e-06/6.67, allocations: 7.984 kB / 3.567 GB, free: 3.934 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/6.67, allocations: 3.938 kB / 3.567 GB, free: 3.93 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002018/6.672, allocations: 1.838 MB / 3.569 GB, free: 2.074 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001152/6.672, allocations: 152.2 kB / 3.569 GB, free: 1.906 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.949e-05/6.672, allocations: 8 kB / 3.569 GB, free: 1.898 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003356/6.672, allocations: 23.97 kB / 3.569 GB, free: 1.875 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001072/6.672, allocations: 31.84 kB / 3.569 GB, free: 1.844 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.467e-05/6.672, allocations: 19.98 kB / 3.569 GB, free: 1.824 MB / 426.7 MB Notification: Performance of sorting global known variables: time 5.474e-05/6.672, allocations: 91.27 kB / 3.569 GB, free: 1.734 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.21e-07/6.672, allocations: 0 / 3.569 GB, free: 1.734 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004984/6.677, allocations: 0.9951 MB / 3.57 GB, free: 0.7383 MB / 426.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: 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 (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.253/6.931, allocations: 1.245 MB / 3.571 GB, free: 86.59 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002571/6.933, allocations: 0.9009 MB / 3.572 GB, free: 86.59 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/6.933, allocations: 0 / 3.572 GB, free: 86.59 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009935/6.934, allocations: 0.5892 MB / 3.573 GB, free: 86.58 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009705/6.935, allocations: 86.89 kB / 3.573 GB, free: 86.57 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002482/6.938, allocations: 1.63 MB / 3.574 GB, free: 85.95 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002949/6.938, allocations: 0.8548 MB / 3.575 GB, free: 85.25 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003664/6.938, allocations: 88.3 kB / 3.575 GB, free: 85.24 MB / 426.7 MB Notification: Performance of SimCode: time 6.11e-07/6.938, allocations: 3.75 kB / 3.575 GB, free: 85.24 MB / 426.7 MB Notification: Performance of Templates: time 0.04002/6.978, allocations: 23.27 MB / 3.598 GB, free: 84.82 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches