Simulation of the frictional stick-slip instability