Consider the following stochastic differential equation: $$\ddot{X_t}+\omega_0^2X_t=dW_t.$$ I thought the way to do this would be to let: $$dX_t=\dot{X}_tdt,$$ $$d\dot{X}_t=-\omega_0^2X_tdt+dW_t,$$ however, this post says that the system of equations should be this: $$dX_t=\dot{X}_tdt+dW_t,$$ $$d\dot{X}_t=-\omega_0^2X_tdt.$$ The way it is done in that post seems to be correct as they are able to reproduce theoretical results numerically.
Edit:
The code in the linked post does not work if I switch the force vector around? Do you know why it doesn't work?