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

 FCN=   3269.980     FROM HESSE     STATUS=OK           253 CALLS     1193 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6305        9.8536        .36555E-03   -1.5653    
   2  norm          .31974E-07    31.912        .12097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .16653E-09    5.8683        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .69349        .77180        .61299E-03   -1.5691    
   5  Prefactor     .28882E-06    11.040        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.3382        12.589        .56455E-03   -1.5671    
   7  Prefactor     .31519E-06    13.301        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .24930E-06    10.583        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .22204E-09    3.2489        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        2.4852        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          12.738        6.3110        .28014E-03   -1.5637    
  12  Prefactor     .38797E-06    13.830        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .39493        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.6827        5.9499        .52418E-03   -1.5670    
  15  Prefactor     4.4973        8.9780        .47291E-03   -1.5666    
  16  Normalizat    1.2387        .23212        .34006E-01   -.85414    
  17  Prefactor     .50121        .19902        .62396E-01   -1.1192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31005e-07
Minuit parameter uncertainties:
  1  9.85358
  2  0.00202083
  3  6.27636e-05
  4  0.771801
  5  0.00357133
  6  12.5894
  7  0.0040952
  8  0.00324853
  9  5.28741e-05
  10  1.45631e-05
  11  6.311
  12  0.00463259
  13  1.13531e-06
  14  5.9499
  15  8.97806
  16  0.232316
  17  0.199295
Done.

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

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  3.880e-07  4.633e-03  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.542e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  5.012e-01  1.993e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  1.239e+00  2.323e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 352.839 -15.978
Photon Flux Upper Limit: 1.00272415906e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00781961435515 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/36255194/likelihoodResults_809308801_809568001_4FGL_J2331.3-1558_daily_bin2199.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) = 3270.01516359
delta logL = -0.0351921620809

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3269.9799729
delta logL = -1.4697025108e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46796E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.8099       1.0000          .0000       10.000    
     3 'Normalizat'    1.2383       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50158       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   3269.980     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      251 TOTAL
                     EDM=   .48E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        14.875        .42118E-03** at limit **
   2  Index         2.4580        1.1489        .18084E-03     .0000    
   3  Normalizat    1.2387        1.0946        .13152E-04    .13829E-03
   4  Prefactor     .50121        .84354       -.97261E-05    .16252E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.45798
  Normalizat = 1.23873
  Prefactor  = 0.501209
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   3269.980     FROM HESSE     STATUS=FAILED         9 CALLS      260 TOTAL
                     EDM=   .48E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        14.875        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .67957        1.8706        .18084E-03   -.53333    
   3  Normalizat    1.2387        1.0946        .13152E-04   -.85414    
   4  Prefactor     .50121        .84354       -.97261E-05   -1.1192    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.81894e-11
Minuit parameter uncertainties:
  1  8.88918e-06
  2  1.16304
  3  1.11597
  4  0.86611
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) = 3269.97997141
delta logL = 1.39739313454e-08

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  0.000e+00  8.889e-06  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.458e+00  1.163e+00  0.000e+00  1.000e+01 (-1.000e+00)
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  5.012e-01  8.661e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  1.239e+00  1.116e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 352.839 -15.978

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/36255194/cmap_HighResolution_809308801_809568001_4FGL_J2331.3-1558_daily_bin2199.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.82e-03', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2026-08-28 18:19:54.894191', job_id='36255194', GAL2='0.50', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1787966394.89', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.50', dlogl='1.40e-08', ts2='0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='2199' AND source_name='4FGL J2331.3-1558' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 28 18:19:54 PDT 2026

outfile=/lscratch/kocevski/36255412/ltcube_809308801_809568001_4FGL_J2331.3-1558_daily_bin2199.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/36255412/ft2_4FGL_J2331.3-1558_daily_bin2199.fits
.....................!
real 8.36
user 7.86
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/36255412/ft1_filtered_4FGL_J2331.3-1558_daily_bin2199.fits evtable="EVENTS" scfile=/lscratch/kocevski/36255412/ft2_4FGL_J2331.3-1558_daily_bin2199.fits sctable="SC_DATA" expcube=/lscratch/kocevski/36255412/ltcube_809308801_809568001_4FGL_J2331.3-1558_daily_bin2199.fits outfile=/lscratch/kocevski/36255412/expmap_809308801_809568001_4FGL_J2331.3-1558_daily_bin2199.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/36255412/ltcube_809308801_809568001_4FGL_J2331.3-1558_daily_bin2199.fits
.....................!
real 71.65
user 67.05
sys 4.02

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

