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

 FCN=   8094.306     FROM HESSE     STATUS=OK           259 CALLS     1482 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0658        9.2092        .37774E-03   -1.5655    
   2  norm          34.066        37.050        .17065E-03   -1.5591    
   3  Prefactor     .10658E-07    9.1054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .23922        .51525        .18710E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.546        14.610        .27189E-03   -1.5634    
   6  Prefactor      .0000        2.8877        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .18319E-08    34.810        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.859        13.276        .27916E-03   -1.5636    
   9  Prefactor     .43952        5.8131        .84686E-02   -1.5695    
  10  norm          3.3146        4.7984        .55653E-03   -1.5672    
  11  norm          .68459        2.4059        .61719E-03   -1.5691    
  12  Prefactor     .70499E-08    8.2177        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .17028        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.5190        3.9493        .39290E-03   -1.5657    
  15  Prefactor      .0000        2.8612        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0681        .13975        .39481E-01   -.90783    
  17  Prefactor     .71030        .12501        .42539E-01   -1.0312    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19688e-06
Minuit parameter uncertainties:
  1  9.20918
  2  37.0498
  3  0.000622944
  4  0.515251
  5  14.6097
  6  3.029e-06
  7  0.000501766
  8  13.2758
  9  3.19686
  10  4.7984
  11  2.40589
  12  0.000481171
  13  5.89333e-07
  14  3.94926
  15  3.67032e-06
  16  0.139795
  17  0.125062
number of points = 17394
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2331.3-1558_weekly_bin949
RA = 352.839, Dec = -15.9777
tmin = 812937601, tmax = 813542401
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='40750221', job_status='RUN', time_executed='2026-10-13 20:26:10.533900', time_epoch_executed='1791948370.53' WHERE source_name='4FGL J2331.3-1558' and cadence='weekly' and bin_id='949'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/40750221

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/40750221/ft1_4FGL_J2331.3-1558_weekly_bin949.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/40750221/ft2_4FGL_J2331.3-1558_weekly_bin949.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/40750221/ft1_4FGL_J2331.3-1558_weekly_bin949.fits outfile=/lscratch/kocevski/40750221/ft1_filteredMKT_4FGL_J2331.3-1558_weekly_bin949.fits ra=352.839 dec=-15.9777 rad=12.0 tmin=812937601.0 tmax=813542401.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.89
user 4.18
sys 0.19

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

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

Number of photons that the gtmktime cut: 681

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/40750221/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits" evtable="EVENTS" scfile=/lscratch/kocevski/40750221/ft2_4FGL_J2331.3-1558_weekly_bin949.fits sctable="SC_DATAnumber of points = 17394
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2331.3-1558_weekly_bin949
RA = 352.839, Dec = -15.9777
tmin = 812937601, tmax = 813542401
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='40750234', job_status='RUN', time_executed='2026-10-13 20:26:10.344472', time_epoch_executed='1791948370.34' WHERE source_name='4FGL J2331.3-1558' and cadence='weekly' and bin_id='949'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/40750234

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/40750234/ft1_4FGL_J2331.3-1558_weekly_bin949.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/40750234/ft2_4FGL_J2331.3-1558_weekly_bin949.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/40750234/ft1_4FGL_J2331.3-1558_weekly_bin949.fits outfile=/lscratch/kocevski/40750234/ft1_filteredMKT_4FGL_J2331.3-1558_weekly_bin949.fits ra=352.839 dec=-15.9777 rad=12.0 tmin=812937601.0 tmax=813542401.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.81
user 4.07
sys 0.22

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

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

Number of photons that the gtmktime cut: 681

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/40750234/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits" evtable="EVENTS" scfile=/lscratch/kocevski/40750234/ft2_4FGL_J2331.3-1558_weekly_bin949.fits sctable="SC_DATADone.

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

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  7.050e-09  4.812e-04  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:  7.103e-01  1.251e-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.068e+00  1.398e-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: 5.58536513407e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00435567458774 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/40750056/likelihoodResults_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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): 102
logL (Free Index) = 8094.36560284
delta logL = -0.0598021140358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8094.30580222
delta logL = -1.49840798258e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .80926E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.5119       1.0000          .0000       10.000    
     3 'Normalizat'    1.0683       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71010       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=   8094.306     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      212 TOTAL
                     EDM=   .44E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        11.859        .42118E-03** at limit **
   2  Index         2.3484        1.2395        .32213E-04     .0000    
   3  Normalizat    1.0681        1.1820       -.54520E-05    .64520E-04
   4  Prefactor     .71030        1.0600        .47883E-05    .81145E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.34842
  Normalizat = 1.06809
  Prefactor  = 0.710302
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8094.306     FROM HESSE     STATUS=FAILED         9 CALLS      221 TOTAL
                     EDM=   .44E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        11.859        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .61646        1.8478        .32213E-04   -.55897    
   3  Normalizat    1.0681        1.1820       -.54520E-05   -.90783    
   4  Prefactor     .71030        1.0600        .47883E-05   -1.0312    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.37283e-12
Minuit parameter uncertainties:
  1  3.24759e-05
  2  1.25791
  3  1.21329
  4  1.09263
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) = 8094.30580072
delta logL = 4.26553015132e-10

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  0.000e+00  3.248e-05  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.348e+00  1.258e+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:  7.103e-01  1.093e+00  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.068e+00  1.213e+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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/40750056/cmap_HighResolution_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.36e-03', job_status='DONE', photon_flux_upper_limit='5.59e-08', time_completed='2026-10-13 20:32:53.735480', job_id='40750056', GAL2='0.71', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1791948773.74', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='4.27e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='949' AND source_name='4FGL J2331.3-1558' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 13 20:32:54 PDT 2026

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

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

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

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

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

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

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


Performing analysis on: 4FGL_J2331.3-1558_weekly_bin949
RA = 352.839, Dec = -15.9777
tmin = 812937601, tmax = 813542401
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='40750327', job_status='RUN', time_executed='2026-10-13 20:27:07.774564', time_epoch_executed='1791948427.77' WHERE source_name='4FGL J2331.3-1558' and cadence='weekly' and bin_id='949'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/40750327

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/40750327/ft1_4FGL_J2331.3-1558_weekly_bin949.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/40750327/ft2_4FGL_J2331.3-1558_weekly_bin949.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/40750327/ft1_4FGL_J2331.3-1558_weekly_bin949.fits outfile=/lscratch/kocevski/40750327/ft1_filteredMKT_4FGL_J2331.3-1558_weekly_bin949.fits ra=352.839 dec=-15.9777 rad=12.0 tmin=812937601.0 tmax=813542401.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 5.04
user 4.20
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/40750327/ft2_4FGL_J2331.3-1558_weekly_bin949.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/40750327/ft1_filteredMKT_4FGL_J2331.3-1558_weekly_bin949.fits evtable="EVENTS" outfile="/lscratch/kocevski/40750327/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.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.22
sys 0.13

Number of photons that the gtmktime cut: 681

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/40750327/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits" evtable="EVENTS" scfile=/lscratch/kocevski/40750327/ft2_4FGL_J2331.3-1558_weekly_bin949.fits sctable="SC_DATAnumber of points = 17394
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2331.3-1558_weekly_bin949
RA = 352.839, Dec = -15.9777
tmin = 812937601, tmax = 813542401
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='40750346', job_status='RUN', time_executed='2026-10-13 20:27:10.369076', time_epoch_executed='1791948430.37' WHERE source_name='4FGL J2331.3-1558' and cadence='weekly' and bin_id='949'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/40750346

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/40750346/ft1_4FGL_J2331.3-1558_weekly_bin949.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/40750346/ft2_4FGL_J2331.3-1558_weekly_bin949.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/40750346/ft1_4FGL_J2331.3-1558_weekly_bin949.fits outfile=/lscratch/kocevski/40750346/ft1_filteredMKT_4FGL_J2331.3-1558_weekly_bin949.fits ra=352.839 dec=-15.9777 rad=12.0 tmin=812937601.0 tmax=813542401.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.36
user 3.59
sys 0.20

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

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

Number of photons that the gtmktime cut: 681

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/40750346/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits" evtable="EVENTS" scfile=/lscratch/kocevski/40750346/ft2_4FGL_J2331.3-1558_weekly_bin949.fits sctable="SC_DATAnumber of points = 17394
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2331.3-1558_weekly_bin949
RA = 352.839, Dec = -15.9777
tmin = 812937601, tmax = 813542401
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='40750386', job_status='RUN', time_executed='2026-10-13 20:28:09.191562', time_epoch_executed='1791948489.19' WHERE source_name='4FGL J2331.3-1558' and cadence='weekly' and bin_id='949'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/40750386

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/40750386/ft1_4FGL_J2331.3-1558_weekly_bin949.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/40750386/ft2_4FGL_J2331.3-1558_weekly_bin949.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/40750386/ft1_4FGL_J2331.3-1558_weekly_bin949.fits outfile=/lscratch/kocevski/40750386/ft1_filteredMKT_4FGL_J2331.3-1558_weekly_bin949.fits ra=352.839 dec=-15.9777 rad=12.0 tmin=812937601.0 tmax=813542401.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.35
user 3.58
sys 0.23

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

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

Number of photons that the gtmktime cut: 681

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/40750386/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits" evtable="EVENTS" scfile=/lscratch/kocevski/40750386/ft2_4FGL_J2331.3-1558_weekly_bin949.fits sctable="SC_DATA" outfile=/lscratch/kocevski/40750234/ltcube_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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/40750234/ft2_4FGL_J2331.3-1558_weekly_bin949.fits
.....................!
real 17.91
user 17.03
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/40750234/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits evtable="EVENTS" scfile=/lscratch/kocevski/40750234/ft2_4FGL_J2331.3-1558_weekly_bin949.fits sctable="SC_DATA" expcube=/lscratch/kocevski/40750234/ltcube_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits outfile=/lscratch/kocevski/40750234/expmap_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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/40750234/ltcube_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits
.....................!
real 65.47
user 60.86
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 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/40750234/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits scfile=/lscratch/kocevski/40750234/ft2_4FGL_J2331.3-1558_weekly_bin949.fits outfile=/lscratch/kocevski/40750234/cmap_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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 0.85
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/40750234/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits scfile=/lscratch/kocevski/40750234/ft2_4FGL_J2331.3-1558_weekly_bin949.fits outfile=/lscratch/kocevski/40750234/cmap_HighResolution_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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.23
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/40750234/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits evtable="EVENTS" scfile=/lscratch/kocevski/40750234/ft2_4FGL_J2331.3-1558_weekly_bin949.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/40750234/Model_4FGL_J2331.3-1558_weekly_bin949.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 s" outfile=/lscratch/kocevski/40750221/ltcube_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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/40750221/ft2_4FGL_J2331.3-1558_weekly_bin949.fits
.....................!
real 19.06
user 18.28
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/40750221/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits evtable="EVENTS" scfile=/lscratch/kocevski/40750221/ft2_4FGL_J2331.3-1558_weekly_bin949.fits sctable="SC_DATA" expcube=/lscratch/kocevski/40750221/ltcube_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits outfile=/lscratch/kocevski/40750221/expmap_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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/40750221/ltcube_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits
.....................!
real 69.00
user 64.25
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/40750221/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits scfile=/lscratch/kocevski/40750221/ft2_4FGL_J2331.3-1558_weekly_bin949.fits outfile=/lscratch/kocevski/40750221/cmap_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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 0.83
user 0.26
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/40750221/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits scfile=/lscratch/kocevski/40750221/ft2_4FGL_J2331.3-1558_weekly_bin949.fits outfile=/lscratch/kocevski/40750221/cmap_HighResolution_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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.83
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/40750221/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits evtable="EVENTS" scfile=/lscratch/kocevski/40750221/ft2_4FGL_J2331.3-1558_weekly_bin949.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/40750221/Model_4FGL_J2331.3-1558_weekly_bin949.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/40750234/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits.....................!
real 25.53
user 23.98
sys 1.00

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/40750234/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits', '/lscratch/kocevski/40750234/ft2_4FGL_J2331.3-1558_weekly_bin949.fits', expMap='/lscratch/kocevski/40750234/expmap_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits', expCube='/lscratch/kocevski/40750234/ltcube_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/40750234/Model_4FGL_J2331.3-1558_weekly_bin949.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/40750234/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits
Spacecraft file(s): /lscratch/kocevski/40750234/ft2_4FGL_J2331.3-1558_weekly_bin949.fits
Exposure map: /lscratch/kocevski/40750234/expmap_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits
Exposure cube: /lscratch/kocevski/40750234/ltcube_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/40750234/Model_4FGL_J2331.3-1558_weekly_bin949.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) = 8094.32089519

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0440       1.0000          .0000       .10000E+07
     2 'norm      '    34.347       1.0000          .0000       .10000E+07
     3 'Prefactor '    .16563E-05   1.0000          .0000       .10000E+07
     4 'norm      '    .23937       1.0000          .0000       .10000E+07
     5 'Prefactor '    13.546       1.0000          .0000       .10000E+07
     6 'Prefactor '    .18329E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .79806E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    12.852       1.0000          .0000       .10000E+07
     9 'Prefactor '    .44281       1.0000          .0000       .10000E+07
    10 'norm      '    3.3061       1.0000          .0000       .10000E+07
    11 'norm      '    .68762       1.0000          .0000       .10000E+07
    12 'Prefactor '    .45397E-05   1.0000          .0000       .10000E+07
    13 'norm      '    .18135E-06   1.0000          .0000       .10000E+07
    14 'norm      '    6.5164       1.0000          .0000       .10000E+07
    15 'Prefactor '    .40008E-04   1.0000          .0000       .10000E+07
    16 'Normalizat'    1.0681       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .71036       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=   8094.306     FROM MIGRAD    STATUS=CONVERGED    126 CALLS     1223 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0658        9.1988        .11106E-06   -.96327E-03
   2  norm          34.066        36.774       -.18072E-07    .42134E-02
   3  Prefactor     .10658E-07    8.7271        .42284E-06** at limit **
   4  norm          .23922        .43426       -.11472E-06** at limit **
   5  Prefactor     13.546        7.0500        .15987E-09   -.16048E-01
   6  Prefactor      .0000        2.8910       -.10875E-06** at limit **
   7  Prefactor     .18319E-08    34.728        .79777E-06** at limit **
   8  Prefactor     12.859        6.8439       -.74760E-07   -.41152E-01
   9  Prefactor     .43952        21.391        .18362E-06   -.46507E-02
  10  norm          3.3146        4.6407       -.19687E-07    .22832E-03
  11  norm          .68459        2.3932        .17405E-06   -.89853E-03
  12  Prefactor     .70499E-08    7.9593        .52916E-07** at limit **
  13  norm           .0000        .17146        .24086E-07** at limit **
  14  norm          6.5190        3.9209        .65011E-07   -.11801E-02
  15  Prefactor      .0000        2.8646       -.11661E-07** at limit **
  16  Normalizat    1.0681        .15990       -.10046E-05   -.47625E-04
  17  Prefactor     .71030        .14296        .34562E-05   -.53933E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.06581
  norm       = 34.066
  Prefactor  = 1.06581e-08
  norm       = 0.239222
  Prefactor  = 13.5462
  Prefactor  = 0
  Prefactor  = 1.83187e-09
  Prefactor  = 12.8592
  Prefactor  = 0.439518
  norm       = 3.31458
  norm       = 0.684586
  Prefactor  = 7.04992e-09
  norm       = 0
  norm       = 6.51903
  Prefactor  = 0
  Normalizat = 1.06809
  Prefactor  = 0.710301
" outfile=/lscratch/kocevski/40750327/ltcube_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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/40750327/ft2_4FGL_J2331.3-1558_weekly_bin949.fits
.....................!
real 18.79
user 17.91
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/40750327/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits evtable="EVENTS" scfile=/lscratch/kocevski/40750327/ft2_4FGL_J2331.3-1558_weekly_bin949.fits sctable="SC_DATA" expcube=/lscratch/kocevski/40750327/ltcube_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits outfile=/lscratch/kocevski/40750327/expmap_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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/40750327/ltcube_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits
.....................!
real 69.26
user 64.33
sys 4.00

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/40750327/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits scfile=/lscratch/kocevski/40750327/ft2_4FGL_J2331.3-1558_weekly_bin949.fits outfile=/lscratch/kocevski/40750327/cmap_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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 0.86
user 0.25
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/40750327/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits scfile=/lscratch/kocevski/40750327/ft2_4FGL_J2331.3-1558_weekly_bin949.fits outfile=/lscratch/kocevski/40750327/cmap_HighResolution_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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.81
user 0.26
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/40750327/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits evtable="EVENTS" scfile=/lscratch/kocevski/40750327/ft2_4FGL_J2331.3-1558_weekly_bin949.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/40750327/Model_4FGL_J2331.3-1558_weekly_bin949.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/40750221/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits.....................!
real 26.18
user 24.61
sys 0.98

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/40750221/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits', '/lscratch/kocevski/40750221/ft2_4FGL_J2331.3-1558_weekly_bin949.fits', expMap='/lscratch/kocevski/40750221/expmap_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits', expCube='/lscratch/kocevski/40750221/ltcube_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/40750221/Model_4FGL_J2331.3-1558_weekly_bin949.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/40750221/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits
Spacecraft file(s): /lscratch/kocevski/40750221/ft2_4FGL_J2331.3-1558_weekly_bin949.fits
Exposure map: /lscratch/kocevski/40750221/expmap_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits
Exposure cube: /lscratch/kocevski/40750221/ltcube_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/40750221/Model_4FGL_J2331.3-1558_weekly_bin949.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) = 8094.32089519

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0440       1.0000          .0000       .10000E+07
     2 'norm      '    34.347       1.0000          .0000       .10000E+07
     3 'Prefactor '    .16563E-05   1.0000          .0000       .10000E+07
     4 'norm      '    .23937       1.0000          .0000       .10000E+07
     5 'Prefactor '    13.546       1.0000          .0000       .10000E+07
     6 'Prefactor '    .18329E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .79806E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    12.852       1.0000          .0000       .10000E+07
     9 'Prefactor '    .44281       1.0000          .0000       .10000E+07
    10 'norm      '    3.3061       1.0000          .0000       .10000E+07
    11 'norm      '    .68762       1.0000          .0000       .10000E+07
    12 'Prefactor '    .45397E-05   1.0000          .0000       .10000E+07
    13 'norm      '    .18135E-06   1.0000          .0000       .10000E+07
    14 'norm      '    6.5164       1.0000          .0000       .10000E+07
    15 'Prefactor '    .40008E-04   1.0000          .0000       .10000E+07
    16 'Normalizat'    1.0681       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .71036       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=   8094.306     FROM MIGRAD    STATUS=CONVERGED    126 CALLS     1223 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0658        9.1988        .11106E-06   -.96327E-03
   2  norm          34.066        36.774       -.18072E-07    .42134E-02
   3  Prefactor     .10658E-07    8.7271        .42284E-06** at limit **
   4  norm          .23922        .43426       -.11472E-06** at limit **
   5  Prefactor     13.546        7.0500        .15987E-09   -.16048E-01
   6  Prefactor      .0000        2.8910       -.10875E-06** at limit **
   7  Prefactor     .18319E-08    34.728        .79777E-06** at limit **
   8  Prefactor     12.859        6.8439       -.74760E-07   -.41152E-01
   9  Prefactor     .43952        21.391        .18362E-06   -.46507E-02
  10  norm          3.3146        4.6407       -.19687E-07    .22832E-03
  11  norm          .68459        2.3932        .17405E-06   -.89853E-03
  12  Prefactor     .70499E-08    7.9593        .52916E-07** at limit **
  13  norm           .0000        .17146        .24086E-07** at limit **
  14  norm          6.5190        3.9209        .65011E-07   -.11801E-02
  15  Prefactor      .0000        2.8646       -.11661E-07** at limit **
  16  Normalizat    1.0681        .15990       -.10046E-05   -.47625E-04
  17  Prefactor     .71030        .14296        .34562E-05   -.53933E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.06581
  norm       = 34.066
  Prefactor  = 1.06581e-08
  norm       = 0.239222
  Prefactor  = 13.5462
  Prefactor  = 0
  Prefactor  = 1.83187e-09
  Prefactor  = 12.8592
  Prefactor  = 0.439518
  norm       = 3.31458
  norm       = 0.684586
  Prefactor  = 7.04992e-09
  norm       = 0
  norm       = 6.51903
  Prefactor  = 0
  Normalizat = 1.06809
  Prefactor  = 0.710301
 **********
 **   18 **HESSE 
 **********

 FCN=   8094.306     FROM HESSE     STATUS=OK           259 CALLS     1482 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0658        9.2092        .37774E-03   -1.5655    
   2  norm          34.066        37.050        .17065E-03   -1.5591    
   3  Prefactor     .10658E-07    9.1054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .23922        .51525        .18710E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.546        14.610        .27189E-03   -1.5634    
   6  Prefactor      .0000        2.8877        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .18319E-08    34.810        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.859        13.276        .27916E-03   -1.5636    
   9  Prefactor     .43952        5.8131        .84686E-02   -1.5695    
  10  norm          3.3146        4.7984        .55653E-03   -1.5672    
  11  norm          .68459        2.4059        .61719E-03   -1.5691    
  12  Prefactor     .70499E-08    8.2177        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .17028        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.5190        3.9493        .39290E-03   -1.5657    
  15  Prefactor      .0000        2.8612        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0681        .13975        .39481E-01   -.90783    
  17  Prefactor     .71030        .12501        .42539E-01   -1.0312    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19688e-06
Minuit parameter uncertainties:
  1  9.20918
  2  37.0498
  3  0.000622944
  4  0.515251
  5  14.6097
  6  3.029e-06
  7  0.000501766
  8  13.2758
  9  3.19686
  10  4.7984
  11  2.40589
  12  0.000481171
  13  5.89333e-07
  14  3.94926
  15  3.67032e-06
  16  0.139795
  17  0.125062
" outfile=/lscratch/kocevski/40750346/ltcube_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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/40750346/ft2_4FGL_J2331.3-1558_weekly_bin949.fits
.....................!
real 16.39
user 15.63
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/40750346/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits evtable="EVENTS" scfile=/lscratch/kocevski/40750346/ft2_4FGL_J2331.3-1558_weekly_bin949.fits sctable="SC_DATA" expcube=/lscratch/kocevski/40750346/ltcube_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits outfile=/lscratch/kocevski/40750346/expmap_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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/40750346/ltcube_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits
.....................!
real 59.79
user 55.51
sys 3.47

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/40750346/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits scfile=/lscratch/kocevski/40750346/ft2_4FGL_J2331.3-1558_weekly_bin949.fits outfile=/lscratch/kocevski/40750346/cmap_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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 0.82
user 0.21
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/40750346/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits scfile=/lscratch/kocevski/40750346/ft2_4FGL_J2331.3-1558_weekly_bin949.fits outfile=/lscratch/kocevski/40750346/cmap_HighResolution_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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.82
user 0.19
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/40750346/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits evtable="EVENTS" scfile=/lscratch/kocevski/40750346/ft2_4FGL_J2331.3-1558_weekly_bin949.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/40750346/Model_4FGL_J2331.3-1558_weekly_bin949.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 s **********
 **   18 **HESSE 
 **********

 FCN=   8094.306     FROM HESSE     STATUS=OK           259 CALLS     1482 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0658        9.2092        .37774E-03   -1.5655    
   2  norm          34.066        37.050        .17065E-03   -1.5591    
   3  Prefactor     .10658E-07    9.1054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .23922        .51525        .18710E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.546        14.610        .27189E-03   -1.5634    
   6  Prefactor      .0000        2.8877        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .18319E-08    34.810        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.859        13.276        .27916E-03   -1.5636    
   9  Prefactor     .43952        5.8131        .84686E-02   -1.5695    
  10  norm          3.3146        4.7984        .55653E-03   -1.5672    
  11  norm          .68459        2.4059        .61719E-03   -1.5691    
  12  Prefactor     .70499E-08    8.2177        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .17028        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.5190        3.9493        .39290E-03   -1.5657    
  15  Prefactor      .0000        2.8612        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0681        .13975        .39481E-01   -.90783    
  17  Prefactor     .71030        .12501        .42539E-01   -1.0312    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19688e-06
Minuit parameter uncertainties:
  1  9.20918
  2  37.0498
  3  0.000622944
  4  0.515251
  5  14.6097
  6  3.029e-06
  7  0.000501766
  8  13.2758
  9  3.19686
  10  4.7984
  11  2.40589
  12  0.000481171
  13  5.89333e-07
  14  3.94926
  15  3.67032e-06
  16  0.139795
  17  0.125062
Done.

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

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  7.050e-09  4.812e-04  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:  7.103e-01  1.251e-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.068e+00  1.398e-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: 5.58536513407e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00435567458774 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/40750234/likelihoodResults_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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): 102
logL (Free Index) = 8094.36560284
delta logL = -0.0598021140358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8094.30580222
delta logL = -1.49840798258e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .80926E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.5119       1.0000          .0000       10.000    
     3 'Normalizat'    1.0683       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71010       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=   8094.306     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      212 TOTAL
                     EDM=   .44E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        11.859        .42118E-03** at limit **
   2  Index         2.3484        1.2395        .32213E-04     .0000    
   3  Normalizat    1.0681        1.1820       -.54520E-05    .64520E-04
   4  Prefactor     .71030        1.0600        .47883E-05    .81145E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.34842
  Normalizat = 1.06809
  Prefactor  = 0.710302
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8094.306     FROM HESSE     STATUS=FAILED         9 CALLS      221 TOTAL
                     EDM=   .44E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        11.859        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .61646        1.8478        .32213E-04   -.55897    
   3  Normalizat    1.0681        1.1820       -.54520E-05   -.90783    
   4  Prefactor     .71030        1.0600        .47883E-05   -1.0312    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.37283e-12
Minuit parameter uncertainties:
  1  3.24759e-05
  2  1.25791
  3  1.21329
  4  1.09263
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) = 8094.30580072
delta logL = 4.26553015132e-10

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  0.000e+00  3.248e-05  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.348e+00  1.258e+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:  7.103e-01  1.093e+00  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.068e+00  1.213e+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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/40750234/cmap_HighResolution_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.36e-03', job_status='DONE', photon_flux_upper_limit='5.59e-08', time_completed='2026-10-13 20:36:12.677590', job_id='40750234', GAL2='0.71', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1791948972.68', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='4.27e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='949' AND source_name='4FGL J2331.3-1558' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 13 20:36:13 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  7.050e-09  4.812e-04  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:  7.103e-01  1.251e-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.068e+00  1.398e-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: 5.58536513407e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00435567458774 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/40750221/likelihoodResults_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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): 102
logL (Free Index) = 8094.36560284
delta logL = -0.0598021140358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8094.30580222
delta logL = -1.49840798258e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .80926E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.5119       1.0000          .0000       10.000    
     3 'Normalizat'    1.0683       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71010       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=   8094.306     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      212 TOTAL
                     EDM=   .44E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        11.859        .42118E-03** at limit **
   2  Index         2.3484        1.2395        .32213E-04     .0000    
   3  Normalizat    1.0681        1.1820       -.54520E-05    .64520E-04
   4  Prefactor     .71030        1.0600        .47883E-05    .81145E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.34842
  Normalizat = 1.06809
  Prefactor  = 0.710302
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8094.306     FROM HESSE     STATUS=FAILED         9 CALLS      221 TOTAL
                     EDM=   .44E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        11.859        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .61646        1.8478        .32213E-04   -.55897    
   3  Normalizat    1.0681        1.1820       -.54520E-05   -.90783    
   4  Prefactor     .71030        1.0600        .47883E-05   -1.0312    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.37283e-12
Minuit parameter uncertainties:
  1  3.24759e-05
  2  1.25791
  3  1.21329
  4  1.09263
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) = 8094.30580072
delta logL = 4.26553015132e-10

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  0.000e+00  3.248e-05  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.348e+00  1.258e+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:  7.103e-01  1.093e+00  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.068e+00  1.213e+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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/40750221/cmap_HighResolution_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.36e-03', job_status='DONE', photon_flux_upper_limit='5.59e-08', time_completed='2026-10-13 20:36:17.971214', job_id='40750221', GAL2='0.71', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1791948977.97', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='4.27e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='949' AND source_name='4FGL J2331.3-1558' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 13 20:36:18 PDT 2026

" outfile=/lscratch/kocevski/40750386/ltcube_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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/40750386/ft2_4FGL_J2331.3-1558_weekly_bin949.fits
.....................!
real 16.59
user 15.71
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/40750386/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits evtable="EVENTS" scfile=/lscratch/kocevski/40750386/ft2_4FGL_J2331.3-1558_weekly_bin949.fits sctable="SC_DATA" expcube=/lscratch/kocevski/40750386/ltcube_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits outfile=/lscratch/kocevski/40750386/expmap_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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/40750386/ltcube_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits
.....................!
real 59.63
user 55.57
sys 3.32

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/40750386/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits scfile=/lscratch/kocevski/40750386/ft2_4FGL_J2331.3-1558_weekly_bin949.fits outfile=/lscratch/kocevski/40750386/cmap_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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 0.77
user 0.21
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/40750386/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits scfile=/lscratch/kocevski/40750386/ft2_4FGL_J2331.3-1558_weekly_bin949.fits outfile=/lscratch/kocevski/40750386/cmap_HighResolution_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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.78
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/40750386/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits evtable="EVENTS" scfile=/lscratch/kocevski/40750386/ft2_4FGL_J2331.3-1558_weekly_bin949.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/40750386/Model_4FGL_J2331.3-1558_weekly_bin949.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 snumber of points = 17394
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2331.3-1558_weekly_bin949
RA = 352.839, Dec = -15.9777
tmin = 812937601, tmax = 813542401
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='40750485', job_status='RUN', time_executed='2026-10-13 20:30:12.049549', time_epoch_executed='1791948612.05' WHERE source_name='4FGL J2331.3-1558' and cadence='weekly' and bin_id='949'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/40750485

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/40750485/ft1_4FGL_J2331.3-1558_weekly_bin949.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/40750485/ft2_4FGL_J2331.3-1558_weekly_bin949.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/40750485/ft1_4FGL_J2331.3-1558_weekly_bin949.fits outfile=/lscratch/kocevski/40750485/ft1_filteredMKT_4FGL_J2331.3-1558_weekly_bin949.fits ra=352.839 dec=-15.9777 rad=12.0 tmin=812937601.0 tmax=813542401.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.42
user 3.61
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/40750485/ft2_4FGL_J2331.3-1558_weekly_bin949.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/40750485/ft1_filteredMKT_4FGL_J2331.3-1558_weekly_bin949.fits evtable="EVENTS" outfile="/lscratch/kocevski/40750485/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.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.74
user 0.19
sys 0.13

Number of photons that the gtmktime cut: 681

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/40750485/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits" evtable="EVENTS" scfile=/lscratch/kocevski/40750485/ft2_4FGL_J2331.3-1558_weekly_bin949.fits sctable="SC_DATAource GAL_V02
Working on...
/lscratch/kocevski/40750327/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits.....................!
real 26.26
user 24.66
sys 0.95

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/40750327/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits', '/lscratch/kocevski/40750327/ft2_4FGL_J2331.3-1558_weekly_bin949.fits', expMap='/lscratch/kocevski/40750327/expmap_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits', expCube='/lscratch/kocevski/40750327/ltcube_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/40750327/Model_4FGL_J2331.3-1558_weekly_bin949.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/40750327/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits
Spacecraft file(s): /lscratch/kocevski/40750327/ft2_4FGL_J2331.3-1558_weekly_bin949.fits
Exposure map: /lscratch/kocevski/40750327/expmap_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits
Exposure cube: /lscratch/kocevski/40750327/ltcube_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/40750327/Model_4FGL_J2331.3-1558_weekly_bin949.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) = 8094.32089519

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0440       1.0000          .0000       .10000E+07
     2 'norm      '    34.347       1.0000          .0000       .10000E+07
     3 'Prefactor '    .16563E-05   1.0000          .0000       .10000E+07
     4 'norm      '    .23937       1.0000          .0000       .10000E+07
     5 'Prefactor '    13.546       1.0000          .0000       .10000E+07
     6 'Prefactor '    .18329E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .79806E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    12.852       1.0000          .0000       .10000E+07
     9 'Prefactor '    .44281       1.0000          .0000       .10000E+07
    10 'norm      '    3.3061       1.0000          .0000       .10000E+07
    11 'norm      '    .68762       1.0000          .0000       .10000E+07
    12 'Prefactor '    .45397E-05   1.0000          .0000       .10000E+07
    13 'norm      '    .18135E-06   1.0000          .0000       .10000E+07
    14 'norm      '    6.5164       1.0000          .0000       .10000E+07
    15 'Prefactor '    .40008E-04   1.0000          .0000       .10000E+07
    16 'Normalizat'    1.0681       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .71036       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=   8094.306     FROM MIGRAD    STATUS=CONVERGED    126 CALLS     1223 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0658        9.1988        .11106E-06   -.96327E-03
   2  norm          34.066        36.774       -.18072E-07    .42134E-02
   3  Prefactor     .10658E-07    8.7271        .42284E-06** at limit **
   4  norm          .23922        .43426       -.11472E-06** at limit **
   5  Prefactor     13.546        7.0500        .15987E-09   -.16048E-01
   6  Prefactor      .0000        2.8910       -.10875E-06** at limit **
   7  Prefactor     .18319E-08    34.728        .79777E-06** at limit **
   8  Prefactor     12.859        6.8439       -.74760E-07   -.41152E-01
   9  Prefactor     .43952        21.391        .18362E-06   -.46507E-02
  10  norm          3.3146        4.6407       -.19687E-07    .22832E-03
  11  norm          .68459        2.3932        .17405E-06   -.89853E-03
  12  Prefactor     .70499E-08    7.9593        .52916E-07** at limit **
  13  norm           .0000        .17146        .24086E-07** at limit **
  14  norm          6.5190        3.9209        .65011E-07   -.11801E-02
  15  Prefactor      .0000        2.8646       -.11661E-07** at limit **
  16  Normalizat    1.0681        .15990       -.10046E-05   -.47625E-04
  17  Prefactor     .71030        .14296        .34562E-05   -.53933E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.06581
  norm       = 34.066
  Prefactor  = 1.06581e-08
  norm       = 0.239222
  Prefactor  = 13.5462
  Prefactor  = 0
  Prefactor  = 1.83187e-09
  Prefactor  = 12.8592
  Prefactor  = 0.439518
  norm       = 3.31458
  norm       = 0.684586
  Prefactor  = 7.04992e-09
  norm       = 0
  norm       = 6.51903
  Prefactor  = 0
  Normalizat = 1.06809
  Prefactor  = 0.710301
ource GAL_V02
Working on...
/lscratch/kocevski/40750346/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits.....................!
real 23.41
user 21.73
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/40750346/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits', '/lscratch/kocevski/40750346/ft2_4FGL_J2331.3-1558_weekly_bin949.fits', expMap='/lscratch/kocevski/40750346/expmap_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits', expCube='/lscratch/kocevski/40750346/ltcube_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/40750346/Model_4FGL_J2331.3-1558_weekly_bin949.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/40750346/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits
Spacecraft file(s): /lscratch/kocevski/40750346/ft2_4FGL_J2331.3-1558_weekly_bin949.fits
Exposure map: /lscratch/kocevski/40750346/expmap_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits
Exposure cube: /lscratch/kocevski/40750346/ltcube_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/40750346/Model_4FGL_J2331.3-1558_weekly_bin949.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) = 8094.32089519

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0440       1.0000          .0000       .10000E+07
     2 'norm      '    34.347       1.0000          .0000       .10000E+07
     3 'Prefactor '    .16563E-05   1.0000          .0000       .10000E+07
     4 'norm      '    .23937       1.0000          .0000       .10000E+07
     5 'Prefactor '    13.546       1.0000          .0000       .10000E+07
     6 'Prefactor '    .18329E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .79806E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    12.852       1.0000          .0000       .10000E+07
     9 'Prefactor '    .44281       1.0000          .0000       .10000E+07
    10 'norm      '    3.3061       1.0000          .0000       .10000E+07
    11 'norm      '    .68762       1.0000          .0000       .10000E+07
    12 'Prefactor '    .45397E-05   1.0000          .0000       .10000E+07
    13 'norm      '    .18135E-06   1.0000          .0000       .10000E+07
    14 'norm      '    6.5164       1.0000          .0000       .10000E+07
    15 'Prefactor '    .40008E-04   1.0000          .0000       .10000E+07
    16 'Normalizat'    1.0681       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .71036       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=   8094.306     FROM MIGRAD    STATUS=CONVERGED    126 CALLS     1223 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0658        9.1988        .11106E-06   -.96327E-03
   2  norm          34.066        36.774       -.18072E-07    .42134E-02
   3  Prefactor     .10658E-07    8.7271        .42284E-06** at limit **
   4  norm          .23922        .43426       -.11472E-06** at limit **
   5  Prefactor     13.546        7.0500        .15987E-09   -.16048E-01
   6  Prefactor      .0000        2.8910       -.10875E-06** at limit **
   7  Prefactor     .18319E-08    34.728        .79777E-06** at limit **
   8  Prefactor     12.859        6.8439       -.74760E-07   -.41152E-01
   9  Prefactor     .43952        21.391        .18362E-06   -.46507E-02
  10  norm          3.3146        4.6407       -.19687E-07    .22832E-03
  11  norm          .68459        2.3932        .17405E-06   -.89853E-03
  12  Prefactor     .70499E-08    7.9593        .52916E-07** at limit **
  13  norm           .0000        .17146        .24086E-07** at limit **
  14  norm          6.5190        3.9209        .65011E-07   -.11801E-02
  15  Prefactor      .0000        2.8646       -.11661E-07** at limit **
  16  Normalizat    1.0681        .15990       -.10046E-05   -.47625E-04
  17  Prefactor     .71030        .14296        .34562E-05   -.53933E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.06581
  norm       = 34.066
  Prefactor  = 1.06581e-08
  norm       = 0.239222
  Prefactor  = 13.5462
  Prefactor  = 0
  Prefactor  = 1.83187e-09
  Prefactor  = 12.8592
  Prefactor  = 0.439518
  norm       = 3.31458
  norm       = 0.684586
  Prefactor  = 7.04992e-09
  norm       = 0
  norm       = 6.51903
  Prefactor  = 0
  Normalizat = 1.06809
  Prefactor  = 0.710301
 **********
 **   18 **HESSE 
 **********

 FCN=   8094.306     FROM HESSE     STATUS=OK           259 CALLS     1482 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0658        9.2092        .37774E-03   -1.5655    
   2  norm          34.066        37.050        .17065E-03   -1.5591    
   3  Prefactor     .10658E-07    9.1054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .23922        .51525        .18710E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.546        14.610        .27189E-03   -1.5634    
   6  Prefactor      .0000        2.8877        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .18319E-08    34.810        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.859        13.276        .27916E-03   -1.5636    
   9  Prefactor     .43952        5.8131        .84686E-02   -1.5695    
  10  norm          3.3146        4.7984        .55653E-03   -1.5672    
  11  norm          .68459        2.4059        .61719E-03   -1.5691    
  12  Prefactor     .70499E-08    8.2177        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .17028        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.5190        3.9493        .39290E-03   -1.5657    
  15  Prefactor      .0000        2.8612        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0681        .13975        .39481E-01   -.90783    
  17  Prefactor     .71030        .12501        .42539E-01   -1.0312    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19688e-06
