/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 204 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 = 7484
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0809.3+4053_daily_bin129
RA = 122.33, Dec = 40.8954
tmin = 272764801, tmax = 273024001
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='226477', job_status='RUN', time_executed='2021-08-29 07:39:20.339379', time_epoch_executed='1630247960.34' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='129'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/226477

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/226477/ft1_4FGL_J0809.3+4053_daily_bin129.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/226477/ft2_4FGL_J0809.3+4053_daily_bin129.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/226477/ft1_4FGL_J0809.3+4053_daily_bin129.fits outfile=/scratch/kocevski/226477/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin129.fits ra=122.33 dec=40.8954 rad=12.0 tmin=272764801.0 tmax=273024001.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.35
user 1.55
sys 0.78

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/226477/ft2_4FGL_J0809.3+4053_daily_bin129.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/226477/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin129.fits evtable="EVENTS" outfile="/scratch/kocevski/226477/ft1_filtered_4FGL_J0809.3+4053_daily_bin129.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.16
user 0.32
sys 0.73

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/226477/ft1_filtered_4FGL_J0809.3+4053_daily_bin129.fits" evtable="EVENTS" scfile=/scratch/kocevski/226477/ft2_4FGL_J0809.3+4053_daily_bin129.fits sctable="SC_DATA" outfile=/scratch/kocevski/226477/ltcube_272764801_273024001_4FGL_J0809.3+4053_daily_bin129.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/226477/ft2_4FGL_J0809.3+4053_daily_bin129.fits
.....................!
real 13.53
user 12.43
sys 1.04

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/226477/ft1_filtered_4FGL_J0809.3+4053_daily_bin129.fits evtable="EVENTS" scfile=/scratch/kocevski/226477/ft2_4FGL_J0809.3+4053_daily_bin129.fits sctable="SC_DATA" expcube=/scratch/kocevski/226477/ltcube_272764801_273024001_4FGL_J0809.3+4053_daily_bin129.fits outfile=/scratch/kocevski/226477/expmap_272764801_273024001_4FGL_J0809.3+4053_daily_bin129.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/226477/ltcube_272764801_273024001_4FGL_J0809.3+4053_daily_bin129.fits
.....................!
real 192.10
user 185.30
sys 6.29

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/226477/ft1_filtered_4FGL_J0809.3+4053_daily_bin129.fits scfile=/scratch/kocevski/226477/ft2_4FGL_J0809.3+4053_daily_bin129.fits outfile=/scratch/kocevski/226477/cmap_272764801_273024001_4FGL_J0809.3+4053_daily_bin129.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.14
user 0.37
sys 0.69

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/226477/ft1_filtered_4FGL_J0809.3+4053_daily_bin129.fits scfile=/scratch/kocevski/226477/ft2_4FGL_J0809.3+4053_daily_bin129.fits outfile=/scratch/kocevski/226477/cmap_HighResolution_272764801_273024001_4FGL_J0809.3+4053_daily_bin129.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.13
user 0.38
sys 0.75

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/226477/ft1_filtered_4FGL_J0809.3+4053_daily_bin129.fits', '/scratch/kocevski/226477/ft2_4FGL_J0809.3+4053_daily_bin129.fits', expMap='/scratch/kocevski/226477/expmap_272764801_273024001_4FGL_J0809.3+4053_daily_bin129.fits', expCube='/scratch/kocevski/226477/ltcube_272764801_273024001_4FGL_J0809.3+4053_daily_bin129.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/226477/Model_4FGL_J0809.3+4053_daily_bin129.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/226477/ft1_filtered_4FGL_J0809.3+4053_daily_bin129.fits
Spacecraft file(s): /scratch/kocevski/226477/ft2_4FGL_J0809.3+4053_daily_bin129.fits
Exposure map: /scratch/kocevski/226477/expmap_272764801_273024001_4FGL_J0809.3+4053_daily_bin129.fits
Exposure cube: /scratch/kocevski/226477/ltcube_272764801_273024001_4FGL_J0809.3+4053_daily_bin129.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/226477/Model_4FGL_J0809.3+4053_daily_bin129.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) = 6745.12103754

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.2227       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.3237       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .70616E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .84389       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.6577       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13606E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .21524E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.3129       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17509E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.467       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.6876       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.667       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.8570       1.0000         .10000E-03   10000.    
    18 'norm      '    17.814       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.310       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .86964       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1854       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=   6745.039     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2265 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.8712        .12688E-07** at limit **
   2  Prefactor     6.2701        10.869       -.10043E-05    .59900E-04
   3  Prefactor     7.3544        24.825        .27195E-05   -.13742E-04
   4  Prefactor     .10000E-03    3.8881       -.76251E-07** at limit **
   5  Prefactor     .10000E-03    12.915       -.79791E-07** at limit **
   6  norm          .10000E-03    3.2383        .44471E-07** at limit **
   7  norm          .84385        1.1340        .16717E-08    .15661E-04
   8  Prefactor     9.6667        7.9136        .64958E-06    .22194E-03
   9  Prefactor     .10000E-03    24.268       -.17093E-05** at limit **
  10  Prefactor     .10002E-03    2.6803       -.15444E-05** at limit **
  11  norm          .10000E-03    .71195        .89043E-08** at limit **
  12  norm          1.3133        .66655       -.64081E-07    .15198E-02
  13  Prefactor     .10000E-03    39.300       -.90223E-06** at limit **
  14  Prefactor     11.386        18.361        .12035E-05    .19553E-03
  15  Prefactor     2.6958        3.8020        .25324E-05    .28280E-03
  16  Prefactor     12.841        23.694        .24981E-05   -.39828E-05
  17  Prefactor     4.8062        6.1676       -.21182E-06    .14041E-04
  18  norm          17.817        7.6159        .37320E-06   -.51325E-04
  19  Prefactor     .10000E-03    1.2292       -.20508E-07** at limit **
  20  Prefactor     13.483        53.818       -.68540E-05    .17196E-04
  21  Prefactor     .10000E-03    2.2278        .25684E-06** at limit **
  22  Normalizat    .86959        .18972       -.27150E-06    .32004E-03
  23  Prefactor     1.1853        .14237       -.33346E-06    .33412E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 6.27008
  Prefactor  = 7.35435
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.84385
  Prefactor  = 9.66668
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  norm       = 0.0001
  norm       = 1.31331
  Prefactor  = 0.0001
  Prefactor  = 11.3863
  Prefactor  = 2.69577
  Prefactor  = 12.8406
  Prefactor  = 4.80616
  norm       = 17.8167
  Prefactor  = 0.0001
  Prefactor  = 13.4831
  Prefactor  = 0.0001
  Normalizat = 0.86959
  Prefactor  = 1.18532
 **********
 **   18 **HESSE 
 **********

 FCN=   6745.039     FROM HESSE     STATUS=OK           372 CALLS     2637 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.9249        .17698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.2701        10.860        .16093E-03   -1.5207    
   3  Prefactor     7.3544        24.784        .14821E-03   -1.5166    
   4  Prefactor     .10000E-03    3.9000        .15813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.023        .20975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.2440        .14433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .84385        1.1336        .50410E-04   -1.5524    
   8  Prefactor     9.6667        7.9083        .12895E-03   -1.5086    
   9  Prefactor     .10000E-03    24.333        .20546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10002E-03    18.378        .24294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .72301        .67666E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.3133        .65366        .44179E-04   -1.5479    
  13  Prefactor     .10000E-03    39.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.386        18.345        .11830E-03   -1.5033    
  15  Prefactor     2.6958        3.8159        .77052E-03   -1.5380    
  16  Prefactor     12.841        23.594        .11255E-03   -1.4991    
  17  Prefactor     4.8062        6.1623        .18253E-03   -1.5269    
  18  norm          17.817        7.6111        .94894E-04   -1.4864    
  19  Prefactor     .10000E-03    1.2365        .88897E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.483        53.693        .10979E-03   -1.4973    
  21  Prefactor     .10000E-03    2.2439        .11966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .86959        .21523        .30253E-03   -.97537    
  23  Prefactor     1.1853        .16278        .20226E-03   -.86784    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23777e-09
