instead of drupal_set_message and dpm on Drupal 8 \Drupal:messenger

$messenger= \Drupal::messenger();
$messenger->addMessage('thanks for submitting the csv data, administrate users have been created from the csv file!');