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.845/1.845, allocations: 194.9 MB / 208.5 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.16e-05/3.178e-05, allocations: 7.938 kB / 255.3 MB, free: 3.184 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07744/0.0775, allocations: 44.5 MB / 299.8 MB, free: 6.621 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.826/5.904, allocations: 2.614 GB / 2.907 GB, free: 50.73 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001912/5.904, allocations: 71.91 kB / 2.907 GB, free: 50.66 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5672/6.471, allocations: 107 MB / 3.012 GB, free: 92.12 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.017e-06/6.471, allocations: 0 / 3.012 GB, free: 92.12 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.372e-05/6.471, allocations: 3.906 kB / 3.012 GB, free: 92.12 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.006395/6.478, allocations: 1.145 MB / 3.013 GB, free: 91.49 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/6.478, allocations: 8.625 kB / 3.013 GB, free: 91.49 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006662/6.478, allocations: 57.17 kB / 3.013 GB, free: 91.48 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002505/6.479, allocations: 222.3 kB / 3.013 GB, free: 91.27 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.319e-05/6.479, allocations: 9.406 kB / 3.013 GB, free: 91.27 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.613e-05/6.479, allocations: 17.28 kB / 3.013 GB, free: 91.27 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00118/6.48, allocations: 367.8 kB / 3.014 GB, free: 91.16 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.924e-05/6.48, allocations: 0 / 3.014 GB, free: 91.16 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.68e-05/6.48, allocations: 19.25 kB / 3.014 GB, free: 91.16 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.735e-06/6.48, allocations: 7.656 kB / 3.014 GB, free: 91.15 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001255/6.481, allocations: 298.7 kB / 3.014 GB, free: 91.15 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.001382/6.483, allocations: 1.196 MB / 3.015 GB, free: 90.14 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007413/6.484, allocations: 258.4 kB / 3.015 GB, free: 90.06 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000177/6.484, allocations: 94.52 kB / 3.015 GB, free: 90.04 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.101/6.585, allocations: 47.34 MB / 3.062 GB, free: 49.51 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.975e-05/6.585, allocations: 42.75 kB / 3.062 GB, free: 49.46 MB / 410.7 MB Notification: Performance of pre-optimization done (n=23): time 3.073e-06/6.585, allocations: 0 / 3.062 GB, free: 49.46 MB / 410.7 MB Notification: Performance of matching and sorting (n=33): time 0.006347/6.591, allocations: 1.428 MB / 3.063 GB, free: 48.22 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.109e-05/6.591, allocations: 106.8 kB / 3.063 GB, free: 48.09 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.768e-05/6.591, allocations: 114.2 kB / 3.063 GB, free: 47.98 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.627e-05/6.591, allocations: 29.7 kB / 3.063 GB, free: 47.95 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.879e-05/6.591, allocations: 175 kB / 3.063 GB, free: 47.77 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.636e-05/6.592, allocations: 113.8 kB / 3.064 GB, free: 47.68 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.824e-05/6.592, allocations: 11.94 kB / 3.064 GB, free: 47.66 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.859e-05/6.592, allocations: 326.7 kB / 3.064 GB, free: 47.34 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002408/6.592, allocations: 107.9 kB / 3.064 GB, free: 47.23 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002669/6.592, allocations: 166.7 kB / 3.064 GB, free: 47.05 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002682/6.592, allocations: 119.9 kB / 3.064 GB, free: 46.95 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.603e-06/6.592, allocations: 0 / 3.064 GB, free: 46.95 MB / 410.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008539/6.593, allocations: 372.4 kB / 3.065 GB, free: 46.61 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/6.593, allocations: 8 kB / 3.065 GB, free: 46.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.196e-06/6.593, allocations: 224 / 3.065 GB, free: 46.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000268/6.594, allocations: 36.66 kB / 3.065 GB, free: 46.56 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005695/6.594, allocations: 94.88 kB / 3.065 GB, free: 46.49 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003141/6.595, allocations: 0.5365 MB / 3.065 GB, free: 45.93 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003472/6.595, allocations: 35.39 kB / 3.065 GB, free: 45.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.942e-05/6.595, allocations: 16 kB / 3.065 GB, free: 45.89 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.0001141/6.595, allocations: 132 kB / 3.065 GB, free: 45.75 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001211/6.595, allocations: 19.81 kB / 3.065 GB, free: 45.73 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001951/6.597, allocations: 1.43 MB / 3.067 GB, free: 44.43 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-05/6.597, allocations: 21.28 kB / 3.067 GB, free: 44.41 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.724e-06/6.597, allocations: 0 / 3.067 GB, free: 44.41 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.623e-06/6.597, allocations: 7.562 kB / 3.067 GB, free: 44.41 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002955/6.6, allocations: 1.958 MB / 3.069 GB, free: 42.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.195e-06/6.6, allocations: 4 kB / 3.069 GB, free: 42.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006275/6.601, allocations: 86.69 kB / 3.069 GB, free: 42.53 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004301/6.601, allocations: 75.59 kB / 3.069 GB, free: 42.47 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.588e-05/6.601, allocations: 15.8 kB / 3.069 GB, free: 42.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000324/6.602, allocations: 0.5815 MB / 3.069 GB, free: 41.86 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.675e-06/6.602, allocations: 4.031 kB / 3.069 GB, free: 41.86 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001934/6.604, allocations: 1.683 MB / 3.071 GB, free: 40.22 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.274e-05/6.604, allocations: 124.5 kB / 3.071 GB, free: 40.08 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.856e-05/6.604, allocations: 8 kB / 3.071 GB, free: 40.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005257/6.604, allocations: 31.78 kB / 3.071 GB, free: 40.05 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.687e-05/6.605, allocations: 31.47 kB / 3.071 GB, free: 40.03 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.671e-05/6.605, allocations: 15.33 kB / 3.071 GB, free: 40.02 MB / 410.7 MB Notification: Performance of sorting global known variables: time 5.196e-05/6.605, allocations: 99.17 kB / 3.071 GB, free: 39.92 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.62e-07/6.605, allocations: 0 / 3.071 GB, free: 39.92 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003752/6.608, allocations: 0.9621 MB / 3.072 GB, free: 38.98 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.005873/6.614, allocations: 1.239 MB / 3.074 GB, free: 37.84 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001165/6.616, allocations: 0.5447 MB / 3.074 GB, free: 37.33 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.32e-06/6.616, allocations: 0 / 3.074 GB, free: 37.33 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006939/6.616, allocations: 494.8 kB / 3.075 GB, free: 36.87 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007389/6.617, allocations: 67.84 kB / 3.075 GB, free: 36.82 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002066/6.619, allocations: 1.086 MB / 3.076 GB, free: 35.8 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002737/6.619, allocations: 0.8307 MB / 3.077 GB, free: 34.99 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001889/6.62, allocations: 42.98 kB / 3.077 GB, free: 34.96 MB / 410.7 MB Notification: Performance of SimCode: time 1.601e-06/6.62, allocations: 0 / 3.077 GB, free: 34.96 MB / 410.7 MB Notification: Performance of Templates: time 0.03594/6.656, allocations: 23.64 MB / 3.1 GB, free: 16.25 MB / 410.7 MB