You switched the order of flux and trunc here.  The order here should match the order used in the SBSersic constructor in include/galsim/SBSersic.h.