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


Performing analysis on: 4FGL_J1808.2+3500_daily_bin2105
RA = 272.066, Dec = 35.0104
tmin = 784944001, tmax = 785203201
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='15782139', job_status='RUN', time_executed='2025-11-19 01:53:32.150098', time_epoch_executed='1763546012.15' WHERE source_name='4FGL J1808.2+3500' and cadence='daily' and bin_id='2105'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/15782139

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/15782139/ft1_4FGL_J1808.2+3500_daily_bin2105.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/15782139/ft2_4FGL_J1808.2+3500_daily_bin2105.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/15782139/ft1_4FGL_J1808.2+3500_daily_bin2105.fits outfile=/lscratch/kocevski/15782139/ft1_filteredMKT_4FGL_J1808.2+3500_daily_bin2105.fits ra=272.066 dec=35.0104 rad=12.0 tmin=784944001.0 tmax=785203201.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.58
user 2.61
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/15782139/ft2_4FGL_J1808.2+3500_daily_bin2105.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/15782139/ft2_4FGL_J1808.2+3500_daily_bin2105.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/15782139/ft1_filteredMKT_4FGL_J1808.2+3500_daily_bin2105.fits evtable="EVENTS" outfile="/lscratch/kocevski/15782139/ft1_filtered_4FGL_J1808.2+3500_daily_bin2105.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.83
user 0.19
sys 0.12

Number of photons that the gtmktime cut: 832

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/15782139/ft1_filtered_4FGL_J1808.2+3500_daily_bin2105.fits" evtable="EVENTS" scfile=/lscratch/kocevski/15782139/ft2_4FGL_J1808.2+3500_daily_bin2105.fits sctable="SC_DATA" outfile=/lscratch/kocevski/15782139/ltcube_784944001_785203201_4FGL_J1808.2+3500_daily_bin2105.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/15782139/ft2_4FGL_J1808.2+3500_daily_bin2105.fits
.....................!
real 8.92
user 7.60
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/15782139/ft1_filtered_4FGL_J1808.2+3500_daily_bin2105.fits evtable="EVENTS" scfile=/lscratch/kocevski/15782139/ft2_4FGL_J1808.2+3500_daily_bin2105.fits sctable="SC_DATA" expcube=/lscratch/kocevski/15782139/ltcube_784944001_785203201_4FGL_J1808.2+3500_daily_bin2105.fits outfile=/lscratch/kocevski/15782139/expmap_784944001_785203201_4FGL_J1808.2+3500_daily_bin2105.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/15782139/ltcube_784944001_785203201_4FGL_J1808.2+3500_daily_bin2105.fits
.....................!
real 69.03
user 63.94
sys 4.18

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
Added 204 point sources and 0 extended sources

Setting source of interest to:
4FGL J1808.2+3500 @ 272.066 35.0104

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/15782139/ft1_filtered_4FGL_J1808.2+3500_daily_bin2105.fits scfile=/lscratch/kocevski/15782139/ft2_4FGL_J1808.2+3500_daily_bin2105.fits outfile=/lscratch/kocevski/15782139/cmap_784944001_785203201_4FGL_J1808.2+3500_daily_bin2105.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.066 yref=35.0104 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.04
user 0.22
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/15782139/ft1_filtered_4FGL_J1808.2+3500_daily_bin2105.fits scfile=/lscratch/kocevski/15782139/ft2_4FGL_J1808.2+3500_daily_bin2105.fits outfile=/lscratch/kocevski/15782139/cmap_HighResolution_784944001_785203201_4FGL_J1808.2+3500_daily_bin2105.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.066 yref=35.0104 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.87
user 0.21
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/15782139/ft1_filtered_4FGL_J1808.2+3500_daily_bin2105.fits evtable="EVENTS" scfile=/lscratch/kocevski/15782139/ft2_4FGL_J1808.2+3500_daily_bin2105.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/15782139/Model_4FGL_J1808.2+3500_daily_bin2105.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
Working on...
/lscratch/kocevski/15782139/ft1_filtered_4FGL_J1808.2+3500_daily_bin2105.fits.....................!
real 33.27
user 31.71
sys 0.90

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/15782139/ft1_filtered_4FGL_J1808.2+3500_daily_bin2105.fits', '/lscratch/kocevski/15782139/ft2_4FGL_J1808.2+3500_daily_bin2105.fits', expMap='/lscratch/kocevski/15782139/expmap_784944001_785203201_4FGL_J1808.2+3500_daily_bin2105.fits', expCube='/lscratch/kocevski/15782139/ltcube_784944001_785203201_4FGL_J1808.2+3500_daily_bin2105.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/15782139/Model_4FGL_J1808.2+3500_daily_bin2105.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1808.2+3500'

4FGL J1808.2+3500
   Spectrum: PowerLaw
