 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   13945.47     FROM HESSE     STATUS=FAILED         9 CALLS      373 TOTAL
                     EDM=   .65E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.9133        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .95999E-02    .88098       -.11150E-05   -1389.6    
   3  Normalizat    1.0434        1.3487        .62541E-05    237.85    
   4  Prefactor     .97896        1.2480        .20159E-05   -460.88    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.51582e-11
Minuit parameter uncertainties:
  1  1.02297e-05
  2  0.575655
  3  1.39731
  4  1.28792
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) = 13945.4684777
delta logL = 2.36468622461e-11

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  0.000e+00  1.023e-05  0.000e+00  1.000e+06 ( 1.000e-14)
229        Index:  7.958e-01  5.757e-01  0.000e+00  1.000e+01 (-1.000e+00)
230        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
485    Prefactor:  9.790e-01  1.288e+00  0.000e+00  1.000e+01 ( 1.000e+00)
486        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
487        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
484   Normalization:  1.043e+00  1.397e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 337.166 -16.607

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/32679286/cmap_HighResolution_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.66e-03', job_status='DONE', photon_flux_upper_limit='3.54e-08', time_completed='2026-07-21 19:46:35.107900', job_id='32679286', GAL2='0.98', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1784688395.11', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='2.36e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='937' AND source_name='4FGL J2228.6-1636' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 21 19:46:35 PDT 2026

source GAL_V02
Working on...
/lscratch/kocevski/32679280/ft1_filtered_4FGL_J2228.6-1636_weekly_bin937.fits.....................!
real 42.00
user 40.14
sys 0.98

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/32679280/ft1_filtered_4FGL_J2228.6-1636_weekly_bin937.fits', '/lscratch/kocevski/32679280/ft2_4FGL_J2228.6-1636_weekly_bin937.fits', expMap='/lscratch/kocevski/32679280/expmap_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.fits', expCube='/lscratch/kocevski/32679280/ltcube_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/32679280/Model_4FGL_J2228.6-1636_weekly_bin937.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2228.6-1636'

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  6.423e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
229        Index:  2.058e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
230        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/32679280/ft1_filtered_4FGL_J2228.6-1636_weekly_bin937.fits
Spacecraft file(s): /lscratch/kocevski/32679280/ft2_4FGL_J2228.6-1636_weekly_bin937.fits
Exposure map: /lscratch/kocevski/32679280/expmap_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.fits
Exposure cube: /lscratch/kocevski/32679280/ltcube_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/32679280/Model_4FGL_J2228.6-1636_weekly_bin937.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) = 13945.533339

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.861       1.0000          .0000       .10000E+07
     2 'norm      '    .97700E-08   1.0000          .0000       .10000E+07
     3 'Prefactor '    .63682E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    3.9341       1.0000          .0000       .10000E+07
     5 'Prefactor '    .56130E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .20189E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .42824E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    2.9834       1.0000          .0000       .10000E+07
     9 'Prefactor '    .28080E-03   1.0000          .0000       .10000E+07
    10 'norm      '    3.8266       1.0000          .0000       .10000E+07
    11 'norm      '    .17495E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .99191       1.0000          .0000       .10000E+07
    13 'Prefactor '    14.104       1.0000          .0000       .10000E+07
    14 'norm      '    .94134       1.0000          .0000       .10000E+07
    15 'norm      '    1.9896       1.0000          .0000       .10000E+07
    16 'Prefactor '    .33691E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .10556E-05   1.0000          .0000       .10000E+07
    18 'norm      '    .99491       1.0000          .0000       .10000E+07
    19 'Prefactor '    17.706       1.0000          .0000       .10000E+07
    20 'Prefactor '    .18603E-03   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0424       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97909       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13945.47     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     1435 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.652        11.585       -.52657E-06   -.61805E-02
   2  norm           .0000        .84742       -.86245E-07** at limit **
   3  Prefactor     .22204E-09    1.8171        .65710E-06** at limit **
   4  Prefactor     4.0309        11.948        .11861E-05    .12069E-03
   5  Prefactor      .0000        1.9471        .18900E-06** at limit **
   6  Prefactor     .11657E-08    10.054        .20092E-05** at limit **
   7  Prefactor     .11102E-09    3.3202        .95321E-07** at limit **
   8  Prefactor     2.9892        3.2075        .40898E-06    .39284E-02
   9  Prefactor     .38858E-09    20.588        .21362E-06** at limit **
  10  norm          3.8322        2.3905        .38657E-06    .84369E-02
  11  norm          .55511E-10    3.8379       -.11953E-05** at limit **
  12  Prefactor     .94524E-06    5017.8        .12891E-04** at limit **
  13  Prefactor     14.040        8.8947       -.57814E-06    .15000E-03
  14  norm          .94110        .48790        .32064E-07    .10233E-01
  15  norm          1.9903        1.2733       -.26235E-07   -.89889E-02
  16  Prefactor     .24569E-05    8.0369       -.20536E-06** at limit **
  17  Prefactor     .99920E-09    3.5586        .76780E-06** at limit **
  18  norm          .99990        .58761        .51059E-07   -.32496E-02
  19  Prefactor     17.335        16.167       -.85970E-06    .35552E-02
  20  Prefactor     .27756E-09    2.7276        .53767E-07** at limit **
  21  Normalizat    1.0434        .15709        .31982E-05    .49816E-03
  22  Prefactor     .97896        .11730        .37134E-05    .50243E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.6518
  norm       = 0
  Prefactor  = 2.22045e-10
  Prefactor  = 4.03092
  Prefactor  = 0
  Prefactor  = 1.16573e-09
  Prefactor  = 1.11022e-10
  Prefactor  = 2.98915
  Prefactor  = 3.88578e-10
  norm       = 3.83216
  norm       = 5.55112e-11
  Prefactor  = 9.45244e-07
  Prefactor  = 14.0401
  norm       = 0.941104
  norm       = 1.99028
  Prefactor  = 2.45687e-06
  Prefactor  = 9.99201e-10
  norm       = 0.999896
  Prefactor  = 17.3355
  Prefactor  = 2.77556e-10
  Normalizat = 1.04336
  Prefactor  = 0.978962
