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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin941
RA = 122.453, Dec = 5.1313
tmin = 483235201, tmax = 483494401
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='254295', job_status='RUN', time_executed='2021-08-29 09:08:08.555906', time_epoch_executed='1630253288.56' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='941'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/254295

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/254295/ft1_4FGL_J0809.8+0507_daily_bin941.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/254295/ft2_4FGL_J0809.8+0507_daily_bin941.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/254295/ft1_4FGL_J0809.8+0507_daily_bin941.fits outfile=/scratch/kocevski/254295/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin941.fits ra=122.453 dec=5.1313 rad=12.0 tmin=483235201.0 tmax=483494401.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.49
user 3.23
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/254295/ft1_filtered_4FGL_J0809.8+0507_daily_bin941.fits" evtable="EVENTS" scfile=/scratch/kocevski/254295/ft2_4FGL_J0809.8+0507_daily_bin941.fits sctable="SC_DATA" outfile=/scratch/kocevski/254295/ltcube_483235201_483494401_4FGL_J0809.8+0507_daily_bin941.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/254295/ft2_4FGL_J0809.8+0507_daily_bin941.fits
.....................!
real 11.90
user 11.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/254295/ft1_filtered_4FGL_J0809.8+0507_daily_bin941.fits evtable="EVENTS" scfile=/scratch/kocevski/254295/ft2_4FGL_J0809.8+0507_daily_bin941.fits sctable="SC_DATA" expcube=/scratch/kocevski/254295/ltcube_483235201_483494401_4FGL_J0809.8+0507_daily_bin941.fits outfile=/scratch/kocevski/254295/expmap_483235201_483494401_4FGL_J0809.8+0507_daily_bin941.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/254295/ltcube_483235201_483494401_4FGL_J0809.8+0507_daily_bin941.fits
.....................!
real 193.11
user 187.16
sys 5.57

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/254295/ft1_filtered_4FGL_J0809.8+0507_daily_bin941.fits scfile=/scratch/kocevski/254295/ft2_4FGL_J0809.8+0507_daily_bin941.fits outfile=/scratch/kocevski/254295/cmap_483235201_483494401_4FGL_J0809.8+0507_daily_bin941.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.60
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/254295/ft1_filtered_4FGL_J0809.8+0507_daily_bin941.fits scfile=/scratch/kocevski/254295/ft2_4FGL_J0809.8+0507_daily_bin941.fits outfile=/scratch/kocevski/254295/cmap_HighResolution_483235201_483494401_4FGL_J0809.8+0507_daily_bin941.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.58
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.883       1.0000         .10000E-03   10000.    
     3 'norm      '    1.6018       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.9285       1.0000         .10000E-03   10000.    
     6 'norm      '    .10946E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.689       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3575       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11024E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.5914       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    33.769       1.0000         .10000E-03   10000.    
    14 'norm      '    3.6629       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.643       1.0000         .10000E-03   10000.    
    17 'norm      '    .89122       1.0000         .10000E-03   10000.    
    18 'norm      '    14.151       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1870       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0145       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=   6811.824     FROM MIGRAD    STATUS=CONVERGED    449 CALLS     2228 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.846       -.42600E-05** at limit **
   2  Prefactor     10.889        23.261        .16260E-05   -.29899E-04
   3  norm          1.6018        1.8810        .50404E-06   -.60497E-03
   4  Prefactor     .10000E-03    12.212        .10119E-05** at limit **
   5  Prefactor     4.9281        3.4007       -.24958E-05   -.69317E-03
   6  norm          .10000E-03    112.07        .10364E-04** at limit **
   7  Prefactor     .10000E-03    14.559        .25940E-05** at limit **
   8  Prefactor     20.879        139.23        .38236E-03    .31372E-04
   9  Prefactor     1.3566        8.0128       -.18759E-05   -.74238E-03
  10  Prefactor     .10000E-03    26.341        .53176E-05** at limit **
  11  norm          2.5899        7.8190        .78444E-06   -.26444E-03
  12  norm          .10000E-03    .63530        .66039E-07** at limit **
  13  norm          33.805        26.909        .82505E-05   -.11357E-03
  14  norm          3.6630        4.7054       -.11110E-08   -.61480E-03
  15  Prefactor     .10000E-03    18.817        .24168E-05** at limit **
  16  Prefactor     15.641        21.104        .14967E-05   -.10641E-03
  17  norm          .89147        1.0730        .26905E-06   -.20168E-03
  18  norm          14.151        9.1266        .21662E-06   -.97641E-03
  19  Prefactor     .10000E-03    24.416       -.78693E-05** at limit **
  20  Normalizat    1.1867        .21837       -.70241E-05   -.55839E-04
  21  Prefactor     1.0146        .13808       -.15843E-05   -.37248E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.8893
  norm       = 1.60181
  Prefactor  = 0.0001
  Prefactor  = 4.92814
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 20.8787
  Prefactor  = 1.35659
  Prefactor  = 0.0001
  norm       = 2.58992
  norm       = 0.0001
  norm       = 33.8052
  norm       = 3.66304
  Prefactor  = 0.0001
  Prefactor  = 15.6406
  norm       = 0.891467
  norm       = 14.1511
  Prefactor  = 0.0001
  Normalizat = 1.18675
  Prefactor  = 1.01458
 **********
 **   18 **HESSE 
 **********

 FCN=   6811.824     FROM HESSE     STATUS=OK           317 CALLS     2545 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.889        23.248        .12145E-03   -1.5048    
   3  norm          1.6018        1.8605        .11531E-03   -1.5455    
   4  Prefactor     .10000E-03    12.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.9281        3.4040        .12050E-03   -1.5264    
   6  norm          .10000E-03    116.11        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.879        138.06        .88058E-04   -1.4794    
   9  Prefactor     1.3566        7.9333        .37505E-03   -1.5475    
  10  Prefactor     .10000E-03    26.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.5899        7.7679        .25347E-03   -1.5386    
  12  norm          .10000E-03    .64266        .64233E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          33.805        26.964        .68958E-04   -1.4544    
  14  norm          3.6630        4.6905        .19240E-03   -1.5325    
  15  Prefactor     .10000E-03    18.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.641        21.339        .10127E-03   -1.4917    
  17  norm          .89147        .97831        .88650E-03   -1.5519    
  18  norm          14.151        9.1224        .53238E-03   -1.4955    
  19  Prefactor     .10000E-03    24.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1867        .25524        .30098E-03   -.87013    
  21  Prefactor     1.0146        .16151        .21496E-03   -.92245    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99326e-09
