serial 1 was not declared in the scope
The only SoftwareSerial you a declaring is SoftwareSerial mySerial(10, 11); // RX, TX

(And you you didn't use it afterwards).

If the hardware serials Serial1, Serial2 or Serial3 are available
(and already declared in the arduino.h header depends on the board you are using.