/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)
source GAL_V02
Working on...
/lscratch/kocevski/32679417/ft1_filtered_4FGL_J2228.6-1636_weekly_bin937.fits.....................!
real 37.10
user 35.38
sys 0.85

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/32679417/ft1_filtered_4FGL_J2228.6-1636_weekly_bin937.fits', '/lscratch/kocevski/32679417/ft2_4FGL_J2228.6-1636_weekly_bin937.fits', expMap='/lscratch/kocevski/32679417/expmap_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.fits', expCube='/lscratch/kocevski/32679417/ltcube_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/32679417/Model_4FGL_J2228.6-1636_weekly_bin937.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2228.6-1636'

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  6.423e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
229        Index:  2.058e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
230        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/32679417/ft1_filtered_4FGL_J2228.6-1636_weekly_bin937.fits
Spacecraft file(s): /lscratch/kocevski/32679417/ft2_4FGL_J2228.6-1636_weekly_bin937.fits
Exposure map: /lscratch/kocevski/32679417/expmap_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.fits
Exposure cube: /lscratch/kocevski/32679417/ltcube_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/32679417/Model_4FGL_J2228.6-1636_weekly_bin937.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) = 13945.533339

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.861       1.0000          .0000       .10000E+07
     2 'norm      '    .97700E-08   1.0000          .0000       .10000E+07
     3 'Prefactor '    .63682E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    3.9341       1.0000          .0000       .10000E+07
     5 'Prefactor '    .56130E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .20189E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .42824E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    2.9834       1.0000          .0000       .10000E+07
     9 'Prefactor '    .28080E-03   1.0000          .0000       .10000E+07
    10 'norm      '    3.8266       1.0000          .0000       .10000E+07
    11 'norm      '    .17495E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .99191       1.0000          .0000       .10000E+07
    13 'Prefactor '    14.104       1.0000          .0000       .10000E+07
    14 'norm      '    .94134       1.0000          .0000       .10000E+07
    15 'norm      '    1.9896       1.0000          .0000       .10000E+07
    16 'Prefactor '    .33691E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .10556E-05   1.0000          .0000       .10000E+07
    18 'norm      '    .99491       1.0000          .0000       .10000E+07
    19 'Prefactor '    17.706       1.0000          .0000       .10000E+07
    20 'Prefactor '    .18603E-03   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0424       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97909       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13945.47     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     1435 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.652        11.585       -.52657E-06   -.61805E-02
   2  norm           .0000        .84742       -.86245E-07** at limit **
   3  Prefactor     .22204E-09    1.8171        .65710E-06** at limit **
   4  Prefactor     4.0309        11.948        .11861E-05    .12069E-03
   5  Prefactor      .0000        1.9471        .18900E-06** at limit **
   6  Prefactor     .11657E-08    10.054        .20092E-05** at limit **
   7  Prefactor     .11102E-09    3.3202        .95321E-07** at limit **
   8  Prefactor     2.9892        3.2075        .40898E-06    .39284E-02
   9  Prefactor     .38858E-09    20.588        .21362E-06** at limit **
  10  norm          3.8322        2.3905        .38657E-06    .84369E-02
  11  norm          .55511E-10    3.8379       -.11953E-05** at limit **
  12  Prefactor     .94524E-06    5017.8        .12891E-04** at limit **
  13  Prefactor     14.040        8.8947       -.57814E-06    .15000E-03
  14  norm          .94110        .48790        .32064E-07    .10233E-01
  15  norm          1.9903        1.2733       -.26235E-07   -.89889E-02
  16  Prefactor     .24569E-05    8.0369       -.20536E-06** at limit **
  17  Prefactor     .99920E-09    3.5586        .76780E-06** at limit **
  18  norm          .99990        .58761        .51059E-07   -.32496E-02
  19  Prefactor     17.335        16.167       -.85970E-06    .35552E-02
  20  Prefactor     .27756E-09    2.7276        .53767E-07** at limit **
  21  Normalizat    1.0434        .15709        .31982E-05    .49816E-03
  22  Prefactor     .97896        .11730        .37134E-05    .50243E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.6518
  norm       = 0
  Prefactor  = 2.22045e-10
  Prefactor  = 4.03092
  Prefactor  = 0
  Prefactor  = 1.16573e-09
  Prefactor  = 1.11022e-10
  Prefactor  = 2.98915
  Prefactor  = 3.88578e-10
  norm       = 3.83216
  norm       = 5.55112e-11
  Prefactor  = 9.45244e-07
  Prefactor  = 14.0401
  norm       = 0.941104
  norm       = 1.99028
  Prefactor  = 2.45687e-06
  Prefactor  = 9.99201e-10
  norm       = 0.999896
  Prefactor  = 17.3355
  Prefactor  = 2.77556e-10
  Normalizat = 1.04336
  Prefactor  = 0.978962

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

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

 FCN=   13945.47     FROM HESSE     STATUS=OK           396 CALLS     1831 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.652        11.787        .25955E-03   -1.5631    
   2  norm           .0000        .84953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .22204E-09    4.3273        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.0309        12.162        .50837E-03   -1.5668    
   5  Prefactor      .0000        1.9492        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .11657E-08    10.077        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11102E-09    3.3346        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.9892        3.2521        .58751E-03   -1.5673    
   9  Prefactor     .38858E-09    20.590        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.8322        2.4226        .51571E-03   -1.5669    
  11  norm          .55511E-10    3.9879        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .94524E-06    33.756        .17814E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.040        10.289        .26644E-03   -1.5633    
  14  norm          .94110        .48898        .42943E-03   -1.5689    
  15  norm          1.9903        1.3687        .73426E-03   -1.5680    
  16  Prefactor     .24569E-05    19.420        .16262E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .99920E-09    4.1863        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .99990        .59200        .43585E-03   -1.5688    
  19  Prefactor     17.335        16.335        .23775E-03   -1.5625    
  20  Prefactor     .27756E-09    2.7303        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0434        .13159        .61483E-01   -.91592    
  22  Prefactor     .97896        .97542E-01    .46005E-01   -.93434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.96572e-09
Minuit parameter uncertainties:
  1  11.7874
  2  2.98021e-06
  3  6.24742e-05
  4  12.1616
  5  1.37185e-05
  6  0.000217895
  7  3.47146e-05
  8  3.25211
  9  0.000184913
  10  2.4226
  11  2.32079e-05
  12  0.0112975
  13  10.2887
  14  0.488975
  15  1.36875
  16  0.013815
  17  0.000128067
  18  0.592001
  19  16.3354
  20  5.56254e-05
  21  0.131631
  22  0.0975592
 **********
 **   18 **HESSE 
 **********

 FCN=   13945.47     FROM HESSE     STATUS=OK           396 CALLS     1831 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.652        11.787        .25955E-03   -1.5631    
   2  norm           .0000        .84953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .22204E-09    4.3273        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.0309        12.162        .50837E-03   -1.5668    
   5  Prefactor      .0000        1.9492        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .11657E-08    10.077        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11102E-09    3.3346        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.9892        3.2521        .58751E-03   -1.5673    
   9  Prefactor     .38858E-09    20.590        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.8322        2.4226        .51571E-03   -1.5669    
  11  norm          .55511E-10    3.9879        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .94524E-06    33.756        .17814E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.040        10.289        .26644E-03   -1.5633    
  14  norm          .94110        .48898        .42943E-03   -1.5689    
  15  norm          1.9903        1.3687        .73426E-03   -1.5680    
  16  Prefactor     .24569E-05    19.420        .16262E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .99920E-09    4.1863        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .99990        .59200        .43585E-03   -1.5688    
  19  Prefactor     17.335        16.335        .23775E-03   -1.5625    
  20  Prefactor     .27756E-09    2.7303        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0434        .13159        .61483E-01   -.91592    
  22  Prefactor     .97896        .97542E-01    .46005E-01   -.93434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.96572e-09
Minuit parameter uncertainties:
  1  11.7874
  2  2.98021e-06
  3  6.24742e-05
  4  12.1616
  5  1.37185e-05
  6  0.000217895
  7  3.47146e-05
  8  3.25211
  9  0.000184913
  10  2.4226
  11  2.32079e-05
  12  0.0112975
  13  10.2887
  14  0.488975
  15  1.36875
  16  0.013815
  17  0.000128067
  18  0.592001
  19  16.3354
  20  5.56254e-05
  21  0.131631
  22  0.0975592
Done.

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

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  3.886e-10  1.849e-04  0.000e+00  1.000e+06 ( 1.000e-14)
229        Index:  2.058e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
230        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
485    Prefactor:  9.790e-01  9.756e-02  0.000e+00  1.000e+01 ( 1.000e+00)
486        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
487        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
484   Normalization:  1.043e+00  1.316e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 337.166 -16.607
Photon Flux Upper Limit: 3.53503172815e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00266379778585 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/32679280/likelihoodResults_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.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) = 13945.4918786
delta logL = -0.0234008626285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13944.7359575
delta logL = 0.732520188254

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44928E-03   1.0000          .0000       .10000E+07
     2 'Index     '    6.5636       1.0000          .0000       10.000    
     3 'Normalizat'    .98112       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0099       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   13945.47     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      364 TOTAL
                     EDM=   .65E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.9133        .42118E-03** at limit **
   2  Index         .79584        .57132       -.11150E-05     .0000    
   3  Normalizat    1.0434        1.3487        .62541E-05    .40444E-03
   4  Prefactor     .97896        1.2480        .20159E-05   -.57528E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.795838
  Normalizat = 1.04336
  Prefactor  = 0.978963
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   13945.47     FROM HESSE     STATUS=FAILED         9 CALLS      373 TOTAL
                     EDM=   .65E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.9133        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .95999E-02    .88098       -.11150E-05   -1389.6    
   3  Normalizat    1.0434        1.3487        .62541E-05    237.85    
   4  Prefactor     .97896        1.2480        .20159E-05   -460.88    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.51582e-11
