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


Performing analysis on: 4FGL_J1808.1-5013_daily_bin2022
RA = 272.032, Dec = -50.2207
tmin = 763430401, tmax = 763689601
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='498430', job_status='RUN', time_executed='2025-03-15 00:48:53.163435', time_epoch_executed='1742024933.16' WHERE source_name='4FGL J1808.1-5013' and cadence='daily' and bin_id='2022'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/498430

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/498430/ft1_4FGL_J1808.1-5013_daily_bin2022.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/498430/ft2_4FGL_J1808.1-5013_daily_bin2022.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/498430/ft1_4FGL_J1808.1-5013_daily_bin2022.fits outfile=/lscratch/kocevski/498430/ft1_filteredMKT_4FGL_J1808.1-5013_daily_bin2022.fits ra=272.032 dec=-50.2207 rad=12.0 tmin=763430401.0 tmax=763689601.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 2.21
user 1.90
sys 0.18

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/498430/ft2_4FGL_J1808.1-5013_daily_bin2022.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/498430/ft2_4FGL_J1808.1-5013_daily_bin2022.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/498430/ft1_filteredMKT_4FGL_J1808.1-5013_daily_bin2022.fits evtable="EVENTS" outfile="/lscratch/kocevski/498430/ft1_filtered_4FGL_J1808.1-5013_daily_bin2022.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.38
user 0.17
sys 0.14

Number of photons that the gtmktime cut: 2974

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/498430/ft1_filtered_4FGL_J1808.1-5013_daily_bin2022.fits" evtable="EVENTS" scfile=/lscratch/kocevski/498430/ft2_4FGL_J1808.1-5013_daily_bin2022.fits sctable="SC_DATA" outfile=/lscratch/kocevski/498430/ltcube_763430401_763689601_4FGL_J1808.1-5013_daily_bin2022.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/498430/ft2_4FGL_J1808.1-5013_daily_bin2022.fits
.....................!
real 7.87
user 7.57
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/498430/ft1_filtered_4FGL_J1808.1-5013_daily_bin2022.fits evtable="EVENTS" scfile=/lscratch/kocevski/498430/ft2_4FGL_J1808.1-5013_daily_bin2022.fits sctable="SC_DATA" expcube=/lscratch/kocevski/498430/ltcube_763430401_763689601_4FGL_J1808.1-5013_daily_bin2022.fits outfile=/lscratch/kocevski/498430/expmap_763430401_763689601_4FGL_J1808.1-5013_daily_bin2022.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/498430/ltcube_763430401_763689601_4FGL_J1808.1-5013_daily_bin2022.fits
.....................!
real 64.04
user 60.13
sys 3.52

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 FGES J1652.2-4633 in ROI with RadialDisk spatial model.
Extended source FGES J1655.5-4737 in ROI with RadialDisk spatial model.
Extended source FHES J1741.6-3917 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 FHES J1642.1-5428 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 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 J1745.8-3028 in ROI with RadialDisk spatial model.
Added 463 point sources and 14 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 J1808.1-5013 @ 272.032 -50.2207

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/498430/ft1_filtered_4FGL_J1808.1-5013_daily_bin2022.fits scfile=/lscratch/kocevski/498430/ft2_4FGL_J1808.1-5013_daily_bin2022.fits outfile=/lscratch/kocevski/498430/cmap_763430401_763689601_4FGL_J1808.1-5013_daily_bin2022.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=272.032 yref=-50.2207 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.49
user 0.20
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/498430/ft1_filtered_4FGL_J1808.1-5013_daily_bin2022.fits scfile=/lscratch/kocevski/498430/ft2_4FGL_J1808.1-5013_daily_bin2022.fits outfile=/lscratch/kocevski/498430/cmap_HighResolution_763430401_763689601_4FGL_J1808.1-5013_daily_bin2022.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=272.032 yref=-50.2207 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.48
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/498430/ft1_filtered_4FGL_J1808.1-5013_daily_bin2022.fits evtable="EVENTS" scfile=/lscratch/kocevski/498430/ft2_4FGL_J1808.1-5013_daily_bin2022.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/498430/Model_4FGL_J1808.1-5013_daily_bin2022.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 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 J1614-518
adding source HESS J1616-508
adding source MSH 15-56 PWN
adding source MSH 15-56 SNR
adding source RX J1713.7-3946
Working on...
/lscratch/kocevski/498430/ft1_filtered_4FGL_J1808.1-5013_daily_bin2022.fits.....................!
real 588.25
user 583.76
sys 0.82

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/498430/ft1_filtered_4FGL_J1808.1-5013_daily_bin2022.fits', '/lscratch/kocevski/498430/ft2_4FGL_J1808.1-5013_daily_bin2022.fits', expMap='/lscratch/kocevski/498430/expmap_763430401_763689601_4FGL_J1808.1-5013_daily_bin2022.fits', expCube='/lscratch/kocevski/498430/ltcube_763430401_763689601_4FGL_J1808.1-5013_daily_bin2022.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/498430/Model_4FGL_J1808.1-5013_daily_bin2022.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1808.1-5013'

