Running command: translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4400,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadModel(Modelica): time 1.702/1.702, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.42e-05/3.429e-05, allocations: 12 kB / 225 MB, free: 2.711 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2092/0.2093, allocations: 38.77 MB / 263.8 MB, free: 9.871 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.316/6.525, allocations: 2.735 GB / 2.992 GB, free: 8.633 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.02794/6.553, allocations: 10.69 MB / 3.003 GB, free: 376 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5595/7.112, allocations: 110.9 MB / 3.111 GB, free: 41.13 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.267e-06/7.112, allocations: 0 / 3.111 GB, free: 41.13 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.366e-05/7.113, allocations: 11.98 kB / 3.111 GB, free: 41.12 MB / 362.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.004324/7.117, allocations: 1.118 MB / 3.112 GB, free: 39.95 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/7.117, allocations: 8.031 kB / 3.112 GB, free: 39.95 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00188/7.119, allocations: 183.6 kB / 3.112 GB, free: 39.77 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003044/7.119, allocations: 258.8 kB / 3.113 GB, free: 39.47 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.739e-05/7.119, allocations: 16.44 kB / 3.113 GB, free: 39.46 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.831e-05/7.119, allocations: 31.89 kB / 3.113 GB, free: 39.43 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003535/7.123, allocations: 0.9082 MB / 3.114 GB, free: 38.5 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.917e-05/7.123, allocations: 0 / 3.114 GB, free: 38.5 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.262e-05/7.123, allocations: 12 kB / 3.114 GB, free: 38.48 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.22e-06/7.123, allocations: 4 kB / 3.114 GB, free: 38.48 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003591/7.127, allocations: 0.9572 MB / 3.115 GB, free: 37.52 MB / 362.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.001694/7.128, allocations: 1.351 MB / 3.116 GB, free: 36.03 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002853/7.131, allocations: 0.7251 MB / 3.117 GB, free: 35.3 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002683/7.131, allocations: 145.3 kB / 3.117 GB, free: 35.15 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2779/7.409, allocations: 36.71 MB / 3.153 GB, free: 63.96 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.699e-05/7.409, allocations: 37.62 kB / 3.153 GB, free: 63.92 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 4.064e-06/7.41, allocations: 0 / 3.153 GB, free: 63.92 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.005767/7.415, allocations: 1.226 MB / 3.154 GB, free: 63.89 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.77e-05/7.415, allocations: 54.59 kB / 3.154 GB, free: 63.82 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001035/7.415, allocations: 112.9 kB / 3.154 GB, free: 63.73 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.404e-05/7.416, allocations: 29.52 kB / 3.154 GB, free: 63.7 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.65e-05/7.416, allocations: 187.1 kB / 3.154 GB, free: 63.55 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001478/7.416, allocations: 121.3 kB / 3.154 GB, free: 63.49 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.429e-05/7.416, allocations: 3.75 kB / 3.154 GB, free: 63.49 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.752e-05/7.416, allocations: 323.3 kB / 3.155 GB, free: 63.18 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006426/7.417, allocations: 314.5 kB / 3.155 GB, free: 63.18 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007082/7.417, allocations: 389.4 kB / 3.155 GB, free: 63.11 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007083/7.418, allocations: 312.6 kB / 3.156 GB, free: 63.11 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.393e-06/7.418, allocations: 3.469 kB / 3.156 GB, free: 63.11 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002132/7.42, allocations: 0.8116 MB / 3.156 GB, free: 63.06 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/7.42, allocations: 3.812 kB / 3.156 GB, free: 63.06 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.602e-06/7.42, allocations: 3.875 kB / 3.156 GB, free: 63.06 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.053e-05/7.42, allocations: 3.75 kB / 3.156 GB, free: 63.06 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008988/7.421, allocations: 182.9 kB / 3.157 GB, free: 63.06 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.256e-05/7.421, allocations: 7.5 kB / 3.157 GB, free: 63.06 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005163/7.422, allocations: 47.72 kB / 3.157 GB, free: 63.05 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001394/7.422, allocations: 63.56 kB / 3.157 GB, free: 63.05 MB / 362.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.0002064/7.422, allocations: 120 kB / 3.157 GB, free: 62.94 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001327/7.422, allocations: 23.48 kB / 3.157 GB, free: 62.93 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006715/7.429, allocations: 6.286 MB / 3.163 GB, free: 62.79 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.881e-05/7.429, allocations: 21.56 kB / 3.163 GB, free: 62.79 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/7.429, allocations: 3.5 kB / 3.163 GB, free: 62.79 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.142e-05/7.429, allocations: 3.609 kB / 3.163 GB, free: 62.79 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002777/7.432, allocations: 2.815 MB / 3.166 GB, free: 61.97 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.636e-06/7.432, allocations: 0 / 3.166 GB, free: 61.97 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009949/7.433, allocations: 127.1 kB / 3.166 GB, free: 61.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.063e-05/7.433, allocations: 7.516 kB / 3.166 GB, free: 61.96 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.958e-05/7.433, allocations: 20.55 kB / 3.166 GB, free: 61.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.45e-06/7.433, allocations: 3.781 kB / 3.166 GB, free: 61.95 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.803e-06/7.433, allocations: 0 / 3.166 GB, free: 61.95 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002557/7.436, allocations: 1.502 MB / 3.167 GB, free: 61.18 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.656e-05/7.436, allocations: 129.7 kB / 3.167 GB, free: 61.07 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.268e-05/7.436, allocations: 7.062 kB / 3.167 GB, free: 61.06 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000517/7.436, allocations: 24.38 kB / 3.167 GB, free: 61.06 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001153/7.437, allocations: 35.19 kB / 3.167 GB, free: 61.05 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.994e-05/7.437, allocations: 30.98 kB / 3.168 GB, free: 61.05 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.717e-05/7.437, allocations: 86.75 kB / 3.168 GB, free: 60.97 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.65e-07/7.437, allocations: 0 / 3.168 GB, free: 60.97 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004002/7.441, allocations: 1 MB / 3.169 GB, free: 60.92 MB / 362.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: 9 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse6.region3boundary,$cse7.region3boundary,medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.006884/7.448, allocations: 1.25 MB / 3.17 GB, free: 60.81 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001615/7.449, allocations: 0.7796 MB / 3.171 GB, free: 60.5 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.021e-06/7.449, allocations: 3.688 kB / 3.171 GB, free: 60.5 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007939/7.45, allocations: 480.6 kB / 3.171 GB, free: 60.29 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007502/7.451, allocations: 82.31 kB / 3.171 GB, free: 60.27 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001835/7.453, allocations: 0.8949 MB / 3.172 GB, free: 59.89 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002459/7.453, allocations: 0.8179 MB / 3.173 GB, free: 59.19 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005182/7.454, allocations: 112.3 kB / 3.173 GB, free: 59.16 MB / 362.7 MB Notification: Performance of SimCode: time 1.814e-06/7.454, allocations: 0 / 3.173 GB, free: 59.16 MB / 362.7 MB Notification: Performance of Templates: time 0.04147/7.495, allocations: 25.55 MB / 3.198 GB, free: 57.31 MB / 362.7 MB