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.916/1.916, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.11e-05/2.184e-05, allocations: 4 kB / 249.6 MB, free: 15.3 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2483/0.2484, allocations: 44.49 MB / 294.1 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.108/6.356, allocations: 2.614 GB / 2.901 GB, free: 49.13 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001878/6.357, allocations: 63.97 kB / 2.901 GB, free: 49.07 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5649/6.922, allocations: 105.2 MB / 3.004 GB, free: 80.56 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.2e-06/6.922, allocations: 0 / 3.004 GB, free: 80.56 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.241e-05/6.922, allocations: 0 / 3.004 GB, free: 80.56 MB / 394.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.006402/6.928, allocations: 1.15 MB / 3.005 GB, free: 79.89 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/6.928, allocations: 11.44 kB / 3.005 GB, free: 79.89 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006411/6.929, allocations: 51.09 kB / 3.005 GB, free: 79.88 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002547/6.929, allocations: 221.5 kB / 3.005 GB, free: 79.66 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.879e-05/6.929, allocations: 3.938 kB / 3.005 GB, free: 79.66 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.982e-05/6.929, allocations: 11.22 kB / 3.005 GB, free: 79.66 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004975/6.93, allocations: 211.3 kB / 3.005 GB, free: 79.58 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003454/6.93, allocations: 198 kB / 3.005 GB, free: 79.45 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.95e-05/6.93, allocations: 3.844 kB / 3.005 GB, free: 79.45 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.084e-05/6.93, allocations: 6.812 kB / 3.005 GB, free: 79.45 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.72e-06/6.93, allocations: 7.875 kB / 3.005 GB, free: 79.44 MB / 394.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.001423/6.932, allocations: 1.157 MB / 3.007 GB, free: 78.38 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002933/6.932, allocations: 170 kB / 3.007 GB, free: 78.27 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001581/6.932, allocations: 77.95 kB / 3.007 GB, free: 78.22 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09664/7.029, allocations: 47.35 MB / 3.053 GB, free: 35.12 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.976e-05/7.029, allocations: 42.45 kB / 3.053 GB, free: 35.07 MB / 394.7 MB Notification: Performance of pre-optimization done (n=23): time 2.92e-06/7.029, allocations: 0 / 3.053 GB, free: 35.07 MB / 394.7 MB Notification: Performance of matching and sorting (n=33): time 0.005893/7.035, allocations: 1.218 MB / 3.054 GB, free: 33.97 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.757e-05/7.035, allocations: 110.9 kB / 3.054 GB, free: 33.84 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.734e-05/7.035, allocations: 112.8 kB / 3.055 GB, free: 33.73 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.512e-05/7.035, allocations: 25.7 kB / 3.055 GB, free: 33.7 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.425e-05/7.035, allocations: 178.8 kB / 3.055 GB, free: 33.52 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.906e-05/7.035, allocations: 113.5 kB / 3.055 GB, free: 33.42 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.594e-05/7.035, allocations: 0 / 3.055 GB, free: 33.42 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 5.746e-05/7.035, allocations: 322.4 kB / 3.055 GB, free: 33.1 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00021/7.035, allocations: 96 kB / 3.055 GB, free: 33 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002346/7.036, allocations: 170.3 kB / 3.055 GB, free: 32.82 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009688/7.037, allocations: 175.3 kB / 3.056 GB, free: 32.67 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/7.037, allocations: 0 / 3.056 GB, free: 32.67 MB / 394.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001542/7.038, allocations: 388.2 kB / 3.056 GB, free: 32.32 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.11e-05/7.038, allocations: 11.95 kB / 3.056 GB, free: 32.31 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.989e-06/7.038, allocations: 0 / 3.056 GB, free: 32.31 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000199/7.038, allocations: 36.81 kB / 3.056 GB, free: 32.28 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005467/7.039, allocations: 91.17 kB / 3.056 GB, free: 32.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003645/7.039, allocations: 0.556 MB / 3.057 GB, free: 31.63 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003527/7.04, allocations: 23.89 kB / 3.057 GB, free: 31.61 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.494e-05/7.04, allocations: 19.89 kB / 3.057 GB, free: 31.59 MB / 394.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.0001234/7.04, allocations: 112.8 kB / 3.057 GB, free: 31.48 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001208/7.04, allocations: 11.91 kB / 3.057 GB, free: 31.46 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002163/7.042, allocations: 1.418 MB / 3.058 GB, free: 30.18 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.917e-05/7.042, allocations: 25.78 kB / 3.058 GB, free: 30.17 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.09e-06/7.042, allocations: 0 / 3.058 GB, free: 30.17 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.715e-06/7.042, allocations: 0 / 3.058 GB, free: 30.17 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003036/7.045, allocations: 1.875 MB / 3.06 GB, free: 28.45 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.249e-06/7.045, allocations: 3.938 kB / 3.06 GB, free: 28.45 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005491/7.046, allocations: 90.16 kB / 3.06 GB, free: 28.38 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002703/7.046, allocations: 71.7 kB / 3.06 GB, free: 28.32 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.378e-05/7.046, allocations: 7.656 kB / 3.06 GB, free: 28.32 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000364/7.047, allocations: 0.6136 MB / 3.061 GB, free: 27.7 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/7.047, allocations: 3.938 kB / 3.061 GB, free: 27.69 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002113/7.049, allocations: 1.664 MB / 3.062 GB, free: 26.07 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.502e-05/7.049, allocations: 131.7 kB / 3.063 GB, free: 25.93 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.715e-05/7.049, allocations: 4 kB / 3.063 GB, free: 25.92 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005319/7.05, allocations: 19.14 kB / 3.063 GB, free: 25.91 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.002e-05/7.05, allocations: 32.42 kB / 3.063 GB, free: 25.89 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.809e-05/7.05, allocations: 19.56 kB / 3.063 GB, free: 25.87 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.866e-05/7.05, allocations: 86.94 kB / 3.063 GB, free: 25.79 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.67e-07/7.05, allocations: 0 / 3.063 GB, free: 25.79 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003874/7.054, allocations: 0.9447 MB / 3.064 GB, free: 24.87 MB / 394.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.006443/7.06, allocations: 1.265 MB / 3.065 GB, free: 23.76 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001095/7.061, allocations: 0.5304 MB / 3.065 GB, free: 23.26 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.39e-06/7.061, allocations: 4 kB / 3.065 GB, free: 23.25 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006686/7.062, allocations: 483 kB / 3.066 GB, free: 22.81 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007232/7.063, allocations: 67.56 kB / 3.066 GB, free: 22.76 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002009/7.065, allocations: 1.053 MB / 3.067 GB, free: 21.77 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002709/7.065, allocations: 0.8307 MB / 3.068 GB, free: 20.96 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001888/7.065, allocations: 38.7 kB / 3.068 GB, free: 20.93 MB / 394.7 MB Notification: Performance of SimCode: time 2.701e-06/7.065, allocations: 3.938 kB / 3.068 GB, free: 20.93 MB / 394.7 MB Notification: Performance of Templates: time 0.03779/7.103, allocations: 24.42 MB / 3.092 GB, free: 388 kB / 394.7 MB