Now saves OCDFT energy to globals.