/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 17524
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2321.9+3204_weekly_bin907
RA = 350.478, Dec = 32.0737
tmin = 787536001, tmax = 788140801
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='17776868', job_status='RUN', time_executed='2025-12-23 02:37:58.418329', time_epoch_executed='1766486278.42' WHERE source_name='4FGL J2321.9+3204' and cadence='weekly' and bin_id='907'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17776868

Creating custom pfile directory:
/lscratch/kocevski/17776868/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=787536001.0 && nMetStart<788140801.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=787536001.0 && nMetStart<788140801.0' /Data/Flight/Level1/LPA

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17776868/ft1_4FGL_J2321.9+3204_weekly_bin907.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=787536001.0 && nMetStart<788140801.0' /Data/Flight/Level1/LPA

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17776868/ft2_4FGL_J2321.9+3204_weekly_bin907.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17776868/ft1_4FGL_J2321.9+3204_weekly_bin907.fits outfile=/lscratch/kocevski/17776868/ft1_filteredMKT_4FGL_J2321.9+3204_weekly_bin907.fits ra=350.478 dec=32.0737 rad=12.0 tmin=787536001.0 tmax=788140801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.61
user 4.12
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17776868/ft2_4FGL_J2321.9+3204_weekly_bin907.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17776868/ft2_4FGL_J2321.9+3204_weekly_bin907.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/17776868/ft1_filteredMKT_4FGL_J2321.9+3204_weekly_bin907.fits evtable="EVENTS" outfile="/lscratch/kocevski/17776868/ft1_filtered_4FGL_J2321.9+3204_weekly_bin907.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.19
sys 0.14

Number of photons that the gtmktime cut: 2089

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17776868/ft1_filtered_4FGL_J2321.9+3204_weekly_bin907.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17776868/ft2_4FGL_J2321.9+3204_weekly_bin907.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17776868/ltcube_787536001_788140801_4FGL_J2321.9+3204_weekly_bin907.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /lscratch/kocevski/17776868/ft2_4FGL_J2321.9+3204_weekly_bin907.fits
.....................!
real 17.82
user 17.27
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17776868/ft1_filtered_4FGL_J2321.9+3204_weekly_bin907.fits evtable="EVENTS" scfile=/lscratch/kocevski/17776868/ft2_4FGL_J2321.9+3204_weekly_bin907.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17776868/ltcube_787536001_788140801_4FGL_J2321.9+3204_weekly_bin907.fits outfile=/lscratch/kocevski/17776868/expmap_787536001_788140801_4FGL_J2321.9+3204_weekly_bin907.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/17776868/ltcube_787536001_788140801_4FGL_J2321.9+3204_weekly_bin907.fits
.....................!
real 64.94
user 60.58
sys 3.77

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 166 point sources and 0 extended sources

