Fixups regarding constant minimization, nanisinf for EnergyAdapter

12 jobs for constantfixups in 13 minutes and 44 seconds (queued for 1 second)