Equilibrium and non-equilibrium states of the YBCO-O2 system