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.2_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadModel(Modelica): time 1.784/1.784, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.556e-05/3.576e-05, allocations: 7.984 kB / 255.4 MB, free: 3.199 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1259, allocations: 44.49 MB / 299.8 MB, free: 6.641 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.614/6.74, allocations: 2.844 GB / 3.137 GB, free: 61.8 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.02781/6.768, allocations: 10.88 MB / 3.148 GB, free: 53.42 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6158/7.383, allocations: 112.8 MB / 3.258 GB, free: 84 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.578e-06/7.384, allocations: 0 / 3.258 GB, free: 84 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.9e-05/7.384, allocations: 3.875 kB / 3.258 GB, free: 84 MB / 410.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.004366/7.388, allocations: 1.131 MB / 3.259 GB, free: 83.28 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/7.388, allocations: 7.719 kB / 3.259 GB, free: 83.28 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00219/7.39, allocations: 195.2 kB / 3.259 GB, free: 83.25 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003203/7.391, allocations: 254.5 kB / 3.26 GB, free: 83.05 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.814e-05/7.391, allocations: 15.34 kB / 3.26 GB, free: 83.05 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.919e-05/7.391, allocations: 21.75 kB / 3.26 GB, free: 83.05 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003796/7.394, allocations: 0.9055 MB / 3.261 GB, free: 82.98 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.138e-05/7.395, allocations: 6.219 kB / 3.261 GB, free: 82.98 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.155e-05/7.395, allocations: 3.75 kB / 3.261 GB, free: 82.98 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.885e-06/7.395, allocations: 7.938 kB / 3.261 GB, free: 82.98 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004064/7.399, allocations: 0.9524 MB / 3.261 GB, free: 82.98 MB / 410.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.001649/7.4, allocations: 1.356 MB / 3.263 GB, free: 82.02 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003113/7.403, allocations: 0.7143 MB / 3.263 GB, free: 82 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000262/7.404, allocations: 143.8 kB / 3.264 GB, free: 81.99 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08049/7.484, allocations: 37.35 MB / 3.3 GB, free: 54.59 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.492e-05/7.484, allocations: 36.84 kB / 3.3 GB, free: 54.55 MB / 410.7 MB Notification: Performance of pre-optimization done (n=33): time 3.543e-06/7.484, allocations: 3.938 kB / 3.3 GB, free: 54.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=33): time 0.005425/7.49, allocations: 1.243 MB / 3.301 GB, free: 53.96 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.666e-05/7.49, allocations: 55.41 kB / 3.301 GB, free: 53.89 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001011/7.49, allocations: 107.8 kB / 3.302 GB, free: 53.79 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000102/7.49, allocations: 29.39 kB / 3.302 GB, free: 53.76 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.799e-05/7.49, allocations: 189.8 kB / 3.302 GB, free: 53.58 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001427/7.49, allocations: 117.5 kB / 3.302 GB, free: 53.49 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.569e-05/7.49, allocations: 7.125 kB / 3.302 GB, free: 53.48 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.129e-05/7.491, allocations: 322.7 kB / 3.302 GB, free: 53.16 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006561/7.491, allocations: 311.8 kB / 3.302 GB, free: 52.88 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006626/7.492, allocations: 380.4 kB / 3.303 GB, free: 52.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006472/7.493, allocations: 312.2 kB / 3.303 GB, free: 52.24 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/7.493, allocations: 0 / 3.303 GB, free: 52.24 MB / 410.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001963/7.495, allocations: 0.8128 MB / 3.304 GB, free: 51.53 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.393e-05/7.495, allocations: 8 kB / 3.304 GB, free: 51.52 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.904e-06/7.495, allocations: 0 / 3.304 GB, free: 51.52 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.169e-05/7.495, allocations: 7.953 kB / 3.304 GB, free: 51.51 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008781/7.496, allocations: 179.8 kB / 3.304 GB, free: 51.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.459e-05/7.496, allocations: 8.828 kB / 3.304 GB, free: 51.38 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000508/7.496, allocations: 43.78 kB / 3.304 GB, free: 51.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001429/7.496, allocations: 66.61 kB / 3.304 GB, free: 51.29 MB / 410.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.0002074/7.496, allocations: 126.4 kB / 3.304 GB, free: 51.17 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001337/7.497, allocations: 15.81 kB / 3.304 GB, free: 51.16 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006674/7.503, allocations: 6.506 MB / 3.311 GB, free: 45.38 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.307e-05/7.503, allocations: 31.25 kB / 3.311 GB, free: 45.36 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.175e-06/7.503, allocations: 7.391 kB / 3.311 GB, free: 45.36 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.147e-05/7.503, allocations: 3.844 kB / 3.311 GB, free: 45.36 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002576/7.506, allocations: 2.886 MB / 3.314 GB, free: 42.56 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.028e-05/7.506, allocations: 4.375 kB / 3.314 GB, free: 42.56 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008737/7.507, allocations: 124.6 kB / 3.314 GB, free: 42.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.495e-06/7.507, allocations: 4 kB / 3.314 GB, free: 42.48 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.967e-05/7.507, allocations: 23.41 kB / 3.314 GB, free: 42.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.054e-06/7.507, allocations: 7.891 kB / 3.314 GB, free: 42.45 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.661e-06/7.507, allocations: 4 kB / 3.314 GB, free: 42.45 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00261/7.51, allocations: 1.742 MB / 3.315 GB, free: 40.8 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.976e-05/7.51, allocations: 139.7 kB / 3.316 GB, free: 40.65 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.93e-05/7.51, allocations: 4 kB / 3.316 GB, free: 40.65 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004897/7.51, allocations: 23.09 kB / 3.316 GB, free: 40.63 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001128/7.511, allocations: 47.16 kB / 3.316 GB, free: 40.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.037e-05/7.511, allocations: 27.59 kB / 3.316 GB, free: 40.58 MB / 410.7 MB Notification: Performance of sorting global known variables: time 5.952e-05/7.511, allocations: 87.28 kB / 3.316 GB, free: 40.49 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.75e-07/7.511, allocations: 0 / 3.316 GB, free: 40.49 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003905/7.515, allocations: 1.006 MB / 3.317 GB, free: 39.51 MB / 410.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: 13 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.region3boundary,$cse9.region3boundary,medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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.00726/7.522, allocations: 1.277 MB / 3.318 GB, free: 38.34 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001654/7.524, allocations: 0.8416 MB / 3.319 GB, free: 37.56 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.96e-06/7.524, allocations: 0.5 kB / 3.319 GB, free: 37.56 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008026/7.524, allocations: 0.5582 MB / 3.319 GB, free: 37.03 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006877/7.525, allocations: 80.27 kB / 3.319 GB, free: 36.97 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001972/7.527, allocations: 1.029 MB / 3.32 GB, free: 36.01 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002819/7.527, allocations: 0.8582 MB / 3.321 GB, free: 35.18 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005222/7.528, allocations: 112.4 kB / 3.321 GB, free: 35.1 MB / 410.7 MB Notification: Performance of SimCode: time 1.746e-06/7.528, allocations: 0 / 3.321 GB, free: 35.1 MB / 410.7 MB Notification: Performance of Templates: time 0.04141/7.569, allocations: 26.03 MB / 3.347 GB, free: 16.11 MB / 410.7 MB