Setting source of interest to:
4FGL J2331.3-1558 @ 352.839 -15.9777

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/36255412/ft1_filtered_4FGL_J2331.3-1558_daily_bin2199.fits scfile=/lscratch/kocevski/36255412/ft2_4FGL_J2331.3-1558_daily_bin2199.fits outfile=/lscratch/kocevski/36255412/cmap_809308801_809568001_4FGL_J2331.3-1558_daily_bin2199.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=352.839 yref=-15.9777 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 51.19
user 0.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/36255412/ft1_filtered_4FGL_J2331.3-1558_daily_bin2199.fits scfile=/lscratch/kocevski/36255412/ft2_4FGL_J2331.3-1558_daily_bin2199.fits outfile=/lscratch/kocevski/36255412/cmap_HighResolution_809308801_809568001_4FGL_J2331.3-1558_daily_bin2199.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=352.839 yref=-15.9777 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.51
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/36255412/ft1_filtered_4FGL_J2331.3-1558_daily_bin2199.fits evtable="EVENTS" scfile=/lscratch/kocevski/36255412/ft2_4FGL_J2331.3-1558_daily_bin2199.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/36255412/Model_4FGL_J2331.3-1558_daily_bin2199.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/36255412/ft1_filtered_4FGL_J2331.3-1558_daily_bin2199.fits.....................!
real 15.40
user 14.02
sys 1.06

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/36255412/ft1_filtered_4FGL_J2331.3-1558_daily_bin2199.fits', '/lscratch/kocevski/36255412/ft2_4FGL_J2331.3-1558_daily_bin2199.fits', expMap='/lscratch/kocevski/36255412/expmap_809308801_809568001_4FGL_J2331.3-1558_daily_bin2199.fits', expCube='/lscratch/kocevski/36255412/ltcube_809308801_809568001_4FGL_J2331.3-1558_daily_bin2199.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/36255412/Model_4FGL_J2331.3-1558_daily_bin2199.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2331.3-1558'

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  2.463e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.542e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/36255412/ft1_filtered_4FGL_J2331.3-1558_daily_bin2199.fits
Spacecraft file(s): /lscratch/kocevski/36255412/ft2_4FGL_J2331.3-1558_daily_bin2199.fits
Exposure map: /lscratch/kocevski/36255412/expmap_809308801_809568001_4FGL_J2331.3-1558_daily_bin2199.fits
Exposure cube: /lscratch/kocevski/36255412/ltcube_809308801_809568001_4FGL_J2331.3-1558_daily_bin2199.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/36255412/Model_4FGL_J2331.3-1558_daily_bin2199.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) = 3270.0075567

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.5170       1.0000          .0000       .10000E+07
     2 'norm      '    .18247       1.0000          .0000       .10000E+07
     3 'Prefactor '    .27756E-08   1.0000          .0000       .10000E+07
     4 'norm      '    .69274       1.0000          .0000       .10000E+07
     5 'Prefactor '    .40426E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    3.2173       1.0000          .0000       .10000E+07
     7 'Prefactor '    .13146E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .64562E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .18983E-03   1.0000          .0000       .10000E+07
    10 'norm      '    .27530E-04   1.0000          .0000       .10000E+07
    11 'norm      '    12.762       1.0000          .0000       .10000E+07
    12 'Prefactor '    .32475E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .43665E-06   1.0000          .0000       .10000E+07
    14 'norm      '    3.7081       1.0000          .0000       .10000E+07
    15 'Prefactor '    4.5273       1.0000          .0000       .10000E+07
    16 'Normalizat'    1.2386       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .50121       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3269.980     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      940 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6305        1.2360        .19417E-07    .37655E-01
   2  norm          .31974E-07    27.995        .59773E-06** at limit **
   3  Prefactor     .16653E-09    5.8599        .79193E-06** at limit **
   4  norm          .69349        .76638        .13697E-06   -.10908E-02
   5  Prefactor     .28882E-06    4.7521       -.10566E-06** at limit **
   6  Prefactor     3.3382        1.0739       -.52934E-09   -.65100E-02
   7  Prefactor     .31519E-06    5.9505       -.58241E-06** at limit **
   8  Prefactor     .24930E-06    6.0869       -.37505E-07** at limit **
   9  Prefactor     .22204E-09    3.2304       -.64021E-06** at limit **
  10  norm           .0000        2.4753       -.14875E-06** at limit **
  11  norm          12.738        6.2486       -.36214E-07    .70441E-02
  12  Prefactor     .38797E-06    7.6493       -.65933E-06** at limit **
  13  norm           .0000        .39620       -.13309E-06** at limit **
  14  norm          3.6827        5.8526       -.38809E-06    .11854E-02
  15  Prefactor     4.4973        3.2414        .12581E-06    .25513E-01
  16  Normalizat    1.2387        .26032        .22739E-05   -.55275E-04
  17  Prefactor     .50121        .22559        .72322E-05   -.31638E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.63047
  norm       = 3.19744e-08
  Prefactor  = 1.66533e-10
  norm       = 0.693491
  Prefactor  = 2.88825e-07
  Prefactor  = 3.33822
  Prefactor  = 3.15192e-07
  Prefactor  = 2.49301e-07
  Prefactor  = 2.22045e-10
  norm       = 0
  norm       = 12.7382
  Prefactor  = 3.87967e-07
  norm       = 0
  norm       = 3.68271
  Prefactor  = 4.49729
  Normalizat = 1.23873
  Prefactor  = 0.501208
 **********
 **   18 **HESSE 
 **********

 FCN=   3269.980     FROM HESSE     STATUS=OK           253 CALLS     1193 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6305        9.8536        .36555E-03   -1.5653    
   2  norm          .31974E-07    31.912        .12097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .16653E-09    5.8683        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .69349        .77180        .61299E-03   -1.5691    
   5  Prefactor     .28882E-06    11.040        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.3382        12.589        .56455E-03   -1.5671    
   7  Prefactor     .31519E-06    13.301        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .24930E-06    10.583        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .22204E-09    3.2489        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        2.4852        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          12.738        6.3110        .28014E-03   -1.5637    
  12  Prefactor     .38797E-06    13.830        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .39493        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.6827        5.9499        .52418E-03   -1.5670    
  15  Prefactor     4.4973        8.9780        .47291E-03   -1.5666    
  16  Normalizat    1.2387        .23212        .34006E-01   -.85414    
  17  Prefactor     .50121        .19902        .62396E-01   -1.1192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31005e-07
