E_{\mathrm{ctrl,Wh}}=\frac{1}{3600}\int P_{\mathrm{ctrl,bus}}\,dt,\quad E_{\mathrm{loss,Wh}}=\frac{1}{3600}\int I_{\mathrm{eq}}(t)^2R\,dt