Minuit parameter uncertainties:
  1  9.20918
  2  37.0498
  3  0.000622944
  4  0.515251
  5  14.6097
  6  3.029e-06
  7  0.000501766
  8  13.2758
  9  3.19686
  10  4.7984
  11  2.40589
  12  0.000481171
  13  5.89333e-07
  14  3.94926
  15  3.67032e-06
  16  0.139795
  17  0.125062
 **********
 **   18 **HESSE 
 **********

 FCN=   8094.306     FROM HESSE     STATUS=OK           259 CALLS     1482 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0658        9.2092        .37774E-03   -1.5655    
   2  norm          34.066        37.050        .17065E-03   -1.5591    
   3  Prefactor     .10658E-07    9.1054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .23922        .51525        .18710E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.546        14.610        .27189E-03   -1.5634    
   6  Prefactor      .0000        2.8877        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .18319E-08    34.810        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.859        13.276        .27916E-03   -1.5636    
   9  Prefactor     .43952        5.8131        .84686E-02   -1.5695    
  10  norm          3.3146        4.7984        .55653E-03   -1.5672    
  11  norm          .68459        2.4059        .61719E-03   -1.5691    
  12  Prefactor     .70499E-08    8.2177        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .17028        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.5190        3.9493        .39290E-03   -1.5657    
  15  Prefactor      .0000        2.8612        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0681        .13975        .39481E-01   -.90783    
  17  Prefactor     .71030        .12501        .42539E-01   -1.0312    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19688e-06
Minuit parameter uncertainties:
  1  9.20918
  2  37.0498
  3  0.000622944
  4  0.515251
  5  14.6097
  6  3.029e-06
  7  0.000501766
  8  13.2758
  9  3.19686
  10  4.7984
  11  2.40589
  12  0.000481171
  13  5.89333e-07
  14  3.94926
  15  3.67032e-06
  16  0.139795
  17  0.125062
Done.

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

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  7.050e-09  4.812e-04  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:  7.103e-01  1.251e-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.068e+00  1.398e-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: 5.58536513407e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00435567458774 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/40750346/likelihoodResults_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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): 102
logL (Free Index) = 8094.36560284
delta logL = -0.0598021140358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8094.30580222
delta logL = -1.49840798258e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .80926E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.5119       1.0000          .0000       10.000    
     3 'Normalizat'    1.0683       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71010       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=   8094.306     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      212 TOTAL
                     EDM=   .44E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        11.859        .42118E-03** at limit **
   2  Index         2.3484        1.2395        .32213E-04     .0000    
   3  Normalizat    1.0681        1.1820       -.54520E-05    .64520E-04
   4  Prefactor     .71030        1.0600        .47883E-05    .81145E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.34842
  Normalizat = 1.06809
  Prefactor  = 0.710302
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8094.306     FROM HESSE     STATUS=FAILED         9 CALLS      221 TOTAL
                     EDM=   .44E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        11.859        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .61646        1.8478        .32213E-04   -.55897    
   3  Normalizat    1.0681        1.1820       -.54520E-05   -.90783    
   4  Prefactor     .71030        1.0600        .47883E-05   -1.0312    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.37283e-12
Minuit parameter uncertainties:
  1  3.24759e-05
  2  1.25791
  3  1.21329
  4  1.09263
ource GAL_V02
Working on...
/lscratch/kocevski/40750386/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits.....................!
real 23.70
user 21.93
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/40750386/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits', '/lscratch/kocevski/40750386/ft2_4FGL_J2331.3-1558_weekly_bin949.fits', expMap='/lscratch/kocevski/40750386/expmap_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits', expCube='/lscratch/kocevski/40750386/ltcube_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/40750386/Model_4FGL_J2331.3-1558_weekly_bin949.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/40750386/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits
Spacecraft file(s): /lscratch/kocevski/40750386/ft2_4FGL_J2331.3-1558_weekly_bin949.fits
Exposure map: /lscratch/kocevski/40750386/expmap_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits
Exposure cube: /lscratch/kocevski/40750386/ltcube_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/40750386/Model_4FGL_J2331.3-1558_weekly_bin949.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) = 8094.32089519

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0440       1.0000          .0000       .10000E+07
     2 'norm      '    34.347       1.0000          .0000       .10000E+07
     3 'Prefactor '    .16563E-05   1.0000          .0000       .10000E+07
     4 'norm      '    .23937       1.0000          .0000       .10000E+07
     5 'Prefactor '    13.546       1.0000          .0000       .10000E+07
     6 'Prefactor '    .18329E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .79806E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    12.852       1.0000          .0000       .10000E+07
     9 'Prefactor '    .44281       1.0000          .0000       .10000E+07
    10 'norm      '    3.3061       1.0000          .0000       .10000E+07
    11 'norm      '    .68762       1.0000          .0000       .10000E+07
    12 'Prefactor '    .45397E-05   1.0000          .0000       .10000E+07
    13 'norm      '    .18135E-06   1.0000          .0000       .10000E+07
    14 'norm      '    6.5164       1.0000          .0000       .10000E+07
    15 'Prefactor '    .40008E-04   1.0000          .0000       .10000E+07
    16 'Normalizat'    1.0681       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .71036       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=   8094.306     FROM MIGRAD    STATUS=CONVERGED    126 CALLS     1223 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0658        9.1988        .11106E-06   -.96327E-03
   2  norm          34.066        36.774       -.18072E-07    .42134E-02
   3  Prefactor     .10658E-07    8.7271        .42284E-06** at limit **
   4  norm          .23922        .43426       -.11472E-06** at limit **
   5  Prefactor     13.546        7.0500        .15987E-09   -.16048E-01
   6  Prefactor      .0000        2.8910       -.10875E-06** at limit **
   7  Prefactor     .18319E-08    34.728        .79777E-06** at limit **
   8  Prefactor     12.859        6.8439       -.74760E-07   -.41152E-01
   9  Prefactor     .43952        21.391        .18362E-06   -.46507E-02
  10  norm          3.3146        4.6407       -.19687E-07    .22832E-03
  11  norm          .68459        2.3932        .17405E-06   -.89853E-03
  12  Prefactor     .70499E-08    7.9593        .52916E-07** at limit **
  13  norm           .0000        .17146        .24086E-07** at limit **
  14  norm          6.5190        3.9209        .65011E-07   -.11801E-02
  15  Prefactor      .0000        2.8646       -.11661E-07** at limit **
  16  Normalizat    1.0681        .15990       -.10046E-05   -.47625E-04
  17  Prefactor     .71030        .14296        .34562E-05   -.53933E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.06581
  norm       = 34.066
  Prefactor  = 1.06581e-08
  norm       = 0.239222
  Prefactor  = 13.5462
  Prefactor  = 0
  Prefactor  = 1.83187e-09
  Prefactor  = 12.8592
  Prefactor  = 0.439518
  norm       = 3.31458
  norm       = 0.684586
  Prefactor  = 7.04992e-09
  norm       = 0
  norm       = 6.51903
  Prefactor  = 0
  Normalizat = 1.06809
  Prefactor  = 0.710301
Done.

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

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  7.050e-09  4.812e-04  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:  7.103e-01  1.251e-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.068e+00  1.398e-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: 5.58536513407e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00435567458774 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/40750327/likelihoodResults_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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): 102
logL (Free Index) = 8094.36560284
delta logL = -0.0598021140358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8094.30580222
delta logL = -1.49840798258e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .80926E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.5119       1.0000          .0000       10.000    
     3 'Normalizat'    1.0683       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71010       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=   8094.306     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      212 TOTAL
                     EDM=   .44E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        11.859        .42118E-03** at limit **
   2  Index         2.3484        1.2395        .32213E-04     .0000    
   3  Normalizat    1.0681        1.1820       -.54520E-05    .64520E-04
   4  Prefactor     .71030        1.0600        .47883E-05    .81145E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.34842
  Normalizat = 1.06809
  Prefactor  = 0.710302
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8094.306     FROM HESSE     STATUS=FAILED         9 CALLS      221 TOTAL
                     EDM=   .44E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        11.859        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .61646        1.8478        .32213E-04   -.55897    
   3  Normalizat    1.0681        1.1820       -.54520E-05   -.90783    
   4  Prefactor     .71030        1.0600        .47883E-05   -1.0312    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.37283e-12
Minuit parameter uncertainties:
  1  3.24759e-05
  2  1.25791
  3  1.21329
  4  1.09263
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 8094.30580072
delta logL = 4.26553015132e-10

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  0.000e+00  3.248e-05  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.348e+00  1.258e+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:  7.103e-01  1.093e+00  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.068e+00  1.213e+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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/40750346/cmap_HighResolution_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.36e-03', job_status='DONE', photon_flux_upper_limit='5.59e-08', time_completed='2026-10-13 20:37:18.529125', job_id='40750346', GAL2='0.71', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1791949038.53', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='4.27e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='949' AND source_name='4FGL J2331.3-1558' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 13 20:37:19 PDT 2026

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) = 8094.30580072
delta logL = 4.26553015132e-10

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  0.000e+00  3.248e-05  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.348e+00  1.258e+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:  7.103e-01  1.093e+00  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.068e+00  1.213e+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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/40750327/cmap_HighResolution_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.36e-03', job_status='DONE', photon_flux_upper_limit='5.59e-08', time_completed='2026-10-13 20:37:21.155881', job_id='40750327', GAL2='0.71', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1791949041.16', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='4.27e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='949' AND source_name='4FGL J2331.3-1558' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 13 20:37:21 PDT 2026

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

 FCN=   8094.306     FROM HESSE     STATUS=OK           259 CALLS     1482 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0658        9.2092        .37774E-03   -1.5655    
   2  norm          34.066        37.050        .17065E-03   -1.5591    
   3  Prefactor     .10658E-07    9.1054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .23922        .51525        .18710E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.546        14.610        .27189E-03   -1.5634    
   6  Prefactor      .0000        2.8877        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .18319E-08    34.810        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.859        13.276        .27916E-03   -1.5636    
   9  Prefactor     .43952        5.8131        .84686E-02   -1.5695    
  10  norm          3.3146        4.7984        .55653E-03   -1.5672    
  11  norm          .68459        2.4059        .61719E-03   -1.5691    
  12  Prefactor     .70499E-08    8.2177        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .17028        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.5190        3.9493        .39290E-03   -1.5657    
  15  Prefactor      .0000        2.8612        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0681        .13975        .39481E-01   -.90783    
  17  Prefactor     .71030        .12501        .42539E-01   -1.0312    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19688e-06
