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


Performing analysis on: 4FGL_J1806.8+6949_weekly_bin853
RA = 271.711, Dec = 69.827
tmin = 754876801, tmax = 755481601
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='59978562', job_status='RUN', time_executed='2024-12-10 01:01:42.034977', time_epoch_executed='1733821302.03' WHERE source_name='4FGL J1806.8+6949' and cadence='weekly' and bin_id='853'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/59978562

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/59978562/ft1_4FGL_J1806.8+6949_weekly_bin853.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/59978562/ft2_4FGL_J1806.8+6949_weekly_bin853.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/59978562/ft1_4FGL_J1806.8+6949_weekly_bin853.fits outfile=/lscratch/kocevski/59978562/ft1_filteredMKT_4FGL_J1806.8+6949_weekly_bin853.fits ra=271.711 dec=69.827 rad=12.0 tmin=754876801.0 tmax=755481601.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.27
user 2.91
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/59978562/ft2_4FGL_J1806.8+6949_weekly_bin853.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/59978562/ft1_filteredMKT_4FGL_J1806.8+6949_weekly_bin853.fits evtable="EVENTS" outfile="/lscratch/kocevski/59978562/ft1_filtered_4FGL_J1806.8+6949_weekly_bin853.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.41
user 0.19
sys 0.15

