Problem with trim in SITL

I am trying to run SITL (w/ JSBsim) starting in a cruise condition. I do a trim first, but when the simulation starts running, some of the control values are zero instead of the trim values, so the aircraft does not fly straight and level. If I run the same files in JSBsim by itself, this does not happen. What am I missing?