A turbomachine, comprising: a rotor extending in an axial direction and comprising a driven side configured to be connected to a driving unit and a second side opposite the driven side; a housing extending around at least a portion of the rotor, wherein a main flow path for a process fluid extends between the rotor and the housing; a sealing arrangement configured for sealing a gap between the rotor and the housing at the driven side of the rotor, the driven side of the rotor being accessible or protruding from an interior of said housing, so that a driving unit can be connected directly or indirectly thereto; and a first magnetic bearing supporting the second side of the rotor, a second magnetic bearing supporting the driven side of the rotor; wherein a fluid passage for a portion of the process fluid extends from the main flow path through a bearing gap of the first magnetic bearing, said fluid passage configured to deliver a portion of the process fluid through the bearing gap of the first magnetic bearing for cooling said first magnetic bearing; wherein the main flow path is fluidly open toward a second bearing gap of the second magnetic bearing, wherein a second fluid passage for a portion of the process fluid extends from the main flow path through the second bearing gap for cooling the second magnetic bearing; characterized in that at least one of said fluid passage and said second fluid passage is in fluid communication with the main flow path through a cooling arrangement, adapted to remove heat from the process fluid flowing from the main flow path towards the at least one fluid passage (31, 33). a rotor extending in an axial direction and comprising a driven side configured to be connected to a driving unit and a second side opposite the driven side; a housing extending around at least a portion of the rotor, wherein a main flow path for a process fluid extends between the rotor and the housing; a sealing arrangement configured for sealing a gap between the rotor and the housing at the driven side of the rotor, the driven side of the rotor being accessible or protruding from an interior of said housing, so that a driving unit can be connected directly or indirectly thereto; and a first magnetic bearing supporting the second side of the rotor, a second magnetic bearing supporting the driven side of the rotor; wherein a fluid passage for a portion of the process fluid extends from the main flow path through a bearing gap of the first magnetic bearing, said fluid passage configured to deliver a portion of the process fluid through the bearing gap of the first magnetic bearing for cooling said first magnetic bearing; wherein the main flow path is fluidly open toward a second bearing gap of the second magnetic bearing, wherein a second fluid passage for a portion of the process fluid extends from the main flow path through the second bearing gap for cooling the second magnetic bearing; characterized in that at least one of said fluid passage and said second fluid passage is in fluid communication with the main flow path through a cooling arrangement, adapted to remove heat from the process fluid flowing from the main flow path towards the at least one fluid passage (31, 33).