aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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)


Waiting 202 seconds before starting...
Proceeding.

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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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 = 17106
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0806.5+4503_weekly_bin254
RA = 121.628, Dec = 45.0605
tmin = 392601601, tmax = 393206401
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='435187', job_status='RUN', time_executed='2021-07-12 04:12:48.917719', time_epoch_executed='1626088368.92' WHERE source_name='4FGL J0806.5+4503' and cadence='weekly' and bin_id='254'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/435187

Creating custom pfile directory:
/scratch/kocevski/435187/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=392601601.0 && nMetStart<393206401.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=392601601.0 && nMetStart<393206401.0' /Data/Flight/Level1/LPA

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/435187/ft1_4FGL_J0806.5+4503_weekly_bin254.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=392601601.0 && nMetStart<393206401.0' /Data/Flight/Level1/LPA

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/435187/ft2_4FGL_J0806.5+4503_weekly_bin254.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/435187/ft1_4FGL_J0806.5+4503_weekly_bin254.fits outfile=/scratch/kocevski/435187/ft1_filteredMKT_4FGL_J0806.5+4503_weekly_bin254.fits ra=121.628 dec=45.0605 rad=12.0 tmin=392601601.0 tmax=393206401.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 9.28
user 8.64
sys 0.38

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/435187/ft2_4FGL_J0806.5+4503_weekly_bin254.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/435187/ft2_4FGL_J0806.5+4503_weekly_bin254.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/435187/ft1_filteredMKT_4FGL_J0806.5+4503_weekly_bin254.fits evtable="EVENTS" outfile="/scratch/kocevski/435187/ft1_filtered_4FGL_J0806.5+4503_weekly_bin254.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('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.79
user 0.38
sys 0.22

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/435187/ft1_filtered_4FGL_J0806.5+4503_weekly_bin254.fits" evtable="EVENTS" scfile=/scratch/kocevski/435187/ft2_4FGL_J0806.5+4503_weekly_bin254.fits sctable="SC_DATA" outfile=/scratch/kocevski/435187/ltcube_392601601_393206401_4FGL_J0806.5+4503_weekly_bin254.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 /scratch/kocevski/435187/ft2_4FGL_J0806.5+4503_weekly_bin254.fits
.....................!
real 33.55
user 32.09
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/435187/ft1_filtered_4FGL_J0806.5+4503_weekly_bin254.fits evtable="EVENTS" scfile=/scratch/kocevski/435187/ft2_4FGL_J0806.5+4503_weekly_bin254.fits sctable="SC_DATA" expcube=/scratch/kocevski/435187/ltcube_392601601_393206401_4FGL_J0806.5+4503_weekly_bin254.fits outfile=/scratch/kocevski/435187/expmap_392601601_393206401_4FGL_J0806.5+4503_weekly_bin254.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 /scratch/kocevski/435187/ltcube_392601601_393206401_4FGL_J0806.5+4503_weekly_bin254.fits
.....................!
real 194.86
user 186.96
sys 5.63

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

Setting source of interest to:
4FGL J0806.5+4503 @ 121.628 45.0605

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/435187/ft1_filtered_4FGL_J0806.5+4503_weekly_bin254.fits scfile=/scratch/kocevski/435187/ft2_4FGL_J0806.5+4503_weekly_bin254.fits outfile=/scratch/kocevski/435187/cmap_392601601_393206401_4FGL_J0806.5+4503_weekly_bin254.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=121.628 yref=45.0605 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.86
user 0.41
sys 0.20

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/435187/ft1_filtered_4FGL_J0806.5+4503_weekly_bin254.fits scfile=/scratch/kocevski/435187/ft2_4FGL_J0806.5+4503_weekly_bin254.fits outfile=/scratch/kocevski/435187/cmap_HighResolution_392601601_393206401_4FGL_J0806.5+4503_weekly_bin254.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=121.628 yref=45.0605 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.14
user 0.42
sys 0.22

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/435187/ft1_filtered_4FGL_J0806.5+4503_weekly_bin254.fits evtable="EVENTS" scfile=/scratch/kocevski/435187/ft2_4FGL_J0806.5+4503_weekly_bin254.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/435187/Model_4FGL_J0806.5+4503_weekly_bin254.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...
/scratch/kocevski/435187/ft1_filtered_4FGL_J0806.5+4503_weekly_bin254.fits.....................!
real 138.38
user 130.62
sys 1.36

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/435187/ft1_filtered_4FGL_J0806.5+4503_weekly_bin254.fits', '/scratch/kocevski/435187/ft2_4FGL_J0806.5+4503_weekly_bin254.fits', expMap='/scratch/kocevski/435187/expmap_392601601_393206401_4FGL_J0806.5+4503_weekly_bin254.fits', expCube='/scratch/kocevski/435187/ltcube_392601601_393206401_4FGL_J0806.5+4503_weekly_bin254.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/435187/Model_4FGL_J0806.5+4503_weekly_bin254.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0806.5+4503'

