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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin624
RA = 122.453, Dec = 5.1313
tmin = 401068801, tmax = 401328001
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='251665', job_status='RUN', time_executed='2021-08-29 08:59:30.832742', time_epoch_executed='1630252770.83' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='624'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251665

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251665/ft1_4FGL_J0809.8+0507_daily_bin624.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251665/ft2_4FGL_J0809.8+0507_daily_bin624.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/251665/ft1_4FGL_J0809.8+0507_daily_bin624.fits outfile=/scratch/kocevski/251665/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin624.fits ra=122.453 dec=5.1313 rad=12.0 tmin=401068801.0 tmax=401328001.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.43
user 3.14
sys 4.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/251665/ft1_filtered_4FGL_J0809.8+0507_daily_bin624.fits" evtable="EVENTS" scfile=/scratch/kocevski/251665/ft2_4FGL_J0809.8+0507_daily_bin624.fits sctable="SC_DATA" outfile=/scratch/kocevski/251665/ltcube_401068801_401328001_4FGL_J0809.8+0507_daily_bin624.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/251665/ft2_4FGL_J0809.8+0507_daily_bin624.fits
.....................!
real 16.82
user 11.67
sys 5.10

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251665/ft1_filtered_4FGL_J0809.8+0507_daily_bin624.fits evtable="EVENTS" scfile=/scratch/kocevski/251665/ft2_4FGL_J0809.8+0507_daily_bin624.fits sctable="SC_DATA" expcube=/scratch/kocevski/251665/ltcube_401068801_401328001_4FGL_J0809.8+0507_daily_bin624.fits outfile=/scratch/kocevski/251665/expmap_401068801_401328001_4FGL_J0809.8+0507_daily_bin624.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/251665/ltcube_401068801_401328001_4FGL_J0809.8+0507_daily_bin624.fits
.....................!
real 194.99
user 185.20
sys 9.41

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/251665/ft1_filtered_4FGL_J0809.8+0507_daily_bin624.fits scfile=/scratch/kocevski/251665/ft2_4FGL_J0809.8+0507_daily_bin624.fits outfile=/scratch/kocevski/251665/cmap_401068801_401328001_4FGL_J0809.8+0507_daily_bin624.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.47
user 0.37
sys 4.06

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/251665/ft1_filtered_4FGL_J0809.8+0507_daily_bin624.fits scfile=/scratch/kocevski/251665/ft2_4FGL_J0809.8+0507_daily_bin624.fits outfile=/scratch/kocevski/251665/cmap_HighResolution_401068801_401328001_4FGL_J0809.8+0507_daily_bin624.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.48
user 0.36
sys 4.10

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    70.020       1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.936       1.0000         .10000E-03   10000.    
     3 'norm      '    2.2330       1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.843       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    17.994       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2623       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.179       1.0000         .10000E-03   10000.    
    11 'norm      '    28.722       1.0000         .10000E-03   10000.    
    12 'norm      '    .60217       1.0000         .10000E-03   10000.    
    13 'norm      '    29.460       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.426       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .87732       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .86553       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=   6376.602     FROM MIGRAD    STATUS=CONVERGED    427 CALLS     2195 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     70.023        51.527        .36024E-05    .86632E-05
   2  Prefactor     31.918        33.062       -.23411E-04    .56734E-05
   3  norm          2.2326        1.9599        .30396E-06   -.37062E-03
   4  Prefactor     27.845        24.642        .11784E-05    .10008E-04
   5  Prefactor     .10000E-03    .76135       -.69130E-07** at limit **
   6  norm          17.989        14.673       -.11987E-05    .10959E-03
   7  Prefactor     1.2665        11.257       -.62087E-05   -.67686E-03
   8  Prefactor     .10000E-03    29.643       -.13488E-04** at limit **
   9  Prefactor     .10000E-03    9.4369        .29788E-06** at limit **
  10  Prefactor     20.180        22.073        .57118E-06    .20489E-05
  11  norm          28.727        12.448       -.65511E-07    .60082E-04
  12  norm          .60205        1.5951       -.75731E-06   -.15624E-02
  13  norm          29.459        22.089       -.25461E-06   -.24178E-04
  14  norm          .10000E-03    1.2721       -.44386E-07** at limit **
  15  Prefactor     22.421        35.670       -.79281E-05   -.78692E-04
  16  Prefactor     .10000E-03    22.848        .24078E-04** at limit **
  17  norm          .10000E-03    .32103       -.78011E-07** at limit **
  18  norm          .10000E-03    2.5225       -.28826E-07** at limit **
  19  Prefactor     .10000E-03    19.269       -.11405E-04** at limit **
  20  Normalizat    .87733        .17638        .24076E-05   -.10901E-03
  21  Prefactor     .86553        .12275        .14406E-05   -.10880E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 70.0228
  Prefactor  = 31.9177
  norm       = 2.2326
  Prefactor  = 27.8448
  Prefactor  = 0.0001
  norm       = 17.9895
  Prefactor  = 1.26649
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.1797
  norm       = 28.7272
  norm       = 0.602052
  norm       = 29.4587
  norm       = 0.0001
  Prefactor  = 22.4212
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.877328
  Prefactor  = 0.865526
 **********
 **   18 **HESSE 
 **********

 FCN=   6376.602     FROM HESSE     STATUS=OK           319 CALLS     2514 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     70.023        51.645        .47972E-04   -1.4032    
   2  Prefactor     31.918        32.841        .70904E-04   -1.4577    
   3  norm          2.2326        1.9458        .97215E-04   -1.5409    
   4  Prefactor     27.845        24.688        .75923E-04   -1.4652    
   5  Prefactor     .10000E-03    .77917        .68020E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          17.989        14.502        .94418E-04   -1.4859    
   7  Prefactor     1.2665        11.517        .39682E-03   -1.5483    
   8  Prefactor     .10000E-03    29.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.6345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.180        22.066        .89162E-04   -1.4809    
  11  norm          28.727        12.418        .74756E-04   -1.4635    
  12  norm          .60205        1.5575        .15895E-03   -1.5553    
  13  norm          29.459        22.063        .73816E-04   -1.4622    
  14  norm          .10000E-03    1.2986        .87936E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     22.421        35.806        .84582E-04   -1.4761    
  16  Prefactor     .10000E-03    22.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .62048        .87521E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.5344        .12384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .87733        .20139        .27806E-03   -.97261    
  21  Prefactor     .86553        .14149        .19473E-03   -.97356    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35439e-09