Minuit parameter uncertainties:
  1  9.20918
  2  37.0498
  3  0.000622944
  4  0.515251
  5  14.6097
  6  3.029e-06
  7  0.000501766
  8  13.2758
  9  3.19686
  10  4.7984
  11  2.40589
  12  0.000481171
  13  5.89333e-07
  14  3.94926
  15  3.67032e-06
  16  0.139795
  17  0.125062
Done.

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

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  7.050e-09  4.812e-04  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:  7.103e-01  1.251e-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.068e+00  1.398e-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: 5.58536513407e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00435567458774 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/40750386/likelihoodResults_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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): 102
logL (Free Index) = 8094.36560284
delta logL = -0.0598021140358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8094.30580222
delta logL = -1.49840798258e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .80926E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.5119       1.0000          .0000       10.000    
     3 'Normalizat'    1.0683       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71010       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=   8094.306     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      212 TOTAL
                     EDM=   .44E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        11.859        .42118E-03** at limit **
   2  Index         2.3484        1.2395        .32213E-04     .0000    
   3  Normalizat    1.0681        1.1820       -.54520E-05    .64520E-04
   4  Prefactor     .71030        1.0600        .47883E-05    .81145E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.34842
  Normalizat = 1.06809
  Prefactor  = 0.710302
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8094.306     FROM HESSE     STATUS=FAILED         9 CALLS      221 TOTAL
                     EDM=   .44E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        11.859        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .61646        1.8478        .32213E-04   -.55897    
   3  Normalizat    1.0681        1.1820       -.54520E-05   -.90783    
   4  Prefactor     .71030        1.0600        .47883E-05   -1.0312    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.37283e-12
Minuit parameter uncertainties:
  1  3.24759e-05
  2  1.25791
  3  1.21329
  4  1.09263
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) = 8094.30580072
delta logL = 4.26553015132e-10

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  0.000e+00  3.248e-05  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.348e+00  1.258e+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:  7.103e-01  1.093e+00  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.068e+00  1.213e+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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/40750386/cmap_HighResolution_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.36e-03', job_status='DONE', photon_flux_upper_limit='5.59e-08', time_completed='2026-10-13 20:37:42.489550', job_id='40750386', GAL2='0.71', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1791949062.49', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='4.27e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='949' AND source_name='4FGL J2331.3-1558' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 13 20:37:42 PDT 2026

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


Performing analysis on: 4FGL_J2331.3-1558_weekly_bin949
RA = 352.839, Dec = -15.9777
tmin = 812937601, tmax = 813542401
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='40750541', job_status='RUN', time_executed='2026-10-13 20:32:07.775692', time_epoch_executed='1791948727.78' WHERE source_name='4FGL J2331.3-1558' and cadence='weekly' and bin_id='949'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/40750541

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/40750541/ft1_4FGL_J2331.3-1558_weekly_bin949.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/40750541/ft2_4FGL_J2331.3-1558_weekly_bin949.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/40750541/ft1_4FGL_J2331.3-1558_weekly_bin949.fits outfile=/lscratch/kocevski/40750541/ft1_filteredMKT_4FGL_J2331.3-1558_weekly_bin949.fits ra=352.839 dec=-15.9777 rad=12.0 tmin=812937601.0 tmax=813542401.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.78
user 4.03
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/40750541/ft2_4FGL_J2331.3-1558_weekly_bin949.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/40750541/ft1_filteredMKT_4FGL_J2331.3-1558_weekly_bin949.fits evtable="EVENTS" outfile="/lscratch/kocevski/40750541/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.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.83
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 681

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/40750541/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits" evtable="EVENTS" scfile=/lscratch/kocevski/40750541/ft2_4FGL_J2331.3-1558_weekly_bin949.fits sctable="SC_DATA" outfile=/lscratch/kocevski/40750485/ltcube_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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/40750485/ft2_4FGL_J2331.3-1558_weekly_bin949.fits
.....................!
real 16.94
user 16.22
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/40750485/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits evtable="EVENTS" scfile=/lscratch/kocevski/40750485/ft2_4FGL_J2331.3-1558_weekly_bin949.fits sctable="SC_DATA" expcube=/lscratch/kocevski/40750485/ltcube_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits outfile=/lscratch/kocevski/40750485/expmap_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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/40750485/ltcube_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits
.....................!
real 59.57
user 55.50
sys 3.31

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/40750485/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits scfile=/lscratch/kocevski/40750485/ft2_4FGL_J2331.3-1558_weekly_bin949.fits outfile=/lscratch/kocevski/40750485/cmap_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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 0.84
user 0.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/40750485/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits scfile=/lscratch/kocevski/40750485/ft2_4FGL_J2331.3-1558_weekly_bin949.fits outfile=/lscratch/kocevski/40750485/cmap_HighResolution_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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.87
user 0.20
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/40750485/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits evtable="EVENTS" scfile=/lscratch/kocevski/40750485/ft2_4FGL_J2331.3-1558_weekly_bin949.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/40750485/Model_4FGL_J2331.3-1558_weekly_bin949.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 snumber of points = 17394
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2331.3-1558_weekly_bin949
RA = 352.839, Dec = -15.9777
tmin = 812937601, tmax = 813542401
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='40750574', job_status='RUN', time_executed='2026-10-13 20:33:06.922330', time_epoch_executed='1791948786.92' WHERE source_name='4FGL J2331.3-1558' and cadence='weekly' and bin_id='949'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/40750574

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/40750574/ft1_4FGL_J2331.3-1558_weekly_bin949.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/40750574/ft2_4FGL_J2331.3-1558_weekly_bin949.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/40750574/ft1_4FGL_J2331.3-1558_weekly_bin949.fits outfile=/lscratch/kocevski/40750574/ft1_filteredMKT_4FGL_J2331.3-1558_weekly_bin949.fits ra=352.839 dec=-15.9777 rad=12.0 tmin=812937601.0 tmax=813542401.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.87
user 4.24
sys 0.24

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

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

Number of photons that the gtmktime cut: 681

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/40750574/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits" evtable="EVENTS" scfile=/lscratch/kocevski/40750574/ft2_4FGL_J2331.3-1558_weekly_bin949.fits sctable="SC_DATAource GAL_V02
Working on...
/lscratch/kocevski/40750485/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits.....................!
real 22.80
user 21.20
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/40750485/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits', '/lscratch/kocevski/40750485/ft2_4FGL_J2331.3-1558_weekly_bin949.fits', expMap='/lscratch/kocevski/40750485/expmap_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits', expCube='/lscratch/kocevski/40750485/ltcube_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/40750485/Model_4FGL_J2331.3-1558_weekly_bin949.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/40750485/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits
Spacecraft file(s): /lscratch/kocevski/40750485/ft2_4FGL_J2331.3-1558_weekly_bin949.fits
Exposure map: /lscratch/kocevski/40750485/expmap_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits
Exposure cube: /lscratch/kocevski/40750485/ltcube_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/40750485/Model_4FGL_J2331.3-1558_weekly_bin949.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) = 8094.32089519

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0440       1.0000          .0000       .10000E+07
     2 'norm      '    34.347       1.0000          .0000       .10000E+07
     3 'Prefactor '    .16563E-05   1.0000          .0000       .10000E+07
     4 'norm      '    .23937       1.0000          .0000       .10000E+07
     5 'Prefactor '    13.546       1.0000          .0000       .10000E+07
     6 'Prefactor '    .18329E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .79806E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    12.852       1.0000          .0000       .10000E+07
     9 'Prefactor '    .44281       1.0000          .0000       .10000E+07
    10 'norm      '    3.3061       1.0000          .0000       .10000E+07
    11 'norm      '    .68762       1.0000          .0000       .10000E+07
    12 'Prefactor '    .45397E-05   1.0000          .0000       .10000E+07
    13 'norm      '    .18135E-06   1.0000          .0000       .10000E+07
    14 'norm      '    6.5164       1.0000          .0000       .10000E+07
    15 'Prefactor '    .40008E-04   1.0000          .0000       .10000E+07
    16 'Normalizat'    1.0681       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .71036       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=   8094.306     FROM MIGRAD    STATUS=CONVERGED    126 CALLS     1223 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0658        9.1988        .11106E-06   -.96327E-03
   2  norm          34.066        36.774       -.18072E-07    .42134E-02
   3  Prefactor     .10658E-07    8.7271        .42284E-06** at limit **
   4  norm          .23922        .43426       -.11472E-06** at limit **
   5  Prefactor     13.546        7.0500        .15987E-09   -.16048E-01
   6  Prefactor      .0000        2.8910       -.10875E-06** at limit **
   7  Prefactor     .18319E-08    34.728        .79777E-06** at limit **
   8  Prefactor     12.859        6.8439       -.74760E-07   -.41152E-01
   9  Prefactor     .43952        21.391        .18362E-06   -.46507E-02
  10  norm          3.3146        4.6407       -.19687E-07    .22832E-03
  11  norm          .68459        2.3932        .17405E-06   -.89853E-03
  12  Prefactor     .70499E-08    7.9593        .52916E-07** at limit **
  13  norm           .0000        .17146        .24086E-07** at limit **
  14  norm          6.5190        3.9209        .65011E-07   -.11801E-02
  15  Prefactor      .0000        2.8646       -.11661E-07** at limit **
  16  Normalizat    1.0681        .15990       -.10046E-05   -.47625E-04
  17  Prefactor     .71030        .14296        .34562E-05   -.53933E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.06581
  norm       = 34.066
  Prefactor  = 1.06581e-08
  norm       = 0.239222
  Prefactor  = 13.5462
  Prefactor  = 0
  Prefactor  = 1.83187e-09
  Prefactor  = 12.8592
  Prefactor  = 0.439518
  norm       = 3.31458
  norm       = 0.684586
  Prefactor  = 7.04992e-09
  norm       = 0
  norm       = 6.51903
  Prefactor  = 0
  Normalizat = 1.06809
  Prefactor  = 0.710301
 **********
 **   18 **HESSE 
 **********

 FCN=   8094.306     FROM HESSE     STATUS=OK           259 CALLS     1482 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0658        9.2092        .37774E-03   -1.5655    
   2  norm          34.066        37.050        .17065E-03   -1.5591    
   3  Prefactor     .10658E-07    9.1054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .23922        .51525        .18710E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.546        14.610        .27189E-03   -1.5634    
   6  Prefactor      .0000        2.8877        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .18319E-08    34.810        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.859        13.276        .27916E-03   -1.5636    
   9  Prefactor     .43952        5.8131        .84686E-02   -1.5695    
  10  norm          3.3146        4.7984        .55653E-03   -1.5672    
  11  norm          .68459        2.4059        .61719E-03   -1.5691    
  12  Prefactor     .70499E-08    8.2177        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .17028        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.5190        3.9493        .39290E-03   -1.5657    
  15  Prefactor      .0000        2.8612        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0681        .13975        .39481E-01   -.90783    
  17  Prefactor     .71030        .12501        .42539E-01   -1.0312    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19688e-06