4FGL J0806.5+4503
   Spectrum: PowerLaw
282    Prefactor:  6.264e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.607e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  6.910e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/435187/ft1_filtered_4FGL_J0806.5+4503_weekly_bin254.fits
Spacecraft file(s): /scratch/kocevski/435187/ft2_4FGL_J0806.5+4503_weekly_bin254.fits
Exposure map: /scratch/kocevski/435187/expmap_392601601_393206401_4FGL_J0806.5+4503_weekly_bin254.fits
Exposure cube: /scratch/kocevski/435187/ltcube_392601601_393206401_4FGL_J0806.5+4503_weekly_bin254.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/435187/Model_4FGL_J0806.5+4503_weekly_bin254.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) = 15711.13899

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.522       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.413       1.0000         .10000E-03   10000.    
     4 'norm      '    .63215E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.708       1.0000         .10000E-03   10000.    
     7 'norm      '    .56329       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14088E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9312       1.0000         .10000E-03   10000.    
    10 'norm      '    1.5030       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5298       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .32390E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1192       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.2850       1.0000         .10000E-03   10000.    
    16 'norm      '    1.6876       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.233       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12938E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .39144       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10576E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .76407       1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.872       1.0000         .10000E-03   10000.    
    23 'norm      '    3.6164       1.0000         .10000E-03   10000.    
    24 'norm      '    7.0448       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10793E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.3319       1.0000         .10000E-03   10000.    
    27 'Prefactor '    45.400       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0100       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .96497       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15711.14     FROM MIGRAD    STATUS=CONVERGED    772 CALLS     3864 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.521        4.0760        .38919E-06    .90399E-04
   2  Prefactor     .10000E-03    2.5198       -.16765E-07** at limit **
   3  Prefactor     10.420        10.498       -.80271E-07   -.24255E-04
   4  norm          .84440E-01    1.8426        .12896E-06   -.26905E-03
   5  Prefactor     .10000E-03    3.2040        .83046E-07** at limit **
   6  Prefactor     14.714        15.063       -.56713E-05   -.24929E-03
   7  norm          .56332        .48206        .47453E-07   -.22600E-04
   8  Prefactor     .10000E-03    1.7288        .36008E-06** at limit **
   9  Prefactor     2.9353        7.7472       -.34821E-05   -.17628E-03
  10  norm          1.5028        1.2474        .49640E-07   -.10341E-03
  11  Prefactor     3.5275        3.8328       -.11223E-06   -.88196E-04
  12  Prefactor     .10005E-03    16.404        .38190E-06** at limit **
  13  Prefactor     1.1216        3.1652       -.50509E-07   -.52883E-03
  14  norm          .10000E-03    .60821        .30861E-07** at limit **
  15  norm          2.2850        .95962       -.14145E-07   -.11863E-04
  16  norm          1.6875        .48995       -.50106E-07    .78436E-03
  17  Prefactor     12.225        9.5709        .10041E-05    .35062E-03
  18  Prefactor     .10000E-03    1.7429        .78666E-08** at limit **
  19  Prefactor     .39387        1.2906       -.43872E-06   -.30293E-03
  20  Prefactor     .10000E-03    19.816       -.22141E-06** at limit **
  21  Prefactor     .76784        3.3154       -.35109E-06   -.90432E-04
  22  Prefactor     15.872        6.2608        .70815E-07    .32613E-04
  23  norm          3.6172        2.1590        .72444E-06   -.39782E-02
  24  norm          7.0457        4.5231        .33654E-06    .84079E-04
  25  Prefactor     .10000E-03    .69311       -.17208E-06** at limit **
  26  Prefactor     6.3367        13.986       -.63775E-05   -.11957E-03
  27  Prefactor     45.406        42.048        .21140E-05    .48300E-04
  28  Normalizat    1.0100        .12337        .52464E-06    .16154E-03
  29  Prefactor     .96489        .86807E-01   -.99835E-08    .16771E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.521
  Prefactor  = 0.0001
  Prefactor  = 10.4201
  norm       = 0.0844399
  Prefactor  = 0.0001
  Prefactor  = 14.7143
  norm       = 0.563317
  Prefactor  = 0.000100001
  Prefactor  = 2.93534
  norm       = 1.50275
  Prefactor  = 3.52747
  Prefactor  = 0.000100052
  Prefactor  = 1.12162
  norm       = 0.0001
  norm       = 2.28501
  norm       = 1.6875
  Prefactor  = 12.2249
  Prefactor  = 0.0001
  Prefactor  = 0.393874
  Prefactor  = 0.0001
  Prefactor  = 0.767839
  Prefactor  = 15.8721
  norm       = 3.61723
  norm       = 7.04568
  Prefactor  = 0.0001
  Prefactor  = 6.33675
  Prefactor  = 45.406
  Normalizat = 1.00996
  Prefactor  = 0.96489
 **********
 **   18 **HESSE 
 **********

 FCN=   15711.14     FROM HESSE     STATUS=OK           593 CALLS     4457 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.521        4.0657        .11802E-03   -1.5029    
   2  Prefactor     .10000E-03    2.6170        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.420        10.489        .12417E-03   -1.5062    
   4  norm          .84440E-01    1.9861        .55106E-01   -1.5650    
   5  Prefactor     .10000E-03    3.2372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.714        15.122        .10444E-03   -1.4941    
   7  norm          .56332        .43369        .77563E-03   -1.5558    
   8  Prefactor     .10000E-03    7.0405        .31717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.9353        7.7595        .23726E-03   -1.5365    
  10  norm          1.5028        1.2440        .12303E-03   -1.5463    
  11  Prefactor     3.5275        3.8160        .21516E-03   -1.5332    
  12  Prefactor     .10005E-03    16.194        .13816       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.1216        3.1719        .34367E-03   -1.5496    
  14  norm          .10000E-03    .61631        .95421E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.2850        .95996        .77349E-04   -1.5406    
  16  norm          1.6875        .48547        .43200E-04   -1.5448    
  17  Prefactor     12.225        9.3731        .11453E-03   -1.5009    
  18  Prefactor     .10000E-03    6.3304        .31975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .39387        1.8565        .21879E-02   -1.5582    
  20  Prefactor     .10000E-03    20.450        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .76784        10.198        .43016E-02   -1.5533    
  22  Prefactor     15.872        6.2511        .10053E-03   -1.4911    
  23  norm          3.6172        4.0485        .10623E-02   -1.5328    
  24  norm          7.0457        4.5642        .15114E-03   -1.5177    
  25  Prefactor     .10000E-03    1.5383        .20037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     6.3367        13.964        .15952E-03   -1.5204    
  27  Prefactor     45.406        42.139        .59504E-04   -1.4359    
  28  Normalizat    1.0100        .13895        .27714E-03   -.92698    
  29  Prefactor     .96489        .98844E-01    .21087E-03   -.93909    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92993e-07
