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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin486
RA = 122.453, Dec = 5.1313
tmin = 365299201, tmax = 365558401
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='251444', job_status='RUN', time_executed='2021-08-29 08:57:57.861790', time_epoch_executed='1630252677.86' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='486'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251444

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251444/ft1_4FGL_J0809.8+0507_daily_bin486.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251444/ft2_4FGL_J0809.8+0507_daily_bin486.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/251444/ft1_4FGL_J0809.8+0507_daily_bin486.fits outfile=/scratch/kocevski/251444/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin486.fits ra=122.453 dec=5.1313 rad=12.0 tmin=365299201.0 tmax=365558401.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 4.25
user 3.26
sys 0.92

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/251444/ft1_filtered_4FGL_J0809.8+0507_daily_bin486.fits" evtable="EVENTS" scfile=/scratch/kocevski/251444/ft2_4FGL_J0809.8+0507_daily_bin486.fits sctable="SC_DATA" outfile=/scratch/kocevski/251444/ltcube_365299201_365558401_4FGL_J0809.8+0507_daily_bin486.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/251444/ft2_4FGL_J0809.8+0507_daily_bin486.fits
.....................!
real 12.89
user 11.70
sys 1.14

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251444/ft1_filtered_4FGL_J0809.8+0507_daily_bin486.fits evtable="EVENTS" scfile=/scratch/kocevski/251444/ft2_4FGL_J0809.8+0507_daily_bin486.fits sctable="SC_DATA" expcube=/scratch/kocevski/251444/ltcube_365299201_365558401_4FGL_J0809.8+0507_daily_bin486.fits outfile=/scratch/kocevski/251444/expmap_365299201_365558401_4FGL_J0809.8+0507_daily_bin486.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/251444/ltcube_365299201_365558401_4FGL_J0809.8+0507_daily_bin486.fits
.....................!
real 191.30
user 185.21
sys 5.69

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/251444/ft1_filtered_4FGL_J0809.8+0507_daily_bin486.fits scfile=/scratch/kocevski/251444/ft2_4FGL_J0809.8+0507_daily_bin486.fits outfile=/scratch/kocevski/251444/cmap_365299201_365558401_4FGL_J0809.8+0507_daily_bin486.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 1.35
user 0.38
sys 0.86

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/251444/ft1_filtered_4FGL_J0809.8+0507_daily_bin486.fits scfile=/scratch/kocevski/251444/ft2_4FGL_J0809.8+0507_daily_bin486.fits outfile=/scratch/kocevski/251444/cmap_HighResolution_365299201_365558401_4FGL_J0809.8+0507_daily_bin486.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 1.27
user 0.40
sys 0.85

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    73.067       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.3924       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.1607       1.0000         .10000E-03   10000.    
     6 'norm      '    7.1884       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10348E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0325       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.4433       1.0000         .10000E-03   10000.    
    13 'norm      '    22.802       1.0000         .10000E-03   10000.    
    14 'norm      '    12.784       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12942E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.4420       1.0000         .10000E-03   10000.    
    18 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .70071       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.3945       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=   6029.930     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     2208 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     73.069        55.762        .12684E-05    .88156E-05
   2  Prefactor     .10000E-03    18.137        .80722E-06** at limit **
   3  norm          1.3927        2.2131       -.33202E-06   -.82957E-03
   4  Prefactor     .10000E-03    54.688       -.38401E-04** at limit **
   5  Prefactor     5.1597        3.7905        .96732E-07   -.14867E-03
   6  norm          7.1644        26.162       -.64662E-05   -.68101E-05
   7  Prefactor     .10000E-03    7.7195        .70899E-06** at limit **
   8  Prefactor     .10000E-03    122.87       -.48036E-04** at limit **
   9  Prefactor     3.0313        7.1155       -.51326E-06   -.28231E-03
  10  Prefactor     .10000E-03    10.138       -.26641E-06** at limit **
  11  norm          .10000E-03    2.5249       -.24613E-07** at limit **
  12  norm          2.4436        2.6548       -.99462E-07   -.25074E-03
  13  norm          22.792        24.834        .43645E-06    .19646E-03
  14  norm          12.783        5.7048       -.50609E-07    .57837E-04
  15  Prefactor     .10000E-03    120.89       -.41919E-04** at limit **
  16  Prefactor     .10000E-03    5.7604       -.53993E-07** at limit **
  17  norm          1.4420        .84066       -.63818E-08    .19460E-03
  18  norm          .10000E-03    7.0787       -.32388E-06** at limit **
  19  Prefactor     .10000E-03    75.143        .98078E-04** at limit **
  20  Normalizat    .70087        .22171       -.52418E-07   -.48743E-04
  21  Prefactor     1.3944        .16238        .41468E-06    .10278E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 73.0692
  Prefactor  = 0.0001
  norm       = 1.39268
  Prefactor  = 0.0001
  Prefactor  = 5.15975
  norm       = 7.16442
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.03134
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.44361
  norm       = 22.7922
  norm       = 12.7833
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.44201
  norm       = 0.0001
  Prefactor  = 0.000100004
  Normalizat = 0.700872
  Prefactor  = 1.39443
 **********
 **   18 **HESSE 
 **********

 FCN=   6029.930     FROM HESSE     STATUS=OK           313 CALLS     2521 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     73.069        55.797        .46968E-04   -1.3996    
   2  Prefactor     .10000E-03    18.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.3927        2.1959        .13624E-03   -1.5472    
   4  Prefactor     .10000E-03    54.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.1597        3.7838        .12151E-03   -1.5254    
   6  norm          7.1644        26.110        .14961E-03   -1.5173    
   7  Prefactor     .10000E-03    7.7305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    123.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.0313        7.1001        .23302E-03   -1.5360    
  10  Prefactor     .10000E-03    10.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.5263        .12050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.4436        2.6456        .12723E-03   -1.5395    
  13  norm          22.792        24.822        .83884E-04   -1.4753    
  14  norm          12.783        5.7033        .11203E-03   -1.4993    
  15  Prefactor     .10000E-03    122.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.7746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.4420        .84428        .52557E-04   -1.5468    
  18  norm          .10000E-03    7.2187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    75.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .70087        .24338        .36022E-03   -1.0386    
  21  Prefactor     1.3944        .17983        .19644E-03   -.80541    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.99834e-10
