Error in sumPwrConsumptionCalculation