It is clear from the plot that some elements are not connected.  Where you see a gap in your plot means that there are two nodes on the ends of two elements. You need to make sure there is only one node used for the end of the element on each side of that node.  I see at least two gaps.