Running ‘testthat.R’ [185s/192s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > Sys.setenv("R_TESTS" = "")
  > library(testthat)
  > library(rstansim)
  Loading required package: Rcpp
  > 
  > test_check("rstansim")
  1. Error: single_sim testing with stansim_data input (@test-single_sim.R#426) --
  Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp", line 39: The function "malloc" must have a prototype.
  "/home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp", line 39: Using static_cast to convert from int to char* not allowed.
  "/home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp", line 147: The function "free" must have a prototype.
  "/home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp", line 234: The function "free" must have a prototype.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/BH/include/boost/config/compiler/sunpro_cc.hpp", line 117: Warning (Anachronism): Attempt to redefine BOOST_NO_CXX11_RVALUE_REFERENCES without using #undef.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 391: expf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 397: logf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 404: log10f is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 407: sqrtf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 410: powf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 413: sinf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 416: cosf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 419: tanf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 422: tanhf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 425: floorf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 428: ceilf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 509: expf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 515: logf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 519: sqrtf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 522: powf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 525: floorf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 528: ceilf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/DenseCoeffsBase.h", line 48: Warning (Anachronism): Type names qualified by template parameters require "typename".
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/DenseCoeffsBase.h", line 301:     Where: While specializing "Eigen::DenseCoeffsBase<Eigen::Derived, 0>".
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/DenseCoeffsBase.h", line 301:     Where: Specialized in Eigen::DenseCoeffsBase<Eigen::Matrix<int, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::ColsAtCompileTime, 1, 0, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::MaxColsAtCompileTime, 1>, 0>.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/DenseCoeffsBase.h", line 301:     Where: Specialized in Eigen::DenseCoeffsBase<Eigen::Matrix<int, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::ColsAtCompileTime, 1, 0, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::MaxColsAtCompileTime, 1>, 1>.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/DenseCoeffsBase.h", line 553:     Where: Specialized in Eigen::DenseCoeffsBase<Eigen::Matrix<int, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::ColsAtCompileTime, 1, 0, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::MaxColsAtCompileTime, 1>, 3>.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/DenseBase.h", line 47:     Where: Specialized in Eigen::DenseBase<Eigen::Matrix<int, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::ColsAtCompileTime, 1, 0, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::MaxColsAtCompileTime, 1>>.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/MatrixBase.h", line 50:     Where: Specialized in Eigen::MatrixBase<Eigen::Matrix<int, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::ColsAtCompileTime, 1, 0, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::MaxColsAtCompileTime, 1>>.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h", line 100:     Where: Specialized in Eigen::PlainObjectBase<Eigen::Matrix<int, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::ColsAtCompileTime, 1, 0, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::MaxColsAtCompileTime, 1>>.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/Matrix.h", line 180:     Where: Specialized in Eigen::Matrix<int, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::ColsAtCompileTime, 1, 0, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::MaxColsAtCompileTime, 1>.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/PermutationMatrix.h", line 64:     Where: Specialized in Eigen::PermutationBase<Eigen::PermutationMatrix<Eigen::ColPivHouseholderQR<Eigen::MatrixType>::ColsAtCompileTime, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::MaxColsAtCompileTime, int>>.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/PermutationMatrix.h", line 309:     Where: Specialized in Eigen::PermutationMatrix<Eigen::ColPivHouseholderQR<Eigen::MatrixType>::ColsAtCompileTime, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::MaxColsAtCompileTime, int>.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/QR/ColPivHouseholderQR.h", line 73:     Where: Specialized in Eigen::ColPivHouseholderQR<Eigen::MatrixType>.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/QR/ColPivHouseholderQR.h", line 448:     Where: Specialized in non-template code.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/util/XprHelper.h", line 399: Warning (Anachronism): Type names qualified by template parameters require "typename".
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h", line 61:     Where: While specializing "Eigen::internal::ref_selector<Eigen::internal::T>".
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h", line 61:     Where: Specialized in Eigen::CwiseUnaryOp<Eigen::MatrixBase<Eigen::Matrix<int, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::ColsAtCompileTime, 1, 0, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::MaxColsAtCompileTime, 1>>::CustomUnaryOp, const Eigen::Matrix<int, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::ColsAtCompileTime, 1, 0, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::MaxColsAtCompileTime, 1>>.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/../plugins/CommonCwiseUnaryOps.h", line 122:     Where: Specialized in Eigen::MatrixBase<Eigen::Matrix<int, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::ColsAtCompileTime, 1, 0, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::MaxColsAtCompileTime, 1>>.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h", line 100:     Where: Specialized in Eigen::PlainObjectBase<Eigen::Matrix<int, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::ColsAtCompileTime, 1, 0, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::MaxColsAtCompileTime, 1>>.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core
  1: capture_output(test_stanfit <- rstan::stan_model(file = "data-raw/simtestreg.stan")) at testthat/test-single_sim.R:426
  2: capture_output_as_vector(code, print)
  3: with_sink(temp, withVisible(code))
  4: withVisible(code)
  5: rstan::stan_model(file = "data-raw/simtestreg.stan")
  6: cxxfunctionplus(signature(), body = paste(" return Rcpp::wrap(\"", model_name, "\");", 
         sep = ""), includes = inc, plugin = "rstan", save_dso = save_dso | auto_write, 
         module_name = paste("stan_fit4", model_cppname, "_mod", sep = ""), verbose = verbose)
  7: cxxfunction(sig = sig, body = body, plugin = plugin, includes = includes, settings = settings, 
         ..., verbose = verbose)
  8: compileCode(f, code, language = language, verbose = verbose)
  9: stop(paste("Compilation ERROR, function(s)/method(s) not created!", paste(errmsg, 
         collapse = "\n")))
  
  2. Error: stansim test with stansim_data object; cache FALSE, loo FALSE (@test-stansim_external_functions.R#805) 
  Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp", line 39: The function "malloc" must have a prototype.
  "/home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp", line 39: Using static_cast to convert from int to char* not allowed.
  "/home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp", line 147: The function "free" must have a prototype.
  "/home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp", line 234: The function "free" must have a prototype.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/BH/include/boost/config/compiler/sunpro_cc.hpp", line 117: Warning (Anachronism): Attempt to redefine BOOST_NO_CXX11_RVALUE_REFERENCES without using #undef.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 391: expf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 397: logf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 404: log10f is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 407: sqrtf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 410: powf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 413: sinf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 416: cosf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 419: tanf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 422: tanhf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 425: floorf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 428: ceilf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 509: expf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 515: logf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 519: sqrtf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 522: powf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 525: floorf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 528: ceilf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/DenseCoeffsBase.h", line 48: Warning (Anachronism): Type names qualified by template parameters require "typename".
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/DenseCoeffsBase.h", line 301:     Where: While specializing "Eigen::DenseCoeffsBase<Eigen::Derived, 0>".
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/DenseCoeffsBase.h", line 301:     Where: Specialized in Eigen::DenseCoeffsBase<Eigen::Matrix<int, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::ColsAtCompileTime, 1, 0, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::MaxColsAtCompileTime, 1>, 0>.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/DenseCoeffsBase.h", line 301:     Where: Specialized in Eigen::DenseCoeffsBase<Eigen::Matrix<int, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::ColsAtCompileTime, 1, 0, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::MaxColsAtCompileTime, 1>, 1>.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/DenseCoeffsBase.h", line 553:     Where: Specialized in Eigen::DenseCoeffsBase<Eigen::Matrix<int, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::ColsAtCompileTime, 1, 0, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::MaxColsAtCompileTime, 1>, 3>.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/DenseBase.h", line 47:     Where: Specialized in Eigen::DenseBase<Eigen::Matrix<int, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::ColsAtCompileTime, 1, 0, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::MaxColsAtCompileTime, 1>>.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/MatrixBase.h", line 50:     Where: Specialized in Eigen::MatrixBase<Eigen::Matrix<int, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::ColsAtCompileTime, 1, 0, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::MaxColsAtCompileTime, 1>>.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h", line 100:     Where: Specialized in Eigen::PlainObjectBase<Eigen::Matrix<int, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::ColsAtCompileTime, 1, 0, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::MaxColsAtCompileTime, 1>>.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/Matrix.h", line 180:     Where: Specialized in Eigen::Matrix<int, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::ColsAtCompileTime, 1, 0, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::MaxColsAtCompileTime, 1>.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/PermutationMatrix.h", line 64:     Where: Specialized in Eigen::PermutationBase<Eigen::PermutationMatrix<Eigen::ColPivHouseholderQR<Eigen::MatrixType>::ColsAtCompileTime, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::MaxColsAtCompileTime, int>>.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/PermutationMatrix.h", line 309:     Where: Specialized in Eigen::PermutationMatrix<Eigen::ColPivHouseholderQR<Eigen::MatrixType>::ColsAtCompileTime, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::MaxColsAtCompileTime, int>.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/QR/ColPivHouseholderQR.h", line 73:     Where: Specialized in Eigen::ColPivHouseholderQR<Eigen::MatrixType>.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/QR/ColPivHouseholderQR.h", line 448:     Where: Specialized in non-template code.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/util/XprHelper.h", line 399: Warning (Anachronism): Type names qualified by template parameters require "typename".
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h", line 61:     Where: While specializing "Eigen::internal::ref_selector<Eigen::internal::T>".
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h", line 61:     Where: Specialized in Eigen::CwiseUnaryOp<Eigen::MatrixBase<Eigen::Matrix<int, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::ColsAtCompileTime, 1, 0, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::MaxColsAtCompileTime, 1>>::CustomUnaryOp, const Eigen::Matrix<int, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::ColsAtCompileTime, 1, 0, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::MaxColsAtCompileTime, 1>>.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/../plugins/CommonCwiseUnaryOps.h", line 122:     Where: Specialized in Eigen::MatrixBase<Eigen::Matrix<int, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::ColsAtCompileTime, 1, 0, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::MaxColsAtCompileTime, 1>>.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h", line 100:     Where: Specialized in Eigen::PlainObjectBase<Eigen::Matrix<int, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::ColsAtCompileTime, 1, 0, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::MaxColsAtCompileTime, 1>>.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core
  1: capture_output(ss_data <- simulate_data(file = "data-raw/simtestreg.stan", data_name = "saved stansim_data", 
         input_data = reg_data, nsim = 1, path = "testdir", param_values = test_vals, 
         vars = c("sim_x", "sim_y", "N"), use_cores = 1)$datasets) at testthat/test-stansim_external_functions.R:805
  2: capture_output_as_vector(code, print)
  3: with_sink(temp, withVisible(code))
  4: withVisible(code)
  5: simulate_data(file = "data-raw/simtestreg.stan", data_name = "saved stansim_data", 
         input_data = reg_data, nsim = 1, path = "testdir", param_values = test_vals, 
         vars = c("sim_x", "sim_y", "N"), use_cores = 1)
  6: rstan::stan_model(file = file)
  7: cxxfunctionplus(signature(), body = paste(" return Rcpp::wrap(\"", model_name, "\");", 
         sep = ""), includes = inc, plugin = "rstan", save_dso = save_dso | auto_write, 
         module_name = paste("stan_fit4", model_cppname, "_mod", sep = ""), verbose = verbose)
  8: cxxfunction(sig = sig, body = body, plugin = plugin, includes = includes, settings = settings, 
         ..., verbose = verbose)
  9: compileCode(f, code, language = language, verbose = verbose)
  10: stop(paste("Compilation ERROR, function(s)/method(s) not created!", paste(errmsg, 
         collapse = "\n")))
  
  3. Error: stansim test with stansim_data object; cache TRUE, loo FALSE (@test-stansim_external_functions.R#994) 
  Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp", line 39: The function "malloc" must have a prototype.
  "/home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp", line 39: Using static_cast to convert from int to char* not allowed.
  "/home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp", line 147: The function "free" must have a prototype.
  "/home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp", line 234: The function "free" must have a prototype.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/BH/include/boost/config/compiler/sunpro_cc.hpp", line 117: Warning (Anachronism): Attempt to redefine BOOST_NO_CXX11_RVALUE_REFERENCES without using #undef.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 391: expf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 397: logf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 404: log10f is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 407: sqrtf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 410: powf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 413: sinf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 416: cosf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 419: tanf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 422: tanhf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 425: floorf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 428: ceilf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 509: expf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 515: logf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 519: sqrtf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 522: powf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 525: floorf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 528: ceilf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/DenseCoeffsBase.h", line 48: Warning (Anachronism): Type names qualified by template parameters require "typename".
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/DenseCoeffsBase.h", line 301:     Where: While specializing "Eigen::DenseCoeffsBase<Eigen::Derived, 0>".
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/DenseCoeffsBase.h", line 301:     Where: Specialized in Eigen::DenseCoeffsBase<Eigen::Matrix<int, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::ColsAtCompileTime, 1, 0, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::MaxColsAtCompileTime, 1>, 0>.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/DenseCoeffsBase.h", line 301:     Where: Specialized in Eigen::DenseCoeffsBase<Eigen::Matrix<int, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::ColsAtCompileTime, 1, 0, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::MaxColsAtCompileTime, 1>, 1>.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/DenseCoeffsBase.h", line 553:     Where: Specialized in Eigen::DenseCoeffsBase<Eigen::Matrix<int, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::ColsAtCompileTime, 1, 0, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::MaxColsAtCompileTime, 1>, 3>.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/DenseBase.h", line 47:     Where: Specialized in Eigen::DenseBase<Eigen::Matrix<int, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::ColsAtCompileTime, 1, 0, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::MaxColsAtCompileTime, 1>>.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/MatrixBase.h", line 50:     Where: Specialized in Eigen::MatrixBase<Eigen::Matrix<int, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::ColsAtCompileTime, 1, 0, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::MaxColsAtCompileTime, 1>>.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h", line 100:     Where: Specialized in Eigen::PlainObjectBase<Eigen::Matrix<int, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::ColsAtCompileTime, 1, 0, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::MaxColsAtCompileTime, 1>>.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/Matrix.h", line 180:     Where: Specialized in Eigen::Matrix<int, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::ColsAtCompileTime, 1, 0, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::MaxColsAtCompileTime, 1>.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/PermutationMatrix.h", line 64:     Where: Specialized in Eigen::PermutationBase<Eigen::PermutationMatrix<Eigen::ColPivHouseholderQR<Eigen::MatrixType>::ColsAtCompileTime, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::MaxColsAtCompileTime, int>>.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/PermutationMatrix.h", line 309:     Where: Specialized in Eigen::PermutationMatrix<Eigen::ColPivHouseholderQR<Eigen::MatrixType>::ColsAtCompileTime, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::MaxColsAtCompileTime, int>.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/QR/ColPivHouseholderQR.h", line 73:     Where: Specialized in Eigen::ColPivHouseholderQR<Eigen::MatrixType>.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/QR/ColPivHouseholderQR.h", line 448:     Where: Specialized in non-template code.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/util/XprHelper.h", line 399: Warning (Anachronism): Type names qualified by template parameters require "typename".
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h", line 61:     Where: While specializing "Eigen::internal::ref_selector<Eigen::internal::T>".
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h", line 61:     Where: Specialized in Eigen::CwiseUnaryOp<Eigen::MatrixBase<Eigen::Matrix<int, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::ColsAtCompileTime, 1, 0, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::MaxColsAtCompileTime, 1>>::CustomUnaryOp, const Eigen::Matrix<int, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::ColsAtCompileTime, 1, 0, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::MaxColsAtCompileTime, 1>>.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/../plugins/CommonCwiseUnaryOps.h", line 122:     Where: Specialized in Eigen::MatrixBase<Eigen::Matrix<int, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::ColsAtCompileTime, 1, 0, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::MaxColsAtCompileTime, 1>>.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h", line 100:     Where: Specialized in Eigen::PlainObjectBase<Eigen::Matrix<int, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::ColsAtCompileTime, 1, 0, Eigen::ColPivHouseholderQR<Eigen::MatrixType>::MaxColsAtCompileTime, 1>>.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core
  1: capture_output(ss_data <- simulate_data(file = "data-raw/simtestreg.stan", data_name = "saved stansim_data", 
         input_data = reg_data, nsim = 1, path = "testdir", param_values = test_vals, 
         vars = c("sim_x", "sim_y", "N"), use_cores = 1)$datasets) at testthat/test-stansim_external_functions.R:994
  2: capture_output_as_vector(code, print)
  3: with_sink(temp, withVisible(code))
  4: withVisible(code)
  5: simulate_data(file = "data-raw/simtestreg.stan", data_name = "saved stansim_data", 
         input_data = reg_data, nsim = 1, path = "testdir", param_values = test_vals, 
         vars = c("sim_x", "sim_y", "N"), use_cores = 1)
  6: rstan::stan_model(file = file)
  7: cxxfunctionplus(signature(), body = paste(" return Rcpp::wrap(\"", model_name, "\");", 
         sep = ""), includes = inc, plugin = "rstan", save_dso = save_dso | auto_write, 
         module_name = paste("stan_fit4", model_cppname, "_mod", sep = ""), verbose = verbose)
  8: cxxfunction(sig = sig, body = body, plugin = plugin, includes = includes, settings = settings, 
         ..., verbose = verbose)
  9: compileCode(f, code, language = language, verbose = verbose)
  10: stop(paste("Compilation ERROR, function(s)/method(s) not created!", paste(errmsg, 
         collapse = "\n")))
  
  Error in compileCode(f, code, language = language, verbose = verbose) : 
    Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp", line 39: Error: The function "malloc" must have a prototype.
  "/home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp", line 39: Error: Using static_cast to convert from int to char* not allowed.
  "/home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp", line 147: Error: The function "free" must have a prototype.
  "/home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp", line 234: Error: The function "free" must have a prototype.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/BH/include/boost/config/compiler/sunpro_cc.hpp", line 117: Warning (Anachronism): Attempt to redefine BOOST_NO_CXX11_RVALUE_REFERENCES without using #undef.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/RcppEigen/include/Eigen/src/Core/arch/CUDA/Half.h", line 391: Error: expf is not a member of file level.
  "/tmp/Rtmpuwa4rr/RLIBS_228f18526c4/Rcpp
  Calls: test_check ... <Anonymous> -> cxxfunctionplus -> cxxfunction -> compileCode
  In addition: Warning message:
  running command '/home/ripley/R/cc/bin/R CMD SHLIB file31ea116e6cbc.cpp 2> file31ea116e6cbc.cpp.err.txt' had status 1 and error message 'Illegal seek' 
  testthat results ================================================================
  OK: 1047 SKIPPED: 0 FAILED: 3
  1. Error: single_sim testing with stansim_data input (@test-single_sim.R#426) 
  2. Error: stansim test with stansim_data object; cache FALSE, loo FALSE (@test-stansim_external_functions.R#805) 
  3. Error: stansim test with stansim_data object; cache TRUE, loo FALSE (@test-stansim_external_functions.R#994) 
  
  Error: testthat unit tests failed
  Execution halted