Minuit parameter uncertainties:
  1  2.38863e-06
  2  10.8631
  3  24.8189
  4  6.10204e-06
  5  1.56947e-05
  6  2.06636e-06
  7  1.13367
  8  7.90919
  9  1.16829e-05
  10  0.00117321
  11  1.7457e-07
  12  0.653662
  13  9.37922e-05
  14  18.3538
  15  3.81621
  16  23.6112
  17  6.16311
  18  7.61149
  19  1.35361e-06
  20  53.8861
  21  1.41922e-05
  22  0.215441
  23  0.162851
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  1.173e-03  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:  1.185e+00  1.629e-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:  8.696e-01  2.154e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 122.330 40.895
Photon Flux Upper Limit: 9.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/226477/likelihoodResults_272764801_273024001_4FGL_J0809.3+4053_daily_bin129.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) = 6745.03951053
delta logL = -0.000258507539002

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6745.03925255
delta logL = -5.30341822014e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19870E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7014       1.0000          .0000       10.000    
     3 'Normalizat'    .86987       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1851       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=   6745.036     FROM MIGRAD    STATUS=CONVERGED    134 CALLS      314 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19734        4.1742        .58768E-01    .46303E-03
   2  Index         3.1600        1.8364        .50000        .12659E-04
   3  Normalizat    .86654        .90276E-02    .68483E-01    .79718E-04
   4  Prefactor     1.1861        .69641E-02    .34992E-01    .11095E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.197344
  Index      = 3.15999
  Normalizat = 0.866537
  Prefactor  = 1.18612
 **********
 **   18 **HESSE 
 **********

 FCN=   6745.036     FROM HESSE     STATUS=OK            33 CALLS      347 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19734        18.920        .17206E-02   -1.5619    
   2  Index         3.1600        6.5668        .17097E-01   -.37686    
   3  Normalizat    .86654        .21508        .30299E-03   -.97646    
   4  Prefactor     1.1861        .16236        .20219E-03   -.86759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77554e-08
Minuit parameter uncertainties:
  1  3.8649
  2  5.07265
  3  0.215289
  4  0.162425
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/226477': 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) = 6745.03637907
delta logL = 0.00287294893769

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.973e-01  3.865e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  3.160e+00  5.073e+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:  1.186e+00  1.624e-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:  8.665e-01  2.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 122.330 40.895

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/226477/cmap_HighResolution_272764801_273024001_4FGL_J0809.3+4053_daily_bin129.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.34e-03', job_status='DONE', photon_flux_upper_limit='9.39e-08', time_completed='2021-08-29 07:51:10.633021', job_id='226477', GAL2='1.19', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1630248670.63', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='2.87e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='129' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:51:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 226477: <4FGL_J0809.3+4053_daily_bin129> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin129> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 29 07:35:30 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:35:32 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:35:32 2021
Terminated at Sun Aug 29 07:51:11 2021
Results reported at Sun Aug 29 07:51:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin129 122.33 40.8954 272764801 273024001 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 :                                   718.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            941 sec.

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

