--- Compiling, linking C++ code --- g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -DSTAN_THREADS -I stan/lib/stan_math/lib/tbb_2020.3/include -fweb -fivopts -ftree-loop-linear -floop-strip-mine -floop-block -floop-nest-optimize -ftree-vectorize -ftree-loop-distribution -funroll-loops -fvisibility=hidden -fvisibility-inlines-hidden -O3 -I src -I stan/src -I lib/rapidjson_1.1.0/ -I lib/CLI11-1.9.1/ -I stan/lib/stan_math/ -I stan/lib/stan_math/lib/eigen_3.3.9 -I stan/lib/stan_math/lib/boost_1.78.0 -I stan/lib/stan_math/lib/sundials_6.1.1/include -I stan/lib/stan_math/lib/sundials_6.1.1/src/sundials -DBOOST_DISABLE_ASSERTS -c -Wno-ignored-attributes -fweb -fivopts -ftree-loop-linear -floop-strip-mine -floop-block -floop-nest-optimize -ftree-vectorize -ftree-loop-distribution -funroll-loops -fvisibility=hidden -fvisibility-inlines-hidden -x c++ -o /net/rcstorenfs02/ifs/rc_labs/gershman_lab/users/Stan/1_code/shared_code/nc_hierarchical/nc_hierarchical_static_optim2.o /net/rcstorenfs02/ifs/rc_labs/gershman_lab/users/Stan/1_code/shared_code/nc_hierarchical/nc_hierarchical_static_optim2.hpp In file included from stan/lib/stan_math/lib/eigen_3.3.9/Eigen/src/Core/MatrixBase.h:130:0, from stan/lib/stan_math/lib/eigen_3.3.9/Eigen/Core:441, from stan/lib/stan_math/lib/eigen_3.3.9/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 /net/rcstorenfs02/ifs/rc_labs/gershman_lab/users/Stan/1_code/shared_code/nc_hierarchical/nc_hierarchical_static_optim2.hpp:3: stan/lib/stan_math/stan/math/prim/eigen_plugins.h:18:25: error: expected type-specifier using double_return_t = std::conditional_t>::value, ^ stan/lib/stan_math/stan/math/prim/eigen_plugins.h:22:26: error: expected type-specifier using reverse_return_t = std::conditional_t>::value, ^ stan/lib/stan_math/stan/math/prim/eigen_plugins.h:27:23: error: expected type-specifier using vari_return_t = std::conditional_t>::value, ^ stan/lib/stan_math/stan/math/prim/eigen_plugins.h:32:26: error: expected type-specifier using forward_return_t = std::conditional_t>::value, ^ stan/lib/stan_math/stan/math/prim/eigen_plugins.h:56:5: error: stan/lib/stan_math/stan/math/prim/eigen_plugins.h:62:5: error: stan/lib/stan_math/stan/math/prim/eigen_plugins.h:69:5: error: stan/lib/stan_math/stan/math/prim/eigen_plugins.h:75:5: error: stan/lib/stan_math/stan/math/prim/eigen_plugins.h:122:5: error: stan/lib/stan_math/stan/math/prim/eigen_plugins.h:153:5: error: stan/lib/stan_math/stan/math/prim/eigen_plugins.h:159:5: error: stan/lib/stan_math/stan/math/prim/eigen_plugins.h:198:5: error: In file included from stan/lib/stan_math/lib/eigen_3.3.9/Eigen/src/Core/ArrayBase.h:98:0, from stan/lib/stan_math/lib/eigen_3.3.9/Eigen/Core:453, from stan/lib/stan_math/lib/eigen_3.3.9/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 /net/rcstorenfs02/ifs/rc_labs/gershman_lab/users/Stan/1_code/shared_code/nc_hierarchical/nc_hierarchical_static_optim2.hpp:3: stan/lib/stan_math/stan/math/prim/eigen_plugins.h:18:25: error: expected type-specifier using double_return_t = std::conditional_t>::value, ^ stan/lib/stan_math/stan/math/prim/eigen_plugins.h:22:26: error: expected type-specifier using reverse_return_t = std::conditional_t>::value, ^ stan/lib/stan_math/stan/math/prim/eigen_plugins.h:27:23: error: expected type-specifier using vari_return_t = std::conditional_t>::value, ^ stan/lib/stan_math/stan/math/prim/eigen_plugins.h:32:26: error: expected type-specifier using forward_return_t = std::conditional_t>::value, ^ stan/lib/stan_math/stan/math/prim/eigen_plugins.h:56:5: error: stan/lib/stan_math/stan/math/prim/eigen_plugins.h:62:5: error: stan/lib/stan_math/stan/math/prim/eigen_plugins.h:69:5: error: stan/lib/stan_math/stan/math/prim/eigen_plugins.h:75:5: error: stan/lib/stan_math/stan/math/prim/eigen_plugins.h:122:5: error: stan/lib/stan_math/stan/math/prim/eigen_plugins.h:153:5: error: stan/lib/stan_math/stan/math/prim/eigen_plugins.h:159:5: error: stan/lib/stan_math/stan/math/prim/eigen_plugins.h:198:5: error: In file included from stan/lib/stan_math/stan/math/prim/meta.hpp:175:0, from stan/lib/stan_math/stan/math/rev/core/accumulate_adjoints.hpp:4, from stan/lib/stan_math/stan/math/rev/core.hpp:4, from stan/lib/stan_math/stan/math/rev.hpp:8, from stan/lib/stan_math/stan/math.hpp:19, from stan/src/stan/model/model_header.hpp:4, from /net/rcstorenfs02/ifs/rc_labs/gershman_lab/users/Stan/1_code/shared_code/nc_hierarchical/nc_hierarchical_static_optim2.hpp:3: stan/lib/stan_math/stan/math/prim/meta/ad_promotable.hpp:21:31: error: stan/lib/stan_math/stan/math/prim/meta/ad_promotable.hpp:21:48: error: wrong number of template arguments (1, should be 2) std::is_convertible, std::decay_t>::value> {}; ^ In file included from /usr/include/c++/4.8.2/bits/move.h:57:0, from /usr/include/c++/4.8.2/bits/stl_pair.h:59, from /usr/include/c++/4.8.2/bits/stl_algobase.h:64, from /usr/include/c++/4.8.2/bits/char_traits.h:39, from /usr/include/c++/4.8.2/ios:40, from /usr/include/c++/4.8.2/istream:38, from /usr/include/c++/4.8.2/sstream:38, from /usr/include/c++/4.8.2/complex:45, from stan/lib/stan_math/lib/eigen_3.3.9/Eigen/Core:96, from stan/lib/stan_math/lib/eigen_3.3.9/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 /net/rcstorenfs02/ifs/rc_labs/gershman_lab/users/Stan/1_code/shared_code/nc_hierarchical/nc_hierarchical_static_optim2.hpp:3: /usr/include/c++/4.8.2/type_traits:1317:12: error: In file included from stan/lib/stan_math/stan/math/prim/meta.hpp:175:0, from stan/lib/stan_math/stan/math/rev/core/accumulate_adjoints.hpp:4, from stan/lib/stan_math/stan/math/rev/core.hpp:4, from stan/lib/stan_math/stan/math/rev.hpp:8, from stan/lib/stan_math/stan/math.hpp:19, from stan/src/stan/model/model_header.hpp:4, from /net/rcstorenfs02/ifs/rc_labs/gershman_lab/users/Stan/1_code/shared_code/nc_hierarchical/nc_hierarchical_static_optim2.hpp:3: stan/lib/stan_math/stan/math/prim/meta/ad_promotable.hpp:21:51: error: stan/lib/stan_math/stan/math/prim/meta/ad_promotable.hpp:21:64: error: wrong number of template arguments (2, should be 1) std::is_convertible, std::decay_t>::value> {}; ^ In file included from stan/lib/stan_math/stan/math/prim/meta/ad_promotable.hpp:4:0, from stan/lib/stan_math/stan/math/prim/meta.hpp:175, from stan/lib/stan_math/stan/math/rev/core/accumulate_adjoints.hpp:4, from stan/lib/stan_math/stan/math/rev/core.hpp:4, from stan/lib/stan_math/stan/math/rev.hpp:8, from stan/lib/stan_math/stan/math.hpp:19, from stan/src/stan/model/model_header.hpp:4, from /net/rcstorenfs02/ifs/rc_labs/gershman_lab/users/Stan/1_code/shared_code/nc_hierarchical/nc_hierarchical_static_optim2.hpp:3: stan/lib/stan_math/stan/math/prim/meta/bool_constant.hpp:12:54: error: In file included from stan/lib/stan_math/stan/math/prim/meta.hpp:175:0, from stan/lib/stan_math/stan/math/rev/core/accumulate_adjoints.hpp:4, from stan/lib/stan_math/stan/math/rev/core.hpp:4, from stan/lib/stan_math/stan/math/rev.hpp:8, from stan/lib/stan_math/stan/math.hpp:19, from stan/src/stan/model/model_header.hpp:4, from /net/rcstorenfs02/ifs/rc_labs/gershman_lab/users/Stan/1_code/shared_code/nc_hierarchical/nc_hierarchical_static_optim2.hpp:3: