Running command: translateModel(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple") Notification: Performance of loadModel(BuildingSystems): time 2.988/2.988, allocations: 343.8 MB / 355.9 MB, free: 9.395 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.321e-05/4.376e-05, allocations: 4 kB / 436.6 MB, free: 2.5 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1386/0.1386, allocations: 77.73 MB / 0.5022 GB, free: 4.609 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5046/0.6433, allocations: 108.3 MB / 0.608 GB, free: 12.78 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002232/0.6436, allocations: 70.16 kB / 0.6081 GB, free: 12.71 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.01691/0.6605, allocations: 3.95 MB / 0.612 GB, free: 8.711 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.703e-06/0.6606, allocations: 0 / 0.612 GB, free: 8.711 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 8.917e-06/0.6606, allocations: 0 / 0.612 GB, free: 8.711 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.0008749/0.6615, allocations: 475.8 kB / 0.6124 GB, free: 8.195 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.6615, allocations: 8.031 kB / 0.6124 GB, free: 8.188 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.241e-05/0.6616, allocations: 15.81 kB / 0.6124 GB, free: 8.172 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002378/0.6618, allocations: 207.2 kB / 0.6126 GB, free: 7.93 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.673e-05/0.6619, allocations: 4 kB / 0.6126 GB, free: 7.926 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.372e-05/0.6619, allocations: 12 kB / 0.6127 GB, free: 7.914 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002797/0.6622, allocations: 105.6 kB / 0.6128 GB, free: 7.805 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.429e-05/0.6623, allocations: 3.938 kB / 0.6128 GB, free: 7.801 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.692e-05/0.6623, allocations: 11.95 kB / 0.6128 GB, free: 7.789 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.881e-06/0.6623, allocations: 0 / 0.6128 GB, free: 7.789 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002317/0.6625, allocations: 79.95 kB / 0.6128 GB, free: 7.711 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009248/0.6635, allocations: 448.6 kB / 0.6133 GB, free: 7.223 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002642/0.6638, allocations: 102.6 kB / 0.6134 GB, free: 7.113 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001567/0.6639, allocations: 61.14 kB / 0.6134 GB, free: 7.051 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007758/0.6647, allocations: 445.5 kB / 0.6139 GB, free: 6.523 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002781/0.665, allocations: 115.9 kB / 0.614 GB, free: 6.398 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=16): time 2.957e-06/0.665, allocations: 0 / 0.614 GB, free: 6.398 MB / 0.4948 GB Notification: Performance of matching and sorting (n=16): time 0.00045/0.6655, allocations: 153.4 kB / 0.6141 GB, free: 6.242 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.987e-05/0.6656, allocations: 55.41 kB / 0.6142 GB, free: 6.176 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002477/0.6658, allocations: 169.6 kB / 0.6143 GB, free: 6.004 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 3.934e-05/0.6659, allocations: 29.7 kB / 0.6144 GB, free: 5.969 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.666, allocations: 116 kB / 0.6145 GB, free: 5.852 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 7.091e-05/0.6661, allocations: 51.27 kB / 0.6145 GB, free: 5.801 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.731e-05/0.6661, allocations: 4 kB / 0.6145 GB, free: 5.797 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000178/0.6663, allocations: 334.8 kB / 0.6148 GB, free: 5.461 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001661/0.6665, allocations: 64.75 kB / 0.6149 GB, free: 5.395 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000172/0.6667, allocations: 74.56 kB / 0.615 GB, free: 5.312 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001963/0.6669, allocations: 80.69 kB / 0.615 GB, free: 5.227 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.894e-06/0.6669, allocations: 0 / 0.615 GB, free: 5.227 MB / 0.4948 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005224/0.6674, allocations: 221.5 kB / 0.6153 GB, free: 5 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 5.192e-05/0.6675, allocations: 34.33 kB / 0.6153 GB, free: 4.961 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.366e-06/0.6675, allocations: 3.984 kB / 0.6153 GB, free: 4.957 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/0.6675, allocations: 3.953 kB / 0.6153 GB, free: 4.953 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003443/0.6679, allocations: 51.91 kB / 0.6153 GB, free: 4.902 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.181e-05/0.6679, allocations: 0 / 0.6153 GB, free: 4.902 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002504/0.6682, allocations: 31.83 kB / 0.6154 GB, free: 4.871 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.335e-05/0.6682, allocations: 8 kB / 0.6154 GB, free: 4.863 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.0002043/0.6684, allocations: 141.8 kB / 0.6155 GB, free: 4.723 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.762e-05/0.6685, allocations: 19.75 kB / 0.6155 GB, free: 4.703 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006221/0.6691, allocations: 210 kB / 0.6157 GB, free: 4.5 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.742e-06/0.6692, allocations: 8 kB / 0.6157 GB, free: 4.492 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.794e-06/0.6692, allocations: 0 / 0.6157 GB, free: 4.492 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.448e-06/0.6692, allocations: 0 / 0.6157 GB, free: 4.492 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003632/0.6696, allocations: 273.3 kB / 0.616 GB, free: 4.176 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.837e-06/0.6696, allocations: 0 / 0.616 GB, free: 4.176 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003651/0.67, allocations: 47.91 kB / 0.6161 GB, free: 4.129 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.698e-06/0.67, allocations: 0 / 0.6161 GB, free: 4.129 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.683e-05/0.67, allocations: 4 kB / 0.6161 GB, free: 4.125 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.463e-06/0.67, allocations: 3.984 kB / 0.6161 GB, free: 4.121 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.058e-06/0.67, allocations: 4 kB / 0.6161 GB, free: 4.117 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006536/0.6707, allocations: 279.1 kB / 0.6163 GB, free: 3.828 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001488/0.6709, allocations: 112.9 kB / 0.6164 GB, free: 3.699 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.381e-05/0.6709, allocations: 0 / 0.6164 GB, free: 3.699 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002179/0.6712, allocations: 15.98 kB / 0.6165 GB, free: 3.684 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.064e-05/0.6713, allocations: 23.97 kB / 0.6165 GB, free: 3.66 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.562e-05/0.6713, allocations: 7.984 kB / 0.6165 GB, free: 3.652 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0001853/0.6715, allocations: 144.3 kB / 0.6166 GB, free: 3.512 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.17e-07/0.6715, allocations: 0 / 0.6166 GB, free: 3.512 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0004319/0.672, allocations: 63.94 kB / 0.6167 GB, free: 3.449 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.0002668/0.6722, allocations: 147.1 kB / 0.6168 GB, free: 3.297 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0004493/0.6727, allocations: 195.5 kB / 0.617 GB, free: 3.094 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.561e-06/0.6727, allocations: 4 kB / 0.617 GB, free: 3.09 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0001907/0.6729, allocations: 70.52 kB / 0.6171 GB, free: 3.023 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002894/0.6732, allocations: 32.73 kB / 0.6171 GB, free: 2.992 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00107/0.6743, allocations: 471.8 kB / 0.6176 GB, free: 2.504 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004121/0.6747, allocations: 0.7282 MB / 0.6183 GB, free: 1.75 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0001697/0.6749, allocations: 29.25 kB / 0.6183 GB, free: 1.723 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001049/0.6751, allocations: 23.42 kB / 0.6183 GB, free: 1.699 MB / 0.4948 GB Notification: Performance of SimCode: time 1.503e-06/0.6751, allocations: 0 / 0.6183 GB, free: 1.699 MB / 0.4948 GB Notification: Performance of Templates: time 0.008242/0.6833, allocations: 2.634 MB / 0.6209 GB, free: 15.07 MB / 0.5105 GB