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.001285/0.001285, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009942/0.0009946, allocations: 92.3 kB / 292.1 MB, free: 5.996 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.581e-05/3.62e-05, allocations: 4 kB / 350.5 MB, free: 2.551 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1137, allocations: 51.49 MB / 402 MB, free: 15.01 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.724/8.838, allocations: 3.027 GB / 3.419 GB, free: 91.68 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.02556/8.863, allocations: 11.27 MB / 3.43 GB, free: 90.57 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2866/9.15, allocations: 113.7 MB / 3.541 GB, free: 12.88 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.493e-06/9.15, allocations: 0 / 3.541 GB, free: 12.88 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.435e-05/9.15, allocations: 4 kB / 3.541 GB, free: 12.88 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.00562/9.156, allocations: 1.148 MB / 3.543 GB, free: 11.69 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.058e-05/9.156, allocations: 12.03 kB / 3.543 GB, free: 11.68 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001337/9.157, allocations: 180.5 kB / 3.543 GB, free: 11.5 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002542/9.157, allocations: 258.4 kB / 3.543 GB, free: 11.21 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.559e-05/9.157, allocations: 16.44 kB / 3.543 GB, free: 11.19 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.385e-05/9.158, allocations: 20 kB / 3.543 GB, free: 11.17 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002589/9.16, allocations: 0.9169 MB / 3.544 GB, free: 10.23 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/9.16, allocations: 0 / 3.544 GB, free: 10.23 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.062e-05/9.16, allocations: 9.312 kB / 3.544 GB, free: 10.23 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.236e-06/9.16, allocations: 4 kB / 3.544 GB, free: 10.22 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002547/9.163, allocations: 0.9541 MB / 3.545 GB, free: 9.27 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.001346/9.164, allocations: 1.343 MB / 3.546 GB, free: 7.789 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002166/9.166, allocations: 0.7259 MB / 3.547 GB, free: 7.055 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001754/9.166, allocations: 141.4 kB / 3.547 GB, free: 6.914 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4279/9.594, allocations: 41.98 MB / 3.588 GB, free: 41.67 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.37e-05/9.594, allocations: 41.5 kB / 3.588 GB, free: 41.63 MB / 458.7 MB Notification: Performance of pre-optimization done (n=33): time 2.334e-06/9.594, allocations: 0 / 3.588 GB, free: 41.63 MB / 458.7 MB Notification: Performance of matching and sorting (n=33): time 0.004471/9.599, allocations: 1.238 MB / 3.589 GB, free: 41.59 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.781e-05/9.599, allocations: 54.62 kB / 3.589 GB, free: 41.53 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001296/9.599, allocations: 114.1 kB / 3.589 GB, free: 41.44 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 6.395e-05/9.599, allocations: 29.39 kB / 3.589 GB, free: 41.41 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.021e-05/9.599, allocations: 120.9 kB / 3.59 GB, free: 41.32 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001332/9.599, allocations: 115.2 kB / 3.59 GB, free: 41.26 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.348e-05/9.599, allocations: 7.438 kB / 3.59 GB, free: 41.26 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 9.173e-05/9.6, allocations: 332 kB / 3.59 GB, free: 40.95 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004543/9.6, allocations: 314.3 kB / 3.59 GB, free: 40.95 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004918/9.601, allocations: 383.8 kB / 3.591 GB, free: 40.87 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004945/9.601, allocations: 312 kB / 3.591 GB, free: 40.87 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/9.601, allocations: 0 / 3.591 GB, free: 40.87 MB / 458.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001543/9.603, allocations: 0.8208 MB / 3.592 GB, free: 40.82 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.524e-05/9.603, allocations: 4.938 kB / 3.592 GB, free: 40.82 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/9.603, allocations: 3.281 kB / 3.592 GB, free: 40.82 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.042e-05/9.603, allocations: 3.375 kB / 3.592 GB, free: 40.82 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007391/9.603, allocations: 182.8 kB / 3.592 GB, free: 40.82 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.922e-05/9.603, allocations: 13.36 kB / 3.592 GB, free: 40.82 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004588/9.604, allocations: 37.06 kB / 3.592 GB, free: 40.82 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001118/9.604, allocations: 68.31 kB / 3.592 GB, free: 40.82 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.0001756/9.604, allocations: 128.9 kB / 3.592 GB, free: 40.71 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9e-05/9.604, allocations: 16.14 kB / 3.592 GB, free: 40.7 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00608/9.61, allocations: 6.5 MB / 3.599 GB, free: 40.53 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-05/9.61, allocations: 24.22 kB / 3.599 GB, free: 40.53 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/9.611, allocations: 2.469 kB / 3.599 GB, free: 40.53 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.647e-06/9.611, allocations: 7.375 kB / 3.599 GB, free: 40.52 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002852/9.613, allocations: 2.895 MB / 3.601 GB, free: 39.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.804e-06/9.613, allocations: 3.281 kB / 3.601 GB, free: 39.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007611/9.614, allocations: 129.2 kB / 3.602 GB, free: 39.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.303e-05/9.614, allocations: 3.047 kB / 3.602 GB, free: 39.7 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.29e-05/9.614, allocations: 20.95 kB / 3.602 GB, free: 39.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.34e-06/9.614, allocations: 2.094 kB / 3.602 GB, free: 39.7 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/9.614, allocations: 5.016 kB / 3.602 GB, free: 39.7 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002732/9.617, allocations: 1.747 MB / 3.603 GB, free: 39.46 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001444/9.617, allocations: 137.6 kB / 3.603 GB, free: 39.35 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.274e-05/9.617, allocations: 9.578 kB / 3.603 GB, free: 39.35 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003829/9.618, allocations: 25.03 kB / 3.603 GB, free: 39.35 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001416/9.618, allocations: 37.38 kB / 3.603 GB, free: 39.35 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.864e-05/9.618, allocations: 30.69 kB / 3.603 GB, free: 39.34 MB / 458.7 MB Notification: Performance of sorting global known variables: time 6.981e-05/9.618, allocations: 96.28 kB / 3.604 GB, free: 39.27 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.21e-07/9.618, allocations: 0 / 3.604 GB, free: 39.27 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005941/9.624, allocations: 1.02 MB / 3.605 GB, free: 39.27 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.009401/9.633, allocations: 1.275 MB / 3.606 GB, free: 39.18 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001918/9.635, allocations: 0.8538 MB / 3.607 GB, free: 39.16 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/9.635, allocations: 0 / 3.607 GB, free: 39.16 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006629/9.636, allocations: 0.5625 MB / 3.607 GB, free: 39.16 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006823/9.637, allocations: 76.22 kB / 3.607 GB, free: 39.16 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0021/9.639, allocations: 1.008 MB / 3.608 GB, free: 39 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003776/9.639, allocations: 0.8462 MB / 3.609 GB, free: 38.3 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003708/9.643, allocations: 2.744 MB / 3.612 GB, free: 38.26 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003524/9.643, allocations: 102.5 kB / 3.612 GB, free: 38.25 MB / 458.7 MB Notification: Performance of SimCode: time 1.011e-06/9.643, allocations: 0 / 3.612 GB, free: 38.25 MB / 458.7 MB Notification: Performance of Templates: time 0.04432/9.688, allocations: 31.74 MB / 3.643 GB, free: 36.69 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/jenkins/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