Minuit parameter uncertainties:
  1  9.85358
  2  0.00202083
  3  6.27636e-05
  4  0.771801
  5  0.00357133
  6  12.5894
  7  0.0040952
  8  0.00324853
  9  5.28741e-05
  10  1.45631e-05
  11  6.311
  12  0.00463259
  13  1.13531e-06
  14  5.9499
  15  8.97806
  16  0.232316
  17  0.199295
Done.

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

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  3.880e-07  4.633e-03  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.542e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  5.012e-01  1.993e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  1.239e+00  2.323e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 352.839 -15.978
Photon Flux Upper Limit: 1.00272415906e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00781961435515 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/36255412/likelihoodResults_809308801_809568001_4FGL_J2331.3-1558_daily_bin2199.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) = 3270.01516359
delta logL = -0.0351921620809

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3269.9799729
delta logL = -1.4697025108e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46796E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.8099       1.0000          .0000       10.000    
     3 'Normalizat'    1.2383       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50158       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   3269.980     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      251 TOTAL
                     EDM=   .48E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        14.875        .42118E-03** at limit **
   2  Index         2.4580        1.1489        .18084E-03     .0000    
   3  Normalizat    1.2387        1.0946        .13152E-04    .13829E-03
   4  Prefactor     .50121        .84354       -.97261E-05    .16252E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.45798
  Normalizat = 1.23873
  Prefactor  = 0.501209
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   3269.980     FROM HESSE     STATUS=FAILED         9 CALLS      260 TOTAL
                     EDM=   .48E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        14.875        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .67957        1.8706        .18084E-03   -.53333    
   3  Normalizat    1.2387        1.0946        .13152E-04   -.85414    
   4  Prefactor     .50121        .84354       -.97261E-05   -1.1192    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.81894e-11
Minuit parameter uncertainties:
  1  8.88918e-06
  2  1.16304
  3  1.11597
  4  0.86611
/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
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) = 3269.97997141
delta logL = 1.39739313454e-08

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  0.000e+00  8.889e-06  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.458e+00  1.163e+00  0.000e+00  1.000e+01 (-1.000e+00)
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  5.012e-01  8.661e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  1.239e+00  1.116e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 352.839 -15.978

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/36255412/cmap_HighResolution_809308801_809568001_4FGL_J2331.3-1558_daily_bin2199.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.82e-03', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2026-08-28 18:21:55.753056', job_id='36255412', GAL2='0.50', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1787966515.75', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.50', dlogl='1.40e-08', ts2='0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='2199' AND source_name='4FGL J2331.3-1558' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 28 18:21:55 PDT 2026


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

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

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

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

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