Number of photons that the gtmktime cut: 4100

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/59978562/ft1_filtered_4FGL_J1806.8+6949_weekly_bin853.fits" evtable="EVENTS" scfile=/lscratch/kocevski/59978562/ft2_4FGL_J1806.8+6949_weekly_bin853.fits sctable="SC_DATA" outfile=/lscratch/kocevski/59978562/ltcube_754876801_755481601_4FGL_J1806.8+6949_weekly_bin853.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/59978562/ft2_4FGL_J1806.8+6949_weekly_bin853.fits
.....................!
real 23.80
user 23.22
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/59978562/ft1_filtered_4FGL_J1806.8+6949_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59978562/ft2_4FGL_J1806.8+6949_weekly_bin853.fits sctable="SC_DATA" expcube=/lscratch/kocevski/59978562/ltcube_754876801_755481601_4FGL_J1806.8+6949_weekly_bin853.fits outfile=/lscratch/kocevski/59978562/expmap_754876801_755481601_4FGL_J1806.8+6949_weekly_bin853.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/59978562/ltcube_754876801_755481601_4FGL_J1806.8+6949_weekly_bin853.fits
.....................!
real 65.18
user 61.17
sys 3.61

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/59978562/ft1_filtered_4FGL_J1806.8+6949_weekly_bin853.fits scfile=/lscratch/kocevski/59978562/ft2_4FGL_J1806.8+6949_weekly_bin853.fits outfile=/lscratch/kocevski/59978562/cmap_754876801_755481601_4FGL_J1806.8+6949_weekly_bin853.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.40
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/59978562/ft1_filtered_4FGL_J1806.8+6949_weekly_bin853.fits scfile=/lscratch/kocevski/59978562/ft2_4FGL_J1806.8+6949_weekly_bin853.fits outfile=/lscratch/kocevski/59978562/cmap_HighResolution_754876801_755481601_4FGL_J1806.8+6949_weekly_bin853.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.39
user 0.22
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/59978562/ft1_filtered_4FGL_J1806.8+6949_weekly_bin853.fits', '/lscratch/kocevski/59978562/ft2_4FGL_J1806.8+6949_weekly_bin853.fits', expMap='/lscratch/kocevski/59978562/expmap_754876801_755481601_4FGL_J1806.8+6949_weekly_bin853.fits', expCube='/lscratch/kocevski/59978562/ltcube_754876801_755481601_4FGL_J1806.8+6949_weekly_bin853.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/59978562/Model_4FGL_J1806.8+6949_weekly_bin853.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/59978562/ft1_filtered_4FGL_J1806.8+6949_weekly_bin853.fits
Spacecraft file(s): /lscratch/kocevski/59978562/ft2_4FGL_J1806.8+6949_weekly_bin853.fits
Exposure map: /lscratch/kocevski/59978562/expmap_754876801_755481601_4FGL_J1806.8+6949_weekly_bin853.fits
Exposure cube: /lscratch/kocevski/59978562/ltcube_754876801_755481601_4FGL_J1806.8+6949_weekly_bin853.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/59978562/Model_4FGL_J1806.8+6949_weekly_bin853.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) = 41930.699563

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4459       1.0000          .0000       .10000E+07
     2 'Prefactor '    .17785E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .21426       1.0000          .0000       .10000E+07
     4 'norm      '    12.881       1.0000          .0000       .10000E+07
     5 'norm      '    .64118       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.9228       1.0000          .0000       .10000E+07
     7 'Prefactor '    .36268E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    18.436       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.7552       1.0000          .0000       .10000E+07
    10 'Prefactor '    27.670       1.0000          .0000       .10000E+07
    11 'Prefactor '    .29064E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .30500E-04   1.0000          .0000       .10000E+07
    13 'norm      '    14.509       1.0000          .0000       .10000E+07
    14 'norm      '    2.4511       1.0000          .0000       .10000E+07
    15 'norm      '    4.9643       1.0000          .0000       .10000E+07
    16 'Prefactor '    10.619       1.0000          .0000       .10000E+07
    17 'Prefactor '    .17800E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .39887E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    2.6264       1.0000          .0000       .10000E+07
    20 'Prefactor '    .14842E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    5.2556       1.0000          .0000       .10000E+07
    22 'norm      '    1.3047       1.0000          .0000       .10000E+07
    23 'norm      '    1.4514       1.0000          .0000       .10000E+07
    24 'norm      '    2.9876       1.0000          .0000       .10000E+07
    25 'Prefactor '    .50262E-03   1.0000          .0000       .10000E+07
    26 'Prefactor '    1.2705       1.0000          .0000       .10000E+07
    27 'norm      '    3.6884       1.0000          .0000       .10000E+07
    28 'norm      '    3.4124       1.0000          .0000       .10000E+07
    29 'norm      '    2.3006       1.0000          .0000       .10000E+07
    30 'Prefactor '    18.958       1.0000          .0000       .10000E+07
    31 'norm      '    2.7217       1.0000          .0000       .10000E+07
    32 'Prefactor '    27.884       1.0000          .0000       .10000E+07
    33 'Normalizat'    .89484       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.0682       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=   41930.65     FROM MIGRAD    STATUS=CONVERGED    163 CALLS     3408 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4341        6.8711        .13524E-05    .11156E-01
   2  Prefactor     .19984E-07    14.800       -.64833E-06** at limit **
   3  Prefactor     .13367E-06    1.9981        .62770E-06** at limit **
   4  norm          12.891        3.7744       -.18354E-07    .59065E-02
   5  norm          .64204        .36092        .27563E-07    .23361E-01
   6  Prefactor     1.9187        2.9567        .59708E-07   -.28810E-03
   7  Prefactor     .37859E-01    11.931        .13844E-06** at limit **
   8  Prefactor     18.427        5.1099       -.43418E-06   -.15208E-01
   9  Prefactor     1.7523        2.0453        .15007E-06   -.11810E-02
  10  Prefactor     27.472        7.8039       -.52991E-06    .30274E-01
  11  Prefactor      .0000        .82910        .52504E-07** at limit **
  12  Prefactor     .13878E-08    5.9078        .18595E-06** at limit **
  13  norm          14.508        1.9439        .65097E-08    .76739E-02
  14  norm          2.4523        .43715       -.30668E-08    .18688E-01
  15  norm          4.9625        2.1665       -.29014E-07    .30936E-03
  16  Prefactor     10.613        1.5473       -.19428E-06    .94485E-03
  17  Prefactor     .24092E-07    10.742        .17350E-05** at limit **
  18  Prefactor     .55511E-10    .97608       -.77644E-07** at limit **
  19  Prefactor     2.6166        5.6800       -.15725E-05   -.40540E-02
  20  Prefactor     .22204E-09    2.7071        .19436E-06** at limit **
  21  Prefactor     5.1829        3.1588       -.65183E-06    .23012E-01
  22  norm          1.3043        1.0917       -.33145E-07    .85417E-02
  23  norm          1.4539        1.9228       -.47085E-07    .19160E-02
  24  norm          2.9755        4.5646        .17318E-06   -.55695E-03
  25  Prefactor      .0000        10.346       -.12648E-05** at limit **
  26  Prefactor     1.2724        2.0479        .87618E-07   -.43794E-03
  27  norm          3.6878        .88050       -.21344E-07   -.88497E-02
  28  norm          3.4174        1.0226        .44858E-07   -.11983E-02
  29  norm          2.3006        1.6786        .47137E-07    .81149E-03
  30  Prefactor     19.003        2.7356        .70376E-07    .42120E-01
  31  norm          2.7211        1.7871       -.77295E-07   -.13488E-01
  32  Prefactor     27.878        3.2469       -.31651E-06    .50179E-01
  33  Normalizat    .89524        .10445        .13460E-05   -.78074E-04
  34  Prefactor     1.0682        .58744E-01   -.26564E-06   -.69743E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.43415
  Prefactor  = 1.9984e-08
  Prefactor  = 1.33671e-07
  norm       = 12.8908
  norm       = 0.642043
  Prefactor  = 1.91868
  Prefactor  = 0.0378586
  Prefactor  = 18.4267
  Prefactor  = 1.7523
  Prefactor  = 27.4722
  Prefactor  = 0
  Prefactor  = 1.38778e-09
  norm       = 14.5082
  norm       = 2.45227
  norm       = 4.96254
  Prefactor  = 10.6133
  Prefactor  = 2.40918e-08
  Prefactor  = 5.55112e-11
  Prefactor  = 2.61661
  Prefactor  = 2.22045e-10
  Prefactor  = 5.18288
  norm       = 1.30429
  norm       = 1.45392
  norm       = 2.97554
  Prefactor  = 0
  Prefactor  = 1.27239
  norm       = 3.68775
  norm       = 3.4174
  norm       = 2.30062
  Prefactor  = 19.0035
  norm       = 2.72114
  Prefactor  = 27.8783
  Normalizat = 0.895243
  Prefactor  = 1.06815
 **********
 **   18 **HESSE 
 **********

 FCN=   41930.65     FROM HESSE     STATUS=OK           828 CALLS     4236 TOTAL
                     EDM=   .36E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4341        7.0211        .39507E-03   -1.5657    
   2  Prefactor     .19984E-07    16.066        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .13367E-06    5.0365        .16483E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.891        3.7769        .27884E-03   -1.5636    
   5  norm          .64204        .39244        .65618E-03   -1.5692    
   6  Prefactor     1.9187        3.0136        .74901E-03   -1.5680    
   7  Prefactor     .37859E-01    .34407        .75156E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.427        7.8396        .23298E-03   -1.5622    
   9  Prefactor     1.7523        2.0600        .79085E-03   -1.5681    
  10  Prefactor     27.472        17.032        .19014E-03   -1.5603    
  11  Prefactor      .0000        .82603        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .13878E-08    5.9517        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          14.508        1.9496        .26269E-03   -1.5632    
  14  norm          2.4523        .44740        .65310E-03   -1.5677    
  15  norm          4.9625        2.1743        .45114E-03   -1.5663    
  16  Prefactor     10.613        8.0677        .30722E-03   -1.5643    
  17  Prefactor     .24092E-07    12.306        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .55511E-10    .96812        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.6166        7.9979        .62901E-03   -1.5676    
  20  Prefactor     .22204E-09    2.7149        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.1829        32.978        .43821E-03   -1.5662    
  22  norm          1.3043        1.0989        .96611E-04   -1.5685    
  23  norm          1.4539        1.9672        .89384E-03   -1.5684    
  24  norm          2.9755        4.6138        .58707E-03   -1.5673    
  25  Prefactor      .0000        10.771        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.2724        2.0774        .98670E-03   -1.5685    
  27  norm          3.6878        .90284        .52564E-03   -1.5670    
  28  norm          3.4174        18.605        .54738E-03   -1.5671    
  29  norm          2.3006        1.7000        .67632E-03   -1.5678    
  30  Prefactor     19.003        12.761        .22975E-03   -1.5621    
  31  norm          2.7211        1.7848        .61703E-03   -1.5675    
  32  Prefactor     27.878        8.4891        .18941E-03   -1.5602    
  33  Normalizat    .89524        .96150E-01    .84622E-01   -.96627    
  34  Prefactor     1.0682        .53555E-01    .38942E-01   -.90491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62068e-06
