Trimaille Marc, Médecin généraliste à Sochaux