run the analysis after simulation

We now run the analysis directly after running the simulation. There is
some stuff to clean up here though.