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


Performing analysis on: 4FGL_J1802.6-3940_weekly_bin906
RA = 270.671, Dec = -39.6687
tmin = 786931201, tmax = 787536001
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='17380124', job_status='RUN', time_executed='2025-12-16 02:55:46.604620', time_epoch_executed='1765882546.6' WHERE source_name='4FGL J1802.6-3940' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17380124

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17380124/ft1_4FGL_J1802.6-3940_weekly_bin906.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17380124/ft2_4FGL_J1802.6-3940_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17380124/ft1_4FGL_J1802.6-3940_weekly_bin906.fits outfile=/lscratch/kocevski/17380124/ft1_filteredMKT_4FGL_J1802.6-3940_weekly_bin906.fits ra=270.671 dec=-39.6687 rad=12.0 tmin=786931201.0 tmax=787536001.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.44
user 4.49
sys 0.37

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17380124/ft2_4FGL_J1802.6-3940_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17380124/ft2_4FGL_J1802.6-3940_weekly_bin906.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/17380124/ft1_filteredMKT_4FGL_J1802.6-3940_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17380124/ft1_filtered_4FGL_J1802.6-3940_weekly_bin906.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.02
user 0.18
sys 0.15

Number of photons that the gtmktime cut: 12126

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17380124/ft1_filtered_4FGL_J1802.6-3940_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17380124/ft2_4FGL_J1802.6-3940_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17380124/ltcube_786931201_787536001_4FGL_J1802.6-3940_weekly_bin906.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/17380124/ft2_4FGL_J1802.6-3940_weekly_bin906.fits
.....................!
real 16.45
user 15.40
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17380124/ft1_filtered_4FGL_J1802.6-3940_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17380124/ft2_4FGL_J1802.6-3940_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17380124/ltcube_786931201_787536001_4FGL_J1802.6-3940_weekly_bin906.fits outfile=/lscratch/kocevski/17380124/expmap_786931201_787536001_4FGL_J1802.6-3940_weekly_bin906.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/17380124/ltcube_786931201_787536001_4FGL_J1802.6-3940_weekly_bin906.fits
.....................!
real 60.30
user 56.03
sys 3.65

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 FHES J1741.6-3917 in ROI with RadialDisk spatial model.
Extended source RX J1713.7-3946 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/RXJ1713_2016_250GeV.fits is the correct path to the extended template.
Extended source FGES J1745.8-3028 in ROI with RadialDisk spatial model.
Extended source G337.0-0.1 in ROI with RadialDisk spatial model.
Extended source FGES J1652.2-4633 in ROI with RadialDisk spatial model.
Extended source FGES J1655.5-4737 in ROI with RadialDisk spatial model.
Extended source W 28 in ROI with RadialDisk spatial model.
Extended source HESS J1616-508 in ROI with RadialDisk spatial model.
Extended source FGES J1631.6-4756 in ROI with RadialDisk spatial model.
Extended source FGES J1633.0-4746 in ROI with RadialDisk spatial model.
Extended source FHES J1642.1-5428 in ROI with RadialDisk spatial model.
Extended source HESS J1804-216 in ROI with RadialDisk spatial model.
Extended source W 30 in ROI with RadialDisk spatial model.
Extended source HESS J1808-204 in ROI with RadialDisk spatial model.
Extended source HESS J1809-193 in ROI with RadialDisk spatial model.
Added 563 point sources and 15 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 J1802.6-3940 @ 270.671 -39.6687

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17380124/ft1_filtered_4FGL_J1802.6-3940_weekly_bin906.fits scfile=/lscratch/kocevski/17380124/ft2_4FGL_J1802.6-3940_weekly_bin906.fits outfile=/lscratch/kocevski/17380124/cmap_786931201_787536001_4FGL_J1802.6-3940_weekly_bin906.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=270.671 yref=-39.6687 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.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17380124/ft1_filtered_4FGL_J1802.6-3940_weekly_bin906.fits scfile=/lscratch/kocevski/17380124/ft2_4FGL_J1802.6-3940_weekly_bin906.fits outfile=/lscratch/kocevski/17380124/cmap_HighResolution_786931201_787536001_4FGL_J1802.6-3940_weekly_bin906.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=270.671 yref=-39.6687 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.00
user 0.21
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17380124/ft1_filtered_4FGL_J1802.6-3940_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17380124/ft2_4FGL_J1802.6-3940_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17380124/Model_4FGL_J1802.6-3940_weekly_bin906.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 FGES J1631.6-4756
adding source FGES J1633.0-4746
adding source FGES J1652.2-4633
adding source FGES J1655.5-4737
adding source FGES J1745.8-3028
adding source FHES J1642.1-5428
adding source FHES J1741.6-3917
adding source G337.0-0.1
adding source GAL_V02
adding source HESS J1616-508
adding source HESS J1804-216
adding source HESS J1808-204
adding source HESS J1809-193
adding source RX J1713.7-3946
adding source W 28
adding source W 30
Working on...
/lscratch/kocevski/17380124/ft1_filtered_4FGL_J1802.6-3940_weekly_bin906.fits.....................!
real 1220.86
user 1213.30
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17380124/ft1_filtered_4FGL_J1802.6-3940_weekly_bin906.fits', '/lscratch/kocevski/17380124/ft2_4FGL_J1802.6-3940_weekly_bin906.fits', expMap='/lscratch/kocevski/17380124/expmap_786931201_787536001_4FGL_J1802.6-3940_weekly_bin906.fits', expCube='/lscratch/kocevski/17380124/ltcube_786931201_787536001_4FGL_J1802.6-3940_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17380124/Model_4FGL_J1802.6-3940_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1802.6-3940'

