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


Performing analysis on: 4FGL_J1806.8+6949_weekly_bin907
RA = 271.711, Dec = 69.827
tmin = 787536001, tmax = 788140801
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='17775651', job_status='RUN', time_executed='2025-12-23 02:13:47.709218', time_epoch_executed='1766484827.71' WHERE source_name='4FGL J1806.8+6949' and cadence='weekly' and bin_id='907'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17775651

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17775651/ft1_4FGL_J1806.8+6949_weekly_bin907.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17775651/ft2_4FGL_J1806.8+6949_weekly_bin907.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17775651/ft1_4FGL_J1806.8+6949_weekly_bin907.fits outfile=/lscratch/kocevski/17775651/ft1_filteredMKT_4FGL_J1806.8+6949_weekly_bin907.fits ra=271.711 dec=69.827 rad=12.0 tmin=787536001.0 tmax=788140801.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 4.24
user 3.69
sys 0.29

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17775651/ft2_4FGL_J1806.8+6949_weekly_bin907.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17775651/ft2_4FGL_J1806.8+6949_weekly_bin907.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/17775651/ft1_filteredMKT_4FGL_J1806.8+6949_weekly_bin907.fits evtable="EVENTS" outfile="/lscratch/kocevski/17775651/ft1_filtered_4FGL_J1806.8+6949_weekly_bin907.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.58
user 0.21
sys 0.14

Number of photons that the gtmktime cut: 2690

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17775651/ft1_filtered_4FGL_J1806.8+6949_weekly_bin907.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17775651/ft2_4FGL_J1806.8+6949_weekly_bin907.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17775651/ltcube_787536001_788140801_4FGL_J1806.8+6949_weekly_bin907.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/17775651/ft2_4FGL_J1806.8+6949_weekly_bin907.fits
.....................!
real 16.96
user 16.27
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17775651/ft1_filtered_4FGL_J1806.8+6949_weekly_bin907.fits evtable="EVENTS" scfile=/lscratch/kocevski/17775651/ft2_4FGL_J1806.8+6949_weekly_bin907.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17775651/ltcube_787536001_788140801_4FGL_J1806.8+6949_weekly_bin907.fits outfile=/lscratch/kocevski/17775651/expmap_787536001_788140801_4FGL_J1806.8+6949_weekly_bin907.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/17775651/ltcube_787536001_788140801_4FGL_J1806.8+6949_weekly_bin907.fits
.....................!
real 60.14
user 55.81
sys 3.53

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

Setting source of interest to:
4FGL J1806.8+6949 @ 271.711 69.827

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17775651/ft1_filtered_4FGL_J1806.8+6949_weekly_bin907.fits scfile=/lscratch/kocevski/17775651/ft2_4FGL_J1806.8+6949_weekly_bin907.fits outfile=/lscratch/kocevski/17775651/cmap_787536001_788140801_4FGL_J1806.8+6949_weekly_bin907.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.711 yref=69.827 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.74
user 0.21
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17775651/ft1_filtered_4FGL_J1806.8+6949_weekly_bin907.fits scfile=/lscratch/kocevski/17775651/ft2_4FGL_J1806.8+6949_weekly_bin907.fits outfile=/lscratch/kocevski/17775651/cmap_HighResolution_787536001_788140801_4FGL_J1806.8+6949_weekly_bin907.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.711 yref=69.827 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.68
user 0.21
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17775651/ft1_filtered_4FGL_J1806.8+6949_weekly_bin907.fits evtable="EVENTS" scfile=/lscratch/kocevski/17775651/ft2_4FGL_J1806.8+6949_weekly_bin907.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17775651/Model_4FGL_J1806.8+6949_weekly_bin907.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/17775651/ft1_filtered_4FGL_J1806.8+6949_weekly_bin907.fits.....................!
real 91.76
user 89.99
sys 0.76

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17775651/ft1_filtered_4FGL_J1806.8+6949_weekly_bin907.fits', '/lscratch/kocevski/17775651/ft2_4FGL_J1806.8+6949_weekly_bin907.fits', expMap='/lscratch/kocevski/17775651/expmap_787536001_788140801_4FGL_J1806.8+6949_weekly_bin907.fits', expCube='/lscratch/kocevski/17775651/ltcube_787536001_788140801_4FGL_J1806.8+6949_weekly_bin907.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17775651/Model_4FGL_J1806.8+6949_weekly_bin907.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1806.8+6949'

4FGL J1806.8+6949
   Spectrum: LogParabola
