Running command: translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_trunk_Modelica.Media.Examples.WaterIF97") Notification: Performance of loadModel(Modelica): time 1.983/1.983, allocations: 225.8 MB / 239.4 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.868e-05/2.879e-05, allocations: 4 kB / 292.7 MB, free: 8.348 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09131/0.09136, allocations: 50.4 MB / 343.1 MB, free: 5.918 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.181/7.272, allocations: 2.787 GB / 3.122 GB, free: 19.5 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001956/7.272, allocations: 64.72 kB / 3.122 GB, free: 19.47 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6914/7.964, allocations: 108.1 MB / 3.228 GB, free: 85.73 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.297e-06/7.964, allocations: 0 / 3.228 GB, free: 85.73 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.31e-05/7.964, allocations: 0 / 3.228 GB, free: 85.73 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.006468/7.97, allocations: 1.158 MB / 3.229 GB, free: 84.68 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/7.97, allocations: 14.38 kB / 3.229 GB, free: 84.66 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006105/7.971, allocations: 50.97 kB / 3.229 GB, free: 84.62 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002557/7.971, allocations: 226 kB / 3.229 GB, free: 84.39 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.269e-05/7.971, allocations: 12.28 kB / 3.229 GB, free: 84.38 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.611e-05/7.971, allocations: 15.95 kB / 3.229 GB, free: 84.36 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001174/7.973, allocations: 367.6 kB / 3.23 GB, free: 84.05 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.919e-05/7.973, allocations: 0 / 3.23 GB, free: 84.05 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.444e-05/7.973, allocations: 8 kB / 3.23 GB, free: 84.05 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.668e-06/7.973, allocations: 4 kB / 3.23 GB, free: 84.04 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001142/7.974, allocations: 312.9 kB / 3.23 GB, free: 83.79 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.0014/7.975, allocations: 1.187 MB / 3.231 GB, free: 82.58 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007674/7.976, allocations: 258.4 kB / 3.231 GB, free: 82.34 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001764/7.976, allocations: 94.84 kB / 3.231 GB, free: 82.24 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1049/8.081, allocations: 47.35 MB / 3.278 GB, free: 33.52 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.078e-05/8.081, allocations: 38.75 kB / 3.278 GB, free: 33.48 MB / 442.7 MB Notification: Performance of pre-optimization done (n=23): time 3.326e-06/8.081, allocations: 0 / 3.278 GB, free: 33.48 MB / 442.7 MB Notification: Performance of matching and sorting (n=33): time 0.006562/8.088, allocations: 1.423 MB / 3.279 GB, free: 32 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.218e-05/8.088, allocations: 106.8 kB / 3.279 GB, free: 31.87 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.567e-05/8.088, allocations: 109.9 kB / 3.279 GB, free: 31.76 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.786e-05/8.088, allocations: 29.7 kB / 3.279 GB, free: 31.72 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.572e-05/8.088, allocations: 108.6 kB / 3.279 GB, free: 31.61 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.878e-05/8.088, allocations: 118.4 kB / 3.28 GB, free: 31.49 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.979e-05/8.088, allocations: 8 kB / 3.28 GB, free: 31.48 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 5.768e-05/8.088, allocations: 326.8 kB / 3.28 GB, free: 31.16 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002401/8.089, allocations: 104 kB / 3.28 GB, free: 31.05 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002678/8.089, allocations: 175.1 kB / 3.28 GB, free: 30.86 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002656/8.089, allocations: 120.7 kB / 3.28 GB, free: 30.74 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/8.089, allocations: 384 / 3.28 GB, free: 30.74 MB / 442.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008797/8.09, allocations: 362 kB / 3.281 GB, free: 30.38 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/8.09, allocations: 8 kB / 3.281 GB, free: 30.37 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.859e-06/8.09, allocations: 0 / 3.281 GB, free: 30.37 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002797/8.09, allocations: 44.77 kB / 3.281 GB, free: 30.32 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005705/8.091, allocations: 99.97 kB / 3.281 GB, free: 30.23 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003234/8.091, allocations: 0.5446 MB / 3.281 GB, free: 29.66 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003609/8.092, allocations: 23.89 kB / 3.281 GB, free: 29.64 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.038e-05/8.092, allocations: 19.98 kB / 3.281 GB, free: 29.62 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (medium.phase,state.phase,state2.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000123/8.092, allocations: 129 kB / 3.281 GB, free: 29.48 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001208/8.092, allocations: 15.84 kB / 3.281 GB, free: 29.47 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002003/8.094, allocations: 1.431 MB / 3.283 GB, free: 28.02 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.912e-05/8.094, allocations: 27.95 kB / 3.283 GB, free: 27.99 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.762e-06/8.094, allocations: 0 / 3.283 GB, free: 27.99 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.016e-06/8.094, allocations: 3.984 kB / 3.283 GB, free: 27.98 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00285/8.097, allocations: 1.959 MB / 3.285 GB, free: 25.96 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.338e-06/8.097, allocations: 128 / 3.285 GB, free: 25.96 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005721/8.098, allocations: 87.86 kB / 3.285 GB, free: 25.88 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003872/8.098, allocations: 72.7 kB / 3.285 GB, free: 25.8 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.839e-05/8.098, allocations: 15.98 kB / 3.285 GB, free: 25.79 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003281/8.098, allocations: 0.5914 MB / 3.286 GB, free: 25.17 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/8.098, allocations: 0 / 3.286 GB, free: 25.17 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00186/8.1, allocations: 1.683 MB / 3.287 GB, free: 23.41 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.471e-05/8.1, allocations: 128.4 kB / 3.287 GB, free: 23.27 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.167e-05/8.101, allocations: 19.95 kB / 3.287 GB, free: 23.25 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000508/8.101, allocations: 23.72 kB / 3.287 GB, free: 23.23 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.071e-05/8.101, allocations: 27.95 kB / 3.287 GB, free: 23.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.729e-05/8.101, allocations: 19.98 kB / 3.287 GB, free: 23.18 MB / 442.7 MB Notification: Performance of sorting global known variables: time 5.806e-05/8.101, allocations: 99.2 kB / 3.288 GB, free: 23.08 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.01e-07/8.101, allocations: 3.938 kB / 3.288 GB, free: 23.08 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004078/8.105, allocations: 0.964 MB / 3.288 GB, free: 22.11 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (medium.p,medium.h,V) * Number of discrete variables: 11 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,medium.phase,$cse1.phase,$cse1.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 31 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.007584/8.113, allocations: 1.234 MB / 3.29 GB, free: 20.87 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001208/8.114, allocations: 0.5465 MB / 3.29 GB, free: 20.33 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.269e-06/8.114, allocations: 448 / 3.29 GB, free: 20.33 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007203/8.115, allocations: 492.7 kB / 3.291 GB, free: 19.84 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007465/8.116, allocations: 77.89 kB / 3.291 GB, free: 19.77 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002114/8.118, allocations: 1.057 MB / 3.292 GB, free: 18.68 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002752/8.118, allocations: 0.8256 MB / 3.293 GB, free: 17.82 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0005116/8.119, allocations: 137.9 kB / 3.293 GB, free: 17.68 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001641/8.119, allocations: 35.42 kB / 3.293 GB, free: 17.65 MB / 442.7 MB Notification: Performance of SimCode: time 1.721e-06/8.119, allocations: 0 / 3.293 GB, free: 17.65 MB / 442.7 MB Notification: Performance of Templates: time 0.329/8.448, allocations: 27.39 MB / 3.32 GB, free: 90.88 MB / 442.7 MB