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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin56
RA = 122.33, Dec = 40.8954
tmin = 253843201, tmax = 254102401
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='225272', job_status='RUN', time_executed='2021-08-29 07:31:50.480188', time_epoch_executed='1630247510.48' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='56'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/225272

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/225272/ft1_4FGL_J0809.3+4053_daily_bin56.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/225272/ft2_4FGL_J0809.3+4053_daily_bin56.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/225272/ft1_4FGL_J0809.3+4053_daily_bin56.fits outfile=/scratch/kocevski/225272/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin56.fits ra=122.33 dec=40.8954 rad=12.0 tmin=253843201.0 tmax=254102401.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 2.42
user 1.29
sys 1.04

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/225272/ft2_4FGL_J0809.3+4053_daily_bin56.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/225272/ft2_4FGL_J0809.3+4053_daily_bin56.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/225272/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin56.fits evtable="EVENTS" outfile="/scratch/kocevski/225272/ft1_filtered_4FGL_J0809.3+4053_daily_bin56.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 1.39
user 0.33
sys 1.01

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/225272/ft1_filtered_4FGL_J0809.3+4053_daily_bin56.fits" evtable="EVENTS" scfile=/scratch/kocevski/225272/ft2_4FGL_J0809.3+4053_daily_bin56.fits sctable="SC_DATA" outfile=/scratch/kocevski/225272/ltcube_253843201_254102401_4FGL_J0809.3+4053_daily_bin56.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/225272/ft2_4FGL_J0809.3+4053_daily_bin56.fits
.....................!
real 13.65
user 12.27
sys 1.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/225272/ft1_filtered_4FGL_J0809.3+4053_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/225272/ft2_4FGL_J0809.3+4053_daily_bin56.fits sctable="SC_DATA" expcube=/scratch/kocevski/225272/ltcube_253843201_254102401_4FGL_J0809.3+4053_daily_bin56.fits outfile=/scratch/kocevski/225272/expmap_253843201_254102401_4FGL_J0809.3+4053_daily_bin56.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/225272/ltcube_253843201_254102401_4FGL_J0809.3+4053_daily_bin56.fits
.....................!
real 191.44
user 185.37
sys 5.70

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

