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


Performing analysis on: 4FGL_J2336.5-7622_daily_bin2163
RA = 354.14, Dec = -76.3755
tmin = 799977601, tmax = 800236801
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='26505722', job_status='RUN', time_executed='2026-05-12 01:33:01.120177', time_epoch_executed='1778574781.12' WHERE source_name='4FGL J2336.5-7622' and cadence='daily' and bin_id='2163'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26505722

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26505722/ft1_4FGL_J2336.5-7622_daily_bin2163.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26505722/ft2_4FGL_J2336.5-7622_daily_bin2163.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26505722/ft1_4FGL_J2336.5-7622_daily_bin2163.fits outfile=/lscratch/kocevski/26505722/ft1_filteredMKT_4FGL_J2336.5-7622_daily_bin2163.fits ra=354.14 dec=-76.3755 rad=12.0 tmin=799977601.0 tmax=800236801.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 1.99
user 1.49
sys 0.15

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26505722/ft2_4FGL_J2336.5-7622_daily_bin2163.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26505722/ft2_4FGL_J2336.5-7622_daily_bin2163.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/26505722/ft1_filteredMKT_4FGL_J2336.5-7622_daily_bin2163.fits evtable="EVENTS" outfile="/lscratch/kocevski/26505722/ft1_filtered_4FGL_J2336.5-7622_daily_bin2163.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.64
user 0.19
sys 0.11

Number of photons that the gtmktime cut: 968

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26505722/ft1_filtered_4FGL_J2336.5-7622_daily_bin2163.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26505722/ft2_4FGL_J2336.5-7622_daily_bin2163.fits sctable="SC_DATA" outfile=/lscratch/kocevski/26505722/ltcube_799977601_800236801_4FGL_J2336.5-7622_daily_bin2163.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/26505722/ft2_4FGL_J2336.5-7622_daily_bin2163.fits
.....................!
real 8.54
user 7.99
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26505722/ft1_filtered_4FGL_J2336.5-7622_daily_bin2163.fits evtable="EVENTS" scfile=/lscratch/kocevski/26505722/ft2_4FGL_J2336.5-7622_daily_bin2163.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26505722/ltcube_799977601_800236801_4FGL_J2336.5-7622_daily_bin2163.fits outfile=/lscratch/kocevski/26505722/expmap_799977601_800236801_4FGL_J2336.5-7622_daily_bin2163.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/26505722/ltcube_799977601_800236801_4FGL_J2336.5-7622_daily_bin2163.fits
.....................!
real 69.10
user 64.19
sys 4.17

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
Extended source SMC-Galaxy in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/SMC-Galaxy.fits is the correct path to the extended template.
Added 175 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2336.5-7622 @ 354.14 -76.3755

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26505722/ft1_filtered_4FGL_J2336.5-7622_daily_bin2163.fits scfile=/lscratch/kocevski/26505722/ft2_4FGL_J2336.5-7622_daily_bin2163.fits outfile=/lscratch/kocevski/26505722/cmap_799977601_800236801_4FGL_J2336.5-7622_daily_bin2163.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=354.14 yref=-76.3755 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.66
user 0.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26505722/ft1_filtered_4FGL_J2336.5-7622_daily_bin2163.fits scfile=/lscratch/kocevski/26505722/ft2_4FGL_J2336.5-7622_daily_bin2163.fits outfile=/lscratch/kocevski/26505722/cmap_HighResolution_799977601_800236801_4FGL_J2336.5-7622_daily_bin2163.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=354.14 yref=-76.3755 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.71
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26505722/ft1_filtered_4FGL_J2336.5-7622_daily_bin2163.fits evtable="EVENTS" scfile=/lscratch/kocevski/26505722/ft2_4FGL_J2336.5-7622_daily_bin2163.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26505722/Model_4FGL_J2336.5-7622_daily_bin2163.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
adding source SMC-Galaxy
Working on...
/lscratch/kocevski/26505722/ft1_filtered_4FGL_J2336.5-7622_daily_bin2163.fits.....................!
real 973.57
user 967.34
sys 1.00

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26505722/ft1_filtered_4FGL_J2336.5-7622_daily_bin2163.fits', '/lscratch/kocevski/26505722/ft2_4FGL_J2336.5-7622_daily_bin2163.fits', expMap='/lscratch/kocevski/26505722/expmap_799977601_800236801_4FGL_J2336.5-7622_daily_bin2163.fits', expCube='/lscratch/kocevski/26505722/ltcube_799977601_800236801_4FGL_J2336.5-7622_daily_bin2163.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26505722/Model_4FGL_J2336.5-7622_daily_bin2163.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2336.5-7622'