358    Prefactor:  1.117e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
359        Index:  2.260e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
360        Scale:  1.888e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/15782139/ft1_filtered_4FGL_J1808.2+3500_daily_bin2105.fits
Spacecraft file(s): /lscratch/kocevski/15782139/ft2_4FGL_J1808.2+3500_daily_bin2105.fits
Exposure map: /lscratch/kocevski/15782139/expmap_784944001_785203201_4FGL_J1808.2+3500_daily_bin2105.fits
Exposure cube: /lscratch/kocevski/15782139/ltcube_784944001_785203201_4FGL_J1808.2+3500_daily_bin2105.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/15782139/Model_4FGL_J1808.2+3500_daily_bin2105.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) = 8824.42487908

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .32196E-08   1.0000          .0000       .10000E+07
     2 'norm      '    7.7204       1.0000          .0000       .10000E+07
     3 'Prefactor '    8.2545       1.0000          .0000       .10000E+07
     4 'Prefactor '    171.09       1.0000          .0000       .10000E+07
     5 'Prefactor '    8.0693       1.0000          .0000       .10000E+07
     6 'Prefactor '    12.206       1.0000          .0000       .10000E+07
     7 'Prefactor '    3.5493       1.0000          .0000       .10000E+07
     8 'Prefactor '    .72713E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .65461E-03   1.0000          .0000       .10000E+07
    10 'norm      '    .77199       1.0000          .0000       .10000E+07
    11 'norm      '    37.033       1.0000          .0000       .10000E+07
    12 'norm      '    2.7211       1.0000          .0000       .10000E+07
    13 'Prefactor '    14.469       1.0000          .0000       .10000E+07
    14 'norm      '    7.3416       1.0000          .0000       .10000E+07
    15 'Prefactor '    .44956E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .38206E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .59591E-03   1.0000          .0000       .10000E+07
    18 'norm      '    .64837       1.0000          .0000       .10000E+07
    19 'norm      '    .35681E-03   1.0000          .0000       .10000E+07
    20 'norm      '    11.679       1.0000          .0000       .10000E+07
    21 'Prefactor '    .48230E-01   1.0000          .0000       .10000E+07
    22 'Prefactor '    .19758E-02   1.0000          .0000       .10000E+07
    23 'Normalizat'    1.2148       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .92152       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8824.419     FROM MIGRAD    STATUS=CONVERGED    206 CALLS     2140 TOTAL
                     EDM=   .80E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        2.1544       -.36080E-07** at limit **
   2  norm          7.7313        5.0327        .22076E-08   -.25180E-04
   3  Prefactor     8.1844        4.0458       -.14642E-06    .45228E-02
   4  Prefactor     173.62        146.91       -.20059E-05   -.30233E-01
   5  Prefactor     7.7306        23.032        .14317E-05    .55008E-03
   6  Prefactor     12.215        9.5945        .17892E-06   -.36262E-03
   7  Prefactor     4.6825        94.677       -.11150E-05    .93668E-03
   8  Prefactor     .52902E-07    106.83        .14659E-05** at limit **
   9  Prefactor      .0000        3.6150       -.35678E-07** at limit **
  10  norm          .77259        1.5393       -.16353E-07   -.64675E-04
  11  norm          37.725        78.320        .58270E-07   -.91012E-02
  12  norm          2.6763        5.1877       -.41884E-07    .31073E-04
  13  Prefactor     14.504        7.9812       -.92453E-07    .85208E-04
  14  norm          7.3007        6.9199        .11601E-06   -.43063E-04
  15  Prefactor      .0000        4.8051        .31601E-06** at limit **
  16  Prefactor      .0000        12.647        .46910E-06** at limit **
  17  Prefactor      .0000        4.7459       -.12564E-06** at limit **
  18  norm          .20211E-01    751.56        .93040E-05** at limit **
  19  norm           .0000        5.2677       -.61348E-07** at limit **
  20  norm          11.684        3.5165        .75308E-08   -.48594E-03
  21  Prefactor      .0000        30.389       -.56436E-06** at limit **
  22  Prefactor      .0000        6.9564       -.17597E-06** at limit **
  23  Normalizat    1.2123        .27573       -.50765E-05   -.26335E-05
  24  Prefactor     .92209        .11570        .22384E-05   -.31563E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 7.73129
  Prefactor  = 8.18436
  Prefactor  = 173.624
  Prefactor  = 7.73058
  Prefactor  = 12.2152
  Prefactor  = 4.68252
  Prefactor  = 5.29021e-08
  Prefactor  = 0
  norm       = 0.772591
  norm       = 37.725
  norm       = 2.67628
  Prefactor  = 14.5042
  norm       = 7.30073
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0.0202114
  norm       = 0
  norm       = 11.6842
  Prefactor  = 0
  Prefactor  = 0
  Normalizat = 1.21229
  Prefactor  = 0.922092
 **********
 **   18 **HESSE 
 **********

 FCN=   8824.419     FROM HESSE     STATUS=OK           459 CALLS     2599 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        2.1543        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.7313        5.3323        .36066E-03   -1.5652    
   3  Prefactor     8.1844        106.55        .34870E-03   -1.5651    
   4  Prefactor     173.62        147.58        .76458E-04   -1.5444    
   5  Prefactor     7.7306        23.308        .35271E-03   -1.5652    
   6  Prefactor     12.215        9.6058        .28648E-03   -1.5638    
   7  Prefactor     4.6825        96.945        .53626E-03   -1.5665    
   8  Prefactor     .52902E-07    106.92        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        3.6180        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .77259        1.5566        .55046E-03   -1.5690    
  11  norm          37.725        79.687        .16434E-03   -1.5585    
  12  norm          2.6763        5.1938        .61710E-03   -1.5675    
  13  Prefactor     14.504        7.9781        .26306E-03   -1.5632    
  14  norm          7.3007        6.9202        .36993E-03   -1.5654    
  15  Prefactor      .0000        4.7913        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        12.668        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        4.7520        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .20211E-01    32.113        .17857E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        5.2349        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          11.684        3.5271        .29289E-03   -1.5640    
  21  Prefactor      .0000        8.5508        .94414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor      .0000        6.9534        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2123        .23495        .81493E-01   -.86224    
  24  Prefactor     .92209        .97989E-01    .45279E-01   -.95373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49887e-07