Setting source of interest to:
4FGL J0809.3+4053 @ 122.33 40.8954

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/225272/ft1_filtered_4FGL_J0809.3+4053_daily_bin56.fits scfile=/scratch/kocevski/225272/ft2_4FGL_J0809.3+4053_daily_bin56.fits outfile=/scratch/kocevski/225272/cmap_253843201_254102401_4FGL_J0809.3+4053_daily_bin56.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.33 yref=40.8954 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.40
user 0.36
sys 1.02

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/225272/ft1_filtered_4FGL_J0809.3+4053_daily_bin56.fits scfile=/scratch/kocevski/225272/ft2_4FGL_J0809.3+4053_daily_bin56.fits outfile=/scratch/kocevski/225272/cmap_HighResolution_253843201_254102401_4FGL_J0809.3+4053_daily_bin56.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.33 yref=40.8954 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.38
user 0.37
sys 1.00

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/225272/ft1_filtered_4FGL_J0809.3+4053_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/225272/ft2_4FGL_J0809.3+4053_daily_bin56.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/225272/Model_4FGL_J0809.3+4053_daily_bin56.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/225272/ft1_filtered_4FGL_J0809.3+4053_daily_bin56.fits.....................!
real 66.75
user 64.10
sys 2.42

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/225272/ft1_filtered_4FGL_J0809.3+4053_daily_bin56.fits', '/scratch/kocevski/225272/ft2_4FGL_J0809.3+4053_daily_bin56.fits', expMap='/scratch/kocevski/225272/expmap_253843201_254102401_4FGL_J0809.3+4053_daily_bin56.fits', expCube='/scratch/kocevski/225272/ltcube_253843201_254102401_4FGL_J0809.3+4053_daily_bin56.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/225272/Model_4FGL_J0809.3+4053_daily_bin56.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0809.3+4053'

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.019e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.588e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  6.589e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/225272/ft1_filtered_4FGL_J0809.3+4053_daily_bin56.fits
Spacecraft file(s): /scratch/kocevski/225272/ft2_4FGL_J0809.3+4053_daily_bin56.fits
Exposure map: /scratch/kocevski/225272/expmap_253843201_254102401_4FGL_J0809.3+4053_daily_bin56.fits
Exposure cube: /scratch/kocevski/225272/ltcube_253843201_254102401_4FGL_J0809.3+4053_daily_bin56.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/225272/Model_4FGL_J0809.3+4053_daily_bin56.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) = 6664.6277782

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.108       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.033       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.5398       1.0000         .10000E-03   10000.    
     7 'norm      '    .72549       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.471       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.0880       1.0000         .10000E-03   10000.    
    11 'norm      '    .88677       1.0000         .10000E-03   10000.    
    12 'norm      '    1.0556       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.9952       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.6746       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.594       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    37.983       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13135E-02   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0573       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .86183       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6664.612     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2559 TOTAL
                     EDM=   .92E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.108        7.0265        .54828E-07    .44113E-05
   2  Prefactor     .10000E-03    7.9357       -.42836E-06** at limit **
   3  Prefactor     .10000E-03    15.119       -.63129E-06** at limit **
   4  Prefactor     24.035        14.829        .14065E-06    .74877E-04
   5  Prefactor     .10000E-03    5.6467        .57967E-07** at limit **
   6  norm          5.5403        9.3168        .13203E-06    .55569E-06
   7  norm          .72401        1.8430       -.17321E-06   -.47847E-03
   8  Prefactor     .10000E-03    9.1829        .40291E-06** at limit **
   9  Prefactor     15.467        34.981       -.15401E-06   -.17534E-04
  10  Prefactor     4.0885        4.8563        .15106E-05   -.76620E-04
  11  norm          .88683        .84610       -.50790E-08    .22671E-04
  12  norm          1.0556        .64039       -.11083E-06   -.57180E-04
  13  Prefactor     .10000E-03    17.668        .42164E-06** at limit **
  14  Prefactor     3.9956        12.227        .25530E-05   -.18145E-04
  15  Prefactor     2.6746        2.4961       -.22708E-06   -.64526E-05
  16  Prefactor     12.592        17.239        .12427E-06    .51087E-05
  17  Prefactor     .10000E-03    4.7439       -.40292E-07** at limit **
  18  norm          .10000E-03    1.8019        .40647E-08** at limit **
  19  Prefactor     .10000E-03    1.3441        .37772E-08** at limit **
  20  Prefactor     37.957        42.688        .47071E-05    .28112E-04
  21  Prefactor     .10000E-03    2.2200       -.32678E-06** at limit **
  22  Normalizat    1.0571        .17401       -.19397E-06    .12664E-03
  23  Prefactor     .86194        .12741       -.26073E-06    .58459E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.1081
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.0347
  Prefactor  = 0.0001
  norm       = 5.54031
  norm       = 0.724013
  Prefactor  = 0.0001
  Prefactor  = 15.467
  Prefactor  = 4.08848
  norm       = 0.886826
  norm       = 1.05561
  Prefactor  = 0.0001
  Prefactor  = 3.99556
  Prefactor  = 2.67464
  Prefactor  = 12.5922
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.9567
  Prefactor  = 0.000100001
  Normalizat = 1.05715
  Prefactor  = 0.861944
 **********
 **   18 **HESSE 
 **********

 FCN=   6664.612     FROM HESSE     STATUS=OK           380 CALLS     2939 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.108        7.0325        .12603E-03   -1.5072    
   2  Prefactor     .10000E-03    7.9793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     24.035        14.392        .81710E-04   -1.4727    
   5  Prefactor     .10000E-03    5.6553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.5403        9.3097        .17070E-03   -1.5237    
   7  norm          .72401        1.5054        .16518E-02   -1.5538    
   8  Prefactor     .10000E-03    9.2936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.467        34.794        .10183E-03   -1.4921    
  10  Prefactor     4.0885        4.8437        .90082E-03   -1.5304    
  11  norm          .88683        .89278        .71577E-03   -1.5520    
  12  norm          1.0556        .62548        .46821E-04   -1.5502    
  13  Prefactor     .10000E-03    17.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.9956        12.125        .10089E-02   -1.5308    
  15  Prefactor     2.6746        2.4920        .11526E-03   -1.5381    
  16  Prefactor     12.592        17.226        .11287E-03   -1.4998    
  17  Prefactor     .10000E-03    4.7635        .17362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.8055        .10702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.3655        .92395E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     37.957        42.548        .32516E-03   -1.4475    
  21  Prefactor     .10000E-03    16.751        .23315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0571        .20134        .25719E-03   -.91140    
  23  Prefactor     .86194        .14840        .21191E-03   -.97484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4518e-10
