 *** Welcome to SAD Ver.1.4.4.2k64 built at 2026-10-19 14:46:59 +0900 ***
 *** Today: 22:12:45 Monday 11/16/2026 ***
 OFF LOG;ON ECHO;READ 77 ;           1
MOMENTUM = 3GEV;
! FODO ring: 24 cells, 15 deg bend per cell (2*pi total), 3 GeV
DRIFT D1 = (L=1.0) D2 = (L=0.5) DS = (L=0.1);
QUAD  QF = (L=0.3 K1=0.7) QD = (L=0.3 K1=-0.6);
SEXT  SF = (L=0.2 K2=0) SD = (L=0.2 K2=0);
BEND  B  = (L=1.2 ANGLE=0.2617993877991494 E1=0.1308996938995747 E2=0.1308996938995747);
MARK  ORIGIN = ();
CAVI RF = (L=0 VOLT=1.5E6 FREQ=5.0E8 PHI=0);
LINE CELL = (SF DS QF D2 B D2 QD DS SD D1);
LINE RING = (ORIGIN RF 24*CELL);
FFS;
 *** SADScript Initialization: /mnt/d/work/SAD-master/SAD-master/Packages/init.n ***
 *** Run time Environment:     /mnt/d/work/SAD-master/SAD-master/Packages/init.local.n ***
 RFSW RADCOD RAD  FLUC  INTRA POL   COD  DAPER EMIOU K64   FOURI SMEAR
   F     F     F     T     F     F     T     F     F     T     F     T
 $FORM = "10.6";
 USE RING; CELL; CALC;
Out[1]:= USE
 Matched. (  0.000    ) DP = 0.01000  DP0 = 0.00000  ExponentOfResidual = 2.0  OffMomentumWeight =   1.000  CALEXP  
$$$       f AX    #######  #  -2.166305 $$$       f BX    #######  #   5.025185 $$$       f NX    #######  #   6.696329
$$$       f AY    #######  #   1.207630 $$$       f BY    #######  #   2.557661 $$$       f NY    #######  #   4.906056
$$$       f LENG  #######  #  105.60000
 m = TransferMatrix["SF.1","SF.2"];
 Print["TransferMatrix size = ", Dimensions[m]];
TransferMatrix size = {  4.000000,  4.000000}
 Print["row1 = ", m[[1]]];
row1 = { -2.311699,  4.941916, -2.96E-16, -3.96E-16}
 Print["row2 = ", m[[2]]];
row2 = { -1.114097,  1.949118, -2.04E-16, -2.74E-16}
 mi = TransferMatrix["SF.2","SF.1"];
 Print["inverse check: M11,M12 of M*Minv = ", (m.mi)[[1,1]], " ", (m.mi)[[1,2]]];
inverse check: M11,M12 of M*Minv =   1.000000    .000000
 RF VOLT 6.0E6;
 CALC;
 Matched. (  0.000    ) DP = 0.01000  DP0 = 0.00000  ExponentOfResidual = 2.0  OffMomentumWeight =   1.000  CALEXP  
$$$       f AX    #######  #  -2.166305 $$$       f BX    #######  #   5.025185 $$$       f NX    #######  #   6.696329
$$$       f AY    #######  #   1.207630 $$$       f BY    #######  #   2.557661 $$$       f NY    #######  #   4.906056
$$$       f LENG  #######  #  105.60000
 RFSW; RAD; NOFLUC;
 EMIT;

    Closed orbit:
                  x     px/p0         y     py/p0         z     dp/p0 
  Entrance :  -1.5E-17  -5.5E-18  -1.5E-32  3.12E-33  6.94E-18   .000000
      Exit :  1.15E-17  -7.2E-18  -1.1E-33  -1.5E-32  9.61E-18  1.11E-19

    Extended Twiss Parameters
AX: -2.16612 BX: 5.022883                            ZX:  .003416  EX:  .575265
           PSIX: 2.37E-18                           ZPX: -2.33E-5 EPX: -2.0E-16
