It appears that RTMB:::Term(.) calls RTMB:::getPositiveHessian, which scans the tape for "TermOp1" operations. However, when using TMB::config( tmbad.sparse_hessian_compress = TRUE, DLL="RTMB" ) to compress the Hessian (i.e., save memory), it then labels the repeated elements as atomic functions, so RTMB:::getPositiveHessian no longer works.
Is there any way to call the machinery of tmbad.sparse_hessian_compress on a built tape, i.e., after executing RTMB:::getPositiveHessian, so that these two features could be done together on the same model?