Minuit parameter uncertainties:
  1  1.02297e-05
  2  0.575655
  3  1.39731
  4  1.28792
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) = 13945.4684777
delta logL = 2.36468622461e-11

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  0.000e+00  1.023e-05  0.000e+00  1.000e+06 ( 1.000e-14)
229        Index:  7.958e-01  5.757e-01  0.000e+00  1.000e+01 (-1.000e+00)
230        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
485    Prefactor:  9.790e-01  1.288e+00  0.000e+00  1.000e+01 ( 1.000e+00)
486        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
487        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
484   Normalization:  1.043e+00  1.397e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 337.166 -16.607

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/32679280/cmap_HighResolution_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.66e-03', job_status='DONE', photon_flux_upper_limit='3.54e-08', time_completed='2026-07-21 19:48:01.146451', job_id='32679280', GAL2='0.98', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1784688481.15', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='2.36e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='937' AND source_name='4FGL J2228.6-1636' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 21 19:48:01 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  3.886e-10  1.849e-04  0.000e+00  1.000e+06 ( 1.000e-14)
229        Index:  2.058e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
230        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
485    Prefactor:  9.790e-01  9.756e-02  0.000e+00  1.000e+01 ( 1.000e+00)
486        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
487        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
484   Normalization:  1.043e+00  1.316e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 337.166 -16.607
Photon Flux Upper Limit: 3.53503172815e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00266379778585 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/32679417/likelihoodResults_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.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) = 13945.4918786
delta logL = -0.0234008626285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13944.7359575
delta logL = 0.732520188254

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44928E-03   1.0000          .0000       .10000E+07
     2 'Index     '    6.5636       1.0000          .0000       10.000    
     3 'Normalizat'    .98112       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0099       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   13945.47     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      364 TOTAL
                     EDM=   .65E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.9133        .42118E-03** at limit **
   2  Index         .79584        .57132       -.11150E-05     .0000    
   3  Normalizat    1.0434        1.3487        .62541E-05    .40444E-03
   4  Prefactor     .97896        1.2480        .20159E-05   -.57528E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.795838
  Normalizat = 1.04336
  Prefactor  = 0.978963
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   13945.47     FROM HESSE     STATUS=FAILED         9 CALLS      373 TOTAL
                     EDM=   .65E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.9133        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .95999E-02    .88098       -.11150E-05   -1389.6    
   3  Normalizat    1.0434        1.3487        .62541E-05    237.85    
   4  Prefactor     .97896        1.2480        .20159E-05   -460.88    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.51582e-11
Minuit parameter uncertainties:
  1  1.02297e-05
  2  0.575655
  3  1.39731
  4  1.28792
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) = 13945.4684777
delta logL = 2.36468622461e-11

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  0.000e+00  1.023e-05  0.000e+00  1.000e+06 ( 1.000e-14)
229        Index:  7.958e-01  5.757e-01  0.000e+00  1.000e+01 (-1.000e+00)
230        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
485    Prefactor:  9.790e-01  1.288e+00  0.000e+00  1.000e+01 ( 1.000e+00)
486        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
487        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
484   Normalization:  1.043e+00  1.397e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 337.166 -16.607

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/32679417/cmap_HighResolution_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.66e-03', job_status='DONE', photon_flux_upper_limit='3.54e-08', time_completed='2026-07-21 19:48:09.885258', job_id='32679417', GAL2='0.98', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1784688489.89', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='2.36e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='937' AND source_name='4FGL J2228.6-1636' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 21 19:48:10 PDT 2026

source GAL_V02
Working on...
/lscratch/kocevski/32679441/ft1_filtered_4FGL_J2228.6-1636_weekly_bin937.fits.....................!
real 42.41
user 40.14
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/32679441/ft1_filtered_4FGL_J2228.6-1636_weekly_bin937.fits', '/lscratch/kocevski/32679441/ft2_4FGL_J2228.6-1636_weekly_bin937.fits', expMap='/lscratch/kocevski/32679441/expmap_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.fits', expCube='/lscratch/kocevski/32679441/ltcube_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/32679441/Model_4FGL_J2228.6-1636_weekly_bin937.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2228.6-1636'

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  6.423e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
229        Index:  2.058e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
230        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/32679441/ft1_filtered_4FGL_J2228.6-1636_weekly_bin937.fits
Spacecraft file(s): /lscratch/kocevski/32679441/ft2_4FGL_J2228.6-1636_weekly_bin937.fits
Exposure map: /lscratch/kocevski/32679441/expmap_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.fits
Exposure cube: /lscratch/kocevski/32679441/ltcube_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/32679441/Model_4FGL_J2228.6-1636_weekly_bin937.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) = 13945.533339

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.861       1.0000          .0000       .10000E+07
     2 'norm      '    .97700E-08   1.0000          .0000       .10000E+07
     3 'Prefactor '    .63682E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    3.9341       1.0000          .0000       .10000E+07
     5 'Prefactor '    .56130E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .20189E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .42824E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    2.9834       1.0000          .0000       .10000E+07
     9 'Prefactor '    .28080E-03   1.0000          .0000       .10000E+07
    10 'norm      '    3.8266       1.0000          .0000       .10000E+07
    11 'norm      '    .17495E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .99191       1.0000          .0000       .10000E+07
    13 'Prefactor '    14.104       1.0000          .0000       .10000E+07
    14 'norm      '    .94134       1.0000          .0000       .10000E+07
    15 'norm      '    1.9896       1.0000          .0000       .10000E+07
    16 'Prefactor '    .33691E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .10556E-05   1.0000          .0000       .10000E+07
    18 'norm      '    .99491       1.0000          .0000       .10000E+07
    19 'Prefactor '    17.706       1.0000          .0000       .10000E+07
    20 'Prefactor '    .18603E-03   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0424       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97909       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13945.47     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     1435 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.652        11.585       -.52657E-06   -.61805E-02
   2  norm           .0000        .84742       -.86245E-07** at limit **
   3  Prefactor     .22204E-09    1.8171        .65710E-06** at limit **
   4  Prefactor     4.0309        11.948        .11861E-05    .12069E-03
   5  Prefactor      .0000        1.9471        .18900E-06** at limit **
   6  Prefactor     .11657E-08    10.054        .20092E-05** at limit **
   7  Prefactor     .11102E-09    3.3202        .95321E-07** at limit **
   8  Prefactor     2.9892        3.2075        .40898E-06    .39284E-02
   9  Prefactor     .38858E-09    20.588        .21362E-06** at limit **
  10  norm          3.8322        2.3905        .38657E-06    .84369E-02
  11  norm          .55511E-10    3.8379       -.11953E-05** at limit **
  12  Prefactor     .94524E-06    5017.8        .12891E-04** at limit **
  13  Prefactor     14.040        8.8947       -.57814E-06    .15000E-03
  14  norm          .94110        .48790        .32064E-07    .10233E-01
  15  norm          1.9903        1.2733       -.26235E-07   -.89889E-02
  16  Prefactor     .24569E-05    8.0369       -.20536E-06** at limit **
  17  Prefactor     .99920E-09    3.5586        .76780E-06** at limit **
  18  norm          .99990        .58761        .51059E-07   -.32496E-02
  19  Prefactor     17.335        16.167       -.85970E-06    .35552E-02
  20  Prefactor     .27756E-09    2.7276        .53767E-07** at limit **
  21  Normalizat    1.0434        .15709        .31982E-05    .49816E-03
  22  Prefactor     .97896        .11730        .37134E-05    .50243E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.6518
  norm       = 0
  Prefactor  = 2.22045e-10
  Prefactor  = 4.03092
  Prefactor  = 0
  Prefactor  = 1.16573e-09
  Prefactor  = 1.11022e-10
  Prefactor  = 2.98915
  Prefactor  = 3.88578e-10
  norm       = 3.83216
  norm       = 5.55112e-11
  Prefactor  = 9.45244e-07
  Prefactor  = 14.0401
  norm       = 0.941104
  norm       = 1.99028
  Prefactor  = 2.45687e-06
  Prefactor  = 9.99201e-10
  norm       = 0.999896
  Prefactor  = 17.3355
  Prefactor  = 2.77556e-10
  Normalizat = 1.04336
  Prefactor  = 0.978962
 **********
 **   18 **HESSE 
 **********

 FCN=   13945.47     FROM HESSE     STATUS=OK           396 CALLS     1831 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.652        11.787        .25955E-03   -1.5631    
   2  norm           .0000        .84953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .22204E-09    4.3273        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.0309        12.162        .50837E-03   -1.5668    
   5  Prefactor      .0000        1.9492        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .11657E-08    10.077        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11102E-09    3.3346        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.9892        3.2521        .58751E-03   -1.5673    
   9  Prefactor     .38858E-09    20.590        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.8322        2.4226        .51571E-03   -1.5669    
  11  norm          .55511E-10    3.9879        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .94524E-06    33.756        .17814E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.040        10.289        .26644E-03   -1.5633    
  14  norm          .94110        .48898        .42943E-03   -1.5689    
  15  norm          1.9903        1.3687        .73426E-03   -1.5680    
  16  Prefactor     .24569E-05    19.420        .16262E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .99920E-09    4.1863        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .99990        .59200        .43585E-03   -1.5688    
  19  Prefactor     17.335        16.335        .23775E-03   -1.5625    
  20  Prefactor     .27756E-09    2.7303        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0434        .13159        .61483E-01   -.91592    
  22  Prefactor     .97896        .97542E-01    .46005E-01   -.93434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.96572e-09
