Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002048/0.002048, allocations: 198.9 kB / 18.07 MB, free: 3.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.742/2.742, allocations: 226.5 MB / 245.3 MB, free: 8.238 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001329/0.001329, allocations: 102.2 kB / 297.4 MB, free: 6.902 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004976/0.0004978, allocations: 11.98 kB / 357.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4966/0.4972, allocations: 51.29 MB / 408.7 MB, free: 27.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 13.28/13.78, allocations: 3.027 GB / 3.426 GB, free: 69.75 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.05413/13.83, allocations: 11.33 MB / 3.437 GB, free: 58.29 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.028/14.86, allocations: 113.8 MB / 3.548 GB, free: 98.85 MB / 458.7 MB Notification: Performance of FrontEnd: time 4.008e-06/14.86, allocations: 7.812 kB / 3.548 GB, free: 98.84 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.903e-05/14.86, allocations: 3.875 kB / 3.548 GB, free: 98.84 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.00767/14.87, allocations: 1.145 MB / 3.55 GB, free: 98.09 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.899e-05/14.87, allocations: 11.59 kB / 3.55 GB, free: 98.09 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002605/14.87, allocations: 181.5 kB / 3.55 GB, free: 98.07 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004201/14.87, allocations: 254.3 kB / 3.55 GB, free: 97.88 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.476e-05/14.87, allocations: 20.75 kB / 3.55 GB, free: 97.88 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.638e-05/14.87, allocations: 25.47 kB / 3.55 GB, free: 97.87 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009409/14.88, allocations: 0.8906 MB / 3.551 GB, free: 97.8 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.617e-05/14.88, allocations: 192 / 3.551 GB, free: 97.8 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.075e-05/14.88, allocations: 13.06 kB / 3.551 GB, free: 97.79 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.235e-05/14.88, allocations: 3.5 kB / 3.551 GB, free: 97.79 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005269/14.89, allocations: 0.9635 MB / 3.552 GB, free: 97.79 MB / 458.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.002279/14.89, allocations: 1.35 MB / 3.553 GB, free: 96.84 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004164/14.89, allocations: 0.7124 MB / 3.554 GB, free: 96.81 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005184/14.89, allocations: 164.7 kB / 3.554 GB, free: 96.8 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1227/15.02, allocations: 41.85 MB / 3.595 GB, free: 63.11 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.717e-05/15.02, allocations: 44.66 kB / 3.595 GB, free: 63.07 MB / 458.7 MB Notification: Performance of pre-optimization done (n=33): time 5.601e-06/15.02, allocations: 0 / 3.595 GB, free: 63.07 MB / 458.7 MB Notification: Performance of matching and sorting (n=33): time 0.008709/15.02, allocations: 1.324 MB / 3.596 GB, free: 62.11 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.189e-05/15.02, allocations: 63.34 kB / 3.596 GB, free: 62.04 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001945/15.03, allocations: 125.3 kB / 3.596 GB, free: 61.91 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001131/15.03, allocations: 33.7 kB / 3.596 GB, free: 61.88 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.592e-05/15.03, allocations: 112.6 kB / 3.596 GB, free: 61.77 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002124/15.03, allocations: 118.1 kB / 3.597 GB, free: 61.66 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.594e-05/15.03, allocations: 4 kB / 3.597 GB, free: 61.66 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000102/15.03, allocations: 326.7 kB / 3.597 GB, free: 61.33 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001014/15.03, allocations: 337.5 kB / 3.597 GB, free: 61.05 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001059/15.03, allocations: 401.2 kB / 3.598 GB, free: 60.68 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002042/15.03, allocations: 0.7 MB / 3.598 GB, free: 60 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/15.03, allocations: 0 / 3.598 GB, free: 60 MB / 458.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.003019/15.03, allocations: 0.8682 MB / 3.599 GB, free: 59.25 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.024e-05/15.03, allocations: 8 kB / 3.599 GB, free: 59.24 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.474e-05/15.03, allocations: 0 / 3.599 GB, free: 59.24 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.039e-05/15.03, allocations: 4 kB / 3.599 GB, free: 59.23 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001226/15.03, allocations: 181.1 kB / 3.599 GB, free: 59.11 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.687e-05/15.03, allocations: 11.94 kB / 3.599 GB, free: 59.1 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007597/15.04, allocations: 51.38 kB / 3.599 GB, free: 59.05 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001792/15.04, allocations: 60.25 kB / 3.599 GB, free: 59.01 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 () * 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.0003411/15.04, allocations: 137.8 kB / 3.6 GB, free: 58.87 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000166/15.04, allocations: 15.81 kB / 3.6 GB, free: 58.86 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01117/15.05, allocations: 7.811 MB / 3.607 GB, free: 51.91 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.112e-05/15.05, allocations: 27.34 kB / 3.607 GB, free: 51.89 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.667e-05/15.05, allocations: 7.938 kB / 3.607 GB, free: 51.88 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.663e-05/15.05, allocations: 6.562 kB / 3.607 GB, free: 51.88 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006914/15.05, allocations: 3.497 MB / 3.611 GB, free: 48.47 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.291e-05/15.05, allocations: 7.672 kB / 3.611 GB, free: 48.47 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001166/15.06, allocations: 113.5 kB / 3.611 GB, free: 48.4 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.199e-05/15.06, allocations: 0 / 3.611 GB, free: 48.4 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.282e-05/15.06, allocations: 15.61 kB / 3.611 GB, free: 48.39 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.164e-06/15.06, allocations: 4 kB / 3.611 GB, free: 48.38 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/15.06, allocations: 3.938 kB / 3.611 GB, free: 48.38 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003704/15.06, allocations: 1.841 MB / 3.613 GB, free: 46.65 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001584/15.06, allocations: 151.8 kB / 3.613 GB, free: 46.49 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.497e-05/15.06, allocations: 12.06 kB / 3.613 GB, free: 46.48 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005757/15.06, allocations: 23.84 kB / 3.613 GB, free: 46.46 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001521/15.06, allocations: 35.09 kB / 3.613 GB, free: 46.43 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.983e-05/15.06, allocations: 11.8 kB / 3.613 GB, free: 46.43 MB / 458.7 MB Notification: Performance of sorting global known variables: time 8.025e-05/15.06, allocations: 91.03 kB / 3.613 GB, free: 46.34 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.51e-07/15.06, allocations: 0 / 3.613 GB, free: 46.34 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006912/15.07, allocations: 1.024 MB / 3.614 GB, free: 45.34 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: 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.01225/15.08, allocations: 1.282 MB / 3.615 GB, free: 44.18 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002846/15.08, allocations: 0.8964 MB / 3.616 GB, free: 43.4 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.165e-06/15.08, allocations: 8.562 kB / 3.616 GB, free: 43.39 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001176/15.08, allocations: 0.5871 MB / 3.617 GB, free: 42.85 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001188/15.09, allocations: 87.53 kB / 3.617 GB, free: 42.79 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003013/15.09, allocations: 1.65 MB / 3.618 GB, free: 41.27 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003808/15.09, allocations: 0.8539 MB / 3.619 GB, free: 40.44 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006631/15.09, allocations: 90.08 kB / 3.619 GB, free: 40.38 MB / 458.7 MB Notification: Performance of SimCode: time 1.442e-06/15.09, allocations: 0 / 3.619 GB, free: 40.38 MB / 458.7 MB Notification: Performance of Templates: time 0.06245/15.15, allocations: 23.46 MB / 3.642 GB, free: 25.23 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (rm -f Modelica_trunk_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_trunk_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_trunk_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches