Running command: translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadModel(Modelica): time 1.035/1.035, allocations: 111.2 MB / 123.8 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.471e-05/2.491e-05, allocations: 3.984 kB / 151.4 MB, free: 15.59 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1452/0.1452, allocations: 25.16 MB / 176.5 MB, free: 0 / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.635/3.781, allocations: 1.565 GB / 1.737 GB, free: 37.12 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.03246/3.813, allocations: 12.47 MB / 1.749 GB, free: 27.47 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4945/4.308, allocations: 112.7 MB / 1.859 GB, free: 8.402 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.164e-06/4.308, allocations: 0 / 1.859 GB, free: 8.402 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.533e-05/4.308, allocations: 8 kB / 1.859 GB, free: 8.395 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.004283/4.312, allocations: 1.143 MB / 1.86 GB, free: 7.277 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/4.312, allocations: 11.97 kB / 1.86 GB, free: 7.266 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.321e-05/4.312, allocations: 23.72 kB / 1.86 GB, free: 7.242 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002473/4.313, allocations: 222 kB / 1.861 GB, free: 7.004 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.978e-05/4.313, allocations: 20.44 kB / 1.861 GB, free: 6.984 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.637e-05/4.313, allocations: 27.95 kB / 1.861 GB, free: 6.957 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008405/4.314, allocations: 442.9 kB / 1.861 GB, free: 6.57 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.611e-05/4.314, allocations: 0 / 1.861 GB, free: 6.57 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.286e-05/4.314, allocations: 8 kB / 1.861 GB, free: 6.562 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.314e-05/4.314, allocations: 11.94 kB / 1.861 GB, free: 6.555 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001003/4.315, allocations: 0.6136 MB / 1.862 GB, free: 6.031 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.001793/4.317, allocations: 1.548 MB / 1.863 GB, free: 4.457 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000505/4.317, allocations: 215.7 kB / 1.863 GB, free: 4.238 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002484/4.317, allocations: 157.4 kB / 1.863 GB, free: 4.082 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2946/4.612, allocations: 69.07 MB / 1.931 GB, free: 11.08 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.491e-05/4.612, allocations: 39.19 kB / 1.931 GB, free: 11.04 MB / 266.7 MB Notification: Performance of pre-optimization done (n=33): time 3.746e-06/4.612, allocations: 0 / 1.931 GB, free: 11.04 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.001219/4.613, allocations: 406.7 kB / 1.931 GB, free: 11 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.584e-05/4.613, allocations: 55.47 kB / 1.931 GB, free: 10.94 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001174/4.613, allocations: 108.5 kB / 1.932 GB, free: 10.85 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.368e-05/4.613, allocations: 34.52 kB / 1.932 GB, free: 10.82 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001029/4.614, allocations: 181.3 kB / 1.932 GB, free: 10.66 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.115e-05/4.614, allocations: 117.1 kB / 1.932 GB, free: 10.6 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.225e-05/4.614, allocations: 5.188 kB / 1.932 GB, free: 10.6 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001622/4.614, allocations: 326.2 kB / 1.932 GB, free: 10.29 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002366/4.614, allocations: 122.5 kB / 1.932 GB, free: 10.29 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002736/4.614, allocations: 188.9 kB / 1.932 GB, free: 10.21 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002803/4.615, allocations: 143.8 kB / 1.933 GB, free: 10.2 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.339e-06/4.615, allocations: 0 / 1.933 GB, free: 10.2 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008021/4.616, allocations: 389.9 kB / 1.933 GB, free: 10.15 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/4.616, allocations: 6.281 kB / 1.933 GB, free: 10.15 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.146e-06/4.616, allocations: 5.281 kB / 1.933 GB, free: 10.15 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.709e-05/4.616, allocations: 3.25 kB / 1.933 GB, free: 10.15 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003935/4.616, allocations: 84.47 kB / 1.933 GB, free: 10.15 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.236e-05/4.616, allocations: 6.188 kB / 1.933 GB, free: 10.15 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002602/4.616, allocations: 42.61 kB / 1.933 GB, free: 10.14 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.869e-05/4.616, allocations: 19.33 kB / 1.933 GB, free: 10.14 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.0002482/4.617, allocations: 164.3 kB / 1.933 GB, free: 10.03 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.945e-05/4.617, allocations: 15 kB / 1.933 GB, free: 10.02 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001334/4.618, allocations: 0.7829 MB / 1.934 GB, free: 9.941 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.346e-05/4.618, allocations: 10.16 kB / 1.934 GB, free: 9.941 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.364e-06/4.618, allocations: 0 / 1.934 GB, free: 9.941 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.478e-06/4.618, allocations: 0 / 1.934 GB, free: 9.941 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006886/4.619, allocations: 0.4939 MB / 1.935 GB, free: 9.738 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.588e-06/4.619, allocations: 3.812 kB / 1.935 GB, free: 9.738 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003817/4.619, allocations: 78.97 kB / 1.935 GB, free: 9.738 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.74e-06/4.619, allocations: 4.984 kB / 1.935 GB, free: 9.734 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.59e-05/4.619, allocations: 14.52 kB / 1.935 GB, free: 9.734 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.073e-06/4.619, allocations: 3.156 kB / 1.935 GB, free: 9.734 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.703e-06/4.619, allocations: 0 / 1.935 GB, free: 9.734 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00132/4.621, allocations: 0.8256 MB / 1.935 GB, free: 9.566 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.361e-05/4.621, allocations: 104.7 kB / 1.936 GB, free: 9.461 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.6e-05/4.621, allocations: 7.031 kB / 1.936 GB, free: 9.461 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002562/4.621, allocations: 29.12 kB / 1.936 GB, free: 9.453 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.572e-05/4.621, allocations: 30.7 kB / 1.936 GB, free: 9.453 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.418e-05/4.621, allocations: 14.28 kB / 1.936 GB, free: 9.453 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.822e-05/4.621, allocations: 98.86 kB / 1.936 GB, free: 9.375 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.96e-07/4.621, allocations: 0 / 1.936 GB, free: 9.375 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.003953/4.625, allocations: 1.106 MB / 1.937 GB, free: 9.375 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.007856/4.633, allocations: 1.467 MB / 1.938 GB, free: 9.109 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007784/4.634, allocations: 397.8 kB / 1.939 GB, free: 9.109 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.662e-06/4.634, allocations: 0 / 1.939 GB, free: 9.109 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003686/4.634, allocations: 259.6 kB / 1.939 GB, free: 9.105 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006256/4.635, allocations: 76.22 kB / 1.939 GB, free: 9.098 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001115/4.636, allocations: 0.5528 MB / 1.939 GB, free: 8.871 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004375/4.637, allocations: 0.7673 MB / 1.94 GB, free: 8.168 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001613/4.637, allocations: 49.52 kB / 1.94 GB, free: 8.16 MB / 266.7 MB Notification: Performance of SimCode: time 1.66e-06/4.637, allocations: 0.5625 kB / 1.94 GB, free: 8.16 MB / 266.7 MB Notification: Performance of Templates: time 0.03644/4.673, allocations: 22.99 MB / 1.963 GB, free: 0.6914 MB / 266.7 MB