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.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 1.66/1.66, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.833e-05/2.855e-05, allocations: 4 kB / 225 MB, free: 2.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2119/0.2119, allocations: 38.76 MB / 263.8 MB, free: 9.828 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7387/0.9507, allocations: 316.9 MB / 0.5671 GB, free: 70.09 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002381/0.951, allocations: 89.78 kB / 0.5672 GB, free: 70.06 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.542/2.493, allocations: 321.4 MB / 0.8811 GB, free: 40.44 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.009e-06/2.494, allocations: 0 / 0.8811 GB, free: 40.44 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001413/2.494, allocations: 47.38 kB / 0.8811 GB, free: 40.4 MB / 362.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.005764/2.499, allocations: 2.034 MB / 0.8831 GB, free: 38.36 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/2.499, allocations: 8.031 kB / 0.8831 GB, free: 38.36 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001104/2.501, allocations: 205.7 kB / 0.8833 GB, free: 38.15 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003385/2.504, allocations: 1.25 MB / 0.8845 GB, free: 36.88 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001164/2.504, allocations: 95.69 kB / 0.8846 GB, free: 36.79 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003423/2.505, allocations: 123.6 kB / 0.8847 GB, free: 36.68 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003834/2.508, allocations: 1.896 MB / 0.8866 GB, free: 34.7 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.479e-05/2.508, allocations: 11.94 kB / 0.8866 GB, free: 34.69 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002421/2.509, allocations: 55.11 kB / 0.8867 GB, free: 34.65 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000166/2.509, allocations: 114.3 kB / 0.8868 GB, free: 34.54 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003929/2.513, allocations: 1.894 MB / 0.8886 GB, free: 32.64 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01377/2.527, allocations: 7.628 MB / 0.8961 GB, free: 24.7 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002212/2.529, allocations: 1.127 MB / 0.8972 GB, free: 23.57 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001341/2.53, allocations: 0.7227 MB / 0.8979 GB, free: 22.84 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005812/2.536, allocations: 3.385 MB / 0.9012 GB, free: 19.22 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.931e-05/2.536, allocations: 43.56 kB / 0.9012 GB, free: 19.17 MB / 362.7 MB Notification: Performance of pre-optimization done (n=119): time 4.087e-06/2.536, allocations: 0 / 0.9012 GB, free: 19.17 MB / 362.7 MB Notification: Performance of matching and sorting (n=134): time 0.0108/2.547, allocations: 4.081 MB / 0.9052 GB, free: 15.05 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.367e-05/2.547, allocations: 167.5 kB / 0.9054 GB, free: 14.85 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001998/2.549, allocations: 1.158 MB / 0.9065 GB, free: 13.68 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003055/2.549, allocations: 69.69 kB / 0.9066 GB, free: 13.61 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005496/2.55, allocations: 0.721 MB / 0.9073 GB, free: 12.88 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005099/2.551, allocations: 477 kB / 0.9077 GB, free: 12.42 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001488/2.551, allocations: 36 kB / 0.9078 GB, free: 12.39 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001242/2.551, allocations: 377.9 kB / 0.9081 GB, free: 12.01 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001526/2.552, allocations: 0.7263 MB / 0.9088 GB, free: 11.29 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001741/2.554, allocations: 1.182 MB / 0.91 GB, free: 9.914 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00167/2.556, allocations: 0.8647 MB / 0.9108 GB, free: 9.055 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.617e-05/2.556, allocations: 8 kB / 0.9108 GB, free: 9.047 MB / 362.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.005141/2.561, allocations: 2.338 MB / 0.9131 GB, free: 6.688 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001027/2.562, allocations: 5.204 MB / 0.9182 GB, free: 1.141 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.96e-05/2.562, allocations: 12 kB / 0.9182 GB, free: 1.129 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006872/2.569, allocations: 0.9398 MB / 0.9191 GB, free: 180 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2445/2.814, allocations: 346.5 kB / 0.9195 GB, free: 41.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003301/2.817, allocations: 2.89 MB / 0.9223 GB, free: 39.4 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002446/2.819, allocations: 133.8 kB / 0.9224 GB, free: 39.4 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003051/2.82, allocations: 89.39 kB / 0.9225 GB, free: 39.4 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.372e-05/2.82, allocations: 3.969 kB / 0.9225 GB, free: 39.4 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004499/2.824, allocations: 2.058 MB / 0.9245 GB, free: 39.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.949e-05/2.824, allocations: 18.25 kB / 0.9245 GB, free: 39.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005653/2.83, allocations: 0.6766 MB / 0.9252 GB, free: 39.31 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002034/2.832, allocations: 368.7 kB / 0.9255 GB, free: 39.31 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002258/2.834, allocations: 2.629 MB / 0.9281 GB, free: 37.24 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002152/2.837, allocations: 134 kB / 0.9282 GB, free: 37.24 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003069/2.837, allocations: 85 kB / 0.9283 GB, free: 37.24 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (207): * Single equations (assignments): 203 * 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.0005525/2.837, allocations: 220.5 kB / 0.9285 GB, free: 37.13 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004475/2.838, allocations: 164.1 kB / 0.9287 GB, free: 37.13 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006014/2.844, allocations: 2.315 MB / 0.9309 GB, free: 36.98 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.252e-05/2.844, allocations: 15.03 kB / 0.931 GB, free: 36.98 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.181e-06/2.844, allocations: 0 / 0.931 GB, free: 36.98 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.717e-05/2.844, allocations: 10.41 kB / 0.931 GB, free: 36.98 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009073/2.853, allocations: 3.913 MB / 0.9348 GB, free: 36.56 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.251e-05/2.853, allocations: 0 / 0.9348 GB, free: 36.56 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001399/2.855, allocations: 242.4 kB / 0.935 GB, free: 36.56 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0051/2.86, allocations: 0.8651 MB / 0.9359 GB, free: 36.53 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000349/2.86, allocations: 48.56 kB / 0.9359 GB, free: 36.53 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002545/2.863, allocations: 2.818 MB / 0.9387 GB, free: 34.46 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.914e-06/2.863, allocations: 0 / 0.9387 GB, free: 34.46 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006581/2.869, allocations: 3.17 MB / 0.9418 GB, free: 34.04 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006994/2.87, allocations: 267.4 kB / 0.942 GB, free: 33.86 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004326/2.871, allocations: 35.5 kB / 0.942 GB, free: 33.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001568/2.872, allocations: 109.2 kB / 0.9422 GB, free: 33.86 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003587/2.873, allocations: 149.5 kB / 0.9423 GB, free: 33.85 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001996/2.873, allocations: 60.22 kB / 0.9424 GB, free: 33.85 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001597/2.874, allocations: 0.8835 MB / 0.9432 GB, free: 33.73 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.23e-06/2.874, allocations: 0 / 0.9432 GB, free: 33.73 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005287/2.88, allocations: 1.357 MB / 0.9445 GB, free: 33.73 MB / 362.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.003481/2.883, allocations: 1.252 MB / 0.9458 GB, free: 33.61 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.007474/2.891, allocations: 2.981 MB / 0.9487 GB, free: 33.57 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.009e-05/2.891, allocations: 0.625 kB / 0.9487 GB, free: 33.57 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002446/2.893, allocations: 1.039 MB / 0.9497 GB, free: 33.56 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00395/2.897, allocations: 0.666 MB / 0.9503 GB, free: 33.54 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006292/2.904, allocations: 2.833 MB / 0.9531 GB, free: 32.91 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001565/2.905, allocations: 1.443 MB / 0.9545 GB, free: 48.2 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.004299/2.909, allocations: 0.8263 MB / 0.9553 GB, free: 48.16 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005564/2.91, allocations: 126.5 kB / 0.9554 GB, free: 48.15 MB / 378.7 MB Notification: Performance of SimCode: time 2.55e-06/2.91, allocations: 0 / 0.9554 GB, free: 48.15 MB / 378.7 MB Notification: Performance of Templates: time 0.09825/3.008, allocations: 47.74 MB / 1.002 GB, free: 44.17 MB / 378.7 MB