4FGL J1802.6-3940
   Spectrum: LogParabola
1478         norm:  1.038e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
1479        alpha:  2.264e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
1480         beta:  1.290e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
1481           Eb:  8.469e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17380124/ft1_filtered_4FGL_J1802.6-3940_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17380124/ft2_4FGL_J1802.6-3940_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17380124/expmap_786931201_787536001_4FGL_J1802.6-3940_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17380124/ltcube_786931201_787536001_4FGL_J1802.6-3940_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17380124/Model_4FGL_J1802.6-3940_weekly_bin906.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) = 104002.084068

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9272       1.0000          .0000       .10000E+07
     2 'norm      '    5.9625       1.0000          .0000       .10000E+07
     3 'norm      '    .18089E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .46871E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .44409E-09   1.0000          .0000       .10000E+07
     6 'Prefactor '    .86920E-01   1.0000          .0000       .10000E+07
     7 'norm      '    6.2748       1.0000          .0000       .10000E+07
     8 'norm      '    2.0878       1.0000          .0000       .10000E+07
     9 'norm      '    4.6218       1.0000          .0000       .10000E+07
    10 'norm      '    11.784       1.0000          .0000       .10000E+07
    11 'Normalizat'    .99602       1.0000         .10000E-01   10.000    
    12 'Prefactor '    1.0118       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .2087E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   104001.2     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      598 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3061        12.895       -.37757E-06   -.10329E-02
   2  norm          5.9659        6.7770        .99070E-06   -.10165E-02
   3  norm          .11102E-09    11.088        .17495E-06** at limit **
   4  Prefactor     .19984E-08    54.239        .56954E-06** at limit **
   5  norm           .0000        .75247E-01    .20513E-06** at limit **
   6  Prefactor     .61062E-09    29.128       -.31309E-05** at limit **
   7  norm          6.2785        2.9835        .75828E-07    .18044E-04
   8  norm          2.0874        2.2797        .14225E-06   -.12606E-02
   9  norm          4.5057        8.7861        .37219E-07   -.64029E-03
  10  norm          11.769        1.0833       -.29021E-07    .56216E-01
  11  Normalizat    .99708        .19876        .60190E-05   -.57165E-04
  12  Prefactor     1.0117        .14259E-01    .23291E-05   -.17826E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.30606
  norm       = 5.96594
  norm       = 1.11022e-10
  Prefactor  = 1.9984e-09
  norm       = 0
  Prefactor  = 6.10623e-10
  norm       = 6.2785
  norm       = 2.0874
  norm       = 4.50565
  norm       = 11.7695
  Normalizat = 0.997076
  Prefactor  = 1.01167
 **********
 **   18 **HESSE 
 **********

 FCN=   104001.2     FROM HESSE     STATUS=OK           157 CALLS      755 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3061        12.777        .45287E-03   -1.5662    
   2  norm          5.9659        6.8225        .41099E-03   -1.5659    
   3  norm          .11102E-09    11.143        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .19984E-08    54.024        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        .74937E-01    .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .61062E-09    28.522        .14295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.2785        3.0011        .40049E-03   -1.5658    
   8  norm          2.0874        2.2824        .71423E-03   -1.5679    
   9  norm          4.5057        8.8010        .46793E-03   -1.5666    
  10  norm          11.769        10.132        .29157E-03   -1.5639    
  11  Normalizat    .99708        .21568        .36784       -.93128    
  12  Prefactor     1.0117        .14928E-01    .26832E-01   -.92342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13253e-07