Minuit parameter uncertainties:
  1  9.20918
  2  37.0498
  3  0.000622944
  4  0.515251
  5  14.6097
  6  3.029e-06
  7  0.000501766
  8  13.2758
  9  3.19686
  10  4.7984
  11  2.40589
  12  0.000481171
  13  5.89333e-07
  14  3.94926
  15  3.67032e-06
  16  0.139795
  17  0.125062
Done.

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

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  7.050e-09  4.812e-04  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:  7.103e-01  1.251e-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.068e+00  1.398e-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: 5.58536513407e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00435567458774 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/40750485/likelihoodResults_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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): 102
logL (Free Index) = 8094.36560284
delta logL = -0.0598021140358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8094.30580222
delta logL = -1.49840798258e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .80926E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.5119       1.0000          .0000       10.000    
     3 'Normalizat'    1.0683       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71010       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=   8094.306     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      212 TOTAL
                     EDM=   .44E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        11.859        .42118E-03** at limit **
   2  Index         2.3484        1.2395        .32213E-04     .0000    
   3  Normalizat    1.0681        1.1820       -.54520E-05    .64520E-04
   4  Prefactor     .71030        1.0600        .47883E-05    .81145E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.34842
  Normalizat = 1.06809
  Prefactor  = 0.710302
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8094.306     FROM HESSE     STATUS=FAILED         9 CALLS      221 TOTAL
                     EDM=   .44E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        11.859        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .61646        1.8478        .32213E-04   -.55897    
   3  Normalizat    1.0681        1.1820       -.54520E-05   -.90783    
   4  Prefactor     .71030        1.0600        .47883E-05   -1.0312    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.37283e-12
Minuit parameter uncertainties:
  1  3.24759e-05
  2  1.25791
  3  1.21329
  4  1.09263
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) = 8094.30580072
delta logL = 4.26553015132e-10

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  0.000e+00  3.248e-05  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.348e+00  1.258e+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:  7.103e-01  1.093e+00  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.068e+00  1.213e+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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/40750485/cmap_HighResolution_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.36e-03', job_status='DONE', photon_flux_upper_limit='5.59e-08', time_completed='2026-10-13 20:39:52.773380', job_id='40750485', GAL2='0.71', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1791949192.77', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='4.27e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='949' AND source_name='4FGL J2331.3-1558' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 13 20:39:53 PDT 2026

" outfile=/lscratch/kocevski/40750541/ltcube_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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/40750541/ft2_4FGL_J2331.3-1558_weekly_bin949.fits
.....................!
real 18.26
user 17.56
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/40750541/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits evtable="EVENTS" scfile=/lscratch/kocevski/40750541/ft2_4FGL_J2331.3-1558_weekly_bin949.fits sctable="SC_DATA" expcube=/lscratch/kocevski/40750541/ltcube_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits outfile=/lscratch/kocevski/40750541/expmap_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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/40750541/ltcube_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits
.....................!
real 67.13
user 62.46
sys 3.97

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/40750541/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits scfile=/lscratch/kocevski/40750541/ft2_4FGL_J2331.3-1558_weekly_bin949.fits outfile=/lscratch/kocevski/40750541/cmap_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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 0.72
user 0.22
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/40750541/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits scfile=/lscratch/kocevski/40750541/ft2_4FGL_J2331.3-1558_weekly_bin949.fits outfile=/lscratch/kocevski/40750541/cmap_HighResolution_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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.72
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/40750541/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits evtable="EVENTS" scfile=/lscratch/kocevski/40750541/ft2_4FGL_J2331.3-1558_weekly_bin949.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/40750541/Model_4FGL_J2331.3-1558_weekly_bin949.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 s" outfile=/lscratch/kocevski/40750574/ltcube_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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/40750574/ft2_4FGL_J2331.3-1558_weekly_bin949.fits
.....................!
real 18.57
user 17.92
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/40750574/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits evtable="EVENTS" scfile=/lscratch/kocevski/40750574/ft2_4FGL_J2331.3-1558_weekly_bin949.fits sctable="SC_DATA" expcube=/lscratch/kocevski/40750574/ltcube_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits outfile=/lscratch/kocevski/40750574/expmap_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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/40750574/ltcube_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits
.....................!
real 68.91
user 64.24
sys 3.96

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/40750574/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits scfile=/lscratch/kocevski/40750574/ft2_4FGL_J2331.3-1558_weekly_bin949.fits outfile=/lscratch/kocevski/40750574/cmap_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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 0.73
user 0.25
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/40750574/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits scfile=/lscratch/kocevski/40750574/ft2_4FGL_J2331.3-1558_weekly_bin949.fits outfile=/lscratch/kocevski/40750574/cmap_HighResolution_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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.92
user 0.25
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/40750574/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits evtable="EVENTS" scfile=/lscratch/kocevski/40750574/ft2_4FGL_J2331.3-1558_weekly_bin949.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/40750574/Model_4FGL_J2331.3-1558_weekly_bin949.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/40750541/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits.....................!
real 25.52
user 24.13
sys 0.89

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/40750541/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits', '/lscratch/kocevski/40750541/ft2_4FGL_J2331.3-1558_weekly_bin949.fits', expMap='/lscratch/kocevski/40750541/expmap_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits', expCube='/lscratch/kocevski/40750541/ltcube_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/40750541/Model_4FGL_J2331.3-1558_weekly_bin949.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/40750541/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits
Spacecraft file(s): /lscratch/kocevski/40750541/ft2_4FGL_J2331.3-1558_weekly_bin949.fits
Exposure map: /lscratch/kocevski/40750541/expmap_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits
Exposure cube: /lscratch/kocevski/40750541/ltcube_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/40750541/Model_4FGL_J2331.3-1558_weekly_bin949.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) = 8094.32089519

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0440       1.0000          .0000       .10000E+07
     2 'norm      '    34.347       1.0000          .0000       .10000E+07
     3 'Prefactor '    .16563E-05   1.0000          .0000       .10000E+07
     4 'norm      '    .23937       1.0000          .0000       .10000E+07
     5 'Prefactor '    13.546       1.0000          .0000       .10000E+07
     6 'Prefactor '    .18329E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .79806E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    12.852       1.0000          .0000       .10000E+07
     9 'Prefactor '    .44281       1.0000          .0000       .10000E+07
    10 'norm      '    3.3061       1.0000          .0000       .10000E+07
    11 'norm      '    .68762       1.0000          .0000       .10000E+07
    12 'Prefactor '    .45397E-05   1.0000          .0000       .10000E+07
    13 'norm      '    .18135E-06   1.0000          .0000       .10000E+07
    14 'norm      '    6.5164       1.0000          .0000       .10000E+07
    15 'Prefactor '    .40008E-04   1.0000          .0000       .10000E+07
    16 'Normalizat'    1.0681       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .71036       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=   8094.306     FROM MIGRAD    STATUS=CONVERGED    126 CALLS     1223 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0658        9.1988        .11106E-06   -.96327E-03
   2  norm          34.066        36.774       -.18072E-07    .42134E-02
   3  Prefactor     .10658E-07    8.7271        .42284E-06** at limit **
   4  norm          .23922        .43426       -.11472E-06** at limit **
   5  Prefactor     13.546        7.0500        .15987E-09   -.16048E-01
   6  Prefactor      .0000        2.8910       -.10875E-06** at limit **
   7  Prefactor     .18319E-08    34.728        .79777E-06** at limit **
   8  Prefactor     12.859        6.8439       -.74760E-07   -.41152E-01
   9  Prefactor     .43952        21.391        .18362E-06   -.46507E-02
  10  norm          3.3146        4.6407       -.19687E-07    .22832E-03
  11  norm          .68459        2.3932        .17405E-06   -.89853E-03
  12  Prefactor     .70499E-08    7.9593        .52916E-07** at limit **
  13  norm           .0000        .17146        .24086E-07** at limit **
  14  norm          6.5190        3.9209        .65011E-07   -.11801E-02
  15  Prefactor      .0000        2.8646       -.11661E-07** at limit **
  16  Normalizat    1.0681        .15990       -.10046E-05   -.47625E-04
  17  Prefactor     .71030        .14296        .34562E-05   -.53933E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.06581
  norm       = 34.066
  Prefactor  = 1.06581e-08
  norm       = 0.239222
  Prefactor  = 13.5462
  Prefactor  = 0
  Prefactor  = 1.83187e-09
  Prefactor  = 12.8592
  Prefactor  = 0.439518
  norm       = 3.31458
  norm       = 0.684586
  Prefactor  = 7.04992e-09
  norm       = 0
  norm       = 6.51903
  Prefactor  = 0
  Normalizat = 1.06809
  Prefactor  = 0.710301
 **********
 **   18 **HESSE 
 **********

 FCN=   8094.306     FROM HESSE     STATUS=OK           259 CALLS     1482 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0658        9.2092        .37774E-03   -1.5655    
   2  norm          34.066        37.050        .17065E-03   -1.5591    
   3  Prefactor     .10658E-07    9.1054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .23922        .51525        .18710E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.546        14.610        .27189E-03   -1.5634    
   6  Prefactor      .0000        2.8877        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .18319E-08    34.810        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.859        13.276        .27916E-03   -1.5636    
   9  Prefactor     .43952        5.8131        .84686E-02   -1.5695    
  10  norm          3.3146        4.7984        .55653E-03   -1.5672    
  11  norm          .68459        2.4059        .61719E-03   -1.5691    
  12  Prefactor     .70499E-08    8.2177        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .17028        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.5190        3.9493        .39290E-03   -1.5657    
  15  Prefactor      .0000        2.8612        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0681        .13975        .39481E-01   -.90783    
  17  Prefactor     .71030        .12501        .42539E-01   -1.0312    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19688e-06