Minuit parameter uncertainties:
  1  3.49334e-07
  2  5.33233
  3  59.0611
  4  147.583
  5  23.3079
  6  9.60579
  7  42.6128
  8  0.00475556
  9  1.37232e-06
  10  1.5566
  11  79.6896
  12  5.19384
  13  7.97811
  14  6.92017
  15  5.22082e-06
  16  1.10515e-05
  17  1.23303e-05
  18  1.61129
  19  4.22383e-06
  20  3.52706
  21  2.0879e-06
  22  4.01098e-07
  23  0.235154
  24  0.0980079
Done.

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

Extracting fit parameters...

4FGL J1808.2+3500
   Spectrum: PowerLaw
358    Prefactor:  1.450e+01  7.978e+00  0.000e+00  1.000e+06 ( 1.000e-13)
359        Index:  2.260e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
360        Scale:  1.888e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  9.221e-01  9.801e-02  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.212e+00  2.352e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.67
Ra Dec: 272.066 35.010
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 8.81e-08 +/- 4.85e-08
Energy Flux (Fixed Index): 3.56e-05 +/- 1.96e-05

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) = 8824.41325621
delta logL = 0.00566974519825

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8824.40801403
delta logL = 0.0109119187437

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8824.408     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      255 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.558        11.717        .10146E-04    .22523E-02
   2  Index         2.1922        .49038        .62159E-02    .70474E-04
   3  Normalizat    1.2199        .26037        .35983E-03    .15064E-03
   4  Prefactor     .92033        .11301        .17999E-03    .27448E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.5577
  Index      = 2.19219
  Normalizat = 1.21986
  Prefactor  = 0.920326
 **********
 **   18 **HESSE 
 **********

 FCN=   8824.408     FROM HESSE     STATUS=OK            25 CALLS      280 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.558        11.038        .40583E-06   -1.5629    
   2  Index         2.1922        .46121        .24864E-03   -.59627    
   3  Normalizat    1.2199        .25993        .14393E-04   -.85991    
   4  Prefactor     .92033        .11298        .35998E-04   -.95434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.9481e-11
Minuit parameter uncertainties:
  1  11.0382
  2  0.462173
  3  0.260203
  4  0.113012
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8824.40801348
delta logL = 0.0109124679511

Extracting fit parameters...

4FGL J1808.2+3500
   Spectrum: PowerLaw
358    Prefactor:  1.556e+01  1.104e+01  0.000e+00  1.000e+06 ( 1.000e-13)
359        Index:  2.192e+00  4.622e-01  0.000e+00  1.000e+01 (-1.000e+00)
360        Scale:  1.888e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  9.203e-01  1.130e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.220e+00  2.602e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.66
Ra Dec: 272.066 35.010
Photon Index (Free Index): 2.19 +/- 0.46
Photon Flux (Free Index): 8.18e-08 +/- 6.30e-08
Energy Flux (Free Index): 3.73e-05 +/- 2.42e-05

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/15782139/cmap_HighResolution_784944001_785203201_4FGL_J1808.2+3500_daily_bin2105.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.81e-08', energy_flux2='3.73e-05', photon_flux_error='4.85e-08', dlogl='1.09e-02', energy_flux='3.56e-05', photon_flux2='8.18e-08', job_status='DONE', time_completed='2025-11-19 02:00:45.226481', photon_index_error2='0.46', photon_index2='2.19', ts='8.67', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='2.42e-05', EG='1.21', time_epoch_completed='1763546445.23', return_code='0', job_id='15782139', GAL2='0.92', EG2='1.22', return_code2='0', energy_flux_error='1.96e-05', photon_flux_error2='6.30e-08', ts2='8.66', photon_index='2.26' WHERE bin_id='2105' AND source_name='4FGL J1808.2+3500' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Nov 19 02:00:45 PST 2025

