Novak Djokovic saw his time come to an end in the Australian Open after he retired during his semifinal match.