is it definitely using gcode ?
if it was using x3g files then I'd recommend switching to flashprint.

The first thing I would do is load the s3d profile for replicator dual and tell it to use gcode insted of x3g (check that first).

Can't see anything odd in your startup code. But the s3d rep dual profile tends to work well on ALL the replicator clones. Usually better than the machine specific ones.