/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
number of points = 7582
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2331.3-1558_daily_bin2199
RA = 352.839, Dec = -15.9777
tmin = 809308801, tmax = 809568001
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='36255576', job_status='RUN', time_executed='2026-08-28 18:24:56.366869', time_epoch_executed='1787966696.37' WHERE source_name='4FGL J2331.3-1558' and cadence='daily' and bin_id='2199'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/36255576

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/36255576/ft1_4FGL_J2331.3-1558_daily_bin2199.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/36255576/ft2_4FGL_J2331.3-1558_daily_bin2199.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/36255576/ft1_4FGL_J2331.3-1558_daily_bin2199.fits outfile=/lscratch/kocevski/36255576/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin2199.fits ra=352.839 dec=-15.9777 rad=12.0 tmin=809308801.0 tmax=809568001.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 3.72
user 2.99
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/36255576/ft2_4FGL_J2331.3-1558_daily_bin2199.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/36255576/ft2_4FGL_J2331.3-1558_daily_bin2199.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/36255576/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin2199.fits evtable="EVENTS" outfile="/lscratch/kocevski/36255576/ft1_filtered_4FGL_J2331.3-1558_daily_bin2199.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.61
user 0.20
sys 0.14

Number of photons that the gtmktime cut: 281

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/36255576/ft1_filtered_4FGL_J2331.3-1558_daily_bin2199.fits" evtable="EVENTS" scfile=/lscratch/kocevski/36255576/ft2_4FGL_J2331.3-1558_daily_bin2199.fits sctable="SC_DATA" 
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)
outfile=/lscratch/kocevski/36255576/ltcube_809308801_809568001_4FGL_J2331.3-1558_daily_bin2199.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/36255576/ft2_4FGL_J2331.3-1558_daily_bin2199.fits
.....................!
real 11.02
user 10.26
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/36255576/ft1_filtered_4FGL_J2331.3-1558_daily_bin2199.fits evtable="EVENTS" scfile=/lscratch/kocevski/36255576/ft2_4FGL_J2331.3-1558_daily_bin2199.fits sctable="SC_DATA" expcube=/lscratch/kocevski/36255576/ltcube_809308801_809568001_4FGL_J2331.3-1558_daily_bin2199.fits outfile=/lscratch/kocevski/36255576/expmap_809308801_809568001_4FGL_J2331.3-1558_daily_bin2199.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/36255576/ltcube_809308801_809568001_4FGL_J2331.3-1558_daily_bin2199.fits
.....................!
real 70.05
user 64.57
sys 3.95

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

