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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin844
RA = 122.453, Dec = 5.1313
tmin = 458092801, tmax = 458352001
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='253124', job_status='RUN', time_executed='2021-08-29 09:04:12.993188', time_epoch_executed='1630253052.99' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='844'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/253124

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/253124/ft1_4FGL_J0809.8+0507_daily_bin844.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/253124/ft2_4FGL_J0809.8+0507_daily_bin844.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/253124/ft1_4FGL_J0809.8+0507_daily_bin844.fits outfile=/scratch/kocevski/253124/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin844.fits ra=122.453 dec=5.1313 rad=12.0 tmin=458092801.0 tmax=458352001.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 8.86
user 3.37
sys 5.45

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/253124/ft2_4FGL_J0809.8+0507_daily_bin844.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/253124/ft2_4FGL_J0809.8+0507_daily_bin844.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/253124/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin844.fits evtable="EVENTS" outfile="/scratch/kocevski/253124/ft1_filtered_4FGL_J0809.8+0507_daily_bin844.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 6.10
user 0.32
sys 5.75

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/253124/ft1_filtered_4FGL_J0809.8+0507_daily_bin844.fits" evtable="EVENTS" scfile=/scratch/kocevski/253124/ft2_4FGL_J0809.8+0507_daily_bin844.fits sctable="SC_DATA" outfile=/scratch/kocevski/253124/ltcube_458092801_458352001_4FGL_J0809.8+0507_daily_bin844.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/253124/ft2_4FGL_J0809.8+0507_daily_bin844.fits
.....................!
real 18.01
user 11.78
sys 6.15

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/253124/ft1_filtered_4FGL_J0809.8+0507_daily_bin844.fits evtable="EVENTS" scfile=/scratch/kocevski/253124/ft2_4FGL_J0809.8+0507_daily_bin844.fits sctable="SC_DATA" expcube=/scratch/kocevski/253124/ltcube_458092801_458352001_4FGL_J0809.8+0507_daily_bin844.fits outfile=/scratch/kocevski/253124/expmap_458092801_458352001_4FGL_J0809.8+0507_daily_bin844.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/253124/ltcube_458092801_458352001_4FGL_J0809.8+0507_daily_bin844.fits
.....................!
real 197.10
user 184.99
sys 11.57

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

