+++++++++++++++++++++++++++++++++++++++++++ + MAD-X 5.00.19 (64 bit, Darwin) + + DEBUG Version - use at own risk! + + Code Modification Date: 2012.12.11 + + Execution Time Stamp: 13.02.13 22.49.49 + +++++++++++++++++++++++++++++++++++++++++++ !---|----1----|----2----|----3----|----4----|----5----|----6----|----7----|---8; Option, warn,info; Title, "Matching chromaticity for beam1 and beam2 of the LHC 6.4 lattice with MADX"; !+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++; ! TARGET CHROMATICITY ; !+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++; QPRIME = 2.0; !---------------------------------------------------------------; ! CALL IN SELECTION, SEQUENCE and OPTICS FILES; !---------------------------------------------------------------; option, -echo,-warn; Beam, particle = proton, sequence=lhcb1, energy = 450.0, NPART=1.05E11, sige= 4.5e-4 ; Beam, particle = proton, sequence=lhcb2, energy = 450.0, bv = -1, NPART=1.05E11, sige= 4.5e-4; !<<<< ! the 'bv' parameter indicates that beam2 rotates counter-clockwise ! Select beam1: USE, period=lhcb1; ! Generate a TWISS table: select, flag=twiss, clear; select, flag=twiss, pattern="IP\.*",column=name,s,betx,bety; TWISS,sequence=lhcb1,file=twiss.b1.data; enter Twiss module iteration: 1 error: 8.714678E-04 deltap: 0.000000E+00 orbit: -4.929560E-04 8.092901E-06 2.107938E-06 1.445684E-04 0.000000E+00 0.000000E+00 iteration: 2 error: 2.297756E-05 deltap: 0.000000E+00 orbit: -4.999995E-04 -1.916166E-09 -1.671521E-10 1.424984E-04 0.000000E+00 0.000000E+00 iteration: 3 error: 2.548596E-09 deltap: 0.000000E+00 orbit: -4.999999E-04 1.982147E-10 8.002226E-12 1.425000E-04 0.000000E+00 0.000000E+00 ++++++ table: summ length orbit5 alfa gammatr 26658.8832 -0 0.0003213813572 55.78143208 q1 dq1 betxmax dxmax 64.3100005 1.918738979 4402.810724 2.890204757 dxrms xcomax xcorms q2 1.399969148 0.01141004839 0.0008146081283 59.32000005 dq2 betymax dymax dyrms 2.145014314 4402.812514 1.318436553 0.1774138225 ycomax ycorms deltap synch_1 0.006931834736 0.0004834742802 0 0 synch_2 synch_3 synch_4 synch_5 0 0 0 0 ! Select beam2: USE, period=lhcb2; ! Generate a TWISS table: select, flag=twiss, clear; select, flag=twiss, pattern="IP\.*",column=name,s,betx,bety; TWISS,sequence=lhcb2,file=twiss.b2.data; enter Twiss module iteration: 1 error: 8.566004E-04 deltap: 0.000000E+00 orbit: 4.913943E-04 3.461224E-08 -3.315069E-06 -1.463914E-04 0.000000E+00 0.000000E+00 iteration: 2 error: 1.450407E-05 deltap: 0.000000E+00 orbit: 4.999985E-04 2.170721E-11 1.228125E-09 -1.424999E-04 0.000000E+00 0.000000E+00 iteration: 3 error: 2.922608E-09 deltap: 0.000000E+00 orbit: 5.000001E-04 2.337570E-10 1.228120E-12 -1.425000E-04 0.000000E+00 0.000000E+00 ++++++ table: summ length orbit5 alfa gammatr 26658.8832 -0 0.0003209654154 55.81756419 q1 dq1 betxmax dxmax 64.30999976 2.039009897 4402.8161 3.234265837 dxrms xcomax xcorms q2 1.414527448 0.01141004574 0.0008241939467 59.32000003 dq2 betymax dymax dyrms 1.906398927 4402.813069 1.112621306 0.1830755709 ycomax ycorms deltap synch_1 0.006931835558 0.0004842285896 0 0 synch_2 synch_3 synch_4 synch_5 0 0 0 0 ! Match the chromaticity: match,sequence=lhcb1,lhcb2; START MATCHING number of sequences: 2 sequence name: lhcb1 sequence name: lhcb2 vary, name=KSF.B1, step=0.00001; vary, name=KSD.B1, step=0.00001; vary, name=KSF.B2, step=0.00001; vary, name=KSD.B2, step=0.00001; global,sequence=lhcb1,DQ1=QPRIME; global,sequence=lhcb1,DQ2=QPRIME; global,sequence=lhcb2,DQ1=QPRIME; global,sequence=lhcb2,DQ2=QPRIME; Lmdif, calls=10, tolerance=1.0e-21; number of variables: 4 user given constraints: 1 total constraints: 4 START LMDIF: Initial Penalty Function = 0.37915438E-01 call: 6 Penalty function = 0.22219094E-21 ++++++++++ LMDIF ended: converged successfully call: 6 Penalty function = 0.22219094E-21 endmatch; MATCH SUMMARY Node_Name Constraint Type Target Value Final Value Penalty -------------------------------------------------------------------------------------------------- Global constraint: dq1 4 2.00000000E+00 2.00000000E+00 1.91472966E-22 Global constraint: dq2 4 2.00000000E+00 2.00000000E+00 2.56908296E-23 Global constraint: dq1 4 2.00000000E+00 2.00000000E+00 1.38233206E-24 Global constraint: dq2 4 2.00000000E+00 2.00000000E+00 3.64481368E-24 Final Penalty Function = 2.22190941e-22 Variable Final Value Initial Value Lower Limit Upper Limit -------------------------------------------------------------------------------- ksf.b1 1.03517e-01 1.03481e-01 -1.00000e+20 1.00000e+20 ksd.b1 -1.70739e-01 -1.70877e-01 -1.00000e+20 1.00000e+20 ksf.b2 1.03285e-01 1.03299e-01 -1.00000e+20 1.00000e+20 ksd.b2 -1.71385e-01 -1.71293e-01 -1.00000e+20 1.00000e+20 END MATCH SUMMARY VARIABLE "TAR" SET TO 2.22190941e-22 ! Generate a TWISS table: select, flag=twiss, clear; select, flag=twiss, pattern="IP\.*",column=name,s,betx,bety; TWISS,sequence=lhcb1,file=twiss.b1.data; enter Twiss module iteration: 1 error: 8.714816E-04 deltap: 0.000000E+00 orbit: -4.929573E-04 8.106070E-06 2.105803E-06 1.445662E-04 0.000000E+00 0.000000E+00 iteration: 2 error: 2.299339E-05 deltap: 0.000000E+00 orbit: -4.999995E-04 -1.923503E-09 -1.672507E-10 1.424984E-04 0.000000E+00 0.000000E+00 iteration: 3 error: 2.546103E-09 deltap: 0.000000E+00 orbit: -4.999999E-04 1.982147E-10 8.002227E-12 1.425000E-04 0.000000E+00 0.000000E+00 ++++++ table: summ length orbit5 alfa gammatr 26658.8832 -0 0.0003213813572 55.78143208 q1 dq1 betxmax dxmax 64.3100005 2 4402.810724 2.890204757 dxrms xcomax xcorms q2 1.399969148 0.01141004839 0.0008146081283 59.32000005 dq2 betymax dymax dyrms 2 4402.812514 1.318436553 0.1774138224 ycomax ycorms deltap synch_1 0.006931834736 0.0004834742802 0 0 synch_2 synch_3 synch_4 synch_5 0 0 0 0 ! Generate a TWISS table: select, flag=twiss, clear; select, flag=twiss, pattern="IP\.*",column=name,s,betx,bety; TWISS,sequence=lhcb2,file=twiss.b2.data; enter Twiss module iteration: 1 error: 8.565938E-04 deltap: 0.000000E+00 orbit: 4.913931E-04 4.350811E-08 -3.317084E-06 -1.463933E-04 0.000000E+00 0.000000E+00 iteration: 2 error: 1.449377E-05 deltap: 0.000000E+00 orbit: 4.999985E-04 1.971100E-11 1.229771E-09 -1.424999E-04 0.000000E+00 0.000000E+00 iteration: 3 error: 2.923973E-09 deltap: 0.000000E+00 orbit: 5.000001E-04 2.337570E-10 1.228122E-12 -1.425000E-04 0.000000E+00 0.000000E+00 ++++++ table: summ length orbit5 alfa gammatr 26658.8832 -0 0.0003209654154 55.81756419 q1 dq1 betxmax dxmax 64.30999976 2 4402.8161 3.234265836 dxrms xcomax xcorms q2 1.414527448 0.01141004574 0.0008241939467 59.32000003 dq2 betymax dymax dyrms 2 4402.813069 1.112621306 0.1830755708 ycomax ycorms deltap synch_1 0.006931835558 0.0004842285896 0 0 synch_2 synch_3 synch_4 synch_5 0 0 0 0 stop; Number of warnings: 0 ++++++++++++++++++++++++++++++++++++++++++++ + MAD-X 5.00.19 (64 bit) finished normally + ++++++++++++++++++++++++++++++++++++++++++++