Minuit parameter uncertainties:
  1  11.7874
  2  2.98021e-06
  3  6.24742e-05
  4  12.1616
  5  1.37185e-05
  6  0.000217895
  7  3.47146e-05
  8  3.25211
  9  0.000184913
  10  2.4226
  11  2.32079e-05
  12  0.0112975
  13  10.2887
  14  0.488975
  15  1.36875
  16  0.013815
  17  0.000128067
  18  0.592001
  19  16.3354
  20  5.56254e-05
  21  0.131631
  22  0.0975592
Done.

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

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  3.886e-10  1.849e-04  0.000e+00  1.000e+06 ( 1.000e-14)
229        Index:  2.058e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
230        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
485    Prefactor:  9.790e-01  9.756e-02  0.000e+00  1.000e+01 ( 1.000e+00)
486        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
487        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
484   Normalization:  1.043e+00  1.316e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 337.166 -16.607
Photon Flux Upper Limit: 3.53503172815e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00266379778585 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/32679441/likelihoodResults_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.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) = 13945.4918786
delta logL = -0.0234008626285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13944.7359575
delta logL = 0.732520188254

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44928E-03   1.0000          .0000       .10000E+07
     2 'Index     '    6.5636       1.0000          .0000       10.000    
     3 'Normalizat'    .98112       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0099       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   13945.47     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      364 TOTAL
                     EDM=   .65E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.9133        .42118E-03** at limit **
   2  Index         .79584        .57132       -.11150E-05     .0000    
   3  Normalizat    1.0434        1.3487        .62541E-05    .40444E-03
   4  Prefactor     .97896        1.2480        .20159E-05   -.57528E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.795838
  Normalizat = 1.04336
  Prefactor  = 0.978963
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   13945.47     FROM HESSE     STATUS=FAILED         9 CALLS      373 TOTAL
                     EDM=   .65E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.9133        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .95999E-02    .88098       -.11150E-05   -1389.6    
   3  Normalizat    1.0434        1.3487        .62541E-05    237.85    
   4  Prefactor     .97896        1.2480        .20159E-05   -460.88    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.51582e-11
Minuit parameter uncertainties:
  1  1.02297e-05
  2  0.575655
  3  1.39731
  4  1.28792
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) = 13945.4684777
delta logL = 2.36468622461e-11

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  0.000e+00  1.023e-05  0.000e+00  1.000e+06 ( 1.000e-14)
229        Index:  7.958e-01  5.757e-01  0.000e+00  1.000e+01 (-1.000e+00)
230        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
485    Prefactor:  9.790e-01  1.288e+00  0.000e+00  1.000e+01 ( 1.000e+00)
486        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
487        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
484   Normalization:  1.043e+00  1.397e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 337.166 -16.607

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/32679441/cmap_HighResolution_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.66e-03', job_status='DONE', photon_flux_upper_limit='3.54e-08', time_completed='2026-07-21 19:49:39.851695', job_id='32679441', GAL2='0.98', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1784688579.85', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='2.36e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='937' AND source_name='4FGL J2228.6-1636' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 21 19:49:40 PDT 2026

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


Performing analysis on: 4FGL_J2228.6-1636_weekly_bin937
RA = 337.166, Dec = -16.6073
tmin = 805680001, tmax = 806284801
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='32679941', job_status='RUN', time_executed='2026-07-21 19:41:59.394411', time_epoch_executed='1784688119.39' WHERE source_name='4FGL J2228.6-1636' and cadence='weekly' and bin_id='937'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/32679941

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/32679941/ft1_4FGL_J2228.6-1636_weekly_bin937.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/32679941/ft2_4FGL_J2228.6-1636_weekly_bin937.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/32679941/ft1_4FGL_J2228.6-1636_weekly_bin937.fits outfile=/lscratch/kocevski/32679941/ft1_filteredMKT_4FGL_J2228.6-1636_weekly_bin937.fits ra=337.166 dec=-16.6073 rad=12.0 tmin=805680001.0 tmax=806284801.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.96
user 4.08
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/32679941/ft2_4FGL_J2228.6-1636_weekly_bin937.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/32679941/ft2_4FGL_J2228.6-1636_weekly_bin937.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/32679941/ft1_filteredMKT_4FGL_J2228.6-1636_weekly_bin937.fits evtable="EVENTS" outfile="/lscratch/kocevski/32679941/ft1_filtered_4FGL_J2228.6-1636_weekly_bin937.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.99
user 0.19
sys 0.13

Number of photons that the gtmktime cut: 1231

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/32679941/ft1_filtered_4FGL_J2228.6-1636_weekly_bin937.fits" evtable="EVENTS" scfile=/lscratch/kocevski/32679941/ft2_4FGL_J2228.6-1636_weekly_bin937.fits sctable="SC_DATA" outfile=/lscratch/kocevski/32679941/ltcube_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.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/32679941/ft2_4FGL_J2228.6-1636_weekly_bin937.fits
.....................!
real 17.34
user 16.38
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/32679941/ft1_filtered_4FGL_J2228.6-1636_weekly_bin937.fits evtable="EVENTS" scfile=/lscratch/kocevski/32679941/ft2_4FGL_J2228.6-1636_weekly_bin937.fits sctable="SC_DATA" expcube=/lscratch/kocevski/32679941/ltcube_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.fits outfile=/lscratch/kocevski/32679941/expmap_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.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/32679941/ltcube_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.fits
.....................!
real 64.50
user 59.55
sys 4.01

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

Setting source of interest to:
4FGL J2228.6-1636 @ 337.166 -16.6073

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/32679941/ft1_filtered_4FGL_J2228.6-1636_weekly_bin937.fits scfile=/lscratch/kocevski/32679941/ft2_4FGL_J2228.6-1636_weekly_bin937.fits outfile=/lscratch/kocevski/32679941/cmap_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.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=337.166 yref=-16.6073 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.94
user 0.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/32679941/ft1_filtered_4FGL_J2228.6-1636_weekly_bin937.fits scfile=/lscratch/kocevski/32679941/ft2_4FGL_J2228.6-1636_weekly_bin937.fits outfile=/lscratch/kocevski/32679941/cmap_HighResolution_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.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=337.166 yref=-16.6073 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.88
user 0.23
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/32679941/ft1_filtered_4FGL_J2228.6-1636_weekly_bin937.fits evtable="EVENTS" scfile=/lscratch/kocevski/32679941/ft2_4FGL_J2228.6-1636_weekly_bin937.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/32679941/Model_4FGL_J2228.6-1636_weekly_bin937.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 number of points = 17284
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2228.6-1636_weekly_bin937
RA = 337.166, Dec = -16.6073
tmin = 805680001, tmax = 806284801
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='32680297', job_status='RUN', time_executed='2026-07-21 19:46:04.637534', time_epoch_executed='1784688364.64' WHERE source_name='4FGL J2228.6-1636' and cadence='weekly' and bin_id='937'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/32680297

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/32680297/ft1_4FGL_J2228.6-1636_weekly_bin937.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/32680297/ft2_4FGL_J2228.6-1636_weekly_bin937.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/32680297/ft1_4FGL_J2228.6-1636_weekly_bin937.fits outfile=/lscratch/kocevski/32680297/ft1_filteredMKT_4FGL_J2228.6-1636_weekly_bin937.fits ra=337.166 dec=-16.6073 rad=12.0 tmin=805680001.0 tmax=806284801.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.88
user 4.07
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/32680297/ft2_4FGL_J2228.6-1636_weekly_bin937.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/32680297/ft2_4FGL_J2228.6-1636_weekly_bin937.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/32680297/ft1_filteredMKT_4FGL_J2228.6-1636_weekly_bin937.fits evtable="EVENTS" outfile="/lscratch/kocevski/32680297/ft1_filtered_4FGL_J2228.6-1636_weekly_bin937.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.92
user 0.22
sys 0.13

