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_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 1.791/1.791, allocations: 194.9 MB / 208 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.763e-05/2.78e-05, allocations: 4 kB / 255.4 MB, free: 2.691 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07967/0.07972, allocations: 44.5 MB / 299.9 MB, free: 6.129 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8331/0.9128, allocations: 319.3 MB / 0.6047 GB, free: 70.28 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000241/0.9131, allocations: 86.7 kB / 0.6048 GB, free: 70.24 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8478/1.761, allocations: 190.2 MB / 0.7905 GB, free: 53.99 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.136e-06/1.761, allocations: 0 / 0.7905 GB, free: 53.99 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001565/1.761, allocations: 23.98 kB / 0.7905 GB, free: 53.96 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.003149/1.764, allocations: 1.289 MB / 0.7917 GB, free: 52.62 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.112e-05/1.764, allocations: 12.03 kB / 0.7918 GB, free: 52.61 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005884/1.765, allocations: 114.8 kB / 0.7919 GB, free: 52.5 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001925/1.767, allocations: 0.7684 MB / 0.7926 GB, free: 51.69 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.356e-05/1.767, allocations: 53.3 kB / 0.7927 GB, free: 51.64 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001461/1.767, allocations: 63.89 kB / 0.7927 GB, free: 51.58 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001941/1.769, allocations: 1.032 MB / 0.7937 GB, free: 50.48 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.721e-05/1.769, allocations: 3.953 kB / 0.7937 GB, free: 50.48 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001221/1.769, allocations: 27.98 kB / 0.7938 GB, free: 50.45 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001031/1.769, allocations: 69.27 kB / 0.7938 GB, free: 50.39 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001842/1.771, allocations: 0.9747 MB / 0.7948 GB, free: 49.41 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007215/1.778, allocations: 4.4 MB / 0.7991 GB, free: 44.74 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001004/1.78, allocations: 0.5217 MB / 0.7996 GB, free: 44.21 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005356/1.78, allocations: 290.1 kB / 0.7999 GB, free: 43.93 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00267/1.783, allocations: 2.008 MB / 0.8018 GB, free: 41.7 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.438e-05/1.783, allocations: 38.88 kB / 0.8019 GB, free: 41.66 MB / 410.7 MB Notification: Performance of pre-optimization done (n=40): time 3.796e-06/1.783, allocations: 0 / 0.8019 GB, free: 41.66 MB / 410.7 MB Notification: Performance of matching and sorting (n=45): time 0.003581/1.786, allocations: 1.454 MB / 0.8033 GB, free: 40.14 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.627e-05/1.786, allocations: 166.2 kB / 0.8034 GB, free: 39.95 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00112/1.788, allocations: 0.7269 MB / 0.8042 GB, free: 39.21 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.193e-05/1.788, allocations: 41.7 kB / 0.8042 GB, free: 39.17 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003316/1.788, allocations: 494.4 kB / 0.8047 GB, free: 38.68 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001425/1.788, allocations: 165.7 kB / 0.8048 GB, free: 38.51 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.264e-05/1.788, allocations: 16 kB / 0.8048 GB, free: 38.5 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001363/1.788, allocations: 398.6 kB / 0.8052 GB, free: 38.1 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006078/1.789, allocations: 297.9 kB / 0.8055 GB, free: 37.8 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007536/1.79, allocations: 0.6424 MB / 0.8061 GB, free: 37 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007365/1.791, allocations: 402.9 kB / 0.8065 GB, free: 36.6 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.002e-06/1.791, allocations: 4 kB / 0.8065 GB, free: 36.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.002277/1.793, allocations: 1.054 MB / 0.8075 GB, free: 35.53 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008447/1.794, allocations: 4.447 MB / 0.8119 GB, free: 30.73 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.904e-05/1.794, allocations: 12 kB / 0.8119 GB, free: 30.72 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002297/1.796, allocations: 309.4 kB / 0.8122 GB, free: 30.41 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009371/1.797, allocations: 195.7 kB / 0.8124 GB, free: 30.22 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001123/1.798, allocations: 1.319 MB / 0.8137 GB, free: 28.85 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001069/1.799, allocations: 64.09 kB / 0.8137 GB, free: 28.79 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001141/1.799, allocations: 43.98 kB / 0.8138 GB, free: 28.75 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.117e-05/1.799, allocations: 4 kB / 0.8138 GB, free: 28.74 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001893/1.801, allocations: 0.9407 MB / 0.8147 GB, free: 27.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.556e-05/1.801, allocations: 8.156 kB / 0.8147 GB, free: 27.79 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002027/1.803, allocations: 293.4 kB / 0.815 GB, free: 27.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008246/1.804, allocations: 191.7 kB / 0.8152 GB, free: 27.31 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009744/1.805, allocations: 1.284 MB / 0.8164 GB, free: 25.97 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009561/1.806, allocations: 63.88 kB / 0.8165 GB, free: 25.91 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001037/1.806, allocations: 47.98 kB / 0.8165 GB, free: 25.86 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.0002486/1.807, allocations: 172.8 kB / 0.8167 GB, free: 25.69 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001701/1.807, allocations: 90.95 kB / 0.8168 GB, free: 25.6 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001989/1.809, allocations: 0.7562 MB / 0.8175 GB, free: 24.82 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.829e-06/1.809, allocations: 8 kB / 0.8175 GB, free: 24.82 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.636e-06/1.809, allocations: 3.984 kB / 0.8175 GB, free: 24.81 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.216e-06/1.809, allocations: 0 / 0.8175 GB, free: 24.81 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002897/1.812, allocations: 1.536 MB / 0.819 GB, free: 23.21 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.007e-06/1.812, allocations: 3.938 kB / 0.819 GB, free: 23.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004868/1.812, allocations: 79.89 kB / 0.8191 GB, free: 23.12 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001776/1.814, allocations: 281.5 kB / 0.8194 GB, free: 22.84 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.822e-05/1.814, allocations: 15.98 kB / 0.8194 GB, free: 22.83 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001013/1.815, allocations: 1.3 MB / 0.8207 GB, free: 21.48 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.871e-06/1.815, allocations: 0 / 0.8207 GB, free: 21.48 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001905/1.817, allocations: 1.079 MB / 0.8217 GB, free: 20.36 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002825/1.817, allocations: 187.8 kB / 0.8219 GB, free: 20.15 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001685/1.818, allocations: 12 kB / 0.8219 GB, free: 20.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006519/1.818, allocations: 43.98 kB / 0.8219 GB, free: 20.1 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001334/1.818, allocations: 52.36 kB / 0.822 GB, free: 20.05 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.204e-05/1.819, allocations: 16 kB / 0.822 GB, free: 20.03 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000881/1.819, allocations: 0.5538 MB / 0.8226 GB, free: 19.48 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.04e-07/1.819, allocations: 0 / 0.8226 GB, free: 19.48 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002704/1.822, allocations: 0.8039 MB / 0.8233 GB, free: 18.68 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.001957/1.824, allocations: 0.8232 MB / 0.8241 GB, free: 17.85 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002927/1.827, allocations: 1.221 MB / 0.8253 GB, free: 16.63 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.969e-06/1.827, allocations: 0 / 0.8253 GB, free: 16.63 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001016/1.828, allocations: 343.2 kB / 0.8257 GB, free: 16.3 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001705/1.83, allocations: 314.1 kB / 0.826 GB, free: 16 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002853/1.833, allocations: 1.33 MB / 0.8273 GB, free: 14.64 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005672/1.833, allocations: 1.054 MB / 0.8283 GB, free: 13.55 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001808/1.835, allocations: 406 kB / 0.8287 GB, free: 13.16 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001998/1.835, allocations: 63.42 kB / 0.8287 GB, free: 13.09 MB / 410.7 MB Notification: Performance of SimCode: time 1.829e-06/1.835, allocations: 4 kB / 0.8287 GB, free: 13.09 MB / 410.7 MB Notification: Performance of Templates: time 0.3474/2.183, allocations: 23.29 MB / 0.8515 GB, free: 76.34 MB / 410.7 MB