Running command: translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Media.Examples.WaterIF97") Notification: Performance of loadModel(Modelica): time 1.816/1.816, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.934e-05/2.953e-05, allocations: 2.125 kB / 255.3 MB, free: 3.184 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07845/0.07851, allocations: 44.5 MB / 299.8 MB, free: 6.645 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.15/6.229, allocations: 2.614 GB / 2.907 GB, free: 90.28 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002136/6.229, allocations: 67.97 kB / 2.907 GB, free: 90.28 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3599/6.589, allocations: 107.1 MB / 3.012 GB, free: 27.88 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.774e-06/6.589, allocations: 0 / 3.012 GB, free: 27.88 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.377e-05/6.589, allocations: 4 kB / 3.012 GB, free: 27.87 MB / 410.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.006454/6.595, allocations: 1.142 MB / 3.013 GB, free: 26.71 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/6.595, allocations: 12.03 kB / 3.013 GB, free: 26.7 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006032/6.596, allocations: 52.16 kB / 3.013 GB, free: 26.64 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002535/6.596, allocations: 228.4 kB / 3.013 GB, free: 26.4 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.873e-05/6.596, allocations: 7.969 kB / 3.013 GB, free: 26.39 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.02e-05/6.596, allocations: 19.31 kB / 3.013 GB, free: 26.38 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00117/6.598, allocations: 369.8 kB / 3.013 GB, free: 26.06 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.897e-05/6.598, allocations: 3.938 kB / 3.013 GB, free: 26.06 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.68e-05/6.598, allocations: 10.62 kB / 3.013 GB, free: 26.05 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.323e-06/6.598, allocations: 8 kB / 3.014 GB, free: 26.05 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001139/6.599, allocations: 306.5 kB / 3.014 GB, free: 25.82 MB / 410.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.001393/6.6, allocations: 1.194 MB / 3.015 GB, free: 24.62 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007598/6.601, allocations: 265.6 kB / 3.015 GB, free: 24.39 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001749/6.601, allocations: 91.81 kB / 3.015 GB, free: 24.32 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3254/6.927, allocations: 47.34 MB / 3.062 GB, free: 62.71 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.267e-05/6.927, allocations: 44.23 kB / 3.062 GB, free: 62.67 MB / 410.7 MB Notification: Performance of pre-optimization done (n=23): time 3.103e-06/6.927, allocations: 0 / 3.062 GB, free: 62.67 MB / 410.7 MB Notification: Performance of matching and sorting (n=33): time 0.006766/6.934, allocations: 1.418 MB / 3.063 GB, free: 62.39 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.251e-05/6.934, allocations: 107.9 kB / 3.063 GB, free: 62.27 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.647e-05/6.934, allocations: 113.7 kB / 3.063 GB, free: 62.18 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.697e-05/6.934, allocations: 32.7 kB / 3.063 GB, free: 62.14 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.21e-05/6.934, allocations: 177.9 kB / 3.063 GB, free: 61.98 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.168e-05/6.934, allocations: 119.9 kB / 3.063 GB, free: 61.92 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.795e-05/6.934, allocations: 3.938 kB / 3.063 GB, free: 61.92 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.922e-05/6.934, allocations: 330.4 kB / 3.064 GB, free: 61.61 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002389/6.934, allocations: 101.7 kB / 3.064 GB, free: 61.61 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002718/6.935, allocations: 176.1 kB / 3.064 GB, free: 61.54 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002977/6.935, allocations: 120.1 kB / 3.064 GB, free: 61.54 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.81e-06/6.935, allocations: 6.922 kB / 3.064 GB, free: 61.54 MB / 410.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009225/6.936, allocations: 357.3 kB / 3.065 GB, free: 61.49 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/6.936, allocations: 7.906 kB / 3.065 GB, free: 61.49 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.032e-06/6.936, allocations: 4.578 kB / 3.065 GB, free: 61.49 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002767/6.936, allocations: 41.19 kB / 3.065 GB, free: 61.48 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005521/6.937, allocations: 89.44 kB / 3.065 GB, free: 61.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003275/6.937, allocations: 0.5538 MB / 3.065 GB, free: 60.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003497/6.938, allocations: 25.91 kB / 3.065 GB, free: 60.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.894e-05/6.938, allocations: 20.64 kB / 3.065 GB, free: 60.96 MB / 410.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.0001224/6.938, allocations: 126.6 kB / 3.065 GB, free: 60.86 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001229/6.938, allocations: 18.25 kB / 3.065 GB, free: 60.85 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002088/6.94, allocations: 1.425 MB / 3.067 GB, free: 60.7 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.432e-05/6.94, allocations: 22.95 kB / 3.067 GB, free: 60.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.651e-06/6.94, allocations: 3.906 kB / 3.067 GB, free: 60.7 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.274e-06/6.94, allocations: 3.891 kB / 3.067 GB, free: 60.7 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002989/6.943, allocations: 1.96 MB / 3.069 GB, free: 60.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.268e-06/6.943, allocations: 0 / 3.069 GB, free: 60.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000633/6.944, allocations: 91.11 kB / 3.069 GB, free: 60.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004212/6.944, allocations: 74.92 kB / 3.069 GB, free: 60.29 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.643e-05/6.944, allocations: 11.12 kB / 3.069 GB, free: 60.29 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003372/6.945, allocations: 0.5935 MB / 3.069 GB, free: 59.77 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.725e-06/6.945, allocations: 7.344 kB / 3.069 GB, free: 59.77 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001944/6.947, allocations: 1.674 MB / 3.071 GB, free: 59.3 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.127e-05/6.947, allocations: 124.9 kB / 3.071 GB, free: 59.19 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.991e-05/6.947, allocations: 10.91 kB / 3.071 GB, free: 59.19 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005437/6.947, allocations: 30.12 kB / 3.071 GB, free: 59.18 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.279e-05/6.947, allocations: 34.06 kB / 3.071 GB, free: 59.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.61e-05/6.947, allocations: 18.78 kB / 3.071 GB, free: 59.18 MB / 410.7 MB Notification: Performance of sorting global known variables: time 5.449e-05/6.948, allocations: 93.62 kB / 3.071 GB, free: 59.11 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.05e-07/6.948, allocations: 0 / 3.071 GB, free: 59.11 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003871/6.951, allocations: 0.961 MB / 3.072 GB, free: 59.11 MB / 410.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.006816/6.958, allocations: 1.243 MB / 3.074 GB, free: 59.01 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001212/6.96, allocations: 0.5612 MB / 3.074 GB, free: 59 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.331e-06/6.96, allocations: 3.781 kB / 3.074 GB, free: 59 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007056/6.96, allocations: 491.1 kB / 3.075 GB, free: 59 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007698/6.961, allocations: 75.55 kB / 3.075 GB, free: 58.99 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00223/6.963, allocations: 1.083 MB / 3.076 GB, free: 58.75 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000282/6.964, allocations: 0.8267 MB / 3.077 GB, free: 58.04 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001971/6.964, allocations: 37.98 kB / 3.077 GB, free: 58.04 MB / 410.7 MB Notification: Performance of SimCode: time 1.9e-06/6.964, allocations: 0 / 3.077 GB, free: 58.04 MB / 410.7 MB Notification: Performance of Templates: time 0.03875/7.003, allocations: 23.65 MB / 3.1 GB, free: 55.71 MB / 410.7 MB