Running command: "" <> buildModelFMU(BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_ElectricalStorages_Examples_BatteryComplex",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(BuildingSystems): time 3.569/3.569, allocations: 343.8 MB / 355.9 MB, free: 9.398 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.578e-05/4.594e-05, allocations: 4 kB / 436.6 MB, free: 2.406 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1904/0.1905, allocations: 77.73 MB / 0.5023 GB, free: 4.512 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6705/0.861, allocations: 109.1 MB / 0.6088 GB, free: 11.9 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002777/0.8614, allocations: 79.95 kB / 0.6089 GB, free: 11.82 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.04112/0.9025, allocations: 7.564 MB / 0.6163 GB, free: 4.18 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.134e-06/0.9026, allocations: 0 / 0.6163 GB, free: 4.18 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 2.189e-05/0.9026, allocations: 4 kB / 0.6163 GB, free: 4.176 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.002551/0.9052, allocations: 0.708 MB / 0.617 GB, free: 3.402 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.146e-05/0.9052, allocations: 12.03 kB / 0.617 GB, free: 3.391 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001526/0.9054, allocations: 54.55 kB / 0.617 GB, free: 3.328 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001829/0.9056, allocations: 43.52 kB / 0.6171 GB, free: 3.285 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004178/0.906, allocations: 271.9 kB / 0.6173 GB, free: 2.98 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.106e-05/0.9061, allocations: 20.44 kB / 0.6174 GB, free: 2.961 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001248/0.9062, allocations: 24 kB / 0.6174 GB, free: 2.938 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008329/0.9071, allocations: 276 kB / 0.6177 GB, free: 2.652 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.414e-05/0.9071, allocations: 0 / 0.6177 GB, free: 2.652 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.733e-05/0.9072, allocations: 8 kB / 0.6177 GB, free: 2.645 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.147e-05/0.9072, allocations: 4 kB / 0.6177 GB, free: 2.641 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007706/0.908, allocations: 223.9 kB / 0.6179 GB, free: 2.422 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002666/0.9107, allocations: 0.8984 MB / 0.6188 GB, free: 1.465 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001075/0.9118, allocations: 302.1 kB / 0.619 GB, free: 1.152 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005168/0.9124, allocations: 178 kB / 0.6192 GB, free: 0.9727 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001035/0.9134, allocations: 453.6 kB / 0.6196 GB, free: 448 kB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008744/0.9144, allocations: 285.2 kB / 0.6199 GB, free: 144 kB / 0.4948 GB Notification: Performance of pre-optimization done (n=42): time 4.068e-06/0.9144, allocations: 3.938 kB / 0.6199 GB, free: 140 kB / 0.4948 GB Notification: Performance of matching and sorting (n=42): time 0.001373/0.9158, allocations: 378.7 kB / 0.6203 GB, free: 15.76 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.165e-05/0.9159, allocations: 89.05 kB / 0.6204 GB, free: 15.65 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006139/0.9165, allocations: 299 kB / 0.6207 GB, free: 15.35 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001317/0.9167, allocations: 33.7 kB / 0.6207 GB, free: 15.31 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001802/0.9169, allocations: 160.8 kB / 0.6208 GB, free: 15.15 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002387/0.9171, allocations: 149.9 kB / 0.621 GB, free: 15 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.83e-05/0.9172, allocations: 4 kB / 0.621 GB, free: 15 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001867/0.9174, allocations: 350.8 kB / 0.6213 GB, free: 14.65 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005462/0.918, allocations: 165.8 kB / 0.6215 GB, free: 14.48 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005777/0.9186, allocations: 201.7 kB / 0.6217 GB, free: 14.27 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000636/0.9192, allocations: 244.7 kB / 0.6219 GB, free: 14.02 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.54e-06/0.9192, allocations: 0 / 0.6219 GB, free: 14.02 MB / 0.5105 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001671/0.9209, allocations: 0.545 MB / 0.6224 GB, free: 13.45 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.77e-05/0.9211, allocations: 93.67 kB / 0.6225 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.9211, allocations: 0 / 0.6225 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.68e-05/0.9211, allocations: 4 kB / 0.6225 GB, free: 13.33 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00125/0.9224, allocations: 128 kB / 0.6226 GB, free: 13.21 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.799e-05/0.9225, allocations: 0 / 0.6226 GB, free: 13.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001131/0.9236, allocations: 71.55 kB / 0.6227 GB, free: 13.14 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000113/0.9238, allocations: 23.98 kB / 0.6227 GB, free: 13.11 MB / 0.5105 GB Warning: Assuming fixed start value for the following 8 variables: battery_1C.E_discharged:VARIABLE(start = 0.0 unit = "J" ) "Total energy taken from the battery" type: Real battery_1C.E_charged:VARIABLE(start = 0.0 unit = "J" ) "Total energy charged to the battery" type: Real battery_C20.E_discharged:VARIABLE(start = 0.0 unit = "J" ) "Total energy taken from the battery" type: Real battery_C20.E_charged:VARIABLE(start = 0.0 unit = "J" ) "Total energy charged to the battery" type: Real battery_1C.EBou:VARIABLE(start = (1.0 - battery_1C.c) * battery_1C.SOC_start * battery_1C.E_nominal unit = "J" ) "Bound charge of the battery" type: Real battery_1C.EAva:VARIABLE(start = battery_1C.c * battery_1C.SOC_start * battery_1C.E_nominal unit = "J" ) "Available charge of the battery" type: Real battery_C20.EBou:VARIABLE(start = (1.0 - battery_C20.c) * battery_C20.SOC_start * battery_C20.E_nominal unit = "J" ) "Bound charge of the battery" type: Real battery_C20.EAva:VARIABLE(start = battery_C20.c * battery_C20.SOC_start * battery_C20.E_nominal unit = "J" ) "Available charge of the battery" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition3,$whenCondition2,$PRE.gain.T_start,gain.T_start,$PRE.gain.count,gain.count,$PRE.load_1C.T_start,load_1C.T_start,$PRE.load_1C.count,load_1C.count,$whenCondition1,$PRE.load_C20.T_start,load_C20.T_start,$PRE.load_C20.count,load_C20.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003876/0.9242, allocations: 185.6 kB / 0.6229 GB, free: 12.93 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000152/0.9243, allocations: 35.53 kB / 0.623 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002175/0.9265, allocations: 0.5519 MB / 0.6235 GB, free: 12.34 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-05/0.9266, allocations: 8 kB / 0.6235 GB, free: 12.33 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.089e-05/0.9266, allocations: 7.938 kB / 0.6235 GB, free: 12.32 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.064e-05/0.9266, allocations: 0 / 0.6235 GB, free: 12.32 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009483/0.9276, allocations: 472.9 kB / 0.624 GB, free: 11.81 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.008e-05/0.9276, allocations: 11.98 kB / 0.624 GB, free: 11.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0013/0.929, allocations: 111.9 kB / 0.6241 GB, free: 11.69 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.619e-05/0.929, allocations: 4 kB / 0.6241 GB, free: 11.68 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001036/0.9291, allocations: 15.94 kB / 0.6241 GB, free: 11.67 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.78e-05/0.9292, allocations: 7.953 kB / 0.6241 GB, free: 11.66 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.9292, allocations: 0 / 0.6241 GB, free: 11.66 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002147/0.9313, allocations: 0.6992 MB / 0.6248 GB, free: 10.95 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004221/0.9318, allocations: 172.4 kB / 0.6249 GB, free: 10.76 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001298/0.932, allocations: 15.95 kB / 0.625 GB, free: 10.74 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009035/0.9329, allocations: 47.95 kB / 0.625 GB, free: 10.7 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002633/0.9332, allocations: 63.84 kB / 0.6251 GB, free: 10.63 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.111e-05/0.9332, allocations: 12 kB / 0.6251 GB, free: 10.62 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0004475/0.9337, allocations: 238.2 kB / 0.6253 GB, free: 10.39 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.71e-07/0.9337, allocations: 0 / 0.6253 GB, free: 10.39 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0008141/0.9345, allocations: 131.9 kB / 0.6254 GB, free: 10.26 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 8 (battery_1C.EAva,battery_1C.EBou,battery_1C.E_charged,battery_1C.E_discharged,battery_C20.EAva,battery_C20.EBou,battery_C20.E_charged,battery_C20.E_discharged) * Number of discrete variables: 9 ($whenCondition3,$whenCondition2,gain.T_start,gain.count,load_1C.T_start,load_1C.count,$whenCondition1,load_C20.T_start,load_C20.count) * Number of discrete states: 3 (load_C20.count,gain.count,load_1C.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002802/0.9374, allocations: 1.365 MB / 0.6268 GB, free: 8.855 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001513/0.9389, allocations: 0.5441 MB / 0.6273 GB, free: 8.273 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.939, allocations: 4.25 kB / 0.6273 GB, free: 8.27 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0007145/0.9397, allocations: 219.8 kB / 0.6275 GB, free: 8.055 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007097/0.9405, allocations: 49.19 kB / 0.6276 GB, free: 8.008 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003421/0.9439, allocations: 1.095 MB / 0.6286 GB, free: 6.875 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004745/0.9444, allocations: 0.8094 MB / 0.6294 GB, free: 6.039 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0006717/0.9451, allocations: 79.38 kB / 0.6295 GB, free: 5.961 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004618/0.9456, allocations: 135.4 kB / 0.6296 GB, free: 5.828 MB / 0.5105 GB Notification: Performance of SimCode: time 1.543e-06/0.9456, allocations: 0 / 0.6296 GB, free: 5.828 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05032/0.9959, allocations: 9.541 MB / 0.6389 GB, free: 12.42 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003677/0.9964, allocations: 182.5 kB / 0.6391 GB, free: 12.2 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.778/3.775, allocations: 3.938 kB / 0.6391 GB, free: 12.19 MB / 0.5261 GB