Number of photons that the gtmktime cut: 1231

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/32680297/ft1_filtered_4FGL_J2228.6-1636_weekly_bin937.fits" evtable="EVENTS" scfile=/lscratch/kocevski/32680297/ft2_4FGL_J2228.6-1636_weekly_bin937.fits sctable="SC_DATsource GAL_V02
Working on...
/lscratch/kocevski/32679941/ft1_filtered_4FGL_J2228.6-1636_weekly_bin937.fits.....................!
real 39.35
user 37.57
sys 1.06

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/32679941/ft1_filtered_4FGL_J2228.6-1636_weekly_bin937.fits', '/lscratch/kocevski/32679941/ft2_4FGL_J2228.6-1636_weekly_bin937.fits', expMap='/lscratch/kocevski/32679941/expmap_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.fits', expCube='/lscratch/kocevski/32679941/ltcube_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/32679941/Model_4FGL_J2228.6-1636_weekly_bin937.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2228.6-1636'

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  6.423e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
229        Index:  2.058e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
230        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/32679941/ft1_filtered_4FGL_J2228.6-1636_weekly_bin937.fits
Spacecraft file(s): /lscratch/kocevski/32679941/ft2_4FGL_J2228.6-1636_weekly_bin937.fits
Exposure map: /lscratch/kocevski/32679941/expmap_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.fits
Exposure cube: /lscratch/kocevski/32679941/ltcube_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/32679941/Model_4FGL_J2228.6-1636_weekly_bin937.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) = 13945.533339

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.861       1.0000          .0000       .10000E+07
     2 'norm      '    .97700E-08   1.0000          .0000       .10000E+07
     3 'Prefactor '    .63682E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    3.9341       1.0000          .0000       .10000E+07
     5 'Prefactor '    .56130E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .20189E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .42824E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    2.9834       1.0000          .0000       .10000E+07
     9 'Prefactor '    .28080E-03   1.0000          .0000       .10000E+07
    10 'norm      '    3.8266       1.0000          .0000       .10000E+07
    11 'norm      '    .17495E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .99191       1.0000          .0000       .10000E+07
    13 'Prefactor '    14.104       1.0000          .0000       .10000E+07
    14 'norm      '    .94134       1.0000          .0000       .10000E+07
    15 'norm      '    1.9896       1.0000          .0000       .10000E+07
    16 'Prefactor '    .33691E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .10556E-05   1.0000          .0000       .10000E+07
    18 'norm      '    .99491       1.0000          .0000       .10000E+07
    19 'Prefactor '    17.706       1.0000          .0000       .10000E+07
    20 'Prefactor '    .18603E-03   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0424       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97909       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13945.47     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     1435 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.652        11.585       -.52657E-06   -.61805E-02
   2  norm           .0000        .84742       -.86245E-07** at limit **
   3  Prefactor     .22204E-09    1.8171        .65710E-06** at limit **
   4  Prefactor     4.0309        11.948        .11861E-05    .12069E-03
   5  Prefactor      .0000        1.9471        .18900E-06** at limit **
   6  Prefactor     .11657E-08    10.054        .20092E-05** at limit **
   7  Prefactor     .11102E-09    3.3202        .95321E-07** at limit **
   8  Prefactor     2.9892        3.2075        .40898E-06    .39284E-02
   9  Prefactor     .38858E-09    20.588        .21362E-06** at limit **
  10  norm          3.8322        2.3905        .38657E-06    .84369E-02
  11  norm          .55511E-10    3.8379       -.11953E-05** at limit **
  12  Prefactor     .94524E-06    5017.8        .12891E-04** at limit **
  13  Prefactor     14.040        8.8947       -.57814E-06    .15000E-03
  14  norm          .94110        .48790        .32064E-07    .10233E-01
  15  norm          1.9903        1.2733       -.26235E-07   -.89889E-02
  16  Prefactor     .24569E-05    8.0369       -.20536E-06** at limit **
  17  Prefactor     .99920E-09    3.5586        .76780E-06** at limit **
  18  norm          .99990        .58761        .51059E-07   -.32496E-02
  19  Prefactor     17.335        16.167       -.85970E-06    .35552E-02
  20  Prefactor     .27756E-09    2.7276        .53767E-07** at limit **
  21  Normalizat    1.0434        .15709        .31982E-05    .49816E-03
  22  Prefactor     .97896        .11730        .37134E-05    .50243E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.6518
  norm       = 0
  Prefactor  = 2.22045e-10
  Prefactor  = 4.03092
  Prefactor  = 0
  Prefactor  = 1.16573e-09
  Prefactor  = 1.11022e-10
  Prefactor  = 2.98915
  Prefactor  = 3.88578e-10
  norm       = 3.83216
  norm       = 5.55112e-11
  Prefactor  = 9.45244e-07
  Prefactor  = 14.0401
  norm       = 0.941104
  norm       = 1.99028
  Prefactor  = 2.45687e-06
  Prefactor  = 9.99201e-10
  norm       = 0.999896
  Prefactor  = 17.3355
  Prefactor  = 2.77556e-10
  Normalizat = 1.04336
  Prefactor  = 0.978962
 **********
 **   18 **HESSE 
 **********

 FCN=   13945.47     FROM HESSE     STATUS=OK           396 CALLS     1831 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.652        11.787        .25955E-03   -1.5631    
   2  norm           .0000        .84953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .22204E-09    4.3273        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.0309        12.162        .50837E-03   -1.5668    
   5  Prefactor      .0000        1.9492        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .11657E-08    10.077        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11102E-09    3.3346        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.9892        3.2521        .58751E-03   -1.5673    
   9  Prefactor     .38858E-09    20.590        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.8322        2.4226        .51571E-03   -1.5669    
  11  norm          .55511E-10    3.9879        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .94524E-06    33.756        .17814E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.040        10.289        .26644E-03   -1.5633    
  14  norm          .94110        .48898        .42943E-03   -1.5689    
  15  norm          1.9903        1.3687        .73426E-03   -1.5680    
  16  Prefactor     .24569E-05    19.420        .16262E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .99920E-09    4.1863        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .99990        .59200        .43585E-03   -1.5688    
  19  Prefactor     17.335        16.335        .23775E-03   -1.5625    
  20  Prefactor     .27756E-09    2.7303        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0434        .13159        .61483E-01   -.91592    
  22  Prefactor     .97896        .97542E-01    .46005E-01   -.93434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.96572e-09
Minuit parameter uncertainties:
  1  11.7874
  2  2.98021e-06
  3  6.24742e-05
  4  12.1616
  5  1.37185e-05
  6  0.000217895
  7  3.47146e-05
  8  3.25211
  9  0.000184913
  10  2.4226
  11  2.32079e-05
  12  0.0112975
  13  10.2887
  14  0.488975
  15  1.36875
  16  0.013815
  17  0.000128067
  18  0.592001
  19  16.3354
  20  5.56254e-05
  21  0.131631
  22  0.0975592
