FLASSI. ECHO stream rerouted to file: LCLS.echo FLASSI. PRINT stream rerouted to file: LCLS.print Value of expression "S100_PITCH" is: -0.476E-2 Value of expression "S100_HEIGHT" is: 77.64368 Value of expression "Z_S100_UNDH" is: 5.83E2 Value of expression "R_EARTH" is: 6.372508025E6 ENBEAM. ## Warning ## Redundant data on BEAM --- SIGE will be ignored. Value of expression "GRADL1" is: 14.713522740252 Value of expression "GRADL2" is: 15.919518739441 Value of expression "GRADL3" is: 16.707051280672 Value of expression "LBXG" is: 0.291216912342 Value of expression "2.0*AVB" is: -0.466851437217E-2 Value of expression "LUNDH" is: 1.665 Value of expression "LBRS" is: 0.10174 Value of expression "LBRL" is: 0.52974 Value of expression "KQUND" is: 0.377081114616E-3 Value of expression "GAMF" is: 2.669280839773E4 Value of expression "KQF" is: 0.845343036326 Value of expression "KQD" is: -0.845343036326 Value of expression "KQU33" is: -0.304403258403 Value of expression "USEGH[RM(1,2)]" is: 1.665 Value of expression "LUNDH" is: 1.665 Value of expression "USEGH[RM(3,3)]" is: 0.999477368684 Value of expression "COS(LUNDH*SQRT(KQUND))" is: 0.999477368684 Value of expression "USEGH[RM(3,4)]" is: 1.664709929512 Value of expression "SIN(LUNDH*SQRT(KQUND))/SQRT(KQUND)" is: 1.664709929512 Value of expression "USEGH[RM(4,3)]" is: -0.627730675733E-3 Value of expression "-SIN(LUNDH*SQRT(KQUND))*SQRT(KQUND)" is: & -0.627730675733E-3 Value of expression "USEGH[RM(4,4)]" is: 0.999477368684 Value of expression "COS(LUNDH*SQRT(KQUND))" is: 0.999477368684 Value of expression "GAMI" is: 2.641883529101E2 Value of expression "KQLH" is: 0.186107703585 Value of expression "K_UND" is: 1.385239068724 Value of expression "LH_UND[RM(1,2)]" is: 0.2531315 Value of expression "LHUN/2.0" is: 0.2531315 Value of expression "LH_UND[RM(3,3)]" is: 0.994043445516 Value of expression "COS(LHUN/2.0*SQRT(KQLH))" is: 0.994043445516 Value of expression "LH_UND[RM(3,4)]" is: 0.252628702943 Value of expression "SIN(LHUN/2.0*SQRT(KQLH))/SQRT(KQLH)" is: 0.252628702943 Value of expression "LH_UND[RM(4,3)]" is: -0.047016147764 Value of expression "-SIN(LHUN/2.0*SQRT(KQLH))*SQRT(KQLH)" is: -0.047016147764 Value of expression "LH_UND[RM(4,4)]" is: 0.994043445516 Value of expression "COS(LHUN/2.0*SQRT(KQLH))" is: 0.994043445516 Value of expression "BMIN0" is: 1.104891953306 FLCALL. Now reading file: LCLS_L1.xsif FLCALL. Now reading file: standard input FLCALL. Now reading file: LCLS_L2.xsif FLCALL. Now reading file: standard input FLCALL. Now reading file: LCLS_L3.xsif FLCALL. Now reading file: standard input ! ------------------------------------------------------------------------------ ! output files for RDB generation 5045 ! ------------------------------------------------------------------------------ !CALL, FILENAME="misc/makeSymbols.mad8" ! ------------------------------------------------------------------------------ 5050 ! matching ! ------------------------------------------------------------------------------ BET11 := 10.090395936353 BET12 := 2.470673595371 5055 BET21 := 43.876719659503 BET22 := 16.019619746515 !BET31 := 53.481287866029 !BET32 := 35.468087644847 !BET33 := 29.55797372867 5060 !BET34 := 63.601589300188 BET31 := 61.868125327071 BET32 := 36.40742728964 BET33 := 36.353377790534 BET34 := 61.956709274457 5065 !BET31 := 69.818359882868 ! for WS28 45 deg/wire !BET32 := 37.0062095289 !BET33 := 42.5680425597 !BET34 := 60.952049693321 5070 COMMENT ASSIGN, PRINT="LCLS.fit" COMMENT SET, MU_L1, 75/360 5075 ML1c USE, L1c SAVEBETA, TWSSL1, QFL1[1] TWISS SET, BET11, TWSSL1[BETX] 5080 SET, BET12, TWSSL1[BETY] VALUE, BET11,BET12 ENDCOMMENT COMMENT 5085 SET, MU_L2, 55.500/360 ML2c USE, L2c SAVEBETA, TWSSL2, QFL2[1] TWISS 5090 SET, BET21, TWSSL2[BETX] SET, BET22, TWSSL2[BETY] VALUE, BET21,BET22 ENDCOMMENT 5095 COMMENT !SET, MUX_L3, 36.175/360 !July 13, 2005 - set for n*360 deg BX24A to BX31A SET, MUX_L3, 30.175/360 !July 13, 2008 - set for best WS28 45-deg mux pha SET, MUY_L3, 30.130/360 !July 13, 2005 - set for 3*90 deg TCAV3[1] to OTR ML3c 5100 USE, L3c SAVEBETA, TWSSFL3, QFL3[1] SAVEBETA, TWSSDL3, QDL3[1] TWISS SET, BET31, TWSSFL3[BETX] 5105 SET, BET32, TWSSFL3[BETY] SET, BET33, TWSSDL3[BETX] SET, BET34, TWSSDL3[BETY] VALUE, BET31,BET32,BET33,BET34 ENDCOMMENT 5110 MTWSSC MGSPEC MBChETA MBSYS 5115 MED0 MED2L1 MSPEC MBC1R56 MBC1e 5120 !**!L2K1in !use ONLY when you're changing L2 phase advance per cell MBC1L2 ML22 ML23 ML24 5125 !L2K1out MBC2R56 MBC2i !**!L3K1in !use ONLY when you're changing L3 phase advance per cell MBC2L3 5130 ML26 ML27 ML28 ML29 ML30 5135 !L3K1out MVBEND MDL2M ML3DL2 MDL2B 5140 MDL2T MECELL MED2P MED2DL2 MUNDP 5145 MUNDM MDUMP MHXRSS ENDCOMMENT 5150 ! ------------------------------------------------------------------------------ ! Twiss plots, etc. (Full Machine) ! ------------------------------------------------------------------------------ ASSIGN, PRINT="LCLS24OCT13.print" FLASSI. Closing PRINT file: LCLS.print FLASSI. PRINT stream rerouted to file: LCLS24OCT13.print 5155 !COMMENT BEAM, ENERGY=E00 USE, (GUNL0a,L0b,LCLS) ENUSE. New beam line expanded: *LIN.21* TWISS, BETA0=TWSSC, SAVE, TAPE="LCLS_twiss.tape", RTAPE="LCLS_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: LCLS_twiss.tape TWISS. Effective R-matrices written on file: LCLS_rmat.tape TWBTSV. Lattice functions saved in table: TWISS 5160 PLOT, TABLE=TWISS, HAXIS=S, VAXIS=BETX,BETY, & STYLE=100, SPLINE=.T., FILE="LCLS", & RANGE=DL1beg/#E, TITLE="Cathode to Main Dump" PLOT, TABLE=TWISS, HAXIS=S, VAXIS1=BETX,BETY, VAXIS2=DX, & STYLE=100, SPLINE=.F., FILE="LCLS", & 5165 RANGE=CATHODE/DL1beg, TITLE="L0-to-DL1 dog-leg" PLOT, TABLE=TWISS, HAXIS=S, VAXIS1=BETX,BETY, VAXIS2=DX, & STYLE=100, SPLINE=.T., FILE="LCLS", & RANGE=LHbeg/LHend, TITLE="Laser-Heater" PLOT, TABLE=TWISS, HAXIS=S, VAXIS1=BETX,BETY, VAXIS2=DX, & 5170 STYLE=100, SPLINE=.T., FILE="LCLS", & RANGE=L0bBEG/DL1end, TITLE="L0-to-DL1 dog-leg" PLOT, TABLE=TWISS, HAXIS=S, VAXIS=BETX,BETY, & STYLE=100, SPLINE=.T., FILE="LCLS", & RANGE=L1beg/L1end, TITLE="L1-linac" 5175 PLOT, TABLE=TWISS, HAXIS=S, VAXIS1=BETX,BETY, VAXIS2=DX, & STYLE=100, SPLINE=.T., FILE="LCLS", & RANGE=BC1mrk/BC1fin, TITLE="BC1-chicane" PLOT, TABLE=TWISS, HAXIS=S, VAXIS=BETX,BETY, & STYLE=100, SPLINE=.T., FILE="LCLS", & 5180 RANGE=L2beg/L2end, TITLE="L2-linac" PLOT, TABLE=TWISS, HAXIS=S, VAXIS1=BETX,BETY, VAXIS2=DX, & STYLE=100, SPLINE=.T., FILE="LCLS", & RANGE=BPM24301/BPM25501, TITLE="BC2-chicane" !RANGE=BC2mrk/BC2fin, TITLE="BC2-chicane" 5185 PLOT, TABLE=TWISS, HAXIS=S, VAXIS=BETX,BETY, & STYLE=100, SPLINE=.T., FILE="LCLS", & RANGE=L3beg/L3end, TITLE="L3-linac" PLOT, TABLE=TWISS, HAXIS=S, VAXIS=BETX,BETY, & STYLE=100, SPLINE=.T., FILE="LCLS", & 5190 RANGE=BSYbeg/BSYend, TITLE="BSY" PLOT, TABLE=TWISS, HAXIS=S, VAXIS1=BETX,BETY, VAXIS2=DX,DY, & STYLE=100, SPLINE=.T., FILE="LCLS", & RANGE=MM1/MM2, TITLE="DL2-dogleg" PLOT, TABLE=TWISS, HAXIS=S, VAXIS=BETX,BETY, & 5195 STYLE=100, SPLINE=.T., FILE="LCLS", & RANGE=MM2/MM3, TITLE="Undulator emittance diagnostics" PLOT, TABLE=TWISS, HAXIS=S, VAXIS1=BETX,BETY, VAXIS2=DX,DY, & STYLE=100, SPLINE=.T., FILE="LCLS", & RANGE=BSYend/#E, TITLE="muon-plug-to-DUMP" 5200 PLOT, TABLE=TWISS, HAXIS=S, VAXIS1=BETX,BETY, VAXIS2=DX,DY, & STYLE=100, SPLINE=.T., FILE="LCLS", & RANGE=BSYend/MM1, TITLE="Vertical Bend System" PLOT, TABLE=TWISS, HAXIS=S, VAXIS=BETX,BETY, & STYLE=100, SPLINE=.T., FILE="LCLS", & 5205 RANGE=UNDSTART/UNDTERM, TITLE="undulator" PLOT, TABLE=TWISS, HAXIS=S, VAXIS1=BETX,BETY, VAXIS2=DX,DY, & STYLE=100, SPLINE=.T., FILE="LCLS", & RANGE=UEbeg/DMPend, TITLE="undulator exit and e- dump" !ENDCOMMENT 5210 COMMENT BEAM, ENERGY=E00 USE, (GUNL0a,L0b,LCLS) ENVELOPE, SIGMA0=SIGC, TAPE="LCLS_envelope.tape" 5215 ENDCOMMENT COMMENT BEAM, ENERGY=E00 USE, (GUNL0a,L0b,LCLS) 5220 SAVELINE, NAME="LSFEL", FILENAME="LCLS.saveline" ENDCOMMENT ! ============================================================================== ! standard output files 5225 ! ------------------------------------------------------------------------------ ! linac coordinates ! ------------------------------------------------------------------------------ ! Full Machine: cathode to dump 5230 ! ============================= ASSIGN, PRINT="LCLS.print" FLASSI. Closing PRINT file: LCLS24OCT13.print FLASSI. PRINT stream rerouted to file: LCLS.print BEAM, ENERGY=E00 USE, (GUNL0a,L0b,LCLS) ENUSE. New beam line expanded: *LIN.22* PRINT, FULL 5235 SURVEY, THETA0=ADL1, X0=Xi, Z0=Zi, TAPE="LCLS_survey.tape" SURVEY. Output written on file: LCLS_survey.tape TWISS, BETA0=TWSSC 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. ! Gun Spectrometer: cathode to 6 MeV spectrometer dump ! ==================================================== 5240 ASSIGN, PRINT="GSPEC.print" FLASSI. Closing PRINT file: LCLS.print FLASSI. PRINT stream rerouted to file: GSPEC.print BEAM, ENERGY=E00 USE, (GUNBXG,GSPEC) ENUSE. New beam line expanded: *LIN.23* PRINT, FULL SURVEY, THETA0=ADL1, X0=Xi, Z0=Zi, TAPE="GSPEC_survey.tape" SURVEY. Output written on file: GSPEC_survey.tape 5245 TWISS, BETA0=TWSSC, SAVE !, TAPE="GSPEC_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. TWBTSV. Lattice functions saved in table: TWISS PLOT, TABLE=TWISS, HAXIS=S, VAXIS1=BETX,BETY, VAXIS2=DX, & STYLE=100, SPLINE=.T., FILE="GSPEC", & RANGE=#S/#E, TITLE="Cathode through 6-MeV Gun Spectrometer" !PLOT, TABLE=TWISS, HAXIS=S, VAXIS1=BETX,BETY, VAXIS2=DX, & 5250 ! STYLE=100, SPLINE=.T., FILE="GSPEC", & ! RANGE=GSPECBEG/#E, TITLE="Gun spectrometer" !SAVELINE, NAME="LSGUN", FILENAME="GSPEC.saveline" ! 135 MeV Spectrometer: cathode to 135 MeV spectrometer dump 5255 ! ========================================================== ASSIGN, PRINT="SPEC.print" FLASSI. Closing PRINT file: GSPEC.print FLASSI. PRINT stream rerouted to file: SPEC.print BEAM, ENERGY=E00 USE, (GUNL0a,L0b,DL1A,SPECBL) ENUSE. New beam line expanded: *LIN.24* PRINT, FULL 5260 SURVEY, THETA0=ADL1, X0=Xi, Z0=Zi, TAPE="SPEC_survey.tape" SURVEY. Output written on file: SPEC_survey.tape TWISS, BETA0=TWSSC, SAVE !, TAPE="SPEC_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. TWBTSV. Lattice functions saved in table: TWISS PLOT, TABLE=TWISS, HAXIS=S, VAXIS1=BETX,BETY, VAXIS2=DX, & STYLE=100, SPLINE=.T., FILE="SPEC", & RANGE=DL1beg/#E, TITLE="Cathode through 135-MeV Spectrometer" 5265 PLOT, TABLE=TWISS, HAXIS=S, VAXIS1=BETX,BETY, VAXIS2=DX, & STYLE=100, SPLINE=.T., FILE="SPEC", & RANGE=SPECBEG/#E, TITLE="BXS Entrance to 135-MeV Spectrometer" !SAVELINE, NAME="LSINJ", FILENAME="SPEC.saveline" 5270 ! ------------------------------------------------------------------------------ ! special BSY survey coordinates including Y-pitch-down angle at Station-100 ! (NOTE: map onto alignment reference at QSM1 center) ! ------------------------------------------------------------------------------ 5275 ! get Twiss at beginning of BSY ASSIGN, PRINT="LCLSI.print" FLASSI. Closing PRINT file: SPEC.print FLASSI. PRINT stream rerouted to file: LCLSI.print BEAM, ENERGY=E00 USE, (GUNL0a,L0b,LCLS) ENUSE. New beam line expanded: *LIN.25* 5280 SAVEBETA, TBSY, BSYBEG TWISS, BETA0=TWSSC TWSBET. ## Warning ## Chromatic functions in BETA0 are zero. Use CHROM option to get non-zero values. 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. SET, TBSY[DX], 0 SET, TBSY[DPX], 0 SET, TBSY[DY], 0 5285 SET, TBSY[DPY], 0 ! BSY to dump ! =========== ASSIGN, PRINT="BSY-LCLS.print" FLASSI. Closing PRINT file: LCLSI.print FLASSI. PRINT stream rerouted to file: BSY-LCLS.print 5290 BEAM, ENERGY=Ef USE, (BSY,B12WAL,VBSYS,LTU,UND,UNDEXIT,DUMPLINE) ENUSE. New beam line expanded: *LIN.26* PRINT, FULL SURVEY, X0=Xf, Y0=Yf, Z0=Zf, THETA0=THETAf, PHI0=PHIf, PSI0=PSIf, & TAPE="BSY-LCLS_survey.tape" SURVEY. Output written on file: BSY-LCLS_survey.tape 5295 !TWISS, BETA0=TBSY ! BSY to 52-LINE ! ============== ASSIGN, PRINT="BSY-52LINE.print" FLASSI. Closing PRINT file: BSY-LCLS.print FLASSI. PRINT stream rerouted to file: BSY-52LINE.print 5300 BEAM, ENERGY=Ef USE, (BSY,B52LIN) ENUSE. New beam line expanded: *LIN.27* PRINT, FULL SURVEY, X0=Xf, Y0=Yf, Z0=Zf, THETA0=THETAf, PHI0=PHIf, PSI0=PSIf !, & ! TAPE="BSY-52LINE_survey.tape" 5305 TWISS, BETA0=TBSY, SAVE !, TAPE="BSY-52LINE_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. TWBTSV. Lattice functions saved in table: TWISS PLOT, TABLE=TWISS, HAXIS=S, VAXIS1=BETX,BETY, VAXIS2=DX, & STYLE=100, SPLINE=.T., FILE="BSY-52LINE", & RANGE=#S/#E, TITLE="50B1 to SL2" 5310 ! BSY to safety dump ! ================== ASSIGN, PRINT="BSY-SFTDMP.print" FLASSI. Closing PRINT file: BSY-52LINE.print FLASSI. PRINT stream rerouted to file: BSY-SFTDMP.print BEAM, ENERGY=Ef USE, (BSY,B12WAL,VBSYS,LTU,UND,UNDEXIT,PERMDUMP) ENUSE. New beam line expanded: *LIN.28* 5315 PRINT, FULL SURVEY, X0=Xf, Y0=Yf, Z0=Zf, THETA0=THETAf, PHI0=PHIf, PSI0=PSIf !, & ! TAPE="BSY-SFTDMP_survey.tape" TWISS, BETA0=TBSY, SAVE !, TAPE="BSY-SFTDMP_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. TWBTSV. Lattice functions saved in table: TWISS PLOT, TABLE=TWISS, HAXIS=S, VAXIS1=BETX,BETY, VAXIS2=DX, & 5320 STYLE=100, SPLINE=.T., FILE="BSY-SFTDMP", & RANGE=SFTBEG/#E, TITLE="Turned-off BYD1 to Safety Dump" ! ============================================================================== ! special cross-checks 5325 ! ------------------------------------------------------------------------------ COMMENT ! check horizontal phase advance between last bends of BC1 and BC2 5330 USE, (L0b,LCLS) SAVEBETA, TBC1, BX14A SAVEBETA, TBC2, BX24A TWISS, BETA0=TWSS0 5335 ! horizontal phase advance between BC1/BC2 CSR kicks (180 deg desired) VALUE, 360*(TBC2[MUX]-TBC1[MUX]-3) ENDCOMMENT 5340 ! ------------------------------------------------------------------------------ COMMENT 5345 ! check phase advance between wire-scanners WS21 through WS24 USE, (L0b,LCLS) SAVEBETA, TWS21, DWS21 SAVEBETA, TWS22, DWS22 5350 SAVEBETA, TWS23, DWS23 SAVEBETA, TWS24, DWS24 TWISS, BETA0=TWSS0 VALUE, 360*(TWS22[MUX]-TWS21[MUX]) 5355 VALUE, 360*(TWS23[MUX]-TWS22[MUX]) VALUE, 360*(TWS24[MUX]-TWS23[MUX]) VALUE, 360*(TWS22[MUY]-TWS21[MUY]) VALUE, 360*(TWS23[MUY]-TWS22[MUY]) VALUE, 360*(TWS24[MUY]-TWS23[MUY]) 5360 ENDCOMMENT ! ------------------------------------------------------------------------------ COMMENT 5365 ! check horizontal phase advance between last BC2 bend and center of first ! DL2 bend system and vertical phase advance between transverse deflecting ! cavity and OTR30 5370 USE, (L0b,LCLS) SAVEBETA, TBC2, BX24A SAVEBETA, TTCAV, TCAV3[1] SAVEBETA, TDL2, BX31A[1] SAVEBETA, TOTR30, OTR30 5375 TWISS, BETA0=TWSS0 ! horizontal phase advance between last BC2 bend and first bend of DL2 ! system (want 2N*pi, N=0,1,2,...) 5380 VALUE, 360*(TDL2[MUX]-TBC2[MUX]-3) ! vertical phase advance from transverse deflecting cavity to OTR30 (want ! (2N+1)*(pi/2), N=0,1,2,...) 5385 VALUE, 360*(TOTR30[MUY]-TTCAV[MUY]-3) ! twiss at OTR30, including horizontal eta/beta ratio VALUE, TOTR30[BETY],TOTR30[BETX],TOTR30[DX],TOTR30[DX]/TOTR30[BETX] 5390 ENDCOMMENT ! ------------------------------------------------------------------------------ 5395 STOP ZEND. 17 Warning messages, 0 Error messages. MAD terminated on 10/04/14 at 17.38.41