Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_trunk_cpp_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.023/2.023, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.372e-05/3.382e-05, allocations: 5.719 kB / 292.2 MB, free: 8.734 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1094, allocations: 50.4 MB / 342.6 MB, free: 6.305 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.454/1.563, allocations: 412.3 MB / 0.7373 GB, free: 125.7 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002964/1.564, allocations: 83.36 kB / 0.7374 GB, free: 125.7 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.09/2.653, allocations: 216.8 MB / 0.9491 GB, free: 100.9 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.224e-06/2.653, allocations: 0 / 0.9491 GB, free: 100.9 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001631/2.653, allocations: 32.56 kB / 0.9491 GB, free: 100.9 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.008204/2.662, allocations: 1.804 MB / 0.9509 GB, free: 99.84 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.199e-05/2.662, allocations: 9.812 kB / 0.9509 GB, free: 99.84 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007483/2.663, allocations: 170.9 kB / 0.9511 GB, free: 99.73 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009138/2.663, allocations: 167.9 kB / 0.9512 GB, free: 99.66 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003698/2.667, allocations: 0.9902 MB / 0.9522 GB, free: 99.11 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002773/2.667, allocations: 234.5 kB / 0.9524 GB, free: 98.93 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005517/2.668, allocations: 95.12 kB / 0.9525 GB, free: 98.9 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005055/2.673, allocations: 1.771 MB / 0.9542 GB, free: 98.04 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.807e-05/2.673, allocations: 0 / 0.9542 GB, free: 98.04 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002818/2.674, allocations: 43.19 kB / 0.9543 GB, free: 98.01 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002081/2.674, allocations: 101.6 kB / 0.9544 GB, free: 97.98 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005151/2.679, allocations: 1.705 MB / 0.956 GB, free: 97.2 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02075/2.7, allocations: 6.814 MB / 0.9627 GB, free: 92.28 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004289/2.704, allocations: 1.408 MB / 0.9641 GB, free: 91.59 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002355/2.706, allocations: 0.82 MB / 0.9649 GB, free: 91.18 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009786/2.716, allocations: 3.966 MB / 0.9687 GB, free: 88.05 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.991e-05/2.716, allocations: 47.12 kB / 0.9688 GB, free: 88 MB / 458.7 MB Notification: Performance of pre-optimization done (n=110): time 3.646e-06/2.716, allocations: 0 / 0.9688 GB, free: 88 MB / 458.7 MB Notification: Performance of matching and sorting (n=122): time 0.01732/2.734, allocations: 4.589 MB / 0.9733 GB, free: 84.83 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.09e-05/2.734, allocations: 171.2 kB / 0.9734 GB, free: 84.62 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001949/2.736, allocations: 0.9904 MB / 0.9744 GB, free: 83.62 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004659/2.736, allocations: 48.27 kB / 0.9744 GB, free: 83.57 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004142/2.737, allocations: 0.5025 MB / 0.9749 GB, free: 83.06 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006298/2.737, allocations: 413.8 kB / 0.9753 GB, free: 82.66 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001788/2.738, allocations: 24 kB / 0.9754 GB, free: 82.64 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001232/2.738, allocations: 366.8 kB / 0.9757 GB, free: 82.27 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001945/2.74, allocations: 0.738 MB / 0.9764 GB, free: 81.54 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002168/2.742, allocations: 0.9806 MB / 0.9774 GB, free: 80.48 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002182/2.744, allocations: 0.8075 MB / 0.9782 GB, free: 79.68 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.905e-06/2.744, allocations: 0 / 0.9782 GB, free: 79.68 MB / 458.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.006886/2.751, allocations: 2.303 MB / 0.9804 GB, free: 77.36 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000501/2.751, allocations: 2.191 MB / 0.9826 GB, free: 75.02 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.792e-05/2.752, allocations: 4 kB / 0.9826 GB, free: 75.02 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006022/2.758, allocations: 1.194 MB / 0.9837 GB, free: 73.86 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002043/2.76, allocations: 219.6 kB / 0.9839 GB, free: 73.64 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008227/2.768, allocations: 6.163 MB / 0.99 GB, free: 67.16 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00279/2.771, allocations: 101.3 kB / 0.9901 GB, free: 67.07 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003755/2.771, allocations: 63.91 kB / 0.9901 GB, free: 67.01 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/2.771, allocations: 4 kB / 0.9901 GB, free: 67 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006528/2.778, allocations: 2.182 MB / 0.9922 GB, free: 64.81 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.766e-05/2.778, allocations: 8.297 kB / 0.9923 GB, free: 64.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004013/2.782, allocations: 0.9667 MB / 0.9932 GB, free: 63.84 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002116/2.784, allocations: 227.7 kB / 0.9934 GB, free: 63.62 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007703/2.792, allocations: 6.005 MB / 0.9993 GB, free: 57.29 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002259/2.794, allocations: 95.84 kB / 0.9994 GB, free: 57.19 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002458/2.794, allocations: 59.97 kB / 0.9994 GB, free: 57.13 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 12 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (128): * Single equations (assignments): 123 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {4 9,2 3,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0005838/2.795, allocations: 192.9 kB / 0.9996 GB, free: 56.94 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004924/2.795, allocations: 130.4 kB / 0.9997 GB, free: 56.81 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00763/2.803, allocations: 2.568 MB / 1.002 GB, free: 54.21 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.318e-05/2.803, allocations: 23.78 kB / 1.002 GB, free: 54.19 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/2.803, allocations: 4 kB / 1.002 GB, free: 54.19 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.074e-05/2.803, allocations: 7.938 kB / 1.002 GB, free: 54.18 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01139/2.815, allocations: 4.155 MB / 1.006 GB, free: 49.99 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.605e-05/2.815, allocations: 7.953 kB / 1.006 GB, free: 49.98 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001587/2.816, allocations: 155.7 kB / 1.006 GB, free: 49.83 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005618/2.822, allocations: 1.192 MB / 1.008 GB, free: 48.64 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004398/2.822, allocations: 35.97 kB / 1.008 GB, free: 48.61 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008068/2.83, allocations: 6.2 MB / 1.014 GB, free: 42.07 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/2.83, allocations: 7.969 kB / 1.014 GB, free: 42.06 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009246/2.84, allocations: 3.538 MB / 1.017 GB, free: 38.5 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001561/2.841, allocations: 435.1 kB / 1.018 GB, free: 38.05 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004604/2.842, allocations: 28 kB / 1.018 GB, free: 38.02 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002209/2.844, allocations: 95.77 kB / 1.018 GB, free: 37.93 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005568/2.845, allocations: 145.1 kB / 1.018 GB, free: 37.79 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002243/2.845, allocations: 51.97 kB / 1.018 GB, free: 37.74 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001549/2.846, allocations: 0.747 MB / 1.019 GB, free: 36.98 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.112e-06/2.846, allocations: 0 / 1.019 GB, free: 36.98 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005692/2.852, allocations: 1.116 MB / 1.02 GB, free: 35.86 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.medium.T,upperTank.level,lowerTank.medium.T,lowerTank.level) * Number of discrete variables: 11 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {4 12,2 4,4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.01203/2.864, allocations: 4.835 MB / 1.024 GB, free: 31.05 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01132/2.876, allocations: 3.459 MB / 1.028 GB, free: 27.55 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.817e-06/2.876, allocations: 0 / 1.028 GB, free: 27.55 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004618/2.88, allocations: 1.293 MB / 1.029 GB, free: 26.24 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004889/2.885, allocations: 0.5497 MB / 1.03 GB, free: 25.7 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01331/2.899, allocations: 3.133 MB / 1.033 GB, free: 22.54 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000901/2.9, allocations: 1.287 MB / 1.034 GB, free: 21.23 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001414/2.901, allocations: 0.5265 MB / 1.034 GB, free: 20.7 MB / 458.7 MB Notification: Performance of SimCode: time 1.112e-06/2.901, allocations: 0 / 1.034 GB, free: 20.7 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.233/7.134, allocations: 56.83 MB / 1.09 GB, free: 85.79 MB / 458.7 MB