4FGL J1808.1-5013
   Spectrum: PowerLaw
1240    Prefactor:  5.300e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
1241        Index:  2.582e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
1242        Scale:  9.436e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/498430/ft1_filtered_4FGL_J1808.1-5013_daily_bin2022.fits
Spacecraft file(s): /lscratch/kocevski/498430/ft2_4FGL_J1808.1-5013_daily_bin2022.fits
Exposure map: /lscratch/kocevski/498430/expmap_763430401_763689601_4FGL_J1808.1-5013_daily_bin2022.fits
Exposure cube: /lscratch/kocevski/498430/ltcube_763430401_763689601_4FGL_J1808.1-5013_daily_bin2022.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/498430/Model_4FGL_J1808.1-5013_daily_bin2022.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) = 27097.9334917

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6205       1.0000          .0000       .10000E+07
     2 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .74143       1.0000          .0000       .10000E+07
     4 'Prefactor '    .22011E-04   1.0000          .0000       .10000E+07
     5 'norm      '    1.5962       1.0000          .0000       .10000E+07
     6 'Prefactor '    6.8561       1.0000          .0000       .10000E+07
     7 'Prefactor '    .17992E-02   1.0000          .0000       .10000E+07
     8 'norm      '    .23581E-06   1.0000          .0000       .10000E+07
     9 'norm      '    60.857       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.3704       1.0000          .0000       .10000E+07
    11 'norm      '    .20199       1.0000          .0000       .10000E+07
    12 'Prefactor '    .29360E-06   1.0000          .0000       .10000E+07
    13 'norm      '    8.7102       1.0000          .0000       .10000E+07
    14 'norm      '    5.2098       1.0000          .0000       .10000E+07
    15 'norm      '    1.3127       1.0000          .0000       .10000E+07
    16 'norm      '    100.65       1.0000          .0000       .10000E+07
    17 'Prefactor '    4.7497       1.0000          .0000       .10000E+07
    18 'Prefactor '    .99099E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .13554E-03   1.0000          .0000       .10000E+07
    20 'norm      '    10.209       1.0000          .0000       .10000E+07
    21 'Normalizat'    .90551       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .93128       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1717E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   27095.75     FROM MIGRAD    STATUS=CONVERGED    169 CALLS     1113 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6184        4.6527       -.11377E-06   -.45071E-02
   2  Prefactor     .10000E-03    2.9910        .78124E-05** at limit **
   3  Prefactor     .78652        1.8892        .10252E-05   -.32809E-01
   4  Prefactor     .46313E-06    71.202        .12609E-05** at limit **
   5  norm          1.7015        40.453       -.54863E-05   -.23696E-02
   6  Prefactor     6.8521        13.851        .22183E-05    .73738E-02
   7  Prefactor     .13808E-05    26.036       -.27050E-05** at limit **
   8  norm           .0000        2.6744        .22110E-06** at limit **
   9  norm          61.026        1.2757        .14151E-07    .26912E-02
  10  Prefactor     1.2237        24.459        .29288E-05   -.68380E-03
  11  norm          .20147        .34417        .29806E-06** at limit **
  12  Prefactor      .0000        5.5687        .25801E-06** at limit **
  13  norm          8.7096        4.0501       -.15900E-06   -.18873E-02
  14  norm          5.2050        3.6722        .53139E-07   -.26774E-02
  15  norm          1.3558        1.0006        .53586E-07    .26485E-01
  16  norm          101.24        19.044        .59355E-06    .29615E-01
  17  Prefactor     .73386E-07    161.12       -.26272E-04** at limit **
  18  Prefactor     .59822E-05    13.397       -.21872E-05** at limit **
  19  Prefactor     .24697E-05    31.977       -.70540E-06** at limit **
  20  norm          10.027        9.9629       -.55898E-06   -.16529E-02
  21  Normalizat    .90570        .24470       -.54997E-04    .36266E-04
  22  Prefactor     .93123        .38057E-01    .52569E-05    .17463E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.61837
  Prefactor  = 0.0001
  Prefactor  = 0.786517
  Prefactor  = 4.6313e-07
  norm       = 1.70153
  Prefactor  = 6.85213
  Prefactor  = 1.38084e-06
  norm       = 0
  norm       = 61.0262
  Prefactor  = 1.2237
  norm       = 0.201466
  Prefactor  = 0
  norm       = 8.70961
  norm       = 5.20495
  norm       = 1.35581
  norm       = 101.236
  Prefactor  = 7.33857e-08
  Prefactor  = 5.98216e-06
  Prefactor  = 2.46969e-06
  norm       = 10.0268
  Normalizat = 0.905704
  Prefactor  = 0.93123
 **********
 **   18 **HESSE 
 **********

 FCN=   27095.75     FROM HESSE     STATUS=OK           396 CALLS     1509 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6184        4.6419        .42350E-03   -1.5661    
   2  Prefactor     .10000E-03    2.9221        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .78652        26.199        .57407E-03   -1.5690    
   4  Prefactor     .46313E-06    72.128        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.7015        41.129        .83914E-03   -1.5682    
   6  Prefactor     6.8521        14.012        .38294E-03   -1.5656    
   7  Prefactor     .13808E-05    32.020        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        2.6799        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          61.026        29.143        .12820E-03   -1.5552    
  10  Prefactor     1.2237        24.011        .93102E-03   -1.5686    
  11  norm          .20147        .32825        .30491E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        5.5702        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.7096        4.0614        .33940E-03   -1.5649    
  14  norm          5.2050        3.6823        .44017E-03   -1.5662    
  15  norm          1.3558        1.0257        .96155E-03   -1.5685    
  16  norm          101.24        19.259        .99685E-04   -1.5507    
  17  Prefactor     .73386E-07    161.35        .46144E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .59822E-05    34.647        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .24697E-05    39.454        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          10.027        9.9627        .31335E-03   -1.5645    
  21  Normalizat    .90570        .25306        .18537       -.96260    
  22  Prefactor     .93123        .37945E-01    .30082E-01   -.95058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18495e-06