Minuit parameter uncertainties:
  1  4.06577
  2  3.13518e-06
  3  10.4904
  4  0.818587
  5  1.99506e-06
  6  15.126
  7  0.433694
  8  0.000168532
  9  7.76213
  10  1.24399
  11  3.81629
  12  0.00183595
  13  3.17242
  14  8.48732e-08
  15  0.959969
  16  0.485472
  17  9.3742
  18  4.06192e-05
  19  1.7101
  20  1.44251e-05
  21  5.59747
  22  6.25138
  23  4.04878
  24  4.56446
  25  3.08261e-06
  26  13.9716
  27  42.1663
  28  0.139
  29  0.0988624
Done.

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

Extracting fit parameters...

4FGL J0806.5+4503
   Spectrum: PowerLaw
282    Prefactor:  1.001e-04  1.836e-03  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.607e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  6.910e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
659    Prefactor:  9.649e-01  9.886e-02  0.000e+00  1.000e+01 ( 1.000e+00)
660        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
661        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
658   Normalization:  1.010e+00  1.390e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 121.628 45.060
Photon Flux Upper Limit: 5.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/435187/likelihoodResults_392601601_393206401_4FGL_J0806.5+4503_weekly_bin254.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15711.1356124
delta logL = -2.3997057724e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15711.1356124
delta logL = -2.39965265791e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96367E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6069       1.0000          .0000       10.000    
     3 'Normalizat'    1.0100       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96489       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15711.14     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      251 TOTAL
                     EDM=   .22E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10059E-03    18.225        .12816    ** at limit **
   2  Index         2.7326        6.3639        .50000       -.56281E-05
   3  Normalizat    1.0100        .34755E-02    .46292E-01    .12424E-03
   4  Prefactor     .96489        .26043E-02    .45827E-01    .10251E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100586
  Index      = 2.73264
  Normalizat = 1.00996
  Prefactor  = 0.96489
 **********
 **   18 **HESSE 
 **********

 FCN=   15711.14     FROM HESSE     STATUS=NOT POSDEF    43 CALLS      294 TOTAL
                     EDM=   .22E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10059E-03    18.046        .12871       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7326        6.3641        .50000       -.47066    
   3  Normalizat    1.0100        .34664E-02    .27714E-03   -.92698    
   4  Prefactor     .96489        .25979E-02    .21087E-03   -.93909    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.22905e-13
