 **********
 **   18 **HESSE 
 **********

 FCN=   5986.613     FROM HESSE     STATUS=OK           554 CALLS     3081 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9128        4.6507        .41362E-03   -1.5659    
   2  Prefactor      .0000        2.6613        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.4189        9.0171        .54723E-03   -1.5671    
   4  norm           .0000        4.2073        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .84127E-06    18.648        .14369E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     43.436        61.348        .15391E-03   -1.5576    
   7  norm          16.239        6.4038        .24795E-03   -1.5627    
   8  norm          1.1342        .41694        .64892E-03   -1.5687    
   9  Prefactor     .17863E-06    8.0914        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .27080E-01    13.486        .10010E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        5.2873        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        2.1939        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .15588E-06    7.9720        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .55511E-10    32.866        .13593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.311        21.356        .22749E-03   -1.5620    
  16  Prefactor     12.130        22.082        .28774E-03   -1.5638    
  17  norm          4.7334        3.0709        .46244E-03   -1.5664    
  18  Prefactor     .10598E-04    59.880        .16907E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .55511E-10    16.348        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.4173        3.9626        .90792E-03   -1.5684    
  21  norm           .0000        1.3171        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .44409E-09    9.5503        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     22.669        9.5210        .21019E-03   -1.5613    
  24  norm           .0000        .30248        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .66613E-08    75.046        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2327        .19437        .55400E-01   -.85599    
  27  Prefactor     .82221        .16795        .44005E-01   -.98915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66414e-07
Minuit parameter uncertainties:
  1  4.6507
  2  2.84371e-06
  3  9.01713
  4  2.12274e-05
  5  0.00792173
  6  61.3491
  7  6.40377
  8  0.416945
  9  0.00240444
  10  1.20864
  11  9.96985e-06
  12  1.09795e-06
  13  0.00222935
  14  6.55188e-05
  15  21.3565
  16  22.0819
  17  3.07095
  18  0.0503829
  19  4.50915e-05
  20  3.96259
  21  4.11884e-07
  22  0.000127863
  23  9.521
  24  1.52344e-08
  25  0.00141131
  26  0.194484
  27  0.168057
/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).

Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  0.000e+00  9.970e-06  0.000e+00  1.000e+06 ( 1.000e-12)
254        Index:  2.677e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  5.158e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  8.222e-01  1.681e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.233e+00  1.945e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 335.497 -35.071
Photon Flux Upper Limit: 7.61785069702e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00598898758861 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/27419140/likelihoodResults_801273601_801532801_4FGL_J2221.9-3504_daily_bin2168.txt

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) = 5986.61367795
delta logL = -0.000241775403993

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5986.61343671
delta logL = -5.39686880074e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15146E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.7212       1.0000          .0000       10.000    
     3 'Normalizat'    1.2328       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82211       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5986.613     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      232 TOTAL
                     EDM=   .12E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.0655       -.16675E-06** at limit **
   2  Index         3.3419        2.8574        .10771E-04     .0000    
   3  Normalizat    1.2327        .22172        .80869E-06   -.14728E-04
   4  Prefactor     .82221        .19582        .18875E-05   -.29634E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.34192
  Normalizat = 1.23266
  Prefactor  = 0.822207
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5986.613     FROM HESSE     STATUS=FAILED        11 CALLS      243 TOTAL
                     EDM=   .12E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.0175        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.2501        2.1549        .10771E-04   -.33802    
   3  Normalizat    1.2327        1.0959        .80869E-06   -.85599    
   4  Prefactor     .82221        1.1702        .18875E-05   -.98915    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.23391e-12
