adding threading to monotonic model throws errors. Error msg below, added ellipses to reduce length.
Compiling Stan program...
In file included from /usr/include/c++/7/bits/move.h:54:0,
from /usr/include/c++/7/bits/nested_exception.h:40,
from /usr/include/c++/7/exception:143,
from /usr/include/c++/7/new:40,
from stan/lib/stan_math/lib/eigen_3.3.7/Eigen/Core:82,
from stan/lib/stan_math/lib/eigen_3.3.7/Eigen/Dense:1,
from stan/lib/stan_math/stan/math/prim/fun/Eigen.hpp:22,
from stan/lib/stan_math/stan/math/rev.hpp:4,
from stan/lib/stan_math/stan/math.hpp:19,
from stan/src/stan/model/model_header.hpp:4,
from /tmp/RtmpfzP4fs/model-196577b2c3e5.hpp:3:
/usr/include/c++/7/type_traits:120:12: required from ‘struct std::__or_<std::is_object<std::_Tuple_impl<63, Eigen::Matrix<stan::math::var, -1, 1, 0, -1, 1>, const std::vector<int, std::allocator<int> >&, Eigen::Matrix<stan::math::var, -1, 1, 0, -1, 1>, const std::vector<int, std::allocator<int> >&, Eigen::Matrix<stan::math::var, -1, 1, 0, -1, 1>, const std::vector<int,
...
std::allocator<int> >&, Eigen::Matrix<stan::math::var, -1, 1, 0, -1, 1>, const Eigen::Matrix<double, -1, -1, 0, -1, -1>&, Eigen::Matrix<stan::math::var, -1, 1, 0, -1, 1>, stan::math::var, const Eigen::Matrix<double, -1, 1, 0, -1, 1>&, const Eigen::Matrix<double, -1, 1, 0, -1, 1>&, const Eigen::Matrix<double, -1, 1, 0, -1, 1>&, const Eigen::Matrix<double, -1, 1, 0, -1, 1>&, const Eigen::Matrix<double, -1, 1, 0, -1, 1>&, const Eigen::Matrix<double, -1, 1, 0, -1, 1>&, const Eigen::Matrix<double, -1, 1, 0, -1, 1>&, const
...
std::allocator<int> >&, Eigen::Matrix<stan::math::var, -1, 1, 0, -1, 1>, const std::vector<int, std::allocator<int> >&, Eigen::Matrix<stan::math::var, -1, 1, 0, -1, 1>, const std::v/usr/include/c++/7/type_traits:637:12: [ skipping 889 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
stan/lib/stan_math/stan/math/rev/functor/reduce_sum.hpp:109:41: required from ‘void stan::math::internal::reduce_sum_impl<ReduceFunction, typename std::enable_if<stan::is_var<typename std::decay<_Arg>::type, void>::value, void>::type, ReturnType, Vec, Args ...>::recursive_reducer::operator()(const tbb::blocked_range<long unsigned int>&) [with ReduceFunction = file1965474d4f82_model_namespace::partial_log_lik_rsfunctor__; ReturnType = stan::math::var; Vec = const std::vector<int>&; Args = {const Eigen::Matrix<double, -1, 1, 0, -1, 1>&, const Eigen::Matrix<double, -1, -1, 0, -1, -1>&, Eigen::Matrix<stan::math::var, -1, 1, 0, -1, 1>&,
...
Eigen::Matrix<double, -1, -1, 0, -1, -1>&, Eigen::Matrix<stan::math::var, -1, 1, 0, -1, 1>&, stan::math::var&, const Eigen::Matrix<double, -1, 1, 0, -1, 1>&, const Eigen::Matrix<double, -1, 1, 0, -1, 1>&, const Eigen::Matrix<double, -1, 1, 0, -1, 1>&, const Eigen::Matrix<double, -1, 1, 0, -1, 1>&, const/tmp/RtmpfzP4fs/model-196577b2c3e5.hpp:19252:1: required from here
/usr/include/c++/7/type_traits:580:12: fatal error: template instantiation depth exceeds maximum of 900 (use -ftemplate-depth= to increase the maximum)
struct is_reference
^~~~~~~~~~~~
compilation terminated.
make: *** [/tmp/RtmpfzP4fs/model-196577b2c3e5] Error 1
Error: An error occured during compilation! See the message above for more information.