perfecto for vemu_energy.c