number of points = 17284
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2228.6-1636_weekly_bin937
RA = 337.166, Dec = -16.6073
tmin = 805680001, tmax = 806284801
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='32680410', job_status='RUN', time_executed='2026-07-21 19:47:08.736229', time_epoch_executed='1784688428.74' WHERE source_name='4FGL J2228.6-1636' and cadence='weekly' and bin_id='937'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/32680410

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/32680410/ft1_4FGL_J2228.6-1636_weekly_bin937.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/32680410/ft2_4FGL_J2228.6-1636_weekly_bin937.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/32680410/ft1_4FGL_J2228.6-1636_weekly_bin937.fits outfile=/lscratch/kocevski/32680410/ft1_filteredMKT_4FGL_J2228.6-1636_weekly_bin937.fits ra=337.166 dec=-16.6073 rad=12.0 tmin=805680001.0 tmax=806284801.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.98
user 4.13
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/32680410/ft2_4FGL_J2228.6-1636_weekly_bin937.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/32680410/ft2_4FGL_J2228.6-1636_weekly_bin937.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/32680410/ft1_filteredMKT_4FGL_J2228.6-1636_weekly_bin937.fits evtable="EVENTS" outfile="/lscratch/kocevski/32680410/ft1_filtered_4FGL_J2228.6-1636_weekly_bin937.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.91
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 1231

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/32680410/ft1_filtered_4FGL_J2228.6-1636_weekly_bin937.fits" evtable="EVENTS" scfile=/lscratch/kocevski/32680410/ft2_4FGL_J2228.6-1636_weekly_bin937.fits sctable="SC_DATDone.

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

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  3.886e-10  1.849e-04  0.000e+00  1.000e+06 ( 1.000e-14)
229        Index:  2.058e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
230        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
485    Prefactor:  9.790e-01  9.756e-02  0.000e+00  1.000e+01 ( 1.000e+00)
486        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
487        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
484   Normalization:  1.043e+00  1.316e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 337.166 -16.607
Photon Flux Upper Limit: 3.53503172815e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00266379778585 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/32679941/likelihoodResults_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.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) = 13945.4918786
delta logL = -0.0234008626285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13944.7359575
delta logL = 0.732520188254

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44928E-03   1.0000          .0000       .10000E+07
     2 'Index     '    6.5636       1.0000          .0000       10.000    
     3 'Normalizat'    .98112       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0099       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   13945.47     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      364 TOTAL
                     EDM=   .65E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.9133        .42118E-03** at limit **
   2  Index         .79584        .57132       -.11150E-05     .0000    
   3  Normalizat    1.0434        1.3487        .62541E-05    .40444E-03
   4  Prefactor     .97896        1.2480        .20159E-05   -.57528E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.795838
  Normalizat = 1.04336
  Prefactor  = 0.978963
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   13945.47     FROM HESSE     STATUS=FAILED         9 CALLS      373 TOTAL
                     EDM=   .65E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.9133        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .95999E-02    .88098       -.11150E-05   -1389.6    
   3  Normalizat    1.0434        1.3487        .62541E-05    237.85    
   4  Prefactor     .97896        1.2480        .20159E-05   -460.88    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.51582e-11
Minuit parameter uncertainties:
  1  1.02297e-05
  2  0.575655
  3  1.39731
  4  1.28792
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) = 13945.4684777
delta logL = 2.36468622461e-11

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  0.000e+00  1.023e-05  0.000e+00  1.000e+06 ( 1.000e-14)
229        Index:  7.958e-01  5.757e-01  0.000e+00  1.000e+01 (-1.000e+00)
230        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
485    Prefactor:  9.790e-01  1.288e+00  0.000e+00  1.000e+01 ( 1.000e+00)
486        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
487        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
484   Normalization:  1.043e+00  1.397e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 337.166 -16.607

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/32679941/cmap_HighResolution_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.66e-03', job_status='DONE', photon_flux_upper_limit='3.54e-08', time_completed='2026-07-21 19:54:46.944640', job_id='32679941', GAL2='0.98', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1784688886.94', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='2.36e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='937' AND source_name='4FGL J2228.6-1636' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 21 19:54:47 PDT 2026

A" outfile=/lscratch/kocevski/32680297/ltcube_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.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/32680297/ft2_4FGL_J2228.6-1636_weekly_bin937.fits
.....................!
real 17.09
user 16.33
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/32680297/ft1_filtered_4FGL_J2228.6-1636_weekly_bin937.fits evtable="EVENTS" scfile=/lscratch/kocevski/32680297/ft2_4FGL_J2228.6-1636_weekly_bin937.fits sctable="SC_DATA" expcube=/lscratch/kocevski/32680297/ltcube_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.fits outfile=/lscratch/kocevski/32680297/expmap_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.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/32680297/ltcube_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.fits
.....................!
real 65.25
user 60.49
sys 3.81

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

Setting source of interest to:
4FGL J2228.6-1636 @ 337.166 -16.6073

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/32680297/ft1_filtered_4FGL_J2228.6-1636_weekly_bin937.fits scfile=/lscratch/kocevski/32680297/ft2_4FGL_J2228.6-1636_weekly_bin937.fits outfile=/lscratch/kocevski/32680297/cmap_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.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=337.166 yref=-16.6073 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.99
user 0.21
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/32680297/ft1_filtered_4FGL_J2228.6-1636_weekly_bin937.fits scfile=/lscratch/kocevski/32680297/ft2_4FGL_J2228.6-1636_weekly_bin937.fits outfile=/lscratch/kocevski/32680297/cmap_HighResolution_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.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=337.166 yref=-16.6073 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.85
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/32680297/ft1_filtered_4FGL_J2228.6-1636_weekly_bin937.fits evtable="EVENTS" scfile=/lscratch/kocevski/32680297/ft2_4FGL_J2228.6-1636_weekly_bin937.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/32680297/Model_4FGL_J2228.6-1636_weekly_bin937.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 A" outfile=/lscratch/kocevski/32680410/ltcube_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.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/32680410/ft2_4FGL_J2228.6-1636_weekly_bin937.fits
.....................!
real 18.02
user 17.06
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/32680410/ft1_filtered_4FGL_J2228.6-1636_weekly_bin937.fits evtable="EVENTS" scfile=/lscratch/kocevski/32680410/ft2_4FGL_J2228.6-1636_weekly_bin937.fits sctable="SC_DATA" expcube=/lscratch/kocevski/32680410/ltcube_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.fits outfile=/lscratch/kocevski/32680410/expmap_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.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/32680410/ltcube_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.fits
.....................!
real 65.09
user 60.39
sys 3.87

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

