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.871/1.871, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.411e-05/2.425e-05, allocations: 7.938 kB / 249.6 MB, free: 15.3 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2497/0.2498, allocations: 44.5 MB / 294.1 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.909/7.159, allocations: 2.844 GB / 3.131 GB, free: 25.31 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.02861/7.187, allocations: 10.77 MB / 3.142 GB, free: 17.16 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5916/7.779, allocations: 110.5 MB / 3.249 GB, free: 62.14 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.67e-06/7.779, allocations: 0 / 3.249 GB, free: 62.14 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.411e-05/7.779, allocations: 9.406 kB / 3.249 GB, free: 62.13 MB / 394.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.004449/7.784, allocations: 1.132 MB / 3.251 GB, free: 61.03 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/7.784, allocations: 8.031 kB / 3.251 GB, free: 61.02 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001766/7.785, allocations: 189.1 kB / 3.251 GB, free: 60.88 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003168/7.786, allocations: 260.9 kB / 3.251 GB, free: 60.62 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.347e-05/7.786, allocations: 8 kB / 3.251 GB, free: 60.61 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.246e-05/7.786, allocations: 12 kB / 3.251 GB, free: 60.6 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006492/7.787, allocations: 346.5 kB / 3.251 GB, free: 60.3 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004806/7.787, allocations: 281 kB / 3.252 GB, free: 60.04 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.536e-05/7.787, allocations: 0 / 3.252 GB, free: 60.04 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.578e-05/7.787, allocations: 0 / 3.252 GB, free: 60.04 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.464e-06/7.787, allocations: 7.953 kB / 3.252 GB, free: 60.03 MB / 394.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.001594/7.789, allocations: 1.305 MB / 3.253 GB, free: 58.75 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004289/7.789, allocations: 247.4 kB / 3.253 GB, free: 58.51 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002135/7.789, allocations: 137.1 kB / 3.253 GB, free: 58.38 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07353/7.863, allocations: 37.35 MB / 3.29 GB, free: 17.45 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.434e-05/7.863, allocations: 38.84 kB / 3.29 GB, free: 17.41 MB / 394.7 MB Notification: Performance of pre-optimization done (n=33): time 3.261e-06/7.863, allocations: 0 / 3.29 GB, free: 17.41 MB / 394.7 MB Notification: Performance of matching and sorting (n=33): time 0.003374/7.866, allocations: 0.7884 MB / 3.291 GB, free: 16.61 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.943e-05/7.867, allocations: 55.41 kB / 3.291 GB, free: 16.55 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.025e-05/7.867, allocations: 113.1 kB / 3.291 GB, free: 16.43 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.036e-05/7.867, allocations: 25.7 kB / 3.291 GB, free: 16.4 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.097e-05/7.867, allocations: 182.9 kB / 3.291 GB, free: 16.22 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001345/7.867, allocations: 122.3 kB / 3.291 GB, free: 16.1 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.083e-05/7.867, allocations: 0 / 3.291 GB, free: 16.1 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 5.502e-05/7.867, allocations: 318.8 kB / 3.291 GB, free: 15.78 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005357/7.868, allocations: 303.9 kB / 3.292 GB, free: 15.48 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005625/7.868, allocations: 379.4 kB / 3.292 GB, free: 15.08 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002802/7.871, allocations: 424 kB / 3.292 GB, free: 14.67 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.579e-06/7.871, allocations: 4 kB / 3.292 GB, free: 14.66 MB / 394.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00398/7.875, allocations: 0.8995 MB / 3.293 GB, free: 13.76 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.41e-05/7.875, allocations: 10.02 kB / 3.293 GB, free: 13.75 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.591e-06/7.875, allocations: 4 kB / 3.293 GB, free: 13.75 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.283e-05/7.875, allocations: 4 kB / 3.293 GB, free: 13.74 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008414/7.876, allocations: 171.8 kB / 3.293 GB, free: 13.57 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.764e-06/7.876, allocations: 7.953 kB / 3.293 GB, free: 13.57 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000501/7.877, allocations: 43.8 kB / 3.293 GB, free: 13.52 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001352/7.877, allocations: 63.92 kB / 3.294 GB, free: 13.46 MB / 394.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.0001994/7.877, allocations: 117.2 kB / 3.294 GB, free: 13.34 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001279/7.877, allocations: 19.75 kB / 3.294 GB, free: 13.32 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007074/7.884, allocations: 6.506 MB / 3.3 GB, free: 6.805 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-05/7.884, allocations: 23.97 kB / 3.3 GB, free: 6.781 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.639e-06/7.884, allocations: 0 / 3.3 GB, free: 6.781 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.082e-05/7.884, allocations: 11.94 kB / 3.3 GB, free: 6.77 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002501/7.887, allocations: 2.812 MB / 3.303 GB, free: 3.773 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.379e-06/7.887, allocations: 4 kB / 3.303 GB, free: 3.77 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007986/7.888, allocations: 127.8 kB / 3.303 GB, free: 3.645 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.55e-06/7.888, allocations: 0 / 3.303 GB, free: 3.645 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.311e-05/7.888, allocations: 19.98 kB / 3.303 GB, free: 3.625 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.436e-06/7.888, allocations: 3.984 kB / 3.303 GB, free: 3.621 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.105e-06/7.888, allocations: 0 / 3.303 GB, free: 3.621 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003132/7.891, allocations: 1.758 MB / 3.305 GB, free: 1.848 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.024e-05/7.891, allocations: 140.2 kB / 3.305 GB, free: 1.691 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.123e-05/7.891, allocations: 0 / 3.305 GB, free: 1.691 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004516/7.892, allocations: 15.98 kB / 3.305 GB, free: 1.676 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000109/7.892, allocations: 35.94 kB / 3.305 GB, free: 1.641 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.689e-05/7.892, allocations: 27.98 kB / 3.305 GB, free: 1.613 MB / 394.7 MB Notification: Performance of sorting global known variables: time 5.145e-05/7.892, allocations: 99.27 kB / 3.305 GB, free: 1.516 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.88e-07/7.892, allocations: 0 / 3.305 GB, free: 1.516 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003854/7.896, allocations: 0.9833 MB / 3.306 GB, free: 0.5312 MB / 394.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.2283/8.124, allocations: 1.268 MB / 3.307 GB, free: 73.94 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001738/8.126, allocations: 0.835 MB / 3.308 GB, free: 73.93 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.156e-06/8.126, allocations: 1.219 kB / 3.308 GB, free: 73.93 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008816/8.127, allocations: 0.5548 MB / 3.309 GB, free: 73.93 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007141/8.128, allocations: 66.81 kB / 3.309 GB, free: 73.93 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002254/8.13, allocations: 1.032 MB / 3.31 GB, free: 73.73 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003295/8.13, allocations: 0.8538 MB / 3.31 GB, free: 73.03 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005606/8.131, allocations: 111 kB / 3.311 GB, free: 73.02 MB / 394.7 MB Notification: Performance of SimCode: time 1.843e-06/8.131, allocations: 3.844 kB / 3.311 GB, free: 73.02 MB / 394.7 MB Notification: Performance of Templates: time 0.0454/8.176, allocations: 26.76 MB / 3.337 GB, free: 71.25 MB / 394.7 MB