frame #0: 0x000000010850db70 libc++abi.dylib`__cxa_throw
frame #1: 0x000000011d38335b file144151e196a9a.so`void stan::math::domain_errorstan::math::var(function=“inv_wishart_lpdf”, name=“LDLT_Factor of random variable”, y=0x00007fff5fbec200, msg1=“is not positive definite. last conditional variance is “, msg2=”.”) at domain_error.hpp:36
frame #2: 0x000000011d387da3 file144151e196a9a.so`void stan::math::check_ldlt_factor<stan::math::var, -1, -1>(function=“inv_wishart_lpdf”, name=“LDLT_Factor of random variable”, A=0x00007fff5fbec628) at check_ldlt_factor.hpp:42
frame #3: 0x000000011d387399 file144151e196a9a.so`boost::math::tools::promote_args<stan::math::var, int, double, float, float, float>::type stan::math::inv_wishart_lpdf<true, stan::math::var, int, double>(W=0x00007fff5fbecc68, nu=0x00007fff5fbec984, S=0x0000000104191dd8) at inv_wishart_lpdf.hpp:71
frame #4: 0x000000011d37bd95 file144151e196a9a.so`boost::math::tools::promote_args<stan::math::var, int, double, float, float, float>::type stan::math::inv_wishart_log<true, stan::math::var, int, double>(W=0x00007fff5fbecc68, nu=0x00007fff5fbec984, S=0x0000000104191dd8) at inv_wishart_log.hpp:38
frame #5: 0x000000011d377db7 file144151e196a9a.so`stan::math::var model144157b4f772d_birats_namespace::model144157b4f772d_birats::log_prob<true, true, stan::math::var>(this=0x0000000104191d70, params_r__=size=66, params_i__=size=0, pstream__=0x00007fff5fbed658) const at file144151e196a9a.cpp:336
frame #6: 0x000000011d3da1b3 file144151e196a9a.sostan::math::var model144157b4f772d_birats_namespace::model144157b4f772d_birats::log_prob<true, true, stan::math::var>(this=0x0000000104191d70, params_r=0x00007fff5fbed510, pstream=0x00007fff5fbed658) const at file144151e196a9a.cpp:369 frame #7: 0x000000011d3d8d87 file144151e196a9a.so
stan::math::var stan::model::model_functional<model144157b4f772d_birats_namespace::model144157b4f772d_birats>::operator(this=0x00007fff5fbed648, x=0x00007fff5fbed510)stan::math::var(Eigen::Matrix<stan::math::var, -1, 1, 0, -1, 1> const&) const at model_functional.hpp:23
frame #8: 0x000000011d3d8717 file144151e196a9a.sovoid stan::math::gradient<stan::model::model_functional<model144157b4f772d_birats_namespace::model144157b4f772d_birats> >(f=0x00007fff5fbed648, x=0x00007fff5fbee408, fx=0x00007fff5fbee428, grad_fx=0x00007fff5fbee430) at gradient.hpp:51 frame #9: 0x000000011d3d6b13 file144151e196a9a.so
void stan::model::gradient<model144157b4f772d_birats_namespace::model144157b4f772d_birats>(model=0x0000000104191d70, x=0x00007fff5fbee408, f=0x00007fff5fbee428, grad_f=0x00007fff5fbee430, logger=0x00007fff5fbf0740) at gradient.hpp:31
frame #10: 0x000000011d3fc5ed file144151e196a9a.sostan::mcmc::base_hamiltonian<model144157b4f772d_birats_namespace::model144157b4f772d_birats, stan::mcmc::diag_e_point, boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014u, 0u, 2147483563u>, boost::random::linear_congruential_engine<unsigned int, 40692u, 0u, 2147483399u> > >::update_potential_gradient(this=0x00007fff5fbee458, z=0x00007fff5fbee400, logger=0x00007fff5fbf0740) at base_hamiltonian.hpp:69 frame #11: 0x000000011d3fc413 file144151e196a9a.so
stan::mcmc::expl_leapfrog<stan::mcmc::diag_e_metric<model144157b4f772d_birats_namespace::model144157b4f772d_birats, boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014u, 0u, 2147483563u>, boost::random::linear_congruential_engine<unsigned int, 40692u, 0u, 2147483399u> > > >::update_q(this=0x00007fff5fbee450, z=0x00007fff5fbee400, hamiltonian=0x00007fff5fbee458, epsilon=1, logger=0x00007fff5fbf0740) at expl_leapfrog.hpp:27
frame #12: 0x000000011d3fc218 file144151e196a9a.sostan::mcmc::base_leapfrog<stan::mcmc::diag_e_metric<model144157b4f772d_birats_namespace::model144157b4f772d_birats, boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014u, 0u, 2147483563u>, boost::random::linear_congruential_engine<unsigned int, 40692u, 0u, 2147483399u> > > >::evolve(this=0x00007fff5fbee450, z=0x00007fff5fbee400, hamiltonian=0x00007fff5fbee458, epsilon=1, logger=0x00007fff5fbf0740) at base_leapfrog.hpp:24 frame #13: 0x000000011d403209 file144151e196a9a.so
stan::mcmc::base_hmc<model144157b4f772d_birats_namespace::model144157b4f772d_birats, stan::mcmc::diag_e_metric, stan::mcmc::expl_leapfrog, boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014u, 0u, 2147483563u>, boost::random::linear_congruential_engine<unsigned int, 40692u, 0u, 2147483399u> > >::init_stepsize(this=0x00007fff5fbee3f8, logger=0x00007fff5fbf0740) at base_hmc.hpp:96
frame #14: 0x000000011d4015e5 file144151e196a9a.sovoid stan::services::util::run_adaptive_sampler<stan::mcmc::adapt_diag_e_nuts<model144157b4f772d_birats_namespace::model144157b4f772d_birats, boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014u, 0u, 2147483563u>, boost::random::linear_congruential_engine<unsigned int, 40692u, 0u, 2147483399u> > >, model144157b4f772d_birats_namespace::model144157b4f772d_birats, boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014u, 0u, 2147483563u>, boost::random::linear_congruential_engine<unsigned int, 40692u, 0u, 2147483399u> > >(sampler=0x00007fff5fbee3f8, model=0x0000000104191d70, cont_vector=size=66, num_warmup=1000, num_samples=1000, num_thin=1, refresh=200, save_warmup=true, rng=0x00007fff5fbee5e8, interrupt=0x00007fff5fbf0738, logger=0x00007fff5fbf0740, sample_writer=0x0000000104194d90, diagnostic_writer=0x00007fff5fbf05f0) at run_adaptive_sampler.hpp:53 frame #15: 0x000000011d4012a9 file144151e196a9a.so
int stan::services::sample::hmc_nuts_diag_e_adapt<model144157b4f772d_birats_namespace::model144157b4f772d_birats>(model=0x0000000104191d70, init=0x00000001041133e0, init_inv_metric=0x00007fff5fbee8d0, random_seed=1020848125, chain=1, init_radius=2, num_warmup=1000, num_samples=1000, num_thin=1, save_warmup=true, refresh=200, stepsize=1, stepsize_jitter=0, max_depth=10, delta=0.80000000000000004, gamma=0.050000000000000003, kappa=0.75, t0=10, init_buffer=75, term_buffer=50, window=25, interrupt=0x00007fff5fbf0738, logger=0x00007fff5fbf0740, init_writer=0x00007fff5fbf0598, sample_writer=0x0000000104194d90, diagnostic_writer=0x00007fff5fbf05f0) at hmc_nuts_diag_e_adapt.hpp:106
frame #16: 0x000000011d2f3b86 file144151e196a9a.soint stan::services::sample::hmc_nuts_diag_e_adapt<model144157b4f772d_birats_namespace::model144157b4f772d_birats>(model=0x0000000104191d70, init=0x00000001041133e0, random_seed=1020848125, chain=1, init_radius=2, num_warmup=1000, num_samples=1000, num_thin=1, save_warmup=true, refresh=200, stepsize=1, stepsize_jitter=0, max_depth=10, delta=0.80000000000000004, gamma=0.050000000000000003, kappa=0.75, t0=10, init_buffer=75, term_buffer=50, window=25, interrupt=0x00007fff5fbf0738, logger=0x00007fff5fbf0740, init_writer=0x00007fff5fbf0598, sample_writer=0x0000000104194d90, diagnostic_writer=0x00007fff5fbf05f0) at hmc_nuts_diag_e_adapt.hpp:164 frame #17: 0x000000011d2c0c87 file144151e196a9a.so
int rstan::(anonymous namespace)::command<model144157b4f772d_birats_namespace::model144157b4f772d_birats, boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014u, 0u, 2147483563u>, boost::random::linear_congruential_engine<unsigned int, 40692u, 0u, 2147483399u> > >(args=0x00007fff5fbf5470, model=0x0000000104191d70, holder=0x00007fff5fbf5460, qoi_idx=size=69, fnames_oi=size=69, base_rng=0x0000000104191df0) at stan_fit.hpp:648
frame #18: 0x000000011d1a9363 file144151e196a9a.sorstan::stan_fit<model144157b4f772d_birats_namespace::model144157b4f772d_birats, boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014u, 0u, 2147483563u>, boost::random::linear_congruential_engine<unsigned int, 40692u, 0u, 2147483399u> > >::call_sampler(this=0x0000000104191ce0, args_=0x000000011095a670) at stan_fit.hpp:1196 frame #19: 0x000000011d44d67a file144151e196a9a.so
Rcpp::CppMethod1<rstan::stan_fit<model144157b4f772d_birats_namespace::model144157b4f772d_birats, boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014u, 0u, 2147483563u>, boost::random::linear_congruential_engine<unsigned int, 40692u, 0u, 2147483399u> > >, SEXPREC*, SEXPREC*>::operator(this=0x000000010f902150, object=0x0000000104191ce0, args=0x00007fff5fbf5dd0)(rstan::stan_fit<model144157b4f772d_birats_namespace::model144157b4f772d_birats, boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014u, 0u, 2147483563u>, boost::random::linear_congruential_engine<unsigned int, 40692u, 0u, 2147483399u> > >, SEXPREC**) at Module_generated_CppMethod.h:111
frame #20: 0x000000011d261276 file144151e196a9a.soRcpp::class_<rstan::stan_fit<model144157b4f772d_birats_namespace::model144157b4f772d_birats, boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014u, 0u, 2147483563u>, boost::random::linear_congruential_engine<unsigned int, 40692u, 0u, 2147483399u> > > >::invoke_notvoid(this=0x000000010f909120, method_xp=0x0000000110bdd3b8, object=0x00000001095ad830, args=0x00007fff5fbf5dd0, nargs=1) at class.h:234 frame #21: 0x000000010839322f Rcpp.so
CppMethod__invoke_notvoid(SEXPREC) + 255
frame #22: 0x000000010010a75d libR.dylibdo_External(call=<unavailable>, op=0x000000010183e278, args=0x0000000109575868, env=0x0000000109575830) at dotcode.c:548 [opt] frame #23: 0x000000010013bd09 libR.dylib
Rf_eval(e=, rho=0x0000000109575830) at eval.c:728 [opt]
frame #24: 0x000000010014dee0 libR.dylibdo_begin(call=<unavailable>, op=0x0000000101828828, args=0x000000011126dc68, rho=0x0000000109575830) at eval.c:2192 [opt] frame #25: 0x000000010013ba38 libR.dylib
Rf_eval(e=, rho=0x0000000109575830) at eval.c:700 [opt]
frame #26: 0x000000010014bd82 libR.dylibR_execClosure(call=0x000000010e39ef90, newrho=0x0000000109575830, sysparent=<unavailable>, rho=<unavailable>, arglist=<unavailable>, op=0x0000000109577f88) at eval.c:1607 [opt] frame #27: 0x000000010013fe44 libR.dylib
bcEval(body=, rho=0x0000000116e29870, useCache=) at eval.c:6405 [opt]
frame #28: 0x000000010013b8d1 libR.dylibRf_eval(e=<unavailable>, rho=<unavailable>) at eval.c:624 [opt] frame #29: 0x0000000100149de9 libR.dylib
forcePromise(e=0x0000000109580718) at eval.c:520 [opt]
frame #30: 0x00000001001551ee libR.dylibgetvar [inlined] FORCE_PROMISE(value=<unavailable>, symbol=<unavailable>, rho=<unavailable>, keepmiss=FALSE) at eval.c:4718 [opt] frame #31: 0x00000001001551e6 libR.dylib
getvar(symbol=0x000000010187b578, rho=0x0000000109580830, dd=, keepmiss=FALSE, vcache=, sidx=) at eval.c:4760 [opt]
frame #32: 0x000000010013ece0 libR.dylibbcEval(body=<unavailable>, rho=0x0000000109580830, useCache=<unavailable>) at eval.c:6194 [opt] frame #33: 0x000000010013b8d1 libR.dylib
Rf_eval(e=, rho=) at eval.c:624 [opt]
frame #34: 0x0000000100149de9 libR.dylibforcePromise(e=0x00000001095808d8) at eval.c:520 [opt] frame #35: 0x00000001001551ee libR.dylib
getvar [inlined] FORCE_PROMISE(value=, symbol=, rho=, keepmiss=FALSE) at eval.c:4718 [opt]
frame #36: 0x00000001001551e6 libR.dylibgetvar(symbol=0x000000010187b578, rho=0x0000000109580a98, dd=<unavailable>, keepmiss=FALSE, vcache=<unavailable>, sidx=<unavailable>) at eval.c:4760 [opt] frame #37: 0x000000010013ece0 libR.dylib
bcEval(body=, rho=0x0000000109580a98, useCache=) at eval.c:6194 [opt]
frame #38: 0x000000010013b8d1 libR.dylibRf_eval(e=<unavailable>, rho=<unavailable>) at eval.c:624 [opt] frame #39: 0x0000000100149de9 libR.dylib
forcePromise(e=0x000000010957ff18) at eval.c:520 [opt]
frame #40: 0x00000001001551ee libR.dylibgetvar [inlined] FORCE_PROMISE(value=<unavailable>, symbol=<unavailable>, rho=<unavailable>, keepmiss=FALSE) at eval.c:4718 [opt] frame #41: 0x00000001001551e6 libR.dylib
getvar(symbol=0x000000010187b578, rho=0x00000001095801b8, dd=, keepmiss=FALSE, vcache=, sidx=) at eval.c:4760 [opt]
frame #42: 0x000000010013ece0 libR.dylibbcEval(body=<unavailable>, rho=0x00000001095801b8, useCache=<unavailable>) at eval.c:6194 [opt] frame #43: 0x000000010013b8d1 libR.dylib
Rf_eval(e=, rho=) at eval.c:624 [opt]
frame #44: 0x0000000100149de9 libR.dylibforcePromise(e=0x0000000109580260) at eval.c:520 [opt] frame #45: 0x00000001001551ee libR.dylib
getvar [inlined] FORCE_PROMISE(value=, symbol=, rho=, keepmiss=FALSE) at eval.c:4718 [opt]
frame #46: 0x00000001001551e6 libR.dylibgetvar(symbol=0x000000010187b578, rho=0x000000010957f558, dd=<unavailable>, keepmiss=FALSE, vcache=<unavailable>, sidx=<unavailable>) at eval.c:4760 [opt] frame #47: 0x000000010013ece0 libR.dylib
bcEval(body=, rho=0x000000010957f558, useCache=) at eval.c:6194 [opt]
frame #48: 0x000000010013b8d1 libR.dylibRf_eval(e=<unavailable>, rho=<unavailable>) at eval.c:624 [opt] frame #49: 0x0000000100149de9 libR.dylib
forcePromise(e=0x000000010957f600) at eval.c:520 [opt]
frame #50: 0x00000001001551ee libR.dylibgetvar [inlined] FORCE_PROMISE(value=<unavailable>, symbol=<unavailable>, rho=<unavailable>, keepmiss=FALSE) at eval.c:4718 [opt] frame #51: 0x00000001001551e6 libR.dylib
getvar(symbol=0x000000010187b578, rho=0x000000010957f8a0, dd=, keepmiss=FALSE, vcache=, sidx=) at eval.c:4760 [opt]
frame #52: 0x000000010013ece0 libR.dylibbcEval(body=<unavailable>, rho=0x000000010957f8a0, useCache=<unavailable>) at eval.c:6194 [opt] frame #53: 0x000000010013b8d1 libR.dylib
Rf_eval(e=, rho=) at eval.c:624 [opt]
frame #54: 0x000000010014bd82 libR.dylibR_execClosure(call=0x0000000101b5fa78, newrho=0x000000010957f8a0, sysparent=<unavailable>, rho=<unavailable>, arglist=<unavailable>, op=0x000000010957f590) at eval.c:1607 [opt] frame #55: 0x000000010013fe44 libR.dylib
bcEval(body=, rho=0x000000010957f558, useCache=) at eval.c:6405 [opt]
frame #56: 0x000000010013b8d1 libR.dylibRf_eval(e=<unavailable>, rho=<unavailable>) at eval.c:624 [opt] frame #57: 0x000000010014bd82 libR.dylib
R_execClosure(call=0x0000000101b5da78, newrho=0x000000010957f558, sysparent=, rho=, arglist=, op=0x0000000109580b40) at eval.c:1607 [opt]
frame #58: 0x000000010013fe44 libR.dylibbcEval(body=<unavailable>, rho=0x00000001095801b8, useCache=<unavailable>) at eval.c:6405 [opt] frame #59: 0x000000010013b8d1 libR.dylib
Rf_eval(e=, rho=) at eval.c:624 [opt]
frame #60: 0x000000010014bd82 libR.dylibR_execClosure(call=0x0000000101b5d748, newrho=0x00000001095801b8, sysparent=<unavailable>, rho=<unavailable>, arglist=<unavailable>, op=0x0000000109580ad0) at eval.c:1607 [opt] frame #61: 0x000000010013fe44 libR.dylib
bcEval(body=, rho=0x0000000109580a98, useCache=) at eval.c:6405 [opt]
frame #62: 0x000000010013b8d1 libR.dylibRf_eval(e=<unavailable>, rho=<unavailable>) at eval.c:624 [opt] frame #63: 0x000000010014bd82 libR.dylib
R_execClosure(call=0x0000000101e22228, newrho=0x0000000109580a98, sysparent=, rho=, arglist=, op=0x0000000101b517c8) at eval.c:1607 [opt]
frame #64: 0x000000010013fe44 libR.dylibbcEval(body=<unavailable>, rho=0x0000000109580830, useCache=<unavailable>) at eval.c:6405 [opt] frame #65: 0x000000010013b8d1 libR.dylib
Rf_eval(e=, rho=) at eval.c:624 [opt]
frame #66: 0x000000010014bd82 libR.dylibR_execClosure(call=0x000000010e39ef20, newrho=0x0000000109580830, sysparent=<unavailable>, rho=<unavailable>, arglist=<unavailable>, op=0x0000000101e18dc8) at eval.c:1607 [opt] frame #67: 0x000000010013fe44 libR.dylib
bcEval(body=, rho=0x0000000116e29870, useCache=) at eval.c:6405 [opt]
frame #68: 0x000000010013b8d1 libR.dylibRf_eval(e=<unavailable>, rho=<unavailable>) at eval.c:624 [opt] frame #69: 0x000000010014bd82 libR.dylib
R_execClosure(call=0x0000000101590ce8, newrho=0x0000000116e29870, sysparent=, rho=, arglist=, op=0x000000010106fa38) at eval.c:1607 [opt]
frame #70: 0x000000010013bbb6 libR.dylibRf_eval(e=0x0000000101590ce8, rho=0x0000000116e2ac38) at eval.c:747 [opt] frame #71: 0x000000010014dee0 libR.dylib
do_begin(call=, op=0x0000000101828828, args=0x0000000101590d20, rho=0x0000000116e2ac38) at eval.c:2192 [opt]
frame #72: 0x000000010013ba38 libR.dylibRf_eval(e=<unavailable>, rho=0x0000000116e2ac38) at eval.c:700 [opt] frame #73: 0x000000010014bd82 libR.dylib
R_execClosure(call=0x0000000116e2b470, newrho=0x0000000116e2ac38, sysparent=, rho=, arglist=, op=0x0000000101071d40) at eval.c:1607 [opt]
frame #74: 0x000000010014c533 libR.dylibR_execMethod(op=<unavailable>, rho=0x0000000116e2b710) at eval.c:1776 [opt] frame #75: 0x0000000100fd4258 methods.so
R_dispatchGeneric + 2360
frame #76: 0x000000010018e5bf libR.dylibdo_standardGeneric(call=<unavailable>, op=<unavailable>, args=<unavailable>, env=0x0000000116e2b710) at objects.c:1169 [opt] frame #77: 0x000000010013bd51 libR.dylib
Rf_eval(e=, rho=0x0000000116e2b710) at eval.c:732 [opt]
frame #78: 0x000000010014dee0 libR.dylibdo_begin(call=<unavailable>, op=0x0000000101828828, args=0x000000010108f2d0, rho=0x0000000116e2b710) at eval.c:2192 [opt] frame #79: 0x000000010013ba38 libR.dylib
Rf_eval(e=, rho=0x0000000116e2b710) at eval.c:700 [opt]
frame #80: 0x000000010014bd82 libR.dylibR_execClosure(call=0x0000000116e2b470, newrho=0x0000000116e2b710, sysparent=<unavailable>, rho=<unavailable>, arglist=<unavailable>, op=0x000000010138f8d0) at eval.c:1607 [opt] frame #81: 0x000000010013bbb6 libR.dylib
Rf_eval(e=0x0000000116e2b470, rho=0x00000001107d0908) at eval.c:747 [opt]
frame #82: 0x00000001000dd2eb libR.dylibdo_docall(call=<unavailable>, op=<unavailable>, args=0x0000000113a0ee88, rho=<unavailable>) at coerce.c:2506 [opt] frame #83: 0x000000010014026c libR.dylib
bcEval(body=, rho=0x0000000116e2c098, useCache=) at eval.c:6434 [opt]
frame #84: 0x000000010013b8d1 libR.dylibRf_eval(e=<unavailable>, rho=<unavailable>) at eval.c:624 [opt] frame #85: 0x000000010014bd82 libR.dylib
R_execClosure(call=0x0000000108c16990, newrho=0x0000000116e2c098, sysparent=, rho=, arglist=, op=0x0000000104f516a0) at eval.c:1607 [opt]
frame #86: 0x000000010013fe44 libR.dylibbcEval(body=<unavailable>, rho=0x00000001107d0908, useCache=<unavailable>) at eval.c:6405 [opt] frame #87: 0x000000010013b8d1 libR.dylib
Rf_eval(e=, rho=) at eval.c:624 [opt]
frame #88: 0x000000010014bd82 libR.dylibR_execClosure(call=0x0000000110f1ba38, newrho=0x00000001107d0908, sysparent=<unavailable>, rho=<unavailable>, arglist=<unavailable>, op=0x00000001057bc520) at eval.c:1607 [opt] frame #89: 0x000000010013bbb6 libR.dylib
Rf_eval(e=0x0000000110f1ba38, rho=0x0000000101854070) at eval.c:747 [opt]
frame #90: 0x000000010017be38 libR.dylibRf_ReplIteration(rho=0x0000000101854070, savestack=<unavailable>, browselevel=<unavailable>, state=0x00007fff5fbfe970) at main.c:258 [opt] frame #91: 0x000000010017d32f libR.dylib
run_Rmainloop [inlined] R_ReplConsole(rho=, savestack=0, browselevel=0) at main.c:308 [opt]
frame #92: 0x000000010017d2c6 libR.dylibrun_Rmainloop at main.c:1059 [opt] frame #93: 0x0000000100000f5b R
main + 27
frame #94: 0x00007fffc8479235 libdyld.dylib`start + 1
(lldb) process continue
Process 82965 resuming
[1] “Error in sampler$call_sampler(args_list[[i]]) : "
[2] " c++ exception (unknown reason)”
error occurred during calling the sampler; sampling not done