Minuit parameter uncertainties:
  1  5.89123e-06
  2  1.30614
  3  1.11749
  4  1.2088
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 5986.61343617
delta logL = -9.09494701773e-13

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  0.000e+00  5.891e-06  0.000e+00  1.000e+06 ( 1.000e-12)
254        Index:  3.342e+00  1.306e+00  0.000e+00  1.000e+01 (-1.000e+00)
255        Scale:  5.158e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  8.222e-01  1.209e+00  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.233e+00  1.117e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 335.497 -35.071

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/27419140/cmap_HighResolution_801273601_801532801_4FGL_J2221.9-3504_daily_bin2168.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.99e-03', job_status='DONE', photon_flux_upper_limit='7.62e-08', time_completed='2026-05-29 16:59:53.118446', job_id='27419140', GAL2='0.82', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1780099193.12', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='-9.09e-13', ts2='0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='2168' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri May 29 16:59:53 PDT 2026

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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin2168
RA = 335.497, Dec = -35.0712
tmin = 801273601, tmax = 801532801
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='27419410', job_status='RUN', time_executed='2026-05-29 16:59:34.476829', time_epoch_executed='1780099174.48' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='2168'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/27419410

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/27419410/ft1_4FGL_J2221.9-3504_daily_bin2168.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/27419410/ft2_4FGL_J2221.9-3504_daily_bin2168.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/27419410/ft1_4FGL_J2221.9-3504_daily_bin2168.fits outfile=/lscratch/kocevski/27419410/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin2168.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=801273601.0 tmax=801532801.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 2.51
user 2.18
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/27419410/ft2_4FGL_J2221.9-3504_daily_bin2168.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/27419410/ft2_4FGL_J2221.9-3504_daily_bin2168.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/27419410/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin2168.fits evtable="EVENTS" outfile="/lscratch/kocevski/27419410/ft1_filtered_4FGL_J2221.9-3504_daily_bin2168.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.44
user 0.19
sys 0.13