Setting source of interest to:
4FGL J2331.3-1558 @ 352.839 -15.9777

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/36255576/ft1_filtered_4FGL_J2331.3-1558_daily_bin2199.fits scfile=/lscratch/kocevski/36255576/ft2_4FGL_J2331.3-1558_daily_bin2199.fits outfile=/lscratch/kocevski/36255576/cmap_809308801_809568001_4FGL_J2331.3-1558_daily_bin2199.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=352.839 yref=-15.9777 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 23.45
user 0.21
sys 0.20

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/36255576/ft1_filtered_4FGL_J2331.3-1558_daily_bin2199.fits scfile=/lscratch/kocevski/36255576/ft2_4FGL_J2331.3-1558_daily_bin2199.fits outfile=/lscratch/kocevski/36255576/cmap_HighResolution_809308801_809568001_4FGL_J2331.3-1558_daily_bin2199.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=352.839 yref=-15.9777 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.65
user 0.21
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/36255576/ft1_filtered_4FGL_J2331.3-1558_daily_bin2199.fits evtable="EVENTS" scfile=/lscratch/kocevski/36255576/ft2_4FGL_J2331.3-1558_daily_bin2199.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/36255576/Model_4FGL_J2331.3-1558_daily_bin2199.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/36255576/ft1_filtered_4FGL_J2331.3-1558_daily_bin2199.fits.....................!
real 60.68
user 14.29
sys 3.07

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/36255576/ft1_filtered_4FGL_J2331.3-1558_daily_bin2199.fits', '/lscratch/kocevski/36255576/ft2_4FGL_J2331.3-1558_daily_bin2199.fits', expMap='/lscratch/kocevski/36255576/expmap_809308801_809568001_4FGL_J2331.3-1558_daily_bin2199.fits', expCube='/lscratch/kocevski/36255576/ltcube_809308801_809568001_4FGL_J2331.3-1558_daily_bin2199.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/36255576/Model_4FGL_J2331.3-1558_daily_bin2199.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2331.3-1558'

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  2.463e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.542e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/36255576/ft1_filtered_4FGL_J2331.3-1558_daily_bin2199.fits
Spacecraft file(s): /lscratch/kocevski/36255576/ft2_4FGL_J2331.3-1558_daily_bin2199.fits
Exposure map: /lscratch/kocevski/36255576/expmap_809308801_809568001_4FGL_J2331.3-1558_daily_bin2199.fits
Exposure cube: /lscratch/kocevski/36255576/ltcube_809308801_809568001_4FGL_J2331.3-1558_daily_bin2199.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/36255576/Model_4FGL_J2331.3-1558_daily_bin2199.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) = 3270.0075567

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.5170       1.0000          .0000       .10000E+07
     2 'norm      '    .18247       1.0000          .0000       .10000E+07
     3 'Prefactor '    .27756E-08   1.0000          .0000       .10000E+07
     4 'norm      '    .69274       1.0000          .0000       .10000E+07
     5 'Prefactor '    .40426E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    3.2173       1.0000          .0000       .10000E+07
     7 'Prefactor '    .13146E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .64562E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .18983E-03   1.0000          .0000       .10000E+07
    10 'norm      '    .27530E-04   1.0000          .0000       .10000E+07
    11 'norm      '    12.762       1.0000          .0000       .10000E+07
    12 'Prefactor '    .32475E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .43665E-06   1.0000          .0000       .10000E+07
    14 'norm      '    3.7081       1.0000          .0000       .10000E+07
    15 'Prefactor '    4.5273       1.0000          .0000       .10000E+07
    16 'Normalizat'    1.2386       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .50121       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3269.980     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      940 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6305        1.2360        .19417E-07    .37655E-01
   2  norm          .31974E-07    27.995        .59773E-06** at limit **
   3  Prefactor     .16653E-09    5.8599        .79193E-06** at limit **
   4  norm          .69349        .76638        .13697E-06   -.10908E-02
   5  Prefactor     .28882E-06    4.7521       -.10566E-06** at limit **
   6  Prefactor     3.3382        1.0739       -.52934E-09   -.65100E-02
   7  Prefactor     .31519E-06    5.9505       -.58241E-06** at limit **
   8  Prefactor     .24930E-06    6.0869       -.37505E-07** at limit **
   9  Prefactor     .22204E-09    3.2304       -.64021E-06** at limit **
  10  norm           .0000        2.4753       -.14875E-06** at limit **
  11  norm          12.738        6.2486       -.36214E-07    .70441E-02
  12  Prefactor     .38797E-06    7.6493       -.65933E-06** at limit **
  13  norm           .0000        .39620       -.13309E-06** at limit **
  14  norm          3.6827        5.8526       -.38809E-06    .11854E-02
  15  Prefactor     4.4973        3.2414        .12581E-06    .25513E-01
  16  Normalizat    1.2387        .26032        .22739E-05   -.55275E-04
  17  Prefactor     .50121        .22559        .72322E-05   -.31638E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.63047
  norm       = 3.19744e-08
  Prefactor  = 1.66533e-10
  norm       = 0.693491
  Prefactor  = 2.88825e-07
  Prefactor  = 3.33822
  Prefactor  = 3.15192e-07
  Prefactor  = 2.49301e-07
  Prefactor  = 2.22045e-10
  norm       = 0
  norm       = 12.7382
  Prefactor  = 3.87967e-07
  norm       = 0
  norm       = 3.68271
  Prefactor  = 4.49729
  Normalizat = 1.23873
  Prefactor  = 0.501208
 **********
 **   18 **HESSE 
 **********

 FCN=   3269.980     FROM HESSE     STATUS=OK           253 CALLS     1193 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6305        9.8536        .36555E-03   -1.5653    
   2  norm          .31974E-07    31.912        .12097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .16653E-09    5.8683        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .69349        .77180        .61299E-03   -1.5691    
   5  Prefactor     .28882E-06    11.040        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.3382        12.589        .56455E-03   -1.5671    
   7  Prefactor     .31519E-06    13.301        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .24930E-06    10.583        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .22204E-09    3.2489        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        2.4852        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          12.738        6.3110        .28014E-03   -1.5637    
  12  Prefactor     .38797E-06    13.830        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .39493        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.6827        5.9499        .52418E-03   -1.5670    
  15  Prefactor     4.4973        8.9780        .47291E-03   -1.5666    
  16  Normalizat    1.2387        .23212        .34006E-01   -.85414    
  17  Prefactor     .50121        .19902        .62396E-01   -1.1192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31005e-07
Minuit parameter uncertainties:
  1  9.85358
  2  0.00202083
  3  6.27636e-05
  4  0.771801
  5  0.00357133
  6  12.5894
  7  0.0040952
  8  0.00324853
  9  5.28741e-05
  10  1.45631e-05
  11  6.311
  12  0.00463259
  13  1.13531e-06
  14  5.9499
  15  8.97806
  16  0.232316
  17  0.199295
