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


Performing analysis on: 4FGL_J1807.9-6412_weekly_bin912
RA = 271.993, Dec = -64.209
tmin = 790560001, tmax = 791164801
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='19725350', job_status='RUN', time_executed='2026-01-27 02:58:35.052099', time_epoch_executed='1769511515.05' WHERE source_name='4FGL J1807.9-6412' and cadence='weekly' and bin_id='912'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19725350

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19725350/ft1_4FGL_J1807.9-6412_weekly_bin912.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19725350/ft2_4FGL_J1807.9-6412_weekly_bin912.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19725350/ft1_4FGL_J1807.9-6412_weekly_bin912.fits outfile=/lscratch/kocevski/19725350/ft1_filteredMKT_4FGL_J1807.9-6412_weekly_bin912.fits ra=271.993 dec=-64.209 rad=12.0 tmin=790560001.0 tmax=791164801.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.87
user 4.43
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19725350/ft2_4FGL_J1807.9-6412_weekly_bin912.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19725350/ft2_4FGL_J1807.9-6412_weekly_bin912.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/19725350/ft1_filteredMKT_4FGL_J1807.9-6412_weekly_bin912.fits evtable="EVENTS" outfile="/lscratch/kocevski/19725350/ft1_filtered_4FGL_J1807.9-6412_weekly_bin912.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.26
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 2521

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19725350/ft1_filtered_4FGL_J1807.9-6412_weekly_bin912.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19725350/ft2_4FGL_J1807.9-6412_weekly_bin912.fits sctable="SC_DATA" outfile=/lscratch/kocevski/19725350/ltcube_790560001_791164801_4FGL_J1807.9-6412_weekly_bin912.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/19725350/ft2_4FGL_J1807.9-6412_weekly_bin912.fits
.....................!
real 18.48
user 16.89
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19725350/ft1_filtered_4FGL_J1807.9-6412_weekly_bin912.fits evtable="EVENTS" scfile=/lscratch/kocevski/19725350/ft2_4FGL_J1807.9-6412_weekly_bin912.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19725350/ltcube_790560001_791164801_4FGL_J1807.9-6412_weekly_bin912.fits outfile=/lscratch/kocevski/19725350/expmap_790560001_791164801_4FGL_J1807.9-6412_weekly_bin912.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/19725350/ltcube_790560001_791164801_4FGL_J1807.9-6412_weekly_bin912.fits
.....................!
real 67.80
user 62.25
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
Extended source FHES J1642.1-5428 in ROI with RadialDisk spatial model.
Extended source FHES J1501.0-6310 in ROI with RadialGaussian spatial model.
Extended source HESS J1507-622 in ROI with RadialDisk spatial model.
Extended source MSH 15-52 in ROI with RadialDisk spatial model.
Extended source HESS J1534-571 in ROI with RadialDisk spatial model.
Extended source MSH 15-56 PWN in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/MSH15-56_PWN.fits is the correct path to the extended template.
Extended source MSH 15-56 SNR in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/MSH15-56_SNRmask.fits is the correct path to the extended template.
Extended source FGES J1553.8-5325 in ROI with RadialDisk spatial model.
Extended source HESS J1614-518 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 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.
Added 305 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 J1807.9-6412 @ 271.993 -64.209

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19725350/ft1_filtered_4FGL_J1807.9-6412_weekly_bin912.fits scfile=/lscratch/kocevski/19725350/ft2_4FGL_J1807.9-6412_weekly_bin912.fits outfile=/lscratch/kocevski/19725350/cmap_790560001_791164801_4FGL_J1807.9-6412_weekly_bin912.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=271.993 yref=-64.209 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.33
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19725350/ft1_filtered_4FGL_J1807.9-6412_weekly_bin912.fits scfile=/lscratch/kocevski/19725350/ft2_4FGL_J1807.9-6412_weekly_bin912.fits outfile=/lscratch/kocevski/19725350/cmap_HighResolution_790560001_791164801_4FGL_J1807.9-6412_weekly_bin912.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=271.993 yref=-64.209 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.28
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19725350/ft1_filtered_4FGL_J1807.9-6412_weekly_bin912.fits evtable="EVENTS" scfile=/lscratch/kocevski/19725350/ft2_4FGL_J1807.9-6412_weekly_bin912.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19725350/Model_4FGL_J1807.9-6412_weekly_bin912.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 J1553.8-5325
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 FHES J1501.0-6310
adding source FHES J1642.1-5428
adding source G337.0-0.1
adding source GAL_V02
adding source HESS J1507-622
adding source HESS J1534-571
adding source HESS J1614-518
adding source HESS J1616-508
adding source MSH 15-52
adding source MSH 15-56 PWN
adding source MSH 15-56 SNR
Working on...
/lscratch/kocevski/19725350/ft1_filtered_4FGL_J1807.9-6412_weekly_bin912.fits.....................!
real 346.61
user 342.95
sys 0.80

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19725350/ft1_filtered_4FGL_J1807.9-6412_weekly_bin912.fits', '/lscratch/kocevski/19725350/ft2_4FGL_J1807.9-6412_weekly_bin912.fits', expMap='/lscratch/kocevski/19725350/expmap_790560001_791164801_4FGL_J1807.9-6412_weekly_bin912.fits', expCube='/lscratch/kocevski/19725350/ltcube_790560001_791164801_4FGL_J1807.9-6412_weekly_bin912.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19725350/Model_4FGL_J1807.9-6412_weekly_bin912.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1807.9-6412'

