Non-linear dynamic intertwining of rods with self-contact