Setting source of interest to:
4FGL J2321.9+3204 @ 350.478 32.0737

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17776868/ft1_filtered_4FGL_J2321.9+3204_weekly_bin907.fits scfile=/lscratch/kocevski/17776868/ft2_4FGL_J2321.9+3204_weekly_bin907.fits outfile=/lscratch/kocevski/17776868/cmap_787536001_788140801_4FGL_J2321.9+3204_weekly_bin907.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=350.478 yref=32.0737 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.64
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17776868/ft1_filtered_4FGL_J2321.9+3204_weekly_bin907.fits scfile=/lscratch/kocevski/17776868/ft2_4FGL_J2321.9+3204_weekly_bin907.fits outfile=/lscratch/kocevski/17776868/cmap_HighResolution_787536001_788140801_4FGL_J2321.9+3204_weekly_bin907.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=350.478 yref=32.0737 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.63
user 0.20
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17776868/ft1_filtered_4FGL_J2321.9+3204_weekly_bin907.fits evtable="EVENTS" scfile=/lscratch/kocevski/17776868/ft2_4FGL_J2321.9+3204_weekly_bin907.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17776868/Model_4FGL_J2321.9+3204_weekly_bin907.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/17776868/ft1_filtered_4FGL_J2321.9+3204_weekly_bin907.fits.....................!
real 78.93
user 77.18
sys 0.97

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17776868/ft1_filtered_4FGL_J2321.9+3204_weekly_bin907.fits', '/lscratch/kocevski/17776868/ft2_4FGL_J2321.9+3204_weekly_bin907.fits', expMap='/lscratch/kocevski/17776868/expmap_787536001_788140801_4FGL_J2321.9+3204_weekly_bin907.fits', expCube='/lscratch/kocevski/17776868/ltcube_787536001_788140801_4FGL_J2321.9+3204_weekly_bin907.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17776868/Model_4FGL_J2321.9+3204_weekly_bin907.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2321.9+3204'

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  6.933e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17776868/ft1_filtered_4FGL_J2321.9+3204_weekly_bin907.fits
Spacecraft file(s): /lscratch/kocevski/17776868/ft2_4FGL_J2321.9+3204_weekly_bin907.fits
Exposure map: /lscratch/kocevski/17776868/expmap_787536001_788140801_4FGL_J2321.9+3204_weekly_bin907.fits
Exposure cube: /lscratch/kocevski/17776868/ltcube_787536001_788140801_4FGL_J2321.9+3204_weekly_bin907.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17776868/Model_4FGL_J2321.9+3204_weekly_bin907.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 22220.4176476

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 22220.3861249

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17965E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .38345       1.0000          .0000       .10000E+07
     3 'norm      '    .12942E-05   1.0000          .0000       .10000E+07
     4 'norm      '    .13245       1.0000          .0000       .10000E+07
     5 'Prefactor '    .21925E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    5.4825       1.0000          .0000       .10000E+07
     7 'Prefactor '    .13252E-02   1.0000          .0000       .10000E+07
     8 'norm      '    .11732       1.0000          .0000       .10000E+07
     9 'Prefactor '    5.7691       1.0000          .0000       .10000E+07
    10 'Prefactor '    .28962E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    15.663       1.0000          .0000       .10000E+07
    12 'norm      '    3.5799       1.0000          .0000       .10000E+07
    13 'norm      '    6.6093       1.0000          .0000       .10000E+07
    14 'Prefactor '    .72179E-01   1.0000          .0000       .10000E+07
    15 'norm      '    .52064E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    16.200       1.0000          .0000       .10000E+07
    17 'Prefactor '    22.447       1.0000          .0000       .10000E+07
    18 'Prefactor '    .17839E-05   1.0000          .0000       .10000E+07
    19 'Normalizat'    .84527       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1322       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   22220.39     FROM MIGRAD    STATUS=CONVERGED    128 CALLS     1551 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .33307E-09    4.8802       -.79160E-06** at limit **
   2  Prefactor     .38181        12.807        .57082E-06    .26802E-02
   3  norm           .0000        .17698        .30367E-06** at limit **
   4  norm          .13251        4.5511       -.15143E-05** at limit **
   5  Prefactor     .11102E-09    3.2109       -.61347E-06** at limit **
   6  Prefactor     5.4811        3.2703       -.36830E-06    .14862E-03
   7  Prefactor     .16653E-09    7.1024        .35341E-07** at limit **
   8  norm          .11739        .85873       -.64515E-07** at limit **
   9  Prefactor     5.7431        1.3720       -.49890E-07    .26312E-01
  10  Prefactor     .36354E-06    .92041        .17396E-07** at limit **
  11  Prefactor     15.765        3.5553        .51834E-08    .50073E-01
  12  norm          3.5908        2.4572       -.31909E-06   -.11563E-03
  13  norm          6.6197        3.7211        .34613E-06    .10282E-02
  14  Prefactor     .12463E-05    200.00       -.63729E-06** at limit **
  15  norm           .0000        .37740        .44684E-06** at limit **
  16  Prefactor     16.249        2.3418        .12922E-07    .18255E-01
  17  Prefactor     22.298        2.5758        .29500E-08    .66332E-02
  18  Prefactor      .0000        .95340       -.16596E-06** at limit **
  19  Normalizat    .84512        .14045       -.14713E-05   -.42305E-04
  20  Prefactor     1.1324        .70570E-01   -.66800E-07   -.66653E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.33067e-10
  Prefactor  = 0.38181
  norm       = 0
  norm       = 0.132512
  Prefactor  = 1.11022e-10
  Prefactor  = 5.48113
  Prefactor  = 1.66533e-10
  norm       = 0.117394
  Prefactor  = 5.74306
  Prefactor  = 3.63543e-07
  Prefactor  = 15.7647
  norm       = 3.59075
  norm       = 6.61966
  Prefactor  = 1.24628e-06
  norm       = 0
  Prefactor  = 16.249
  Prefactor  = 22.2985
  Prefactor  = 0
  Normalizat = 0.845119
  Prefactor  = 1.13237
 **********
 **   18 **HESSE 
 **********

 FCN=   22220.39     FROM HESSE     STATUS=OK           359 CALLS     1910 TOTAL
                     EDM=   .75E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .33307E-09    4.8911        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .38181        1.6184        .91429E-02   -1.5696    
   3  norm           .0000        .17716        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .13251        .61876        .63632E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11102E-09    3.2172        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.4811        3.2929        .42889E-03   -1.5661    
   7  Prefactor     .16653E-09    7.1223        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .11739        .37883        .25952E-02   -1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.7431        11.264        .41793E-03   -1.5660    
  10  Prefactor     .36354E-06    1.5411        .12785E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.765        16.559        .25281E-03   -1.5629    
  12  norm          3.5908        2.5992        .53386E-03   -1.5670    
  13  norm          6.6197        3.7308        .39010E-03   -1.5657    
  14  Prefactor     .12463E-05    4.9278        .99380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        .37696        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.249        17.555        .24857E-03   -1.5627    
  17  Prefactor     22.298        18.852        .21112E-03   -1.5614    
  18  Prefactor      .0000        .95410        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .84512        .12905        .83503E-01   -.98416    
  20  Prefactor     1.1324        .61777E-01    .36475E-01   -.88439    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.47218e-08
