Fixed a scala issue with TElectricStorage using () at the end of getEnergy