4FGL J2336.5-7622
   Spectrum: PowerLaw
541    Prefactor:  1.115e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
542        Index:  2.228e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
543        Scale:  1.705e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26505722/ft1_filtered_4FGL_J2336.5-7622_daily_bin2163.fits
Spacecraft file(s): /lscratch/kocevski/26505722/ft2_4FGL_J2336.5-7622_daily_bin2163.fits
Exposure map: /lscratch/kocevski/26505722/expmap_799977601_800236801_4FGL_J2336.5-7622_daily_bin2163.fits
Exposure cube: /lscratch/kocevski/26505722/ltcube_799977601_800236801_4FGL_J2336.5-7622_daily_bin2163.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26505722/Model_4FGL_J2336.5-7622_daily_bin2163.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) = 10296.1940975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34789E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    2.8984       1.0000          .0000       .10000E+07
     3 'Prefactor '    22.482       1.0000          .0000       .10000E+07
     4 'Prefactor '    .11201E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    17.119       1.0000          .0000       .10000E+07
     6 'norm      '    2.6504       1.0000          .0000       .10000E+07
     7 'Prefactor '    32.218       1.0000          .0000       .10000E+07
     8 'norm      '    1.3502       1.0000          .0000       .10000E+07
     9 'norm      '    3.6382       1.0000          .0000       .10000E+07
    10 'Prefactor '    .64669E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .11986E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    .33729E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .90517E-04   1.0000          .0000       .10000E+07
    14 'Normalizat'    1.1675       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .93661       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10296.19     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      984 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46629E-08    6.4220        .26703E-08** at limit **
   2  Prefactor     2.8846        3.9008        .13160E-06   -.69153E-03
   3  Prefactor     22.540        2.2105       -.51262E-07    .59989E-01
   4  Prefactor      .0000        1.9285       -.11279E-07** at limit **
   5  Prefactor     17.073        1.4493        .29150E-07   -.40908E-01
   6  norm          1.3171        163.91        .29294E-05    .10189E-01
   7  Prefactor     31.792        9.5718        .19974E-06   -.13988    
   8  norm          1.3537        1.1420        .57595E-07   -.14366E-02
   9  norm          3.6474        4.1521       -.80169E-07    .33869E-03
  10  Prefactor     .43299E-08    6.6066       -.19567E-06** at limit **
  11  Prefactor     .11102E-09    10.910       -.54683E-06** at limit **
  12  Prefactor      .0000        2.8024       -.26714E-06** at limit **
  13  Prefactor      .0000        2.8615        .14942E-07** at limit **
  14  Normalizat    1.1671        .17403       -.30071E-05   -.28505E-04
  15  Prefactor     .93718        .97574E-01    .34323E-05   -.86180E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.66294e-09
  Prefactor  = 2.88461
  Prefactor  = 22.5398
  Prefactor  = 0
  Prefactor  = 17.0728
  norm       = 1.31715
  Prefactor  = 31.7917
  norm       = 1.35371
  norm       = 3.64735
  Prefactor  = 4.32987e-09
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  Prefactor  = 0
  Normalizat = 1.16707
  Prefactor  = 0.93718
 **********
 **   18 **HESSE 
 **********

 FCN=   10296.19     FROM HESSE     STATUS=OK           212 CALLS     1196 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .46629E-08    6.4323        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.8846        3.9136        .59661E-03   -1.5674    
   3  Prefactor     22.540        36.978        .21096E-03   -1.5613    
   4  Prefactor      .0000        1.9353        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.073        18.522        .24180E-03   -1.5625    
   6  norm          1.3171        180.17        .62592E-03   -1.5685    
   7  Prefactor     31.792        34.220        .17620E-03   -1.5595    
   8  norm          1.3537        1.1986        .94126E-03   -1.5685    
   9  norm          3.6474        4.1682        .52940E-03   -1.5670    
  10  Prefactor     .43299E-08    6.6106        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .11102E-09    10.938        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        2.8209        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        2.8690        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    1.1671        .15398        .67293E-01   -.87627    
  15  Prefactor     .93718        .85748E-01    .45470E-01   -.94854    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06221e-06
