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.634/1.634, allocations: 171.1 MB / 186.3 MB, free: 1.41 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.125e-05/3.114e-05, allocations: 4 kB / 228.1 MB, free: 7.98 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07989/0.07994, allocations: 38.77 MB / 266.9 MB, free: 1.129 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01854/0.09853, allocations: 10.9 MB / 277.8 MB, free: 6.18 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.02602/0.1246, allocations: 12.29 MB / 290.1 MB, free: 9.859 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001752/0.1248, allocations: 4 kB / 290.1 MB, free: 9.855 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003174/0.1252, allocations: 59.72 kB / 290.1 MB, free: 9.797 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002937/0.1255, allocations: 87.77 kB / 290.2 MB, free: 9.711 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01545/0.1409, allocations: 4.007 MB / 294.2 MB, free: 5.691 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004296/0.1414, allocations: 167.6 kB / 294.4 MB, free: 5.527 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.024e-05/0.1414, allocations: 4 kB / 294.4 MB, free: 5.523 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005863/0.142, allocations: 207.2 kB / 294.6 MB, free: 5.32 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001943/0.1422, allocations: 87.75 kB / 294.7 MB, free: 5.234 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2356/0.3779, allocations: 6.124 MB / 300.8 MB, free: 7.609 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002687/0.3806, allocations: 361.1 kB / 301.2 MB, free: 7.609 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001541/0.3808, allocations: 32.53 kB / 301.2 MB, free: 7.609 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001295/0.381, allocations: 23.59 kB / 301.2 MB, free: 7.609 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007832/0.3888, allocations: 2.417 MB / 303.6 MB, free: 7.512 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.3888, allocations: 0 / 303.6 MB, free: 7.512 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.3889, allocations: 0 / 303.6 MB, free: 7.512 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.005e-05/0.3889, allocations: 1.125 kB / 303.6 MB, free: 7.512 MB / 250.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.004961/0.3939, allocations: 0.9461 MB / 304.6 MB, free: 6.891 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/0.3939, allocations: 8.719 kB / 304.6 MB, free: 6.891 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002049/0.396, allocations: 176.6 kB / 304.8 MB, free: 6.883 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003903/0.3964, allocations: 259.1 kB / 305 MB, free: 6.676 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.244e-05/0.3965, allocations: 18.03 kB / 305 MB, free: 6.676 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.229e-05/0.3965, allocations: 20.94 kB / 305.1 MB, free: 6.676 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005215/0.4018, allocations: 0.9126 MB / 306 MB, free: 6.605 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.62e-05/0.4018, allocations: 3.844 kB / 306 MB, free: 6.605 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.004e-05/0.4019, allocations: 11.5 kB / 306 MB, free: 6.605 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.631e-05/0.4019, allocations: 5.969 kB / 306 MB, free: 6.605 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005507/0.4075, allocations: 0.9963 MB / 307 MB, free: 6.602 MB / 250.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.002502/0.41, allocations: 1.343 MB / 308.3 MB, free: 5.676 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004408/0.4145, allocations: 0.739 MB / 309.1 MB, free: 5.648 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1331/0.5476, allocations: 37.13 MB / 346.2 MB, free: 6.301 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.905e-05/0.5477, allocations: 34.03 kB / 346.2 MB, free: 6.262 MB / 282.7 MB Notification: Performance of pre-optimization done (n=33): time 2.425e-06/0.5477, allocations: 2.625 kB / 346.2 MB, free: 6.262 MB / 282.7 MB Notification: Performance of matching and sorting (n=33): time 0.008535/0.5563, allocations: 1.367 MB / 347.6 MB, free: 5.309 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.894e-05/0.5564, allocations: 55.41 kB / 347.7 MB, free: 5.242 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000122/0.5565, allocations: 116.3 kB / 347.8 MB, free: 5.133 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001198/0.5566, allocations: 36.33 kB / 347.8 MB, free: 5.098 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001017/0.5567, allocations: 183.5 kB / 348 MB, free: 4.922 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001894/0.5569, allocations: 106.3 kB / 348.1 MB, free: 4.832 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000108/0.5571, allocations: 10.88 kB / 348.1 MB, free: 4.828 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.5572, allocations: 328.7 kB / 348.4 MB, free: 4.504 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001033/0.5582, allocations: 342.2 kB / 348.8 MB, free: 4.301 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001109/0.5594, allocations: 412.8 kB / 349.2 MB, free: 4.008 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001096/0.5605, allocations: 346.3 kB / 349.5 MB, free: 3.828 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.152e-06/0.5605, allocations: 0 / 349.5 MB, free: 3.828 MB / 282.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00288/0.5634, allocations: 0.8769 MB / 350.4 MB, free: 3.273 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.414e-05/0.5634, allocations: 8 kB / 350.4 MB, free: 3.266 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.185e-05/0.5635, allocations: 3.984 kB / 350.4 MB, free: 3.262 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.955e-05/0.5635, allocations: 4 kB / 350.4 MB, free: 3.258 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001222/0.5647, allocations: 176.3 kB / 350.6 MB, free: 3.113 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.476e-05/0.5648, allocations: 6.906 kB / 350.6 MB, free: 3.109 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006979/0.5655, allocations: 43.52 kB / 350.6 MB, free: 3.07 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001853/0.5657, allocations: 66.61 kB / 350.7 MB, free: 3.02 MB / 282.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.0003304/0.566, allocations: 144.2 kB / 350.8 MB, free: 2.891 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001488/0.5662, allocations: 11.91 kB / 350.8 MB, free: 2.879 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01116/0.5773, allocations: 7.766 MB / 358.6 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.134e-05/0.5774, allocations: 29.27 kB / 358.6 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.5774, allocations: 4 kB / 358.6 MB, free: 14.31 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.21e-05/0.5775, allocations: 0 / 358.6 MB, free: 14.31 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004342/0.5818, allocations: 3.519 MB / 362.1 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.177e-05/0.5819, allocations: 0.875 kB / 362.1 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001181/0.5831, allocations: 107.2 kB / 362.2 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.204e-06/0.5831, allocations: 0 / 362.2 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.47e-05/0.5831, allocations: 11.98 kB / 362.3 MB, free: 11.51 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.78e-06/0.5832, allocations: 0 / 362.3 MB, free: 11.51 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.5832, allocations: 0 / 362.3 MB, free: 11.51 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003696/0.5869, allocations: 1.606 MB / 363.9 MB, free: 9.891 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001634/0.5871, allocations: 138 kB / 364 MB, free: 9.738 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.209e-05/0.5872, allocations: 8 kB / 364 MB, free: 9.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005591/0.5878, allocations: 23.92 kB / 364 MB, free: 9.707 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001185/0.5879, allocations: 23.97 kB / 364.1 MB, free: 9.684 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.702e-05/0.588, allocations: 15.98 kB / 364.1 MB, free: 9.668 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.731e-05/0.5881, allocations: 91.27 kB / 364.2 MB, free: 9.578 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.5881, allocations: 0 / 364.2 MB, free: 9.578 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.005451/0.5935, allocations: 0.9253 MB / 365.1 MB, free: 8.652 MB / 298.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: 11 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse7.region3boundary,$cse8.region3boundary,medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.009758/0.6033, allocations: 1.129 MB / 366.2 MB, free: 7.609 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002584/0.606, allocations: 0.8451 MB / 367.1 MB, free: 6.777 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.606, allocations: 0.5 kB / 367.1 MB, free: 6.777 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001204/0.6072, allocations: 0.5035 MB / 367.6 MB, free: 6.281 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000915/0.6082, allocations: 80.16 kB / 367.6 MB, free: 6.203 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002848/0.611, allocations: 1.415 MB / 369.1 MB, free: 4.77 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005866/0.6117, allocations: 0.8377 MB / 369.9 MB, free: 3.902 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006862/0.6124, allocations: 87.36 kB / 370 MB, free: 3.816 MB / 298.7 MB Notification: Performance of SimCode: time 1.323e-06/0.6124, allocations: 0 / 370 MB, free: 3.816 MB / 298.7 MB Notification: Performance of Templates: time 0.0635/0.6759, allocations: 25.03 MB / 395 MB, free: 10.82 MB / 330.7 MB