Running command: translateModel(BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex") Notification: Performance of loadModel(BuildingSystems): time 3.071/3.071, allocations: 343.8 MB / 355.9 MB, free: 9.355 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.881e-05/3.908e-05, allocations: 4 kB / 436.6 MB, free: 2.461 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1411/0.1411, allocations: 77.73 MB / 0.5022 GB, free: 4.574 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5123/0.6535, allocations: 109.1 MB / 0.6088 GB, free: 12 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002385/0.6538, allocations: 75.95 kB / 0.6088 GB, free: 11.93 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.03513/0.689, allocations: 7.565 MB / 0.6162 GB, free: 4.281 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.081e-06/0.689, allocations: 0 / 0.6162 GB, free: 4.281 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 1.785e-05/0.689, allocations: 8 kB / 0.6162 GB, free: 4.273 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.001847/0.6909, allocations: 0.708 MB / 0.6169 GB, free: 3.5 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.613e-05/0.691, allocations: 12.03 kB / 0.6169 GB, free: 3.488 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001847/0.6912, allocations: 43.53 kB / 0.617 GB, free: 3.445 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003988/0.6916, allocations: 267.9 kB / 0.6172 GB, free: 3.145 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.942e-05/0.6916, allocations: 16.44 kB / 0.6172 GB, free: 3.129 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.801e-05/0.6917, allocations: 23.98 kB / 0.6173 GB, free: 3.105 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007262/0.6925, allocations: 280 kB / 0.6175 GB, free: 2.816 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.293e-05/0.6925, allocations: 4 kB / 0.6175 GB, free: 2.812 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.879e-05/0.6926, allocations: 8 kB / 0.6175 GB, free: 2.805 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.099e-06/0.6926, allocations: 8 kB / 0.6175 GB, free: 2.797 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006512/0.6933, allocations: 215.9 kB / 0.6177 GB, free: 2.586 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002241/0.6955, allocations: 0.8945 MB / 0.6186 GB, free: 1.633 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009521/0.6965, allocations: 306 kB / 0.6189 GB, free: 1.316 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004356/0.697, allocations: 170 kB / 0.6191 GB, free: 1.145 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008371/0.6978, allocations: 453.6 kB / 0.6195 GB, free: 0.6094 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007236/0.6986, allocations: 289 kB / 0.6198 GB, free: 316 kB / 0.4948 GB Notification: Performance of pre-optimization done (n=42): time 4.539e-06/0.6986, allocations: 0 / 0.6198 GB, free: 316 kB / 0.4948 GB Notification: Performance of matching and sorting (n=42): time 0.001174/0.6998, allocations: 386.4 kB / 0.6202 GB, free: 15.93 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.786e-05/0.6999, allocations: 89.09 kB / 0.6202 GB, free: 15.82 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005346/0.7005, allocations: 294.9 kB / 0.6205 GB, free: 15.52 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 9.156e-05/0.7006, allocations: 41.64 kB / 0.6206 GB, free: 15.48 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001675/0.7008, allocations: 168.8 kB / 0.6207 GB, free: 15.31 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001942/0.701, allocations: 138 kB / 0.6209 GB, free: 15.17 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.591e-05/0.701, allocations: 12 kB / 0.6209 GB, free: 15.16 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002059/0.7012, allocations: 346.8 kB / 0.6212 GB, free: 14.81 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004874/0.7017, allocations: 161.8 kB / 0.6213 GB, free: 14.65 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004906/0.7022, allocations: 205.7 kB / 0.6215 GB, free: 14.43 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005437/0.7028, allocations: 240.7 kB / 0.6218 GB, free: 14.18 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.138e-06/0.7028, allocations: 0 / 0.6218 GB, free: 14.18 MB / 0.5105 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001457/0.7043, allocations: 0.5489 MB / 0.6223 GB, free: 13.61 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.012e-05/0.7044, allocations: 89.67 kB / 0.6224 GB, free: 13.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.314e-05/0.7044, allocations: 8.062 kB / 0.6224 GB, free: 13.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.13e-05/0.7045, allocations: 8 kB / 0.6224 GB, free: 13.49 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008401/0.7053, allocations: 119.8 kB / 0.6225 GB, free: 13.37 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.605e-05/0.7054, allocations: 4 kB / 0.6225 GB, free: 13.37 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000718/0.7061, allocations: 71.56 kB / 0.6226 GB, free: 13.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.2e-05/0.7062, allocations: 23.98 kB / 0.6226 GB, free: 13.27 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.0003307/0.7065, allocations: 174.1 kB / 0.6228 GB, free: 13.1 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001116/0.7067, allocations: 47.52 kB / 0.6228 GB, free: 13.05 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00174/0.7084, allocations: 0.5402 MB / 0.6234 GB, free: 12.5 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.261e-05/0.7085, allocations: 7.953 kB / 0.6234 GB, free: 12.5 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.273e-05/0.7085, allocations: 12 kB / 0.6234 GB, free: 12.48 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.135e-05/0.7085, allocations: 7.922 kB / 0.6234 GB, free: 12.48 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008019/0.7093, allocations: 472.9 kB / 0.6238 GB, free: 11.96 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.111e-06/0.7093, allocations: 0 / 0.6238 GB, free: 11.96 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008747/0.7102, allocations: 115.9 kB / 0.6239 GB, free: 11.85 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.23e-05/0.7103, allocations: 4 kB / 0.624 GB, free: 11.85 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.44e-05/0.7103, allocations: 15.98 kB / 0.624 GB, free: 11.83 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.712e-06/0.7103, allocations: 8 kB / 0.624 GB, free: 11.82 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.322e-06/0.7104, allocations: 3.953 kB / 0.624 GB, free: 11.82 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001751/0.7121, allocations: 0.6883 MB / 0.6247 GB, free: 11.11 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003282/0.7125, allocations: 172.3 kB / 0.6248 GB, free: 10.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001033/0.7126, allocations: 15.98 kB / 0.6248 GB, free: 10.91 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005918/0.7132, allocations: 51.91 kB / 0.6249 GB, free: 10.86 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001932/0.7134, allocations: 55.86 kB / 0.6249 GB, free: 10.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.243e-05/0.7135, allocations: 19.98 kB / 0.625 GB, free: 10.79 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0003845/0.7139, allocations: 234.2 kB / 0.6252 GB, free: 10.55 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.77e-07/0.7139, allocations: 0 / 0.6252 GB, free: 10.55 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0006426/0.7146, allocations: 139.9 kB / 0.6253 GB, free: 10.42 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.0003391/0.7149, allocations: 162.3 kB / 0.6255 GB, free: 10.25 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001217/0.7162, allocations: 0.5556 MB / 0.626 GB, free: 9.66 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.951e-06/0.7162, allocations: 0 / 0.626 GB, free: 9.66 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0005736/0.7168, allocations: 215.9 kB / 0.6262 GB, free: 9.449 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005513/0.7174, allocations: 53.44 kB / 0.6263 GB, free: 9.398 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002281/0.7197, allocations: 0.9895 MB / 0.6272 GB, free: 8.383 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005421/0.7202, allocations: 0.8094 MB / 0.628 GB, free: 7.543 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.000552/0.7208, allocations: 67.41 kB / 0.6281 GB, free: 7.477 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002631/0.7211, allocations: 47.42 kB / 0.6281 GB, free: 7.43 MB / 0.5105 GB Notification: Performance of SimCode: time 1.723e-06/0.7211, allocations: 0 / 0.6281 GB, free: 7.43 MB / 0.5105 GB Notification: Performance of Templates: time 0.01771/0.7388, allocations: 5.969 MB / 0.634 GB, free: 1.504 MB / 0.5105 GB