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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin586
RA = 122.453, Dec = 5.1313
tmin = 391219201, tmax = 391478401
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='251604', job_status='RUN', time_executed='2021-08-29 08:58:40.676679', time_epoch_executed='1630252720.68' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='586'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251604

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251604/ft1_4FGL_J0809.8+0507_daily_bin586.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251604/ft2_4FGL_J0809.8+0507_daily_bin586.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/251604/ft1_4FGL_J0809.8+0507_daily_bin586.fits outfile=/scratch/kocevski/251604/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin586.fits ra=122.453 dec=5.1313 rad=12.0 tmin=391219201.0 tmax=391478401.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 3.67
user 3.19
sys 0.45

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/251604/ft2_4FGL_J0809.8+0507_daily_bin586.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/251604/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin586.fits evtable="EVENTS" outfile="/scratch/kocevski/251604/ft1_filtered_4FGL_J0809.8+0507_daily_bin586.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.79
user 0.34
sys 0.40

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/251604/ft1_filtered_4FGL_J0809.8+0507_daily_bin586.fits" evtable="EVENTS" scfile=/scratch/kocevski/251604/ft2_4FGL_J0809.8+0507_daily_bin586.fits sctable="SC_DATA" outfile=/scratch/kocevski/251604/ltcube_391219201_391478401_4FGL_J0809.8+0507_daily_bin586.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/251604/ft2_4FGL_J0809.8+0507_daily_bin586.fits
.....................!
real 12.42
user 11.75
sys 0.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251604/ft1_filtered_4FGL_J0809.8+0507_daily_bin586.fits evtable="EVENTS" scfile=/scratch/kocevski/251604/ft2_4FGL_J0809.8+0507_daily_bin586.fits sctable="SC_DATA" expcube=/scratch/kocevski/251604/ltcube_391219201_391478401_4FGL_J0809.8+0507_daily_bin586.fits outfile=/scratch/kocevski/251604/expmap_391219201_391478401_4FGL_J0809.8+0507_daily_bin586.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/251604/ltcube_391219201_391478401_4FGL_J0809.8+0507_daily_bin586.fits
.....................!
real 192.91
user 187.40
sys 5.14

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/251604/ft1_filtered_4FGL_J0809.8+0507_daily_bin586.fits scfile=/scratch/kocevski/251604/ft2_4FGL_J0809.8+0507_daily_bin586.fits outfile=/scratch/kocevski/251604/cmap_391219201_391478401_4FGL_J0809.8+0507_daily_bin586.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 0.82
user 0.38
sys 0.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/251604/ft1_filtered_4FGL_J0809.8+0507_daily_bin586.fits scfile=/scratch/kocevski/251604/ft2_4FGL_J0809.8+0507_daily_bin586.fits outfile=/scratch/kocevski/251604/cmap_HighResolution_391219201_391478401_4FGL_J0809.8+0507_daily_bin586.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 0.87
user 0.38
sys 0.41

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/251604/ft1_filtered_4FGL_J0809.8+0507_daily_bin586.fits', '/scratch/kocevski/251604/ft2_4FGL_J0809.8+0507_daily_bin586.fits', expMap='/scratch/kocevski/251604/expmap_391219201_391478401_4FGL_J0809.8+0507_daily_bin586.fits', expCube='/scratch/kocevski/251604/ltcube_391219201_391478401_4FGL_J0809.8+0507_daily_bin586.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/251604/Model_4FGL_J0809.8+0507_daily_bin586.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/251604/ft1_filtered_4FGL_J0809.8+0507_daily_bin586.fits
Spacecraft file(s): /scratch/kocevski/251604/ft2_4FGL_J0809.8+0507_daily_bin586.fits
Exposure map: /scratch/kocevski/251604/expmap_391219201_391478401_4FGL_J0809.8+0507_daily_bin586.fits
Exposure cube: /scratch/kocevski/251604/ltcube_391219201_391478401_4FGL_J0809.8+0507_daily_bin586.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/251604/Model_4FGL_J0809.8+0507_daily_bin586.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) = 8011.65355223

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    63.031       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.445       1.0000         .10000E-03   10000.    
     3 'norm      '    5.6374       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12856E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    8.8366       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10515E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.2931       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    29.120       1.0000         .10000E-03   10000.    
    12 'norm      '    2.9122       1.0000         .10000E-03   10000.    
    13 'norm      '    23.383       1.0000         .10000E-03   10000.    
    14 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.4375       1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2362       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .89241       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=   8011.651     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     2217 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     63.050        52.958        .20635E-04    .43084E-05
   2  Prefactor     19.423        32.100       -.31177E-04   -.18544E-04
   3  norm          5.6385        2.2030        .30198E-06   -.19776E-03
   4  Prefactor     .10000E-03    12.384        .72806E-05** at limit **
   5  Prefactor     .10000E-03    1.7467        .22090E-06** at limit **
   6  norm          8.8345        12.586       -.13281E-05   -.53129E-03
   7  Prefactor     .10000E-03    18.708        .19347E-04** at limit **
   8  Prefactor     .10000E-03    46.827       -.36996E-05** at limit **
   9  Prefactor     8.2932        5.7164        .64475E-07    .55969E-04
  10  Prefactor     .10000E-03    12.904       -.47028E-05** at limit **
  11  norm          29.119        11.851       -.46806E-07   -.85981E-05
  12  norm          2.9124        2.1703       -.19985E-07   -.19142E-03
  13  norm          23.379        19.992       -.17035E-05    .20651E-04
  14  norm          .10000E-03    1.6304       -.20847E-07** at limit **
  15  Prefactor     .10000E-03    17.385       -.48024E-05** at limit **
  16  Prefactor     .10000E-03    4.8661        .32481E-06** at limit **
  17  norm          1.4373        .84964       -.14049E-07   -.12496E-03
  18  norm          .10000E-03    6.6665       -.41326E-06** at limit **
  19  Prefactor     .10000E-03    16.489       -.15249E-04** at limit **
  20  Normalizat    1.2368        .18535        .11224E-05   -.23271E-03
  21  Prefactor     .89199        .12783       -.12990E-06   -.18742E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 63.0502
  Prefactor  = 19.4226
  norm       = 5.63852
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.83452
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.29318
  Prefactor  = 0.0001
  norm       = 29.1194
  norm       = 2.91244
  norm       = 23.3793
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.43726
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.23681
  Prefactor  = 0.891994
 **********
 **   18 **HESSE 
 **********

 FCN=   8011.651     FROM HESSE     STATUS=OK           315 CALLS     2532 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     63.050        53.241        .50544E-04   -1.4118    
   2  Prefactor     19.423        32.145        .90830E-04   -1.4826    
   3  norm          5.6385        2.2024        .77999E-04   -1.5233    
   4  Prefactor     .10000E-03    12.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.4367        .22753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.8345        12.554        .13484E-03   -1.5113    
   7  Prefactor     .10000E-03    19.090        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    46.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.2932        5.7146        .13921E-03   -1.5132    
  10  Prefactor     .10000E-03    12.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          29.119        11.848        .74244E-04   -1.4628    
  12  norm          2.9124        2.1698        .10992E-03   -1.5367    
  13  norm          23.379        20.016        .82836E-04   -1.4741    
  14  norm          .10000E-03    1.6465        .11156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.8818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.4373        .84931        .60937E-04   -1.5468    
  18  norm          .10000E-03    6.8251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2368        .21635        .28493E-03   -.85473    
  21  Prefactor     .89199        .15030        .22439E-03   -.96421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.49382e-10