Done.

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

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  3.880e-07  4.633e-03  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.542e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  5.012e-01  1.993e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  1.239e+00  2.323e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 352.839 -15.978
Photon Flux Upper Limit: 1.00272415906e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00781961435515 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/36255576/likelihoodResults_809308801_809568001_4FGL_J2331.3-1558_daily_bin2199.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) = 3270.01516359
delta logL = -0.0351921620809

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3269.9799729
delta logL = -1.4697025108e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46796E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.8099       1.0000          .0000       10.000    
     3 'Normalizat'    1.2383       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50158       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   3269.980     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      251 TOTAL
                     EDM=   .48E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        14.875        .42118E-03** at limit **
   2  Index         2.4580        1.1489        .18084E-03     .0000    
   3  Normalizat    1.2387        1.0946        .13152E-04    .13829E-03
   4  Prefactor     .50121        .84354       -.97261E-05    .16252E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.45798
  Normalizat = 1.23873
  Prefactor  = 0.501209
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   3269.980     FROM HESSE     STATUS=FAILED         9 CALLS      260 TOTAL
                     EDM=   .48E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        14.875        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .67957        1.8706        .18084E-03   -.53333    
   3  Normalizat    1.2387        1.0946        .13152E-04   -.85414    
   4  Prefactor     .50121        .84354       -.97261E-05   -1.1192    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.81894e-11
Minuit parameter uncertainties:
  1  8.88918e-06
  2  1.16304
  3  1.11597
  4  0.86611
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) = 3269.97997141
delta logL = 1.39739313454e-08

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  0.000e+00  8.889e-06  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.458e+00  1.163e+00  0.000e+00  1.000e+01 (-1.000e+00)
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  5.012e-01  8.661e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  1.239e+00  1.116e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 352.839 -15.978

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/36255576/cmap_HighResolution_809308801_809568001_4FGL_J2331.3-1558_daily_bin2199.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.82e-03', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2026-08-28 18:29:54.158169', job_id='36255576', GAL2='0.50', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1787966994.16', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.50', dlogl='1.40e-08', ts2='0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='2199' AND source_name='4FGL J2331.3-1558' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 28 18:29:54 PDT 2026


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

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


Performing analysis on: 4FGL_J2331.3-1558_daily_bin2199
RA = 352.839, Dec = -15.9777
tmin = 809308801, tmax = 809568001
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='36255468', job_status='RUN', time_executed='2026-08-28 18:40:01.214767', time_epoch_executed='1787967601.21' WHERE source_name='4FGL J2331.3-1558' and cadence='daily' and bin_id='2199'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/36255468

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/36255468/ft1_4FGL_J2331.3-1558_daily_bin2199.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/36255468/ft2_4FGL_J2331.3-1558_daily_bin2199.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/36255468/ft1_4FGL_J2331.3-1558_daily_bin2199.fits outfile=/lscratch/kocevski/36255468/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin2199.fits ra=352.839 dec=-15.9777 rad=12.0 tmin=809308801.0 tmax=809568001.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.14
user 3.31
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/36255468/ft2_4FGL_J2331.3-1558_daily_bin2199.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/36255468/ft2_4FGL_J2331.3-1558_daily_bin2199.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/36255468/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin2199.fits evtable="EVENTS" outfile="/lscratch/kocevski/36255468/ft1_filtered_4FGL_J2331.3-1558_daily_bin2199.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 1.12
user 0.23
sys 0.12

Number of photons that the gtmktime cut: 281

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/36255468/ft1_filtered_4FGL_J2331.3-1558_daily_bin2199.fits" evtable="EVENTS" scfile=/lscratch/kocevski/36255468/ft2_4FGL_J2331.3-1558_daily_bin2199.fits sctable="SC_DATA" outfile=/lscratch/kocevski/36255468/ltcube_809308801_809568001_4FGL_J2331.3-1558_daily_bin2199.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/36255468/ft2_4FGL_J2331.3-1558_daily_bin2199.fits
.....................!
real 10.20
user 9.11
sys 0.20

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/36255468/ft1_filtered_4FGL_J2331.3-1558_daily_bin2199.fits evtable="EVENTS" scfile=/lscratch/kocevski/36255468/ft2_4FGL_J2331.3-1558_daily_bin2199.fits sctable="SC_DATA" expcube=/lscratch/kocevski/36255468/ltcube_809308801_809568001_4FGL_J2331.3-1558_daily_bin2199.fits outfile=/lscratch/kocevski/36255468/expmap_809308801_809568001_4FGL_J2331.3-1558_daily_bin2199.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/36255468/ltcube_809308801_809568001_4FGL_J2331.3-1558_daily_bin2199.fits
.....................!
real 85.57
user 75.98
sys 4.38

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

