Clean energy company Ameresco, headquartered in Framingham, announced on Tuesday it has entered into a $43-million energy performance contract with the U.S. Coast Guard for a battery energy storage system project at Training Center Petaluma in California.