Minuit parameter uncertainties:
  1  9.20918
  2  37.0498
  3  0.000622944
  4  0.515251
  5  14.6097
  6  3.029e-06
  7  0.000501766
  8  13.2758
  9  3.19686
  10  4.7984
  11  2.40589
  12  0.000481171
  13  5.89333e-07
  14  3.94926
  15  3.67032e-06
  16  0.139795
  17  0.125062
Done.

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

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  7.050e-09  4.812e-04  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:  7.103e-01  1.251e-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.068e+00  1.398e-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: 5.58536513407e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00435567458774 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/40750541/likelihoodResults_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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): 102
logL (Free Index) = 8094.36560284
delta logL = -0.0598021140358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8094.30580222
delta logL = -1.49840798258e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .80926E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.5119       1.0000          .0000       10.000    
     3 'Normalizat'    1.0683       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71010       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=   8094.306     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      212 TOTAL
                     EDM=   .44E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        11.859        .42118E-03** at limit **
   2  Index         2.3484        1.2395        .32213E-04     .0000    
   3  Normalizat    1.0681        1.1820       -.54520E-05    .64520E-04
   4  Prefactor     .71030        1.0600        .47883E-05    .81145E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.34842
  Normalizat = 1.06809
  Prefactor  = 0.710302
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8094.306     FROM HESSE     STATUS=FAILED         9 CALLS      221 TOTAL
                     EDM=   .44E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        11.859        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .61646        1.8478        .32213E-04   -.55897    
   3  Normalizat    1.0681        1.1820       -.54520E-05   -.90783    
   4  Prefactor     .71030        1.0600        .47883E-05   -1.0312    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.37283e-12
Minuit parameter uncertainties:
  1  3.24759e-05
  2  1.25791
  3  1.21329
  4  1.09263
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) = 8094.30580072
delta logL = 4.26553015132e-10

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  0.000e+00  3.248e-05  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.348e+00  1.258e+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:  7.103e-01  1.093e+00  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.068e+00  1.213e+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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/40750541/cmap_HighResolution_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.36e-03', job_status='DONE', photon_flux_upper_limit='5.59e-08', time_completed='2026-10-13 20:41:40.376553', job_id='40750541', GAL2='0.71', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1791949300.38', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='4.27e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='949' AND source_name='4FGL J2331.3-1558' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 13 20:41:40 PDT 2026

ource GAL_V02
Working on...
/lscratch/kocevski/40750574/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits.....................!
real 26.42
user 24.94
sys 1.04

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/40750574/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits', '/lscratch/kocevski/40750574/ft2_4FGL_J2331.3-1558_weekly_bin949.fits', expMap='/lscratch/kocevski/40750574/expmap_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits', expCube='/lscratch/kocevski/40750574/ltcube_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/40750574/Model_4FGL_J2331.3-1558_weekly_bin949.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/40750574/ft1_filtered_4FGL_J2331.3-1558_weekly_bin949.fits
Spacecraft file(s): /lscratch/kocevski/40750574/ft2_4FGL_J2331.3-1558_weekly_bin949.fits
Exposure map: /lscratch/kocevski/40750574/expmap_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits
Exposure cube: /lscratch/kocevski/40750574/ltcube_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/40750574/Model_4FGL_J2331.3-1558_weekly_bin949.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) = 8094.32089519

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0440       1.0000          .0000       .10000E+07
     2 'norm      '    34.347       1.0000          .0000       .10000E+07
     3 'Prefactor '    .16563E-05   1.0000          .0000       .10000E+07
     4 'norm      '    .23937       1.0000          .0000       .10000E+07
     5 'Prefactor '    13.546       1.0000          .0000       .10000E+07
     6 'Prefactor '    .18329E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .79806E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    12.852       1.0000          .0000       .10000E+07
     9 'Prefactor '    .44281       1.0000          .0000       .10000E+07
    10 'norm      '    3.3061       1.0000          .0000       .10000E+07
    11 'norm      '    .68762       1.0000          .0000       .10000E+07
    12 'Prefactor '    .45397E-05   1.0000          .0000       .10000E+07
    13 'norm      '    .18135E-06   1.0000          .0000       .10000E+07
    14 'norm      '    6.5164       1.0000          .0000       .10000E+07
    15 'Prefactor '    .40008E-04   1.0000          .0000       .10000E+07
    16 'Normalizat'    1.0681       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .71036       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=   8094.306     FROM MIGRAD    STATUS=CONVERGED    126 CALLS     1223 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0658        9.1988        .11106E-06   -.96327E-03
   2  norm          34.066        36.774       -.18072E-07    .42134E-02
   3  Prefactor     .10658E-07    8.7271        .42284E-06** at limit **
   4  norm          .23922        .43426       -.11472E-06** at limit **
   5  Prefactor     13.546        7.0500        .15987E-09   -.16048E-01
   6  Prefactor      .0000        2.8910       -.10875E-06** at limit **
   7  Prefactor     .18319E-08    34.728        .79777E-06** at limit **
   8  Prefactor     12.859        6.8439       -.74760E-07   -.41152E-01
   9  Prefactor     .43952        21.391        .18362E-06   -.46507E-02
  10  norm          3.3146        4.6407       -.19687E-07    .22832E-03
  11  norm          .68459        2.3932        .17405E-06   -.89853E-03
  12  Prefactor     .70499E-08    7.9593        .52916E-07** at limit **
  13  norm           .0000        .17146        .24086E-07** at limit **
  14  norm          6.5190        3.9209        .65011E-07   -.11801E-02
  15  Prefactor      .0000        2.8646       -.11661E-07** at limit **
  16  Normalizat    1.0681        .15990       -.10046E-05   -.47625E-04
  17  Prefactor     .71030        .14296        .34562E-05   -.53933E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.06581
  norm       = 34.066
  Prefactor  = 1.06581e-08
  norm       = 0.239222
  Prefactor  = 13.5462
  Prefactor  = 0
  Prefactor  = 1.83187e-09
  Prefactor  = 12.8592
  Prefactor  = 0.439518
  norm       = 3.31458
  norm       = 0.684586
  Prefactor  = 7.04992e-09
  norm       = 0
  norm       = 6.51903
  Prefactor  = 0
  Normalizat = 1.06809
  Prefactor  = 0.710301
 **********
 **   18 **HESSE 
 **********

 FCN=   8094.306     FROM HESSE     STATUS=OK           259 CALLS     1482 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0658        9.2092        .37774E-03   -1.5655    
   2  norm          34.066        37.050        .17065E-03   -1.5591    
   3  Prefactor     .10658E-07    9.1054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .23922        .51525        .18710E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.546        14.610        .27189E-03   -1.5634    
   6  Prefactor      .0000        2.8877        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .18319E-08    34.810        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.859        13.276        .27916E-03   -1.5636    
   9  Prefactor     .43952        5.8131        .84686E-02   -1.5695    
  10  norm          3.3146        4.7984        .55653E-03   -1.5672    
  11  norm          .68459        2.4059        .61719E-03   -1.5691    
  12  Prefactor     .70499E-08    8.2177        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .17028        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.5190        3.9493        .39290E-03   -1.5657    
  15  Prefactor      .0000        2.8612        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0681        .13975        .39481E-01   -.90783    
  17  Prefactor     .71030        .12501        .42539E-01   -1.0312    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19688e-06
Minuit parameter uncertainties:
  1  9.20918
  2  37.0498
  3  0.000622944
  4  0.515251
  5  14.6097
  6  3.029e-06
  7  0.000501766
  8  13.2758
  9  3.19686
  10  4.7984
  11  2.40589
  12  0.000481171
  13  5.89333e-07
  14  3.94926
  15  3.67032e-06
  16  0.139795
  17  0.125062
Done.

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

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  7.050e-09  4.812e-04  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:  7.103e-01  1.251e-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.068e+00  1.398e-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: 5.58536513407e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00435567458774 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/40750574/likelihoodResults_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.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): 102
logL (Free Index) = 8094.36560284
delta logL = -0.0598021140358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8094.30580222
delta logL = -1.49840798258e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .80926E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.5119       1.0000          .0000       10.000    
     3 'Normalizat'    1.0683       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71010       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=   8094.306     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      212 TOTAL
                     EDM=   .44E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        11.859        .42118E-03** at limit **
   2  Index         2.3484        1.2395        .32213E-04     .0000    
   3  Normalizat    1.0681        1.1820       -.54520E-05    .64520E-04
   4  Prefactor     .71030        1.0600        .47883E-05    .81145E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.34842
  Normalizat = 1.06809
  Prefactor  = 0.710302
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8094.306     FROM HESSE     STATUS=FAILED         9 CALLS      221 TOTAL
                     EDM=   .44E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        11.859        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .61646        1.8478        .32213E-04   -.55897    
   3  Normalizat    1.0681        1.1820       -.54520E-05   -.90783    
   4  Prefactor     .71030        1.0600        .47883E-05   -1.0312    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.37283e-12
Minuit parameter uncertainties:
  1  3.24759e-05
  2  1.25791
  3  1.21329
  4  1.09263
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) = 8094.30580072
delta logL = 4.26553015132e-10

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  0.000e+00  3.248e-05  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.348e+00  1.258e+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:  7.103e-01  1.093e+00  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.068e+00  1.213e+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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/40750574/cmap_HighResolution_812937601_813542401_4FGL_J2331.3-1558_weekly_bin949.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.36e-03', job_status='DONE', photon_flux_upper_limit='5.59e-08', time_completed='2026-10-13 20:42:38.226370', job_id='40750574', GAL2='0.71', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1791949358.23', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='4.27e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='949' AND source_name='4FGL J2331.3-1558' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 13 20:42:38 PDT 2026