Minuit parameter uncertainties:
  1  7.03308
  2  4.98484e-06
  3  3.8919e-06
  4  14.3937
  5  1.69484e-06
  6  9.31216
  7  1.50545
  8  3.29839e-05
  9  34.8392
  10  4.84415
  11  0.892791
  12  0.625481
  13  8.0437e-07
  14  12.1324
  15  2.49209
  16  17.2326
  17  2.81148e-06
  18  1.97067e-07
  19  2.66999e-07
  20  42.5817
  21  0.000205421
  22  0.20149
  23  0.148471
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  4.088e+00  4.844e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.588e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  6.589e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  8.619e-01  1.485e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  1.057e+00  2.015e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.01
Ra Dec: 122.330 40.895
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 3.39e-08 +/- 4.01e-08
Energy Flux (Fixed Index): 8.99e-06 +/- 1.07e-05

TS (Fixed Index): 1.01
Ra Dec: 122.330 40.895
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/225272/likelihoodResults_253843201_254102401_4FGL_J0809.3+4053_daily_bin56.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) = 6664.35524842
delta logL = 0.256802874027

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6664.35361347
delta logL = 0.258437828721

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5560       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3047       1.0000          .0000       10.000    
     3 'Normalizat'    1.0296       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87467       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6664.354     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      245 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5557        52.796        .63843E-02    .66787E-03
   2  Index         3.3048        6.6207        .15647        .11253E-03
   3  Normalizat    1.0296        .56399E-01    .42205E-01    .53573E-05
   4  Prefactor     .87466        .40783E-01    .44681E-01    .17902E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.55567
  Index      = 3.30481
  Normalizat = 1.0296
  Prefactor  = 0.87466
 **********
 **   18 **HESSE 
 **********

 FCN=   6664.354     FROM HESSE     STATUS=OK            33 CALLS      278 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5557        5.0563        .11165E-03   -1.5388    
   2  Index         3.3048        1.3602        .81667E-02   -.34589    
   3  Normalizat    1.0296        .20195        .25992E-03   -.92045    
   4  Prefactor     .87466        .14912        .21048E-03   -.97032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77176e-08
Minuit parameter uncertainties:
  1  5.05711
  2  1.37989
  3  0.202101
  4  0.149185
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/225272': 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) = 6664.35361346
delta logL = 0.258437836798

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  2.556e+00  5.057e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  3.305e+00  1.380e+00  0.000e+00  1.000e+01 (-1.000e+00)
271        Scale:  6.589e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  8.747e-01  1.492e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  1.030e+00  2.021e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.57
Ra Dec: 122.330 40.895
Photon Index (Free Index): 3.30 +/- 1.38
Photon Flux (Free Index): 5.65e-08 +/- 5.34e-08
Energy Flux (Free Index): 9.96e-06 +/- 9.34e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/225272/cmap_HighResolution_253843201_254102401_4FGL_J0809.3+4053_daily_bin56.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.37e-03', comment='SUCCESS', photon_flux='3.39e-08', energy_flux2='9.96e-06', photon_flux_error='4.01e-08', dlogl='2.58e-01', energy_flux='8.99e-06', photon_flux2='5.65e-08', job_status='DONE', time_completed='2021-08-29 07:44:03.295182', photon_index_error2='1.38', photon_index2='3.30', ts='1.01', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='9.34e-06', EG='1.06', time_epoch_completed='1630248243.3', return_code='0', job_id='225272', GAL2='0.87', EG2='1.03', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='5.34e-08', ts2='1.57', photon_index='2.59' WHERE bin_id='56' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:44:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 225272: <4FGL_J0809.3+4053_daily_bin56> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin56> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Aug 29 07:30:49 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:30:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 07:30:51 2021
Terminated at Sun Aug 29 07:44:04 2021
Results reported at Sun Aug 29 07:44:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin56 122.33 40.8954 253843201 254102401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0809.3+4053 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   745.15 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             325.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            795 sec.

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