Minuit parameter uncertainties:
  1  12.7767
  2  6.82247
  3  7.34231e-05
  4  0.000656442
  5  1.60165e-07
  6  0.000267848
  7  3.0011
  8  2.28241
  9  8.80106
  10  10.1316
  11  0.215872
  12  0.0149285
Done.

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

Extracting fit parameters...

4FGL J1802.6-3940
   Spectrum: LogParabola
1478         norm:  0.000e+00  1.602e-07  0.000e+00  1.000e+06 ( 1.000e-11)
1479        alpha:  2.264e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
1480         beta:  1.290e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
1481           Eb:  8.469e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
2058    Prefactor:  1.012e+00  1.493e-02  0.000e+00  1.000e+01 ( 1.000e+00)
2059        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
2060        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
2031   Normalization:  9.971e-01  2.159e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 270.671 -39.669
Photon Flux Upper Limit: 3.12608484837e-08 ph cm-2 s-1
Energy Flux Upper Limit: None

Saving results to:
/lscratch/kocevski/17380124/likelihoodResults_786931201_787536001_4FGL_J1802.6-3940_weekly_bin906.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) = 104001.21886
delta logL = -0.00128631471307

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 104001.217574
delta logL = -4.30896761827e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15765E-07   1.0000          .0000       .10000E+07
     2 'alpha     '    2.8342       1.0000          .0000       5.0000    
     3 'Normalizat'    .99702       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0117       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .2087E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   104001.2     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      251 TOTAL
                     EDM=   .66E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .62272E-01    .42118E-03** at limit **
   2  alpha         2.6062        1.0099        .15012E-05     .0000    
   3  Normalizat    .99708        1.3269        .24491E-05   -.50995E-04
   4  Prefactor     1.0117        1.2596       -.33127E-07   -.10767E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 2.60618
  Normalizat = 0.997076
  Prefactor  = 1.01167
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   104001.2     FROM HESSE     STATUS=FAILED         9 CALLS      260 TOTAL
                     EDM=   .66E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .62272E-01    .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3733        1.2238        .15012E-05    .42486E-01
   3  Normalizat    .99708        1.3269        .24491E-05   -.93128    
   4  Prefactor     1.0117        1.2596       -.33127E-07   -.92342    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.57478e-12
Minuit parameter uncertainties:
  1  5.5646e-08
  2  1.03971
  3  1.37514
  4  1.29946
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) = 104001.217574
delta logL = 0.0

Extracting fit parameters...

4FGL J1802.6-3940
   Spectrum: LogParabola
1478         norm:  0.000e+00  5.565e-08  0.000e+00  1.000e+06 ( 1.000e-11)
1479        alpha:  2.606e+00  1.040e+00  0.000e+00  5.000e+00 ( 1.000e+00)
1480         beta:  1.290e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
1481           Eb:  8.469e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
2058    Prefactor:  1.012e+00  1.299e+00  0.000e+00  1.000e+01 ( 1.000e+00)
2059        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
2060        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
2031   Normalization:  9.971e-01  1.375e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 270.671 -39.669

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.003e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.223e+00 [aplpy.core]
Saving /lscratch/kocevski/17380124/cmap_HighResolution_786931201_787536001_4FGL_J1802.6-3940_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET job_status='DONE', comment='SUCCESS', photon_flux_upper_limit='3.13e-08', time_completed='2025-12-16 04:21:29.875023', job_id='17380124', GAL2='1.01', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1765887689.88', return_code2='101', ts='0.00', return_code='0', GAL='1.01', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='906' AND source_name='4FGL J1802.6-3940' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 04:21:30 PST 2025

