Systems and methods are provided to cool a heat producing component in an electrical machine system. The electrical machine includes a supercritical carbon dioxide (SCO