Waveform relaxation based hardware-in-the-loop simulation