346         norm:  7.628e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
347        alpha:  2.243e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
348         beta:  5.091e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
349           Eb:  7.887e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17775651/ft1_filtered_4FGL_J1806.8+6949_weekly_bin907.fits
Spacecraft file(s): /lscratch/kocevski/17775651/ft2_4FGL_J1806.8+6949_weekly_bin907.fits
Exposure map: /lscratch/kocevski/17775651/expmap_787536001_788140801_4FGL_J1806.8+6949_weekly_bin907.fits
Exposure cube: /lscratch/kocevski/17775651/ltcube_787536001_788140801_4FGL_J1806.8+6949_weekly_bin907.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17775651/Model_4FGL_J1806.8+6949_weekly_bin907.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) = 27413.1197659

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4894       1.0000          .0000       .10000E+07
     2 'Prefactor '    27.333       1.0000          .0000       .10000E+07
     3 'Prefactor '    13.880       1.0000          .0000       .10000E+07
     4 'norm      '    .10918E-01   1.0000          .0000       .10000E+07
     5 'norm      '    8.3669       1.0000          .0000       .10000E+07
     6 'Prefactor '    .31524E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .15488E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    20.980       1.0000          .0000       .10000E+07
     9 'Prefactor '    8.5140       1.0000          .0000       .10000E+07
    10 'Prefactor '    .15215E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .13487E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .53889E-02   1.0000          .0000       .10000E+07
    13 'norm      '    1.2943       1.0000          .0000       .10000E+07
    14 'norm      '    4.3143       1.0000          .0000       .10000E+07
    15 'norm      '    5.3714       1.0000          .0000       .10000E+07
    16 'Prefactor '    .11993E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    23.267       1.0000          .0000       .10000E+07
    18 'Prefactor '    .75553       1.0000          .0000       .10000E+07
    19 'Prefactor '    4.4863       1.0000          .0000       .10000E+07
    20 'Prefactor '    1.2156       1.0000          .0000       .10000E+07
    21 'Prefactor '    .93363E-02   1.0000          .0000       .10000E+07
    22 'norm      '    7.9057       1.0000          .0000       .10000E+07
    23 'norm      '    6.1474       1.0000          .0000       .10000E+07
    24 'norm      '    .31056E-03   1.0000          .0000       .10000E+07
    25 'Prefactor '    2.6676       1.0000          .0000       .10000E+07
    26 'Prefactor '    .80562       1.0000          .0000       .10000E+07
    27 'norm      '    2.4398       1.0000          .0000       .10000E+07
    28 'norm      '    11.317       1.0000          .0000       .10000E+07
    29 'norm      '    3.0513       1.0000          .0000       .10000E+07
    30 'Prefactor '    3.4984       1.0000          .0000       .10000E+07
    31 'norm      '    1.9256       1.0000          .0000       .10000E+07
    32 'Prefactor '    .85107E-05   1.0000          .0000       .10000E+07
    33 'Normalizat'    .93215       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.0480       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   27413.12     FROM MIGRAD    STATUS=CONVERGED    144 CALLS     3404 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4770        5.7294        .76804E-07    .31351E-01
   2  Prefactor     27.306        1.2213       -.11693E-07    .88122E-01
   3  Prefactor     13.854        1.0663       -.78776E-08    .10565E-01
   4  norm          .71776E-07    17.170        .55422E-06** at limit **
   5  norm          8.3675        .86911       -.11914E-07    .39779E-02
   6  Prefactor     .48128E-07    2.4686       -.13758E-06** at limit **
   7  Prefactor      .0000        .76539        .26414E-07** at limit **
   8  Prefactor     20.981        1.0398       -.49306E-08   -.25917E-01
   9  Prefactor     8.5259        5.1426        .11673E-06    .48709E-02
  10  Prefactor     .88818E-09    5.6138        .89155E-07** at limit **
  11  Prefactor     .55511E-10    2.2286        .26226E-07** at limit **
  12  Prefactor     .98263E-05    13.124       -.19224E-06** at limit **
  13  norm          1.2945        1.0662       -.14938E-07    .71657E-03
  14  norm          4.3140        .58579        .24071E-07    .13421E-03
  15  norm          5.3722        2.5891        .65705E-08    .10320E-02
  16  Prefactor     .12768E-08    6.8920       -.61866E-07** at limit **
  17  Prefactor     23.300        1.1054        .77311E-08   -.51468E-01
  18  Prefactor     .75266        2.7576       -.12089E-06    .68259E-02
  19  Prefactor     4.4688        1.5096        .38697E-07    .16916E-01
  20  Prefactor     1.2029        2.1065        .35159E-07   -.64095E-02
  21  Prefactor     .92890E-05    14.891       -.30504E-06** at limit **
  22  norm          7.9078        2.1588        .10286E-06    .90265E-03
  23  norm          6.1478        2.9417       -.10806E-06    .38290E-03
  24  norm          .12879E-07    2.8087        .34260E-06** at limit **
  25  Prefactor     2.6499        1.8187        .17234E-07    .36113E-01
  26  Prefactor     .81676        2.2850        .10284E-06    .67177E-03
  27  norm          2.4397        .81116       -.55791E-08    .94696E-03
  28  norm          11.338        1.0159       -.25176E-08   -.55140E-02
  29  norm          3.0515        1.9516       -.10155E-06    .54661E-03
  30  Prefactor     3.5095        3.7703       -.82795E-07    .51181E-02
  31  norm          1.9249        1.3168       -.46244E-07   -.83904E-04
  32  Prefactor     .10014E-06    1.1933        .97955E-07** at limit **
  33  Normalizat    .93227        .12858       -.57347E-05    .55234E-04
  34  Prefactor     1.0480        .69088E-01    .18947E-05    .46316E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.47704
  Prefactor  = 27.3058
  Prefactor  = 13.8545
  norm       = 7.17759e-08
  norm       = 8.36752
  Prefactor  = 4.81282e-08
  Prefactor  = 0
  Prefactor  = 20.9807
  Prefactor  = 8.52594
  Prefactor  = 8.88178e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 9.82631e-06
  norm       = 1.29449
  norm       = 4.314
  norm       = 5.37221
  Prefactor  = 1.27676e-09
  Prefactor  = 23.3
  Prefactor  = 0.75266
  Prefactor  = 4.46883
  Prefactor  = 1.20286
  Prefactor  = 9.28896e-06
  norm       = 7.90784
  norm       = 6.14777
  norm       = 1.28786e-08
  Prefactor  = 2.64985
  Prefactor  = 0.816761
  norm       = 2.4397
  norm       = 11.3379
  norm       = 3.05148
  Prefactor  = 3.50946
  norm       = 1.92495
  Prefactor  = 1.00142e-07
  Normalizat = 0.932274
  Prefactor  = 1.048
 **********
 **   18 **HESSE 
 **********

 FCN=   27413.12     FROM HESSE     STATUS=OK           814 CALLS     4218 TOTAL
                     EDM=   .34E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4770        6.8344        .39373E-03   -1.5657    
   2  Prefactor     27.306        52.211        .19131E-03   -1.5603    
   3  Prefactor     13.854        26.183        .26859E-03   -1.5634    
   4  norm          .71776E-07    16.814        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.3675        .93446        .34634E-03   -1.5650    
   6  Prefactor     .48128E-07    3.1291        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        .75804        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.981        10.050        .21839E-03   -1.5616    
   9  Prefactor     8.5259        5.1440        .34331E-03   -1.5650    
  10  Prefactor     .88818E-09    5.6477        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    2.2421        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .98263E-05    27.104        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2945        1.0637        .97218E-03   -1.5685    
  14  norm          4.3140        .58608        .48475E-03   -1.5666    
  15  norm          5.3722        2.6250        .43337E-03   -1.5662    
  16  Prefactor     .12768E-08    6.9277        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.300        48.544        .20737E-03   -1.5611    
  18  Prefactor     .75266        3.0264        .56310E-03   -1.5691    
  19  Prefactor     4.4688        8.8154        .47513E-03   -1.5666    
  20  Prefactor     1.2029        18.612        .10242E-02   -1.5686    
  21  Prefactor     .92890E-05    28.571        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.9078        2.3158        .35637E-03   -1.5652    
  23  norm          6.1478        2.9461        .40468E-03   -1.5658    
  24  norm          .12879E-07    3.3597        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.6499        9.5446        .62374E-03   -1.5675    
  26  Prefactor     .81676        2.2969        .52517E-03   -1.5690    
  27  norm          2.4397        .81358        .65475E-03   -1.5677    
  28  norm          11.338        17.548        .29756E-03   -1.5641    
  29  norm          3.0515        1.9572        .58055E-03   -1.5673    
  30  Prefactor     3.5095        7.0990        .54031E-03   -1.5670    
  31  norm          1.9249        1.3205        .74836E-03   -1.5680    
  32  Prefactor     .10014E-06    3.1841        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .93227        .11874        .86538E-01   -.95335    
  34  Prefactor     1.0480        .63024E-01    .40026E-01   -.91146    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43035e-06
