Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001395/0.001395, allocations: 200.9 kB / 18.11 MB, free: 3.734 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.312/1.312, allocations: 226.5 MB / 245.4 MB, free: 6.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007771/0.0007772, allocations: 112.2 kB / 297.5 MB, free: 6.691 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002865/0.0002866, allocations: 4 kB / 358.1 MB, free: 10.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.216/0.2163, allocations: 51.3 MB / 409.4 MB, free: 27.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.899/5.116, allocations: 3.027 GB / 3.427 GB, free: 70.21 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.02017/5.136, allocations: 11.35 MB / 3.438 GB, free: 58.73 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4393/5.575, allocations: 113.8 MB / 3.549 GB, free: 98.98 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.264e-06/5.575, allocations: 5.5 kB / 3.549 GB, free: 98.98 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.498e-05/5.575, allocations: 7.938 kB / 3.549 GB, free: 98.97 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.004705/5.58, allocations: 1.147 MB / 3.55 GB, free: 98.21 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/5.58, allocations: 10.78 kB / 3.55 GB, free: 98.21 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001352/5.581, allocations: 183.7 kB / 3.55 GB, free: 98.2 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002966/5.582, allocations: 256 kB / 3.551 GB, free: 98 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.403e-05/5.582, allocations: 21.19 kB / 3.551 GB, free: 98 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.246e-05/5.582, allocations: 24.78 kB / 3.551 GB, free: 98 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002626/5.584, allocations: 0.8906 MB / 3.552 GB, free: 97.92 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.73e-05/5.584, allocations: 192 / 3.552 GB, free: 97.92 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.352e-05/5.585, allocations: 12 kB / 3.552 GB, free: 97.92 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.987e-06/5.585, allocations: 7.281 kB / 3.552 GB, free: 97.92 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002667/5.587, allocations: 0.9646 MB / 3.553 GB, free: 97.91 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.001414/5.589, allocations: 1.342 MB / 3.554 GB, free: 96.96 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002055/5.591, allocations: 0.7146 MB / 3.555 GB, free: 96.94 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002441/5.591, allocations: 154.9 kB / 3.555 GB, free: 96.93 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06258/5.654, allocations: 41.86 MB / 3.596 GB, free: 63.39 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.594e-05/5.654, allocations: 41.28 kB / 3.596 GB, free: 63.34 MB / 458.7 MB Notification: Performance of pre-optimization done (n=33): time 2.334e-06/5.654, allocations: 0 / 3.596 GB, free: 63.34 MB / 458.7 MB Notification: Performance of matching and sorting (n=33): time 0.00463/5.658, allocations: 1.319 MB / 3.597 GB, free: 62.44 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.431e-05/5.658, allocations: 63.34 kB / 3.597 GB, free: 62.36 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000101/5.658, allocations: 124.6 kB / 3.597 GB, free: 62.24 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 7.695e-05/5.659, allocations: 33.7 kB / 3.597 GB, free: 62.2 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.199e-05/5.659, allocations: 114.9 kB / 3.597 GB, free: 62.09 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001188/5.659, allocations: 109.6 kB / 3.597 GB, free: 61.99 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.102e-05/5.659, allocations: 12 kB / 3.597 GB, free: 61.98 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 8.634e-05/5.659, allocations: 330.2 kB / 3.598 GB, free: 61.65 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005397/5.659, allocations: 336.3 kB / 3.598 GB, free: 61.37 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005787/5.66, allocations: 406.8 kB / 3.598 GB, free: 61 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001052/5.661, allocations: 0.6976 MB / 3.599 GB, free: 60.32 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/5.661, allocations: 0 / 3.599 GB, free: 60.32 MB / 458.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001554/5.663, allocations: 0.8682 MB / 3.6 GB, free: 59.57 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/5.663, allocations: 8 kB / 3.6 GB, free: 59.56 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.856e-06/5.663, allocations: 0 / 3.6 GB, free: 59.56 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.048e-05/5.663, allocations: 4 kB / 3.6 GB, free: 59.55 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006206/5.663, allocations: 176.8 kB / 3.6 GB, free: 59.43 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.221e-05/5.663, allocations: 16.02 kB / 3.6 GB, free: 59.42 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004105/5.664, allocations: 43.14 kB / 3.6 GB, free: 59.38 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.188e-05/5.664, allocations: 66.23 kB / 3.6 GB, free: 59.34 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.0001903/5.664, allocations: 147.2 kB / 3.6 GB, free: 59.19 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.227e-05/5.664, allocations: 15.81 kB / 3.6 GB, free: 59.18 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007382/5.672, allocations: 7.806 MB / 3.608 GB, free: 52.23 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.627e-05/5.672, allocations: 27.3 kB / 3.608 GB, free: 52.21 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/5.672, allocations: 7.938 kB / 3.608 GB, free: 52.2 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/5.672, allocations: 0 / 3.608 GB, free: 52.2 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002384/5.674, allocations: 3.504 MB / 3.611 GB, free: 48.79 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/5.674, allocations: 0 / 3.611 GB, free: 48.79 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006451/5.675, allocations: 116.8 kB / 3.612 GB, free: 48.71 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.486e-06/5.675, allocations: 0.75 kB / 3.612 GB, free: 48.71 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.838e-05/5.675, allocations: 11.75 kB / 3.612 GB, free: 48.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.829e-06/5.675, allocations: 4.375 kB / 3.612 GB, free: 48.7 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/5.675, allocations: 3.938 kB / 3.612 GB, free: 48.7 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002039/5.677, allocations: 1.848 MB / 3.613 GB, free: 46.96 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.007e-05/5.677, allocations: 144.1 kB / 3.613 GB, free: 46.8 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.659e-05/5.677, allocations: 16 kB / 3.613 GB, free: 46.79 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003302/5.677, allocations: 23.78 kB / 3.614 GB, free: 46.77 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.865e-05/5.677, allocations: 31.09 kB / 3.614 GB, free: 46.75 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.745e-05/5.678, allocations: 16 kB / 3.614 GB, free: 46.74 MB / 458.7 MB Notification: Performance of sorting global known variables: time 4.788e-05/5.678, allocations: 91.22 kB / 3.614 GB, free: 46.65 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.8e-07/5.678, allocations: 0 / 3.614 GB, free: 46.65 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004024/5.682, allocations: 1.013 MB / 3.615 GB, free: 45.66 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.006653/5.688, allocations: 1.284 MB / 3.616 GB, free: 44.51 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001381/5.69, allocations: 0.9004 MB / 3.617 GB, free: 43.72 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/5.69, allocations: 0 / 3.617 GB, free: 43.72 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006224/5.69, allocations: 0.5942 MB / 3.617 GB, free: 43.18 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006239/5.691, allocations: 85.03 kB / 3.617 GB, free: 43.12 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001655/5.693, allocations: 1.617 MB / 3.619 GB, free: 41.64 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002454/5.693, allocations: 0.8499 MB / 3.62 GB, free: 40.81 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001485/5.694, allocations: 1.747 MB / 3.622 GB, free: 39.78 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002894/5.695, allocations: 86.22 kB / 3.622 GB, free: 39.72 MB / 458.7 MB Notification: Performance of SimCode: time 3.6e-07/5.695, allocations: 0 / 3.622 GB, free: 39.72 MB / 458.7 MB Notification: Performance of Templates: time 0.0393/5.734, allocations: 33.27 MB / 3.654 GB, free: 14.17 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (rm -f Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches