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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin423
RA = 122.453, Dec = 5.1313
tmin = 348969601, tmax = 349228801
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='250292', job_status='RUN', time_executed='2021-08-29 08:53:21.596525', time_epoch_executed='1630252401.6' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='423'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250292

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250292/ft1_4FGL_J0809.8+0507_daily_bin423.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250292/ft2_4FGL_J0809.8+0507_daily_bin423.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250292/ft1_4FGL_J0809.8+0507_daily_bin423.fits outfile=/scratch/kocevski/250292/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin423.fits ra=122.453 dec=5.1313 rad=12.0 tmin=348969601.0 tmax=349228801.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.93
user 3.52
sys 0.39

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/250292/ft2_4FGL_J0809.8+0507_daily_bin423.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/250292/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin423.fits evtable="EVENTS" outfile="/scratch/kocevski/250292/ft1_filtered_4FGL_J0809.8+0507_daily_bin423.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.67
user 0.33
sys 0.33

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250292/ft1_filtered_4FGL_J0809.8+0507_daily_bin423.fits" evtable="EVENTS" scfile=/scratch/kocevski/250292/ft2_4FGL_J0809.8+0507_daily_bin423.fits sctable="SC_DATA" outfile=/scratch/kocevski/250292/ltcube_348969601_349228801_4FGL_J0809.8+0507_daily_bin423.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/250292/ft2_4FGL_J0809.8+0507_daily_bin423.fits
.....................!
real 12.23
user 11.64
sys 0.52

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250292/ft1_filtered_4FGL_J0809.8+0507_daily_bin423.fits evtable="EVENTS" scfile=/scratch/kocevski/250292/ft2_4FGL_J0809.8+0507_daily_bin423.fits sctable="SC_DATA" expcube=/scratch/kocevski/250292/ltcube_348969601_349228801_4FGL_J0809.8+0507_daily_bin423.fits outfile=/scratch/kocevski/250292/expmap_348969601_349228801_4FGL_J0809.8+0507_daily_bin423.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/250292/ltcube_348969601_349228801_4FGL_J0809.8+0507_daily_bin423.fits
.....................!
real 191.74
user 187.27
sys 4.12

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/250292/ft1_filtered_4FGL_J0809.8+0507_daily_bin423.fits scfile=/scratch/kocevski/250292/ft2_4FGL_J0809.8+0507_daily_bin423.fits outfile=/scratch/kocevski/250292/cmap_348969601_349228801_4FGL_J0809.8+0507_daily_bin423.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.71
user 0.38
sys 0.32

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250292/ft1_filtered_4FGL_J0809.8+0507_daily_bin423.fits scfile=/scratch/kocevski/250292/ft2_4FGL_J0809.8+0507_daily_bin423.fits outfile=/scratch/kocevski/250292/cmap_HighResolution_348969601_349228801_4FGL_J0809.8+0507_daily_bin423.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.73
user 0.38
sys 0.32

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.6802       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13392E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    12.787       1.0000         .10000E-03   10000.    
    12 'norm      '    .22049       1.0000         .10000E-03   10000.    
    13 'norm      '    20.091       1.0000         .10000E-03   10000.    
    14 'norm      '    7.0149       1.0000         .10000E-03   10000.    
    15 'Prefactor '    35.535       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .95659       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.498       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0881       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .89651       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=   6859.640     FROM MIGRAD    STATUS=CONVERGED    440 CALLS     2250 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.253        .13679E-04** at limit **
   2  Prefactor     .10000E-03    50.296       -.14719E-04** at limit **
   3  norm          .10000E-03    .56449        .80734E-07** at limit **
   4  Prefactor     .10000E-03    11.754       -.99378E-05** at limit **
   5  Prefactor     .10000E-03    1.0030       -.79829E-07** at limit **
   6  norm          .10000E-03    11.806        .10564E-04** at limit **
   7  Prefactor     7.6805        9.7163       -.81277E-06   -.23735E-03
   8  Prefactor     .10000E-03    27.291       -.43863E-05** at limit **
   9  Prefactor     .10000E-03    2.2171        .18800E-06** at limit **
  10  Prefactor     .10000E-03    32.632        .89869E-05** at limit **
  11  norm          12.787        9.7292       -.16778E-06   -.10759E-02
  12  norm          .21656        1.1394       -.28955E-06   -.99087E-03
  13  norm          20.084        24.262       -.12590E-04   -.13571E-03
  14  norm          7.0157        4.3536       -.49050E-06   -.26934E-03
  15  Prefactor     35.570        46.335        .44733E-04   -.14788E-04
  16  Prefactor     .10001E-03    27.094       -.55981E-05** at limit **
  17  norm          .95700        .97890       -.18478E-06   -.15469E-02
  18  norm          .10000E-03    1.7654        .98985E-07** at limit **
  19  Prefactor     29.502        28.480        .32214E-05   -.66096E-05
  20  Normalizat    1.0877        .18945       -.70966E-05    .38138E-03
  21  Prefactor     .89677        .12107        .24730E-05   -.39075E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.68049
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.7866
  norm       = 0.216561
  norm       = 20.0843
  norm       = 7.01574
  Prefactor  = 35.5702
  Prefactor  = 0.000100006
  norm       = 0.957002
  norm       = 0.0001
  Prefactor  = 29.502
  Normalizat = 1.08774
  Prefactor  = 0.896774
 **********
 **   18 **HESSE 
 **********

 FCN=   6859.640     FROM HESSE     STATUS=OK           313 CALLS     2563 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    50.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .98433        .12000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.0102        .80969E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    11.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.6805        9.7212        .14470E-03   -1.5154    
   8  Prefactor     .10000E-03    27.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.2255        .12042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    32.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          12.787        9.7470        .56008E-03   -1.4993    
  12  norm          .21656        2.2463        .17068E-02   -1.5615    
  13  norm          20.084        24.339        .89357E-04   -1.4811    
  14  norm          7.0157        4.3507        .13004E-03   -1.5178    
  15  Prefactor     35.570        46.276        .67228E-04   -1.4514    
  16  Prefactor     .10001E-03    27.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .95700        .95094        .78352E-04   -1.5512    
  18  norm          .10000E-03    1.7692        .10747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     29.502        28.491        .73768E-04   -1.4621    
  20  Normalizat    1.0877        .22145        .27387E-03   -.90146    
  21  Prefactor     .89677        .14187        .20195E-03   -.96254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.39145e-09
Minuit parameter uncertainties:
  1  2.43137e-05
  2  0.000169863
  3  1.65403e-05
  4  1.66237e-05
  5  2.07243e-06
  6  1.02211e-05
  7  9.72319
  8  1.14323e-06
  9  5.72151e-06
  10  2.049e-05
  11  9.74821
  12  1.39467
  13  24.3507
  14  4.35091
  15  46.3224
  16  0.000843929
  17  0.950956
  18  3.36937e-06
  19  28.5042
  20  0.221635
  21  0.141931
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  2.008e+01  2.435e+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.968e-01  1.419e-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.088e+00  2.216e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.01
Ra Dec: 122.453 5.131
Photon Index (Fixed Index): 2.82 +/- 0.00
Photon Flux (Fixed Index): 3.22e-08 +/- 3.91e-08
Energy Flux (Fixed Index): 8.48e-06 +/- 1.03e-05

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

Saving results to:
/scratch/kocevski/250292/likelihoodResults_348969601_349228801_4FGL_J0809.8+0507_daily_bin423.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) = 6857.2010617
delta logL = 2.43890576422

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6857.16176263
delta logL = 2.47820483658

Fit tolerance = 1e-08

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

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

 FCN=   6857.162     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      245 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.489        6.6622        .29514E-02    .47932E-02
   2  alpha         5.0000        .73592        .46427    ** at limit **
   3  Normalizat    .94268        .18381        .65731E-01    .57167E-05
   4  Prefactor     .95971        .12124        .45764E-01   -.56766E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 11.4889
  alpha      = 5
  Normalizat = 0.942676
  Prefactor  = 0.959711
 **********
 **   18 **HESSE 
 **********

 FCN=   6857.162     FROM HESSE     STATUS=OK            31 CALLS      276 TOTAL
                     EDM=   .31E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.489        5.6585        .59028E-03   -1.5030    
   2  alpha         5.0000        1.0216        .51254E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .94268        .21619        .29075E-03   -.94976    
   4  Prefactor     .95971        .14275        .19587E-03   -.94085    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.07673e-13
Minuit parameter uncertainties:
  1  5.65879
  2  1.61783e-07
  3  0.216391
  4  0.142802
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250292': 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) = 6857.16175121
delta logL = 2.47821625531

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.149e+01  5.659e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  5.000e+00  1.618e-07  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.597e-01  1.428e-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.427e-01  2.164e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.57
Ra Dec: 122.453 5.131
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.43e-07 +/- 7.05e-08
Energy Flux (Free Index): 2.25e-05 +/- 1.11e-05

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/250292/cmap_HighResolution_348969601_349228801_4FGL_J0809.8+0507_daily_bin423.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.98e-05', comment='SUCCESS', photon_flux='3.22e-08', energy_flux2='2.25e-05', photon_flux_error='3.91e-08', dlogl='2.48e+00', energy_flux='8.48e-06', photon_flux2='1.43e-07', job_status='DONE', time_completed='2021-08-29 09:04:05.825224', photon_index_error2='0.00', photon_index2='5.00', ts='1.01', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.13e-07', energy_flux_error2='1.11e-05', EG='1.09', time_epoch_completed='1630253045.83', return_code='0', job_id='250292', GAL2='0.96', EG2='0.94', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='7.05e-08', ts2='6.57', photon_index='2.82' WHERE bin_id='423' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:04:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 250292: <4FGL_J0809.8+0507_daily_bin423> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin423> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 29 08:50:48 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 08:50:50 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:50:50 2021
Terminated at Sun Aug 29 09:04:06 2021
Results reported at Sun Aug 29 09:04:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin423 122.453 5.1313 348969601 349228801 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 :                                   646.50 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             285.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            798 sec.

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