Setting source of interest to:
4FGL J2331.3-1558 @ 352.839 -15.9777

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/36255468/ft1_filtered_4FGL_J2331.3-1558_daily_bin2199.fits scfile=/lscratch/kocevski/36255468/ft2_4FGL_J2331.3-1558_daily_bin2199.fits outfile=/lscratch/kocevski/36255468/cmap_809308801_809568001_4FGL_J2331.3-1558_daily_bin2199.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=352.839 yref=-15.9777 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 1.18
user 0.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/36255468/ft1_filtered_4FGL_J2331.3-1558_daily_bin2199.fits scfile=/lscratch/kocevski/36255468/ft2_4FGL_J2331.3-1558_daily_bin2199.fits outfile=/lscratch/kocevski/36255468/cmap_HighResolution_809308801_809568001_4FGL_J2331.3-1558_daily_bin2199.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=352.839 yref=-15.9777 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.89
user 0.25
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/36255468/ft1_filtered_4FGL_J2331.3-1558_daily_bin2199.fits evtable="EVENTS" scfile=/lscratch/kocevski/36255468/ft2_4FGL_J2331.3-1558_daily_bin2199.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/36255468/Model_4FGL_J2331.3-1558_daily_bin2199.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/36255468/ft1_filtered_4FGL_J2331.3-1558_daily_bin2199.fits.....................!
real 17.73
user 15.84
sys 0.70

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/36255468/ft1_filtered_4FGL_J2331.3-1558_daily_bin2199.fits', '/lscratch/kocevski/36255468/ft2_4FGL_J2331.3-1558_daily_bin2199.fits', expMap='/lscratch/kocevski/36255468/expmap_809308801_809568001_4FGL_J2331.3-1558_daily_bin2199.fits', expCube='/lscratch/kocevski/36255468/ltcube_809308801_809568001_4FGL_J2331.3-1558_daily_bin2199.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/36255468/Model_4FGL_J2331.3-1558_daily_bin2199.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2331.3-1558'

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  2.463e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.542e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/36255468/ft1_filtered_4FGL_J2331.3-1558_daily_bin2199.fits
Spacecraft file(s): /lscratch/kocevski/36255468/ft2_4FGL_J2331.3-1558_daily_bin2199.fits
Exposure map: /lscratch/kocevski/36255468/expmap_809308801_809568001_4FGL_J2331.3-1558_daily_bin2199.fits
Exposure cube: /lscratch/kocevski/36255468/ltcube_809308801_809568001_4FGL_J2331.3-1558_daily_bin2199.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/36255468/Model_4FGL_J2331.3-1558_daily_bin2199.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) = 3270.0075567

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.5170       1.0000          .0000       .10000E+07
     2 'norm      '    .18247       1.0000          .0000       .10000E+07
     3 'Prefactor '    .27756E-08   1.0000          .0000       .10000E+07
     4 'norm      '    .69274       1.0000          .0000       .10000E+07
     5 'Prefactor '    .40426E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    3.2173       1.0000          .0000       .10000E+07
     7 'Prefactor '    .13146E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .64562E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .18983E-03   1.0000          .0000       .10000E+07
    10 'norm      '    .27530E-04   1.0000          .0000       .10000E+07
    11 'norm      '    12.762       1.0000          .0000       .10000E+07
    12 'Prefactor '    .32475E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .43665E-06   1.0000          .0000       .10000E+07
    14 'norm      '    3.7081       1.0000          .0000       .10000E+07
    15 'Prefactor '    4.5273       1.0000          .0000       .10000E+07
    16 'Normalizat'    1.2386       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .50121       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3269.980     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      940 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6305        1.2360        .19417E-07    .37655E-01
   2  norm          .31974E-07    27.995        .59773E-06** at limit **
   3  Prefactor     .16653E-09    5.8599        .79193E-06** at limit **
   4  norm          .69349        .76638        .13697E-06   -.10908E-02
   5  Prefactor     .28882E-06    4.7521       -.10566E-06** at limit **
   6  Prefactor     3.3382        1.0739       -.52934E-09   -.65100E-02
   7  Prefactor     .31519E-06    5.9505       -.58241E-06** at limit **
   8  Prefactor     .24930E-06    6.0869       -.37505E-07** at limit **
   9  Prefactor     .22204E-09    3.2304       -.64021E-06** at limit **
  10  norm           .0000        2.4753       -.14875E-06** at limit **
  11  norm          12.738        6.2486       -.36214E-07    .70441E-02
  12  Prefactor     .38797E-06    7.6493       -.65933E-06** at limit **
  13  norm           .0000        .39620       -.13309E-06** at limit **
  14  norm          3.6827        5.8526       -.38809E-06    .11854E-02
  15  Prefactor     4.4973        3.2414        .12581E-06    .25513E-01
  16  Normalizat    1.2387        .26032        .22739E-05   -.55275E-04
  17  Prefactor     .50121        .22559        .72322E-05   -.31638E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.63047
  norm       = 3.19744e-08
  Prefactor  = 1.66533e-10
  norm       = 0.693491
  Prefactor  = 2.88825e-07
  Prefactor  = 3.33822
  Prefactor  = 3.15192e-07
  Prefactor  = 2.49301e-07
  Prefactor  = 2.22045e-10
  norm       = 0
  norm       = 12.7382
  Prefactor  = 3.87967e-07
  norm       = 0
  norm       = 3.68271
  Prefactor  = 4.49729
  Normalizat = 1.23873
  Prefactor  = 0.501208
 **********
 **   18 **HESSE 
 **********

 FCN=   3269.980     FROM HESSE     STATUS=OK           253 CALLS     1193 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6305        9.8536        .36555E-03   -1.5653    
   2  norm          .31974E-07    31.912        .12097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .16653E-09    5.8683        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .69349        .77180        .61299E-03   -1.5691    
   5  Prefactor     .28882E-06    11.040        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.3382        12.589        .56455E-03   -1.5671    
   7  Prefactor     .31519E-06    13.301        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .24930E-06    10.583        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .22204E-09    3.2489        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        2.4852        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          12.738        6.3110        .28014E-03   -1.5637    
  12  Prefactor     .38797E-06    13.830        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .39493        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.6827        5.9499        .52418E-03   -1.5670    
  15  Prefactor     4.4973        8.9780        .47291E-03   -1.5666    
  16  Normalizat    1.2387        .23212        .34006E-01   -.85414    
  17  Prefactor     .50121        .19902        .62396E-01   -1.1192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31005e-07
