After running a model for a long time, I tried dumping out the parameters using bin/stansummary output.csv and got
Error: error reading header
libc++abi.dylib: terminating with uncaught exception of type std::invalid_argument: Error with header of input file in parse
Abort trap: 6
I tried running against the result of the bernoulli sample and it showed the parameter fine.
output.csv ist just a text file (comma separated values).
If you are using linux, “less output.csv”. If you are using windows, point your favourite editor at the file. If you are using a Mac, there is time to buy something else.
At the top, you should have comment lines, introduced with a hash. That look like,
and eventually your values. At the end are some more comments with run-time information.
Check if the first few lines look OK.
Have you moved the file between operating systems ? Depending on what kind of readline()/getline(), … is used, different newline terminators can confuse some readers.