Minuit parameter uncertainties:
  1  0.00650803
  2  5.09051
  3  0.00346644
  4  0.00259788
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/435187': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15711.1355882
delta logL = 1.57566319103e-07

Extracting fit parameters...

4FGL J0806.5+4503
   Spectrum: PowerLaw
282    Prefactor:  1.006e-04  6.508e-03  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.733e+00  5.091e+00  0.000e+00  1.000e+01 (-1.000e+00)
284        Scale:  6.910e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
659    Prefactor:  9.649e-01  2.598e-03  0.000e+00  1.000e+01 ( 1.000e+00)
660        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
661        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
658   Normalization:  1.010e+00  3.466e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 121.628 45.060

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 /scratch/kocevski/435187/cmap_HighResolution_392601601_393206401_4FGL_J0806.5+4503_weekly_bin254.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/435187

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.21e-03', job_status='DONE', photon_flux_upper_limit='5.38e-08', time_completed='2021-07-12 04:46:11.994555', job_id='435187', GAL2='0.96', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1626090371.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.58e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='254' AND source_name='4FGL J0806.5+4503' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 12 04:46:12 PDT 2021

<slac> at Sun Jul 11 23:42:03 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul 11 23:57:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul 11 23:57:41 2021
Terminated at Mon Jul 12 00:33:14 2021
Results reported at Mon Jul 12 00:33:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0806.5+4503_weekly_bin254 121.628 45.0605 392601601 393206401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0806.5+4503 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1953.00 sec.
    Max Memory :                                 622 MB
    Average Memory :                             311.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2134 sec.
    Turnaround time :                            3071 sec.

The output (if any) is above this job summary.


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 435187: <4FGL_J0806.5+4503_weekly_bin254> in cluster <slac> Done

Job <4FGL_J0806.5+4503_weekly_bin254> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Jul 11 23:42:21 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul 11 23:59:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul 11 23:59:21 2021
Terminated at Mon Jul 12 04:46:21 2021
Results reported at Mon Jul 12 04:46:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0806.5+4503_weekly_bin254 121.628 45.0605 392601601 393206401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0806.5+4503 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1979.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             81.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   17220 sec.
    Turnaround time :                            18240 sec.

The output (if any) is above this job summary.

