Running command: translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4400,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadModel(Modelica): time 2.001/2.001, allocations: 225.8 MB / 239.4 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.093e-05/3.109e-05, allocations: 4 kB / 292.7 MB, free: 8.363 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09233/0.09238, allocations: 50.42 MB / 343.1 MB, free: 5.926 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.645/7.737, allocations: 3.026 GB / 3.361 GB, free: 17.52 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.04335/7.78, allocations: 11.16 MB / 3.372 GB, free: 6.242 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7324/8.513, allocations: 113.9 MB / 3.483 GB, free: 67.5 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.133e-06/8.513, allocations: 4 kB / 3.483 GB, free: 67.5 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.363e-05/8.513, allocations: 4 kB / 3.483 GB, free: 67.49 MB / 442.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.004345/8.517, allocations: 1.133 MB / 3.485 GB, free: 66.32 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/8.517, allocations: 18.2 kB / 3.485 GB, free: 66.3 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001846/8.519, allocations: 191.5 kB / 3.485 GB, free: 66.11 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002806/8.52, allocations: 250.8 kB / 3.485 GB, free: 65.83 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.546e-05/8.52, allocations: 20.44 kB / 3.485 GB, free: 65.81 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.783e-05/8.52, allocations: 19.95 kB / 3.485 GB, free: 65.79 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003371/8.523, allocations: 0.9043 MB / 3.486 GB, free: 64.87 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.686e-05/8.523, allocations: 4 kB / 3.486 GB, free: 64.86 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.91e-05/8.523, allocations: 12 kB / 3.486 GB, free: 64.85 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.606e-06/8.523, allocations: 4 kB / 3.486 GB, free: 64.85 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003539/8.527, allocations: 0.9493 MB / 3.487 GB, free: 63.9 MB / 442.7 MB Warning: The model contains alias variables with conflicting start and/or 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.001751/8.529, allocations: 1.339 MB / 3.488 GB, free: 62.42 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002807/8.531, allocations: 0.7251 MB / 3.489 GB, free: 61.68 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002599/8.532, allocations: 146.2 kB / 3.489 GB, free: 61.54 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08273/8.614, allocations: 37.37 MB / 3.525 GB, free: 19.73 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.76e-05/8.614, allocations: 42.84 kB / 3.526 GB, free: 19.68 MB / 442.7 MB Notification: Performance of pre-optimization done (n=33): time 3.734e-06/8.614, allocations: 0 / 3.526 GB, free: 19.68 MB / 442.7 MB Notification: Performance of matching and sorting (n=33): time 0.005689/8.62, allocations: 1.237 MB / 3.527 GB, free: 18.43 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.812e-05/8.62, allocations: 55.41 kB / 3.527 GB, free: 18.37 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001075/8.62, allocations: 113.1 kB / 3.527 GB, free: 18.25 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.197e-05/8.62, allocations: 29.7 kB / 3.527 GB, free: 18.21 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.771e-05/8.621, allocations: 116.4 kB / 3.527 GB, free: 18.1 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001395/8.621, allocations: 122.3 kB / 3.527 GB, free: 17.98 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.314e-05/8.621, allocations: 8 kB / 3.527 GB, free: 17.97 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 5.92e-05/8.621, allocations: 326.8 kB / 3.527 GB, free: 17.64 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006335/8.621, allocations: 307.9 kB / 3.528 GB, free: 17.34 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006677/8.622, allocations: 379.6 kB / 3.528 GB, free: 16.94 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006541/8.623, allocations: 315.7 kB / 3.528 GB, free: 16.63 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.524e-06/8.623, allocations: 3.953 kB / 3.528 GB, free: 16.63 MB / 442.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001949/8.625, allocations: 0.8176 MB / 3.529 GB, free: 15.8 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.146e-05/8.625, allocations: 4 kB / 3.529 GB, free: 15.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.736e-06/8.625, allocations: 4 kB / 3.529 GB, free: 15.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.052e-05/8.625, allocations: 4 kB / 3.529 GB, free: 15.79 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008515/8.626, allocations: 179.7 kB / 3.529 GB, free: 15.62 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.241e-05/8.626, allocations: 7.938 kB / 3.529 GB, free: 15.61 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004953/8.626, allocations: 44.02 kB / 3.529 GB, free: 15.57 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001373/8.626, allocations: 63.92 kB / 3.53 GB, free: 15.5 MB / 442.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.0002053/8.627, allocations: 124.9 kB / 3.53 GB, free: 15.38 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001363/8.627, allocations: 19.77 kB / 3.53 GB, free: 15.36 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006674/8.634, allocations: 6.507 MB / 3.536 GB, free: 8.84 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.35e-05/8.634, allocations: 19.97 kB / 3.536 GB, free: 8.82 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.694e-06/8.634, allocations: 4 kB / 3.536 GB, free: 8.816 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.188e-05/8.634, allocations: 11.98 kB / 3.536 GB, free: 8.805 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002594/8.636, allocations: 2.903 MB / 3.539 GB, free: 5.695 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.513e-06/8.636, allocations: 0 / 3.539 GB, free: 5.695 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008106/8.637, allocations: 127.8 kB / 3.539 GB, free: 5.57 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.573e-06/8.637, allocations: 4 kB / 3.539 GB, free: 5.566 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.604e-05/8.637, allocations: 23.97 kB / 3.539 GB, free: 5.543 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.865e-06/8.637, allocations: 0 / 3.539 GB, free: 5.543 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.663e-06/8.637, allocations: 0 / 3.539 GB, free: 5.543 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002633/8.64, allocations: 1.747 MB / 3.541 GB, free: 3.777 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.236e-05/8.64, allocations: 140.2 kB / 3.541 GB, free: 3.621 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.937e-05/8.64, allocations: 11.98 kB / 3.541 GB, free: 3.609 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004502/8.641, allocations: 19.98 kB / 3.541 GB, free: 3.59 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001207/8.641, allocations: 39.94 kB / 3.541 GB, free: 3.551 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.93e-05/8.641, allocations: 27.92 kB / 3.541 GB, free: 3.523 MB / 442.7 MB Notification: Performance of sorting global known variables: time 5.796e-05/8.641, allocations: 95.33 kB / 3.541 GB, free: 3.43 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.43e-07/8.641, allocations: 0 / 3.541 GB, free: 3.43 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004076/8.645, allocations: 0.999 MB / 3.542 GB, free: 2.43 MB / 442.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: 13 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.region3boundary,$cse9.region3boundary,medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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.007555/8.653, allocations: 1.276 MB / 3.543 GB, free: 1.145 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001667/8.654, allocations: 0.8407 MB / 3.544 GB, free: 312 kB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.875e-06/8.654, allocations: 0 / 3.544 GB, free: 312 kB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2931/8.947, allocations: 0.5556 MB / 3.545 GB, free: 85.09 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007765/8.948, allocations: 82.58 kB / 3.545 GB, free: 85.09 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002242/8.95, allocations: 1.001 MB / 3.546 GB, free: 84.93 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003746/8.951, allocations: 0.8549 MB / 3.547 GB, free: 84.23 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003959/8.955, allocations: 2.74 MB / 3.549 GB, free: 84.18 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004909/8.955, allocations: 103 kB / 3.549 GB, free: 84.17 MB / 442.7 MB Notification: Performance of SimCode: time 1.71e-06/8.955, allocations: 0 / 3.549 GB, free: 84.17 MB / 442.7 MB Notification: Performance of Templates: time 0.06751/9.023, allocations: 31.64 MB / 3.58 GB, free: 83.73 MB / 442.7 MB