Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 1.79/1.79, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.111e-05/3.17e-05, allocations: 3.312 kB / 255.3 MB, free: 3.191 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07981/0.07986, allocations: 44.5 MB / 299.8 MB, free: 6.641 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.772/0.8519, allocations: 319.3 MB / 0.6046 GB, free: 88.21 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002329/0.8522, allocations: 83.95 kB / 0.6047 GB, free: 88.13 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.881/1.733, allocations: 190.1 MB / 0.7904 GB, free: 64.07 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.128e-06/1.733, allocations: 0 / 0.7904 GB, free: 64.07 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.656e-05/1.733, allocations: 24 kB / 0.7904 GB, free: 64.05 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.003201/1.737, allocations: 1.3 MB / 0.7917 GB, free: 62.72 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/1.737, allocations: 8.031 kB / 0.7917 GB, free: 62.71 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000612/1.737, allocations: 118.7 kB / 0.7918 GB, free: 62.6 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002014/1.739, allocations: 0.7678 MB / 0.7925 GB, free: 61.8 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.451e-05/1.739, allocations: 49.14 kB / 0.7926 GB, free: 61.76 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001584/1.74, allocations: 59.83 kB / 0.7927 GB, free: 61.7 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001988/1.742, allocations: 1.042 MB / 0.7937 GB, free: 60.61 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.664e-05/1.742, allocations: 7.938 kB / 0.7937 GB, free: 60.61 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001264/1.742, allocations: 31.75 kB / 0.7937 GB, free: 60.58 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000118/1.742, allocations: 69.16 kB / 0.7938 GB, free: 60.51 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001974/1.744, allocations: 0.9889 MB / 0.7947 GB, free: 59.52 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007471/1.751, allocations: 4.403 MB / 0.799 GB, free: 54.89 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001038/1.752, allocations: 0.5431 MB / 0.7996 GB, free: 54.34 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005222/1.753, allocations: 294 kB / 0.7999 GB, free: 54.05 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002855/1.756, allocations: 1.988 MB / 0.8018 GB, free: 51.86 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.993e-05/1.756, allocations: 46.81 kB / 0.8018 GB, free: 51.8 MB / 410.7 MB Notification: Performance of pre-optimization done (n=40): time 3.344e-06/1.756, allocations: 0 / 0.8018 GB, free: 51.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=45): time 0.003729/1.76, allocations: 1.446 MB / 0.8032 GB, free: 50.3 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.781e-05/1.76, allocations: 158.2 kB / 0.8034 GB, free: 50.11 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001146/1.761, allocations: 0.7425 MB / 0.8041 GB, free: 49.36 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.807e-05/1.761, allocations: 33.7 kB / 0.8042 GB, free: 49.32 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002933/1.761, allocations: 0.5082 MB / 0.8047 GB, free: 48.81 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001501/1.762, allocations: 165.7 kB / 0.8048 GB, free: 48.65 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.549e-05/1.762, allocations: 20 kB / 0.8048 GB, free: 48.63 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.321e-05/1.762, allocations: 338.8 kB / 0.8052 GB, free: 48.29 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006273/1.762, allocations: 301.8 kB / 0.8054 GB, free: 48 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007566/1.763, allocations: 0.6483 MB / 0.8061 GB, free: 47.18 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007281/1.764, allocations: 402.9 kB / 0.8065 GB, free: 46.78 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.959e-06/1.764, allocations: 4 kB / 0.8065 GB, free: 46.78 MB / 410.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.002173/1.766, allocations: 1.035 MB / 0.8075 GB, free: 45.73 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008476/1.767, allocations: 4.445 MB / 0.8118 GB, free: 40.94 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.84e-05/1.767, allocations: 11.98 kB / 0.8118 GB, free: 40.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002317/1.769, allocations: 309.4 kB / 0.8121 GB, free: 40.62 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009521/1.77, allocations: 199.7 kB / 0.8123 GB, free: 40.42 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001188/1.771, allocations: 1.323 MB / 0.8136 GB, free: 39.05 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001208/1.773, allocations: 64.09 kB / 0.8137 GB, free: 38.98 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001085/1.773, allocations: 47.98 kB / 0.8137 GB, free: 38.94 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/1.773, allocations: 4 kB / 0.8137 GB, free: 38.93 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001952/1.775, allocations: 0.9748 MB / 0.8147 GB, free: 37.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.56e-05/1.775, allocations: 8.906 kB / 0.8147 GB, free: 37.95 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00192/1.777, allocations: 281.6 kB / 0.8149 GB, free: 37.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008462/1.778, allocations: 191.7 kB / 0.8151 GB, free: 37.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001046/1.779, allocations: 1.276 MB / 0.8164 GB, free: 36.15 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008697/1.78, allocations: 68.08 kB / 0.8164 GB, free: 36.08 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001003/1.78, allocations: 44 kB / 0.8165 GB, free: 36.04 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (109): * Single equations (assignments): 107 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002687/1.78, allocations: 169.5 kB / 0.8166 GB, free: 35.87 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002166/1.78, allocations: 86.92 kB / 0.8167 GB, free: 35.78 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002017/1.782, allocations: 0.7644 MB / 0.8175 GB, free: 35 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.403e-06/1.782, allocations: 4 kB / 0.8175 GB, free: 35 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.406e-06/1.782, allocations: 4 kB / 0.8175 GB, free: 35 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.274e-06/1.782, allocations: 3.984 kB / 0.8175 GB, free: 34.99 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003042/1.785, allocations: 1.536 MB / 0.819 GB, free: 33.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.589e-06/1.785, allocations: 4.062 kB / 0.819 GB, free: 33.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005032/1.786, allocations: 75.91 kB / 0.8191 GB, free: 33.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001939/1.788, allocations: 289 kB / 0.8193 GB, free: 33.04 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.935e-05/1.788, allocations: 12 kB / 0.8193 GB, free: 33.03 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001091/1.789, allocations: 1.303 MB / 0.8206 GB, free: 31.68 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.304e-06/1.789, allocations: 4.125 kB / 0.8206 GB, free: 31.67 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002046/1.791, allocations: 1.075 MB / 0.8217 GB, free: 30.55 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003122/1.792, allocations: 176 kB / 0.8218 GB, free: 30.36 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001898/1.792, allocations: 20 kB / 0.8219 GB, free: 30.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007337/1.792, allocations: 39.91 kB / 0.8219 GB, free: 30.3 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001382/1.793, allocations: 60.25 kB / 0.822 GB, free: 30.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.417e-05/1.793, allocations: 16 kB / 0.822 GB, free: 30.23 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0009361/1.794, allocations: 0.5577 MB / 0.8225 GB, free: 29.68 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.68e-07/1.794, allocations: 0 / 0.8225 GB, free: 29.68 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002896/1.797, allocations: 0.7961 MB / 0.8233 GB, free: 28.88 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (tank1.medium.T,tank1.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001992/1.799, allocations: 0.801 MB / 0.8241 GB, free: 28.13 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002933/1.802, allocations: 1.217 MB / 0.8253 GB, free: 26.91 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.462e-06/1.802, allocations: 4.188 kB / 0.8253 GB, free: 26.91 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001035/1.803, allocations: 346.2 kB / 0.8256 GB, free: 26.57 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001753/1.804, allocations: 314 kB / 0.8259 GB, free: 26.27 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003087/1.808, allocations: 1.383 MB / 0.8272 GB, free: 24.84 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005595/1.808, allocations: 1.053 MB / 0.8283 GB, free: 23.76 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003535/1.809, allocations: 83.36 kB / 0.8284 GB, free: 23.68 MB / 410.7 MB Notification: Performance of SimCode: time 2.1e-06/1.809, allocations: 0 / 0.8284 GB, free: 23.68 MB / 410.7 MB Notification: Performance of Templates: time 0.2657/2.074, allocations: 25.1 MB / 0.8529 GB, free: 82.39 MB / 410.7 MB