A tracking time domain simulator for real-time transient stability analysis