Minuit parameter uncertainties:
  1  0.000347292
  2  3.91356
  3  36.9783
  4  3.55453e-06
  5  18.5218
  6  30.811
  7  34.2206
  8  1.19856
  9  4.16817
  10  0.000338122
  11  7.41767e-05
  12  2.25515e-06
  13  1.54731e-05
  14  0.15404
  15  0.0857602
Done.

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

Extracting fit parameters...

4FGL J2336.5-7622
   Spectrum: PowerLaw
541    Prefactor:  0.000e+00  1.547e-05  0.000e+00  1.000e+06 ( 1.000e-13)
542        Index:  2.228e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
543        Scale:  1.705e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  9.372e-01  8.576e-02  0.000e+00  1.000e+01 ( 1.000e+00)
571        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
572        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
569   Normalization:  1.167e+00  1.540e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 354.140 -76.376
Photon Flux Upper Limit: 4.67760079048e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0035711598493 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/26505722/likelihoodResults_799977601_800236801_4FGL_J2336.5-7622_daily_bin2163.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) = 10296.1865303
delta logL = -0.000439598677985

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10296.1860907
delta logL = -3.69291228708e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .60507E-08   1.0000          .0000       .10000E+07
     2 'Index     '    .61982       1.0000          .0000       10.000    
     3 'Normalizat'    1.1670       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93720       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10296.19     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      241 TOTAL
                     EDM=   .63E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.5127       -.13999E-06** at limit **
   2  Index         2.8064        2.3360        .18467E-04     .0000    
   3  Normalizat    1.1671        .17279       -.14315E-05    .12093E-04
   4  Prefactor     .93718        .95536E-01    .55828E-06   -.95510E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.80637
  Normalizat = 1.16707
  Prefactor  = 0.93718
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.4958        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .89209        2.0989        .18467E-04   -.45418    
   3  Normalizat    1.1671        1.1189       -.14315E-05   -.87627    
   4  Prefactor     .93718        1.2802        .55828E-06   -.94854    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.25455e-13
Minuit parameter uncertainties:
  1  1.54948e-06
  2  1.85672
  3  1.14307
  4  1.32538
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) = 10296.1860907
delta logL = 0.0

Extracting fit parameters...

4FGL J2336.5-7622
   Spectrum: PowerLaw
541    Prefactor:  0.000e+00  1.549e-06  0.000e+00  1.000e+06 ( 1.000e-13)
542        Index:  2.806e+00  1.857e+00  0.000e+00  1.000e+01 (-1.000e+00)
543        Scale:  1.705e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  9.372e-01  1.325e+00  0.000e+00  1.000e+01 ( 1.000e+00)
571        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
572        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
569   Normalization:  1.167e+00  1.143e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 354.140 -76.376

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/26505722/cmap_HighResolution_799977601_800236801_4FGL_J2336.5-7622_daily_bin2163.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.57e-03', job_status='DONE', photon_flux_upper_limit='4.68e-08', time_completed='2026-05-12 01:54:57.387041', job_id='26505722', GAL2='0.94', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1778576097.39', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='2163' AND source_name='4FGL J2336.5-7622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue May 12 01:54:57 PDT 2026

