==597964== Memcheck, a memory error detector ==597964== Copyright (C) 2002-2024, and GNU GPL'd, by Julian Seward et al. ==597964== Using Valgrind-3.24.0 and LibVEX; rerun with -h for copyright info ==597964== Command: /data/blackswan/ripley/R/R-devel-vg/bin/exec/R -f testthat.R --restore --save --no-readline --vanilla ==597964== R Under development (unstable) (2026-05-11 r90046) -- "Unsuffered Consequences" Copyright (C) 2026 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > > > library(testthat) > library(dsem) > > # Run tests > testthat::test_check("dsem") Read 4 records Coefficient_name Number_of_coefficients Type 1 beta_z 6 Fixed 2 mu_j 2 Random Read 4 records Coefficient_name Number_of_coefficients Type 1 beta_z 6 Fixed 2 mu_j 2 Random 3 x_tj 200 Random Read 5 records Coefficient_name Number_of_coefficients Type 1 beta_z 7 Fixed 2 delta0_j 2 Fixed 3 lnsigma_j 2 Fixed 4 mu_j 2 Random 5 x_tj 122 Random Read 5 records Coefficient_name Number_of_coefficients Type 1 beta_z 7 Fixed 2 delta0_j 2 Fixed 3 mu_j 2 Random 4 x_tj 122 Random Read 5 records Coefficient_name Number_of_coefficients Type 1 beta_z 7 Fixed 2 delta0_j 2 Fixed 3 mu_j 2 Random 4 x_tj 122 Random Read 5 records Coefficient_name Number_of_coefficients Type 1 beta_z 7 Fixed 2 delta0_j 2 Fixed 3 mu_j 2 Random Read 5 records Coefficient_name Number_of_coefficients Type 1 beta_z 7 Fixed 2 delta0_j 2 Fixed 3 mu_j 2 Random Read 5 records Coefficient_name Number_of_coefficients Type 1 beta_z 6 Fixed 2 delta0_j 2 Fixed 3 mu_j 2 Random Read 4 records Coefficient_name Number_of_coefficients Type 1 beta_z 6 Fixed 2 delta0_j 2 Fixed 3 mu_j 2 Random Read 4 records Coefficient_name Number_of_coefficients Type 1 beta_z 6 Fixed 2 mu_j 2 Random Read 4 records Coefficient_name Number_of_coefficients Type 1 beta_z 6 Fixed 2 delta0_j 2 Fixed 3 mu_j 2 Random Read 4 records Coefficient_name Number_of_coefficients Type 1 beta_z 4 Fixed 2 mu_j 2 Fixed Read 4 records Coefficient_name Number_of_coefficients Type 1 beta_z 4 Fixed 2 mu_j 2 Fixed 3 x_tj 100 Random Read 4 records Coefficient_name Number_of_coefficients Type 1 beta_z 4 Fixed 2 mu_j 2 Fixed 3 x_tj 100 Random Read 4 records Coefficient_name Number_of_coefficients Type 1 beta_z 4 Fixed 2 mu_j 2 Fixed 3 x_tj 100 Random Read 10 records Coefficient_name Number_of_coefficients Type 1 beta_z 17 Fixed 2 mu_j 8 Random $par beta_z beta_z beta_z beta_z beta_z beta_z 0.28417790 -0.03841437 0.84012277 0.44333141 0.36664513 -0.12270679 beta_z beta_z beta_z beta_z beta_z beta_z 0.43580399 0.15036987 0.12793940 6.49358658 10.80899505 0.69515907 beta_z beta_z beta_z beta_z beta_z 4.21165242 1.34847427 2.00838610 0.92424304 10.61133205 $objective [1] 431.6122 attr(,"logarithm") [1] TRUE $convergence [1] 0 $iterations [1] 80 $evaluations function gradient 94 81 $message [1] "relative convergence (4)" Read 10 records Coefficient_name Number_of_coefficients Type 1 beta_z 17 Fixed 2 mu_j 8 Random Read 10 records Coefficient_name Number_of_coefficients Type 1 beta_z 17 Fixed 2 mu_j 8 Random Read 10 records Coefficient_name Number_of_coefficients Type 1 beta_z 17 Fixed 2 lnsigma_j 2 Fixed 3 mu_j 8 Random 4 x_tj 44 Random Read 3 items Read 10 records Coefficient_name Number_of_coefficients Type 1 beta_z 17 Fixed 2 mu_j 8 Random Read 0 records Coefficient_name Number_of_coefficients Type 1 beta_z 2 Fixed 2 mu_j 2 Random Read 2 records Coefficient_name Number_of_coefficients Type 1 beta_z 2 Fixed 2 mu_j 2 Random Read 4 records Coefficient_name Number_of_coefficients Type 1 beta_z 4 Fixed 2 mu_j 2 Random Read 4 records Coefficient_name Number_of_coefficients Type 1 lnsigma_j 2 Fixed 2 mu_j 2 Random 3 x_tj 122 Random Read 16 records Coefficient_name Number_of_coefficients Type 1 beta_z 24 Fixed 2 mu_j 8 Fixed 3 x_tj 232 Random Read 4 records Coefficient_name Number_of_coefficients Type 1 beta_z 5 Fixed 2 mu_j 4 Random Read 14 items Read 16 records Coefficient_name Number_of_coefficients Type 1 beta_z 24 Fixed 2 mu_j 8 Fixed 3 x_tj 232 Random ==597964== Invalid read of size 4 ==597964== at 0x316AABDA: objective_function::operator()() (packages/tests-vg/dsem/src/dsem.cpp:453) ==597964== by 0x3158ECCE: getParameterOrder (R-devel/site-library/TMB/include/tmb_core.hpp:2065) ==597964== by 0x4A9031: R_doDotCall (svn/R-devel/src/main/dotcode.c:763) ==597964== by 0x4A95A3: do_dotcall (svn/R-devel/src/main/dotcode.c:1437) ==597964== by 0x4E61CC: bcEval_loop (svn/R-devel/src/main/eval.c:8150) ==597964== by 0x4F4117: bcEval (svn/R-devel/src/main/eval.c:7533) ==597964== by 0x4F4117: bcEval (svn/R-devel/src/main/eval.c:7518) ==597964== by 0x4F444A: Rf_eval (svn/R-devel/src/main/eval.c:1167) ==597964== by 0x4F63DD: R_execClosure (svn/R-devel/src/main/eval.c:2398) ==597964== by 0x4F709F: applyClosure_core (svn/R-devel/src/main/eval.c:2314) ==597964== by 0x4F455A: Rf_applyClosure (svn/R-devel/src/main/eval.c:2333) ==597964== by 0x4F455A: Rf_eval (svn/R-devel/src/main/eval.c:1278) ==597964== by 0x4F94BC: do_set (svn/R-devel/src/main/eval.c:3585) ==597964== by 0x4F47B2: Rf_eval (svn/R-devel/src/main/eval.c:1230) ==597964== Address 0x14d25280 is 0 bytes after a block of size 2,272 alloc'd ==597964== at 0x4843866: malloc (/builddir/build/BUILD/valgrind-3.24.0/coregrind/m_replacemalloc/vg_replace_malloc.c:446) ==597964== by 0x315BE808: Eigen::internal::aligned_malloc(unsigned long) (R-devel/site-library/RcppEigen/include/Eigen/src/Core/util/Memory.h:182) ==597964== by 0x315495D9: conditional_aligned_malloc (R-devel/site-library/RcppEigen/include/Eigen/src/Core/util/Memory.h:241) ==597964== by 0x315495D9: conditional_aligned_new_auto (R-devel/site-library/RcppEigen/include/Eigen/src/Core/util/Memory.h:404) ==597964== by 0x315495D9: Eigen::DenseStorage::resize(long, long, long) [clone .isra.0] (R-devel/site-library/RcppEigen/include/Eigen/src/Core/DenseStorage.h:639) ==597964== by 0x315FC4D5: resize (R-devel/site-library/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:285) ==597964== by 0x315FC4D5: resize_if_allowed, Eigen::CwiseUnaryOp, const Eigen::Map > >, int, int> (R-devel/site-library/RcppEigen/include/Eigen/src/Core/AssignEvaluator.h:764) ==597964== by 0x315FC4D5: call_dense_assignment_loop, Eigen::CwiseUnaryOp, const Eigen::Map > >, Eigen::internal::assign_op > (R-devel/site-library/RcppEigen/include/Eigen/src/Core/AssignEvaluator.h:778) ==597964== by 0x315FC4D5: run (R-devel/site-library/RcppEigen/include/Eigen/src/Core/AssignEvaluator.h:954) ==597964== by 0x315FC4D5: call_assignment_no_alias, Eigen::CwiseUnaryOp, const Eigen::Map > >, Eigen::internal::assign_op > (R-devel/site-library/RcppEigen/include/Eigen/src/Core/AssignEvaluator.h:890) ==597964== by 0x315FC4D5: _set_noalias, const Eigen::Map > > > (R-devel/site-library/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:797) ==597964== by 0x315FC4D5: _init1, const Eigen::Map > >, Eigen::CwiseUnaryOp, const Eigen::Map > > > (R-devel/site-library/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:883) ==597964== by 0x315FC4D5: Array, const Eigen::Map > > > (R-devel/site-library/RcppEigen/include/Eigen/src/Core/Array.h:210) ==597964== by 0x315FC4D5: vector, const Eigen::Map > > > (R-devel/site-library/TMB/include/tmbutils/vector.hpp:24) ==597964== by 0x315FC4D5: tmbutils::vector asVector(SEXPREC*) (R-devel/site-library/TMB/include/convert.hpp:114) ==597964== by 0x316A9E89: objective_function::operator()() (packages/tests-vg/dsem/src/dsem.cpp:413) ==597964== by 0x3158ECCE: getParameterOrder (R-devel/site-library/TMB/include/tmb_core.hpp:2065) ==597964== by 0x4A9031: R_doDotCall (svn/R-devel/src/main/dotcode.c:763) ==597964== by 0x4A95A3: do_dotcall (svn/R-devel/src/main/dotcode.c:1437) ==597964== by 0x4E61CC: bcEval_loop (svn/R-devel/src/main/eval.c:8150) ==597964== by 0x4F4117: bcEval (svn/R-devel/src/main/eval.c:7533) ==597964== by 0x4F4117: bcEval (svn/R-devel/src/main/eval.c:7518) ==597964== by 0x4F444A: Rf_eval (svn/R-devel/src/main/eval.c:1167) ==597964== by 0x4F63DD: R_execClosure (svn/R-devel/src/main/eval.c:2398) ==597964== ==597964== Invalid read of size 4 ==597964== at 0x316AABDA: objective_function::operator()() (packages/tests-vg/dsem/src/dsem.cpp:453) ==597964== by 0x3158EAD8: EvalDoubleFunObject (R-devel/site-library/TMB/include/tmb_core.hpp:2035) ==597964== by 0x4A904D: R_doDotCall (svn/R-devel/src/main/dotcode.c:760) ==597964== by 0x4A95A3: do_dotcall (svn/R-devel/src/main/dotcode.c:1437) ==597964== by 0x4E61CC: bcEval_loop (svn/R-devel/src/main/eval.c:8150) ==597964== by 0x4F4117: bcEval (svn/R-devel/src/main/eval.c:7533) ==597964== by 0x4F4117: bcEval (svn/R-devel/src/main/eval.c:7518) ==597964== by 0x4F444A: Rf_eval (svn/R-devel/src/main/eval.c:1167) ==597964== by 0x4F63DD: R_execClosure (svn/R-devel/src/main/eval.c:2398) ==597964== by 0x4F709F: applyClosure_core (svn/R-devel/src/main/eval.c:2314) ==597964== by 0x4F455A: Rf_applyClosure (svn/R-devel/src/main/eval.c:2333) ==597964== by 0x4F455A: Rf_eval (svn/R-devel/src/main/eval.c:1278) ==597964== by 0x4F94BC: do_set (svn/R-devel/src/main/eval.c:3585) ==597964== by 0x4F47B2: Rf_eval (svn/R-devel/src/main/eval.c:1230) ==597964== Address 0x264ced00 is 0 bytes after a block of size 2,272 alloc'd ==597964== at 0x4843866: malloc (/builddir/build/BUILD/valgrind-3.24.0/coregrind/m_replacemalloc/vg_replace_malloc.c:446) ==597964== by 0x315BE808: Eigen::internal::aligned_malloc(unsigned long) (R-devel/site-library/RcppEigen/include/Eigen/src/Core/util/Memory.h:182) ==597964== by 0x315495D9: conditional_aligned_malloc (R-devel/site-library/RcppEigen/include/Eigen/src/Core/util/Memory.h:241) ==597964== by 0x315495D9: conditional_aligned_new_auto (R-devel/site-library/RcppEigen/include/Eigen/src/Core/util/Memory.h:404) ==597964== by 0x315495D9: Eigen::DenseStorage::resize(long, long, long) [clone .isra.0] (R-devel/site-library/RcppEigen/include/Eigen/src/Core/DenseStorage.h:639) ==597964== by 0x315FC4D5: resize (R-devel/site-library/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:285) ==597964== by 0x315FC4D5: resize_if_allowed, Eigen::CwiseUnaryOp, const Eigen::Map > >, int, int> (R-devel/site-library/RcppEigen/include/Eigen/src/Core/AssignEvaluator.h:764) ==597964== by 0x315FC4D5: call_dense_assignment_loop, Eigen::CwiseUnaryOp, const Eigen::Map > >, Eigen::internal::assign_op > (R-devel/site-library/RcppEigen/include/Eigen/src/Core/AssignEvaluator.h:778) ==597964== by 0x315FC4D5: run (R-devel/site-library/RcppEigen/include/Eigen/src/Core/AssignEvaluator.h:954) ==597964== by 0x315FC4D5: call_assignment_no_alias, Eigen::CwiseUnaryOp, const Eigen::Map > >, Eigen::internal::assign_op > (R-devel/site-library/RcppEigen/include/Eigen/src/Core/AssignEvaluator.h:890) ==597964== by 0x315FC4D5: _set_noalias, const Eigen::Map > > > (R-devel/site-library/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:797) ==597964== by 0x315FC4D5: _init1, const Eigen::Map > >, Eigen::CwiseUnaryOp, const Eigen::Map > > > (R-devel/site-library/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:883) ==597964== by 0x315FC4D5: Array, const Eigen::Map > > > (R-devel/site-library/RcppEigen/include/Eigen/src/Core/Array.h:210) ==597964== by 0x315FC4D5: vector, const Eigen::Map > > > (R-devel/site-library/TMB/include/tmbutils/vector.hpp:24) ==597964== by 0x315FC4D5: tmbutils::vector asVector(SEXPREC*) (R-devel/site-library/TMB/include/convert.hpp:114) ==597964== by 0x316A9E89: objective_function::operator()() (packages/tests-vg/dsem/src/dsem.cpp:413) ==597964== by 0x3158EAD8: EvalDoubleFunObject (R-devel/site-library/TMB/include/tmb_core.hpp:2035) ==597964== by 0x4A904D: R_doDotCall (svn/R-devel/src/main/dotcode.c:760) ==597964== by 0x4A95A3: do_dotcall (svn/R-devel/src/main/dotcode.c:1437) ==597964== by 0x4E61CC: bcEval_loop (svn/R-devel/src/main/eval.c:8150) ==597964== by 0x4F4117: bcEval (svn/R-devel/src/main/eval.c:7533) ==597964== by 0x4F4117: bcEval (svn/R-devel/src/main/eval.c:7518) ==597964== by 0x4F444A: Rf_eval (svn/R-devel/src/main/eval.c:1167) ==597964== by 0x4F63DD: R_execClosure (svn/R-devel/src/main/eval.c:2398) ==597964== ==597964== Invalid read of size 4 ==597964== at 0x316AABDA: objective_function::operator()() (packages/tests-vg/dsem/src/dsem.cpp:453) ==597964== by 0x3158EED1: count_parallel_regions (R-devel/site-library/TMB/include/tmb_core.hpp:711) ==597964== by 0x3158EED1: MakeADFunObject (R-devel/site-library/TMB/include/tmb_core.hpp:1369) ==597964== by 0x4A9031: R_doDotCall (svn/R-devel/src/main/dotcode.c:763) ==597964== by 0x4A95A3: do_dotcall (svn/R-devel/src/main/dotcode.c:1437) ==597964== by 0x4E61CC: bcEval_loop (svn/R-devel/src/main/eval.c:8150) ==597964== by 0x4F4117: bcEval (svn/R-devel/src/main/eval.c:7533) ==597964== by 0x4F4117: bcEval (svn/R-devel/src/main/eval.c:7518) ==597964== by 0x4F444A: Rf_eval (svn/R-devel/src/main/eval.c:1167) ==597964== by 0x4F63DD: R_execClosure (svn/R-devel/src/main/eval.c:2398) ==597964== by 0x4F709F: applyClosure_core (svn/R-devel/src/main/eval.c:2314) ==597964== by 0x4F455A: Rf_applyClosure (svn/R-devel/src/main/eval.c:2333) ==597964== by 0x4F455A: Rf_eval (svn/R-devel/src/main/eval.c:1278) ==597964== by 0x4F94BC: do_set (svn/R-devel/src/main/eval.c:3585) ==597964== by 0x4F47B2: Rf_eval (svn/R-devel/src/main/eval.c:1230) ==597964== Address 0x14d05210 is 0 bytes after a block of size 2,272 alloc'd ==597964== at 0x4843866: malloc (/builddir/build/BUILD/valgrind-3.24.0/coregrind/m_replacemalloc/vg_replace_malloc.c:446) ==597964== by 0x315BE808: Eigen::internal::aligned_malloc(unsigned long) (R-devel/site-library/RcppEigen/include/Eigen/src/Core/util/Memory.h:182) ==597964== by 0x315495D9: conditional_aligned_malloc (R-devel/site-library/RcppEigen/include/Eigen/src/Core/util/Memory.h:241) ==597964== by 0x315495D9: conditional_aligned_new_auto (R-devel/site-library/RcppEigen/include/Eigen/src/Core/util/Memory.h:404) ==597964== by 0x315495D9: Eigen::DenseStorage::resize(long, long, long) [clone .isra.0] (R-devel/site-library/RcppEigen/include/Eigen/src/Core/DenseStorage.h:639) ==597964== by 0x315FC4D5: resize (R-devel/site-library/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:285) ==597964== by 0x315FC4D5: resize_if_allowed, Eigen::CwiseUnaryOp, const Eigen::Map > >, int, int> (R-devel/site-library/RcppEigen/include/Eigen/src/Core/AssignEvaluator.h:764) ==597964== by 0x315FC4D5: call_dense_assignment_loop, Eigen::CwiseUnaryOp, const Eigen::Map > >, Eigen::internal::assign_op > (R-devel/site-library/RcppEigen/include/Eigen/src/Core/AssignEvaluator.h:778) ==597964== by 0x315FC4D5: run (R-devel/site-library/RcppEigen/include/Eigen/src/Core/AssignEvaluator.h:954) ==597964== by 0x315FC4D5: call_assignment_no_alias, Eigen::CwiseUnaryOp, const Eigen::Map > >, Eigen::internal::assign_op > (R-devel/site-library/RcppEigen/include/Eigen/src/Core/AssignEvaluator.h:890) ==597964== by 0x315FC4D5: _set_noalias, const Eigen::Map > > > (R-devel/site-library/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:797) ==597964== by 0x315FC4D5: _init1, const Eigen::Map > >, Eigen::CwiseUnaryOp, const Eigen::Map > > > (R-devel/site-library/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:883) ==597964== by 0x315FC4D5: Array, const Eigen::Map > > > (R-devel/site-library/RcppEigen/include/Eigen/src/Core/Array.h:210) ==597964== by 0x315FC4D5: vector, const Eigen::Map > > > (R-devel/site-library/TMB/include/tmbutils/vector.hpp:24) ==597964== by 0x315FC4D5: tmbutils::vector asVector(SEXPREC*) (R-devel/site-library/TMB/include/convert.hpp:114) ==597964== by 0x316A9E89: objective_function::operator()() (packages/tests-vg/dsem/src/dsem.cpp:413) ==597964== by 0x3158EED1: count_parallel_regions (R-devel/site-library/TMB/include/tmb_core.hpp:711) ==597964== by 0x3158EED1: MakeADFunObject (R-devel/site-library/TMB/include/tmb_core.hpp:1369) ==597964== by 0x4A9031: R_doDotCall (svn/R-devel/src/main/dotcode.c:763) ==597964== by 0x4A95A3: do_dotcall (svn/R-devel/src/main/dotcode.c:1437) ==597964== by 0x4E61CC: bcEval_loop (svn/R-devel/src/main/eval.c:8150) ==597964== by 0x4F4117: bcEval (svn/R-devel/src/main/eval.c:7533) ==597964== by 0x4F4117: bcEval (svn/R-devel/src/main/eval.c:7518) ==597964== by 0x4F444A: Rf_eval (svn/R-devel/src/main/eval.c:1167) ==597964== by 0x4F63DD: R_execClosure (svn/R-devel/src/main/eval.c:2398) ==597964== ==597964== Invalid read of size 4 ==597964== at 0x31692DBD: objective_function::operator()() (packages/tests-vg/dsem/src/dsem.cpp:453) ==597964== by 0x31696875: objective_function::evalUserTemplate() (R-devel/site-library/TMB/include/tmb_core.hpp:917) ==597964== by 0x3158B0B6: MakeADFunObject_(SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*, int, SEXPREC*&) (R-devel/site-library/TMB/include/tmb_core.hpp:1277) ==597964== by 0x3158B337: MakeADFunObject._omp_fn.0 (R-devel/site-library/TMB/include/tmb_core.hpp:1392) ==597964== by 0x54A60A5: GOMP_parallel (/usr/src/debug/gcc-14.2.1-3.fc40.x86_64/obj-x86_64-redhat-linux/x86_64-redhat-linux/libgomp/../../../libgomp/parallel.c:178) ==597964== by 0x3158F0BC: MakeADFunObject (R-devel/site-library/TMB/include/tmb_core.hpp:1388) ==597964== by 0x4A9031: R_doDotCall (svn/R-devel/src/main/dotcode.c:763) ==597964== by 0x4A95A3: do_dotcall (svn/R-devel/src/main/dotcode.c:1437) ==597964== by 0x4E61CC: bcEval_loop (svn/R-devel/src/main/eval.c:8150) ==597964== by 0x4F4117: bcEval (svn/R-devel/src/main/eval.c:7533) ==597964== by 0x4F4117: bcEval (svn/R-devel/src/main/eval.c:7518) ==597964== by 0x4F444A: Rf_eval (svn/R-devel/src/main/eval.c:1167) ==597964== by 0x4F63DD: R_execClosure (svn/R-devel/src/main/eval.c:2398) ==597964== Address 0x8137b10 is 0 bytes after a block of size 2,272 alloc'd ==597964== at 0x4843866: malloc (/builddir/build/BUILD/valgrind-3.24.0/coregrind/m_replacemalloc/vg_replace_malloc.c:446) ==597964== by 0x315BE808: Eigen::internal::aligned_malloc(unsigned long) (R-devel/site-library/RcppEigen/include/Eigen/src/Core/util/Memory.h:182) ==597964== by 0x315495D9: conditional_aligned_malloc (R-devel/site-library/RcppEigen/include/Eigen/src/Core/util/Memory.h:241) ==597964== by 0x315495D9: conditional_aligned_new_auto (R-devel/site-library/RcppEigen/include/Eigen/src/Core/util/Memory.h:404) ==597964== by 0x315495D9: Eigen::DenseStorage::resize(long, long, long) [clone .isra.0] (R-devel/site-library/RcppEigen/include/Eigen/src/Core/DenseStorage.h:639) ==597964== by 0x315FC4D5: resize (R-devel/site-library/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:285) ==597964== by 0x315FC4D5: resize_if_allowed, Eigen::CwiseUnaryOp, const Eigen::Map > >, int, int> (R-devel/site-library/RcppEigen/include/Eigen/src/Core/AssignEvaluator.h:764) ==597964== by 0x315FC4D5: call_dense_assignment_loop, Eigen::CwiseUnaryOp, const Eigen::Map > >, Eigen::internal::assign_op > (R-devel/site-library/RcppEigen/include/Eigen/src/Core/AssignEvaluator.h:778) ==597964== by 0x315FC4D5: run (R-devel/site-library/RcppEigen/include/Eigen/src/Core/AssignEvaluator.h:954) ==597964== by 0x315FC4D5: call_assignment_no_alias, Eigen::CwiseUnaryOp, const Eigen::Map > >, Eigen::internal::assign_op > (R-devel/site-library/RcppEigen/include/Eigen/src/Core/AssignEvaluator.h:890) ==597964== by 0x315FC4D5: _set_noalias, const Eigen::Map > > > (R-devel/site-library/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:797) ==597964== by 0x315FC4D5: _init1, const Eigen::Map > >, Eigen::CwiseUnaryOp, const Eigen::Map > > > (R-devel/site-library/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:883) ==597964== by 0x315FC4D5: Array, const Eigen::Map > > > (R-devel/site-library/RcppEigen/include/Eigen/src/Core/Array.h:210) ==597964== by 0x315FC4D5: vector, const Eigen::Map > > > (R-devel/site-library/TMB/include/tmbutils/vector.hpp:24) ==597964== by 0x315FC4D5: tmbutils::vector asVector(SEXPREC*) (R-devel/site-library/TMB/include/convert.hpp:114) ==597964== by 0x316923A1: objective_function::operator()() (packages/tests-vg/dsem/src/dsem.cpp:413) ==597964== by 0x31696875: objective_function::evalUserTemplate() (R-devel/site-library/TMB/include/tmb_core.hpp:917) ==597964== by 0x3158B0B6: MakeADFunObject_(SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*, int, SEXPREC*&) (R-devel/site-library/TMB/include/tmb_core.hpp:1277) ==597964== by 0x3158B337: MakeADFunObject._omp_fn.0 (R-devel/site-library/TMB/include/tmb_core.hpp:1392) ==597964== by 0x54A60A5: GOMP_parallel (/usr/src/debug/gcc-14.2.1-3.fc40.x86_64/obj-x86_64-redhat-linux/x86_64-redhat-linux/libgomp/../../../libgomp/parallel.c:178) ==597964== by 0x3158F0BC: MakeADFunObject (R-devel/site-library/TMB/include/tmb_core.hpp:1388) ==597964== by 0x4A9031: R_doDotCall (svn/R-devel/src/main/dotcode.c:763) ==597964== by 0x4A95A3: do_dotcall (svn/R-devel/src/main/dotcode.c:1437) ==597964== ==597964== Invalid read of size 4 ==597964== at 0x31692DBD: objective_function::operator()() (packages/tests-vg/dsem/src/dsem.cpp:453) ==597964== by 0x3158B188: MakeADFunObject_(SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*, int, SEXPREC*&) (R-devel/site-library/TMB/include/tmb_core.hpp:1281) ==597964== by 0x3158F1A3: MakeADFunObject (R-devel/site-library/TMB/include/tmb_core.hpp:1415) ==597964== by 0x4A9031: R_doDotCall (svn/R-devel/src/main/dotcode.c:763) ==597964== by 0x4A95A3: do_dotcall (svn/R-devel/src/main/dotcode.c:1437) ==597964== by 0x4E61CC: bcEval_loop (svn/R-devel/src/main/eval.c:8150) ==597964== by 0x4F4117: bcEval (svn/R-devel/src/main/eval.c:7533) ==597964== by 0x4F4117: bcEval (svn/R-devel/src/main/eval.c:7518) ==597964== by 0x4F444A: Rf_eval (svn/R-devel/src/main/eval.c:1167) ==597964== by 0x4F63DD: R_execClosure (svn/R-devel/src/main/eval.c:2398) ==597964== by 0x4F709F: applyClosure_core (svn/R-devel/src/main/eval.c:2314) ==597964== by 0x4F455A: Rf_applyClosure (svn/R-devel/src/main/eval.c:2333) ==597964== by 0x4F455A: Rf_eval (svn/R-devel/src/main/eval.c:1278) ==597964== by 0x4F94BC: do_set (svn/R-devel/src/main/eval.c:3585) ==597964== Address 0x15324ed0 is 0 bytes after a block of size 2,272 alloc'd ==597964== at 0x4843866: malloc (/builddir/build/BUILD/valgrind-3.24.0/coregrind/m_replacemalloc/vg_replace_malloc.c:446) ==597964== by 0x315BE808: Eigen::internal::aligned_malloc(unsigned long) (R-devel/site-library/RcppEigen/include/Eigen/src/Core/util/Memory.h:182) ==597964== by 0x315495D9: conditional_aligned_malloc (R-devel/site-library/RcppEigen/include/Eigen/src/Core/util/Memory.h:241) ==597964== by 0x315495D9: conditional_aligned_new_auto (R-devel/site-library/RcppEigen/include/Eigen/src/Core/util/Memory.h:404) ==597964== by 0x315495D9: Eigen::DenseStorage::resize(long, long, long) [clone .isra.0] (R-devel/site-library/RcppEigen/include/Eigen/src/Core/DenseStorage.h:639) ==597964== by 0x315FC4D5: resize (R-devel/site-library/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:285) ==597964== by 0x315FC4D5: resize_if_allowed, Eigen::CwiseUnaryOp, const Eigen::Map > >, int, int> (R-devel/site-library/RcppEigen/include/Eigen/src/Core/AssignEvaluator.h:764) ==597964== by 0x315FC4D5: call_dense_assignment_loop, Eigen::CwiseUnaryOp, const Eigen::Map > >, Eigen::internal::assign_op > (R-devel/site-library/RcppEigen/include/Eigen/src/Core/AssignEvaluator.h:778) ==597964== by 0x315FC4D5: run (R-devel/site-library/RcppEigen/include/Eigen/src/Core/AssignEvaluator.h:954) ==597964== by 0x315FC4D5: call_assignment_no_alias, Eigen::CwiseUnaryOp, const Eigen::Map > >, Eigen::internal::assign_op > (R-devel/site-library/RcppEigen/include/Eigen/src/Core/AssignEvaluator.h:890) ==597964== by 0x315FC4D5: _set_noalias, const Eigen::Map > > > (R-devel/site-library/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:797) ==597964== by 0x315FC4D5: _init1, const Eigen::Map > >, Eigen::CwiseUnaryOp, const Eigen::Map > > > (R-devel/site-library/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:883) ==597964== by 0x315FC4D5: Array, const Eigen::Map > > > (R-devel/site-library/RcppEigen/include/Eigen/src/Core/Array.h:210) ==597964== by 0x315FC4D5: vector, const Eigen::Map > > > (R-devel/site-library/TMB/include/tmbutils/vector.hpp:24) ==597964== by 0x315FC4D5: tmbutils::vector asVector(SEXPREC*) (R-devel/site-library/TMB/include/convert.hpp:114) ==597964== by 0x316923A1: objective_function::operator()() (packages/tests-vg/dsem/src/dsem.cpp:413) ==597964== by 0x3158B188: MakeADFunObject_(SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*, int, SEXPREC*&) (R-devel/site-library/TMB/include/tmb_core.hpp:1281) ==597964== by 0x3158F1A3: MakeADFunObject (R-devel/site-library/TMB/include/tmb_core.hpp:1415) ==597964== by 0x4A9031: R_doDotCall (svn/R-devel/src/main/dotcode.c:763) ==597964== by 0x4A95A3: do_dotcall (svn/R-devel/src/main/dotcode.c:1437) ==597964== by 0x4E61CC: bcEval_loop (svn/R-devel/src/main/eval.c:8150) ==597964== by 0x4F4117: bcEval (svn/R-devel/src/main/eval.c:7533) ==597964== by 0x4F4117: bcEval (svn/R-devel/src/main/eval.c:7518) ==597964== by 0x4F444A: Rf_eval (svn/R-devel/src/main/eval.c:1167) ==597964== [ FAIL 0 | WARN 0 | SKIP 0 | PASS 19 ] > > # Run from local directory > # testthat::test_dir( "C:/Users/James.Thorson/Desktop/Git/dsem/tests/testthat/", reporter="check" ) > > proc.time() user system elapsed 4428.338 35.311 4481.502 ==597964== ==597964== HEAP SUMMARY: ==597964== in use at exit: 430,785,667 bytes in 83,187 blocks ==597964== total heap usage: 2,329,575 allocs, 2,246,388 frees, 16,010,699,081 bytes allocated ==597964== ==597964== 1,040 bytes in 1 blocks are possibly lost in loss record 570 of 4,484 ==597964== at 0x4843866: malloc (/builddir/build/BUILD/valgrind-3.24.0/coregrind/m_replacemalloc/vg_replace_malloc.c:446) ==597964== by 0x315BE808: Eigen::internal::aligned_malloc(unsigned long) (R-devel/site-library/RcppEigen/include/Eigen/src/Core/util/Memory.h:182) ==597964== by 0x315495D9: conditional_aligned_malloc (R-devel/site-library/RcppEigen/include/Eigen/src/Core/util/Memory.h:241) ==597964== by 0x315495D9: conditional_aligned_new_auto (R-devel/site-library/RcppEigen/include/Eigen/src/Core/util/Memory.h:404) ==597964== by 0x315495D9: Eigen::DenseStorage::resize(long, long, long) [clone .isra.0] (R-devel/site-library/RcppEigen/include/Eigen/src/Core/DenseStorage.h:639) ==597964== by 0x3164F603: resize (R-devel/site-library/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:285) ==597964== by 0x3164F603: resize_if_allowed, Eigen::Array, int, int> (R-devel/site-library/RcppEigen/include/Eigen/src/Core/AssignEvaluator.h:764) ==597964== by 0x3164F603: void Eigen::internal::call_dense_assignment_loop, Eigen::Array, Eigen::internal::assign_op >(Eigen::Array&, Eigen::Array const&, Eigen::internal::assign_op const&) (R-devel/site-library/RcppEigen/include/Eigen/src/Core/AssignEvaluator.h:778) ==597964== by 0x3158BA88: run (R-devel/site-library/RcppEigen/include/Eigen/src/Core/AssignEvaluator.h:954) ==597964== by 0x3158BA88: call_assignment_no_alias, Eigen::Array, Eigen::internal::assign_op > (R-devel/site-library/RcppEigen/include/Eigen/src/Core/AssignEvaluator.h:890) ==597964== by 0x3158BA88: call_assignment, Eigen::Array, Eigen::internal::assign_op > (R-devel/site-library/RcppEigen/include/Eigen/src/Core/AssignEvaluator.h:858) ==597964== by 0x3158BA88: call_assignment, Eigen::Array > (R-devel/site-library/RcppEigen/include/Eigen/src/Core/AssignEvaluator.h:836) ==597964== by 0x3158BA88: _set > (R-devel/site-library/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:779) ==597964== by 0x3158BA88: operator= (R-devel/site-library/RcppEigen/include/Eigen/src/Core/Array.h:118) ==597964== by 0x3158BA88: operator= (R-devel/site-library/TMB/include/tmbutils/vector.hpp:17) ==597964== by 0x3158BA88: sphess_t (R-devel/site-library/TMB/include/start_parallel.hpp:47) ==597964== by 0x3158BA88: MakeADHessObject2_(SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*, int) (R-devel/site-library/TMB/include/tmb_core.hpp:2328) ==597964== by 0x3158BD80: MakeADHessObject2._omp_fn.0 (R-devel/site-library/TMB/include/tmb_core.hpp:2477) ==597964== by 0x54A60A5: GOMP_parallel (/usr/src/debug/gcc-14.2.1-3.fc40.x86_64/obj-x86_64-redhat-linux/x86_64-redhat-linux/libgomp/../../../libgomp/parallel.c:178) ==597964== by 0x3158E4E6: MakeADHessObject2 (R-devel/site-library/TMB/include/tmb_core.hpp:2473) ==597964== by 0x4A9031: R_doDotCall (svn/R-devel/src/main/dotcode.c:763) ==597964== by 0x4A95A3: do_dotcall (svn/R-devel/src/main/dotcode.c:1437) ==597964== by 0x4E61CC: bcEval_loop (svn/R-devel/src/main/eval.c:8150) ==597964== by 0x4F4117: bcEval (svn/R-devel/src/main/eval.c:7533) ==597964== by 0x4F4117: bcEval (svn/R-devel/src/main/eval.c:7518) ==597964== ==597964== 130,032 (920 direct, 129,112 indirect) bytes in 23 blocks are definitely lost in loss record 4,066 of 4,484 ==597964== at 0x4843FEC: operator new(unsigned long) (/builddir/build/BUILD/valgrind-3.24.0/coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==597964== by 0x3158BD60: MakeADHessObject2._omp_fn.0 (R-devel/site-library/TMB/include/tmb_core.hpp:2477) ==597964== by 0x54A60A5: GOMP_parallel (/usr/src/debug/gcc-14.2.1-3.fc40.x86_64/obj-x86_64-redhat-linux/x86_64-redhat-linux/libgomp/../../../libgomp/parallel.c:178) ==597964== by 0x3158E4E6: MakeADHessObject2 (R-devel/site-library/TMB/include/tmb_core.hpp:2473) ==597964== by 0x4A9031: R_doDotCall (svn/R-devel/src/main/dotcode.c:763) ==597964== by 0x4A95A3: do_dotcall (svn/R-devel/src/main/dotcode.c:1437) ==597964== by 0x4E61CC: bcEval_loop (svn/R-devel/src/main/eval.c:8150) ==597964== by 0x4F4117: bcEval (svn/R-devel/src/main/eval.c:7533) ==597964== by 0x4F4117: bcEval (svn/R-devel/src/main/eval.c:7518) ==597964== by 0x4F444A: Rf_eval (svn/R-devel/src/main/eval.c:1167) ==597964== by 0x4F63DD: R_execClosure (svn/R-devel/src/main/eval.c:2398) ==597964== by 0x4F709F: applyClosure_core (svn/R-devel/src/main/eval.c:2314) ==597964== by 0x4F455A: Rf_applyClosure (svn/R-devel/src/main/eval.c:2333) ==597964== by 0x4F455A: Rf_eval (svn/R-devel/src/main/eval.c:1278) ==597964== ==597964== LEAK SUMMARY: ==597964== definitely lost: 920 bytes in 23 blocks ==597964== indirectly lost: 129,112 bytes in 45 blocks ==597964== possibly lost: 1,040 bytes in 1 blocks ==597964== still reachable: 430,653,167 bytes in 83,115 blocks ==597964== suppressed: 1,428 bytes in 3 blocks ==597964== Reachable blocks (those to which a pointer was found) are not shown. ==597964== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==597964== ==597964== For lists of detected and suppressed errors, rerun with: -s ==597964== ERROR SUMMARY: 570 errors from 7 contexts (suppressed: 0 from 0)