/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 108 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 = 5262
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0806.5+4503_daily_bin73
RA = 121.628, Dec = 45.0605
tmin = 258249601, tmax = 258508801
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='148571', job_status='RUN', time_executed='2021-08-29 03:02:42.019112', time_epoch_executed='1630231362.02' WHERE source_name='4FGL J0806.5+4503' and cadence='daily' and bin_id='73'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/148571

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

Retrieving the FT1 file...

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

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

Retrieving 33 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/148571/ft1_4FGL_J0806.5+4503_daily_bin73.fits


Retrieving the FT1 file...

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

Retrieving 33 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/148571/ft2_4FGL_J0806.5+4503_daily_bin73.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/148571/ft1_4FGL_J0806.5+4503_daily_bin73.fits outfile=/scratch/kocevski/148571/ft1_filteredMKT_4FGL_J0806.5+4503_daily_bin73.fits ra=121.628 dec=45.0605 rad=12.0 tmin=258249601.0 tmax=258508801.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 0.90
user 0.74
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/148571/ft2_4FGL_J0806.5+4503_daily_bin73.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/148571/ft1_filteredMKT_4FGL_J0806.5+4503_daily_bin73.fits evtable="EVENTS" outfile="/scratch/kocevski/148571/ft1_filtered_4FGL_J0806.5+4503_daily_bin73.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.39
user 0.24
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/148571/ft1_filtered_4FGL_J0806.5+4503_daily_bin73.fits" evtable="EVENTS" scfile=/scratch/kocevski/148571/ft2_4FGL_J0806.5+4503_daily_bin73.fits sctable="SC_DATA" outfile=/scratch/kocevski/148571/ltcube_258249601_258508801_4FGL_J0806.5+4503_daily_bin73.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/148571/ft2_4FGL_J0806.5+4503_daily_bin73.fits
.....................!
real 6.86
user 6.58
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/148571/ft1_filtered_4FGL_J0806.5+4503_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/148571/ft2_4FGL_J0806.5+4503_daily_bin73.fits sctable="SC_DATA" expcube=/scratch/kocevski/148571/ltcube_258249601_258508801_4FGL_J0806.5+4503_daily_bin73.fits outfile=/scratch/kocevski/148571/expmap_258249601_258508801_4FGL_J0806.5+4503_daily_bin73.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/148571/ltcube_258249601_258508801_4FGL_J0806.5+4503_daily_bin73.fits
.....................!
real 141.17
user 137.60
sys 3.34

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/148571/ft1_filtered_4FGL_J0806.5+4503_daily_bin73.fits scfile=/scratch/kocevski/148571/ft2_4FGL_J0806.5+4503_daily_bin73.fits outfile=/scratch/kocevski/148571/cmap_258249601_258508801_4FGL_J0806.5+4503_daily_bin73.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.47
user 0.27
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/148571/ft1_filtered_4FGL_J0806.5+4503_daily_bin73.fits scfile=/scratch/kocevski/148571/ft2_4FGL_J0806.5+4503_daily_bin73.fits outfile=/scratch/kocevski/148571/cmap_HighResolution_258249601_258508801_4FGL_J0806.5+4503_daily_bin73.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 0.48
user 0.29
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/148571/ft1_filtered_4FGL_J0806.5+4503_daily_bin73.fits', '/scratch/kocevski/148571/ft2_4FGL_J0806.5+4503_daily_bin73.fits', expMap='/scratch/kocevski/148571/expmap_258249601_258508801_4FGL_J0806.5+4503_daily_bin73.fits', expCube='/scratch/kocevski/148571/ltcube_258249601_258508801_4FGL_J0806.5+4503_daily_bin73.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/148571/Model_4FGL_J0806.5+4503_daily_bin73.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/148571/ft1_filtered_4FGL_J0806.5+4503_daily_bin73.fits
Spacecraft file(s): /scratch/kocevski/148571/ft2_4FGL_J0806.5+4503_daily_bin73.fits
Exposure map: /scratch/kocevski/148571/expmap_258249601_258508801_4FGL_J0806.5+4503_daily_bin73.fits
Exposure cube: /scratch/kocevski/148571/ltcube_258249601_258508801_4FGL_J0806.5+4503_daily_bin73.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/148571/Model_4FGL_J0806.5+4503_daily_bin73.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) = 5659.52286841

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2180       1.0000         .10000E-03   10000.    
     4 'norm      '    19.866       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .65115E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10542E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.0393       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16917E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.5102       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.498       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.9864       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .77329       1.0000         .10000E-03   10000.    
    16 'norm      '    .66486       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.824       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.8339       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2088       1.0000         .10000E-03   10000.    
    20 'Prefactor '    72.841       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .48799E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.4862       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .85993       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0936       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5659.458     FROM MIGRAD    STATUS=CONVERGED   1334 CALLS     4355 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.7546        .12149E-02** at limit **
   2  Prefactor     .10000E-03    8.3428        .36285E-03** at limit **
   3  Prefactor     1.2214        92.211        .20450E-02    .97842E-05
   4  norm          19.862        10.849        .89861E-04    .87547E-04
   5  Prefactor     .10011E-03    85.570        .43225E-02** at limit **
   6  Prefactor     .10000E-03    15.881        .18142E-02** at limit **
   7  norm          1.0393        .72369        .52058E-04    .16182E-03
   8  Prefactor     .10002E-03    39.355        .39486E-02** at limit **
   9  Prefactor     .10000E-03    5.6551        .17466E-02** at limit **
  10  norm          1.5102        1.8825        .11285E-03    .21749E-03
  11  Prefactor     .10000E-03    3.6009        .13920E-02** at limit **
  12  Prefactor     22.527        42.164        .84446E-04    .10522E-03
  13  Prefactor     5.9863        5.3100        .76983E-03    .11246E-03
  14  norm          .10000E-03    .99694        .73303E-03** at limit **
  15  norm          .77329        .86478        .72363E-04   -.22466E-04
  16  norm          .66384        .61506        .56738E-03   -.44942E-03
  17  Prefactor     15.828        14.895        .10069E-03   -.84459E-04
  18  Prefactor     4.8334        6.1333        .18297E-03    .25661E-04
  19  Prefactor     1.2087        3.2898        .20359E-03   -.11782E-03
  20  Prefactor     72.918        41.309        .47040E-04    .50511E-04
  21  Prefactor     .10008E-03    11.364        .72734E-01** at limit **
  22  Prefactor     .10000E-03    4.6309        .15777E-02** at limit **
  23  norm          .10000E-03    5.5849        .17153E-02** at limit **
  24  norm          .10000E-03    1.7070        .95947E-03** at limit **
  25  Prefactor     1.4857        2.8100        .16668E-03   -.12939E-03
  26  Prefactor     .10000E-03    8.2893        .18142E-02** at limit **
  27  Prefactor     .10000E-03    25.595        .18142E-02** at limit **
  28  Normalizat    .86031        .24373        .30523E-03    .38886E-04
  29  Prefactor     1.0935        .17573        .20477E-03   -.23151E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.22138
  norm       = 19.8624
  Prefactor  = 0.000100112
  Prefactor  = 0.0001
  norm       = 1.0393
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  norm       = 1.51023
  Prefactor  = 0.0001
  Prefactor  = 22.527
  Prefactor  = 5.98626
  norm       = 0.0001
  norm       = 0.773287
  norm       = 0.663838
  Prefactor  = 15.8276
  Prefactor  = 4.83337
  Prefactor  = 1.2087
  Prefactor  = 72.9177
  Prefactor  = 0.000100077
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.48565
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.860313
  Prefactor  = 1.09354
 **********
 **   18 **HESSE 
 **********

 FCN=   5659.458     FROM HESSE     STATUS=OK           539 CALLS     4894 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.7548        .24299E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.3431        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.2214        91.887        .81801E-04   -1.5487    
   4  norm          19.862        10.849        .35945E-05   -1.4816    
   5  Prefactor     .10011E-03    88.087        .17290E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.883        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.0393        .72369        .20823E-05   -1.5504    
   8  Prefactor     .10002E-03    40.019        .78973E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.6553        .34931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.5102        1.8823        .45141E-05   -1.5462    
  11  Prefactor     .10000E-03    3.6011        .27840E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.527        42.158        .16889E-04   -1.4758    
  13  Prefactor     5.9863        5.3080        .30793E-04   -1.5219    
  14  norm          .10000E-03    .99695        .14661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .77329        .86478        .28945E-05   -1.5532    
  16  norm          .66384        .61472        .22695E-04   -1.5545    
  17  Prefactor     15.828        14.889        .40274E-05   -1.4912    
  18  Prefactor     4.8334        6.1329        .73188E-05   -1.5268    
  19  Prefactor     1.2087        3.2879        .81436E-05   -1.5488    
  20  Prefactor     72.918        41.313        .94081E-05   -1.3998    
  21  Prefactor     .10008E-03    10.786        .76107E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.6315        .31553E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    5.5897        .34306E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.7070        .19189E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.4857        2.8096        .66671E-05   -1.5464    
  26  Prefactor     .10000E-03    8.2893        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    25.596        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .86031        .24388        .12209E-04   -.97869    
  29  Prefactor     1.0935        .17580        .81909E-05   -.89673    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10827e-09
