Ronnie O'Sullivan called a foul on himself during his International Championship semi-final against Zhang Anda.