Hi there! I have been trying to use rstan to run my bayesian model, but have been receiving a c++ exception error message and “Stan model does not contain samples”. I am using rstan version 2.21.2, R-3.6.3 on Mac Catalina 10.15.3. Here is some code for the model I’m running, as well as the subsequent error messages. Any help at all would be much appreciated!!
bayes_name <- mm_name(type='bayes', pool_K600='binned', err_obs_iid=TRUE, err_proc_acor=FALSE, err_proc_iid=TRUE, ode_method = 'trapezoid', deficit_src='DO_mod', engine='stan') #### Set the model specs. bayes_specs <- revise(specs(bayes_name), burnin_steps=1000, saved_steps=500, day_start=3, day_end=27, GPP_daily_mu = 1, GPP_daily_lower = 0,GPP_daily_sigma = 2, ER_daily_mu = -6, ER_daily_upper = 0, ER_daily_sigma = 3, K600_lnQ_nodes_centers= log(pred_K$discharge), K600_lnQ_nodes_meanlog= log(pred_K$K.600.fit), K600_daily_sigma_sigma=0.7, chains=1) # bayes_specs #run the model with the specs bayes_fit_kup <- metab(bayes_specs, data=dat_bayes) ## ERROR MESSAGES: Chain 1: Iteration: 1 / 1500 [ 0%] (Warmup)  "Error in sampler$call_sampler(args_list[[i]]) : "  " c++ exception (unknown reason)" error occurred during calling the sampler; sampling not done here are whatever error messages were returned `data_frame()` is deprecated as of tibble 1.1.0. Please use `tibble()` instead. This warning is displayed once every 8 hours. Call `lifecycle::last_warnings()` to see where this warning was generated.Modeling failed Warnings: some chains had errors; consider specifying chains = 1 to debug Stan model 'b_Kb_oipi_tr_plrckm' does not contain samples.