Running command: translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4400,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadModel(Modelica): time 2.176/2.176, allocations: 224.7 MB / 241.1 MB, free: 15.92 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.142e-05/3.16e-05, allocations: 9.25 kB / 294.5 MB, free: 4.48 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1083, allocations: 50.42 MB / 345 MB, free: 11.05 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01902/0.1274, allocations: 10.98 MB / 355.9 MB, free: 36 kB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02259/0.15, allocations: 12.38 MB / 368.3 MB, free: 3.629 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001786/0.1502, allocations: 4 kB / 368.3 MB, free: 3.625 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003152/0.1506, allocations: 59.72 kB / 368.4 MB, free: 3.566 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003044/0.1509, allocations: 91.7 kB / 368.5 MB, free: 3.477 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01544/0.1663, allocations: 4.042 MB / 372.5 MB, free: 15.42 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004604/0.1668, allocations: 179.6 kB / 372.7 MB, free: 15.25 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.747e-05/0.1669, allocations: 4 kB / 372.7 MB, free: 15.24 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006217/0.1675, allocations: 207.2 kB / 372.9 MB, free: 15.04 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001967/0.1677, allocations: 91.75 kB / 373 MB, free: 14.95 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01739/0.1851, allocations: 6.193 MB / 379.2 MB, free: 8.75 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002352/0.1875, allocations: 360 kB / 379.5 MB, free: 8.398 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001245/0.1877, allocations: 39.84 kB / 379.6 MB, free: 8.359 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001142/0.1878, allocations: 24 kB / 379.6 MB, free: 8.336 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00697/0.1948, allocations: 2.425 MB / 382 MB, free: 5.906 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.1949, allocations: 4 kB / 382 MB, free: 5.902 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.1949, allocations: 3.938 kB / 382 MB, free: 5.898 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.329e-05/0.1949, allocations: 0 / 382 MB, free: 5.898 MB / 314.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.003439/0.1983, allocations: 0.9477 MB / 383 MB, free: 4.902 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.8e-05/0.1984, allocations: 11.97 kB / 383 MB, free: 4.891 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002019/0.2004, allocations: 175.6 kB / 383.2 MB, free: 4.719 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004377/0.2009, allocations: 254.8 kB / 383.4 MB, free: 4.43 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.038e-05/0.201, allocations: 20.39 kB / 383.4 MB, free: 4.41 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.883e-05/0.2011, allocations: 20 kB / 383.5 MB, free: 4.391 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00521/0.2063, allocations: 0.9128 MB / 384.4 MB, free: 3.461 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.73e-05/0.2063, allocations: 0 / 384.4 MB, free: 3.461 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.289e-05/0.2064, allocations: 16 kB / 384.4 MB, free: 3.445 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.113e-05/0.2064, allocations: 4 kB / 384.4 MB, free: 3.441 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006401/0.2128, allocations: 0.9851 MB / 385.4 MB, free: 2.453 MB / 314.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.003203/0.2161, allocations: 1.346 MB / 386.7 MB, free: 0.9688 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006666/0.2228, allocations: 0.737 MB / 387.5 MB, free: 228 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4438/0.6666, allocations: 37.74 MB / 425.2 MB, free: 60.42 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.432e-05/0.6667, allocations: 37.61 kB / 425.2 MB, free: 60.38 MB / 346.7 MB Notification: Performance of pre-optimization done (n=33): time 3.277e-06/0.6667, allocations: 0.5 kB / 425.2 MB, free: 60.38 MB / 346.7 MB Notification: Performance of matching and sorting (n=33): time 0.008741/0.6755, allocations: 1.375 MB / 426.6 MB, free: 60.34 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.718e-05/0.6756, allocations: 54.77 kB / 426.7 MB, free: 60.27 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001264/0.6757, allocations: 112.7 kB / 426.8 MB, free: 60.18 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000101/0.6758, allocations: 39.42 kB / 426.8 MB, free: 60.15 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.197e-05/0.6759, allocations: 184.8 kB / 427 MB, free: 59.99 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001877/0.6761, allocations: 120.4 kB / 427.1 MB, free: 59.92 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001108/0.6762, allocations: 5.031 kB / 427.1 MB, free: 59.92 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.287e-05/0.6763, allocations: 326.8 kB / 427.4 MB, free: 59.61 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001085/0.6774, allocations: 337.7 kB / 427.8 MB, free: 59.61 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001126/0.6786, allocations: 407.7 kB / 428.2 MB, free: 59.53 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001075/0.6796, allocations: 345.2 kB / 428.5 MB, free: 59.52 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.19e-06/0.6797, allocations: 1.375 kB / 428.5 MB, free: 59.52 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002869/0.6825, allocations: 0.8728 MB / 429.4 MB, free: 59.47 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.492e-05/0.6826, allocations: 6.875 kB / 429.4 MB, free: 59.47 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/0.6826, allocations: 1.375 kB / 429.4 MB, free: 59.47 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.411e-05/0.6827, allocations: 4.125 kB / 429.4 MB, free: 59.47 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001215/0.6839, allocations: 177.6 kB / 429.6 MB, free: 59.47 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.497e-05/0.6839, allocations: 12.62 kB / 429.6 MB, free: 59.46 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006649/0.6846, allocations: 36.34 kB / 429.6 MB, free: 59.45 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001941/0.6848, allocations: 68.92 kB / 429.7 MB, free: 59.45 MB / 346.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.0003009/0.6851, allocations: 136.9 kB / 429.8 MB, free: 59.33 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001473/0.6853, allocations: 21.03 kB / 429.8 MB, free: 59.32 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01053/0.6958, allocations: 7.985 MB / 437.8 MB, free: 55.84 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.98e-05/0.6959, allocations: 27.86 kB / 437.8 MB, free: 55.82 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.6959, allocations: 4 kB / 437.8 MB, free: 55.82 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.244e-05/0.6959, allocations: 11.89 kB / 437.9 MB, free: 55.81 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003687/0.6996, allocations: 3.595 MB / 441.4 MB, free: 52.82 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-05/0.6997, allocations: 0 / 441.4 MB, free: 52.82 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001171/0.7009, allocations: 103.9 kB / 441.5 MB, free: 52.71 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.279e-05/0.7009, allocations: 3.953 kB / 441.6 MB, free: 52.71 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.375e-05/0.701, allocations: 15.98 kB / 441.6 MB, free: 52.7 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.713e-06/0.701, allocations: 7.938 kB / 441.6 MB, free: 52.69 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.701, allocations: 0 / 441.6 MB, free: 52.69 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003463/0.7045, allocations: 1.852 MB / 443.4 MB, free: 50.82 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001453/0.7047, allocations: 141.9 kB / 443.6 MB, free: 50.66 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001036/0.7048, allocations: 20.89 kB / 443.6 MB, free: 50.64 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005446/0.7054, allocations: 23.89 kB / 443.6 MB, free: 50.62 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001606/0.7056, allocations: 27.95 kB / 443.6 MB, free: 50.59 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.787e-05/0.7056, allocations: 19.94 kB / 443.7 MB, free: 50.57 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.911e-05/0.7057, allocations: 91.27 kB / 443.7 MB, free: 50.48 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.7057, allocations: 0 / 443.7 MB, free: 50.48 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003352/0.7091, allocations: 0.9306 MB / 444.7 MB, free: 49.64 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.006016/0.7152, allocations: 1.139 MB / 445.8 MB, free: 48.66 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002367/0.7176, allocations: 0.9109 MB / 446.7 MB, free: 47.75 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.7176, allocations: 0 / 446.7 MB, free: 47.75 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001017/0.7186, allocations: 0.592 MB / 447.3 MB, free: 47.16 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008766/0.7195, allocations: 78.67 kB / 447.4 MB, free: 47.08 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00249/0.722, allocations: 1.65 MB / 449 MB, free: 45.42 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002958/0.7223, allocations: 0.8628 MB / 449.9 MB, free: 44.53 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005922/0.723, allocations: 95.34 kB / 450 MB, free: 44.43 MB / 346.7 MB Notification: Performance of SimCode: time 8.42e-07/0.723, allocations: 4 kB / 450 MB, free: 44.43 MB / 346.7 MB Notification: Performance of Templates: time 0.04843/0.7714, allocations: 25.55 MB / 475.6 MB, free: 18.84 MB / 346.7 MB