Setting source of interest to:
4FGL J0809.8+0507 @ 122.453 5.1313

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/253124/ft1_filtered_4FGL_J0809.8+0507_daily_bin844.fits scfile=/scratch/kocevski/253124/ft2_4FGL_J0809.8+0507_daily_bin844.fits outfile=/scratch/kocevski/253124/cmap_458092801_458352001_4FGL_J0809.8+0507_daily_bin844.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=122.453 yref=5.1313 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 5.20
user 0.36
sys 4.74

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/253124/ft1_filtered_4FGL_J0809.8+0507_daily_bin844.fits scfile=/scratch/kocevski/253124/ft2_4FGL_J0809.8+0507_daily_bin844.fits outfile=/scratch/kocevski/253124/cmap_HighResolution_458092801_458352001_4FGL_J0809.8+0507_daily_bin844.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=122.453 yref=5.1313 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 5.84
user 0.38
sys 5.27

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/253124/ft1_filtered_4FGL_J0809.8+0507_daily_bin844.fits evtable="EVENTS" scfile=/scratch/kocevski/253124/ft2_4FGL_J0809.8+0507_daily_bin844.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/253124/Model_4FGL_J0809.8+0507_daily_bin844.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/253124/ft1_filtered_4FGL_J0809.8+0507_daily_bin844.fits.....................!
real 85.10
user 76.89
sys 7.85

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/253124/ft1_filtered_4FGL_J0809.8+0507_daily_bin844.fits', '/scratch/kocevski/253124/ft2_4FGL_J0809.8+0507_daily_bin844.fits', expMap='/scratch/kocevski/253124/expmap_458092801_458352001_4FGL_J0809.8+0507_daily_bin844.fits', expCube='/scratch/kocevski/253124/ltcube_458092801_458352001_4FGL_J0809.8+0507_daily_bin844.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/253124/Model_4FGL_J0809.8+0507_daily_bin844.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0809.8+0507'

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  4.437e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.815e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  8.580e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  4.471e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/253124/ft1_filtered_4FGL_J0809.8+0507_daily_bin844.fits
Spacecraft file(s): /scratch/kocevski/253124/ft2_4FGL_J0809.8+0507_daily_bin844.fits
Exposure map: /scratch/kocevski/253124/expmap_458092801_458352001_4FGL_J0809.8+0507_daily_bin844.fits
Exposure cube: /scratch/kocevski/253124/ltcube_458092801_458352001_4FGL_J0809.8+0507_daily_bin844.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/253124/Model_4FGL_J0809.8+0507_daily_bin844.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) = 6288.74077816

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    114.51       1.0000         .10000E-03   10000.    
     3 'norm      '    18.708       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12484E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4791       1.0000         .10000E-03   10000.    
     6 'norm      '    12.243       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    157.51       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.8650       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.980       1.0000         .10000E-03   10000.    
    11 'norm      '    13.476       1.0000         .10000E-03   10000.    
    12 'norm      '    .81275       1.0000         .10000E-03   10000.    
    13 'norm      '    .11133E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.6432       1.0000         .10000E-03   10000.    
    15 'Prefactor '    68.825       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .80943E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    28.340       1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.250       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .91468       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .89501       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6288.716     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2574 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.047       -.20902E-06** at limit **
   2  Prefactor     114.52        53.702        .39828E-06    .61133E-05
   3  norm          18.708        3.6620       -.25569E-06    .14219E-03
   4  Prefactor     .10001E-03    23.193       -.95656E-06** at limit **
   5  Prefactor     2.4809        3.9770        .39520E-05   -.23106E-03
   6  norm          12.240        17.436        .10641E-05   -.29332E-04
   7  Prefactor     .10000E-03    6.4619       -.24586E-06** at limit **
   8  Prefactor     157.37        167.06       -.10319E-03   -.11699E-04
   9  Prefactor     4.8626        7.0628       -.42122E-06   -.76415E-04
  10  Prefactor     18.978        36.406       -.20714E-05    .18318E-04
  11  norm          13.475        11.326       -.21254E-06    .50220E-04
  12  norm          .81407        1.9613       -.71905E-06   -.15109E-02
  13  norm          .10000E-03    43.079       -.46858E-06** at limit **
  14  norm          7.6431        5.1101       -.27708E-06   -.53478E-04
  15  Prefactor     68.823        48.098       -.12834E-05    .57630E-04
  16  Prefactor     .10000E-03    6.5576       -.45252E-07** at limit **
  17  norm          .80225E-01    .58542       -.73864E-06   -.63950E-03
  18  norm          28.340        12.162       -.69701E-06    .14962E-03
  19  Prefactor     20.240        32.314        .55723E-06    .10411E-04
  20  Normalizat    .91480        .22331        .33331E-05    .92926E-04
  21  Prefactor     .89494        .14193        .17709E-05    .14210E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 114.515
  norm       = 18.7084
  Prefactor  = 0.000100014
  Prefactor  = 2.48087
  norm       = 12.2404
  Prefactor  = 0.0001
  Prefactor  = 157.368
  Prefactor  = 4.8626
  Prefactor  = 18.9783
  norm       = 13.4749
  norm       = 0.814074
  norm       = 0.0001
  norm       = 7.64307
  Prefactor  = 68.8227
  Prefactor  = 0.0001
  norm       = 0.0802248
  norm       = 28.3396
  Prefactor  = 20.2403
  Normalizat = 0.914798
  Prefactor  = 0.894939
 **********
 **   18 **HESSE 
 **********

 FCN=   6288.716     FROM HESSE     STATUS=OK           337 CALLS     2911 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     114.52        53.703        .37596E-04   -1.3564    
   3  norm          18.708        3.6641        .62612E-04   -1.4843    
   4  Prefactor     .10001E-03    24.915        .12392       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.4809        3.9501        .17899E-03   -1.5393    
   6  norm          12.240        17.412        .11448E-03   -1.5008    
   7  Prefactor     .10000E-03    6.4768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     157.37        166.52        .16063E-03   -1.3192    
   9  Prefactor     4.8626        7.0023        .18237E-03   -1.5267    
  10  Prefactor     18.978        36.424        .91934E-04   -1.4836    
  11  norm          13.475        11.316        .10911E-03   -1.4974    
  12  norm          .81407        1.7921        .16520E-02   -1.5528    
  13  norm          .10000E-03    44.129        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.6431        5.1069        .13855E-03   -1.5155    
  15  Prefactor     68.823        48.450        .48384E-04   -1.4047    
  16  Prefactor     .10000E-03    6.5712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .80225E-01    1.3282        .11570E-02   -1.5651    
  18  norm          28.340        12.169        .75257E-04   -1.4643    
  19  Prefactor     20.240        32.404        .89006E-04   -1.4808    
  20  Normalizat    .91480        .25718        .32225E-03   -.95942    
  21  Prefactor     .89494        .16373        .22219E-03   -.96318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.79769e-10
