Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_3_1_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.015/1.015, allocations: 111.2 MB / 123.8 MB, free: 11.21 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.748e-05/2.775e-05, allocations: 0 / 151.5 MB, free: 15.54 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1692/0.1693, allocations: 25.16 MB / 176.7 MB, free: 15.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6326/0.802, allocations: 240.8 MB / 417.4 MB, free: 20.3 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002512/0.8023, allocations: 71.83 kB / 417.5 MB, free: 20.26 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.526/2.328, allocations: 300.9 MB / 0.7016 GB, free: 2.66 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.653e-06/2.328, allocations: 4 kB / 0.7016 GB, free: 2.656 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0001899/2.328, allocations: 36 kB / 0.7016 GB, free: 2.621 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 309 * Number of variables: 309 Notification: Performance of Generate backend data structure: time 0.007797/2.336, allocations: 1.941 MB / 0.7035 GB, free: 0.6328 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.883e-05/2.336, allocations: 12.03 kB / 0.7035 GB, free: 0.6211 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006197/2.337, allocations: 177.7 kB / 0.7037 GB, free: 448 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006896/2.338, allocations: 185.8 kB / 0.7039 GB, free: 260 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2123/2.55, allocations: 1.188 MB / 0.705 GB, free: 17.59 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001424/2.55, allocations: 93.97 kB / 0.7051 GB, free: 17.59 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003313/2.55, allocations: 114.2 kB / 0.7052 GB, free: 17.59 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004739/2.555, allocations: 1.805 MB / 0.707 GB, free: 17.31 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.998e-05/2.555, allocations: 2.156 kB / 0.707 GB, free: 17.31 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002845/2.556, allocations: 62.95 kB / 0.707 GB, free: 17.31 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000239/2.556, allocations: 109.7 kB / 0.7072 GB, free: 17.3 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004432/2.56, allocations: 1.763 MB / 0.7089 GB, free: 17.3 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01442/2.575, allocations: 7.417 MB / 0.7161 GB, free: 13.73 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002583/2.577, allocations: 1.124 MB / 0.7172 GB, free: 13.7 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001594/2.579, allocations: 0.71 MB / 0.7179 GB, free: 13.7 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00684/2.586, allocations: 3.344 MB / 0.7212 GB, free: 12.07 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.865e-05/2.586, allocations: 51.08 kB / 0.7212 GB, free: 12.03 MB / 250.7 MB Notification: Performance of pre-optimization done (n=119): time 3.537e-06/2.586, allocations: 0 / 0.7212 GB, free: 12.03 MB / 250.7 MB Notification: Performance of matching and sorting (n=131): time 0.01348/2.599, allocations: 3.927 MB / 0.7251 GB, free: 11.42 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.055e-05/2.6, allocations: 172.6 kB / 0.7252 GB, free: 11.23 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002042/2.602, allocations: 1.094 MB / 0.7263 GB, free: 11.07 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002786/2.602, allocations: 62.59 kB / 0.7263 GB, free: 11.04 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005172/2.602, allocations: 0.6714 MB / 0.727 GB, free: 10.68 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004786/2.603, allocations: 462.8 kB / 0.7274 GB, free: 10.4 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001452/2.603, allocations: 28.38 kB / 0.7275 GB, free: 10.4 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001223/2.603, allocations: 382.3 kB / 0.7278 GB, free: 10.09 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001729/2.605, allocations: 0.6851 MB / 0.7285 GB, free: 10.09 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001911/2.607, allocations: 1.131 MB / 0.7296 GB, free: 9.582 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00188/2.609, allocations: 0.8192 MB / 0.7304 GB, free: 9.555 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.119e-05/2.609, allocations: 5.781 kB / 0.7304 GB, free: 9.555 MB / 250.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.005206/2.614, allocations: 2.14 MB / 0.7325 GB, free: 9.426 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.51e-05/2.614, allocations: 14.72 kB / 0.7325 GB, free: 9.426 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.631e-05/2.614, allocations: 14.7 kB / 0.7325 GB, free: 9.422 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008712/2.623, allocations: 0.9191 MB / 0.7334 GB, free: 9.391 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002569/2.625, allocations: 341.9 kB / 0.7338 GB, free: 9.391 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003158/2.629, allocations: 2.847 MB / 0.7365 GB, free: 7.305 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00273/2.631, allocations: 135.3 kB / 0.7367 GB, free: 7.297 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000327/2.632, allocations: 79.66 kB / 0.7367 GB, free: 7.297 MB / 250.7 MB Warning: Assuming fixed start value for the following 6 variables: tank2.level:VARIABLE(min = 0.0 start = tank2.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank2.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = 293.15 unit = "K" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank1.level:VARIABLE(min = 0.0 start = tank1.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank1.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = 293.15 unit = "K" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank3.level:VARIABLE(min = 0.0 start = tank3.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank3.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = 293.15 unit = "K" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real 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 (195): * Single equations (assignments): 191 * 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.0006628/2.632, allocations: 273.9 kB / 0.737 GB, free: 7.18 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000469/2.633, allocations: 157.2 kB / 0.7372 GB, free: 7.102 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006579/2.64, allocations: 2.27 MB / 0.7394 GB, free: 6.941 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.293e-05/2.64, allocations: 17.34 kB / 0.7394 GB, free: 6.941 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.678e-06/2.64, allocations: 0 / 0.7394 GB, free: 6.941 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-05/2.64, allocations: 10.69 kB / 0.7394 GB, free: 6.941 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009481/2.649, allocations: 3.835 MB / 0.7431 GB, free: 6.48 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.06e-05/2.649, allocations: 0 / 0.7431 GB, free: 6.48 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001957/2.651, allocations: 238.9 kB / 0.7434 GB, free: 6.48 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006392/2.658, allocations: 0.855 MB / 0.7442 GB, free: 6.449 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002343/2.658, allocations: 44.91 kB / 0.7442 GB, free: 6.445 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003454/2.661, allocations: 2.806 MB / 0.747 GB, free: 20.36 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/2.661, allocations: 3.031 kB / 0.747 GB, free: 20.36 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00726/2.669, allocations: 3.111 MB / 0.75 GB, free: 19.87 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001006/2.67, allocations: 248.7 kB / 0.7503 GB, free: 19.69 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006952/2.67, allocations: 35.28 kB / 0.7503 GB, free: 19.69 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002727/2.673, allocations: 109 kB / 0.7504 GB, free: 19.68 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005897/2.674, allocations: 149.8 kB / 0.7505 GB, free: 19.68 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002841/2.674, allocations: 59.45 kB / 0.7506 GB, free: 19.68 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.002393/2.676, allocations: 0.8317 MB / 0.7514 GB, free: 19.56 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.202e-06/2.676, allocations: 0 / 0.7514 GB, free: 19.56 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.005847/2.682, allocations: 0.886 MB / 0.7523 GB, free: 19.51 MB / 266.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 (130): * Single equations (assignments): 124 * 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.01674/2.699, allocations: 5.05 MB / 0.7572 GB, free: 18.02 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.007597/2.707, allocations: 1.781 MB / 0.759 GB, free: 17.99 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.311e-05/2.707, allocations: 0 / 0.759 GB, free: 17.99 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004414/2.711, allocations: 1.018 MB / 0.7599 GB, free: 17.98 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008661/2.72, allocations: 0.7261 MB / 0.7607 GB, free: 17.96 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01568/2.736, allocations: 3.47 MB / 0.764 GB, free: 17.2 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001846/2.738, allocations: 1.415 MB / 0.7654 GB, free: 16.46 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002246/2.74, allocations: 0.6514 MB / 0.7661 GB, free: 16.45 MB / 266.7 MB Notification: Performance of SimCode: time 1.633e-06/2.74, allocations: 4 kB / 0.7661 GB, free: 16.45 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.031/6.771, allocations: 63.99 MB / 0.8286 GB, free: 31.31 MB / 266.7 MB