The first two comment lines in CalSim.h should be uncommented, I guess this was a bad cleaning after testing.