Hi @wds15 -
I built the recent cmdstan 2.23 on a linux cluster. When I tried to run a stan script, I got the following error:
Unrecoverable error evaluating the log probability at the initial value. Exception: unregistered class - derived class not registered or exported (in '/home/rmk7/corona_tscs/data/cluster/idealstan_stan_code.stan', line 338, column 2 to column 74) [origin: unknown original type]
When I looked up line 338, it came to this:
target += sum(map_rect(overT,dparams,varparams,cont_shards,int_shards));
map_rect function itself is having problems.
I had some troubles compiling so I’m not sure if they are related. I had to use pre-installed packages, such as an intel library (version 16.1) to get TBB to compile. The version of openmpi is also older (1.10.2), so not sure if any of that is related. All of the compiler flags were set and it compiled with
mpicxx. The compiler on the system is
Any help much appreciated! I will try reverting to an older version of
cmdstan to see if that makes a difference.
The stan file is attached, though it doesn’t seem to have much to do with the actual stan code.idealstan_stan_code.stan (11.3 KB)