Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.849/1.849, allocations: 171.2 MB / 178.8 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.616e-05/2.626e-05, allocations: 7.938 kB / 219.6 MB, free: 7.336 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.268/0.2681, allocations: 38.76 MB / 258.3 MB, free: 12.15 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9756/1.244, allocations: 310.6 MB / 0.5556 GB, free: 83.21 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002859/1.244, allocations: 75.53 kB / 0.5557 GB, free: 83.18 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.452/2.696, allocations: 265.1 MB / 0.8145 GB, free: 50.16 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.184e-06/2.696, allocations: 0 / 0.8145 GB, free: 50.16 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.00015/2.696, allocations: 31.77 kB / 0.8146 GB, free: 50.16 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.007681/2.704, allocations: 1.813 MB / 0.8163 GB, free: 49.33 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.246e-05/2.704, allocations: 10.75 kB / 0.8163 GB, free: 49.33 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001156/2.705, allocations: 177.8 kB / 0.8165 GB, free: 49.25 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003867/2.709, allocations: 1.12 MB / 0.8176 GB, free: 48.91 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001729/2.709, allocations: 139.4 kB / 0.8177 GB, free: 48.82 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00031/2.71, allocations: 59.19 kB / 0.8178 GB, free: 48.82 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003801/2.713, allocations: 1.593 MB / 0.8193 GB, free: 48.81 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003751/2.717, allocations: 1.608 MB / 0.8209 GB, free: 48.63 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.726e-05/2.717, allocations: 0.6562 kB / 0.8209 GB, free: 48.63 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002074/2.718, allocations: 3.625 kB / 0.8209 GB, free: 48.63 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002464/2.718, allocations: 113.8 kB / 0.821 GB, free: 48.63 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01697/2.735, allocations: 6.157 MB / 0.827 GB, free: 46.7 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002365/2.737, allocations: 1.121 MB / 0.8281 GB, free: 46.67 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001391/2.739, allocations: 0.68 MB / 0.8288 GB, free: 46.66 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008523/2.747, allocations: 4.206 MB / 0.8329 GB, free: 44.31 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.621e-05/2.747, allocations: 51.34 kB / 0.833 GB, free: 44.27 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001518/2.749, allocations: 173.4 kB / 0.8331 GB, free: 44.23 MB / 362.7 MB Notification: Performance of pre-optimization done (n=97): time 4.909e-06/2.749, allocations: 0 / 0.8331 GB, free: 44.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=112): time 0.01879/2.768, allocations: 4.127 MB / 0.8372 GB, free: 43.68 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.221e-05/2.768, allocations: 139.8 kB / 0.8373 GB, free: 43.52 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001617/2.769, allocations: 0.8172 MB / 0.8381 GB, free: 43.37 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002775/2.77, allocations: 28.8 kB / 0.8381 GB, free: 43.34 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004147/2.77, allocations: 0.6065 MB / 0.8387 GB, free: 42.98 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004227/2.771, allocations: 371.9 kB / 0.8391 GB, free: 42.74 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001349/2.771, allocations: 0 / 0.8391 GB, free: 42.74 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001177/2.771, allocations: 365 kB / 0.8394 GB, free: 42.43 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001421/2.772, allocations: 0.6127 MB / 0.84 GB, free: 42.43 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001571/2.774, allocations: 0.9277 MB / 0.8409 GB, free: 42.07 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01808/2.792, allocations: 2.326 MB / 0.8432 GB, free: 42.05 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.628e-05/2.792, allocations: 6.156 kB / 0.8432 GB, free: 42.05 MB / 362.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.02198/2.814, allocations: 3.499 MB / 0.8466 GB, free: 41.95 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007874/2.815, allocations: 3.489 MB / 0.85 GB, free: 38.33 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.24e-05/2.815, allocations: 10 kB / 0.85 GB, free: 38.33 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01122/2.826, allocations: 1.079 MB / 0.8511 GB, free: 38.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002446/2.829, allocations: 295.9 kB / 0.8514 GB, free: 38.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006434/2.835, allocations: 1.907 MB / 0.8532 GB, free: 37.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002685/2.838, allocations: 58.88 kB / 0.8533 GB, free: 37.76 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004553/2.838, allocations: 71.53 kB / 0.8533 GB, free: 37.76 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/2.838, allocations: 3.406 kB / 0.8533 GB, free: 37.76 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01917/2.858, allocations: 2.963 MB / 0.8562 GB, free: 37.72 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.825e-05/2.858, allocations: 10.84 kB / 0.8563 GB, free: 37.72 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01051/2.868, allocations: 0.9017 MB / 0.8571 GB, free: 37.71 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002458/2.871, allocations: 305.3 kB / 0.8574 GB, free: 37.71 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002723/2.873, allocations: 1.257 MB / 0.8587 GB, free: 37.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001856/2.875, allocations: 53.66 kB / 0.8587 GB, free: 37.17 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000208/2.876, allocations: 72.88 kB / 0.8588 GB, free: 37.17 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (153): * Single equations (assignments): 152 * 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 {9 17} Notification: Performance of prepare postOptimizeDAE: time 0.0005992/2.876, allocations: 135.3 kB / 0.8589 GB, free: 37.06 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007452/2.884, allocations: 1.82 MB / 0.8607 GB, free: 36.92 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004962/2.884, allocations: 125.8 kB / 0.8608 GB, free: 36.86 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00877/2.893, allocations: 2.134 MB / 0.8629 GB, free: 36.75 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.005e-05/2.893, allocations: 14.98 kB / 0.8629 GB, free: 36.75 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.01e-05/2.893, allocations: 6.719 kB / 0.8629 GB, free: 36.75 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-05/2.893, allocations: 3.938 kB / 0.8629 GB, free: 36.75 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01088/2.904, allocations: 3.455 MB / 0.8663 GB, free: 36.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.769e-06/2.904, allocations: 0 / 0.8663 GB, free: 36.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001708/2.906, allocations: 197 kB / 0.8665 GB, free: 36.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004851/2.911, allocations: 0.8038 MB / 0.8673 GB, free: 36.39 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002725/2.911, allocations: 17.55 kB / 0.8673 GB, free: 36.39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005516/2.917, allocations: 1.882 MB / 0.8691 GB, free: 35.84 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.476e-06/2.917, allocations: 3.953 kB / 0.8691 GB, free: 35.83 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008852/2.925, allocations: 2.859 MB / 0.8719 GB, free: 35.59 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001198/2.927, allocations: 377.1 kB / 0.8723 GB, free: 35.42 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003581/2.927, allocations: 2.281 kB / 0.8723 GB, free: 35.42 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001826/2.929, allocations: 66.56 kB / 0.8723 GB, free: 35.42 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000333/2.929, allocations: 104 kB / 0.8724 GB, free: 35.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000179/2.929, allocations: 50.7 kB / 0.8725 GB, free: 35.41 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001114/2.931, allocations: 0.5997 MB / 0.8731 GB, free: 35.3 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.623e-06/2.931, allocations: 0 / 0.8731 GB, free: 35.3 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005151/2.936, allocations: 1.156 MB / 0.8742 GB, free: 35.09 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level,tank3.medium.T,tank3.level) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * 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 {9 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.01354/2.949, allocations: 4.368 MB / 0.8785 GB, free: 34.09 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.008197/2.958, allocations: 2.401 MB / 0.8808 GB, free: 34.04 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.054e-05/2.958, allocations: 3.562 kB / 0.8808 GB, free: 34.04 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002757/2.96, allocations: 0.7764 MB / 0.8816 GB, free: 34.02 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004782/2.965, allocations: 0.5257 MB / 0.8821 GB, free: 34 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01168/2.977, allocations: 3 MB / 0.885 GB, free: 32.78 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009175/2.978, allocations: 1.308 MB / 0.8863 GB, free: 32.01 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001446/2.979, allocations: 0.5516 MB / 0.8868 GB, free: 31.61 MB / 362.7 MB Notification: Performance of SimCode: time 1.163e-06/2.979, allocations: 0 / 0.8868 GB, free: 31.61 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.812/6.791, allocations: 40.59 MB / 0.9265 GB, free: 43.21 MB / 362.7 MB