/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 234 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.8+0507_daily_bin395
RA = 122.453, Dec = 5.1313
tmin = 341712001, tmax = 341971201
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='250248', job_status='RUN', time_executed='2021-08-29 08:55:55.405995', time_epoch_executed='1630252555.41' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='395'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250248

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250248/ft1_4FGL_J0809.8+0507_daily_bin395.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250248/ft2_4FGL_J0809.8+0507_daily_bin395.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250248/ft1_4FGL_J0809.8+0507_daily_bin395.fits outfile=/scratch/kocevski/250248/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin395.fits ra=122.453 dec=5.1313 rad=12.0 tmin=341712001.0 tmax=341971201.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 7.84
user 3.18
sys 4.53

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/250248/ft2_4FGL_J0809.8+0507_daily_bin395.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/250248/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin395.fits evtable="EVENTS" outfile="/scratch/kocevski/250248/ft1_filtered_4FGL_J0809.8+0507_daily_bin395.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 5.59
user 0.34
sys 5.22

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250248/ft1_filtered_4FGL_J0809.8+0507_daily_bin395.fits" evtable="EVENTS" scfile=/scratch/kocevski/250248/ft2_4FGL_J0809.8+0507_daily_bin395.fits sctable="SC_DATA" outfile=/scratch/kocevski/250248/ltcube_341712001_341971201_4FGL_J0809.8+0507_daily_bin395.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/250248/ft2_4FGL_J0809.8+0507_daily_bin395.fits
.....................!
real 16.89
user 11.66
sys 5.18

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250248/ft1_filtered_4FGL_J0809.8+0507_daily_bin395.fits evtable="EVENTS" scfile=/scratch/kocevski/250248/ft2_4FGL_J0809.8+0507_daily_bin395.fits sctable="SC_DATA" expcube=/scratch/kocevski/250248/ltcube_341712001_341971201_4FGL_J0809.8+0507_daily_bin395.fits outfile=/scratch/kocevski/250248/expmap_341712001_341971201_4FGL_J0809.8+0507_daily_bin395.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/250248/ltcube_341712001_341971201_4FGL_J0809.8+0507_daily_bin395.fits
.....................!
real 195.94
user 184.77
sys 10.75

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/250248/ft1_filtered_4FGL_J0809.8+0507_daily_bin395.fits scfile=/scratch/kocevski/250248/ft2_4FGL_J0809.8+0507_daily_bin395.fits outfile=/scratch/kocevski/250248/cmap_341712001_341971201_4FGL_J0809.8+0507_daily_bin395.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 4.80
user 0.37
sys 4.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250248/ft1_filtered_4FGL_J0809.8+0507_daily_bin395.fits scfile=/scratch/kocevski/250248/ft2_4FGL_J0809.8+0507_daily_bin395.fits outfile=/scratch/kocevski/250248/cmap_HighResolution_341712001_341971201_4FGL_J0809.8+0507_daily_bin395.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 4.83
user 0.39
sys 4.40

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    71.517       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.186       1.0000         .10000E-03   10000.    
     3 'norm      '    2.9812       1.0000         .10000E-03   10000.    
     4 'Prefactor '    43.726       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .88652E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    9.8497       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .25546E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.423       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    29.830       1.0000         .10000E-03   10000.    
    14 'norm      '    5.4702       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.271       1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.802       1.0000         .10000E-03   10000.    
    17 'norm      '    1.9738       1.0000         .10000E-03   10000.    
    18 'norm      '    10.696       1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.574       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0368       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .81910       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=   6162.099     FROM MIGRAD    STATUS=CONVERGED    458 CALLS     2249 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     71.513        65.330       -.29689E-05    .35640E-05
   2  Prefactor     13.176        38.230       -.87515E-05   -.13988E-04
   3  norm          2.9801        2.3603        .41583E-06   -.33421E-03
   4  Prefactor     43.720        31.639       -.10006E-05    .29523E-05
   5  Prefactor     .57139E-01    1.4614        .68759E-06   -.79280E-03
   6  norm          9.8633        14.778       -.53407E-05   -.80625E-04
   7  Prefactor     .10000E-03    7.5485        .10812E-06** at limit **
   8  Prefactor     .10000E-03    258.50       -.42229E-04** at limit **
   9  Prefactor     .10000E-03    9.9878        .42345E-07** at limit **
  10  Prefactor     .10000E-03    34.710       -.59519E-05** at limit **
  11  norm          10.417        9.6697       -.27687E-05   -.18793E-04
  12  norm          .10000E-03    .86255        .91049E-07** at limit **
  13  norm          29.827        22.465        .30520E-05    .20228E-04
  14  norm          5.4684        4.5184        .58540E-07   -.22097E-03
  15  Prefactor     13.265        29.272        .25956E-05   -.33350E-04
  16  Prefactor     25.788        18.831        .10826E-04   -.63119E-04
  17  norm          1.9734        .96300       -.20586E-07   -.18039E-03
  18  norm          10.692        7.5775       -.27285E-05   -.64448E-04
  19  Prefactor     24.560        28.901        .16066E-05   -.19442E-04
  20  Normalizat    1.0374        .20098       -.42218E-05    .65694E-04
  21  Prefactor     .81892        .13268        .21660E-05   -.32940E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 71.5127
  Prefactor  = 13.1757
  norm       = 2.98005
  Prefactor  = 43.7195
  Prefactor  = 0.0571394
  norm       = 9.86327
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.417
  norm       = 0.0001
  norm       = 29.8265
  norm       = 5.4684
  Prefactor  = 13.2652
  Prefactor  = 25.7879
  norm       = 1.97338
  norm       = 10.6924
  Prefactor  = 24.5602
  Normalizat = 1.03744
  Prefactor  = 0.818925
 **********
 **   18 **HESSE 
 **********

 FCN=   6162.099     FROM HESSE     STATUS=OK           323 CALLS     2572 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     71.513        65.441        .47471E-04   -1.4015    
   2  Prefactor     13.176        38.196        .11031E-03   -1.4982    
   3  norm          2.9801        2.3461        .97707E-04   -1.5363    
   4  Prefactor     43.720        31.683        .60628E-04   -1.4385    
   5  Prefactor     .57139E-01    36.846        .17669E-02   -1.5660    
   6  norm          9.8633        14.807        .12768E-03   -1.5080    
   7  Prefactor     .10000E-03    7.5656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    259.55        .19996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.238        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    34.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.417        9.6832        .12411E-03   -1.5062    
  12  norm          .10000E-03    .87254        .71185E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          29.827        22.475        .73357E-04   -1.4615    
  14  norm          5.4684        4.5142        .14451E-03   -1.5240    
  15  Prefactor     13.265        29.276        .10995E-03   -1.4979    
  16  Prefactor     25.788        18.846        .78863E-04   -1.4692    
  17  norm          1.9734        .96391        .51822E-04   -1.5427    
  18  norm          10.692        7.5944        .12251E-03   -1.5054    
  19  Prefactor     24.560        28.933        .80807E-04   -1.4716    
  20  Normalizat    1.0374        .23357        .27797E-03   -.91786    
  21  Prefactor     .81892        .15330        .21304E-03   -.99034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.55943e-09