Minuit parameter uncertainties:
  1  2.68229e-05
  2  0.00013888
  3  21.2206
  4  10.8499
  5  0.00629256
  6  6.90995e-05
  7  0.723692
  8  0.00179763
  9  8.11058e-06
  10  1.88239
  11  1.5261e-05
  12  42.214
  13  5.30842
  14  3.07886e-06
  15  0.86479
  16  0.614725
  17  14.8927
  18  6.13365
  19  3.28843
  20  41.3291
  21  0.0018273
  22  2.3124e-05
  23  3.55584e-05
  24  2.99717e-06
  25  2.80987
  26  1.01396e-06
  27  4.03868e-05
  28  0.244196
  29  0.175895
Done.

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

Extracting fit parameters...

4FGL J0806.5+4503
   Spectrum: PowerLaw
282    Prefactor:  2.253e+01  4.221e+01  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:  1.094e+00  1.759e-01  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:  8.603e-01  2.442e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.36
Ra Dec: 121.628 45.060
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/148571/likelihoodResults_258249601_258508801_4FGL_J0806.5+4503_daily_bin73.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5659.08361093
delta logL = 0.374633983345

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5659.07012391
delta logL = 0.38812099779

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.8225       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7811       1.0000          .0000       10.000    
     3 'Normalizat'    .82783       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1083       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5659.070     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      308 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8187        68.218        .13495E-03   -.11134E-02
   2  Index         3.7826        3.1433        .78538E-02   -.32579E-03
   3  Normalizat    .82792        .23325        .31043E-03   -.69771E-03
   4  Prefactor     1.1080        .17291        .20352E-03   -.83026E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.81872
  Index      = 3.78259
  Normalizat = 0.827918
  Prefactor  = 1.10805
 **********
 **   18 **HESSE 
 **********

 FCN=   5659.070     FROM HESSE     STATUS=OK            23 CALLS      331 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8187        22.459        .53978E-05   -1.5114    
   2  Index         3.7826        1.5364        .31415E-03   -.24595    
   3  Normalizat    .82792        .23332        .62086E-04   -.99041    
   4  Prefactor     1.1080        .17254        .40705E-04   -.89210    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76861e-09