Minuit parameter uncertainties:
  1  2.80653e-05
  2  53.7259
  3  3.66415
  4  0.00118301
  5  3.9505
  6  17.4189
  7  9.04871e-06
  8  167.018
  9  7.00347
  10  36.4666
  11  11.3177
  12  1.79217
  13  1.12017e-05
  14  5.10722
  15  48.4778
  16  3.12928e-06
  17  0.652463
  18  12.1704
  19  32.4319
  20  0.257522
  21  0.163815
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  1.120e-05  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.815e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  8.580e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  4.471e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  8.949e-01  1.638e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  9.148e-01  2.575e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 122.453 5.131
Photon Flux Upper Limit: 8.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.12e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/253124/likelihoodResults_458092801_458352001_4FGL_J0809.8+0507_daily_bin844.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) = 6288.71586114
delta logL = -0.000108029170406

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6288.64148616
delta logL = 0.0742669474375

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0324       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .88621       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90625       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6288.641     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      287 TOTAL
                     EDM=   .39E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0251        5.7568         .0000        .21813E-01
   2  alpha         5.0000        4.6315         .0000    ** at limit **
   3  Normalizat    .88621        .21175         .0000       -.83813E-04
   4  Prefactor     .90604        .14030         .0000       -.14974E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.0251
  alpha      = 5
  Normalizat = 0.886207
  Prefactor  = 0.906044
 **********
 **   18 **HESSE 
 **********

 FCN=   6288.641     FROM HESSE     STATUS=OK            29 CALLS      316 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0251        5.5181        .14013E-02   -1.5423    
   2  alpha         5.0000        4.4547        .17153        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .88621        .24223        .32667E-03   -.96946    
   4  Prefactor     .90604        .16114        .22092E-03   -.95930    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07953e-09
Minuit parameter uncertainties:
  1  5.51944
  2  1.43258e-05
  3  0.242528
  4  0.161229
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/253124': 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) = 6288.64148098
delta logL = 0.0742721247998

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  2.025e+00  5.519e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  5.000e+00  1.433e-05  0.000e+00  5.000e+00 ( 1.000e+00)
282         beta:  8.580e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  4.471e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  9.060e-01  1.612e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  8.862e-01  2.425e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 122.453 5.131

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/253124/cmap_HighResolution_458092801_458352001_4FGL_J0809.8+0507_daily_bin844.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.12e-05', job_status='DONE', photon_flux_upper_limit='8.04e-08', time_completed='2021-08-29 09:16:15.555722', job_id='253124', GAL2='0.91', fit_tolerance='1e-08', EG2='0.89', EG='0.91', time_epoch_completed='1630253775.56', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='7.43e-02', ts2='0.16', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='844' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:16:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 253124: <4FGL_J0809.8+0507_daily_bin844> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin844> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 29 09:00:50 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 09:00:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 09:00:52 2021
Terminated at Sun Aug 29 09:16:17 2021
Results reported at Sun Aug 29 09:16:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin844 122.453 5.1313 458092801 458352001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0809.8+0507 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   802.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            927 sec.

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