Number of photons that the gtmktime cut: 548

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/27419410/ft1_filtered_4FGL_J2221.9-3504_daily_bin2168.fits" evtable="EVENTS" scfile=/lscratch/kocevski/27419410/ft2_4FGL_J2221.9-3504_daily_bin2168.fits sctable="SC_DATA" e GAL_V02
Working on...
/lscratch/kocevski/27419177/ft1_filtered_4FGL_J2221.9-3504_daily_bin2168.fits.....................!
real 18.77
user 17.52
sys 0.96

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/27419177/ft1_filtered_4FGL_J2221.9-3504_daily_bin2168.fits', '/lscratch/kocevski/27419177/ft2_4FGL_J2221.9-3504_daily_bin2168.fits', expMap='/lscratch/kocevski/27419177/expmap_801273601_801532801_4FGL_J2221.9-3504_daily_bin2168.fits', expCube='/lscratch/kocevski/27419177/ltcube_801273601_801532801_4FGL_J2221.9-3504_daily_bin2168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/27419177/Model_4FGL_J2221.9-3504_daily_bin2168.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2221.9-3504'

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.240e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
254        Index:  2.677e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  5.158e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/27419177/ft1_filtered_4FGL_J2221.9-3504_daily_bin2168.fits
Spacecraft file(s): /lscratch/kocevski/27419177/ft2_4FGL_J2221.9-3504_daily_bin2168.fits
Exposure map: /lscratch/kocevski/27419177/expmap_801273601_801532801_4FGL_J2221.9-3504_daily_bin2168.fits
Exposure cube: /lscratch/kocevski/27419177/ltcube_801273601_801532801_4FGL_J2221.9-3504_daily_bin2168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/27419177/Model_4FGL_J2221.9-3504_daily_bin2168.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) = 5986.61676207

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8879       1.0000          .0000       .10000E+07
     2 'Prefactor '    .91619E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    3.4142       1.0000          .0000       .10000E+07
     4 'norm      '    .17131E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .84405E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    42.220       1.0000          .0000       .10000E+07
     7 'norm      '    16.282       1.0000          .0000       .10000E+07
     8 'norm      '    1.1341       1.0000          .0000       .10000E+07
     9 'Prefactor '    .19081E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .78437E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .79610E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .20318E-03   1.0000          .0000       .10000E+07
    13 'norm      '    .19911E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .11300       1.0000          .0000       .10000E+07
    15 'Prefactor '    19.336       1.0000          .0000       .10000E+07
    16 'Prefactor '    12.099       1.0000          .0000       .10000E+07
    17 'norm      '    4.7296       1.0000          .0000       .10000E+07
    18 'Prefactor '    .22026E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    .13583E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    1.4192       1.0000          .0000       .10000E+07
    21 'norm      '    .28827E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    .29048E-02   1.0000          .0000       .10000E+07
    23 'Prefactor '    22.647       1.0000          .0000       .10000E+07
    24 'norm      '    .48572E-07   1.0000          .0000       .10000E+07
    25 'Prefactor '    .35201E-03   1.0000          .0000       .10000E+07
    26 'Normalizat'    1.2329       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .82215       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5986.613     FROM MIGRAD    STATUS=CONVERGED    187 CALLS     2527 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9128        4.6511       -.95164E-08    .23344E-03
   2  Prefactor      .0000        2.6553        .65199E-07** at limit **
   3  Prefactor     3.4189        8.9814       -.41841E-07   -.20818E-02
   4  norm           .0000        4.2093       -.21835E-06** at limit **
   5  Prefactor     .84127E-06    123.02        .21611E-06** at limit **
   6  Prefactor     43.436        52.477        .17134E-06   -.23815E-02
   7  norm          16.239        6.3613       -.65584E-07    .42220E-03
   8  norm          1.1342        .41880       -.19023E-07    .13317E-02
   9  Prefactor     .17863E-06    4.0969        .39217E-08** at limit **
  10  Prefactor     .27080E-01    12.118       -.15432E-06** at limit **
  11  Prefactor      .0000        5.2935       -.33531E-06** at limit **
  12  Prefactor      .0000        2.1973       -.21800E-08** at limit **
  13  norm          .15588E-06    4.5556       -.19233E-07** at limit **
  14  Prefactor     .55511E-10    33.079        .23937E-06** at limit **
  15  Prefactor     19.311        2.1201       -.55375E-08   -.18716E-01
  16  Prefactor     12.130        4.9485        .20905E-07    .26626E-01
  17  norm          4.7334        2.7233        .34017E-07   -.24504E-03
  18  Prefactor     .10598E-04    46.158        .14788E-06** at limit **
  19  Prefactor     .55511E-10    16.380       -.23351E-06** at limit **
  20  Prefactor     1.4173        3.9068        .46653E-07   -.86031E-04
  21  norm           .0000        1.3181       -.46789E-07** at limit **
  22  Prefactor     .44409E-09    9.5384       -.13083E-06** at limit **
  23  Prefactor     22.669        9.3952        .61610E-07   -.12732E-02
  24  norm           .0000        .30477       -.50777E-08** at limit **
  25  Prefactor     .66613E-08    77.281       -.22041E-06** at limit **
  26  Normalizat    1.2327        .22629       -.31472E-05    .16826E-04
  27  Prefactor     .82221        .19838        .18163E-05    .10636E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.91277
  Prefactor  = 0
  Prefactor  = 3.41887
  norm       = 0
  Prefactor  = 8.41271e-07
  Prefactor  = 43.4356
  norm       = 16.2392
  norm       = 1.13417
  Prefactor  = 1.78635e-07
  Prefactor  = 0.0270796
  Prefactor  = 0
  Prefactor  = 0
  norm       = 1.55875e-07
  Prefactor  = 5.55112e-11
  Prefactor  = 19.3111
  Prefactor  = 12.1299
  norm       = 4.73337
  Prefactor  = 1.05977e-05
  Prefactor  = 5.55112e-11
  Prefactor  = 1.41727
  norm       = 0
  Prefactor  = 4.44089e-10
  Prefactor  = 22.6689
  norm       = 0
  Prefactor  = 6.66134e-09
  Normalizat = 1.23266
  Prefactor  = 0.822207
 **********
 **   18 **HESSE 
 **********

 FCN=   5986.613     FROM HESSE     STATUS=OK           554 CALLS     3081 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9128        4.6507        .41362E-03   -1.5659    
   2  Prefactor      .0000        2.6613        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.4189        9.0171        .54723E-03   -1.5671    
   4  norm           .0000        4.2073        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .84127E-06    18.648        .14369E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     43.436        61.348        .15391E-03   -1.5576    
   7  norm          16.239        6.4038        .24795E-03   -1.5627    
   8  norm          1.1342        .41694        .64892E-03   -1.5687    
   9  Prefactor     .17863E-06    8.0914        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .27080E-01    13.486        .10010E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        5.2873        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        2.1939        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .15588E-06    7.9720        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .55511E-10    32.866        .13593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.311        21.356        .22749E-03   -1.5620    
  16  Prefactor     12.130        22.082        .28774E-03   -1.5638    
  17  norm          4.7334        3.0709        .46244E-03   -1.5664    
  18  Prefactor     .10598E-04    59.880        .16907E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .55511E-10    16.348        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.4173        3.9626        .90792E-03   -1.5684    
  21  norm           .0000        1.3171        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .44409E-09    9.5503        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     22.669        9.5210        .21019E-03   -1.5613    
  24  norm           .0000        .30248        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .66613E-08    75.046        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2327        .19437        .55400E-01   -.85599    
  27  Prefactor     .82221        .16795        .44005E-01   -.98915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66414e-07
