 
 FLASSI.  ECHO stream rerouted to file: LCLS2sc.echo
 
 
 FLASSI.  PRINT stream rerouted to file: LCLS2sc.print
 
 
 FLCALL.  Now reading file: LCLS2sc_master.xsif
 
 
 FLCALL.  Now reading file: common.xsif
 
 
 FLCALL.  Now reading file: LCLS2sc_master.xsif
 
 
 FLCALL.  Now reading file: CM_SWAVE.xsif
 
 
 FLCALL.  Now reading file: LCLS2sc_master.xsif
 
 
 FLCALL.  Now reading file: DIAG0.xsif
 
 
 FLCALL.  Now reading file: LCLS2sc_master.xsif
 
 
 FLCALL.  Now reading file: INJ.xsif
 
 
 FLCALL.  Now reading file: LCLS2sc_master.xsif
 
 
 FLCALL.  Now reading file: BC1.xsif
 
 
 FLCALL.  Now reading file: LCLS2sc_master.xsif
 
 
 FLCALL.  Now reading file: BC2.xsif
 
 
 FLCALL.  Now reading file: LCLS2sc_master.xsif
 
 
 FLCALL.  Now reading file: EXT.xsif
 
 
 FLCALL.  Now reading file: LCLS2sc_master.xsif
 
 
 FLCALL.  Now reading file: DLBM.xsif
 
 
 FLCALL.  Now reading file: LCLS2sc_master.xsif
 
 
 FLCALL.  Now reading file: SPRD.xsif
 
 
 FLCALL.  Now reading file: LCLS2sc_master.xsif
 
 
 FLCALL.  Now reading file: CUSXR.xsif
 
 
 FLCALL.  Now reading file: LCLS2sc_master.xsif
 
 
 FLCALL.  Now reading file: ALINE.xsif
 
 
 FLCALL.  Now reading file: LCLS2sc_master.xsif
 
 
 FLCALL.  Now reading file: BYP.xsif
 
 
 FLCALL.  Now reading file: LCLS2sc_master.xsif
 
 
 FLCALL.  Now reading file: LTU.xsif
 
 
 FLCALL.  Now reading file: LCLS2sc_master.xsif
 
 
 FLCALL.  Now reading file: UND.xsif
 
 
 FLCALL.  Now reading file: LCLS2sc_master.xsif
 
 
 FLCALL.  Now reading file: SFT.xsif
 
 
 FLCALL.  Now reading file: LCLS2sc_master.xsif
 
 
 FLCALL.  Now reading file: SXTES.xsif
 
 
 FLCALL.  Now reading file: LCLS2sc_master.xsif
 
 
 FLCALL.  Now reading file: DASEL.xsif
 
 
 FLCALL.  Now reading file: LCLS2sc_master.xsif
 
 
 FLCALL.  Now reading file: BSYsc.xsif
 
 
 FLCALL.  Now reading file: LCLS2sc_master.xsif
 
 
 FLCALL.  Now reading file: standard input
 
 
 ENBEAM.  ## Warning ## Redundant data on BEAM --- SIGE will be ignored.
 
                                                                                               
               ! ------------------------------------------------------------------------------
                                                                                               
       535      !CALL, FILENAME="upgrade/MSXRXXsc.mad8"                                        
                !SETupgrade                                                                    
                                                                                               
                !CALL, FILENAME="LCLS2sc_LHmodes.mad8" !laser heater operating modes           
                                                                                               
       540      !CALL, FILENAME="LCLS2sc_beams.mad8" !alternate beams & configurations         
                !CALL, FILENAME="LCLS2sc_match.mad8"                                           
                !CALL, FILENAME="LCLS2sc_makeSymbols.mad8"                                     
                !CALL, FILENAME="LCLS2sc_makeElegant.mad8"                                     
                !CALL, FILENAME="LCLS2sc_XLEAP.mad8"                                           
       545                                                                                     
                !STOP                                                                          
                                                                                               
               ! ------------------------------------------------------------------------------
               ! SURVEY in linac coordinates                                                   
       550     ! ------------------------------------------------------------------------------
                                                                                               
               ! SXR                                                                           
                                                                                               
                !COMMENT                                                                       
       555         ASSIGN, PRINT="LCLS2scS.print"                                              
 
 FLASSI.  Closing PRINT file: LCLS2sc.print
 
 
 FLASSI.  PRINT stream rerouted to file: LCLS2scS.print
 
                   BEAM, ENERGY=E0                                                             
                   SET, SETSP, SETSPs ; SET, SETCUS, CUSOFF                                    
                   USE, SC_SXR                                                                 
 
 ENUSE.   New beam line expanded: SC_SXR
 
                  !SAVELINE, NAME="SC_SXR", FILENAME="LCLS2scS.saveline"                       
       560         PRINT, FULL                                                                 
                   SURVEY, X0=Xgun, Y0=Ygun, Z0=Zgun, TAPE="LCLS2scS_survey.tape"              
 
 SURVEY.  Output written on file: LCLS2scS_survey.tape
 
                   BEAM, ENERGY=Ei                                                             
                   USE, SC_SXRi                                                                
 
 ENUSE.   New beam line expanded: SC_SXRI
 
                   PRINT, FULL                                                                 
       565         TWISS, SAVE, BETA0=TWSSi, TAPE="LCLS2scS_twiss.tape", &                     
                     RTAPE="LCLS2scS_rmat.tape"                                                
 
 TWBTGO.  ## Warning ## TWISS found transverse coupling for delta(p)/p =    0.000000
          Please use the COUPLE option.
 
 
 TWBTGO.  ## Warning ## TWISS uses the RF system and synchrotron radiation only to find the closed orbit.
          for optical calculations it ignores both.
 
 
 TWISS.   Lattice functions written on file: LCLS2scS_twiss.tape
 
 
 TWISS.   Effective R-matrices written on file: LCLS2scS_rmat.tape
 
 
 TWBTSV.  Lattice functions saved in table: TWISS
 
                   PLOT, TABLE=TWISS, HAXIS=S, VAXIS=ENERGY, VMIN=0, VMAX=5, &                 
                     STYLE=100, SPLINE, RANGE=BEAM0/DUMPFACEB, FILE="LCLS2scS", &              
                     TITLE="SC-linac to SXR dump"                                              
       570         PLOT, TABLE=TWISS, HAXIS=S, VAXIS=BETX,BETY, &                              
                     STYLE=100, SPLINE, RANGE=BEAM0/DUMPFACEB, FILE="LCLS2scS", &              
                     TITLE="SC-linac to SXR dump"                                              
                   PLOT, TABLE=TWISS, HAXIS=S, VAXIS=DX,DY, &                                  
                     STYLE=100, SPLINE, RANGE=BEAM0/DUMPFACEB, FILE="LCLS2scS", &              
       575           TITLE="SC-linac to SXR dump"                                              
                   PLOT, TABLE=TWISS, HAXIS=S, VAXIS=BETX,BETY, &                              
                     STYLE=100, SPLINE, RANGE=WS31B/DU7S[31], FILE="LCLS2scS", &               
                     TITLE="UNDS (SC beam, 4 GeV)"                                             
                !ENDCOMMENT                                                                    
       580                                                                                     
               ! ------------------------------------------------------------------------------
                                                                                               
               ! SXR safety dump                                                               
                                                                                               
       585       COMMENT                                                                       
                   ASSIGN, PRINT="LCLS2scSS.print"                                             
                   BEAM, ENERGY=E0                                                             
                   SET, SETSP, SETSPs ; SET, SETCUS, CUSOFF                                    
                   USE, SC_SFTS                                                                
       590         PRINT, FULL                                                                 
                   SURVEY, X0=Xgun, Y0=Ygun, Z0=Zgun, TAPE="LCLS2scSS_survey.tape"             
                 ENDCOMMENT                                                                    
                                                                                               
               ! ------------------------------------------------------------------------------
       595                                                                                     
               ! SXR "2.x"                                                                     
                                                                                               
                !COMMENT                                                                       
                   ASSIGN, PRINT="LCLS2scS2_X.print"                                           
 
 FLASSI.  Closing PRINT file: LCLS2scS.print
 
 
 FLASSI.  PRINT stream rerouted to file: LCLS2scS2_X.print
 
       600         BEAM, ENERGY=E0                                                             
                   SET, SETSP, SETSPs ; SET, SETCUS, CUSOFF                                    
                   USE, SC_S2_X                                                                
 
 ENUSE.   New beam line expanded: SC_S2_X
 
                   PRINT, FULL                                                                 
                   SURVEY, X0=Xgun, Y0=Ygun, Z0=Zgun, TAPE="LCLS2scS2_X_survey.tape"           
 
 SURVEY.  Output written on file: LCLS2scS2_X_survey.tape
 
       605      !ENDCOMMENT                                                                    
                                                                                               
               ! ------------------------------------------------------------------------------
                                                                                               
               ! SXR TXI                                                                       
       610                                                                                     
                !COMMENT                                                                       
                   ASSIGN, PRINT="LCLS2scSTXI.print"                                           
 
 FLASSI.  Closing PRINT file: LCLS2scS2_X.print
 
 
 FLASSI.  PRINT stream rerouted to file: LCLS2scSTXI.print
 
                   BEAM, ENERGY=E0                                                             
                   SET, SETSP, SETSPs ; SET, SETCUS, CUSOFF                                    
       615         USE, SC_STXI                                                                
 
 ENUSE.   New beam line expanded: SC_STXI
 
                   PRINT, FULL                                                                 
                   SURVEY, X0=Xgun, Y0=Ygun, Z0=Zgun, TAPE="LCLS2scSTXI_survey.tape"           
 
 SURVEY.  Output written on file: LCLS2scSTXI_survey.tape
 
                !ENDCOMMENT                                                                    
                                                                                               
       620     ! ------------------------------------------------------------------------------
                                                                                               
               ! SXR TMO                                                                       
                                                                                               
                !COMMENT                                                                       
       625         ASSIGN, PRINT="LCLS2scSTMO.print"                                           
 
 FLASSI.  Closing PRINT file: LCLS2scSTXI.print
 
 
 FLASSI.  PRINT stream rerouted to file: LCLS2scSTMO.print
 
                   BEAM, ENERGY=E0                                                             
                   SET, SETSP, SETSPs ; SET, SETCUS, CUSOFF                                    
                   USE, SC_STMO                                                                
 
 ENUSE.   New beam line expanded: SC_STMO
 
                   PRINT, FULL                                                                 
       630         SURVEY, X0=Xgun, Y0=Ygun, Z0=Zgun, TAPE="LCLS2scSTMO_survey.tape"           
 
 SURVEY.  Output written on file: LCLS2scSTMO_survey.tape
 
                !ENDCOMMENT                                                                    
                                                                                               
               ! ------------------------------------------------------------------------------
                                                                                               
       635     ! HXR                                                                           
                                                                                               
                !COMMENT                                                                       
                   ASSIGN, PRINT="LCLS2scH.print"                                              
 
 FLASSI.  Closing PRINT file: LCLS2scSTMO.print
 
 
 FLASSI.  PRINT stream rerouted to file: LCLS2scH.print
 
                   BEAM, ENERGY=E0                                                             
       640         SET, SETSP, SETSPh                                                          
                   USE, SC_HXR                                                                 
 
 ENUSE.   New beam line expanded: SC_HXR
 
                  !SAVELINE, NAME="SC_HXR", FILENAME="LCLS2scH.saveline"                       
                   PRINT, FULL                                                                 
                   SURVEY, X0=Xgun, Y0=Ygun, Z0=Zgun, TAPE="LCLS2scH_survey.tape"              
 
 SURVEY.  Output written on file: LCLS2scH_survey.tape
 
       645         BEAM, ENERGY=Ei                                                             
                   USE, SC_HXRi                                                                
 
 ENUSE.   New beam line expanded: SC_HXRI
 
                   PRINT, FULL                                                                 
                   TWISS, SAVE, BETA0=TWSSi, TAPE="LCLS2scH_twiss.tape" !, &                   
 
 TBCREA.  ## Warning ## Table buffer "TWISS" already exists --- previous version deleted.
 
 
 TWBTGO.  ## Warning ## TWISS found transverse coupling for delta(p)/p =    0.000000
          Please use the COUPLE option.
 
 
 TWBTGO.  ## Warning ## TWISS uses the RF system and synchrotron radiation only to find the closed orbit.
          for optical calculations it ignores both.
 
 
 TWISS.   Lattice functions written on file: LCLS2scH_twiss.tape
 
 
 TWBTSV.  Lattice functions saved in table: TWISS
 
                  !  RTAPE="LCLS2scH_rmat.tape"                                                
       650         PLOT, TABLE=TWISS, HAXIS=S, VAXIS=ENERGY, VMIN=0, VMAX=5, &                 
                     STYLE=100, SPLINE, RANGE=BEAM0/DUMPFACE, FILE="LCLS2scH", &               
                     TITLE="SC-linac to HXR dump"                                              
                   PLOT, TABLE=TWISS, HAXIS=S, VAXIS=BETX,BETY, &                              
                     STYLE=100, SPLINE, RANGE=BEAM0/DUMPFACE, FILE="LCLS2scH", &               
       655           TITLE="SC-linac to HXR dump"                                              
                   PLOT, TABLE=TWISS, HAXIS=S, VAXIS=DX,DY, &                                  
                     STYLE=100, SPLINE, RANGE=BEAM0/DUMPFACE, FILE="LCLS2scH", &               
                     TITLE="SC-linac to HXR dump"                                              
                   PLOT, TABLE=TWISS, HAXIS=S, VAXIS=BETX,BETY, &                              
       660           STYLE=100, SPLINE, RANGE=WS31/DU7H[25], FILE="LCLS2scH", &                
                     TITLE="UNDH (SC beam, 4 GeV)"                                             
                !ENDCOMMENT                                                                    
                                                                                               
               ! ------------------------------------------------------------------------------
       665                                                                                     
               ! BSY dump                                                                      
                                                                                               
                !COMMENT                                                                       
                   ASSIGN, PRINT="LCLS2scD.print"                                              
 
 FLASSI.  Closing PRINT file: LCLS2scH.print
 
       670         BEAM, ENERGY=E0                                                             
                   SET, SETSP, SETSPd ; SET, SETDA, DAOFF                                      
                   USE, SC_BSYD                                                                
 
 ENUSE.   New beam line expanded: SC_BSYD
 
                  !SAVELINE, NAME="SC_BSYD", FILENAME="LCLS2scD.saveline"                      
                   PRINT, FULL                                                                 
       675         SURVEY, X0=Xgun, Y0=Ygun, Z0=Zgun, TAPE="LCLS2scD_survey.tape"              
 
 SURVEY.  Output written on file: LCLS2scD_survey.tape
 
                   BEAM, ENERGY=Ei                                                             
                   USE, SC_BSYDi                                                               
 
 ENUSE.   New beam line expanded: SC_BSYDI
 
                   PRINT, FULL                                                                 
                   TWISS, SAVE, BETA0=TWSSi, TAPE="LCLS2scD_twiss.tape" !, &                   
 
 TBCREA.  ## Warning ## Table buffer "TWISS" already exists --- previous version deleted.
 
 
 TWBTGO.  ## Warning ## TWISS found transverse coupling for delta(p)/p =    0.000000
          Please use the COUPLE option.
 
 
 TWBTGO.  ## Warning ## TWISS uses the RF system and synchrotron radiation only to find the closed orbit.
          for optical calculations it ignores both.
 
 
 TWISS.   Lattice functions written on file: LCLS2scD_twiss.tape
 
 
 TWBTSV.  Lattice functions saved in table: TWISS
 
       680        !  RTAPE="LCLS2scD_rmat.tape"                                                
                   PLOT, TABLE=TWISS, HAXIS=S, VAXIS=ENERGY, VMIN=0, VMAX=5, &                 
                     STYLE=100, SPLINE, RANGE=BEAM0/DUMPBSY, FILE="LCLS2scD", &                
                     TITLE="SC-linac to BSY dump"                                              
                   PLOT, TABLE=TWISS, HAXIS=S, VAXIS=BETX,BETY, &                              
       685           STYLE=100, SPLINE, RANGE=BEAM0/DUMPBSY, FILE="LCLS2scD", &                
                     TITLE="SC-linac to BSY dump"                                              
                   PLOT, TABLE=TWISS, HAXIS=S, VAXIS=DX,DY, &                                  
                     STYLE=100, SPLINE, RANGE=BEAM0/DUMPBSY, FILE="LCLS2scD", &                
                     TITLE="SC-linac to BSY dump"                                              
       690      !ENDCOMMENT                                                                    
                                                                                               
               ! ------------------------------------------------------------------------------
                                                                                               
               ! DIAG0                                                                         
       695                                                                                     
                !COMMENT                                                                       
                   ASSIGN, PRINT="DIAG0.print"                                                 
 
 FLASSI.  Closing PRINT file: LCLS2scD.print
 
                   BEAM, ENERGY=E0                                                             
                   USE, SC_DIAG0                                                               
 
 ENUSE.   New beam line expanded: SC_DIAG0
 
       700        !SAVELINE, NAME="SC_DIAG0", FILENAME="DIAG0.saveline"                        
                   PRINT, FULL                                                                 
                   SURVEY, X0=Xgun, Y0=Ygun, Z0=Zgun, TAPE="DIAG0_survey.tape"                 
 
 SURVEY.  Output written on file: DIAG0_survey.tape
 
                   BEAM, ENERGY=Ei                                                             
                   USE, SC_DIAG0i                                                              
 
 ENUSE.   New beam line expanded: SC_DIAG0I
 
       705         PRINT, FULL                                                                 
                   TWISS, SAVE, BETA0=TWSSi, TAPE="DIAG0_twiss.tape" !, &                      
 
 TBCREA.  ## Warning ## Table buffer "TWISS" already exists --- previous version deleted.
 
 
 TWBTGO.  ## Warning ## TWISS found transverse coupling for delta(p)/p =    0.000000
          Please use the COUPLE option.
 
 
 TWISS.   Lattice functions written on file: DIAG0_twiss.tape
 
 
 TWBTSV.  Lattice functions saved in table: TWISS
 
                  !  RTAPE="DIAG0_rmat.tape"                                                   
                   PLOT, TABLE=TWISS, HAXIS=S, VAXIS=BETX,BETY, &                              
                     STYLE=100, SPLINE, RANGE=BEAM0/ENDDIAG0, FILE="DIAG0", &                  
       710           TITLE="SC-linac to DIAG0"                                                 
                   PLOT, TABLE=TWISS, HAXIS=S, VAXIS=DX,DY, &                                  
                     STYLE=100, SPLINE, RANGE=BEAM0/ENDDIAG0, FILE="DIAG0", &                  
                     TITLE="SC-linac to DIAG0"                                                 
                !ENDCOMMENT                                                                    
       715                                                                                     
               ! ------------------------------------------------------------------------------
                                                                                               
               ! DASEL (a.k.a. S30XL or LESA; funded off-project)                              
                                                                                               
       720      !COMMENT                                                                       
                   ASSIGN, PRINT="LCLS2scDA.print"                                             
 
 FLASSI.  Closing PRINT file: DIAG0.print
 
                   BEAM, ENERGY=E0                                                             
                   SET, SETSP, SETSPd ; SET, SETDA, DAON                                       
                   SETK2scDA                                                                   
       725         USE, SC_DASEL                                                               
 
 ENUSE.   New beam line expanded: SC_DASEL
 
                  !SAVELINE, NAME="SC_DASEL", FILENAME="LCLS2scDA.saveline"                    
                   PRINT, FULL                                                                 
                   SURVEY, X0=Xgun, Y0=Ygun, Z0=Zgun, TAPE="LCLS2scDA_survey.tape"             
 
 SURVEY.  Output written on file: LCLS2scDA_survey.tape
 
                   BEAM, ENERGY=Ei                                                             
       730         USE, SC_DASELi                                                              
 
 ENUSE.   New beam line expanded: SC_DASELI
 
                   PRINT, FULL                                                                 
                   TWISS, SAVE, BETA0=TWSSi, TAPE="LCLS2scDA_twiss.tape" !, &                  
 
 TBCREA.  ## Warning ## Table buffer "TWISS" already exists --- previous version deleted.
 
 
 TWBTGO.  ## Warning ## TWISS found transverse coupling for delta(p)/p =    0.000000
          Please use the COUPLE option.
 
 
 TWBTGO.  ## Warning ## TWISS uses the RF system and synchrotron radiation only to find the closed orbit.
          for optical calculations it ignores both.
 
 
 TWISS.   Lattice functions written on file: LCLS2scDA_twiss.tape
 
 
 TWBTSV.  Lattice functions saved in table: TWISS
 
                  !  RTAPE="LCLS2scDA_rmat.tape"                                               
                   PLOT, TABLE=TWISS, HAXIS=S, VAXIS=ENERGY, VMIN=0, VMAX=5, &                 
       735           STYLE=100, SPLINE, RANGE=BEAM0/ENDBSYA_2, FILE="LCLS2scDA", &             
                     TITLE="SC-linac to DASEL"                                                 
                   PLOT, TABLE=TWISS, HAXIS=S, VAXIS=rBETX,rBETY, &                            
                     STYLE=100, SPLINE, RANGE=BEAM0/ENDBSYA_2, FILE="LCLS2scDA", &             
                     TITLE="SC-linac to DASEL"                                                 
       740         PLOT, TABLE=TWISS, HAXIS=S, VAXIS=DX,DY, &                                  
                     STYLE=100, SPLINE, RANGE=BEAM0/ENDBSYA_2, FILE="LCLS2scDA", &             
                     TITLE="SC-linac to DASEL"                                                 
                !ENDCOMMENT                                                                    
                                                                                               
       745     ! ------------------------------------------------------------------------------
               ! SURVEY in BSY coordinates (from start of spreader)                            
               ! ------------------------------------------------------------------------------
                                                                                               
               ! SXR                                                                           
       750                                                                                     
                !COMMENT                                                                       
                   ASSIGN, PRINT="BSY-LCLS2scS.print"                                          
 
 FLASSI.  Closing PRINT file: LCLS2scDA.print
 
                   BEAM, ENERGY=Ef                                                             
                   SET, SETSP, SETSPs ; SET, SETCUS, CUSOFF                                    
       755         USE, BSYLCLS2scS                                                            
 
 ENUSE.   New beam line expanded: BSYLCLS2SCS
 
                   PRINT, FULL                                                                 
                   SURVEY, X0=Xf, Y0=Yf, Z0=Zf, THETA0=THETAf, PHI0=PHIf, PSI0=PSIf, &         
                     TAPE="BSY-LCLS2scS_survey.tape"                                           
 
 SURVEY.  Output written on file: BSY-LCLS2scS_survey.tape
 
                !ENDCOMMENT                                                                    
       760                                                                                     
               ! ------------------------------------------------------------------------------
                                                                                               
               ! SXR safety dump                                                               
                                                                                               
       765      !COMMENT                                                                       
                   ASSIGN, PRINT="BSY-LCLS2scSS.print"                                         
 
 FLASSI.  Closing PRINT file: BSY-LCLS2scS.print
 
                   BEAM, ENERGY=Ef                                                             
                   SET, SETSP, SETSPs ; SET, SETCUS, CUSOFF                                    
                   USE, BSYLCLS2scSS                                                           
 
 ENUSE.   New beam line expanded: BSYLCLS2SCSS
 
       770         PRINT, FULL                                                                 
                   SURVEY, X0=Xf, Y0=Yf, Z0=Zf, THETA0=THETAf, PHI0=PHIf, PSI0=PSIf, &         
                     TAPE="BSY-LCLS2scSS_survey.tape"                                          
 
 SURVEY.  Output written on file: BSY-LCLS2scSS_survey.tape
 
                !ENDCOMMENT                                                                    
                                                                                               
       775     ! ------------------------------------------------------------------------------
                                                                                               
               ! SXR 2_X !"2.X"                                                                
                                                                                               
                !COMMENT                                                                       
       780         ASSIGN, PRINT="BSY-LCLS2scS2_X.print"                                       
 
 FLASSI.  Closing PRINT file: BSY-LCLS2scSS.print
 
                   BEAM, ENERGY=Ef                                                             
                   SET, SETSP, SETSPs ; SET, SETCUS, CUSOFF                                    
                   USE, BSYLCLS2scS2_X                                                         
 
 ENUSE.   New beam line expanded: BSYLCLS2SCS2_X
 
                   PRINT, FULL                                                                 
       785         SURVEY, X0=Xf, Y0=Yf, Z0=Zf, THETA0=THETAf, PHI0=PHIf, PSI0=PSIf, &         
                     TAPE="BSY-LCLS2scS2_X_survey.tape"                                        
 
 SURVEY.  Output written on file: BSY-LCLS2scS2_X_survey.tape
 
                !ENDCOMMENT                                                                    
                                                                                               
               ! ------------------------------------------------------------------------------
       790                                                                                     
               ! SXR TXI                                                                       
                                                                                               
                !COMMENT                                                                       
                   ASSIGN, PRINT="BSY-LCLS2scSTXI.print"                                       
 
 FLASSI.  Closing PRINT file: BSY-LCLS2scS2_X.print
 
       795         BEAM, ENERGY=Ef                                                             
                   SET, SETSP, SETSPs ; SET, SETCUS, CUSOFF                                    
                   USE, BSYLCLS2scSTXI                                                         
 
 ENUSE.   New beam line expanded: BSYLCLS2SCSTXI
 
                   PRINT, FULL                                                                 
                   SURVEY, X0=Xf, Y0=Yf, Z0=Zf, THETA0=THETAf, PHI0=PHIf, PSI0=PSIf, &         
       800           TAPE="BSY-LCLS2scSTXI_survey.tape"                                        
 
 SURVEY.  Output written on file: BSY-LCLS2scSTXI_survey.tape
 
                !ENDCOMMENT                                                                    
                                                                                               
               ! ------------------------------------------------------------------------------
                                                                                               
       805     ! SXR TMO                                                                       
                                                                                               
                !COMMENT                                                                       
                   ASSIGN, PRINT="BSY-LCLS2scSTMO.print"                                       
 
 FLASSI.  Closing PRINT file: BSY-LCLS2scSTXI.print
 
                   BEAM, ENERGY=Ef                                                             
       810         SET, SETSP, SETSPs ; SET, SETCUS, CUSOFF                                    
                   USE, BSYLCLS2scSTMO                                                         
 
 ENUSE.   New beam line expanded: BSYLCLS2SCSTMO
 
                   PRINT, FULL                                                                 
                   SURVEY, X0=Xf, Y0=Yf, Z0=Zf, THETA0=THETAf, PHI0=PHIf, PSI0=PSIf, &         
                     TAPE="BSY-LCLS2scSTMO_survey.tape"                                        
 
 SURVEY.  Output written on file: BSY-LCLS2scSTMO_survey.tape
 
       815      !ENDCOMMENT                                                                    
                                                                                               
               ! ------------------------------------------------------------------------------
                                                                                               
               ! HXR                                                                           
       820                                                                                     
                !COMMENT                                                                       
                   ASSIGN, PRINT="BSY-LCLS2scH.print"                                          
 
 FLASSI.  Closing PRINT file: BSY-LCLS2scSTMO.print
 
                   BEAM, ENERGY=Ef                                                             
                   SET, SETSP, SETSPh                                                          
       825         USE, BSYLCLS2scH                                                            
 
 ENUSE.   New beam line expanded: BSYLCLS2SCH
 
                   PRINT, FULL                                                                 
                   SURVEY, X0=Xf, Y0=Yf, Z0=Zf, THETA0=THETAf, PHI0=PHIf, PSI0=PSIf, &         
                     TAPE="BSY-LCLS2scH_survey.tape"                                           
 
 SURVEY.  Output written on file: BSY-LCLS2scH_survey.tape
 
                !ENDCOMMENT                                                                    
       830                                                                                     
               ! ------------------------------------------------------------------------------
                                                                                               
               ! BSY dump                                                                      
                                                                                               
       835      !COMMENT                                                                       
                   ASSIGN, PRINT="BSY-LCLS2scD.print"                                          
 
 FLASSI.  Closing PRINT file: BSY-LCLS2scH.print
 
                   BEAM, ENERGY=Ef                                                             
                   SET, SETSP, SETSPd ; SET, SETDA, DAOFF                                      
                   USE, BSYLCLS2scD                                                            
 
 ENUSE.   New beam line expanded: BSYLCLS2SCD
 
       840         PRINT, FULL                                                                 
                   SURVEY, X0=Xf, Y0=Yf, Z0=Zf, THETA0=THETAf, PHI0=PHIf, PSI0=PSIf, &         
                     TAPE="BSY-LCLS2scD_survey.tape"                                           
 
 SURVEY.  Output written on file: BSY-LCLS2scD_survey.tape
 
                !ENDCOMMENT                                                                    
                                                                                               
       845     ! ------------------------------------------------------------------------------
                                                                                               
               ! DASEL (a.k.a. S30XL, LESA)                                                    
                                                                                               
                !COMMENT                                                                       
       850         ASSIGN, PRINT="BSY-LCLS2scDA.print"                                         
 
 FLASSI.  Closing PRINT file: BSY-LCLS2scD.print
 
                   BEAM, ENERGY=Ef                                                             
                   SET, SETSP, SETSPd ; SET, SETDA, DAON                                       
                   SETK2scDA                                                                   
                   USE, BSYLCLS2scDA                                                           
 
 ENUSE.   New beam line expanded: BSYLCLS2SCDA
 
       855         PRINT, FULL                                                                 
                   SURVEY, X0=Xf, Y0=Yf, Z0=Zf, THETA0=THETAf, PHI0=PHIf, PSI0=PSIf, &         
                     TAPE="BSY-LCLS2scDA_survey.tape"                                          
 
 SURVEY.  Output written on file: BSY-LCLS2scDA_survey.tape
 
                !ENDCOMMENT                                                                    
                                                                                               
       860     ! ==============================================================================
                                                                                               
               ! Twiss plots                                                                   
                                                                                               
                !COMMENT                                                                       
       865         ASSIGN, PRINT="LCLS2sc.print"                                               
 
 FLASSI.  Closing PRINT file: BSY-LCLS2scDA.print
 
                                                                                               
                 ! Cathode to BEAM0                                                            
                                                                                               
                   BEAM, ENERGY=E0                                                             
       870         USE, (GUN,L0)                                                               
 
 ENUSE.   New beam line expanded: *LIN.01*
 
                   PRINT, FULL                                                                 
                   TWISS, SAVE, COUPLE, BETA0=TWSS0                                            
 
 TBCREA.  ## Warning ## Table buffer "TWISS" already exists --- previous version deleted.
 
 
 TWCPGO.  ## Warning ## TWISS uses the RF system and synchrotron radiation only to find the closed orbit.
          for optical calculations it ignores both.
 
 
 TWBTSV.  Lattice functions saved in table: TWISS
 
                   PLOT, TABLE=TWISS, HAXIS=S, VAXIS=ENERGY, VMIN=0, VMAX=0.12, &              
                     COLOUR=100, -SPLINE, RANGE=CATHODEB/ENDL0B, FILE="LCLS2sc_color", &       
       875           TITLE="GUNB + L0B"                                                        
                   PLOT, TABLE=TWISS, HAXIS=S, VAXIS=BETX,BETY, VMIN=0, VMAX=20, &             
                     COLOUR=100, -SPLINE, RANGE=CATHODEB/ENDL0B, FILE="LCLS2sc_color", &       
                     TITLE="GUNB + L0B"                                                        
                                                                                               
       880       ! BEAM0 to SXR Main Dump                                                      
                                                                                               
                   BEAM, ENERGY=Ei                                                             
                   SET, SETSP, SETSPs ; SET, SETCUS, CUSOFF                                    
                   USE, SC_SXRi                                                                
 
 ENUSE.   Beam line re-expanded: SC_SXRI
 
       885         TWISS, SAVE, BETA0=TWSSi                                                    
 
 TBCREA.  ## Warning ## Table buffer "TWISS" already exists --- previous version deleted.
 
 
 TWBTGO.  ## Warning ## TWISS found transverse coupling for delta(p)/p =    0.000000
          Please use the COUPLE option.
 
 
 TWBTGO.  ## Warning ## TWISS uses the RF system and synchrotron radiation only to find the closed orbit.
          for optical calculations it ignores both.
 
 
 TWBTSV.  Lattice functions saved in table: TWISS
 
                   PLOT, TABLE=TWISS, HAXIS=S, VAXIS=ENERGY, VMIN=0, &                         
                     COLOUR=100, SPLINE, RANGE=BEAM0/ENDL1B, FILE="LCLS2sc_color", &           
                     TITLE="Laser Heater + Coll0 + L1B"                                        
                   PLOT, TABLE=TWISS, HAXIS=S, VAXIS1=BETX,BETY, VAXIS2=DX,DY, &               
       890           COLOUR=100, SPLINE, RANGE=BEAM0/ENDL1B, FILE="LCLS2sc_color", &           
                     TITLE="Laser Heater + Coll0 + L1B"                                        
                   PLOT, TABLE=TWISS, HAXIS=S, VAXIS1=BETX,BETY, VAXIS2=DX,DY, &               
                     COLOUR=100, SPLINE, RANGE=BEGBC1B/ENDCOL1, FILE="LCLS2sc_color", &        
                     TITLE="BC1B + Coll1"                                                      
       895         PLOT, TABLE=TWISS, HAXIS=S, VAXIS=ENERGY, VMIN=0, &                         
                     COLOUR=100, SPLINE, RANGE=BEGL2B/ENDL2B, FILE="LCLS2sc_color", &          
                     TITLE="L2B"                                                               
                   PLOT, TABLE=TWISS, HAXIS=S, VAXIS=BETX,BETY, &                              
                     COLOUR=100, SPLINE, RANGE=BEGL2B/ENDL2B, FILE="LCLS2sc_color", &          
       900           TITLE="L2B"                                                               
                   PLOT, TABLE=TWISS, HAXIS=S, VAXIS1=BETX,BETY, VAXIS2=DX,DY, &               
                     COLOUR=100, SPLINE, RANGE=BEGBC2B/ENDEMIT2, FILE="LCLS2sc_color", &       
                     TITLE="BC2B + Emit2"                                                      
                   PLOT, TABLE=TWISS, HAXIS=S, VAXIS=ENERGY, VMIN=0, VMAX=5, &                 
       905           COLOUR=100, SPLINE, RANGE=BEGL3B/ENDEXT, FILE="LCLS2sc_color", &          
                     TITLE="L3B + Extension"                                                   
                   PLOT, TABLE=TWISS, HAXIS=S, VAXIS=BETX,BETY, &                              
                     COLOUR=100, SPLINE, RANGE=BEGL3B/ENDEXT, FILE="LCLS2sc_color", &          
                     TITLE="L3B + Extension"                                                   
       910         PLOT, TABLE=TWISS, HAXIS=S, VAXIS1=BETX,BETY, VAXIS2=DX,DY, &               
                     COLOUR=100, SPLINE, RANGE=BEGDOG/MQBP13, FILE="LCLS2sc_color", &          
                     TITLE="Dogleg + Match to Bypass + NIT Extension"                          
                   PLOT, TABLE=TWISS, HAXIS=S, VAXIS=BETX,BETY, &                              
                     COLOUR=100, SPLINE, RANGE=MQBP13/ENDSPD_1, FILE="LCLS2sc_color", &        
       915           TITLE="Bypass Line to Spreader"                                           
                   PLOT, TABLE=TWISS, HAXIS=S, VAXIS1=BETX,BETY, VAXIS2=DX,DY, &               
                     COLOUR=100, SPLINE, RANGE=BEGSPS/ENDLTUS, FILE="LCLS2sc_color", &         
                     TITLE="Spreader + LTUS"                                                   
                   PLOT, TABLE=TWISS, HAXIS=S, VAXIS1=BETX,BETY, VAXIS2=DX,DY, &               
       920           COLOUR=100, SPLINE, RANGE=BEGUNDS/DUMPFACEB, FILE="LCLS2sc_color", &      
                     TITLE="SXR Undulator to Dump"                                             
                                                                                               
                 ! SXR Safety Dump                                                             
                                                                                               
       925         BEAM, ENERGY=Ei                                                             
                   SET, SETSP, SETSPs ; SET, SETCUS, CUSOFF                                    
                   USE, SC_SFTSi                                                               
 
 ENUSE.   New beam line expanded: SC_SFTSI
 
                   TWISS, SAVE, BETA0=TWSSi                                                    
 
 TBCREA.  ## Warning ## Table buffer "TWISS" already exists --- previous version deleted.
 
 
 TWBTGO.  ## Warning ## TWISS found transverse coupling for delta(p)/p =    0.000000
          Please use the COUPLE option.
 
 
 TWBTGO.  ## Warning ## TWISS uses the RF system and synchrotron radiation only to find the closed orbit.
          for optical calculations it ignores both.
 
 
 TWBTSV.  Lattice functions saved in table: TWISS
 
                   PLOT, TABLE=TWISS, HAXIS=S, VAXIS1=BETX,BETY, VAXIS2=DX,DY, &               
       930           COLOUR=100, SPLINE, RANGE=BEGSFTS_1/SFTDMPB, FILE="LCLS2sc_color", &      
                     TITLE="SXR Safety Dump"                                                   
                                                                                               
                 ! Spreader to HXR Main Dump                                                   
                                                                                               
       935         BEAM, ENERGY=Ei                                                             
                   SET, SETSP, SETSPh                                                          
                   USE, SC_HXRi                                                                
 
 ENUSE.   Beam line re-expanded: SC_HXRI
 
                   TWISS, SAVE, BETA0=TWSSi                                                    
 
 TBCREA.  ## Warning ## Table buffer "TWISS" already exists --- previous version deleted.
 
 
 TWBTGO.  ## Warning ## TWISS found transverse coupling for delta(p)/p =    0.000000
          Please use the COUPLE option.
 
 
 TWBTGO.  ## Warning ## TWISS uses the RF system and synchrotron radiation only to find the closed orbit.
          for optical calculations it ignores both.
 
 
 TWBTSV.  Lattice functions saved in table: TWISS
 
                   PLOT, TABLE=TWISS, HAXIS=S, VAXIS1=BETX,BETY, VAXIS2=DX,DY, &               
       940           COLOUR=100, SPLINE, RANGE=BEGSPH/ENDLTUH, FILE="LCLS2sc_color", &         
                     TITLE="Spreader + LTUH"                                                   
                   PLOT, TABLE=TWISS, HAXIS=S, VAXIS1=BETX,BETY, VAXIS2=DX,DY, &               
                     COLOUR=100, SPLINE, RANGE=BEGUNDH/DUMPFACE, FILE="LCLS2sc_color", &       
                     TITLE="HXR Undulator to Dump"                                             
       945                                                                                     
                 ! Spreader to BSY Dump                                                        
                                                                                               
                   BEAM, ENERGY=Ei                                                             
                   SET, SETSP, SETSPd ; SET, SETDA, DAOFF                                      
       950         USE, SC_BSYDi                                                               
 
 ENUSE.   Beam line re-expanded: SC_BSYDI
 
                   TWISS, SAVE, BETA0=TWSSi                                                    
 
 TBCREA.  ## Warning ## Table buffer "TWISS" already exists --- previous version deleted.
 
 
 TWBTGO.  ## Warning ## TWISS found transverse coupling for delta(p)/p =    0.000000
          Please use the COUPLE option.
 
 
 TWBTGO.  ## Warning ## TWISS uses the RF system and synchrotron radiation only to find the closed orbit.
          for optical calculations it ignores both.
 
 
 TWBTSV.  Lattice functions saved in table: TWISS
 
                   PLOT, TABLE=TWISS, HAXIS=S, VAXIS1=BETX,BETY, VAXIS2=DX,DY, &               
                     COLOUR=100, SPLINE, RANGE=BEGSPD_1/DUMPBSY, FILE="LCLS2sc_color", &       
                     TITLE="Spreader to BSY Dump"                                              
       955                                                                                     
                 ! DIAG0                                                                       
                                                                                               
                   BEAM, ENERGY=Ei                                                             
                   USE, SC_DIAG0i                                                              
 
 ENUSE.   Beam line re-expanded: SC_DIAG0I
 
       960         TWISS, SAVE, BETA0=TWSSi                                                    
 
 TBCREA.  ## Warning ## Table buffer "TWISS" already exists --- previous version deleted.
 
 
 TWBTGO.  ## Warning ## TWISS found transverse coupling for delta(p)/p =    0.000000
          Please use the COUPLE option.
 
 
 TWBTSV.  Lattice functions saved in table: TWISS
 
                   PLOT, TABLE=TWISS, HAXIS=S, VAXIS1=BETX,BETY, VAXIS2=DX,DY, &               
                     COLOUR=100, SPLINE, RANGE=BEGDIAG0/ENDDIAG0, FILE="LCLS2sc_color", &      
                     TITLE="DIAG0"                                                             
                                                                                               
       965       ! DASEL (deferred)                                                            
                                                                                               
                   BEAM, ENERGY=Ei                                                             
                   SET, SETSP, SETSPd ; SET, SETDA, DAON                                       
                   SETK2scDA                                                                   
       970         USE, SC_DASELi                                                              
 
 ENUSE.   Beam line re-expanded: SC_DASELI
 
                   TWISS, SAVE, BETA0=TWSSi                                                    
 
 TBCREA.  ## Warning ## Table buffer "TWISS" already exists --- previous version deleted.
 
 
 TWBTGO.  ## Warning ## TWISS found transverse coupling for delta(p)/p =    0.000000
          Please use the COUPLE option.
 
 
 TWBTGO.  ## Warning ## TWISS uses the RF system and synchrotron radiation only to find the closed orbit.
          for optical calculations it ignores both.
 
 
 TWBTSV.  Lattice functions saved in table: TWISS
 
                   PLOT, TABLE=TWISS, HAXIS=S, VAXIS1=rBETX,rBETY, VAXIS2=DX,DY, &             
                     COLOUR=100, SPLINE, RANGE=BEGDASEL/ENDBSYA_2, FILE="LCLS2sc_color", &     
                     TITLE="DASEL to A-line"                                                   
       975      !ENDCOMMENT                                                                    
                                                                                               
               ! ------------------------------------------------------------------------------
                                                                                               
                !CALL "LCLS2sc_area_plots.mad8"                                                
       980                                                                                     
               ! ------------------------------------------------------------------------------
                                                                                               
                 STOP                                                                          
 
 ZEND.       33 Warning messages,
              0 Error messages.
                MAD terminated on 12/04/24 at 11.23.52
 

 MZEND.   Usage statistics for  1 dynamic stores.

   Map of store  0 / /     
   ------------------------

   Division                                        Number of times
              Kind                Max-size                Garb-coll.
            Mode    Position      used   allowed   Wiped  user  auto Pushd Redcd

    1 QDIV1    0 1         9    121725  56000006      36     0     0    68     0
    2 QDIV2    1 1  55999606   6727356  56000006       0     0     0     0     0
   20 system   1 8  56000006       111  56000006       0     0     0     0     0
