Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.|tank2.aboveLevel.2.|tank2.aboveLevel.3.|tank3.aboveLevel.1.|tank3.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 2.126/2.126, allocations: 205.8 MB / 218.9 MB, free: 9.27 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.407e-05/3.456e-05, allocations: 7.984 kB / 269.4 MB, free: 6.398 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09192/0.09198, allocations: 47.57 MB / 316.9 MB, free: 6.742 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9326/1.025, allocations: 326.7 MB / 0.6286 GB, free: 40.93 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002528/1.025, allocations: 87.45 kB / 0.6287 GB, free: 40.89 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.539/2.564, allocations: 325 MB / 0.9461 GB, free: 54.14 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.562e-06/2.564, allocations: 0 / 0.9461 GB, free: 54.14 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001899/2.565, allocations: 42.73 kB / 0.9461 GB, free: 54.1 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.006565/2.571, allocations: 2.038 MB / 0.9481 GB, free: 52.09 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/2.571, allocations: 11.2 kB / 0.9481 GB, free: 52.08 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001177/2.573, allocations: 205.7 kB / 0.9483 GB, free: 51.88 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003315/2.576, allocations: 1.186 MB / 0.9495 GB, free: 50.66 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001137/2.576, allocations: 101.8 kB / 0.9495 GB, free: 50.57 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000317/2.576, allocations: 127.8 kB / 0.9497 GB, free: 50.46 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004005/2.58, allocations: 1.898 MB / 0.9515 GB, free: 48.48 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.598e-05/2.58, allocations: 10.31 kB / 0.9515 GB, free: 48.47 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002341/2.581, allocations: 50.64 kB / 0.9516 GB, free: 48.43 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001674/2.581, allocations: 114.3 kB / 0.9517 GB, free: 48.32 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004083/2.585, allocations: 1.902 MB / 0.9535 GB, free: 46.41 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01451/2.6, allocations: 7.675 MB / 0.961 GB, free: 38.43 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002547/2.602, allocations: 1.136 MB / 0.9622 GB, free: 37.29 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001507/2.604, allocations: 0.7413 MB / 0.9629 GB, free: 36.54 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006165/2.61, allocations: 3.465 MB / 0.9663 GB, free: 32.85 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.159e-05/2.61, allocations: 46.5 kB / 0.9663 GB, free: 32.8 MB / 426.7 MB Notification: Performance of pre-optimization done (n=119): time 4.452e-06/2.61, allocations: 0 / 0.9663 GB, free: 32.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=134): time 0.01193/2.622, allocations: 4.125 MB / 0.9703 GB, free: 28.65 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.388e-05/2.622, allocations: 170.9 kB / 0.9705 GB, free: 28.45 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002246/2.624, allocations: 1.235 MB / 0.9717 GB, free: 27.21 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003796/2.625, allocations: 61.7 kB / 0.9718 GB, free: 27.14 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005573/2.625, allocations: 0.7066 MB / 0.9724 GB, free: 26.44 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004993/2.626, allocations: 463.9 kB / 0.9729 GB, free: 25.99 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001587/2.626, allocations: 36 kB / 0.9729 GB, free: 25.95 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001225/2.626, allocations: 373.9 kB / 0.9733 GB, free: 25.58 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001599/2.628, allocations: 0.7366 MB / 0.974 GB, free: 24.85 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001843/2.63, allocations: 1.129 MB / 0.9751 GB, free: 23.56 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001865/2.631, allocations: 0.8568 MB / 0.9759 GB, free: 22.71 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.093e-05/2.631, allocations: 4 kB / 0.9759 GB, free: 22.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.005276/2.637, allocations: 2.327 MB / 0.9782 GB, free: 20.36 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008203/2.638, allocations: 4.347 MB / 0.9825 GB, free: 15.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.153e-05/2.638, allocations: 12 kB / 0.9825 GB, free: 15.73 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006651/2.644, allocations: 0.9355 MB / 0.9834 GB, free: 14.79 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001931/2.646, allocations: 347.5 kB / 0.9837 GB, free: 14.45 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002872/2.649, allocations: 2.892 MB / 0.9865 GB, free: 11.45 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002311/2.652, allocations: 135.9 kB / 0.9867 GB, free: 11.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003158/2.652, allocations: 87.8 kB / 0.9868 GB, free: 11.24 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/2.652, allocations: 4 kB / 0.9868 GB, free: 11.23 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0045/2.656, allocations: 2.034 MB / 0.9887 GB, free: 9.188 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.825e-05/2.656, allocations: 12 kB / 0.9888 GB, free: 9.176 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00511/2.662, allocations: 0.6749 MB / 0.9894 GB, free: 8.488 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002021/2.664, allocations: 362.9 kB / 0.9898 GB, free: 8.137 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002224/2.666, allocations: 2.643 MB / 0.9923 GB, free: 5.391 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002283/2.668, allocations: 131.8 kB / 0.9925 GB, free: 5.262 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002971/2.669, allocations: 71.98 kB / 0.9925 GB, free: 5.191 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (200): * Single equations (assignments): 196 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0005283/2.669, allocations: 230.1 kB / 0.9928 GB, free: 4.961 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004257/2.67, allocations: 169.9 kB / 0.9929 GB, free: 4.793 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005676/2.675, allocations: 2.336 MB / 0.9952 GB, free: 2.449 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-05/2.675, allocations: 23.94 kB / 0.9952 GB, free: 2.426 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.499e-06/2.675, allocations: 0 / 0.9952 GB, free: 2.426 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.981e-05/2.675, allocations: 7.969 kB / 0.9952 GB, free: 2.418 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2734/2.949, allocations: 3.968 MB / 0.9991 GB, free: 55.63 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.772e-05/2.949, allocations: 1.469 kB / 0.9991 GB, free: 55.63 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001716/2.951, allocations: 249.4 kB / 0.9993 GB, free: 55.63 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005538/2.956, allocations: 0.8705 MB / 1 GB, free: 55.6 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003667/2.957, allocations: 40.23 kB / 1 GB, free: 55.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00282/2.959, allocations: 2.834 MB / 1.003 GB, free: 53.54 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.872e-06/2.96, allocations: 5.188 kB / 1.003 GB, free: 53.54 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00776/2.967, allocations: 3.204 MB / 1.006 GB, free: 53.16 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008388/2.968, allocations: 278.7 kB / 1.006 GB, free: 53.07 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007127/2.969, allocations: 40.45 kB / 1.006 GB, free: 53.06 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001967/2.971, allocations: 107.3 kB / 1.007 GB, free: 53.06 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005557/2.971, allocations: 150.6 kB / 1.007 GB, free: 53.06 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002953/2.972, allocations: 65.91 kB / 1.007 GB, free: 53.06 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002503/2.974, allocations: 0.955 MB / 1.008 GB, free: 52.95 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.44e-07/2.974, allocations: 0 / 1.008 GB, free: 52.95 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006674/2.981, allocations: 1.379 MB / 1.009 GB, free: 52.95 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.medium.T,tank3.level,tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.004119/2.985, allocations: 1.27 MB / 1.01 GB, free: 52.81 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00819/2.993, allocations: 2.969 MB / 1.013 GB, free: 52.77 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.158e-05/2.994, allocations: 0.8438 kB / 1.013 GB, free: 52.77 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002945/2.996, allocations: 1.047 MB / 1.014 GB, free: 52.77 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005076/3.002, allocations: 0.7315 MB / 1.015 GB, free: 52.75 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006661/3.008, allocations: 2.813 MB / 1.018 GB, free: 52.14 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001121/3.009, allocations: 1.439 MB / 1.019 GB, free: 51.41 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.004748/3.014, allocations: 0.827 MB / 1.02 GB, free: 51.38 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00073/3.015, allocations: 136.6 kB / 1.02 GB, free: 51.38 MB / 426.7 MB Notification: Performance of SimCode: time 2.529e-06/3.015, allocations: 0 / 1.02 GB, free: 51.38 MB / 426.7 MB Notification: Performance of Templates: time 0.1061/3.121, allocations: 50.45 MB / 1.069 GB, free: 48.23 MB / 426.7 MB