4FGL J1807.9-6412
   Spectrum: PowerLaw
752    Prefactor:  2.359e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
753        Index:  2.523e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
754        Scale:  1.207e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19725350/ft1_filtered_4FGL_J1807.9-6412_weekly_bin912.fits
Spacecraft file(s): /lscratch/kocevski/19725350/ft2_4FGL_J1807.9-6412_weekly_bin912.fits
Exposure map: /lscratch/kocevski/19725350/expmap_790560001_791164801_4FGL_J1807.9-6412_weekly_bin912.fits
Exposure cube: /lscratch/kocevski/19725350/ltcube_790560001_791164801_4FGL_J1807.9-6412_weekly_bin912.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19725350/Model_4FGL_J1807.9-6412_weekly_bin912.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) = 25283.6171277

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.4678       1.0000          .0000       .10000E+07
     2 'Prefactor '    2.2452       1.0000          .0000       .10000E+07
     3 'norm      '    4.5196       1.0000          .0000       .10000E+07
     4 'norm      '    26.950       1.0000          .0000       .10000E+07
     5 'Prefactor '    2.2874       1.0000          .0000       .10000E+07
     6 'Prefactor '    5.9153       1.0000          .0000       .10000E+07
     7 'norm      '    3.0787       1.0000          .0000       .10000E+07
     8 'Prefactor '    3.4868       1.0000          .0000       .10000E+07
     9 'Prefactor '    .55612E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    10.176       1.0000          .0000       .10000E+07
    11 'Prefactor '    .18311E-05   1.0000          .0000       .10000E+07
    12 'norm      '    1.7475       1.0000          .0000       .10000E+07
    13 'norm      '    .20128       1.0000          .0000       .10000E+07
    14 'Prefactor '    .15567E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .58074E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    .37328E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    29.787       1.0000          .0000       .10000E+07
    18 'norm      '    35.131       1.0000          .0000       .10000E+07
    19 'Prefactor '    .20219E-05   1.0000          .0000       .10000E+07
    20 'norm      '    .89058       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.3094       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86602       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1126E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   25283.42     FROM MIGRAD    STATUS=CONVERGED    142 CALLS     1426 TOTAL
                     EDM=   .49E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.4923        5.4480        .60132E-07    .78805E-04
   2  Prefactor     2.2215        6.0912        .52918E-06   -.84315E-06
   3  norm          4.5180        3.2539       -.12335E-08    .38199E-04
   4  norm          26.602        2.4687        .17923E-07    .56633E-02
   5  Prefactor     2.3350        5.0029        .36243E-07    .27023E-04
   6  Prefactor     5.9585        2.2704       -.33064E-07    .32410E-02
   7  norm          3.2645        1.4605        .47969E-07    .41156E-02
   8  Prefactor     3.5452        7.2368        .74005E-07   -.41019E-03
   9  Prefactor     .66613E-09    62.789        .57148E-06** at limit **
  10  Prefactor     10.064        8.6284        .18712E-06    .14993E-03
  11  Prefactor      .0000        2.1770        .31991E-06** at limit **
  12  norm          1.7474        2.2641       -.49962E-07   -.80233E-05
  13  norm          .20265        .49336       -.39395E-07** at limit **
  14  Prefactor     .22204E-09    33.289        .56548E-06** at limit **
  15  norm          .16653E-09    101.01       -.23859E-06** at limit **
  16  Prefactor     .55511E-10    13.099       -.88440E-06** at limit **
  17  Prefactor     28.630        32.584        .15138E-06    .17897E-03
  18  norm          35.112        7.9823        .13189E-07   -.37891E-04
  19  Prefactor      .0000        5.9389        .27885E-06** at limit **
  20  norm          .89019        .62932       -.45147E-07   -.61804E-04
  21  Normalizat    1.3101        .19308        .31273E-06   -.39027E-06
  22  Prefactor     .86587        .54419E-01    .58037E-06    .94498E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 9.4923
  Prefactor  = 2.22153
  norm       = 4.51798
  norm       = 26.6022
  Prefactor  = 2.33503
  Prefactor  = 5.95851
  norm       = 3.26452
  Prefactor  = 3.54519
  Prefactor  = 6.66134e-10
  Prefactor  = 10.0645
  Prefactor  = 0
  norm       = 1.74737
  norm       = 0.202651
  Prefactor  = 2.22045e-10
  norm       = 1.66533e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 28.6299
  norm       = 35.1117
  Prefactor  = 0
  norm       = 0.890189
  Normalizat = 1.31015
  Prefactor  = 0.865868
 **********
 **   18 **HESSE 
 **********

 FCN=   25283.42     FROM HESSE     STATUS=OK           406 CALLS     1832 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.4923        5.4418        .32545E-03   -1.5646    
   2  Prefactor     2.2215        6.1196        .68555E-03   -1.5678    
   3  norm          4.5180        3.2597        .47333E-03   -1.5665    
   4  norm          26.602        26.773        .19267E-03   -1.5605    
   5  Prefactor     2.3350        5.0173        .67848E-03   -1.5677    
   6  Prefactor     5.9585        10.759        .41265E-03   -1.5659    
   7  norm          3.2645        24.310        .57781E-03   -1.5672    
   8  Prefactor     3.5452        7.3405        .54125E-03   -1.5670    
   9  Prefactor     .66613E-09    64.249        .15323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.064        8.6300        .31386E-03   -1.5645    
  11  Prefactor      .0000        2.1786        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.7474        2.2820        .79299E-03   -1.5682    
  13  norm          .20265        .39677        .25579E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .22204E-09    33.536        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .16653E-09    3.7504        .15232E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55511E-10    13.121        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     28.630        32.657        .18325E-03   -1.5601    
  18  norm          35.112        7.9735        .16873E-03   -1.5589    
  19  Prefactor      .0000        5.9245        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .89019        .62948        .46414E-03   -1.5689    
  21  Normalizat    1.3101        .16906        .97878E-01   -.83264    
  22  Prefactor     .86587        .46830E-01    .32894E-01   -.97344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.20796e-07