Minuit parameter uncertainties:
  1  22.4801
  2  1.56331
  3  0.233598
  4  0.172628
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/148571': 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): 0
logL (Free Index) = 5659.07011925
delta logL = 0.388125662362

Extracting fit parameters...

4FGL J0806.5+4503
   Spectrum: PowerLaw
282    Prefactor:  8.819e+00  2.248e+01  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  3.783e+00  1.563e+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:  1.108e+00  1.726e-01  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:  8.279e-01  2.336e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.18
Ra Dec: 121.628 45.060
Photon Index (Free Index): 3.78 +/- 1.56
Photon Flux (Free Index): 4.76e-08 +/- 5.18e-08
Energy Flux (Free Index): 7.42e-06 +/- 8.11e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/148571/cmap_HighResolution_258249601_258508801_4FGL_J0806.5+4503_daily_bin73.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.21e-03', comment='SUCCESS', energy_flux2='7.42e-06', dlogl='3.88e-01', photon_flux2='4.76e-08', job_status='DONE', time_completed='2021-08-29 03:13:40.221723', photon_index_error2='1.56', photon_index2='3.78', ts='0.36', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='8.11e-06', EG='0.86', time_epoch_completed='1630232020.22', return_code='0', job_id='148571', GAL2='1.11', EG2='0.83', return_code2='0', photon_flux_error2='5.18e-08', ts2='1.18', photon_index='2.61' WHERE bin_id='73' AND source_name='4FGL J0806.5+4503' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 03:13:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 148571: <4FGL_J0806.5+4503_daily_bin73> in cluster <slac> Done

Job <4FGL_J0806.5+4503_daily_bin73> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 29 03:00:41 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 03:00:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 03:00:42 2021
Terminated at Sun Aug 29 03:13:40 2021
Results reported at Sun Aug 29 03:13:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0806.5+4503_daily_bin73 121.628 45.0605 258249601 258508801 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 :                                   656.58 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             261.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            779 sec.

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

