how to simulate origami properly?
Look at it in Front View (Ortho). Note that with the rig you have it is designed so it will fold into a square, ignoring the end pieces. If you want something else like a pentagon maybe you should start with that shape and work backwards unfolding it. Or just change the shapes of the end pieces to be more like the rest.