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.9055/0.9055, allocations: 110.8 MB / 123.3 MB, free: 10.79 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001898/0.001899, allocations: 147.5 kB / 149.1 MB, free: 1 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 2.97e-05/2.973e-05, allocations: 0 / 180.2 MB, free: 17.57 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06136/0.0614, allocations: 25.18 MB / 205.4 MB, free: 8.449 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.977/4.038, allocations: 1.565 GB / 1.765 GB, free: 50.25 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.02304/4.062, allocations: 12.47 MB / 1.777 GB, free: 48.45 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4696/4.531, allocations: 112.7 MB / 1.887 GB, free: 22.71 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.212e-06/4.531, allocations: 0 / 1.887 GB, free: 22.71 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.003e-05/4.531, allocations: 3.781 kB / 1.887 GB, free: 22.71 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.005175/4.536, allocations: 1.15 MB / 1.888 GB, free: 22.02 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.941e-05/4.537, allocations: 9.469 kB / 1.888 GB, free: 22.02 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.913e-05/4.537, allocations: 23.09 kB / 1.888 GB, free: 22 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002611/4.537, allocations: 233.8 kB / 1.889 GB, free: 21.8 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.604e-05/4.537, allocations: 18.62 kB / 1.889 GB, free: 21.8 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.477e-05/4.537, allocations: 23.23 kB / 1.889 GB, free: 21.79 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006947/4.538, allocations: 446.1 kB / 1.889 GB, free: 21.73 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/4.538, allocations: 0 / 1.889 GB, free: 21.73 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.585e-05/4.538, allocations: 6.562 kB / 1.889 GB, free: 21.73 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.677e-06/4.538, allocations: 11.38 kB / 1.889 GB, free: 21.72 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007378/4.539, allocations: 0.6208 MB / 1.89 GB, free: 21.72 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.001536/4.54, allocations: 1.541 MB / 1.891 GB, free: 20.64 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003779/4.54, allocations: 215.4 kB / 1.892 GB, free: 20.61 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001925/4.541, allocations: 161.9 kB / 1.892 GB, free: 20.6 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2726/4.813, allocations: 69.07 MB / 1.959 GB, free: 52.82 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.873e-05/4.813, allocations: 39.59 kB / 1.959 GB, free: 52.78 MB / 266.7 MB Notification: Performance of pre-optimization done (n=33): time 2.345e-06/4.813, allocations: 2.031 kB / 1.959 GB, free: 52.78 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.001027/4.814, allocations: 406.1 kB / 1.96 GB, free: 52.74 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.666e-05/4.814, allocations: 56.12 kB / 1.96 GB, free: 52.68 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.129e-05/4.815, allocations: 110.8 kB / 1.96 GB, free: 52.59 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.493e-05/4.815, allocations: 33.61 kB / 1.96 GB, free: 52.56 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.138e-05/4.815, allocations: 111.5 kB / 1.96 GB, free: 52.47 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.886e-05/4.815, allocations: 118.4 kB / 1.96 GB, free: 52.41 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.529e-05/4.815, allocations: 7.406 kB / 1.96 GB, free: 52.41 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.133e-05/4.815, allocations: 328.5 kB / 1.96 GB, free: 52.1 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001727/4.815, allocations: 121.6 kB / 1.96 GB, free: 52.09 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002004/4.815, allocations: 195.3 kB / 1.961 GB, free: 52.02 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000209/4.815, allocations: 141.9 kB / 1.961 GB, free: 52.02 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/4.815, allocations: 1 kB / 1.961 GB, free: 52.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0005635/4.816, allocations: 391 kB / 1.961 GB, free: 51.97 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.037e-05/4.816, allocations: 7.641 kB / 1.961 GB, free: 51.97 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/4.816, allocations: 5.688 kB / 1.961 GB, free: 51.97 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/4.816, allocations: 4.031 kB / 1.961 GB, free: 51.97 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003057/4.816, allocations: 80.78 kB / 1.961 GB, free: 51.97 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.357e-05/4.816, allocations: 9.406 kB / 1.961 GB, free: 51.97 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002346/4.817, allocations: 43.05 kB / 1.961 GB, free: 51.96 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.589e-05/4.817, allocations: 18.28 kB / 1.961 GB, free: 51.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.0001724/4.817, allocations: 155 kB / 1.961 GB, free: 51.86 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.706e-05/4.817, allocations: 16.03 kB / 1.961 GB, free: 51.85 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000992/4.818, allocations: 0.7933 MB / 1.962 GB, free: 51.78 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.305e-05/4.818, allocations: 12.42 kB / 1.962 GB, free: 51.78 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/4.818, allocations: 0 / 1.962 GB, free: 51.78 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/4.818, allocations: 0 / 1.962 GB, free: 51.78 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000531/4.818, allocations: 0.499 MB / 1.963 GB, free: 51.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/4.818, allocations: 0.5156 kB / 1.963 GB, free: 51.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000299/4.819, allocations: 76.91 kB / 1.963 GB, free: 51.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.542e-06/4.819, allocations: 4.078 kB / 1.963 GB, free: 51.57 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.253e-05/4.819, allocations: 13.38 kB / 1.963 GB, free: 51.57 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/4.819, allocations: 1.344 kB / 1.963 GB, free: 51.57 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/4.819, allocations: 0.6094 kB / 1.963 GB, free: 51.57 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001126/4.82, allocations: 0.8263 MB / 1.964 GB, free: 51.41 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.31e-05/4.82, allocations: 109 kB / 1.964 GB, free: 51.3 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.53e-05/4.82, allocations: 5.75 kB / 1.964 GB, free: 51.3 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001731/4.82, allocations: 21.38 kB / 1.964 GB, free: 51.3 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.238e-05/4.82, allocations: 31.5 kB / 1.964 GB, free: 51.3 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.14e-05/4.82, allocations: 16.7 kB / 1.964 GB, free: 51.3 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.241e-05/4.82, allocations: 98.69 kB / 1.964 GB, free: 51.23 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.5e-07/4.82, allocations: 0 / 1.964 GB, free: 51.23 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.004704/4.825, allocations: 1.117 MB / 1.965 GB, free: 51.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 () * 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.006134/4.831, allocations: 1.455 MB / 1.966 GB, free: 50.98 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006892/4.832, allocations: 398.2 kB / 1.967 GB, free: 50.98 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/4.832, allocations: 0 / 1.967 GB, free: 50.98 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002992/4.832, allocations: 263 kB / 1.967 GB, free: 50.97 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005588/4.833, allocations: 86.39 kB / 1.967 GB, free: 50.96 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008851/4.834, allocations: 0.5206 MB / 1.968 GB, free: 50.86 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002006/4.834, allocations: 0.7713 MB / 1.968 GB, free: 50.15 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002804/4.834, allocations: 107.1 kB / 1.968 GB, free: 50.13 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.632e-05/4.834, allocations: 43.58 kB / 1.968 GB, free: 50.12 MB / 266.7 MB Notification: Performance of SimCode: time 2.5e-07/4.834, allocations: 4.344 kB / 1.968 GB, free: 50.12 MB / 266.7 MB Notification: Performance of Templates: time 0.03167/4.866, allocations: 28.41 MB / 1.996 GB, free: 49.36 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)