Thank you for sharing your code! But when I set total vehicles in an hour: 5000 (the same way you set it up) then the model had a lot of collisions. I used Sumo version 1.11.0 
Thank you for sharing your code!
But when I set total vehicles in an hour: 5000 (the same way you set it up) then the model had a lot of collisions.
I used Sumo version 1.11.0