Modified energy bilan to match the new Matlab manager.