The problem was in the simulation speed. It needs to be thirty milliseconds per second or it will not work. This is a slightly modified version of the example, the modification being the addition of the switch. Enjoy! Next I will make a system of two with an SPDT switch.