Minuit parameter uncertainties:
  1  4.6507
  2  2.84371e-06
  3  9.01713
  4  2.12274e-05
  5  0.00792173
  6  61.3491
  7  6.40377
  8  0.416945
  9  0.00240444
  10  1.20864
  11  9.96985e-06
  12  1.09795e-06
  13  0.00222935
  14  6.55188e-05
  15  21.3565
  16  22.0819
  17  3.07095
  18  0.0503829
  19  4.50915e-05
  20  3.96259
  21  4.11884e-07
  22  0.000127863
  23  9.521
  24  1.52344e-08
  25  0.00141131
  26  0.194484
  27  0.168057
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  0.000e+00  9.970e-06  0.000e+00  1.000e+06 ( 1.000e-12)
254        Index:  2.677e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  5.158e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  8.222e-01  1.681e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.233e+00  1.945e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 335.497 -35.071
Photon Flux Upper Limit: 7.61785069702e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00598898758861 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/27419177/likelihoodResults_801273601_801532801_4FGL_J2221.9-3504_daily_bin2168.txt

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) = 5986.61367795
delta logL = -0.000241775403993

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5986.61343671
delta logL = -5.39686880074e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15146E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.7212       1.0000          .0000       10.000    
     3 'Normalizat'    1.2328       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82211       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5986.613     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      232 TOTAL
                     EDM=   .12E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.0655       -.16675E-06** at limit **
   2  Index         3.3419        2.8574        .10771E-04     .0000    
   3  Normalizat    1.2327        .22172        .80869E-06   -.14728E-04
   4  Prefactor     .82221        .19582        .18875E-05   -.29634E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.34192
  Normalizat = 1.23266
  Prefactor  = 0.822207
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5986.613     FROM HESSE     STATUS=FAILED        11 CALLS      243 TOTAL
                     EDM=   .12E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.0175        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.2501        2.1549        .10771E-04   -.33802    
   3  Normalizat    1.2327        1.0959        .80869E-06   -.85599    
   4  Prefactor     .82221        1.1702        .18875E-05   -.98915    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.23391e-12
Minuit parameter uncertainties:
  1  5.89123e-06
  2  1.30614
  3  1.11749
  4  1.2088
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 5986.61343617
delta logL = -9.09494701773e-13

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  0.000e+00  5.891e-06  0.000e+00  1.000e+06 ( 1.000e-12)
254        Index:  3.342e+00  1.306e+00  0.000e+00  1.000e+01 (-1.000e+00)
255        Scale:  5.158e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  8.222e-01  1.209e+00  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.233e+00  1.117e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 335.497 -35.071

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/27419177/cmap_HighResolution_801273601_801532801_4FGL_J2221.9-3504_daily_bin2168.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.99e-03', job_status='DONE', photon_flux_upper_limit='7.62e-08', time_completed='2026-05-29 17:01:14.895888', job_id='27419177', GAL2='0.82', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1780099274.9', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='-9.09e-13', ts2='0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='2168' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri May 29 17:01:14 PDT 2026