Minuit parameter uncertainties:
  1  8.31697e-05
  2  1.57215
  3  6.80304e-07
  4  0.572688
  5  3.85293e-05
  6  3.29294
  7  7.05901e-05
  8  0.378826
  9  11.2644
  10  0.00149704
  11  16.5589
  12  2.59919
  13  3.73082
  14  0.00495642
  15  6.55409e-08
  16  17.5554
  17  18.8523
  18  4.54795e-07
  19  0.129101
  20  0.0617805
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 22220.3854288

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  3.591e+00  2.599e+00  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.132e+00  6.178e-02  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  8.451e-01  1.291e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.96
Ra Dec: 350.478 32.074
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 2.19e-08 +/- 1.58e-08
Energy Flux (Fixed Index): 9.83e-06 +/- 7.12e-06

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 22220.3506423
delta logL = 0.0347865384392

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 22220.3316927
delta logL = 0.0537361822135

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8582       1.0000          .0000       .10000E+07
     2 'alpha     '    1.7786       1.0000          .0000       5.0000    
     3 'Normalizat'    .85314       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1319       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   22220.33     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      213 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8464        2.2935        .60107E-03    .34961E-02
   2  alpha         1.7759        .58465        .43558       -.12126E-03
   3  Normalizat    .85304        .12219        .83155E-01    .15405E-03
   4  Prefactor     1.1319        .61090E-01    .36485E-01    .65122E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.84637
  alpha      = 1.77588
  Normalizat = 0.853043
  Prefactor  = 1.13191
 **********
 **   18 **HESSE 
 **********

 FCN=   22220.33     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8464        3.6238        .19129E-04   -1.5674    
   2  alpha         1.7759        1.0731        .34322E-01   -.29386    
   3  Normalizat    .85304        .13909        .36817E-03   -.98130    
   4  Prefactor     1.1319        .69777E-01    .16245E-03   -.88453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.62024e-08
Minuit parameter uncertainties:
  1  3.62377
  2  1.11278
  3  0.139145
  4  0.069783
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 22220.3316875
delta logL = 0.0537413222482

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  2.846e+00  3.624e+00  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  1.776e+00  1.113e+00  0.000e+00  5.000e+00 ( 1.000e+00)
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.132e+00  6.978e-02  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  8.530e-01  1.391e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.06
Ra Dec: 350.478 32.074
Photon Index (Free Index): 1.78 +/- 1.11
Photon Flux (Free Index): 1.21e-08 +/- 2.51e-08
Energy Flux (Free Index): 9.69e-06 +/- 7.74e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/17776868/cmap_HighResolution_787536001_788140801_4FGL_J2321.9+3204_weekly_bin907.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.19e-08', energy_flux2='9.69e-06', photon_flux_error='1.58e-08', dlogl='5.37e-02', energy_flux='9.83e-06', photon_flux2='1.21e-08', job_status='DONE', time_completed='2025-12-23 02:48:03.706893', photon_index_error2='1.11', photon_index2='1.78', ts='4.96', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='7.74e-06', EG='0.85', time_epoch_completed='1766486883.71', return_code='0', job_id='17776868', GAL2='1.13', EG2='0.85', return_code2='0', energy_flux_error='7.12e-06', photon_flux_error2='2.51e-08', ts2='5.06', photon_index='2.14' WHERE bin_id='907' AND source_name='4FGL J2321.9+3204' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 23 02:48:03 PST 2025