Minuit parameter uncertainties:
  1  65.5065
  2  38.2665
  3  2.34617
  4  31.6947
  5  2.90123
  6  14.8124
  7  4.3143e-05
  8  0.000179823
  9  8.35968e-05
  10  0.000151898
  11  9.68466
  12  2.73285e-06
  13  22.4814
  14  4.51444
  15  29.308
  16  18.8503
  17  0.963921
  18  7.59509
  19  28.9493
  20  0.233797
  21  0.153378
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  2.983e+01  2.248e+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.189e-01  1.534e-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.037e+00  2.338e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.23
Ra Dec: 122.453 5.131
Photon Index (Fixed Index): 2.82 +/- 0.00
Photon Flux (Fixed Index): 4.78e-08 +/- 3.61e-08
Energy Flux (Fixed Index): 1.26e-05 +/- 9.50e-06

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

Saving results to:
/scratch/kocevski/250248/likelihoodResults_341712001_341971201_4FGL_J0809.8+0507_daily_bin395.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) = 6162.09925249
delta logL = 0.000103043212221

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6162.09923092
delta logL = 0.000124618855807

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    29.741       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8349       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0367       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81926       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=   6162.099     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      260 TOTAL
                     EDM=   .48E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          29.729        23.217        .73466E-04   -.57256E-05
   2  alpha         2.8340        1.1686        .31646E-01    .43235E-05
   3  Normalizat    1.0368        .21637        .27804E-03    .44568E-05
   4  Prefactor     .81920        .14712        .21301E-03    .64046E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 29.7291
  alpha      = 2.834
  Normalizat = 1.0368
  Prefactor  = 0.8192
 **********
 **   18 **HESSE 
 **********

 FCN=   6162.099     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .29E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          29.729        22.815        .29387E-05   -1.4617    
   2  alpha         2.8340        1.1486        .12658E-02    .13400    
   3  Normalizat    1.0368        .21643        .11122E-04   -.91808    
   4  Prefactor     .81920        .14717        .85204E-05   -.99024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86106e-13
Minuit parameter uncertainties:
  1  22.8212
  2  1.19427
  3  0.216617
  4  0.147245
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250248': 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) = 6162.09923024
delta logL = 0.000125296853184

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  2.973e+01  2.282e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.834e+00  1.194e+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:  8.192e-01  1.472e-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.037e+00  2.166e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.23
Ra Dec: 122.453 5.131
Photon Index (Free Index): 2.83 +/- 1.19
Photon Flux (Free Index): 4.83e-08 +/- 4.67e-08
Energy Flux (Free Index): 1.26e-05 +/- 9.64e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/250248/cmap_HighResolution_341712001_341971201_4FGL_J0809.8+0507_daily_bin395.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.31e-05', comment='SUCCESS', photon_flux='4.78e-08', energy_flux2='1.26e-05', photon_flux_error='3.61e-08', dlogl='1.25e-04', energy_flux='1.26e-05', photon_flux2='4.83e-08', job_status='DONE', time_completed='2021-08-29 09:07:06.799809', photon_index_error2='1.19', photon_index2='2.83', ts='3.23', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='9.64e-06', EG='1.04', time_epoch_completed='1630253226.8', return_code='0', job_id='250248', GAL2='0.82', EG2='1.04', return_code2='0', energy_flux_error='9.50e-06', photon_flux_error2='4.67e-08', ts2='3.23', photon_index='2.82' WHERE bin_id='395' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:07:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 250248: <4FGL_J0809.8+0507_daily_bin395> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin395 122.453 5.1313 341712001 341971201 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 :                                   737.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            984 sec.

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