Minuit parameter uncertainties:
  1  6.83437
  2  52.212
  3  26.183
  4  0.0021974
  5  0.93446
  6  0.000776334
  7  9.30505e-07
  8  10.0502
  9  5.144
  10  0.000143553
  11  1.98002e-05
  12  0.0326396
  13  1.06371
  14  0.586075
  15  2.62503
  16  0.000186432
  17  48.5448
  18  3.01854
  19  8.81545
  20  9.46303
  21  0.032582
  22  2.3158
  23  2.94606
  24  0.000416365
  25  9.54466
  26  2.29692
  27  0.813578
  28  17.5477
  29  1.95722
  30  7.09904
  31  1.32054
  32  0.00112929
  33  0.118775
  34  0.0630287
Done.

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

Extracting fit parameters...

4FGL J1806.8+6949
   Spectrum: LogParabola
346         norm:  5.372e+00  2.625e+00  0.000e+00  1.000e+06 ( 1.000e-12)
347        alpha:  2.243e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
348         beta:  5.091e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
349           Eb:  7.887e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
615    Prefactor:  1.048e+00  6.303e-02  0.000e+00  1.000e+01 ( 1.000e+00)
616        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
617        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  9.323e-01  1.188e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.97
Ra Dec: 271.711 69.827
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 3.98e-08 +/- 1.94e-08
Energy Flux (Fixed Index): 1.57e-05 +/- 7.69e-06

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) = 27413.0586028
delta logL = 0.0593197966045

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 27413.057244
delta logL = 0.0606785981399

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0440       1.0000          .0000       .10000E+07
     2 'alpha     '    2.3860       1.0000          .0000       5.0000    
     3 'Normalizat'    .92649       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0496       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   27413.06     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      235 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0440        32.177        .44748E-03    .86365E-02
   2  alpha         2.3860        3.6369        .41206        .11441E-03
   3  Normalizat    .92649        .50397E-01    .86774E-01    .95955E-04
   4  Prefactor     1.0496        .23602E-01    .39932E-01    .43367E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.04403
  alpha      = 2.38598
  Normalizat = 0.92649
  Prefactor  = 1.04963
 **********
 **   18 **HESSE 
 **********

 FCN=   27413.06     FROM HESSE     STATUS=OK            31 CALLS      266 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0440        2.6843        .16216E-04   -1.5663    
   2  alpha         2.3860        .42917        .17453E-01   -.45624E-01
   3  Normalizat    .92649        .12098        .38425E-03   -.95535    
   4  Prefactor     1.0496        .66652E-01    .20133E-03   -.91093    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.95152e-09
