@EricTressler As a matter of fact, I had a crucial realization this morning. I had been treating $\theta$ and $\phi$ as completely independent, but I realized this morning that a pendulum moving through 3D space with no external forces will trace out a great circle, and that has $\dot{\theta}$ and $\dot{\phi}$ varying in time, which my simulation was not doing.