Minuit parameter uncertainties:
  1  5.44182
  2  6.1196
  3  3.25965
  4  26.7733
  5  5.01729
  6  10.7587
  7  17.8172
  8  7.3405
  9  0.000412136
  10  8.63005
  11  5.067e-07
  12  2.28205
  13  0.396774
  14  0.000174516
  15  4.66967e-05
  16  4.18988e-05
  17  32.6575
  18  7.97353
  19  2.12421e-06
  20  0.629477
  21  0.169133
  22  0.0468319
Done.

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

Extracting fit parameters...

4FGL J1807.9-6412
   Spectrum: PowerLaw
752    Prefactor:  0.000e+00  5.067e-07  0.000e+00  1.000e+06 ( 1.000e-13)
753        Index:  2.523e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
754        Scale:  1.207e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1099    Prefactor:  8.659e-01  4.683e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1100        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1101        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1070   Normalization:  1.310e+00  1.691e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 271.993 -64.209
Photon Flux Upper Limit: 3.70845003043e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00288854429707 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19725350/likelihoodResults_790560001_791164801_4FGL_J1807.9-6412_weekly_bin912.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) = 25283.4215731
delta logL = -0.000286076017801

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 25283.4212891
delta logL = -2.03110175789e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   25283.42     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      240 TOTAL
                     EDM=   .77E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.1183        .42118E-03** at limit **
   2  Index         1.6573        1.5287       -.20906E-06     .0000    
   3  Normalizat    1.3101        1.0773       -.30443E-05    .21393E-04
   4  Prefactor     .86587        1.2123       -.13593E-06    .86053E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.65731
  Normalizat = 1.31015
  Prefactor  = 0.865868
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   25283.42     FROM HESSE     STATUS=FAILED         9 CALLS      249 TOTAL
                     EDM=   .77E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.1183        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .26745        1.6854       -.20906E-06   -.73224    
   3  Normalizat    1.3101        1.0773       -.30443E-05   -.83264    
   4  Prefactor     .86587        1.2123       -.13593E-06   -.97344    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.6632e-13
Minuit parameter uncertainties:
  1  4.75199e-06
  2  1.57543
  3  1.09661
  4  1.25339
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) = 25283.4212871
delta logL = 0.0

Extracting fit parameters...

4FGL J1807.9-6412
   Spectrum: PowerLaw
752    Prefactor:  0.000e+00  4.752e-06  0.000e+00  1.000e+06 ( 1.000e-13)
753        Index:  1.657e+00  1.575e+00  0.000e+00  1.000e+01 (-1.000e+00)
754        Scale:  1.207e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1099    Prefactor:  8.659e-01  1.253e+00  0.000e+00  1.000e+01 ( 1.000e+00)
1100        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1101        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1070   Normalization:  1.310e+00  1.097e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 271.993 -64.209

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/19725350/cmap_HighResolution_790560001_791164801_4FGL_J1807.9-6412_weekly_bin912.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.89e-03', job_status='DONE', photon_flux_upper_limit='3.71e-08', time_completed='2026-01-27 03:29:16.216337', job_id='19725350', GAL2='0.87', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1769513356.22', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='912' AND source_name='4FGL J1807.9-6412' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 27 03:29:16 PST 2026