Minuit parameter uncertainties:
  1  53.2815
  2  32.1738
  3  2.20247
  4  8.21497e-06
  5  6.28136e-05
  6  12.5581
  7  0.000147472
  8  1.21625e-05
  9  5.71497
  10  2.51515e-05
  11  11.8485
  12  2.16985
  13  20.0218
  14  2.15263e-06
  15  1.45188e-05
  16  2.23605e-06
  17  0.849312
  18  6.57046e-06
  19  1.22405e-07
  20  0.216512
  21  0.150374
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  2.338e+01  2.002e+01  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.920e-01  1.504e-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:  1.237e+00  2.165e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.19
Ra Dec: 122.453 5.131
Photon Index (Fixed Index): 2.82 +/- 0.00
Photon Flux (Fixed Index): 3.75e-08 +/- 3.21e-08
Energy Flux (Fixed Index): 9.87e-06 +/- 8.46e-06

TS (Fixed Index): 2.19
Ra Dec: 122.453 5.131
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.86e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/251604/likelihoodResults_391219201_391478401_4FGL_J0809.8+0507_daily_bin586.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) = 8011.4690398
delta logL = 0.181513939906

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8011.46064795
delta logL = 0.189905793141

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.795       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5725       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2149       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90257       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8011.461     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      286 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.818        19.525        .94945E-04    .64782E-03
   2  alpha         3.5737        1.2205        .34390E-02    .51355E-04
   3  Normalizat    1.2155        .21655        .28705E-03    .36373E-03
   4  Prefactor     .90218        .14568        .22325E-03    .54407E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 17.818
  alpha      = 3.57373
  Normalizat = 1.21547
  Prefactor  = 0.902181
 **********
 **   18 **HESSE 
 **********

 FCN=   8011.461     FROM HESSE     STATUS=OK            23 CALLS      309 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.818        19.347        .18989E-04   -1.4863    
   2  alpha         3.5737        1.2104        .13756E-03    .44393    
   3  Normalizat    1.2155        .21672        .57409E-04   -.86126    
   4  Prefactor     .90218        .14579        .44650E-04   -.96065    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.31448e-10
Minuit parameter uncertainties:
  1  19.3536
  2  1.27752
  3  0.216878
  4  0.14585
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251604': 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) = 8011.46063791
delta logL = 0.189915827296

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.782e+01  1.935e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  3.574e+00  1.278e+00  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.022e-01  1.459e-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:  1.215e+00  2.169e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.60
Ra Dec: 122.453 5.131
Photon Index (Free Index): 3.57 +/- 1.28
Photon Flux (Free Index): 5.24e-08 +/- 4.59e-08
Energy Flux (Free Index): 1.09e-05 +/- 8.58e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/251604/cmap_HighResolution_391219201_391478401_4FGL_J0809.8+0507_daily_bin586.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.86e-05', comment='SUCCESS', photon_flux='3.75e-08', energy_flux2='1.09e-05', photon_flux_error='3.21e-08', dlogl='1.90e-01', energy_flux='9.87e-06', photon_flux2='5.24e-08', job_status='DONE', time_completed='2021-08-29 09:10:14.091077', photon_index_error2='1.28', photon_index2='3.57', ts='2.19', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='8.58e-06', EG='1.24', time_epoch_completed='1630253414.09', return_code='0', job_id='251604', GAL2='0.90', EG2='1.22', return_code2='0', energy_flux_error='8.46e-06', photon_flux_error2='4.59e-08', ts2='2.60', photon_index='2.82' WHERE bin_id='586' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:10:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 251604: <4FGL_J0809.8+0507_daily_bin586> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin586> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 29 08:55:34 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 08:55:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 08:55:38 2021
Terminated at Sun Aug 29 09:10:14 2021
Results reported at Sun Aug 29 09:10:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin586 122.453 5.1313 391219201 391478401 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 :                                   697.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            880 sec.

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

