Complex sentence: O'Reilly was educated in the Public Schools of his native city and had commenced the study of medicine at the University of Pennsylvania when the Civil War broke out.
Split into simpler sentences: O'Reilly was educated in the Public Schools of his native city. O'Reilly had commenced the study of medicine at the University of Pennsylvania when the Civil War broke out.