Just switch the two files. At the moment the first plot
command is carried out, the default interactive terminal is set.
Change your settings.gpl
to
set terminal pdfcairo size 12in,6in
set output 'output.pdf'
and call
gnuplot settings.gpl file1.gpl