outfile=/lscratch/kocevski/27419410/ltcube_801273601_801532801_4FGL_J2221.9-3504_daily_bin2168.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/27419410/ft2_4FGL_J2221.9-3504_daily_bin2168.fits
.....................!
real 8.82
user 8.34
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/27419410/ft1_filtered_4FGL_J2221.9-3504_daily_bin2168.fits evtable="EVENTS" scfile=/lscratch/kocevski/27419410/ft2_4FGL_J2221.9-3504_daily_bin2168.fits sctable="SC_DATA" expcube=/lscratch/kocevski/27419410/ltcube_801273601_801532801_4FGL_J2221.9-3504_daily_bin2168.fits outfile=/lscratch/kocevski/27419410/expmap_801273601_801532801_4FGL_J2221.9-3504_daily_bin2168.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/27419410/ltcube_801273601_801532801_4FGL_J2221.9-3504_daily_bin2168.fits
.....................!
real 69.92
user 65.54
sys 3.88

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 175 point sources and 0 extended sources

Setting source of interest to:
4FGL J2221.9-3504 @ 335.497 -35.0712

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/27419410/ft1_filtered_4FGL_J2221.9-3504_daily_bin2168.fits scfile=/lscratch/kocevski/27419410/ft2_4FGL_J2221.9-3504_daily_bin2168.fits outfile=/lscratch/kocevski/27419410/cmap_801273601_801532801_4FGL_J2221.9-3504_daily_bin2168.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=335.497 yref=-35.0712 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.46
user 0.22
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/27419410/ft1_filtered_4FGL_J2221.9-3504_daily_bin2168.fits scfile=/lscratch/kocevski/27419410/ft2_4FGL_J2221.9-3504_daily_bin2168.fits outfile=/lscratch/kocevski/27419410/cmap_HighResolution_801273601_801532801_4FGL_J2221.9-3504_daily_bin2168.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=335.497 yref=-35.0712 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.45
user 0.21
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/27419410/ft1_filtered_4FGL_J2221.9-3504_daily_bin2168.fits evtable="EVENTS" scfile=/lscratch/kocevski/27419410/ft2_4FGL_J2221.9-3504_daily_bin2168.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/27419410/Model_4FGL_J2221.9-3504_daily_bin2168.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/27419410/ft1_filtered_4FGL_J2221.9-3504_daily_bin2168.fits.....................!
real 21.18
user 19.91
sys 0.90

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/27419410/ft1_filtered_4FGL_J2221.9-3504_daily_bin2168.fits', '/lscratch/kocevski/27419410/ft2_4FGL_J2221.9-3504_daily_bin2168.fits', expMap='/lscratch/kocevski/27419410/expmap_801273601_801532801_4FGL_J2221.9-3504_daily_bin2168.fits', expCube='/lscratch/kocevski/27419410/ltcube_801273601_801532801_4FGL_J2221.9-3504_daily_bin2168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/27419410/Model_4FGL_J2221.9-3504_daily_bin2168.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2221.9-3504'

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.240e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
254        Index:  2.677e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  5.158e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/27419410/ft1_filtered_4FGL_J2221.9-3504_daily_bin2168.fits
Spacecraft file(s): /lscratch/kocevski/27419410/ft2_4FGL_J2221.9-3504_daily_bin2168.fits
Exposure map: /lscratch/kocevski/27419410/expmap_801273601_801532801_4FGL_J2221.9-3504_daily_bin2168.fits
Exposure cube: /lscratch/kocevski/27419410/ltcube_801273601_801532801_4FGL_J2221.9-3504_daily_bin2168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/27419410/Model_4FGL_J2221.9-3504_daily_bin2168.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) = 5986.61676207

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8879       1.0000          .0000       .10000E+07
     2 'Prefactor '    .91619E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    3.4142       1.0000          .0000       .10000E+07
     4 'norm      '    .17131E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .84405E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    42.220       1.0000          .0000       .10000E+07
     7 'norm      '    16.282       1.0000          .0000       .10000E+07
     8 'norm      '    1.1341       1.0000          .0000       .10000E+07
     9 'Prefactor '    .19081E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .78437E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .79610E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .20318E-03   1.0000          .0000       .10000E+07
    13 'norm      '    .19911E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .11300       1.0000          .0000       .10000E+07
    15 'Prefactor '    19.336       1.0000          .0000       .10000E+07
    16 'Prefactor '    12.099       1.0000          .0000       .10000E+07
    17 'norm      '    4.7296       1.0000          .0000       .10000E+07
    18 'Prefactor '    .22026E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    .13583E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    1.4192       1.0000          .0000       .10000E+07
    21 'norm      '    .28827E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    .29048E-02   1.0000          .0000       .10000E+07
    23 'Prefactor '    22.647       1.0000          .0000       .10000E+07
    24 'norm      '    .48572E-07   1.0000          .0000       .10000E+07
    25 'Prefactor '    .35201E-03   1.0000          .0000       .10000E+07
    26 'Normalizat'    1.2329       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .82215       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5986.613     FROM MIGRAD    STATUS=CONVERGED    187 CALLS     2527 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9128        4.6511       -.95164E-08    .23344E-03
   2  Prefactor      .0000        2.6553        .65199E-07** at limit **
   3  Prefactor     3.4189        8.9814       -.41841E-07   -.20818E-02
   4  norm           .0000        4.2093       -.21835E-06** at limit **
   5  Prefactor     .84127E-06    123.02        .21611E-06** at limit **
   6  Prefactor     43.436        52.477        .17134E-06   -.23815E-02
   7  norm          16.239        6.3613       -.65584E-07    .42220E-03
   8  norm          1.1342        .41880       -.19023E-07    .13317E-02
   9  Prefactor     .17863E-06    4.0969        .39217E-08** at limit **
  10  Prefactor     .27080E-01    12.118       -.15432E-06** at limit **
  11  Prefactor      .0000        5.2935       -.33531E-06** at limit **
  12  Prefactor      .0000        2.1973       -.21800E-08** at limit **
  13  norm          .15588E-06    4.5556       -.19233E-07** at limit **
  14  Prefactor     .55511E-10    33.079        .23937E-06** at limit **
  15  Prefactor     19.311        2.1201       -.55375E-08   -.18716E-01
  16  Prefactor     12.130        4.9485        .20905E-07    .26626E-01
  17  norm          4.7334        2.7233        .34017E-07   -.24504E-03
  18  Prefactor     .10598E-04    46.158        .14788E-06** at limit **
  19  Prefactor     .55511E-10    16.380       -.23351E-06** at limit **
  20  Prefactor     1.4173        3.9068        .46653E-07   -.86031E-04
  21  norm           .0000        1.3181       -.46789E-07** at limit **
  22  Prefactor     .44409E-09    9.5384       -.13083E-06** at limit **
  23  Prefactor     22.669        9.3952        .61610E-07   -.12732E-02
  24  norm           .0000        .30477       -.50777E-08** at limit **
  25  Prefactor     .66613E-08    77.281       -.22041E-06** at limit **
  26  Normalizat    1.2327        .22629       -.31472E-05    .16826E-04
  27  Prefactor     .82221        .19838        .18163E-05    .10636E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.91277
  Prefactor  = 0
  Prefactor  = 3.41887
  norm       = 0
  Prefactor  = 8.41271e-07
  Prefactor  = 43.4356
  norm       = 16.2392
  norm       = 1.13417
  Prefactor  = 1.78635e-07
  Prefactor  = 0.0270796
  Prefactor  = 0
  Prefactor  = 0
  norm       = 1.55875e-07
  Prefactor  = 5.55112e-11
  Prefactor  = 19.3111
  Prefactor  = 12.1299
  norm       = 4.73337
  Prefactor  = 1.05977e-05
  Prefactor  = 5.55112e-11
  Prefactor  = 1.41727
  norm       = 0
  Prefactor  = 4.44089e-10
  Prefactor  = 22.6689
  norm       = 0
  Prefactor  = 6.66134e-09
  Normalizat = 1.23266
  Prefactor  = 0.822207
 **********
 **   18 **HESSE 
 **********

 FCN=   5986.613     FROM HESSE     STATUS=OK           554 CALLS     3081 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9128        4.6507        .41362E-03   -1.5659    
   2  Prefactor      .0000        2.6613        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.4189        9.0171        .54723E-03   -1.5671    
   4  norm           .0000        4.2073        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .84127E-06    18.648        .14369E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     43.436        61.348        .15391E-03   -1.5576    
   7  norm          16.239        6.4038        .24795E-03   -1.5627    
   8  norm          1.1342        .41694        .64892E-03   -1.5687    
   9  Prefactor     .17863E-06    8.0914        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .27080E-01    13.486        .10010E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        5.2873        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        2.1939        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .15588E-06    7.9720        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .55511E-10    32.866        .13593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.311        21.356        .22749E-03   -1.5620    
  16  Prefactor     12.130        22.082        .28774E-03   -1.5638    
  17  norm          4.7334        3.0709        .46244E-03   -1.5664    
  18  Prefactor     .10598E-04    59.880        .16907E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .55511E-10    16.348        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.4173        3.9626        .90792E-03   -1.5684    
  21  norm           .0000        1.3171        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .44409E-09    9.5503        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     22.669        9.5210        .21019E-03   -1.5613    
  24  norm           .0000        .30248        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .66613E-08    75.046        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2327        .19437        .55400E-01   -.85599    
  27  Prefactor     .82221        .16795        .44005E-01   -.98915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66414e-07