Minuit parameter uncertainties:
  1  7.02111
  2  0.00113303
  3  0.00164099
  4  3.77688
  5  0.392442
  6  3.01358
  7  0.228265
  8  7.83964
  9  2.05998
  10  17.0323
  11  9.38864e-06
  12  0.00018261
  13  1.94958
  14  0.447399
  15  2.1743
  16  8.06772
  17  0.00108885
  18  1.13858e-05
  19  7.99796
  20  4.96773e-05
  21  26.1474
  22  1.09885
  23  1.96724
  24  4.61382
  25  3.26184e-05
  26  2.07741
  27  0.902837
  28  15.9474
  29  1.70005
  30  12.7606
  31  1.78476
  32  8.48915
  33  0.0961683
  34  0.0535581
Done.

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

Extracting fit parameters...

4FGL J1806.8+6949
   Spectrum: LogParabola
346         norm:  4.963e+00  2.174e+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.068e+00  5.356e-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:  8.952e-01  9.617e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.36
Ra Dec: 271.711 69.827
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 3.67e-08 +/- 1.61e-08
Energy Flux (Fixed Index): 1.45e-05 +/- 6.37e-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) = 41930.4813032
delta logL = 0.172254889454

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 41930.4520024
delta logL = 0.201555675594

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5111       1.0000          .0000       .10000E+07
     2 'alpha     '    2.4641       1.0000          .0000       5.0000    
     3 'Normalizat'    .88717       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0705       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=   41930.45     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      242 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5111        20.890        .47378E-03    .18008E-01
   2  alpha         2.4640        2.0438        .41157        .22148E-03
   3  Normalizat    .88718        .34359E-01    .84950E-01    .14933E-03
   4  Prefactor     1.0705        .17767E-01    .38833E-01    .41555E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.5111
  alpha      = 2.46403
  Normalizat = 0.887176
  Prefactor  = 1.07051
 **********
 **   18 **HESSE 
 **********

 FCN=   41930.45     FROM HESSE     STATUS=OK            33 CALLS      275 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5111        2.2375        .16957E-04   -1.5665    
   2  alpha         2.4640        .37254        .17721E-01   -.14389E-01
   3  Normalizat    .88718        .96067E-01    .37616E-03   -.96912    
   4  Prefactor     1.0705        .55445E-01    .20048E-03   -.90415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.59763e-11