Setting source of interest to:
4FGL J2228.6-1636 @ 337.166 -16.6073

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/32680410/ft1_filtered_4FGL_J2228.6-1636_weekly_bin937.fits scfile=/lscratch/kocevski/32680410/ft2_4FGL_J2228.6-1636_weekly_bin937.fits outfile=/lscratch/kocevski/32680410/cmap_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.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=337.166 yref=-16.6073 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.97
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/32680410/ft1_filtered_4FGL_J2228.6-1636_weekly_bin937.fits scfile=/lscratch/kocevski/32680410/ft2_4FGL_J2228.6-1636_weekly_bin937.fits outfile=/lscratch/kocevski/32680410/cmap_HighResolution_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.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=337.166 yref=-16.6073 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.78
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/32680410/ft1_filtered_4FGL_J2228.6-1636_weekly_bin937.fits evtable="EVENTS" scfile=/lscratch/kocevski/32680410/ft2_4FGL_J2228.6-1636_weekly_bin937.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/32680410/Model_4FGL_J2228.6-1636_weekly_bin937.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/32680297/ft1_filtered_4FGL_J2228.6-1636_weekly_bin937.fits.....................!
real 40.34
user 38.45
sys 1.05

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/32680297/ft1_filtered_4FGL_J2228.6-1636_weekly_bin937.fits', '/lscratch/kocevski/32680297/ft2_4FGL_J2228.6-1636_weekly_bin937.fits', expMap='/lscratch/kocevski/32680297/expmap_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.fits', expCube='/lscratch/kocevski/32680297/ltcube_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/32680297/Model_4FGL_J2228.6-1636_weekly_bin937.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2228.6-1636'

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  6.423e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
229        Index:  2.058e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
230        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/32680297/ft1_filtered_4FGL_J2228.6-1636_weekly_bin937.fits
Spacecraft file(s): /lscratch/kocevski/32680297/ft2_4FGL_J2228.6-1636_weekly_bin937.fits
Exposure map: /lscratch/kocevski/32680297/expmap_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.fits
Exposure cube: /lscratch/kocevski/32680297/ltcube_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/32680297/Model_4FGL_J2228.6-1636_weekly_bin937.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) = 13945.533339

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.861       1.0000          .0000       .10000E+07
     2 'norm      '    .97700E-08   1.0000          .0000       .10000E+07
     3 'Prefactor '    .63682E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    3.9341       1.0000          .0000       .10000E+07
     5 'Prefactor '    .56130E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .20189E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .42824E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    2.9834       1.0000          .0000       .10000E+07
     9 'Prefactor '    .28080E-03   1.0000          .0000       .10000E+07
    10 'norm      '    3.8266       1.0000          .0000       .10000E+07
    11 'norm      '    .17495E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .99191       1.0000          .0000       .10000E+07
    13 'Prefactor '    14.104       1.0000          .0000       .10000E+07
    14 'norm      '    .94134       1.0000          .0000       .10000E+07
    15 'norm      '    1.9896       1.0000          .0000       .10000E+07
    16 'Prefactor '    .33691E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .10556E-05   1.0000          .0000       .10000E+07
    18 'norm      '    .99491       1.0000          .0000       .10000E+07
    19 'Prefactor '    17.706       1.0000          .0000       .10000E+07
    20 'Prefactor '    .18603E-03   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0424       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97909       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13945.47     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     1435 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.652        11.585       -.52657E-06   -.61805E-02
   2  norm           .0000        .84742       -.86245E-07** at limit **
   3  Prefactor     .22204E-09    1.8171        .65710E-06** at limit **
   4  Prefactor     4.0309        11.948        .11861E-05    .12069E-03
   5  Prefactor      .0000        1.9471        .18900E-06** at limit **
   6  Prefactor     .11657E-08    10.054        .20092E-05** at limit **
   7  Prefactor     .11102E-09    3.3202        .95321E-07** at limit **
   8  Prefactor     2.9892        3.2075        .40898E-06    .39284E-02
   9  Prefactor     .38858E-09    20.588        .21362E-06** at limit **
  10  norm          3.8322        2.3905        .38657E-06    .84369E-02
  11  norm          .55511E-10    3.8379       -.11953E-05** at limit **
  12  Prefactor     .94524E-06    5017.8        .12891E-04** at limit **
  13  Prefactor     14.040        8.8947       -.57814E-06    .15000E-03
  14  norm          .94110        .48790        .32064E-07    .10233E-01
  15  norm          1.9903        1.2733       -.26235E-07   -.89889E-02
  16  Prefactor     .24569E-05    8.0369       -.20536E-06** at limit **
  17  Prefactor     .99920E-09    3.5586        .76780E-06** at limit **
  18  norm          .99990        .58761        .51059E-07   -.32496E-02
  19  Prefactor     17.335        16.167       -.85970E-06    .35552E-02
  20  Prefactor     .27756E-09    2.7276        .53767E-07** at limit **
  21  Normalizat    1.0434        .15709        .31982E-05    .49816E-03
  22  Prefactor     .97896        .11730        .37134E-05    .50243E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.6518
  norm       = 0
  Prefactor  = 2.22045e-10
  Prefactor  = 4.03092
  Prefactor  = 0
  Prefactor  = 1.16573e-09
  Prefactor  = 1.11022e-10
  Prefactor  = 2.98915
  Prefactor  = 3.88578e-10
  norm       = 3.83216
  norm       = 5.55112e-11
  Prefactor  = 9.45244e-07
  Prefactor  = 14.0401
  norm       = 0.941104
  norm       = 1.99028
  Prefactor  = 2.45687e-06
  Prefactor  = 9.99201e-10
  norm       = 0.999896
  Prefactor  = 17.3355
  Prefactor  = 2.77556e-10
  Normalizat = 1.04336
  Prefactor  = 0.978962
 **********
 **   18 **HESSE 
 **********

 FCN=   13945.47     FROM HESSE     STATUS=OK           396 CALLS     1831 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.652        11.787        .25955E-03   -1.5631    
   2  norm           .0000        .84953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .22204E-09    4.3273        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.0309        12.162        .50837E-03   -1.5668    
   5  Prefactor      .0000        1.9492        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .11657E-08    10.077        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11102E-09    3.3346        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.9892        3.2521        .58751E-03   -1.5673    
   9  Prefactor     .38858E-09    20.590        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.8322        2.4226        .51571E-03   -1.5669    
  11  norm          .55511E-10    3.9879        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .94524E-06    33.756        .17814E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.040        10.289        .26644E-03   -1.5633    
  14  norm          .94110        .48898        .42943E-03   -1.5689    
  15  norm          1.9903        1.3687        .73426E-03   -1.5680    
  16  Prefactor     .24569E-05    19.420        .16262E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .99920E-09    4.1863        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .99990        .59200        .43585E-03   -1.5688    
  19  Prefactor     17.335        16.335        .23775E-03   -1.5625    
  20  Prefactor     .27756E-09    2.7303        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0434        .13159        .61483E-01   -.91592    
  22  Prefactor     .97896        .97542E-01    .46005E-01   -.93434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.96572e-09
Minuit parameter uncertainties:
  1  11.7874
  2  2.98021e-06
  3  6.24742e-05
  4  12.1616
  5  1.37185e-05
  6  0.000217895
  7  3.47146e-05
  8  3.25211
  9  0.000184913
  10  2.4226
  11  2.32079e-05
  12  0.0112975
  13  10.2887
  14  0.488975
  15  1.36875
  16  0.013815
  17  0.000128067
  18  0.592001
  19  16.3354
  20  5.56254e-05
  21  0.131631
  22  0.0975592
source GAL_V02
Working on...
/lscratch/kocevski/32680410/ft1_filtered_4FGL_J2228.6-1636_weekly_bin937.fits.....................!
real 40.97
user 39.13
sys 1.03

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/32680410/ft1_filtered_4FGL_J2228.6-1636_weekly_bin937.fits', '/lscratch/kocevski/32680410/ft2_4FGL_J2228.6-1636_weekly_bin937.fits', expMap='/lscratch/kocevski/32680410/expmap_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.fits', expCube='/lscratch/kocevski/32680410/ltcube_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/32680410/Model_4FGL_J2228.6-1636_weekly_bin937.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2228.6-1636'

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  6.423e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
229        Index:  2.058e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
230        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/32680410/ft1_filtered_4FGL_J2228.6-1636_weekly_bin937.fits
Spacecraft file(s): /lscratch/kocevski/32680410/ft2_4FGL_J2228.6-1636_weekly_bin937.fits
Exposure map: /lscratch/kocevski/32680410/expmap_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.fits
Exposure cube: /lscratch/kocevski/32680410/ltcube_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/32680410/Model_4FGL_J2228.6-1636_weekly_bin937.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) = 13945.533339

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.861       1.0000          .0000       .10000E+07
     2 'norm      '    .97700E-08   1.0000          .0000       .10000E+07
     3 'Prefactor '    .63682E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    3.9341       1.0000          .0000       .10000E+07
     5 'Prefactor '    .56130E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .20189E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .42824E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    2.9834       1.0000          .0000       .10000E+07
     9 'Prefactor '    .28080E-03   1.0000          .0000       .10000E+07
    10 'norm      '    3.8266       1.0000          .0000       .10000E+07
    11 'norm      '    .17495E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .99191       1.0000          .0000       .10000E+07
    13 'Prefactor '    14.104       1.0000          .0000       .10000E+07
    14 'norm      '    .94134       1.0000          .0000       .10000E+07
    15 'norm      '    1.9896       1.0000          .0000       .10000E+07
    16 'Prefactor '    .33691E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .10556E-05   1.0000          .0000       .10000E+07
    18 'norm      '    .99491       1.0000          .0000       .10000E+07
    19 'Prefactor '    17.706       1.0000          .0000       .10000E+07
    20 'Prefactor '    .18603E-03   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0424       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97909       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13945.47     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     1435 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.652        11.585       -.52657E-06   -.61805E-02
   2  norm           .0000        .84742       -.86245E-07** at limit **
   3  Prefactor     .22204E-09    1.8171        .65710E-06** at limit **
   4  Prefactor     4.0309        11.948        .11861E-05    .12069E-03
   5  Prefactor      .0000        1.9471        .18900E-06** at limit **
   6  Prefactor     .11657E-08    10.054        .20092E-05** at limit **
   7  Prefactor     .11102E-09    3.3202        .95321E-07** at limit **
   8  Prefactor     2.9892        3.2075        .40898E-06    .39284E-02
   9  Prefactor     .38858E-09    20.588        .21362E-06** at limit **
  10  norm          3.8322        2.3905        .38657E-06    .84369E-02
  11  norm          .55511E-10    3.8379       -.11953E-05** at limit **
  12  Prefactor     .94524E-06    5017.8        .12891E-04** at limit **
  13  Prefactor     14.040        8.8947       -.57814E-06    .15000E-03
  14  norm          .94110        .48790        .32064E-07    .10233E-01
  15  norm          1.9903        1.2733       -.26235E-07   -.89889E-02
  16  Prefactor     .24569E-05    8.0369       -.20536E-06** at limit **
  17  Prefactor     .99920E-09    3.5586        .76780E-06** at limit **
  18  norm          .99990        .58761        .51059E-07   -.32496E-02
  19  Prefactor     17.335        16.167       -.85970E-06    .35552E-02
  20  Prefactor     .27756E-09    2.7276        .53767E-07** at limit **
  21  Normalizat    1.0434        .15709        .31982E-05    .49816E-03
  22  Prefactor     .97896        .11730        .37134E-05    .50243E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.6518
  norm       = 0
  Prefactor  = 2.22045e-10
  Prefactor  = 4.03092
  Prefactor  = 0
  Prefactor  = 1.16573e-09
  Prefactor  = 1.11022e-10
  Prefactor  = 2.98915
  Prefactor  = 3.88578e-10
  norm       = 3.83216
  norm       = 5.55112e-11
  Prefactor  = 9.45244e-07
  Prefactor  = 14.0401
  norm       = 0.941104
  norm       = 1.99028
  Prefactor  = 2.45687e-06
  Prefactor  = 9.99201e-10
  norm       = 0.999896
  Prefactor  = 17.3355
  Prefactor  = 2.77556e-10
  Normalizat = 1.04336
  Prefactor  = 0.978962
