Size of Stan model on Linux versus MacOS

I built the same model one on Linux and one one MacOS using pystan. The MacOS model is about 2 MB and the Linux one is 55 MB. Are there any ideas why there is such a difference in model sizes?

Probably clang vs gcc issue.

What are the compiler versions?

gcc --version

On Linux, I am running gcc (Debian 4.9.2-10) 4.9.2.
On MacOS, I am running gcc (GCC) 4.8.5.

My guess is on Linux you are building with debug information included.

What are the Python versions?

python --version

2.7.14 on Linux and 3.6.1 on MacOS

Found the debug flag…thanks.