Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_3_1_cpp_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.172/1.172, allocations: 111.2 MB / 123.8 MB, free: 11.21 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.53e-05/3.534e-05, allocations: 4 kB / 151.5 MB, free: 15.54 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1781/0.1782, allocations: 25.15 MB / 176.6 MB, free: 15.92 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.635/0.8132, allocations: 236.4 MB / 413 MB, free: 24.58 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002876/0.8136, allocations: 65.03 kB / 413.1 MB, free: 24.55 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7595/1.573, allocations: 122.3 MB / 0.5228 GB, free: 35.7 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.463e-06/1.573, allocations: 0 / 0.5228 GB, free: 35.7 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.736e-05/1.573, allocations: 17.19 kB / 0.5228 GB, free: 35.7 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: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.003285/1.577, allocations: 1.028 MB / 0.5238 GB, free: 35.21 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.208e-05/1.577, allocations: 9.25 kB / 0.5238 GB, free: 35.21 MB / 234.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002044/1.577, allocations: 100.1 kB / 0.5239 GB, free: 35.17 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003201/1.577, allocations: 82.78 kB / 0.524 GB, free: 35.13 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001631/1.579, allocations: 0.5788 MB / 0.5246 GB, free: 34.9 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002173/1.579, allocations: 112.9 kB / 0.5247 GB, free: 34.84 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001541/1.579, allocations: 55.61 kB / 0.5247 GB, free: 34.83 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00205/1.581, allocations: 0.8136 MB / 0.5255 GB, free: 34.73 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.475e-05/1.581, allocations: 4.75 kB / 0.5255 GB, free: 34.73 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001228/1.581, allocations: 25.41 kB / 0.5256 GB, free: 34.73 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001268/1.582, allocations: 54.78 kB / 0.5256 GB, free: 34.73 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001771/1.583, allocations: 0.7164 MB / 0.5263 GB, free: 34.73 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007127/1.591, allocations: 3.115 MB / 0.5294 GB, free: 33.51 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001614/1.592, allocations: 0.6003 MB / 0.53 GB, free: 33.48 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007262/1.593, allocations: 338.1 kB / 0.5303 GB, free: 33.47 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00395/1.597, allocations: 1.901 MB / 0.5321 GB, free: 32.41 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.1e-05/1.597, allocations: 37.88 kB / 0.5322 GB, free: 32.38 MB / 234.7 MB Notification: Performance of pre-optimization done (n=52): time 2.946e-06/1.597, allocations: 0 / 0.5322 GB, free: 32.38 MB / 234.7 MB Notification: Performance of matching and sorting (n=60): time 0.006489/1.603, allocations: 2.06 MB / 0.5342 GB, free: 31.98 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.891e-05/1.604, allocations: 84.17 kB / 0.5343 GB, free: 31.88 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009368/1.605, allocations: 0.5396 MB / 0.5348 GB, free: 31.75 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 9.354e-05/1.605, allocations: 39.7 kB / 0.5348 GB, free: 31.72 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002056/1.605, allocations: 342.6 kB / 0.5351 GB, free: 31.52 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002095/1.605, allocations: 214.8 kB / 0.5354 GB, free: 31.39 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.834e-05/1.605, allocations: 13.31 kB / 0.5354 GB, free: 31.39 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 8.532e-05/1.605, allocations: 340.4 kB / 0.5357 GB, free: 31.07 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007457/1.606, allocations: 312.9 kB / 0.536 GB, free: 31.07 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008236/1.607, allocations: 461.1 kB / 0.5364 GB, free: 30.92 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008343/1.608, allocations: 367 kB / 0.5368 GB, free: 30.91 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/1.608, allocations: 2.625 kB / 0.5368 GB, free: 30.91 MB / 234.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002545/1.61, allocations: 0.9947 MB / 0.5378 GB, free: 30.84 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.695e-05/1.61, allocations: 11.02 kB / 0.5378 GB, free: 30.84 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.247e-05/1.61, allocations: 9.75 kB / 0.5378 GB, free: 30.84 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001763/1.612, allocations: 418.4 kB / 0.5382 GB, free: 30.83 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001139/1.613, allocations: 149 kB / 0.5383 GB, free: 30.83 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001754/1.615, allocations: 1.013 MB / 0.5393 GB, free: 30.31 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001181/1.616, allocations: 53.77 kB / 0.5394 GB, free: 30.3 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001006/1.616, allocations: 29.84 kB / 0.5394 GB, free: 30.3 MB / 234.7 MB Warning: Assuming fixed start value for the following 4 variables: tank2.level:VARIABLE(min = max(0.0, 0.0) start = max(tank2.level_start, 1e-15) unit = "m" stateSelect=StateSelect.prefer ) "Level height of 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 = max(0.0, 0.0) start = max(tank1.level_start, 1e-15) unit = "m" stateSelect=StateSelect.prefer ) "Level height of 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: 18 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 75 * 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 {4 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003901/1.617, allocations: 179.5 kB / 0.5396 GB, free: 30.2 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001781/1.617, allocations: 72.62 kB / 0.5396 GB, free: 30.16 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00275/1.62, allocations: 1.019 MB / 0.5406 GB, free: 30.08 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.077e-05/1.62, allocations: 7.75 kB / 0.5406 GB, free: 30.08 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/1.62, allocations: 0 / 0.5406 GB, free: 30.08 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.424e-05/1.62, allocations: 16.47 kB / 0.5406 GB, free: 30.08 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004235/1.624, allocations: 1.873 MB / 0.5425 GB, free: 29.75 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-06/1.624, allocations: 6.609 kB / 0.5425 GB, free: 29.75 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001041/1.625, allocations: 109 kB / 0.5426 GB, free: 29.75 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00175/1.627, allocations: 423.7 kB / 0.543 GB, free: 29.74 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.693e-05/1.627, allocations: 18.48 kB / 0.543 GB, free: 29.74 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001747/1.629, allocations: 1.031 MB / 0.544 GB, free: 29.21 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/1.629, allocations: 0 / 0.544 GB, free: 29.21 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003285/1.632, allocations: 1.491 MB / 0.5455 GB, free: 29.02 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003333/1.633, allocations: 152.8 kB / 0.5456 GB, free: 28.88 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001742/1.633, allocations: 10.12 kB / 0.5456 GB, free: 28.88 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001101/1.634, allocations: 58.22 kB / 0.5457 GB, free: 28.88 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002023/1.634, allocations: 58.66 kB / 0.5457 GB, free: 28.88 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.816e-05/1.634, allocations: 22.86 kB / 0.5458 GB, free: 28.88 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0007312/1.635, allocations: 436.8 kB / 0.5462 GB, free: 28.79 MB / 234.7 MB Notification: Performance of sort global known variables: time 4.51e-07/1.635, allocations: 0 / 0.5462 GB, free: 28.79 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001901/1.637, allocations: 430.8 kB / 0.5466 GB, free: 28.71 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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 {4 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.004942/1.642, allocations: 2.455 MB / 0.549 GB, free: 27.9 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.003072/1.645, allocations: 0.8371 MB / 0.5498 GB, free: 27.89 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 6.001e-06/1.645, allocations: 0 / 0.5498 GB, free: 27.89 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001929/1.647, allocations: 487.9 kB / 0.5503 GB, free: 27.88 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003186/1.65, allocations: 377.4 kB / 0.5506 GB, free: 27.87 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006664/1.657, allocations: 1.656 MB / 0.5522 GB, free: 27.45 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005013/1.657, allocations: 0.9793 MB / 0.5532 GB, free: 26.74 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006181/1.658, allocations: 268.1 kB / 0.5535 GB, free: 26.74 MB / 234.7 MB Notification: Performance of SimCode: time 9.62e-07/1.658, allocations: 3.188 kB / 0.5535 GB, free: 26.74 MB / 234.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.132/4.79, allocations: 20.69 MB / 0.5737 GB, free: 25.57 MB / 234.7 MB