Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001435/0.001435, allocations: 181.2 kB / 17.01 MB, free: 5.121 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.555/1.555, allocations: 205.4 MB / 223.1 MB, free: 9.125 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.0008121/0.0008118, allocations: 92.09 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000244/0.0002441, allocations: 8 kB / 328.2 MB, free: 15.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2618/0.2621, allocations: 47.57 MB / 375.8 MB, free: 45.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.725/6.987, allocations: 3.021 GB / 3.388 GB, free: 91.52 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.02115/7.008, allocations: 11.06 MB / 3.398 GB, free: 82.99 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5162/7.524, allocations: 113 MB / 3.509 GB, free: 75.59 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.495e-06/7.524, allocations: 0 / 3.509 GB, free: 75.59 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.851e-05/7.524, allocations: 7.875 kB / 3.509 GB, free: 75.59 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.006006/7.53, allocations: 1.14 MB / 3.51 GB, free: 74.91 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.701e-05/7.53, allocations: 11.91 kB / 3.51 GB, free: 74.91 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001513/7.532, allocations: 173.4 kB / 3.51 GB, free: 74.9 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003359/7.532, allocations: 268 kB / 3.51 GB, free: 74.69 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.286e-05/7.532, allocations: 25.81 kB / 3.51 GB, free: 74.69 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.449e-05/7.532, allocations: 17.97 kB / 3.51 GB, free: 74.69 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002845/7.535, allocations: 0.8789 MB / 3.511 GB, free: 74.62 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.69e-05/7.535, allocations: 6.656 kB / 3.511 GB, free: 74.62 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.785e-05/7.535, allocations: 6.125 kB / 3.511 GB, free: 74.62 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/7.535, allocations: 7.906 kB / 3.511 GB, free: 74.62 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002903/7.538, allocations: 0.9615 MB / 3.512 GB, free: 74.62 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.001484/7.54, allocations: 1.349 MB / 3.514 GB, free: 73.68 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002276/7.542, allocations: 0.7064 MB / 3.514 GB, free: 73.66 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06602/7.608, allocations: 37.23 MB / 3.551 GB, free: 50.45 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.632e-05/7.608, allocations: 34.81 kB / 3.551 GB, free: 50.41 MB / 426.7 MB Notification: Performance of pre-optimization done (n=33): time 6.382e-06/7.608, allocations: 3.703 kB / 3.551 GB, free: 50.41 MB / 426.7 MB Notification: Performance of matching and sorting (n=33): time 0.00496/7.613, allocations: 1.325 MB / 3.552 GB, free: 50.37 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.338e-05/7.613, allocations: 55.38 kB / 3.552 GB, free: 50.3 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001142/7.613, allocations: 123.3 kB / 3.552 GB, free: 50.21 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.579e-05/7.614, allocations: 33.14 kB / 3.552 GB, free: 50.18 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.005e-05/7.614, allocations: 109.3 kB / 3.552 GB, free: 50.08 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001425/7.614, allocations: 117.4 kB / 3.552 GB, free: 50 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.372e-05/7.614, allocations: 10.94 kB / 3.552 GB, free: 50 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.595e-05/7.614, allocations: 329.1 kB / 3.553 GB, free: 49.68 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005327/7.614, allocations: 330.6 kB / 3.553 GB, free: 49.68 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000547/7.615, allocations: 412.6 kB / 3.553 GB, free: 49.61 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005442/7.615, allocations: 329.3 kB / 3.554 GB, free: 49.6 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/7.616, allocations: 4 kB / 3.554 GB, free: 49.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001585/7.617, allocations: 0.8587 MB / 3.554 GB, free: 49.55 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.281e-05/7.617, allocations: 10.66 kB / 3.554 GB, free: 49.55 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/7.617, allocations: 2.875 kB / 3.554 GB, free: 49.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.599e-05/7.617, allocations: 3.344 kB / 3.555 GB, free: 49.55 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007057/7.618, allocations: 177.4 kB / 3.555 GB, free: 49.55 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.339e-05/7.618, allocations: 6.156 kB / 3.555 GB, free: 49.55 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004781/7.618, allocations: 45.02 kB / 3.555 GB, free: 49.54 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001022/7.619, allocations: 65.92 kB / 3.555 GB, free: 49.53 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.0002215/7.619, allocations: 145.4 kB / 3.555 GB, free: 49.41 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.873e-05/7.619, allocations: 15.44 kB / 3.555 GB, free: 49.41 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006044/7.625, allocations: 7.808 MB / 3.563 GB, free: 46.96 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.673e-05/7.625, allocations: 27.55 kB / 3.563 GB, free: 46.96 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/7.625, allocations: 3.969 kB / 3.563 GB, free: 46.96 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/7.625, allocations: 3.656 kB / 3.563 GB, free: 46.96 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002378/7.627, allocations: 3.507 MB / 3.566 GB, free: 44.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.386e-06/7.627, allocations: 0 / 3.566 GB, free: 44.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000697/7.628, allocations: 114.8 kB / 3.566 GB, free: 44.68 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.688e-06/7.628, allocations: 4 kB / 3.566 GB, free: 44.68 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.412e-05/7.628, allocations: 11.91 kB / 3.566 GB, free: 44.67 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.372e-06/7.628, allocations: 3.812 kB / 3.566 GB, free: 44.67 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/7.628, allocations: 3.938 kB / 3.566 GB, free: 44.67 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002075/7.63, allocations: 1.842 MB / 3.568 GB, free: 43.73 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001005/7.63, allocations: 143.6 kB / 3.568 GB, free: 43.59 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.363e-05/7.63, allocations: 11.25 kB / 3.568 GB, free: 43.59 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003664/7.631, allocations: 24.53 kB / 3.568 GB, free: 43.58 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/7.631, allocations: 35.61 kB / 3.568 GB, free: 43.57 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.137e-05/7.631, allocations: 15.66 kB / 3.568 GB, free: 43.57 MB / 426.7 MB Notification: Performance of sorting global known variables: time 5.932e-05/7.631, allocations: 93.67 kB / 3.568 GB, free: 43.49 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.41e-07/7.631, allocations: 0 / 3.568 GB, free: 43.49 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005174/7.636, allocations: 0.9914 MB / 3.569 GB, free: 43.29 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.008194/7.644, allocations: 1.254 MB / 3.57 GB, free: 42.96 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001738/7.646, allocations: 0.8966 MB / 3.571 GB, free: 42.61 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/7.646, allocations: 0 / 3.571 GB, free: 42.61 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007991/7.647, allocations: 0.594 MB / 3.572 GB, free: 42.32 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006511/7.648, allocations: 82.75 kB / 3.572 GB, free: 42.3 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001906/7.65, allocations: 1.593 MB / 3.574 GB, free: 41.36 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002714/7.65, allocations: 0.8677 MB / 3.574 GB, free: 40.64 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001745/7.652, allocations: 1.744 MB / 3.576 GB, free: 40.56 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003651/7.652, allocations: 93.25 kB / 3.576 GB, free: 40.54 MB / 426.7 MB Notification: Performance of SimCode: time 1.383e-06/7.652, allocations: 0 / 3.576 GB, free: 40.54 MB / 426.7 MB Notification: Performance of Templates: time 0.04399/7.696, allocations: 31.14 MB / 3.607 GB, free: 27.84 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (rm -f Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins/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_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches