Thank you for your reply. I was checking the model with implicit solver and the model worked completely well without spring. The moment I added a discrete linear elastic spring, the model failed to converge. For your convenience, I am adding the spring code portion here by screenshot. 

Herein the code, pid = 3;