Minuit parameter uncertainties:
  1  2.68427
  2  0.43131
  3  0.12102
  4  0.0666573
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) = 27413.057244
delta logL = 0.0606785982854

Extracting fit parameters...

4FGL J1806.8+6949
   Spectrum: LogParabola
346         norm:  5.044e+00  2.684e+00  0.000e+00  1.000e+06 ( 1.000e-12)
347        alpha:  2.386e+00  4.313e-01  0.000e+00  5.000e+00 ( 1.000e+00)
348         beta:  5.091e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
349           Eb:  7.887e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
615    Prefactor:  1.050e+00  6.666e-02  0.000e+00  1.000e+01 ( 1.000e+00)
616        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
617        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  9.265e-01  1.210e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.09
Ra Dec: 271.711 69.827
Photon Index (Free Index): 2.39 +/- 0.43
Photon Flux (Free Index): 4.48e-08 +/- 2.40e-08
Energy Flux (Free Index): 1.48e-05 +/- 7.38e-06

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/17775651/cmap_HighResolution_787536001_788140801_4FGL_J1806.8+6949_weekly_bin907.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.98e-08', energy_flux2='1.48e-05', photon_flux_error='1.94e-08', dlogl='6.07e-02', energy_flux='1.57e-05', photon_flux2='4.48e-08', job_status='DONE', time_completed='2025-12-23 02:33:01.465136', photon_index_error2='0.43', photon_index2='2.39', ts='8.97', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='7.38e-06', EG='0.93', time_epoch_completed='1766485981.47', return_code='0', job_id='17775651', GAL2='1.05', EG2='0.93', return_code2='0', energy_flux_error='7.69e-06', photon_flux_error2='2.40e-08', ts2='9.09', photon_index='2.24' WHERE bin_id='907' AND source_name='4FGL J1806.8+6949' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 23 02:33:01 PST 2025

