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 0.7947/0.7947, allocations: 110.9 MB / 125.9 MB, free: 6.215 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.002003/0.002003, allocations: 142.5 kB / 151.9 MB, free: 4.996 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002695/0.0002695, allocations: 4 kB / 184.9 MB, free: 3.938 MB / 154.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1488/0.149, allocations: 25.16 MB / 210 MB, free: 29.75 MB / 170.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.973/3.122, allocations: 1.565 GB / 1.77 GB, free: 49.92 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.02105/3.143, allocations: 12.56 MB / 1.782 GB, free: 39.12 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3588/3.502, allocations: 112.8 MB / 1.892 GB, free: 14.54 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.824e-06/3.502, allocations: 4.844 kB / 1.892 GB, free: 14.53 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.355e-05/3.502, allocations: 4 kB / 1.892 GB, free: 14.53 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.004361/3.506, allocations: 1.156 MB / 1.893 GB, free: 13.39 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/3.506, allocations: 8.031 kB / 1.893 GB, free: 13.39 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.882e-05/3.506, allocations: 25.95 kB / 1.893 GB, free: 13.36 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002177/3.507, allocations: 225 kB / 1.894 GB, free: 13.13 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.185e-05/3.507, allocations: 20.44 kB / 1.894 GB, free: 13.11 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.353e-05/3.507, allocations: 27.95 kB / 1.894 GB, free: 13.08 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007122/3.507, allocations: 449.5 kB / 1.894 GB, free: 12.7 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/3.507, allocations: 0.6562 kB / 1.894 GB, free: 12.7 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.509e-05/3.507, allocations: 8 kB / 1.894 GB, free: 12.69 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.151e-06/3.507, allocations: 8 kB / 1.894 GB, free: 12.68 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008135/3.508, allocations: 0.6428 MB / 1.895 GB, free: 12.15 MB / 234.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.001329/3.51, allocations: 1.551 MB / 1.896 GB, free: 10.57 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004072/3.51, allocations: 227.6 kB / 1.896 GB, free: 10.38 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2255/3.735, allocations: 68.81 MB / 1.964 GB, free: 14.88 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.218e-05/3.736, allocations: 35.44 kB / 1.964 GB, free: 14.84 MB / 266.7 MB Notification: Performance of pre-optimization done (n=33): time 1.993e-06/3.736, allocations: 4 kB / 1.964 GB, free: 14.83 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.001273/3.737, allocations: 0.5548 MB / 1.964 GB, free: 14.8 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.398e-05/3.737, allocations: 54.56 kB / 1.964 GB, free: 14.73 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.805e-05/3.737, allocations: 118.9 kB / 1.964 GB, free: 14.64 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.873e-05/3.737, allocations: 32.08 kB / 1.964 GB, free: 14.61 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.501e-05/3.737, allocations: 113 kB / 1.965 GB, free: 14.52 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.325e-05/3.737, allocations: 117.9 kB / 1.965 GB, free: 14.46 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.542e-05/3.737, allocations: 6.125 kB / 1.965 GB, free: 14.46 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001053/3.737, allocations: 327.8 kB / 1.965 GB, free: 14.15 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002364/3.738, allocations: 139.2 kB / 1.965 GB, free: 14.14 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002567/3.738, allocations: 208.9 kB / 1.965 GB, free: 14.07 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002511/3.738, allocations: 167 kB / 1.965 GB, free: 14.05 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/3.738, allocations: 0 / 1.965 GB, free: 14.05 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0006811/3.739, allocations: 426.5 kB / 1.966 GB, free: 14 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/3.739, allocations: 7.719 kB / 1.966 GB, free: 14 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/3.739, allocations: 0.7031 kB / 1.966 GB, free: 14 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.987e-05/3.739, allocations: 3.812 kB / 1.966 GB, free: 14 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002706/3.739, allocations: 92.88 kB / 1.966 GB, free: 14 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.092e-05/3.739, allocations: 8.234 kB / 1.966 GB, free: 14 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001866/3.739, allocations: 44 kB / 1.966 GB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.039e-05/3.739, allocations: 19.22 kB / 1.966 GB, free: 13.99 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" fixed = true 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" fixed = true 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 () * 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.0002372/3.74, allocations: 172.3 kB / 1.966 GB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.364e-05/3.74, allocations: 18.38 kB / 1.966 GB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001115/3.741, allocations: 0.8298 MB / 1.967 GB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.178e-05/3.741, allocations: 12.14 kB / 1.967 GB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.812e-06/3.741, allocations: 2.859 kB / 1.967 GB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/3.741, allocations: 0 / 1.967 GB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005299/3.741, allocations: 0.4947 MB / 1.968 GB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/3.741, allocations: 0 / 1.968 GB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002552/3.742, allocations: 81.23 kB / 1.968 GB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/3.742, allocations: 0 / 1.968 GB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.828e-05/3.742, allocations: 21.2 kB / 1.968 GB, free: 13.56 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/3.742, allocations: 0 / 1.968 GB, free: 13.56 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.033e-06/3.742, allocations: 0.875 kB / 1.968 GB, free: 13.56 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001043/3.743, allocations: 0.8776 MB / 1.968 GB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.034e-05/3.743, allocations: 104.7 kB / 1.969 GB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.503e-05/3.743, allocations: 10.66 kB / 1.969 GB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001636/3.743, allocations: 18.2 kB / 1.969 GB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.658e-05/3.743, allocations: 35.45 kB / 1.969 GB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.624e-05/3.743, allocations: 17.22 kB / 1.969 GB, free: 13.28 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.209e-05/3.743, allocations: 93.41 kB / 1.969 GB, free: 13.2 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.72e-07/3.743, allocations: 0 / 1.969 GB, free: 13.2 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.004009/3.747, allocations: 1.11 MB / 1.97 GB, free: 13.2 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 () * Number of clocked 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.004547/3.752, allocations: 1.455 MB / 1.971 GB, free: 12.94 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006694/3.752, allocations: 440.9 kB / 1.972 GB, free: 12.94 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/3.752, allocations: 0 / 1.972 GB, free: 12.94 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003013/3.753, allocations: 281.1 kB / 1.972 GB, free: 12.93 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004498/3.753, allocations: 81.61 kB / 1.972 GB, free: 12.92 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009816/3.754, allocations: 0.8454 MB / 1.973 GB, free: 12.48 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002821/3.754, allocations: 0.7718 MB / 1.974 GB, free: 11.78 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002787/3.755, allocations: 112.6 kB / 1.974 GB, free: 11.75 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.258e-05/3.755, allocations: 43.16 kB / 1.974 GB, free: 11.74 MB / 266.7 MB Notification: Performance of SimCode: time 3.71e-07/3.755, allocations: 0 / 1.974 GB, free: 11.74 MB / 266.7 MB Notification: Performance of Templates: time 0.02985/3.785, allocations: 27.26 MB / 2 GB, free: 5.863 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)