Minuit parameter uncertainties:
  1  51.6785
  2  32.8594
  3  1.94587
  4  24.6971
  5  1.23923e-07
  6  14.505
  7  7.63997
  8  6.33943e-06
  9  3.38676e-05
  10  22.0748
  11  12.4191
  12  1.55763
  13  22.069
  14  3.21002e-06
  15  35.8401
  16  0.000273201
  17  1.13624e-05
  18  7.62279e-06
  19  3.77578e-05
  20  0.201562
  21  0.141546
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  2.946e+01  2.207e+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.655e-01  1.415e-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:  8.773e-01  2.016e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.53
Ra Dec: 122.453 5.131
Photon Index (Fixed Index): 2.82 +/- 0.00
Photon Flux (Fixed Index): 4.72e-08 +/- 3.54e-08
Energy Flux (Fixed Index): 1.24e-05 +/- 9.32e-06

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

Saving results to:
/scratch/kocevski/251665/likelihoodResults_401068801_401328001_4FGL_J0809.8+0507_daily_bin624.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) = 6376.57633543
delta logL = 0.0253260410445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6376.56849514
delta logL = 0.0331663337829

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    26.765       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0861       1.0000          .0000       5.0000    
     3 'Normalizat'    .87017       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86897       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=   6376.568     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      261 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          26.752        22.894        .77434E-04   -.58140E-04
   2  alpha         3.0875        1.0615        .26361E-01    .73802E-05
   3  Normalizat    .87049        .19671        .27901E-03   -.50037E-04
   4  Prefactor     .86887        .13605        .19439E-03   -.59770E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 26.7516
  alpha      = 3.0875
  Normalizat = 0.870486
  Prefactor  = 0.868871
 **********
 **   18 **HESSE 
 **********

 FCN=   6376.568     FROM HESSE     STATUS=OK            25 CALLS      286 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          26.752        22.079        .30974E-05   -1.4673    
   2  alpha         3.0875        1.0254        .10545E-02    .23722    
   3  Normalizat    .87049        .19680        .11160E-04   -.97505    
   4  Prefactor     .86887        .13610        .77757E-05   -.97237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39801e-11
Minuit parameter uncertainties:
  1  22.0862
  2  1.0586
  3  0.196958
  4  0.136151
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251665': 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) = 6376.56849168
delta logL = 0.0331697898619

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  2.675e+01  2.209e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  3.088e+00  1.059e+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.689e-01  1.362e-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:  8.705e-01  1.970e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.62
Ra Dec: 122.453 5.131
Photon Index (Free Index): 3.09 +/- 1.06
Photon Flux (Free Index): 5.24e-08 +/- 4.06e-08
Energy Flux (Free Index): 1.26e-05 +/- 8.63e-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/251665/cmap_HighResolution_401068801_401328001_4FGL_J0809.8+0507_daily_bin624.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.12e-05', comment='SUCCESS', photon_flux='4.72e-08', energy_flux2='1.26e-05', photon_flux_error='3.54e-08', dlogl='3.32e-02', energy_flux='1.24e-05', photon_flux2='5.24e-08', job_status='DONE', time_completed='2021-08-29 09:10:31.781192', photon_index_error2='1.06', photon_index2='3.09', ts='3.53', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='8.63e-06', EG='0.88', time_epoch_completed='1630253431.78', return_code='0', job_id='251665', GAL2='0.87', EG2='0.87', return_code2='0', energy_flux_error='9.32e-06', photon_flux_error2='4.06e-08', ts2='3.62', photon_index='2.82' WHERE bin_id='624' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:10:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 251665: <4FGL_J0809.8+0507_daily_bin624> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin624 122.453 5.1313 401068801 401328001 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 :                                   722.47 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             261.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            892 sec.

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

