Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_3_1_cpp_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.097/1.097, allocations: 111.2 MB / 123.8 MB, free: 11.2 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.995e-05/3.018e-05, allocations: 4 kB / 151.5 MB, free: 15.54 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1894/0.1895, allocations: 25.16 MB / 176.6 MB, free: 15.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.454/4.643, allocations: 1.427 GB / 1.6 GB, free: 44.78 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002402/4.643, allocations: 68.62 kB / 1.6 GB, free: 44.78 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.992/7.635, allocations: 0.5458 GB / 2.146 GB, free: 5.891 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.475e-06/7.635, allocations: 4 kB / 2.146 GB, free: 5.887 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001628/7.635, allocations: 35.98 kB / 2.146 GB, free: 5.852 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.01233/7.648, allocations: 2.524 MB / 2.148 GB, free: 3.277 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.894e-05/7.648, allocations: 8.031 kB / 2.148 GB, free: 3.27 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008133/7.649, allocations: 181.2 kB / 2.149 GB, free: 3.082 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006511/7.649, allocations: 155.2 kB / 2.149 GB, free: 2.93 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003363/7.653, allocations: 0.9607 MB / 2.15 GB, free: 1.926 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004583/7.653, allocations: 270.5 kB / 2.15 GB, free: 1.629 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006413/7.654, allocations: 104 kB / 2.15 GB, free: 1.527 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006175/7.66, allocations: 1.988 MB / 2.152 GB, free: 15.46 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.262e-05/7.66, allocations: 0 / 2.152 GB, free: 15.46 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000322/7.66, allocations: 47.98 kB / 2.152 GB, free: 15.41 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002355/7.661, allocations: 102.1 kB / 2.152 GB, free: 15.31 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007076/7.668, allocations: 2.038 MB / 2.154 GB, free: 13.27 MB / 282.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03165/7.699, allocations: 8.698 MB / 2.163 GB, free: 4.031 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00747/7.707, allocations: 1.497 MB / 2.164 GB, free: 2.531 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003971/7.711, allocations: 0.9057 MB / 2.165 GB, free: 1.625 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3599/8.071, allocations: 36.13 MB / 2.2 GB, free: 17.48 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.443e-05/8.071, allocations: 43.59 kB / 2.2 GB, free: 17.44 MB / 298.7 MB Notification: Performance of pre-optimization done (n=114): time 6.211e-06/8.071, allocations: 4.812 kB / 2.2 GB, free: 17.44 MB / 298.7 MB Notification: Performance of matching and sorting (n=124): time 0.02949/8.101, allocations: 5.356 MB / 2.205 GB, free: 16.96 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001366/8.101, allocations: 146.2 kB / 2.206 GB, free: 16.8 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002541/8.103, allocations: 0.902 MB / 2.207 GB, free: 16.65 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005194/8.104, allocations: 47.89 kB / 2.207 GB, free: 16.62 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005776/8.105, allocations: 0.5123 MB / 2.207 GB, free: 16.37 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009007/8.105, allocations: 431.2 kB / 2.207 GB, free: 16.16 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002183/8.106, allocations: 26.72 kB / 2.207 GB, free: 16.16 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002442/8.106, allocations: 361.5 kB / 2.208 GB, free: 15.85 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002503/8.109, allocations: 0.8393 MB / 2.209 GB, free: 15.84 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002759/8.111, allocations: 1.072 MB / 2.21 GB, free: 15.61 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002593/8.114, allocations: 0.899 MB / 2.211 GB, free: 15.58 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.327e-05/8.114, allocations: 3.375 kB / 2.211 GB, free: 15.58 MB / 298.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.009074/8.123, allocations: 2.637 MB / 2.213 GB, free: 15.43 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.134e-05/8.123, allocations: 11.38 kB / 2.213 GB, free: 15.42 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.001e-05/8.123, allocations: 10.83 kB / 2.213 GB, free: 15.42 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009736/8.133, allocations: 1.693 MB / 2.215 GB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001858/8.135, allocations: 199 kB / 2.215 GB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009116/8.144, allocations: 5.588 MB / 2.22 GB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003017/8.147, allocations: 149.7 kB / 2.221 GB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005817/8.148, allocations: 62.14 kB / 2.221 GB, free: 11.66 MB / 298.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: 9 (overflow.flowModel.states[2].phase,overflow.flowModel.states[1].phase,pipe.flowModel.states[2].phase,pipe.flowModel.states[1].phase,upperTank.heatTransfer.states[1].phase,massFlowRate.medium.phase,lowerTank.heatTransfer.states[1].phase,$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (117): * Single equations (assignments): 110 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 7 {1 5,3 3,1 5,4 13,5 12,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0006268/8.148, allocations: 183.7 kB / 2.221 GB, free: 11.55 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000509/8.149, allocations: 134.3 kB / 2.221 GB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01243/8.161, allocations: 4.76 MB / 2.226 GB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.546e-05/8.161, allocations: 35.5 kB / 2.226 GB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.159e-05/8.162, allocations: 3.969 kB / 2.226 GB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.924e-05/8.162, allocations: 7.219 kB / 2.226 GB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01784/8.179, allocations: 6.942 MB / 2.232 GB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.421e-05/8.18, allocations: 1.312 kB / 2.232 GB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001682/8.181, allocations: 168.8 kB / 2.233 GB, free: 10.67 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01396/8.195, allocations: 3.967 MB / 2.236 GB, free: 10.53 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005224/8.196, allocations: 45.7 kB / 2.237 GB, free: 10.53 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01012/8.206, allocations: 6.129 MB / 2.243 GB, free: 7.863 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/8.206, allocations: 0 / 2.243 GB, free: 7.863 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01567/8.222, allocations: 6.471 MB / 2.249 GB, free: 7.449 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008095/8.223, allocations: 266.4 kB / 2.249 GB, free: 7.25 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008166/8.223, allocations: 33.31 kB / 2.249 GB, free: 7.246 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002831/8.226, allocations: 145 kB / 2.249 GB, free: 7.234 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008201/8.227, allocations: 177.1 kB / 2.249 GB, free: 7.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002686/8.227, allocations: 60.88 kB / 2.249 GB, free: 7.23 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001452/8.229, allocations: 0.6941 MB / 2.25 GB, free: 7.113 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.11e-07/8.229, allocations: 0 / 2.25 GB, free: 7.113 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.008757/8.238, allocations: 1.883 MB / 2.252 GB, free: 7.016 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.medium.h,upperTank.level,lowerTank.medium.h,lowerTank.level) * Number of discrete variables: 21 ($cse3.phase,$cse3.region,$cse7.phase,$cse8.phase,$cse9.phase,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse21.phase,$cse21.region,$cse24.phase,$cse25.phase,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,upperTank.heatTransfer.states[1].phase,massFlowRate.medium.phase,lowerTank.heatTransfer.states[1].phase,hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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: 0 * Non-linear torn systems: 5 {2 4,3 6,1 5,4 20,4 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.02632/8.264, allocations: 8.443 MB / 2.26 GB, free: 5.559 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.009095/8.273, allocations: 2.606 MB / 2.263 GB, free: 4.688 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 9.067e-06/8.273, allocations: 2.812 kB / 2.263 GB, free: 4.688 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006776/8.28, allocations: 1.739 MB / 2.265 GB, free: 4.062 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005736/8.286, allocations: 0.6323 MB / 2.265 GB, free: 3.633 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2687/8.554, allocations: 4.451 MB / 2.269 GB, free: 38.32 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001374/8.556, allocations: 1.405 MB / 2.271 GB, free: 37.61 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001471/8.557, allocations: 0.6161 MB / 2.271 GB, free: 37.6 MB / 298.7 MB Notification: Performance of SimCode: time 1.463e-06/8.557, allocations: 0 / 2.271 GB, free: 37.6 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.519/13.08, allocations: 92 MB / 2.361 GB, free: 10.91 MB / 298.7 MB