Minuit parameter uncertainties:
  1  1.32713e-05
  2  23.2669
  3  1.86056
  4  3.27114e-05
  5  3.4041
  6  0.000549163
  7  0.000144712
  8  107.738
  9  6.56226
  10  0.000104239
  11  7.7709
  12  3.85827e-06
  13  26.9738
  14  4.69098
  15  8.28311e-05
  16  21.3496
  17  0.978324
  18  9.12333
  19  8.20536e-05
  20  0.255506
  21  0.161588
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  3.381e+01  2.697e+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.015e+00  1.616e-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.187e+00  2.555e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.40
Ra Dec: 122.453 5.131
Photon Index (Fixed Index): 2.82 +/- 0.00
Photon Flux (Fixed Index): 5.42e-08 +/- 4.33e-08
Energy Flux (Fixed Index): 1.43e-05 +/- 1.14e-05

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

Saving results to:
/scratch/kocevski/254295/likelihoodResults_483235201_483494401_4FGL_J0809.8+0507_daily_bin941.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) = 6810.86296451
delta logL = 0.960996814552

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6810.8352883
delta logL = 0.988673031162

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.319       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.8976       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0855       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0635       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=   6810.835     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      255 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.320        6.6275        .29769E-02    .82544E-03
   2  alpha         4.8986        .70766        .48781       -.10478E-03
   3  Normalizat    1.0854        .21322        .70689E-01   -.14937E-04
   4  Prefactor     1.0635        .13881        .39178E-01   -.19038E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.32
  alpha      = 4.89856
  Normalizat = 1.08543
  Prefactor  = 1.06346
 **********
 **   18 **HESSE 
 **********

 FCN=   6810.835     FROM HESSE     STATUS=OK            31 CALLS      286 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.320        19.906        .11908E-03   -1.5035    
   2  alpha         4.8986        4.8482        .62687E-02    1.2849    
   3  Normalizat    1.0854        .25198        .31279E-03   -.90221    
   4  Prefactor     1.0635        .16387        .21066E-03   -.90643    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.18986e-09
Minuit parameter uncertainties:
  1  19.9176
  2  1.72765
  3  0.25226
  4  0.163946
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/254295': 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) = 6810.83528662
delta logL = 0.988674703798

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.132e+01  1.992e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  4.899e+00  1.728e+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.063e+00  1.639e-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.085e+00  2.523e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.71
Ra Dec: 122.453 5.131
Photon Index (Free Index): 4.90 +/- 1.73
Photon Flux (Free Index): 1.26e-07 +/- 7.97e-08
Energy Flux (Free Index): 2.01e-05 +/- 1.18e-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/254295/cmap_HighResolution_483235201_483494401_4FGL_J0809.8+0507_daily_bin941.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.80e-05', comment='SUCCESS', photon_flux='5.42e-08', energy_flux2='2.01e-05', photon_flux_error='4.33e-08', dlogl='9.89e-01', energy_flux='1.43e-05', photon_flux2='1.26e-07', job_status='DONE', time_completed='2021-08-29 09:18:38.426808', photon_index_error2='1.73', photon_index2='4.90', ts='2.40', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.44e-07', energy_flux_error2='1.18e-05', EG='1.19', time_epoch_completed='1630253918.43', return_code='0', job_id='254295', GAL2='1.06', EG2='1.09', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='7.97e-08', ts2='4.71', photon_index='2.82' WHERE bin_id='941' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:18:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 254295: <4FGL_J0809.8+0507_daily_bin941> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin941> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Aug 29 09:05:22 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 09:05:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 09:05:23 2021
Terminated at Sun Aug 29 09:18:38 2021
Results reported at Sun Aug 29 09:18:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin941 122.453 5.1313 483235201 483494401 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 :                                   628.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             257.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            796 sec.

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

