Energy model working