What is the reason for using log normal for revenue? I've typically seen gamma or Pareto-II used here. Gamma is also let's you avoid the Fenton Wilkerson approximation.
Aside for the 0 bound on SD params you shouldn't need to bound the parameters. If you are getting crazy values, it probably means your priors aren't strong enough.
I think gamma is preferred over inverse gamma for prior on variance, but this is debatable
Set your cflags to -O0 and without -g while debugging, it compiles much faster and reduces the iteration cycle for finding simple bugs :)