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 2.003/2.003, allocations: 194.9 MB / 211.2 MB, free: 8.352 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.836e-05/3.83e-05, allocations: 4 kB / 258.8 MB, free: 8.715 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.332/0.3321, allocations: 44.51 MB / 303.3 MB, free: 12.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.0269/0.3591, allocations: 10.93 MB / 314.2 MB, free: 2.742 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.02934/0.3885, allocations: 12.36 MB / 326.6 MB, free: 6.348 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001816/0.3887, allocations: 7.938 kB / 326.6 MB, free: 6.34 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003215/0.389, allocations: 51.73 kB / 326.6 MB, free: 6.289 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003131/0.3894, allocations: 95.69 kB / 326.7 MB, free: 6.195 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01627/0.4057, allocations: 4.031 MB / 330.8 MB, free: 2.152 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004604/0.4061, allocations: 183.6 kB / 330.9 MB, free: 1.973 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.736e-05/0.4062, allocations: 4 kB / 330.9 MB, free: 1.969 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006341/0.4069, allocations: 199.3 kB / 331.1 MB, free: 1.773 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002153/0.4071, allocations: 95.73 kB / 331.2 MB, free: 1.68 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01777/0.4249, allocations: 6.173 MB / 337.4 MB, free: 11.5 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002458/0.4274, allocations: 364 kB / 337.8 MB, free: 11.14 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001142/0.4275, allocations: 35.84 kB / 337.8 MB, free: 11.11 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001073/0.4276, allocations: 24 kB / 337.8 MB, free: 11.09 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007116/0.4348, allocations: 2.433 MB / 340.3 MB, free: 8.648 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.4348, allocations: 0 / 340.3 MB, free: 8.648 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.554e-06/0.4348, allocations: 0 / 340.3 MB, free: 8.648 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.264e-05/0.4349, allocations: 0 / 340.3 MB, free: 8.648 MB / 282.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.003394/0.4383, allocations: 0.9438 MB / 341.2 MB, free: 7.652 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/0.4383, allocations: 8.031 kB / 341.2 MB, free: 7.645 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001959/0.4403, allocations: 183.5 kB / 341.4 MB, free: 7.465 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003688/0.4407, allocations: 250.8 kB / 341.6 MB, free: 7.18 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.489e-05/0.4407, allocations: 16.44 kB / 341.6 MB, free: 7.164 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.3e-05/0.4408, allocations: 24 kB / 341.7 MB, free: 7.141 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005109/0.446, allocations: 0.9089 MB / 342.6 MB, free: 6.211 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.139e-05/0.446, allocations: 7.891 kB / 342.6 MB, free: 6.203 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.869e-05/0.4461, allocations: 15.98 kB / 342.6 MB, free: 6.188 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.4461, allocations: 8 kB / 342.6 MB, free: 6.18 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005495/0.4516, allocations: 0.9851 MB / 343.6 MB, free: 5.195 MB / 282.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.002428/0.4541, allocations: 1.331 MB / 344.9 MB, free: 3.727 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004346/0.4585, allocations: 0.7331 MB / 345.7 MB, free: 2.984 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1367/0.5952, allocations: 37.75 MB / 383.4 MB, free: 8.789 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.59e-05/0.5953, allocations: 34.84 kB / 383.4 MB, free: 8.746 MB / 330.7 MB Notification: Performance of pre-optimization done (n=33): time 3.105e-06/0.5953, allocations: 4 kB / 383.5 MB, free: 8.742 MB / 330.7 MB Notification: Performance of matching and sorting (n=33): time 0.008964/0.6043, allocations: 1.373 MB / 384.8 MB, free: 7.363 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.507e-05/0.6044, allocations: 55.34 kB / 384.9 MB, free: 7.297 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001735/0.6046, allocations: 113.1 kB / 385 MB, free: 7.18 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001248/0.6047, allocations: 37.7 kB / 385 MB, free: 7.137 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001203/0.6048, allocations: 187.1 kB / 385.2 MB, free: 6.949 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002078/0.6051, allocations: 110.3 kB / 385.3 MB, free: 6.84 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001089/0.6052, allocations: 8 kB / 385.3 MB, free: 6.832 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.6053, allocations: 326.8 kB / 385.6 MB, free: 6.504 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001175/0.6065, allocations: 335.8 kB / 386 MB, free: 6.176 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00121/0.6078, allocations: 411.5 kB / 386.4 MB, free: 5.746 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00117/0.609, allocations: 339.8 kB / 386.7 MB, free: 5.414 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.332e-06/0.609, allocations: 0 / 386.7 MB, free: 5.414 MB / 330.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00316/0.6122, allocations: 0.8769 MB / 387.6 MB, free: 4.531 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.487e-05/0.6122, allocations: 7.953 kB / 387.6 MB, free: 4.523 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.928e-05/0.6123, allocations: 11.94 kB / 387.6 MB, free: 4.512 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.327e-05/0.6123, allocations: 4 kB / 387.6 MB, free: 4.508 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001272/0.6136, allocations: 172 kB / 387.8 MB, free: 4.34 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.805e-05/0.6136, allocations: 8 kB / 387.8 MB, free: 4.332 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007063/0.6143, allocations: 47.67 kB / 387.8 MB, free: 4.285 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000192/0.6146, allocations: 59.92 kB / 387.9 MB, free: 4.227 MB / 330.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.0003496/0.6149, allocations: 144.8 kB / 388 MB, free: 4.078 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001574/0.6151, allocations: 15.81 kB / 388 MB, free: 4.062 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01275/0.6279, allocations: 7.985 MB / 396 MB, free: 12.06 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.534e-05/0.628, allocations: 23.95 kB / 396.1 MB, free: 12.04 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.248e-06/0.628, allocations: 4 kB / 396.1 MB, free: 12.04 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.261e-05/0.628, allocations: 4 kB / 396.1 MB, free: 12.03 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004958/0.633, allocations: 3.604 MB / 399.7 MB, free: 8.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.231e-05/0.633, allocations: 384 / 399.7 MB, free: 8.16 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001243/0.6343, allocations: 107.8 kB / 399.8 MB, free: 8.055 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.937e-06/0.6343, allocations: 0 / 399.8 MB, free: 8.055 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.147e-05/0.6344, allocations: 15.94 kB / 399.8 MB, free: 8.039 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.706e-06/0.6344, allocations: 7.938 kB / 399.8 MB, free: 8.031 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.6344, allocations: 0 / 399.8 MB, free: 8.031 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004161/0.6386, allocations: 1.85 MB / 401.6 MB, free: 6.164 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001587/0.6388, allocations: 148.1 kB / 401.8 MB, free: 6 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001033/0.6389, allocations: 8.062 kB / 401.8 MB, free: 5.992 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005518/0.6395, allocations: 27.94 kB / 401.8 MB, free: 5.965 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001402/0.6396, allocations: 31.95 kB / 401.9 MB, free: 5.934 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.985e-05/0.6397, allocations: 15.92 kB / 401.9 MB, free: 5.918 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.022e-05/0.6398, allocations: 87.28 kB / 402 MB, free: 5.832 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.6398, allocations: 0 / 402 MB, free: 5.832 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003471/0.6433, allocations: 0.9369 MB / 402.9 MB, free: 4.895 MB / 346.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: 15 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.region3boundary,$cse10.region3boundary,medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.00677/0.6501, allocations: 1.131 MB / 404 MB, free: 3.75 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002716/0.6529, allocations: 0.9029 MB / 404.9 MB, free: 2.848 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.053e-06/0.653, allocations: 0.5 kB / 404.9 MB, free: 2.848 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001384/0.6543, allocations: 0.5947 MB / 405.5 MB, free: 2.254 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009191/0.6553, allocations: 79.86 kB / 405.6 MB, free: 2.176 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003235/0.6586, allocations: 1.632 MB / 407.2 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005674/0.6592, allocations: 0.8653 MB / 408.1 MB, free: 15.62 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006354/0.6598, allocations: 95.34 kB / 408.2 MB, free: 15.53 MB / 362.7 MB Notification: Performance of SimCode: time 1.052e-06/0.6598, allocations: 4 kB / 408.2 MB, free: 15.52 MB / 362.7 MB Notification: Performance of Templates: time 0.304/0.9638, allocations: 25.5 MB / 433.7 MB, free: 106.7 MB / 362.7 MB