A state trooper working out while he was off duty died today after suffering a “medical emergency,” state police said.The 31-year-old graduated from the State Police Academy in 2011 and was assigned to the Framingham Barracks, according to state police spokesman David Procopio.Procopio said Framingham cops, firefighters, and paramedics responded to the scene and the trooper was taken to Framingham Union Hospital where he was pronounced dead.The trooper’s name has not yet been released.