Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_3_1_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.115/1.115, allocations: 111.2 MB / 123.8 MB, free: 11.21 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.537e-05/3.551e-05, allocations: 0 / 151.5 MB, free: 15.53 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2342/0.2343, allocations: 25.15 MB / 176.7 MB, free: 15.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6321/0.8664, allocations: 236.7 MB / 413.3 MB, free: 24.29 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002514/0.8667, allocations: 71.94 kB / 413.4 MB, free: 24.25 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7963/1.663, allocations: 128 MB / 0.5287 GB, free: 33.98 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.465e-06/1.663, allocations: 2.625 kB / 0.5287 GB, free: 33.98 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.566e-05/1.663, allocations: 18.34 kB / 0.5288 GB, free: 33.98 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.003034/1.666, allocations: 0.9915 MB / 0.5297 GB, free: 33.48 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.106e-05/1.666, allocations: 11.31 kB / 0.5297 GB, free: 33.48 MB / 234.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002263/1.667, allocations: 84.66 kB / 0.5298 GB, free: 33.45 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002874/1.667, allocations: 83.06 kB / 0.5299 GB, free: 33.41 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001719/1.669, allocations: 0.5524 MB / 0.5304 GB, free: 33.17 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.835e-05/1.669, allocations: 37.42 kB / 0.5305 GB, free: 33.17 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001406/1.669, allocations: 43.33 kB / 0.5305 GB, free: 33.17 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001592/1.67, allocations: 0.693 MB / 0.5312 GB, free: 33.05 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.804e-05/1.67, allocations: 0 / 0.5312 GB, free: 33.05 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000101/1.671, allocations: 24.09 kB / 0.5312 GB, free: 33.05 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.46e-05/1.671, allocations: 41.7 kB / 0.5313 GB, free: 33.05 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001442/1.672, allocations: 0.618 MB / 0.5319 GB, free: 33.05 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005819/1.678, allocations: 2.802 MB / 0.5346 GB, free: 31.6 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001102/1.679, allocations: 457.6 kB / 0.535 GB, free: 31.57 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005592/1.68, allocations: 243.2 kB / 0.5353 GB, free: 31.56 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003943/1.68, allocations: 425.6 kB / 0.5357 GB, free: 31.09 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.246e-05/1.68, allocations: 37.97 kB / 0.5357 GB, free: 31.05 MB / 234.7 MB Notification: Performance of pre-optimization done (n=48): time 4.468e-06/1.68, allocations: 3.812 kB / 0.5357 GB, free: 31.05 MB / 234.7 MB Notification: Performance of matching and sorting (n=56): time 0.006585/1.687, allocations: 1.743 MB / 0.5374 GB, free: 30.67 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.024e-05/1.687, allocations: 84.98 kB / 0.5375 GB, free: 30.57 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009547/1.688, allocations: 0.5046 MB / 0.538 GB, free: 30.46 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001898/1.688, allocations: 41.55 kB / 0.538 GB, free: 30.43 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002391/1.688, allocations: 342.3 kB / 0.5384 GB, free: 30.23 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002313/1.689, allocations: 207.3 kB / 0.5386 GB, free: 30.12 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.958e-05/1.689, allocations: 14.5 kB / 0.5386 GB, free: 30.12 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 8.846e-05/1.689, allocations: 336.2 kB / 0.5389 GB, free: 29.81 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006553/1.689, allocations: 263 kB / 0.5391 GB, free: 29.81 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000737/1.69, allocations: 415.8 kB / 0.5395 GB, free: 29.64 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007419/1.691, allocations: 314.1 kB / 0.5398 GB, free: 29.63 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/1.691, allocations: 0 / 0.5398 GB, free: 29.63 MB / 234.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002061/1.693, allocations: 0.8224 MB / 0.5406 GB, free: 29.56 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.983e-05/1.693, allocations: 7.672 kB / 0.5406 GB, free: 29.56 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.733e-05/1.693, allocations: 6.125 kB / 0.5407 GB, free: 29.56 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003287/1.696, allocations: 344 kB / 0.541 GB, free: 29.55 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001213/1.698, allocations: 145.7 kB / 0.5411 GB, free: 29.55 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001265/1.699, allocations: 0.798 MB / 0.5419 GB, free: 29.03 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001124/1.7, allocations: 51 kB / 0.5419 GB, free: 29.03 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000111/1.7, allocations: 33.31 kB / 0.542 GB, free: 29.03 MB / 234.7 MB Warning: Assuming fixed start value for the following 4 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 = tank2.T_start 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 = tank1.T_start 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: 20 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 77 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003749/1.701, allocations: 177.9 kB / 0.5422 GB, free: 28.91 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000185/1.701, allocations: 72.47 kB / 0.5422 GB, free: 28.88 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00222/1.703, allocations: 0.8217 MB / 0.543 GB, free: 28.8 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.088e-05/1.703, allocations: 3.844 kB / 0.543 GB, free: 28.8 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/1.703, allocations: 0 / 0.543 GB, free: 28.8 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/1.703, allocations: 3.562 kB / 0.543 GB, free: 28.8 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004151/1.707, allocations: 1.632 MB / 0.5446 GB, free: 28.46 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.788e-06/1.708, allocations: 3.703 kB / 0.5446 GB, free: 28.46 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000957/1.708, allocations: 109.8 kB / 0.5447 GB, free: 28.46 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002398/1.711, allocations: 323.4 kB / 0.545 GB, free: 28.45 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001527/1.711, allocations: 17.58 kB / 0.5451 GB, free: 28.45 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001/1.712, allocations: 0.7918 MB / 0.5458 GB, free: 27.92 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/1.712, allocations: 0 / 0.5458 GB, free: 27.92 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002974/1.715, allocations: 1.239 MB / 0.547 GB, free: 27.68 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003463/1.716, allocations: 144.5 kB / 0.5472 GB, free: 27.55 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002078/1.716, allocations: 21.05 kB / 0.5472 GB, free: 27.55 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009097/1.717, allocations: 39.22 kB / 0.5472 GB, free: 27.54 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001828/1.717, allocations: 57.42 kB / 0.5473 GB, free: 27.54 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.602e-05/1.717, allocations: 22.48 kB / 0.5473 GB, free: 27.54 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0007635/1.718, allocations: 408.8 kB / 0.5477 GB, free: 27.45 MB / 234.7 MB Notification: Performance of sort global known variables: time 1.372e-06/1.718, allocations: 3.344 kB / 0.5477 GB, free: 27.45 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001942/1.72, allocations: 409.5 kB / 0.5481 GB, free: 27.38 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.004801/1.725, allocations: 2.371 MB / 0.5504 GB, free: 26.37 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.002124/1.727, allocations: 0.657 MB / 0.5511 GB, free: 26.36 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 7.685e-06/1.727, allocations: 2.594 kB / 0.5511 GB, free: 26.36 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001037/1.728, allocations: 360.7 kB / 0.5514 GB, free: 26.36 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003247/1.731, allocations: 372 kB / 0.5518 GB, free: 26.35 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004543/1.736, allocations: 1.503 MB / 0.5532 GB, free: 25.92 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004742/1.736, allocations: 0.9715 MB / 0.5542 GB, free: 25.22 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006196/1.737, allocations: 258.1 kB / 0.5544 GB, free: 25.21 MB / 234.7 MB Notification: Performance of SimCode: time 1.072e-06/1.737, allocations: 0 / 0.5544 GB, free: 25.21 MB / 234.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.009/4.746, allocations: 20.34 MB / 0.5743 GB, free: 23.91 MB / 234.7 MB