Minuit parameter uncertainties:
  1  55.8372
  2  7.18683e-07
  3  2.19604
  4  0.000144647
  5  3.784
  6  26.1512
  7  4.09426e-05
  8  0.00017501
  9  7.10212
  10  3.17166e-06
  11  4.50626e-07
  12  2.64573
  13  24.8329
  14  5.70357
  15  0.000650884
  16  1.42391e-06
  17  0.844286
  18  2.16626e-06
  19  0.00103226
  20  0.243751
  21  0.17991
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  2.279e+01  2.483e+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:  1.394e+00  1.799e-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:  7.009e-01  2.438e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.09
Ra Dec: 122.453 5.131
Photon Index (Fixed Index): 2.82 +/- 0.00
Photon Flux (Fixed Index): 3.65e-08 +/- 3.98e-08
Energy Flux (Fixed Index): 9.63e-06 +/- 1.05e-05

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

Saving results to:
/scratch/kocevski/251444/likelihoodResults_365299201_365558401_4FGL_J0809.8+0507_daily_bin486.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) = 6029.89166278
delta logL = 0.0379782458185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6029.88217417
delta logL = 0.0474668623847

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.469       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3108       1.0000          .0000       5.0000    
     3 'Normalizat'    .68639       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4015       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=   6029.882     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      251 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.456        28.362        .90773E-04    .51976E-04
   2  alpha         3.3125        1.6525        .37223E-01    .11511E-03
   3  Normalizat    .68637        .24291        .36377E-03   -.10157E-04
   4  Prefactor     1.4015        .17756        .19605E-03    .19207E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 19.4562
  alpha      = 3.31249
  Normalizat = 0.68637
  Prefactor  = 1.40153
 **********
 **   18 **HESSE 
 **********

 FCN=   6029.882     FROM HESSE     STATUS=OK            25 CALLS      276 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.456        26.171        .36309E-05   -1.4825    
   2  alpha         3.3125        1.5459        .74447E-02    .33101    
   3  Normalizat    .68637        .24265        .14551E-04   -1.0443    
   4  Prefactor     1.4015        .17737        .39209E-04   -.80336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21982e-10
Minuit parameter uncertainties:
  1  26.1865
  2  1.68492
  3  0.243028
  4  0.177444
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251444': 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) = 6029.88217359
delta logL = 0.047467442766

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.946e+01  2.619e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  3.312e+00  1.685e+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:  1.402e+00  1.774e-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:  6.864e-01  2.430e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.21
Ra Dec: 122.453 5.131
Photon Index (Free Index): 3.31 +/- 1.68
Photon Flux (Free Index): 4.57e-08 +/- 5.33e-08
Energy Flux (Free Index): 1.02e-05 +/- 1.06e-05

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/251444/cmap_HighResolution_365299201_365558401_4FGL_J0809.8+0507_daily_bin486.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.24e-05', comment='SUCCESS', photon_flux='3.65e-08', energy_flux2='1.02e-05', photon_flux_error='3.98e-08', dlogl='4.75e-02', energy_flux='9.63e-06', photon_flux2='4.57e-08', job_status='DONE', time_completed='2021-08-29 09:08:09.573457', photon_index_error2='1.68', photon_index2='3.31', ts='1.09', fit_tolerance='1e-08', GAL='1.39', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='1.06e-05', EG='0.70', time_epoch_completed='1630253289.57', return_code='0', job_id='251444', GAL2='1.40', EG2='0.69', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='5.33e-08', ts2='1.21', photon_index='2.82' WHERE bin_id='486' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:08:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 251444: <4FGL_J0809.8+0507_daily_bin486> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin486 122.453 5.1313 365299201 365558401 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 :                                   622.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            770 sec.

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

