Compression and condensation of CO2