Running command: translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Electrical.DC.Storage.Examples.Battery") Notification: Performance of loadModel(Buildings): time 4.426/4.426, allocations: 431.3 MB / 445.8 MB, free: 5.422 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.863e-05/2.86e-05, allocations: 6.188 kB / 0.5354 GB, free: 14.86 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.645/0.6451, allocations: 98.71 MB / 0.6318 GB, free: 11.96 MB / 0.5105 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Storage.Examples.Battery): time 0.00673/0.6519, allocations: 3.607 MB / 0.6353 GB, free: 8.336 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.004534/0.6565, allocations: 1.751 MB / 0.637 GB, free: 6.574 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004952/0.657, allocations: 23.94 kB / 0.6371 GB, free: 6.551 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.0003069/0.6573, allocations: 83.33 kB / 0.6371 GB, free: 6.469 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.0006119/0.658, allocations: 147.5 kB / 0.6373 GB, free: 6.324 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.00127/0.6593, allocations: 303.5 kB / 0.6376 GB, free: 6.027 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.001228/0.6605, allocations: 488 kB / 0.638 GB, free: 5.551 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001275/0.6618, allocations: 0.7234 MB / 0.6387 GB, free: 4.789 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003872/0.6622, allocations: 207.5 kB / 0.6389 GB, free: 4.586 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005112/0.6628, allocations: 235.1 kB / 0.6392 GB, free: 4.355 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003461/0.6631, allocations: 83.83 kB / 0.6392 GB, free: 4.273 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.0001457/0.6633, allocations: 28 kB / 0.6393 GB, free: 4.246 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0002112/0.6635, allocations: 151.5 kB / 0.6394 GB, free: 4.098 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.0001575/0.6637, allocations: 56 kB / 0.6395 GB, free: 4.043 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.001051/0.6647, allocations: 0.6297 MB / 0.6401 GB, free: 3.414 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.6648, allocations: 0 / 0.6401 GB, free: 3.414 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.865e-06/0.6648, allocations: 0 / 0.6401 GB, free: 3.414 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 1.705e-05/0.6648, allocations: 0 / 0.6401 GB, free: 3.414 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 187 * Number of variables: 187 Notification: Performance of Generate backend data structure: time 0.001817/0.6666, allocations: 0.7622 MB / 0.6408 GB, free: 2.602 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.492e-05/0.6667, allocations: 16.03 kB / 0.6408 GB, free: 2.586 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008364/0.6675, allocations: 123 kB / 0.641 GB, free: 2.465 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000884/0.6684, allocations: 415.8 kB / 0.6414 GB, free: 2.023 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.154e-05/0.6686, allocations: 61.98 kB / 0.6414 GB, free: 1.961 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001789/0.6688, allocations: 76 kB / 0.6415 GB, free: 1.887 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002031/0.6708, allocations: 0.8612 MB / 0.6423 GB, free: 0.9648 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.391e-05/0.6709, allocations: 11.89 kB / 0.6423 GB, free: 0.9531 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001002/0.671, allocations: 28 kB / 0.6424 GB, free: 0.9258 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001082/0.6711, allocations: 45.3 kB / 0.6424 GB, free: 0.8789 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001642/0.6727, allocations: 0.5632 MB / 0.643 GB, free: 324 kB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006144/0.6789, allocations: 3.701 MB / 0.6466 GB, free: 12.41 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009944/0.6799, allocations: 308.2 kB / 0.6469 GB, free: 12.1 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 5.562e-05/0.68, allocations: 16.36 kB / 0.6469 GB, free: 12.08 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005894/0.6806, allocations: 221.3 kB / 0.6471 GB, free: 11.86 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=47): time 3.266e-06/0.6806, allocations: 0 / 0.6471 GB, free: 11.86 MB / 0.5261 GB Notification: Performance of matching and sorting (n=47): time 0.00133/0.682, allocations: 454.5 kB / 0.6475 GB, free: 11.4 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.05e-05/0.6821, allocations: 59.84 kB / 0.6476 GB, free: 11.33 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006106/0.6827, allocations: 376.3 kB / 0.6479 GB, free: 10.96 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 8.385e-05/0.6828, allocations: 49.7 kB / 0.648 GB, free: 10.9 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.00033/0.6831, allocations: 327.6 kB / 0.6483 GB, free: 10.58 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002088/0.6833, allocations: 134.3 kB / 0.6484 GB, free: 10.45 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.401e-05/0.6834, allocations: 20 kB / 0.6484 GB, free: 10.43 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000186/0.6836, allocations: 358.8 kB / 0.6488 GB, free: 10.07 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004769/0.6841, allocations: 153.9 kB / 0.6489 GB, free: 9.914 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000686/0.6848, allocations: 383.6 kB / 0.6493 GB, free: 9.438 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005448/0.6853, allocations: 194.1 kB / 0.6495 GB, free: 9.25 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.057e-06/0.6854, allocations: 4 kB / 0.6495 GB, free: 9.246 MB / 0.5261 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001542/0.6869, allocations: 0.5878 MB / 0.6501 GB, free: 8.648 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001267/0.6882, allocations: 2.705 MB / 0.6527 GB, free: 5.734 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.545e-05/0.6883, allocations: 15.94 kB / 0.6527 GB, free: 5.719 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.578e-05/0.6883, allocations: 12 kB / 0.6527 GB, free: 5.707 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007824/0.6891, allocations: 103.8 kB / 0.6528 GB, free: 5.605 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.829e-05/0.6892, allocations: 15.94 kB / 0.6528 GB, free: 5.59 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005996/0.6898, allocations: 79.2 kB / 0.6529 GB, free: 5.512 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.139e-05/0.6899, allocations: 32 kB / 0.653 GB, free: 5.48 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/0.6899, allocations: 7.953 kB / 0.653 GB, free: 5.473 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00146/0.6914, allocations: 0.5249 MB / 0.6535 GB, free: 4.945 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.484e-05/0.6914, allocations: 8 kB / 0.6535 GB, free: 4.938 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.318e-05/0.6914, allocations: 12 kB / 0.6535 GB, free: 4.926 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006429/0.6921, allocations: 99.77 kB / 0.6536 GB, free: 4.828 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.351e-05/0.6921, allocations: 15.92 kB / 0.6536 GB, free: 4.812 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005607/0.6927, allocations: 71.28 kB / 0.6537 GB, free: 4.742 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.621e-05/0.6928, allocations: 35.98 kB / 0.6537 GB, free: 4.707 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 48 ($PRE.toOn.enableFire,$PRE.toHold.enableFire,$PRE.toDischarge.enableFire,$PRE.toOff.enableFire,$whenCondition1,$PRE.bat.cha.underCharged,bat.cha.underCharged,$PRE.bat.cha.overCharged,bat.cha.overCharged,off.active,$PRE.off.localActive,off.localActive,$PRE.off.newActive,off.newActive,$PRE.off.oldActive,off.oldActive,toOn.condition,toOn.enableFire,$PRE.charge.localActive,charge.localActive,$PRE.charge.newActive,charge.newActive,$PRE.charge.oldActive,charge.oldActive,charge.active,toHold.condition,toHold.enableFire,hold.active,$PRE.hold.localActive,hold.localActive,$PRE.hold.newActive,hold.newActive,$PRE.hold.oldActive,hold.oldActive,toDischarge.condition,toDischarge.enableFire,$PRE.discharge.localActive,discharge.localActive,$PRE.discharge.newActive,discharge.newActive,$PRE.discharge.oldActive,discharge.oldActive,discharge.active,toOff.condition,toOff.enableFire,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (92): * Single equations (assignments): 92 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005588/0.6934, allocations: 245.6 kB / 0.6539 GB, free: 4.457 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001354/0.6935, allocations: 47.39 kB / 0.654 GB, free: 4.41 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001146/0.6947, allocations: 401.5 kB / 0.6544 GB, free: 4.016 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.919e-06/0.6947, allocations: 4 kB / 0.6544 GB, free: 4.012 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.6947, allocations: 0 / 0.6544 GB, free: 4.012 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.261e-05/0.6947, allocations: 3.984 kB / 0.6544 GB, free: 4.008 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002528/0.6973, allocations: 1.067 MB / 0.6554 GB, free: 2.879 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.6973, allocations: 0 / 0.6554 GB, free: 2.879 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004382/0.6978, allocations: 51.84 kB / 0.6555 GB, free: 2.828 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.225e-05/0.6978, allocations: 4 kB / 0.6555 GB, free: 2.824 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.434e-05/0.6979, allocations: 12 kB / 0.6555 GB, free: 2.812 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.713e-06/0.6979, allocations: 0 / 0.6555 GB, free: 2.812 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.177e-06/0.6979, allocations: 11.92 kB / 0.6555 GB, free: 2.801 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001567/0.6995, allocations: 0.6525 MB / 0.6561 GB, free: 2.113 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002791/0.6998, allocations: 156.4 kB / 0.6563 GB, free: 1.941 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001102/0.6999, allocations: 15.98 kB / 0.6563 GB, free: 1.926 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003148/0.7002, allocations: 12.06 kB / 0.6563 GB, free: 1.914 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001691/0.7004, allocations: 56.31 kB / 0.6564 GB, free: 1.859 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.989e-05/0.7005, allocations: 16 kB / 0.6564 GB, free: 1.844 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0004209/0.7009, allocations: 251.2 kB / 0.6566 GB, free: 1.598 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.91e-07/0.7009, allocations: 3.938 kB / 0.6566 GB, free: 1.594 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.001183/0.7021, allocations: 270.9 kB / 0.6569 GB, free: 1.328 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (bat.cha.SOC) * Number of discrete variables: 32 (off.localActive,charge.localActive,hold.localActive,discharge.localActive,$cse1,$cse2,$cse3,$cse4,$whenCondition1,bat.cha.underCharged,bat.cha.overCharged,off.active,off.newActive,off.oldActive,toOn.condition,toOn.enableFire,charge.newActive,charge.oldActive,charge.active,toHold.condition,toHold.enableFire,hold.active,hold.newActive,hold.oldActive,toDischarge.condition,toDischarge.enableFire,discharge.newActive,discharge.oldActive,discharge.active,toOff.condition,toOff.enableFire,stateGraphRoot.activeSteps) * Number of discrete states: 6 (discharge.newActive,hold.newActive,charge.newActive,off.newActive,bat.cha.underCharged,bat.cha.overCharged) * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0002383/0.7024, allocations: 136.2 kB / 0.657 GB, free: 1.188 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001908/0.7043, allocations: 0.7282 MB / 0.6577 GB, free: 468 kB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.7043, allocations: 0 / 0.6577 GB, free: 468 kB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.000483/0.7048, allocations: 182.4 kB / 0.6579 GB, free: 284 kB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000881/0.7057, allocations: 96.61 kB / 0.658 GB, free: 192 kB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002726/0.7085, allocations: 1.165 MB / 0.6591 GB, free: 14.99 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006668/0.7092, allocations: 0.9194 MB / 0.66 GB, free: 14.05 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0008582/0.71, allocations: 140.6 kB / 0.6602 GB, free: 13.91 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001861/0.7102, allocations: 47.42 kB / 0.6602 GB, free: 13.86 MB / 0.5417 GB Notification: Performance of SimCode: time 9.32e-07/0.7103, allocations: 3.938 kB / 0.6602 GB, free: 13.86 MB / 0.5417 GB Notification: Performance of Templates: time 0.0195/0.7298, allocations: 5.819 MB / 0.6659 GB, free: 8.07 MB / 0.5417 GB