Running command: "" <> buildModelFMU(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_ElectricalStorages_Examples_BatterySimple",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(BuildingSystems): time 3.253/3.253, allocations: 343.8 MB / 355.9 MB, free: 9.383 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.512e-05/4.523e-05, allocations: 4 kB / 436.6 MB, free: 2.379 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.178/0.178, allocations: 77.73 MB / 0.5023 GB, free: 4.496 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6308/0.809, allocations: 108.3 MB / 0.6081 GB, free: 12.59 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003121/0.8093, allocations: 79.95 kB / 0.6082 GB, free: 12.51 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.01996/0.8293, allocations: 3.938 MB / 0.612 GB, free: 8.52 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.583e-06/0.8294, allocations: 0 / 0.612 GB, free: 8.52 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 1.158e-05/0.8294, allocations: 7.938 kB / 0.612 GB, free: 8.512 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.001176/0.8306, allocations: 475.8 kB / 0.6125 GB, free: 7.996 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.785e-05/0.8307, allocations: 15.97 kB / 0.6125 GB, free: 7.98 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.766e-05/0.8307, allocations: 38.55 kB / 0.6125 GB, free: 7.934 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.12e-05/0.8308, allocations: 19.77 kB / 0.6126 GB, free: 7.914 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002414/0.8311, allocations: 199.2 kB / 0.6128 GB, free: 7.68 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.384e-05/0.8311, allocations: 8 kB / 0.6128 GB, free: 7.672 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.969e-05/0.8312, allocations: 12 kB / 0.6128 GB, free: 7.66 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003067/0.8315, allocations: 105.6 kB / 0.6129 GB, free: 7.551 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.701e-05/0.8315, allocations: 3.953 kB / 0.6129 GB, free: 7.547 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.161e-05/0.8316, allocations: 0 / 0.6129 GB, free: 7.547 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.317e-06/0.8316, allocations: 8 kB / 0.6129 GB, free: 7.539 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000268/0.8319, allocations: 75.97 kB / 0.613 GB, free: 7.465 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001081/0.833, allocations: 449.1 kB / 0.6134 GB, free: 6.977 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000299/0.8333, allocations: 106.5 kB / 0.6135 GB, free: 6.863 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001785/0.8335, allocations: 69.08 kB / 0.6136 GB, free: 6.793 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001014/0.8345, allocations: 437.5 kB / 0.614 GB, free: 6.273 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003619/0.8349, allocations: 123.3 kB / 0.6141 GB, free: 6.141 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=16): time 3.947e-06/0.8349, allocations: 0 / 0.6141 GB, free: 6.141 MB / 0.4948 GB Notification: Performance of matching and sorting (n=16): time 0.0005322/0.8355, allocations: 149.4 kB / 0.6142 GB, free: 5.988 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.926e-05/0.8355, allocations: 59.41 kB / 0.6143 GB, free: 5.918 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002689/0.8358, allocations: 169.6 kB / 0.6145 GB, free: 5.746 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 3.962e-05/0.8359, allocations: 25.7 kB / 0.6145 GB, free: 5.715 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001046/0.836, allocations: 116.1 kB / 0.6146 GB, free: 5.598 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 7.914e-05/0.8361, allocations: 55.17 kB / 0.6146 GB, free: 5.543 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.013e-05/0.8361, allocations: 4 kB / 0.6146 GB, free: 5.539 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001529/0.8363, allocations: 330.8 kB / 0.615 GB, free: 5.207 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001862/0.8365, allocations: 64.84 kB / 0.615 GB, free: 5.141 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000196/0.8367, allocations: 72.19 kB / 0.6151 GB, free: 5.062 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000229/0.8369, allocations: 84.31 kB / 0.6152 GB, free: 4.973 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/0.837, allocations: 3.938 kB / 0.6152 GB, free: 4.969 MB / 0.4948 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006114/0.8376, allocations: 217.6 kB / 0.6154 GB, free: 4.746 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 4.889e-05/0.8376, allocations: 30.33 kB / 0.6154 GB, free: 4.711 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.8377, allocations: 4.062 kB / 0.6154 GB, free: 4.707 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.902e-05/0.8377, allocations: 7.953 kB / 0.6154 GB, free: 4.699 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005004/0.8382, allocations: 47.91 kB / 0.6155 GB, free: 4.652 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.456e-05/0.8382, allocations: 7.938 kB / 0.6155 GB, free: 4.645 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000388/0.8386, allocations: 27.83 kB / 0.6155 GB, free: 4.617 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.467e-05/0.8387, allocations: 7.984 kB / 0.6155 GB, free: 4.609 MB / 0.4948 GB Warning: Assuming fixed start value for the following 4 variables: battery.E_discharged:VARIABLE(start = 0.0 unit = "J" ) "Total energy taken from the battery" type: Real battery.E_charged:VARIABLE(start = 0.0 unit = "J" ) "Total energy charged to the battery" type: Real battery.EBou:VARIABLE(start = (1.0 - battery.c) * battery.SOC_start * battery.E_nominal unit = "J" ) "Bound charge of the battery" type: Real battery.EAva:VARIABLE(start = battery.c * battery.SOC_start * battery.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: 3 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.gain.T_start,gain.T_start,$PRE.gain.count,gain.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 1 * 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.000267/0.839, allocations: 140.8 kB / 0.6156 GB, free: 4.469 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.086e-05/0.839, allocations: 15.81 kB / 0.6157 GB, free: 4.453 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007655/0.8398, allocations: 208.1 kB / 0.6159 GB, free: 4.25 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.8398, allocations: 4 kB / 0.6159 GB, free: 4.246 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.8398, allocations: 0 / 0.6159 GB, free: 4.246 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.8399, allocations: 0 / 0.6159 GB, free: 4.246 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004077/0.8403, allocations: 273.3 kB / 0.6161 GB, free: 3.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.8403, allocations: 4 kB / 0.6161 GB, free: 3.926 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005207/0.8408, allocations: 43.91 kB / 0.6162 GB, free: 3.883 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.279e-05/0.8409, allocations: 4 kB / 0.6162 GB, free: 3.879 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.068e-05/0.8409, allocations: 4 kB / 0.6162 GB, free: 3.875 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.939e-06/0.8409, allocations: 0 / 0.6162 GB, free: 3.875 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.8409, allocations: 3.984 kB / 0.6162 GB, free: 3.871 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007795/0.8417, allocations: 276.8 kB / 0.6164 GB, free: 3.586 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001852/0.8419, allocations: 116.9 kB / 0.6166 GB, free: 3.453 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.735e-05/0.842, allocations: 8 kB / 0.6166 GB, free: 3.445 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000356/0.8424, allocations: 15.98 kB / 0.6166 GB, free: 3.43 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001076/0.8425, allocations: 19.91 kB / 0.6166 GB, free: 3.41 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.821e-05/0.8425, allocations: 8 kB / 0.6166 GB, free: 3.402 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0002022/0.8427, allocations: 144.3 kB / 0.6167 GB, free: 3.262 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.31e-07/0.8428, allocations: 0 / 0.6167 GB, free: 3.262 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0004799/0.8432, allocations: 67.94 kB / 0.6168 GB, free: 3.195 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (battery.EAva,battery.EBou,battery.E_charged,battery.E_discharged) * Number of discrete variables: 3 ($whenCondition1,gain.T_start,gain.count) * Number of discrete states: 1 (gain.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001341/0.8446, allocations: 0.8503 MB / 0.6176 GB, free: 2.316 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0005536/0.8452, allocations: 187.5 kB / 0.6178 GB, free: 2.121 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.8452, allocations: 4.125 kB / 0.6178 GB, free: 2.117 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0002365/0.8455, allocations: 94.89 kB / 0.6179 GB, free: 2.027 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004084/0.8459, allocations: 28.3 kB / 0.6179 GB, free: 2 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001648/0.8476, allocations: 0.5132 MB / 0.6184 GB, free: 1.445 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003721/0.848, allocations: 0.736 MB / 0.6192 GB, free: 0.6836 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0002326/0.8482, allocations: 25.31 kB / 0.6192 GB, free: 0.6602 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001865/0.8484, allocations: 59.41 kB / 0.6192 GB, free: 0.6016 MB / 0.4948 GB Notification: Performance of SimCode: time 2.024e-06/0.8484, allocations: 0 / 0.6192 GB, free: 0.6016 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02907/0.8775, allocations: 4.502 MB / 0.6236 GB, free: 12.19 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003426/0.8779, allocations: 178.7 kB / 0.6238 GB, free: 11.96 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.481/3.359, allocations: 7.938 kB / 0.6238 GB, free: 11.95 MB / 0.5105 GB