Spontaneous phase oscillation induced by inertia and time delay