Arrangements for cooling or ventilating for machines with closed casing and closed-circuit cooling using a liquid cooling medium, e.g. oil in which the rotor or stator space is fluid-tight, e.g. to provide for different cooling media for rotor and stator