R1: -2.1E-16 R2: 1.84E-16 AY: 1.207630 BY: 2.557661  ZY: -3.5E-19  EY: -2.0E-16
R3: 2.75E-16 R4: -4.9E-16            PSIY: 2.23E-35 ZPY: 2.93E-18 EPY: 1.13E-16
                                                     AZ:  .109359  BZ: 10.80907
                                                                 PSIZ: -5.7E-18
    Units: B(X,Y,Z), E(X,Y), R2: m | PSI(X,Y,Z): radian | ZP(X,Y), R3: 1/m

Design momentum      P0 = 3.0000000 GeV Revolution freq.     f0 = 2838943.6 Hz 
Energy loss per turn U0 = 1.5632657 MV  Effective voltage    Vc = 6.0000000 MV 
Equilibrium position dz = 25.153187 mm  Momentum compact. alpha =  .0222107
Orbit dilation       dl =  .0000000 mm  Effective harmonic #  h = 176.12184
Bucket height     dV/P0 =  .0142615     Synchrotron frequency   = 98432.193 Hz 

  Imag.tune:-0.0000000          -0.0000000          -0.0000000
  Real tune:-0.3038107          -0.0939440          -0.0346721

    Damping per one revolution:
          X : -2.513846E-04   Y : -2.605594E-04   Z : -5.299733E-04
    Damping time (sec):
          X :  1.401214E-03   Y :  1.351875E-03   Z :  6.646443E-04
    Tune shift due to radiation:
          X : -5.111995E-05   Y :  5.411244E-05   Z : -2.269443E-07
    Damping partition number:
          X :    0.9651       Y :    1.0003       Z :    2.0346

Emittance X            = 1.73611E-7 m   Emittance Y            = 2.8462E-38 m
Emittance Z            = 1.51934E-5 m   Energy spread          =  .00119227
Bunch Length           = 12.8116597 mm  Beam tilt              = -3.972E-17 rad
Beam size xi           = 1.15654032 mm  Beam size eta          =  .00000000 mm
Nominal spin tune      =  6.8081482     Polarization time      =   .0000000 min

 b = BeamMatrix[1];
 Print["BeamMatrix size = ", Dimensions[b]];
BeamMatrix size = {  6.000000,  6.000000}
 Print["sqrt(b11) sqrt(b33) sqrt(b66) = ", Sqrt[b[[1,1]]], " ", Sqrt[b[[3,3]]], " ", Sqrt[b[[6,6]]]];
sqrt(b11) sqrt(b33) sqrt(b66) =    .005729  8.679E-19    .010000
 Print["EMITX EMITY SIGE = ", EMITX, " ", EMITY, " ", SIGE];
EMITX EMITY SIGE =  1.7361E-7  2.846E-38    .001192
 Print["DP (special variable) = ", DP, "   b66 = ", b[[6,6]]];
DP (special variable) =    .010000   b66 =  1.0000E-4
 Print["EMITX*BX + (EX*SIGE)^2 = ", EMITX*Twiss["BX",1]+(Twiss["EX",1]*SIGE)^2, "   EMITX*BX + (EX*DP)^2 = ", EMITX*Twiss["BX",1]+(Twiss["EX",1]*DP)^2, "   b11 = ", b[[1,1]]];
EMITX*BX + (EX*SIGE)^2 =  1.3266E-6   EMITX*BX + (EX*DP)^2 =  3.2821E-5   b11 =  3.2821E-5
 Exit;
 FFS                  end:  CPU time =     0.006 sec
 Design orbit length =   1.0000000000000000     
 RFSW RADCOD RAD  FLUC  INTRA POL   COD  DAPER EMIOU K64   FOURI SMEAR
   T     F     T     F     F     F     T     F     F     T     F     T
 In[2]:=  ???-getbuf-end of input stream
