Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_3_1_cpp_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.065/1.065, allocations: 111.2 MB / 123.8 MB, free: 11.2 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 4.988e-05/4.991e-05, allocations: 4 kB / 151.5 MB, free: 15.54 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2258/0.2259, allocations: 25.15 MB / 176.6 MB, free: 36 kB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6242/0.8502, allocations: 236.6 MB / 413.2 MB, free: 24.73 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002922/0.8505, allocations: 64.72 kB / 413.3 MB, free: 24.7 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.488/2.338, allocations: 247 MB / 0.6448 GB, free: 25.64 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.044e-06/2.338, allocations: 0 / 0.6448 GB, free: 25.64 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.000157/2.339, allocations: 40.73 kB / 0.6449 GB, free: 25.64 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: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.007479/2.346, allocations: 1.678 MB / 0.6465 GB, free: 24.85 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.409e-05/2.346, allocations: 13.84 kB / 0.6465 GB, free: 24.85 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006972/2.347, allocations: 156.6 kB / 0.6467 GB, free: 24.81 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006491/2.348, allocations: 153.5 kB / 0.6468 GB, free: 24.74 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003549/2.351, allocations: 1.004 MB / 0.6478 GB, free: 24.41 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003015/2.351, allocations: 183.7 kB / 0.648 GB, free: 24.32 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004017/2.352, allocations: 93.73 kB / 0.6481 GB, free: 24.31 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004465/2.356, allocations: 1.586 MB / 0.6496 GB, free: 24.15 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.966e-05/2.356, allocations: 3.656 kB / 0.6496 GB, free: 24.15 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002651/2.357, allocations: 45.39 kB / 0.6497 GB, free: 24.15 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002402/2.357, allocations: 106.4 kB / 0.6498 GB, free: 24.15 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004501/2.362, allocations: 1.532 MB / 0.6513 GB, free: 24.15 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01723/2.379, allocations: 5.784 MB / 0.6569 GB, free: 22.18 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003058/2.382, allocations: 1.089 MB / 0.658 GB, free: 22.15 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001741/2.384, allocations: 0.6698 MB / 0.6586 GB, free: 22.14 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008596/2.392, allocations: 3.965 MB / 0.6625 GB, free: 19.99 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.865e-05/2.392, allocations: 50.75 kB / 0.6626 GB, free: 19.95 MB / 250.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001675/2.394, allocations: 204 kB / 0.6628 GB, free: 19.89 MB / 250.7 MB Notification: Performance of pre-optimization done (n=91): time 4.268e-06/2.394, allocations: 0 / 0.6628 GB, free: 19.89 MB / 250.7 MB Notification: Performance of matching and sorting (n=103): time 0.01287/2.407, allocations: 3.545 MB / 0.6662 GB, free: 19.36 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.077e-05/2.407, allocations: 144.8 kB / 0.6664 GB, free: 19.2 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001904/2.409, allocations: 0.9797 MB / 0.6673 GB, free: 19.04 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003045/2.409, allocations: 45.98 kB / 0.6674 GB, free: 19.01 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004105/2.41, allocations: 0.5616 MB / 0.6679 GB, free: 18.7 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004085/2.41, allocations: 358.8 kB / 0.6682 GB, free: 18.48 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001317/2.41, allocations: 27.84 kB / 0.6683 GB, free: 18.48 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001137/2.411, allocations: 361.2 kB / 0.6686 GB, free: 18.16 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00143/2.412, allocations: 0.5628 MB / 0.6692 GB, free: 18.16 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001588/2.414, allocations: 0.875 MB / 0.67 GB, free: 17.81 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001634/2.415, allocations: 0.6794 MB / 0.6707 GB, free: 17.79 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.038e-05/2.415, allocations: 3.656 kB / 0.6707 GB, free: 17.79 MB / 250.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.004854/2.42, allocations: 1.804 MB / 0.6725 GB, free: 17.7 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.438e-05/2.42, allocations: 9.406 kB / 0.6725 GB, free: 17.7 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.384e-05/2.42, allocations: 11.28 kB / 0.6725 GB, free: 17.7 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01234/2.433, allocations: 1.163 MB / 0.6736 GB, free: 17.7 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002264/2.435, allocations: 273 kB / 0.6739 GB, free: 17.7 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003454/2.438, allocations: 1.499 MB / 0.6753 GB, free: 17.16 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002456/2.441, allocations: 101.9 kB / 0.6754 GB, free: 17.15 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001953/2.441, allocations: 61.73 kB / 0.6755 GB, free: 17.15 MB / 250.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (138): * Single equations (assignments): 137 * 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 15} Notification: Performance of prepare postOptimizeDAE: time 0.0004053/2.442, allocations: 178.3 kB / 0.6757 GB, free: 17.04 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000311/2.442, allocations: 141.3 kB / 0.6758 GB, free: 16.97 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005787/2.448, allocations: 1.891 MB / 0.6776 GB, free: 16.85 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.75e-05/2.448, allocations: 11.81 kB / 0.6776 GB, free: 16.85 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.316e-06/2.448, allocations: 0 / 0.6776 GB, free: 16.85 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-05/2.448, allocations: 6.109 kB / 0.6777 GB, free: 16.85 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008409/2.456, allocations: 3.22 MB / 0.6808 GB, free: 16.49 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.074e-05/2.456, allocations: 2.875 kB / 0.6808 GB, free: 16.49 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001731/2.458, allocations: 181 kB / 0.681 GB, free: 16.49 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00613/2.464, allocations: 0.9044 MB / 0.6819 GB, free: 16.48 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003548/2.465, allocations: 39.52 kB / 0.6819 GB, free: 16.47 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00344/2.468, allocations: 1.548 MB / 0.6834 GB, free: 15.93 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/2.468, allocations: 1.719 kB / 0.6834 GB, free: 15.93 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00625/2.474, allocations: 2.569 MB / 0.6859 GB, free: 15.69 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006551/2.475, allocations: 220.4 kB / 0.6861 GB, free: 15.52 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004239/2.476, allocations: 22.25 kB / 0.6861 GB, free: 15.52 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00201/2.478, allocations: 93.8 kB / 0.6862 GB, free: 15.52 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003351/2.478, allocations: 96.72 kB / 0.6863 GB, free: 15.51 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001825/2.478, allocations: 47.73 kB / 0.6864 GB, free: 15.51 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.001563/2.48, allocations: 0.7505 MB / 0.6871 GB, free: 15.39 MB / 250.7 MB Notification: Performance of sort global known variables: time 4.7e-07/2.48, allocations: 2.625 kB / 0.6871 GB, free: 15.39 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.003865/2.484, allocations: 0.7834 MB / 0.6879 GB, free: 15.26 MB / 250.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 89 * 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 26} Notification: Performance of Backend phase and start with SimCode phase: time 0.009466/2.493, allocations: 3.901 MB / 0.6917 GB, free: 13.62 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.006066/2.499, allocations: 1.546 MB / 0.6932 GB, free: 13.16 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.119e-05/2.499, allocations: 5.562 kB / 0.6932 GB, free: 13.16 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003758/2.503, allocations: 0.8575 MB / 0.694 GB, free: 12.91 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005823/2.509, allocations: 0.6365 MB / 0.6947 GB, free: 12.79 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01198/2.521, allocations: 2.971 MB / 0.6976 GB, free: 11.5 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008615/2.522, allocations: 1.271 MB / 0.6988 GB, free: 10.41 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001324/2.523, allocations: 0.5177 MB / 0.6993 GB, free: 9.938 MB / 250.7 MB Notification: Performance of SimCode: time 1.473e-06/2.523, allocations: 4 kB / 0.6993 GB, free: 9.934 MB / 250.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.671/6.194, allocations: 38.12 MB / 0.7365 GB, free: 21.22 MB / 250.7 MB