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 /data/gannet/ripley/R/test-clang/TMB/include/convert.hpp:139:23: runtime error: nan is outside the range of representable values of type 'int' #0 0x7f004eb3ca56 in tmbutils::matrix asMatrix(SEXPREC*) /data/gannet/ripley/R/test-clang/TMB/include/convert.hpp:139:23 #1 0x7f004ec492e4 in objective_function::operator()() /data/gannet/ripley/R/packages/tests-clang-UBSAN/dsem/src/dsem.cpp:92:3 #2 0x7f004e89721e in getParameterOrder /data/gannet/ripley/R/test-clang/TMB/include/tmb_core.hpp:2065:7 #3 0x5636393b60c5 in R_doDotCall (/data/gannet/ripley/R/R-clang/bin/exec/R+0x8f0c5) #4 0x5636393b827d in do_dotcall (/data/gannet/ripley/R/R-clang/bin/exec/R+0x9127d) #5 0x5636393f6b73 in bcEval_loop eval.c #6 0x5636393f013b in bcEval eval.c #7 0x5636393ef8f4 in Rf_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0xc88f4) #8 0x563639407a58 in R_execClosure eval.c #9 0x563639406f4a in applyClosure_core eval.c #10 0x5636393f0816 in Rf_applyClosure (/data/gannet/ripley/R/R-clang/bin/exec/R+0xc9816) #11 0x5636393efd47 in Rf_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0xc8d47) #12 0x56363940cdb7 in do_set (/data/gannet/ripley/R/R-clang/bin/exec/R+0xe5db7) #13 0x5636393efb1f in Rf_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0xc8b1f) #14 0x56363940c0aa in do_begin (/data/gannet/ripley/R/R-clang/bin/exec/R+0xe50aa) #15 0x5636393efb1f in Rf_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0xc8b1f) #16 0x56363940e227 in do_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0xe7227) #17 0x5636393f6b73 in bcEval_loop eval.c #18 0x5636393f013b in bcEval eval.c #19 0x5636393ef8f4 in Rf_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0xc88f4) #20 0x563639407a58 in R_execClosure eval.c #21 0x563639406f4a in applyClosure_core eval.c #22 0x5636393f0816 in Rf_applyClosure (/data/gannet/ripley/R/R-clang/bin/exec/R+0xc9816) #23 0x5636393efd47 in Rf_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0xc8d47) #24 0x56363940e607 in do_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0xe7607) #25 0x5636393f6b73 in bcEval_loop eval.c #26 0x5636393f013b in bcEval eval.c #27 0x5636393ef8f4 in Rf_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0xc88f4) #28 0x563639407a58 in R_execClosure eval.c #29 0x563639406f4a in applyClosure_core eval.c #30 0x56363940a3f8 in R_forceAndCall (/data/gannet/ripley/R/R-clang/bin/exec/R+0xe33f8) #31 0x56363933c7eb in do_lapply (/data/gannet/ripley/R/R-clang/bin/exec/R+0x157eb) #32 0x563639451fc7 in do_internal (/data/gannet/ripley/R/R-clang/bin/exec/R+0x12afc7) #33 0x5636393f6dd5 in bcEval_loop eval.c #34 0x5636393f013b in bcEval eval.c #35 0x5636393ef8f4 in Rf_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0xc88f4) #36 0x563639407a58 in R_execClosure eval.c #37 0x563639406f4a in applyClosure_core eval.c #38 0x5636393f0816 in Rf_applyClosure (/data/gannet/ripley/R/R-clang/bin/exec/R+0xc9816) #39 0x5636393efd47 in Rf_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0xc8d47) #40 0x56363943cf37 in Rf_ReplIteration (/data/gannet/ripley/R/R-clang/bin/exec/R+0x115f37) #41 0x56363943ea3e in run_Rmainloop (/data/gannet/ripley/R/R-clang/bin/exec/R+0x117a3e) #42 0x56363943eaaa in Rf_mainloop (/data/gannet/ripley/R/R-clang/bin/exec/R+0x117aaa) #43 0x563639328db7 in main (/data/gannet/ripley/R/R-clang/bin/exec/R+0x1db7) #44 0x7f0062511574 in __libc_start_call_main (/lib64/libc.so.6+0x3574) (BuildId: 92b5376d35bb29c098175948cf3e7cbcae3aeae1) #45 0x7f0062511627 in __libc_start_main@GLIBC_2.2.5 (/lib64/libc.so.6+0x3627) (BuildId: 92b5376d35bb29c098175948cf3e7cbcae3aeae1) #46 0x563639328cd4 in _start (/data/gannet/ripley/R/R-clang/bin/exec/R+0x1cd4) SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /data/gannet/ripley/R/test-clang/TMB/include/convert.hpp:139:23 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 [ 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 195.246 4.240 200.866