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_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadModel(Modelica): time 1.608/1.608, allocations: 171.2 MB / 185.7 MB, free: 1.395 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.847e-05/2.844e-05, allocations: 4 kB / 228.1 MB, free: 7.34 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07921/0.07926, allocations: 38.77 MB / 266.9 MB, free: 496 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01923/0.09854, allocations: 10.89 MB / 277.8 MB, free: 5.543 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.02281/0.1214, allocations: 12.3 MB / 290.1 MB, free: 9.215 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001878/0.1216, allocations: 4 kB / 290.1 MB, free: 9.211 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003237/0.122, allocations: 51.72 kB / 290.2 MB, free: 9.16 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003054/0.1223, allocations: 99.73 kB / 290.3 MB, free: 9.062 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01508/0.1374, allocations: 3.992 MB / 294.3 MB, free: 5.059 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000437/0.1379, allocations: 175.6 kB / 294.4 MB, free: 4.887 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.958e-05/0.1379, allocations: 8 kB / 294.4 MB, free: 4.879 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006108/0.1385, allocations: 203.3 kB / 294.6 MB, free: 4.68 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001947/0.1387, allocations: 91.69 kB / 294.7 MB, free: 4.59 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.235/0.3738, allocations: 6.118 MB / 300.8 MB, free: 7.953 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003182/0.377, allocations: 358.9 kB / 301.2 MB, free: 7.953 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001502/0.3772, allocations: 33.64 kB / 301.2 MB, free: 7.953 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001306/0.3774, allocations: 23.5 kB / 301.2 MB, free: 7.953 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009426/0.3868, allocations: 2.417 MB / 303.7 MB, free: 7.855 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.3869, allocations: 0 / 303.7 MB, free: 7.855 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.217e-06/0.3869, allocations: 2.062 kB / 303.7 MB, free: 7.855 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.607e-05/0.3869, allocations: 0 / 303.7 MB, free: 7.855 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.006044/0.393, allocations: 0.9435 MB / 304.6 MB, free: 7.234 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.134e-05/0.3931, allocations: 13.28 kB / 304.6 MB, free: 7.234 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002934/0.396, allocations: 180.5 kB / 304.8 MB, free: 7.227 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004479/0.3965, allocations: 256.7 kB / 305 MB, free: 7.02 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.486e-05/0.3966, allocations: 17.66 kB / 305.1 MB, free: 7.02 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.454e-05/0.3967, allocations: 23.69 kB / 305.1 MB, free: 7.02 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006896/0.4036, allocations: 0.9113 MB / 306 MB, free: 6.949 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.06e-05/0.4036, allocations: 1.281 kB / 306 MB, free: 6.949 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.517e-05/0.4037, allocations: 10.34 kB / 306 MB, free: 6.949 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.438e-05/0.4038, allocations: 6.125 kB / 306 MB, free: 6.949 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007132/0.4109, allocations: 0.9933 MB / 307 MB, free: 6.945 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.003137/0.4141, allocations: 1.35 MB / 308.4 MB, free: 6.016 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006485/0.4206, allocations: 0.7374 MB / 309.1 MB, free: 5.988 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1346/0.5553, allocations: 37.13 MB / 346.2 MB, free: 5.887 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.035e-05/0.5554, allocations: 34.16 kB / 346.3 MB, free: 5.848 MB / 282.7 MB Notification: Performance of pre-optimization done (n=33): time 2.935e-06/0.5554, allocations: 0 / 346.3 MB, free: 5.848 MB / 282.7 MB Notification: Performance of matching and sorting (n=33): time 0.008664/0.5641, allocations: 1.372 MB / 347.6 MB, free: 4.891 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.272e-05/0.5642, allocations: 54.16 kB / 347.7 MB, free: 4.828 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001414/0.5643, allocations: 111.6 kB / 347.8 MB, free: 4.719 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001177/0.5645, allocations: 34.34 kB / 347.8 MB, free: 4.684 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.368e-05/0.5646, allocations: 114.9 kB / 347.9 MB, free: 4.574 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002034/0.5648, allocations: 113.9 kB / 348 MB, free: 4.477 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001056/0.5649, allocations: 10.56 kB / 348.1 MB, free: 4.473 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.5651, allocations: 328.7 kB / 348.4 MB, free: 4.148 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00108/0.5662, allocations: 340.4 kB / 348.7 MB, free: 3.949 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0011/0.5673, allocations: 418.1 kB / 349.1 MB, free: 3.652 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00106/0.5684, allocations: 340.3 kB / 349.5 MB, free: 3.477 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.5684, allocations: 0 / 349.5 MB, free: 3.477 MB / 282.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002924/0.5713, allocations: 0.8797 MB / 350.3 MB, free: 2.918 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.86e-05/0.5714, allocations: 4 kB / 350.3 MB, free: 2.914 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.263e-05/0.5714, allocations: 6.719 kB / 350.3 MB, free: 2.91 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.264e-05/0.5714, allocations: 4 kB / 350.3 MB, free: 2.906 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001255/0.5727, allocations: 180.6 kB / 350.5 MB, free: 2.758 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.571e-05/0.5727, allocations: 9.609 kB / 350.5 MB, free: 2.754 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007336/0.5735, allocations: 46.11 kB / 350.6 MB, free: 2.715 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001842/0.5737, allocations: 61 kB / 350.6 MB, free: 2.668 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.000336/0.574, allocations: 139.5 kB / 350.8 MB, free: 2.543 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001579/0.5742, allocations: 20.17 kB / 350.8 MB, free: 2.523 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01123/0.5854, allocations: 7.766 MB / 358.6 MB, free: 13.98 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.764e-05/0.5855, allocations: 22.59 kB / 358.6 MB, free: 13.96 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.5855, allocations: 0 / 358.6 MB, free: 13.96 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.605e-05/0.5856, allocations: 6.922 kB / 358.6 MB, free: 13.96 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004499/0.5901, allocations: 3.513 MB / 362.1 MB, free: 11.1 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-05/0.5901, allocations: 7.359 kB / 362.1 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001196/0.5913, allocations: 111.7 kB / 362.2 MB, free: 10.99 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.747e-06/0.5914, allocations: 0 / 362.2 MB, free: 10.99 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.443e-05/0.5914, allocations: 11.98 kB / 362.2 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.605e-06/0.5915, allocations: 4 kB / 362.2 MB, free: 10.97 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.5915, allocations: 4 kB / 362.2 MB, free: 10.97 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003643/0.5951, allocations: 1.598 MB / 363.8 MB, free: 9.352 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001512/0.5953, allocations: 132.3 kB / 364 MB, free: 9.203 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.747e-05/0.5954, allocations: 5.203 kB / 364 MB, free: 9.199 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005602/0.596, allocations: 27.92 kB / 364 MB, free: 9.172 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001233/0.5961, allocations: 23.95 kB / 364 MB, free: 9.148 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.052e-05/0.5962, allocations: 19.98 kB / 364 MB, free: 9.129 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.896e-05/0.5963, allocations: 91.33 kB / 364.1 MB, free: 9.039 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.5963, allocations: 4 kB / 364.1 MB, free: 9.035 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.005137/0.6015, allocations: 0.9213 MB / 365.1 MB, free: 8.113 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.008931/0.6105, allocations: 1.133 MB / 366.2 MB, free: 7.07 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002542/0.613, allocations: 0.8364 MB / 367 MB, free: 6.246 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.417e-05/0.6131, allocations: 8.125 kB / 367 MB, free: 6.238 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001151/0.6142, allocations: 0.5037 MB / 367.5 MB, free: 5.742 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008995/0.6152, allocations: 80.42 kB / 367.6 MB, free: 5.668 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002858/0.618, allocations: 1.375 MB / 369 MB, free: 4.273 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004846/0.6186, allocations: 0.8376 MB / 369.8 MB, free: 3.406 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.003484/0.6221, allocations: 1.779 MB / 371.6 MB, free: 1.656 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006027/0.6227, allocations: 91.34 kB / 371.7 MB, free: 1.566 MB / 298.7 MB Notification: Performance of SimCode: time 2.224e-06/0.6227, allocations: 0 / 371.7 MB, free: 1.566 MB / 298.7 MB Notification: Performance of Templates: time 0.06977/0.6925, allocations: 30.86 MB / 402.5 MB, free: 2.801 MB / 330.7 MB