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_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadModel(Modelica): time 1.804/1.804, allocations: 194.9 MB / 210.6 MB, free: 8.348 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.834e-05/2.828e-05, allocations: 3.984 kB / 258.8 MB, free: 8.055 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2869/0.2869, allocations: 44.5 MB / 303.3 MB, free: 12.97 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01842/0.3054, allocations: 10.94 MB / 314.3 MB, free: 2.641 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.02193/0.3274, allocations: 12.35 MB / 326.6 MB, free: 6.254 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001693/0.3276, allocations: 0 / 326.6 MB, free: 6.254 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003098/0.3279, allocations: 67.66 kB / 326.7 MB, free: 6.188 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002936/0.3283, allocations: 95.69 kB / 326.8 MB, free: 6.094 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0147/0.343, allocations: 4.034 MB / 330.8 MB, free: 2.047 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004039/0.3434, allocations: 171.6 kB / 331 MB, free: 1.879 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.183e-05/0.3435, allocations: 4 kB / 331 MB, free: 1.875 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005876/0.3441, allocations: 211.3 kB / 331.2 MB, free: 1.668 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001804/0.3442, allocations: 79.77 kB / 331.3 MB, free: 1.59 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01644/0.3607, allocations: 6.181 MB / 337.4 MB, free: 11.4 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002088/0.3629, allocations: 368 kB / 337.8 MB, free: 11.04 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.708e-05/0.363, allocations: 35.84 kB / 337.8 MB, free: 11.01 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001022/0.3631, allocations: 24 kB / 337.9 MB, free: 10.98 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006427/0.3695, allocations: 2.425 MB / 340.3 MB, free: 8.555 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.3696, allocations: 0 / 340.3 MB, free: 8.555 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.514e-06/0.3696, allocations: 0 / 340.3 MB, free: 8.555 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.232e-05/0.3696, allocations: 0 / 340.3 MB, free: 8.555 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.003108/0.3727, allocations: 0.9478 MB / 341.2 MB, free: 7.555 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.3728, allocations: 8.031 kB / 341.2 MB, free: 7.547 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001947/0.3747, allocations: 187.5 kB / 341.4 MB, free: 7.363 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003465/0.3751, allocations: 254.8 kB / 341.7 MB, free: 7.074 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.076e-05/0.3752, allocations: 16.44 kB / 341.7 MB, free: 7.059 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.714e-05/0.3752, allocations: 20 kB / 341.7 MB, free: 7.039 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004951/0.3802, allocations: 0.909 MB / 342.6 MB, free: 6.109 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.88e-05/0.3802, allocations: 3.953 kB / 342.6 MB, free: 6.105 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.891e-05/0.3803, allocations: 15.94 kB / 342.6 MB, free: 6.09 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.3803, allocations: 4 kB / 342.6 MB, free: 6.086 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0053/0.3856, allocations: 0.989 MB / 343.6 MB, free: 5.098 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.00225/0.3879, allocations: 1.335 MB / 345 MB, free: 3.625 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004215/0.3921, allocations: 0.7331 MB / 345.7 MB, free: 2.883 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1384/0.5305, allocations: 37.75 MB / 383.4 MB, free: 8.684 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.815e-05/0.5306, allocations: 34.83 kB / 383.5 MB, free: 8.641 MB / 330.7 MB Notification: Performance of pre-optimization done (n=33): time 2.284e-06/0.5306, allocations: 0 / 383.5 MB, free: 8.641 MB / 330.7 MB Notification: Performance of matching and sorting (n=33): time 0.008657/0.5393, allocations: 1.373 MB / 384.9 MB, free: 7.262 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.413e-05/0.5394, allocations: 59.34 kB / 384.9 MB, free: 7.191 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00013/0.5395, allocations: 113.1 kB / 385 MB, free: 7.074 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001127/0.5397, allocations: 33.7 kB / 385.1 MB, free: 7.035 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.82e-05/0.5398, allocations: 116.7 kB / 385.2 MB, free: 6.914 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002021/0.54, allocations: 118.3 kB / 385.3 MB, free: 6.797 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001053/0.5401, allocations: 8 kB / 385.3 MB, free: 6.789 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.5402, allocations: 322.8 kB / 385.6 MB, free: 6.465 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001099/0.5413, allocations: 339.8 kB / 385.9 MB, free: 6.133 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001193/0.5425, allocations: 407.5 kB / 386.3 MB, free: 5.707 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001143/0.5437, allocations: 339.9 kB / 386.7 MB, free: 5.375 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.5437, allocations: 0 / 386.7 MB, free: 5.375 MB / 330.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.003159/0.5469, allocations: 0.8769 MB / 387.5 MB, free: 4.492 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.968e-05/0.547, allocations: 7.953 kB / 387.6 MB, free: 4.484 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.343e-05/0.547, allocations: 4 kB / 387.6 MB, free: 4.48 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.096e-05/0.547, allocations: 7.938 kB / 387.6 MB, free: 4.473 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001221/0.5482, allocations: 179.8 kB / 387.7 MB, free: 4.297 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.452e-05/0.5483, allocations: 4.25 kB / 387.7 MB, free: 4.293 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007157/0.549, allocations: 47.67 kB / 387.8 MB, free: 4.246 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001857/0.5492, allocations: 59.94 kB / 387.9 MB, free: 4.188 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.0003305/0.5495, allocations: 141.7 kB / 388 MB, free: 4.039 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001553/0.5497, allocations: 15.81 kB / 388 MB, free: 4.023 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01271/0.5624, allocations: 7.985 MB / 396 MB, free: 12.02 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.013e-05/0.5625, allocations: 23.95 kB / 396 MB, free: 12 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.063e-05/0.5625, allocations: 4 kB / 396 MB, free: 12 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.386e-05/0.5626, allocations: 7.984 kB / 396 MB, free: 11.99 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005139/0.5677, allocations: 3.588 MB / 399.6 MB, free: 8.133 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.25e-05/0.5678, allocations: 4.359 kB / 399.6 MB, free: 8.129 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001176/0.569, allocations: 111.8 kB / 399.7 MB, free: 8.02 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.166e-06/0.569, allocations: 0 / 399.7 MB, free: 8.02 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.901e-05/0.5691, allocations: 15.94 kB / 399.7 MB, free: 8.004 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.945e-06/0.5691, allocations: 7.938 kB / 399.8 MB, free: 7.996 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.5691, allocations: 0 / 399.8 MB, free: 7.996 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004182/0.5733, allocations: 1.854 MB / 401.6 MB, free: 6.125 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001674/0.5735, allocations: 144.2 kB / 401.7 MB, free: 5.965 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.285e-05/0.5736, allocations: 4 kB / 401.8 MB, free: 5.961 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000567/0.5742, allocations: 35.91 kB / 401.8 MB, free: 5.926 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001124/0.5743, allocations: 23.97 kB / 401.8 MB, free: 5.902 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.087e-05/0.5744, allocations: 15.98 kB / 401.8 MB, free: 5.887 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.783e-05/0.5745, allocations: 95.2 kB / 401.9 MB, free: 5.793 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.5745, allocations: 0 / 401.9 MB, free: 5.793 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003295/0.5778, allocations: 0.9331 MB / 402.9 MB, free: 4.859 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.006223/0.5841, allocations: 1.139 MB / 404 MB, free: 3.707 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002639/0.5867, allocations: 0.9068 MB / 404.9 MB, free: 2.801 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.5868, allocations: 0 / 404.9 MB, free: 2.801 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001266/0.5881, allocations: 0.5952 MB / 405.5 MB, free: 2.207 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009029/0.589, allocations: 75.86 kB / 405.6 MB, free: 2.133 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003004/0.592, allocations: 1.599 MB / 407.2 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005051/0.5925, allocations: 0.8614 MB / 408 MB, free: 15.62 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.003424/0.596, allocations: 1.784 MB / 409.8 MB, free: 13.83 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005895/0.5966, allocations: 83.62 kB / 409.9 MB, free: 13.75 MB / 362.7 MB Notification: Performance of SimCode: time 9.32e-07/0.5966, allocations: 4 kB / 409.9 MB, free: 13.75 MB / 362.7 MB Notification: Performance of Templates: time 0.297/0.8936, allocations: 31.22 MB / 441.1 MB, free: 103.4 MB / 362.7 MB