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


Performing analysis on: 4FGL_J2336.5-7622_daily_bin2091
RA = 354.14, Dec = -76.3755
tmin = 781315201, tmax = 781574401
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='14149842', job_status='RUN', time_executed='2025-10-21 11:16:44.230081', time_epoch_executed='1761070604.23' WHERE source_name='4FGL J2336.5-7622' and cadence='daily' and bin_id='2091'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/14149842

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/14149842/ft1_4FGL_J2336.5-7622_daily_bin2091.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/14149842/ft2_4FGL_J2336.5-7622_daily_bin2091.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/14149842/ft1_4FGL_J2336.5-7622_daily_bin2091.fits outfile=/lscratch/kocevski/14149842/ft1_filteredMKT_4FGL_J2336.5-7622_daily_bin2091.fits ra=354.14 dec=-76.3755 rad=12.0 tmin=781315201.0 tmax=781574401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.13
user 2.67
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/14149842/ft2_4FGL_J2336.5-7622_daily_bin2091.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/14149842/ft1_filteredMKT_4FGL_J2336.5-7622_daily_bin2091.fits evtable="EVENTS" outfile="/lscratch/kocevski/14149842/ft1_filtered_4FGL_J2336.5-7622_daily_bin2091.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.43
user 0.18
sys 0.14

Number of photons that the gtmktime cut: 799

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/14149842/ft1_filtered_4FGL_J2336.5-7622_daily_bin2091.fits" evtable="EVENTS" scfile=/lscratch/kocevski/14149842/ft2_4FGL_J2336.5-7622_daily_bin2091.fits sctable="SC_DATA" outfile=/lscratch/kocevski/14149842/ltcube_781315201_781574401_4FGL_J2336.5-7622_daily_bin2091.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/14149842/ft2_4FGL_J2336.5-7622_daily_bin2091.fits
.....................!
real 7.66
user 7.21
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/14149842/ft1_filtered_4FGL_J2336.5-7622_daily_bin2091.fits evtable="EVENTS" scfile=/lscratch/kocevski/14149842/ft2_4FGL_J2336.5-7622_daily_bin2091.fits sctable="SC_DATA" expcube=/lscratch/kocevski/14149842/ltcube_781315201_781574401_4FGL_J2336.5-7622_daily_bin2091.fits outfile=/lscratch/kocevski/14149842/expmap_781315201_781574401_4FGL_J2336.5-7622_daily_bin2091.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/14149842/ltcube_781315201_781574401_4FGL_J2336.5-7622_daily_bin2091.fits
.....................!
real 67.59
user 63.15
sys 3.98

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/14149842/ft1_filtered_4FGL_J2336.5-7622_daily_bin2091.fits scfile=/lscratch/kocevski/14149842/ft2_4FGL_J2336.5-7622_daily_bin2091.fits outfile=/lscratch/kocevski/14149842/cmap_781315201_781574401_4FGL_J2336.5-7622_daily_bin2091.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.53
user 0.22
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/14149842/ft1_filtered_4FGL_J2336.5-7622_daily_bin2091.fits scfile=/lscratch/kocevski/14149842/ft2_4FGL_J2336.5-7622_daily_bin2091.fits outfile=/lscratch/kocevski/14149842/cmap_HighResolution_781315201_781574401_4FGL_J2336.5-7622_daily_bin2091.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.78
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/14149842/ft1_filtered_4FGL_J2336.5-7622_daily_bin2091.fits evtable="EVENTS" scfile=/lscratch/kocevski/14149842/ft2_4FGL_J2336.5-7622_daily_bin2091.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/14149842/Model_4FGL_J2336.5-7622_daily_bin2091.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/14149842/ft1_filtered_4FGL_J2336.5-7622_daily_bin2091.fits.....................!
real 886.95
user 881.35
sys 0.81

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/14149842/ft1_filtered_4FGL_J2336.5-7622_daily_bin2091.fits', '/lscratch/kocevski/14149842/ft2_4FGL_J2336.5-7622_daily_bin2091.fits', expMap='/lscratch/kocevski/14149842/expmap_781315201_781574401_4FGL_J2336.5-7622_daily_bin2091.fits', expCube='/lscratch/kocevski/14149842/ltcube_781315201_781574401_4FGL_J2336.5-7622_daily_bin2091.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/14149842/Model_4FGL_J2336.5-7622_daily_bin2091.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/14149842/ft1_filtered_4FGL_J2336.5-7622_daily_bin2091.fits
Spacecraft file(s): /lscratch/kocevski/14149842/ft2_4FGL_J2336.5-7622_daily_bin2091.fits
Exposure map: /lscratch/kocevski/14149842/expmap_781315201_781574401_4FGL_J2336.5-7622_daily_bin2091.fits
Exposure cube: /lscratch/kocevski/14149842/ltcube_781315201_781574401_4FGL_J2336.5-7622_daily_bin2091.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/14149842/Model_4FGL_J2336.5-7622_daily_bin2091.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) = 8358.88554856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2234       1.0000          .0000       .10000E+07
     2 'Prefactor '    7.5604       1.0000          .0000       .10000E+07
     3 'Prefactor '    86.334       1.0000          .0000       .10000E+07
     4 'Prefactor '    .25868E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    .93259E-08   1.0000          .0000       .10000E+07
     6 'norm      '    .34528E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    25.704       1.0000          .0000       .10000E+07
     8 'norm      '    .11047E-07   1.0000          .0000       .10000E+07
     9 'norm      '    1.0902       1.0000          .0000       .10000E+07
    10 'Prefactor '    11.974       1.0000          .0000       .10000E+07
    11 'Prefactor '    32.634       1.0000          .0000       .10000E+07
    12 'Prefactor '    .31697E-07   1.0000          .0000       .10000E+07
    13 'Prefactor '    .36637E-08   1.0000          .0000       .10000E+07
    14 'Normalizat'    .69993       1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.1827       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=   8358.847     FROM MIGRAD    STATUS=CONVERGED     90 CALLS     1160 TOTAL
                     EDM=   .41E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1919        23.823        .71897E-07    .18214E-02
   2  Prefactor     7.5631        5.4399        .11149E-06   -.74500E-03
   3  Prefactor     86.322        1.0692       -.34546E-09    .29715E-01
   4  Prefactor      .0000        3.3044       -.61698E-07** at limit **
   5  Prefactor     .55511E-09    7.2486       -.18393E-06** at limit **
   6  norm           .0000        20.053       -.72204E-07** at limit **
   7  Prefactor     25.691        1.1545       -.18519E-08    .12656E-01
   8  norm           .0000        .25580       -.14183E-06** at limit **
   9  norm          1.0895        3.5489       -.26582E-06    .69548E-03
  10  Prefactor     11.976        3.4604       -.15567E-07    .20551E-01
  11  Prefactor     32.645        1.0291       -.61595E-09    .11639E-01
  12  Prefactor     .55511E-09    7.1408       -.74540E-07** at limit **
  13  Prefactor      .0000        1.4409       -.21405E-07** at limit **
  14  Normalizat    .70014        .20269        .29338E-05   -.24178E-05
  15  Prefactor     1.1826        .11578       -.50706E-06    .96886E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.1919
  Prefactor  = 7.56313
  Prefactor  = 86.3224
  Prefactor  = 0
  Prefactor  = 5.55112e-10
  norm       = 0
  Prefactor  = 25.6909
  norm       = 0
  norm       = 1.08948
  Prefactor  = 11.9758
  Prefactor  = 32.6453
  Prefactor  = 5.55112e-10
  Prefactor  = 0
  Normalizat = 0.700142
  Prefactor  = 1.18264
 **********
 **   18 **HESSE 
 **********

 FCN=   8358.847     FROM HESSE     STATUS=OK           212 CALLS     1372 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1919        25.162        .10185E-02   -1.5686    
   2  Prefactor     7.5631        5.4580        .36449E-03   -1.5653    
   3  Prefactor     86.322        53.056        .10763E-03   -1.5522    
   4  Prefactor      .0000        3.3118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .55511E-09    7.3567        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        20.052        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     25.691        32.194        .19728E-03   -1.5607    
   8  norm           .0000        .25620        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.0895        3.6741        .11454E-02   -1.5687    
  10  Prefactor     11.976        12.214        .28924E-03   -1.5639    
  11  Prefactor     32.645        43.970        .17507E-03   -1.5594    
  12  Prefactor     .55511E-09    7.2243        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        1.4466        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    .70014        .18599        .82798E-01   -1.0389    
  15  Prefactor     1.1826        .10458        .35054E-01   -.86867    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.86961e-08