Done.

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

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  3.886e-10  1.849e-04  0.000e+00  1.000e+06 ( 1.000e-14)
229        Index:  2.058e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
230        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
485    Prefactor:  9.790e-01  9.756e-02  0.000e+00  1.000e+01 ( 1.000e+00)
486        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
487        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
484   Normalization:  1.043e+00  1.316e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 337.166 -16.607
Photon Flux Upper Limit: 3.53503172815e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00266379778585 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/32680297/likelihoodResults_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.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) = 13945.4918786
delta logL = -0.0234008626285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13944.7359575
delta logL = 0.732520188254

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44928E-03   1.0000          .0000       .10000E+07
     2 'Index     '    6.5636       1.0000          .0000       10.000    
     3 'Normalizat'    .98112       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0099       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   13945.47     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      364 TOTAL
                     EDM=   .65E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.9133        .42118E-03** at limit **
   2  Index         .79584        .57132       -.11150E-05     .0000    
   3  Normalizat    1.0434        1.3487        .62541E-05    .40444E-03
   4  Prefactor     .97896        1.2480        .20159E-05   -.57528E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.795838
  Normalizat = 1.04336
  Prefactor  = 0.978963
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   13945.47     FROM HESSE     STATUS=FAILED         9 CALLS      373 TOTAL
                     EDM=   .65E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.9133        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .95999E-02    .88098       -.11150E-05   -1389.6    
   3  Normalizat    1.0434        1.3487        .62541E-05    237.85    
   4  Prefactor     .97896        1.2480        .20159E-05   -460.88    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.51582e-11
Minuit parameter uncertainties:
  1  1.02297e-05
  2  0.575655
  3  1.39731
  4  1.28792
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) = 13945.4684777
delta logL = 2.36468622461e-11

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  0.000e+00  1.023e-05  0.000e+00  1.000e+06 ( 1.000e-14)
229        Index:  7.958e-01  5.757e-01  0.000e+00  1.000e+01 (-1.000e+00)
230        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
485    Prefactor:  9.790e-01  1.288e+00  0.000e+00  1.000e+01 ( 1.000e+00)
486        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
487        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
484   Normalization:  1.043e+00  1.397e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 337.166 -16.607

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/32680297/cmap_HighResolution_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.66e-03', job_status='DONE', photon_flux_upper_limit='3.54e-08', time_completed='2026-07-21 19:58:41.500746', job_id='32680297', GAL2='0.98', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1784689121.5', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='2.36e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='937' AND source_name='4FGL J2228.6-1636' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 21 19:58:41 PDT 2026

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

 FCN=   13945.47     FROM HESSE     STATUS=OK           396 CALLS     1831 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.652        11.787        .25955E-03   -1.5631    
   2  norm           .0000        .84953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .22204E-09    4.3273        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.0309        12.162        .50837E-03   -1.5668    
   5  Prefactor      .0000        1.9492        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .11657E-08    10.077        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11102E-09    3.3346        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.9892        3.2521        .58751E-03   -1.5673    
   9  Prefactor     .38858E-09    20.590        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.8322        2.4226        .51571E-03   -1.5669    
  11  norm          .55511E-10    3.9879        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .94524E-06    33.756        .17814E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.040        10.289        .26644E-03   -1.5633    
  14  norm          .94110        .48898        .42943E-03   -1.5689    
  15  norm          1.9903        1.3687        .73426E-03   -1.5680    
  16  Prefactor     .24569E-05    19.420        .16262E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .99920E-09    4.1863        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .99990        .59200        .43585E-03   -1.5688    
  19  Prefactor     17.335        16.335        .23775E-03   -1.5625    
  20  Prefactor     .27756E-09    2.7303        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0434        .13159        .61483E-01   -.91592    
  22  Prefactor     .97896        .97542E-01    .46005E-01   -.93434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.96572e-09
Minuit parameter uncertainties:
  1  11.7874
  2  2.98021e-06
  3  6.24742e-05
  4  12.1616
  5  1.37185e-05
  6  0.000217895
  7  3.47146e-05
  8  3.25211
  9  0.000184913
  10  2.4226
  11  2.32079e-05
  12  0.0112975
  13  10.2887
  14  0.488975
  15  1.36875
  16  0.013815
  17  0.000128067
  18  0.592001
  19  16.3354
  20  5.56254e-05
  21  0.131631
  22  0.0975592
Done.

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

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  3.886e-10  1.849e-04  0.000e+00  1.000e+06 ( 1.000e-14)
229        Index:  2.058e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
230        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
485    Prefactor:  9.790e-01  9.756e-02  0.000e+00  1.000e+01 ( 1.000e+00)
486        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
487        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
484   Normalization:  1.043e+00  1.316e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 337.166 -16.607
Photon Flux Upper Limit: 3.53503172815e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00266379778585 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/32680410/likelihoodResults_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.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) = 13945.4918786
delta logL = -0.0234008626285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13944.7359575
delta logL = 0.732520188254

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44928E-03   1.0000          .0000       .10000E+07
     2 'Index     '    6.5636       1.0000          .0000       10.000    
     3 'Normalizat'    .98112       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0099       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   13945.47     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      364 TOTAL
                     EDM=   .65E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.9133        .42118E-03** at limit **
   2  Index         .79584        .57132       -.11150E-05     .0000    
   3  Normalizat    1.0434        1.3487        .62541E-05    .40444E-03
   4  Prefactor     .97896        1.2480        .20159E-05   -.57528E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.795838
  Normalizat = 1.04336
  Prefactor  = 0.978963
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   13945.47     FROM HESSE     STATUS=FAILED         9 CALLS      373 TOTAL
                     EDM=   .65E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.9133        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .95999E-02    .88098       -.11150E-05   -1389.6    
   3  Normalizat    1.0434        1.3487        .62541E-05    237.85    
   4  Prefactor     .97896        1.2480        .20159E-05   -460.88    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.51582e-11
Minuit parameter uncertainties:
  1  1.02297e-05
  2  0.575655
  3  1.39731
  4  1.28792
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) = 13945.4684777
delta logL = 2.36468622461e-11

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  0.000e+00  1.023e-05  0.000e+00  1.000e+06 ( 1.000e-14)
229        Index:  7.958e-01  5.757e-01  0.000e+00  1.000e+01 (-1.000e+00)
230        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
485    Prefactor:  9.790e-01  1.288e+00  0.000e+00  1.000e+01 ( 1.000e+00)
486        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
487        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
484   Normalization:  1.043e+00  1.397e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 337.166 -16.607

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/32680410/cmap_HighResolution_805680001_806284801_4FGL_J2228.6-1636_weekly_bin937.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.66e-03', job_status='DONE', photon_flux_upper_limit='3.54e-08', time_completed='2026-07-21 19:59:35.749688', job_id='32680410', GAL2='0.98', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1784689175.75', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='2.36e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='937' AND source_name='4FGL J2228.6-1636' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 21 19:59:36 PDT 2026

