I'm trying to run a latent class analysis analysis (60,000 cases, 20 variables, with group (6 groups)) and getting this error. Do you know what causes it? I have 64gb of RAM on 64 bit windows machine on Stata 16 (64bit) so I doubt it's a RAM problem


quietly gsem (V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 V11 V12 V13 V14 V15 V16 V17 V18 V19 V20 <- _cons), group(localauthority) family(bernoulli) link(logit) lclass(C 7) iterate(40) startvalues(randompr, draws (10) seed (5) difficult) emopts(iterate (5) difficult)

J(): 3900 unable to allocate real <tmp>[61084,461280]
_gsem_eval_mix(): - function returned error
mopt__calluser_v(): - function returned error
opt__eval_nr_v2(): - function returned error
opt__eval(): - function returned error
opt__looputil_iter0_common(): - function returned error
opt__looputil_iter0_nr(): - function returned error
opt__loop_nr(): - function returned error
opt__loop(): - function returned error
_moptimize(): - function returned error
Mopt_maxmin(): - function returned error
<istmt>: - function returned error