Correlation between the energy supplied by reconnection and the magnetospheric energy consumption