Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 1.073/1.073, allocations: 110.8 MB / 118.3 MB, free: 14.48 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.002031/0.00203, allocations: 151.4 kB / 144 MB, free: 4.797 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 1.625e-05/1.628e-05, allocations: 4 kB / 173.8 MB, free: 22.8 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05882/0.05885, allocations: 25.18 MB / 199 MB, free: 13.7 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.942/4.001, allocations: 1.564 GB / 1.758 GB, free: 29.72 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.02209/4.023, allocations: 12.34 MB / 1.77 GB, free: 22.55 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4114/4.435, allocations: 110.5 MB / 1.878 GB, free: 9.305 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.423e-06/4.435, allocations: 0 / 1.878 GB, free: 9.305 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.093e-05/4.435, allocations: 4 kB / 1.878 GB, free: 9.301 MB / 234.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.004502/4.439, allocations: 1.142 MB / 1.879 GB, free: 8.113 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/4.439, allocations: 12.03 kB / 1.879 GB, free: 8.102 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.236e-05/4.439, allocations: 19.81 kB / 1.879 GB, free: 8.082 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001919/4.44, allocations: 234.7 kB / 1.88 GB, free: 7.812 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.535e-05/4.44, allocations: 12 kB / 1.88 GB, free: 7.801 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.987e-05/4.44, allocations: 19.89 kB / 1.88 GB, free: 7.781 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004978/4.44, allocations: 0.5514 MB / 1.88 GB, free: 7.23 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003661/4.441, allocations: 372.7 kB / 1.881 GB, free: 6.852 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/4.441, allocations: 0 / 1.881 GB, free: 6.852 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.238e-05/4.441, allocations: 4 kB / 1.881 GB, free: 6.848 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/4.441, allocations: 4 kB / 1.881 GB, free: 6.844 MB / 234.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.001286/4.442, allocations: 1.484 MB / 1.882 GB, free: 5.219 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001913/4.442, allocations: 194.9 kB / 1.882 GB, free: 5.02 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001343/4.442, allocations: 153.4 kB / 1.882 GB, free: 4.867 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2554/4.698, allocations: 69.07 MB / 1.95 GB, free: 15.84 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.797e-05/4.698, allocations: 39.75 kB / 1.95 GB, free: 15.8 MB / 266.7 MB Notification: Performance of pre-optimization done (n=33): time 3.106e-06/4.698, allocations: 0 / 1.95 GB, free: 15.8 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.002213/4.7, allocations: 0.4973 MB / 1.95 GB, free: 15.76 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.591e-05/4.7, allocations: 55.25 kB / 1.95 GB, free: 15.7 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001133/4.7, allocations: 113.8 kB / 1.95 GB, free: 15.61 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.376e-05/4.7, allocations: 25.7 kB / 1.95 GB, free: 15.57 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.975e-05/4.7, allocations: 117.8 kB / 1.951 GB, free: 15.47 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.925e-05/4.7, allocations: 108.2 kB / 1.951 GB, free: 15.42 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.596e-05/4.7, allocations: 0 / 1.951 GB, free: 15.42 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001466/4.701, allocations: 325.7 kB / 1.951 GB, free: 15.11 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001668/4.701, allocations: 112.8 kB / 1.951 GB, free: 15.1 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002008/4.701, allocations: 182.8 kB / 1.951 GB, free: 15.03 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001449/4.702, allocations: 282 kB / 1.952 GB, free: 15.03 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.192e-06/4.702, allocations: 0 / 1.952 GB, free: 15.03 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001658/4.704, allocations: 0.5099 MB / 1.952 GB, free: 14.98 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/4.704, allocations: 7.5 kB / 1.952 GB, free: 14.98 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/4.704, allocations: 0 / 1.952 GB, free: 14.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.98e-05/4.704, allocations: 3.469 kB / 1.952 GB, free: 14.98 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002931/4.704, allocations: 88.84 kB / 1.952 GB, free: 14.98 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.11e-05/4.704, allocations: 3.25 kB / 1.952 GB, free: 14.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002066/4.705, allocations: 36.64 kB / 1.952 GB, free: 14.96 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.235e-05/4.705, allocations: 21.67 kB / 1.952 GB, free: 14.96 MB / 266.7 MB Warning: Assuming fixed start value for the following 2 variables: medium.h:VARIABLE(min = -100000000.0 max = 100000000.0 start = 800000.0 unit = "J/kg" nominal = 1000000.0 ) "Specific enthalpy of medium" type: Real medium.p:VARIABLE(min = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 2000.0))))) max = min(100000000.0, min(100000000.0, min(100000000.0, min(100000000.0, min(100000000.0, 1000000000.0))))) start = 700.0 unit = "Pa" nominal = 100000.0 ) "Absolute pressure of medium" type: Real 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.0002439/4.705, allocations: 139.7 kB / 1.952 GB, free: 14.85 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.527e-05/4.705, allocations: 15.62 kB / 1.952 GB, free: 14.84 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002209/4.707, allocations: 0.9216 MB / 1.953 GB, free: 14.77 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.631e-05/4.707, allocations: 9.156 kB / 1.953 GB, free: 14.77 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.982e-06/4.707, allocations: 1.422 kB / 1.953 GB, free: 14.77 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/4.707, allocations: 3.516 kB / 1.953 GB, free: 14.77 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005302/4.708, allocations: 452.6 kB / 1.954 GB, free: 14.59 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/4.708, allocations: 0 / 1.954 GB, free: 14.59 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002621/4.708, allocations: 83.02 kB / 1.954 GB, free: 14.59 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/4.708, allocations: 7.938 kB / 1.954 GB, free: 14.59 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.445e-05/4.708, allocations: 3.969 kB / 1.954 GB, free: 14.59 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.965e-06/4.708, allocations: 0 / 1.954 GB, free: 14.59 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/4.708, allocations: 0 / 1.954 GB, free: 14.59 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002052/4.71, allocations: 0.9545 MB / 1.955 GB, free: 14.42 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.47e-05/4.71, allocations: 107.1 kB / 1.955 GB, free: 14.32 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.339e-05/4.71, allocations: 0 / 1.955 GB, free: 14.32 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001683/4.711, allocations: 20.39 kB / 1.955 GB, free: 14.31 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.542e-05/4.711, allocations: 30.61 kB / 1.955 GB, free: 14.31 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.878e-05/4.711, allocations: 18.45 kB / 1.955 GB, free: 14.31 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.132e-05/4.711, allocations: 89.27 kB / 1.955 GB, free: 14.23 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.7e-07/4.711, allocations: 0 / 1.955 GB, free: 14.23 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.005301/4.716, allocations: 1.099 MB / 1.956 GB, free: 14.23 MB / 266.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: 3 ($cse5.region3boundary,$cse6.region3boundary,medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.008335/4.724, allocations: 1.468 MB / 1.957 GB, free: 13.98 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006448/4.725, allocations: 392.6 kB / 1.958 GB, free: 13.98 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/4.725, allocations: 3.938 kB / 1.958 GB, free: 13.97 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002845/4.725, allocations: 255.7 kB / 1.958 GB, free: 13.96 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005933/4.726, allocations: 75.33 kB / 1.958 GB, free: 13.96 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009541/4.727, allocations: 0.5062 MB / 1.959 GB, free: 13.75 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003395/4.727, allocations: 0.7657 MB / 1.959 GB, free: 13.05 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003009/4.728, allocations: 118.3 kB / 1.96 GB, free: 13.03 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.848e-05/4.728, allocations: 42.75 kB / 1.96 GB, free: 13.02 MB / 266.7 MB Notification: Performance of SimCode: time 4.41e-07/4.728, allocations: 0 / 1.96 GB, free: 13.02 MB / 266.7 MB Notification: Performance of Templates: time 0.03576/4.764, allocations: 26.23 MB / 1.985 GB, free: 2.684 MB / 266.7 MB make -j1 -f Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (rm -f Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1)