Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_trunk_cpp_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.054/2.054, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.48e-05/3.486e-05, allocations: 10.19 kB / 292.2 MB, free: 8.762 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1075, allocations: 50.42 MB / 342.6 MB, free: 6.324 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.14/1.248, allocations: 321.9 MB / 0.649 GB, free: 34.65 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002872/1.248, allocations: 75.53 kB / 0.6491 GB, free: 34.62 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.588/2.836, allocations: 274.5 MB / 0.9171 GB, free: 75.51 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.623e-06/2.836, allocations: 0 / 0.9171 GB, free: 75.51 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001532/2.836, allocations: 38.81 kB / 0.9172 GB, free: 75.5 MB / 458.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.00774/2.844, allocations: 1.811 MB / 0.9189 GB, free: 74.7 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/2.844, allocations: 16.69 kB / 0.9189 GB, free: 74.7 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005882/2.845, allocations: 165.6 kB / 0.9191 GB, free: 74.66 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009408/2.846, allocations: 171.1 kB / 0.9193 GB, free: 74.58 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003902/2.85, allocations: 1.123 MB / 0.9204 GB, free: 74.25 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001964/2.85, allocations: 175.5 kB / 0.9205 GB, free: 74.16 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003612/2.85, allocations: 98.53 kB / 0.9206 GB, free: 74.16 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004287/2.855, allocations: 1.725 MB / 0.9223 GB, free: 73.98 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.79e-05/2.855, allocations: 0 / 0.9223 GB, free: 73.98 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002421/2.855, allocations: 44.94 kB / 0.9223 GB, free: 73.98 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002406/2.855, allocations: 117 kB / 0.9225 GB, free: 73.98 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004362/2.86, allocations: 1.721 MB / 0.9241 GB, free: 73.97 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01797/2.878, allocations: 6.367 MB / 0.9304 GB, free: 71.98 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002679/2.88, allocations: 1.146 MB / 0.9315 GB, free: 71.95 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001626/2.882, allocations: 0.6986 MB / 0.9322 GB, free: 71.94 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008595/2.891, allocations: 4.27 MB / 0.9363 GB, free: 69.59 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.075e-05/2.891, allocations: 43.66 kB / 0.9364 GB, free: 69.55 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001701/2.892, allocations: 214.4 kB / 0.9366 GB, free: 69.48 MB / 458.7 MB Notification: Performance of pre-optimization done (n=97): time 4.238e-06/2.892, allocations: 0 / 0.9366 GB, free: 69.48 MB / 458.7 MB Notification: Performance of matching and sorting (n=112): time 0.01372/2.906, allocations: 3.779 MB / 0.9403 GB, free: 68.94 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.74e-05/2.906, allocations: 141.1 kB / 0.9404 GB, free: 68.78 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002275/2.909, allocations: 1.091 MB / 0.9415 GB, free: 68.62 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004349/2.909, allocations: 44.73 kB / 0.9415 GB, free: 68.59 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004443/2.91, allocations: 0.5755 MB / 0.9421 GB, free: 68.27 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005747/2.91, allocations: 388.7 kB / 0.9424 GB, free: 68.04 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001711/2.91, allocations: 27.38 kB / 0.9425 GB, free: 68.04 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001252/2.91, allocations: 363.3 kB / 0.9428 GB, free: 67.72 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001699/2.912, allocations: 0.6287 MB / 0.9434 GB, free: 67.71 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002/2.914, allocations: 0.9407 MB / 0.9443 GB, free: 67.37 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002093/2.916, allocations: 0.7529 MB / 0.9451 GB, free: 67.34 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-05/2.916, allocations: 3.5 kB / 0.9451 GB, free: 67.34 MB / 458.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.00568/2.922, allocations: 1.969 MB / 0.947 GB, free: 67.24 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007944/2.923, allocations: 3.49 MB / 0.9504 GB, free: 63.61 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.655e-05/2.923, allocations: 7.75 kB / 0.9504 GB, free: 63.61 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01302/2.936, allocations: 1.209 MB / 0.9516 GB, free: 63.6 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002469/2.938, allocations: 296 kB / 0.9519 GB, free: 63.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003606/2.942, allocations: 1.527 MB / 0.9534 GB, free: 63.05 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002739/2.945, allocations: 88.52 kB / 0.9535 GB, free: 63.05 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003608/2.945, allocations: 69.81 kB / 0.9535 GB, free: 63.05 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/2.945, allocations: 0 / 0.9535 GB, free: 63.05 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004953/2.95, allocations: 1.837 MB / 0.9553 GB, free: 63.01 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.291e-05/2.95, allocations: 6.844 kB / 0.9553 GB, free: 63.01 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01143/2.962, allocations: 1.04 MB / 0.9563 GB, free: 63 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002652/2.965, allocations: 301.8 kB / 0.9566 GB, free: 63 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003295/2.968, allocations: 1.342 MB / 0.9579 GB, free: 62.46 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002241/2.97, allocations: 90.09 kB / 0.958 GB, free: 62.45 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002801/2.971, allocations: 64.86 kB / 0.9581 GB, free: 62.45 MB / 458.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 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.0005673/2.971, allocations: 198 kB / 0.9583 GB, free: 62.34 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005358/2.972, allocations: 145.8 kB / 0.9584 GB, free: 62.27 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006292/2.978, allocations: 1.996 MB / 0.9604 GB, free: 62.16 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.781e-05/2.978, allocations: 11.44 kB / 0.9604 GB, free: 62.16 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.003e-05/2.978, allocations: 0 / 0.9604 GB, free: 62.16 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.989e-05/2.978, allocations: 7.781 kB / 0.9604 GB, free: 62.16 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008457/2.987, allocations: 3.409 MB / 0.9637 GB, free: 61.78 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.029e-05/2.987, allocations: 0 / 0.9637 GB, free: 61.78 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001792/2.988, allocations: 200.2 kB / 0.9639 GB, free: 61.78 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006228/2.995, allocations: 0.9377 MB / 0.9648 GB, free: 61.77 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003041/2.995, allocations: 29.36 kB / 0.9648 GB, free: 61.77 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003154/2.998, allocations: 1.561 MB / 0.9664 GB, free: 61.22 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/2.998, allocations: 0 / 0.9664 GB, free: 61.22 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00643/3.005, allocations: 2.708 MB / 0.969 GB, free: 60.96 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001319/3.006, allocations: 406 kB / 0.9694 GB, free: 60.79 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003404/3.006, allocations: 24.66 kB / 0.9694 GB, free: 60.79 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001978/3.008, allocations: 81.03 kB / 0.9695 GB, free: 60.78 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003138/3.009, allocations: 107.5 kB / 0.9696 GB, free: 60.77 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001789/3.009, allocations: 51.48 kB / 0.9697 GB, free: 60.77 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001622/3.011, allocations: 0.8232 MB / 0.9705 GB, free: 60.66 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.51e-07/3.011, allocations: 3.938 kB / 0.9705 GB, free: 60.65 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005056/3.016, allocations: 1.251 MB / 0.9717 GB, free: 60.45 MB / 458.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.009939/3.026, allocations: 4.246 MB / 0.9758 GB, free: 59.41 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009192/3.035, allocations: 2.514 MB / 0.9783 GB, free: 58.79 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.052e-05/3.035, allocations: 3.562 kB / 0.9783 GB, free: 58.79 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002887/3.038, allocations: 0.8112 MB / 0.9791 GB, free: 58.54 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005079/3.043, allocations: 0.5964 MB / 0.9797 GB, free: 58.41 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01083/3.054, allocations: 3.142 MB / 0.9827 GB, free: 57.21 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009315/3.055, allocations: 1.311 MB / 0.984 GB, free: 56.45 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001445/3.056, allocations: 0.5651 MB / 0.9846 GB, free: 56.05 MB / 458.7 MB Notification: Performance of SimCode: time 2.425e-06/3.056, allocations: 2.156 kB / 0.9846 GB, free: 56.05 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.592/6.649, allocations: 41.85 MB / 1.025 GB, free: 32.11 MB / 458.7 MB