Factory output creeps up after falling for 2 months