Minuit parameter uncertainties:
  1  2.23745
  2  0.373935
  3  0.0960852
  4  0.0554478
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) = 41930.4520024
delta logL = 0.201555693573

Extracting fit parameters...

4FGL J1806.8+6949
   Spectrum: LogParabola
346         norm:  4.511e+00  2.237e+00  0.000e+00  1.000e+06 ( 1.000e-12)
347        alpha:  2.464e+00  3.739e-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.071e+00  5.545e-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:  8.872e-01  9.609e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.83
Ra Dec: 271.711 69.827
Photon Index (Free Index): 2.46 +/- 0.37
Photon Flux (Free Index): 4.44e-08 +/- 2.05e-08
Energy Flux (Free Index): 1.34e-05 +/- 5.89e-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/59978562/cmap_HighResolution_754876801_755481601_4FGL_J1806.8+6949_weekly_bin853.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.67e-08', energy_flux2='1.34e-05', photon_flux_error='1.61e-08', dlogl='2.02e-01', energy_flux='1.45e-05', photon_flux2='4.44e-08', job_status='DONE', time_completed='2024-12-10 01:26:16.345727', photon_index_error2='0.37', photon_index2='2.46', ts='8.36', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='5.89e-06', EG='0.90', time_epoch_completed='1733822776.35', return_code='0', job_id='59978562', GAL2='1.07', EG2='0.89', return_code2='0', energy_flux_error='6.37e-06', photon_flux_error2='2.05e-08', ts2='8.83', photon_index='2.24' WHERE bin_id='853' AND source_name='4FGL J1806.8+6949' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 10 01:26:16 PST 2024