Minuit parameter uncertainties:
  1  10.9527
  2  5.458
  3  53.0565
  4  3.78318e-06
  5  0.000128385
  6  7.77242e-06
  7  32.1938
  8  1.60728e-06
  9  3.67406
  10  12.2142
  11  43.9704
  12  0.000126199
  13  9.65986e-07
  14  0.186153
  15  0.104602
Done.

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

Extracting fit parameters...

4FGL J2336.5-7622
   Spectrum: PowerLaw
541    Prefactor:  0.000e+00  9.660e-07  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:  1.183e+00  1.046e-01  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:  7.001e-01  1.862e-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: 3.61296428496e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00275835274734 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/14149842/likelihoodResults_781315201_781574401_4FGL_J2336.5-7622_daily_bin2091.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) = 8358.84744388
delta logL = -0.000769158023104

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8358.84667523
delta logL = -5.08109224029e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   8358.847     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      239 TOTAL
                     EDM=   .19E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.2561        .42118E-03** at limit **
   2  Index         1.4318        1.4220       -.53066E-05     .0000    
   3  Normalizat    .70014        1.0398        .12511E-05    .65924E-05
   4  Prefactor     1.1826        1.1090       -.13688E-05    .11376E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.43184
  Normalizat = 0.700142
  Prefactor  = 1.18264
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8358.847     FROM HESSE     STATUS=FAILED         9 CALLS      248 TOTAL
                     EDM=   .19E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.2561        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .17602        1.5631       -.53066E-05   -.79467    
   3  Normalizat    .70014        1.0398        .12511E-05   -1.0389    
   4  Prefactor     1.1826        1.1090       -.13688E-05   -.86867    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.89229e-13
Minuit parameter uncertainties:
  1  2.08775e-06
  2  1.46424
  3  1.07151
  4  1.13205
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) = 8358.84667472
delta logL = 0.0

Extracting fit parameters...

4FGL J2336.5-7622
   Spectrum: PowerLaw
541    Prefactor:  0.000e+00  2.088e-06  0.000e+00  1.000e+06 ( 1.000e-13)
542        Index:  1.432e+00  1.464e+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:  1.183e+00  1.132e+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:  7.001e-01  1.072e+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/14149842/cmap_HighResolution_781315201_781574401_4FGL_J2336.5-7622_daily_bin2091.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.76e-03', job_status='DONE', photon_flux_upper_limit='3.61e-08', time_completed='2025-10-21 11:36:10.121547', job_id='14149842', GAL2='1.18', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1761071770.12', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='2091' AND source_name='4FGL J2336.5-7622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Oct 21 11:36:10 PDT 2025