Minuit parameter uncertainties:
  1  9.85358
  2  0.00202083
  3  6.27636e-05
  4  0.771801
  5  0.00357133
  6  12.5894
  7  0.0040952
  8  0.00324853
  9  5.28741e-05
  10  1.45631e-05
  11  6.311
  12  0.00463259
  13  1.13531e-06
  14  5.9499
  15  8.97806
  16  0.232316
  17  0.199295
Done.

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

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  3.880e-07  4.633e-03  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.542e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  5.012e-01  1.993e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  1.239e+00  2.323e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 352.839 -15.978
Photon Flux Upper Limit: 1.00272415906e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00781961435515 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/36255468/likelihoodResults_809308801_809568001_4FGL_J2331.3-1558_daily_bin2199.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) = 3270.01516359
delta logL = -0.0351921620809

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3269.9799729
delta logL = -1.4697025108e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46796E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.8099       1.0000          .0000       10.000    
     3 'Normalizat'    1.2383       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50158       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   3269.980     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      251 TOTAL
                     EDM=   .48E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        14.875        .42118E-03** at limit **
   2  Index         2.4580        1.1489        .18084E-03     .0000    
   3  Normalizat    1.2387        1.0946        .13152E-04    .13829E-03
   4  Prefactor     .50121        .84354       -.97261E-05    .16252E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.45798
  Normalizat = 1.23873
  Prefactor  = 0.501209
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   3269.980     FROM HESSE     STATUS=FAILED         9 CALLS      260 TOTAL
                     EDM=   .48E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        14.875        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .67957        1.8706        .18084E-03   -.53333    
   3  Normalizat    1.2387        1.0946        .13152E-04   -.85414    
   4  Prefactor     .50121        .84354       -.97261E-05   -1.1192    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.81894e-11
Minuit parameter uncertainties:
  1  8.88918e-06
  2  1.16304
  3  1.11597
  4  0.86611
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) = 3269.97997141
delta logL = 1.39739313454e-08

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  0.000e+00  8.889e-06  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.458e+00  1.163e+00  0.000e+00  1.000e+01 (-1.000e+00)
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  5.012e-01  8.661e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  1.239e+00  1.116e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 352.839 -15.978

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/36255468/cmap_HighResolution_809308801_809568001_4FGL_J2331.3-1558_daily_bin2199.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.82e-03', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2026-08-28 18:44:41.747399', job_id='36255468', GAL2='0.50', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1787967881.75', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.50', dlogl='1.40e-08', ts2='0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='2199' AND source_name='4FGL J2331.3-1558' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 28 18:44:41 PDT 2026