Minuit parameter uncertainties:
  1  4.64195
  2  1.67062e-06
  3  9.07886
  4  0.0115592
  5  16.7311
  6  14.0124
  7  0.013299
  8  5.52511e-06
  9  29.1427
  10  10.8412
  11  0.328247
  12  8.87059e-06
  13  4.06136
  14  3.68228
  15  1.02569
  16  19.2593
  17  0.00688256
  18  0.0287935
  19  0.0197424
  20  9.96267
  21  0.253391
  22  0.0379465
Done.

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

Extracting fit parameters...

4FGL J1808.1-5013
   Spectrum: PowerLaw
1240    Prefactor:  0.000e+00  8.871e-06  0.000e+00  1.000e+06 ( 1.000e-13)
1241        Index:  2.582e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
1242        Scale:  9.436e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1695    Prefactor:  9.312e-01  3.795e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1696        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1697        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1664   Normalization:  9.057e-01  2.534e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 272.032 -50.221
Photon Flux Upper Limit: 5.64041673502e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0044093255243 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/498430/likelihoodResults_763430401_763689601_4FGL_J1808.1-5013_daily_bin2022.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): 0
logL (Free Index) = 27095.7503767
delta logL = -0.000339821912348

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 27095.750037
delta logL = -9.53550625127e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .64559E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.0266       1.0000          .0000       10.000    
     3 'Normalizat'    .90569       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93124       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1717E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   27095.75     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      246 TOTAL
                     EDM=   .49E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        6.5643        .42118E-03** at limit **
   2  Index         2.4363        1.7321        .77951E-05     .0000    
   3  Normalizat    .90570        1.2408        .63799E-05   -.48816E-04
   4  Prefactor     .93123        1.2745        .12197E-05   -.11303E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.4363
  Normalizat = 0.905703
  Prefactor  = 0.93123
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   27095.75     FROM HESSE     STATUS=FAILED         9 CALLS      255 TOTAL
                     EDM=   .49E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        6.5643        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .66694        1.9873        .77951E-05   -.53837    
   3  Normalizat    .90570        1.2408        .63799E-05   -.96260    
   4  Prefactor     .93123        1.2745        .12197E-05   -.95058    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.91057e-12
Minuit parameter uncertainties:
  1  1.11277e-06
  2  1.78297
  3  1.2836
  4  1.3194
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) = 27095.7500369
delta logL = 0.0

Extracting fit parameters...

4FGL J1808.1-5013
   Spectrum: PowerLaw
1240    Prefactor:  0.000e+00  1.113e-06  0.000e+00  1.000e+06 ( 1.000e-13)
1241        Index:  2.436e+00  1.783e+00  0.000e+00  1.000e+01 (-1.000e+00)
1242        Scale:  9.436e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1695    Prefactor:  9.312e-01  1.319e+00  0.000e+00  1.000e+01 ( 1.000e+00)
1696        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1697        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1664   Normalization:  9.057e-01  1.284e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 272.032 -50.221

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/498430/cmap_HighResolution_763430401_763689601_4FGL_J1808.1-5013_daily_bin2022.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.41e-03', job_status='DONE', photon_flux_upper_limit='5.64e-08', time_completed='2025-03-15 01:23:40.876251', job_id='498430', GAL2='0.93', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1742027020.88', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='2022' AND source_name='4FGL J1808.1-5013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Mar 15 01:23:40 PDT 2025