Minuit parameter uncertainties:
  1  4.6507
  2  2.84371e-06
  3  9.01713
  4  2.12274e-05
  5  0.00792173
  6  61.3491
  7  6.40377
  8  0.416945
  9  0.00240444
  10  1.20864
  11  9.96985e-06
  12  1.09795e-06
  13  0.00222935
  14  6.55188e-05
  15  21.3565
  16  22.0819
  17  3.07095
  18  0.0503829
  19  4.50915e-05
  20  3.96259
  21  4.11884e-07
  22  0.000127863
  23  9.521
  24  1.52344e-08
  25  0.00141131
  26  0.194484
  27  0.168057
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  0.000e+00  9.970e-06  0.000e+00  1.000e+06 ( 1.000e-12)
254        Index:  2.677e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  5.158e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  8.222e-01  1.681e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.233e+00  1.945e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 335.497 -35.071
Photon Flux Upper Limit: 7.61785069702e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00598898758861 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/27419410/likelihoodResults_801273601_801532801_4FGL_J2221.9-3504_daily_bin2168.txt

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) = 5986.61367795
delta logL = -0.000241775403993

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5986.61343671
delta logL = -5.39686880074e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15146E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.7212       1.0000          .0000       10.000    
     3 'Normalizat'    1.2328       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82211       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5986.613     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      232 TOTAL
                     EDM=   .12E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.0655       -.16675E-06** at limit **
   2  Index         3.3419        2.8574        .10771E-04     .0000    
   3  Normalizat    1.2327        .22172        .80869E-06   -.14728E-04
   4  Prefactor     .82221        .19582        .18875E-05   -.29634E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.34192
  Normalizat = 1.23266
  Prefactor  = 0.822207
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5986.613     FROM HESSE     STATUS=FAILED        11 CALLS      243 TOTAL
                     EDM=   .12E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.0175        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.2501        2.1549        .10771E-04   -.33802    
   3  Normalizat    1.2327        1.0959        .80869E-06   -.85599    
   4  Prefactor     .82221        1.1702        .18875E-05   -.98915    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.23391e-12
Minuit parameter uncertainties:
  1  5.89123e-06
  2  1.30614
  3  1.11749
  4  1.2088
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 5986.61343617
delta logL = -9.09494701773e-13

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  0.000e+00  5.891e-06  0.000e+00  1.000e+06 ( 1.000e-12)
254        Index:  3.342e+00  1.306e+00  0.000e+00  1.000e+01 (-1.000e+00)
255        Scale:  5.158e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  8.222e-01  1.209e+00  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.233e+00  1.117e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 335.497 -35.071

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/27419410/cmap_HighResolution_801273601_801532801_4FGL_J2221.9-3504_daily_bin2168.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.99e-03', job_status='DONE', photon_flux_upper_limit='7.62e-08', time_completed='2026-05-29 17:04:39.438203', job_id='27419410', GAL2='0.82', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1780099479.44', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='-9.09e-13', ts2='0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='2168' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri May 29 17:04:39 PDT 2026

