Hello:
1. I am performing multivariate, finite mixture modeling. I use both the optimizing function (to find the mode of the posterior pdf) and the sampling function. When I use Rstan v 2.2.0, both functions work properly. When I use Rstan v 2.5.0 (with the very same code but with re-translation and re-compilation), only the sampling function works properly --- the optimizing function causes Rstan and R to crash.
2. Other info
(a) I tried to re-create the crash with a simpler model (namely the eyes example from bugs), but the crashes don't occur. So, I am sending the code that crashes.
(b) I also examined the translated code for the both 2.2.0 and 2.5.0, as well as the difference. However, I don't have enough experience with this translated code to find potential problems
(c) The crashes occur with all three options for the optimizing algorithm ("LBFGS", "BFGS", and "Newton")
3. Thank you!
Karl Ellefsen