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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin776
RA = 122.453, Dec = 5.1313
tmin = 440467201, tmax = 440726401
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='253015', job_status='RUN', time_executed='2021-08-29 09:03:08.316698', time_epoch_executed='1630252988.32' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='776'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/253015

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/253015/ft1_4FGL_J0809.8+0507_daily_bin776.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/253015/ft2_4FGL_J0809.8+0507_daily_bin776.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/253015/ft1_4FGL_J0809.8+0507_daily_bin776.fits outfile=/scratch/kocevski/253015/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin776.fits ra=122.453 dec=5.1313 rad=12.0 tmin=440467201.0 tmax=440726401.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.75
user 3.21
sys 0.52

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/253015/ft2_4FGL_J0809.8+0507_daily_bin776.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/253015/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin776.fits evtable="EVENTS" outfile="/scratch/kocevski/253015/ft1_filtered_4FGL_J0809.8+0507_daily_bin776.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.90
user 0.32
sys 0.48

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/253015/ft1_filtered_4FGL_J0809.8+0507_daily_bin776.fits" evtable="EVENTS" scfile=/scratch/kocevski/253015/ft2_4FGL_J0809.8+0507_daily_bin776.fits sctable="SC_DATA" outfile=/scratch/kocevski/253015/ltcube_440467201_440726401_4FGL_J0809.8+0507_daily_bin776.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/253015/ft2_4FGL_J0809.8+0507_daily_bin776.fits
.....................!
real 14.55
user 13.82
sys 0.66

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/253015/ft1_filtered_4FGL_J0809.8+0507_daily_bin776.fits evtable="EVENTS" scfile=/scratch/kocevski/253015/ft2_4FGL_J0809.8+0507_daily_bin776.fits sctable="SC_DATA" expcube=/scratch/kocevski/253015/ltcube_440467201_440726401_4FGL_J0809.8+0507_daily_bin776.fits outfile=/scratch/kocevski/253015/expmap_440467201_440726401_4FGL_J0809.8+0507_daily_bin776.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/253015/ltcube_440467201_440726401_4FGL_J0809.8+0507_daily_bin776.fits
.....................!
real 191.18
user 186.18
sys 4.63

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/253015/ft1_filtered_4FGL_J0809.8+0507_daily_bin776.fits scfile=/scratch/kocevski/253015/ft2_4FGL_J0809.8+0507_daily_bin776.fits outfile=/scratch/kocevski/253015/cmap_440467201_440726401_4FGL_J0809.8+0507_daily_bin776.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.92
user 0.37
sys 0.46

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/253015/ft1_filtered_4FGL_J0809.8+0507_daily_bin776.fits scfile=/scratch/kocevski/253015/ft2_4FGL_J0809.8+0507_daily_bin776.fits outfile=/scratch/kocevski/253015/cmap_HighResolution_440467201_440726401_4FGL_J0809.8+0507_daily_bin776.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.89
user 0.38
sys 0.47

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10823E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    56.187       1.0000         .10000E-03   10000.    
     3 'norm      '    12.056       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9513       1.0000         .10000E-03   10000.    
     6 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.626       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.2717       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.7377       1.0000         .10000E-03   10000.    
    14 'norm      '    4.5266       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .58106E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .22115E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .10192E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.797       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2818       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .80020       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=   7199.073     FROM MIGRAD    STATUS=CONVERGED    838 CALLS     2634 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.923        .18142E-02** at limit **
   2  Prefactor     56.169        38.049        .26758E-03    .43847E-04
   3  norm          12.056        2.9255        .67032E-04   -.97860E-04
   4  Prefactor     .10000E-03    10.056        .18142E-02** at limit **
   5  Prefactor     1.9515        2.2795        .13359E-03   -.82551E-05
   6  norm          .10000E-03    5.9132        .18142E-02** at limit **
   7  Prefactor     12.628        9.7604        .11273E-03    .28238E-05
   8  Prefactor     .10000E-03    53.913        .18142E-02** at limit **
   9  Prefactor     2.2712        8.2871        .27247E-03   -.12351E-04
  10  Prefactor     .10000E-03    32.250        .18142E-02** at limit **
  11  norm          .10000E-03    7.8444        .18142E-02** at limit **
  12  norm          .10000E-03    1.1934        .89738E-03** at limit **
  13  norm          3.7561        24.425        .20885E-03   -.63688E-05
  14  norm          4.5265        3.8198        .14653E-03   -.33441E-04
  15  Prefactor     .10028E-03    37.376        .12842    ** at limit **
  16  Prefactor     .10000E-03    15.340        .18142E-02** at limit **
  17  norm          .53119E-02    .37793        .30602E-01    .10053E-02
  18  norm          .10000E-03    8.1667        .36285E-03** at limit **
  19  Prefactor     17.803        34.790        .94939E-04   -.28620E-04
  20  Normalizat    1.2816        .23285        .27263E-03   -.45829E-04
  21  Prefactor     .80024        .15011        .22626E-03   -.50850E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 56.1695
  norm       = 12.0562
  Prefactor  = 0.0001
  Prefactor  = 1.95153
  norm       = 0.0001
  Prefactor  = 12.628
  Prefactor  = 0.0001
  Prefactor  = 2.27119
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.75607
  norm       = 4.52655
  Prefactor  = 0.000100282
  Prefactor  = 0.0001
  norm       = 0.00531189
  norm       = 0.0001
  Prefactor  = 17.8035
  Normalizat = 1.28163
  Prefactor  = 0.800244
 **********
 **   18 **HESSE 
 **********

 FCN=   7199.073     FROM HESSE     STATUS=OK           315 CALLS     2949 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.925        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     56.169        38.050        .10703E-04   -1.4208    
   3  norm          12.056        2.9257        .26813E-05   -1.5013    
   4  Prefactor     .10000E-03    10.056        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.9515        2.2795        .53434E-05   -1.5429    
   6  norm          .10000E-03    5.9134        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.628        9.7606        .45092E-05   -1.4997    
   8  Prefactor     .10000E-03    53.913        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.2712        8.2863        .10899E-04   -1.5407    
  10  Prefactor     .10000E-03    32.254        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    7.8472        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.1936        .17948E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.7561        24.411        .83541E-05   -1.5320    
  14  norm          4.5265        3.8197        .58610E-05   -1.5282    
  15  Prefactor     .10028E-03    37.396        .12836       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.345        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .53119E-02    .67551        .18547E-01   -1.5694    
  18  norm          .10000E-03    8.1673        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.803        34.807        .37976E-05   -1.4864    
  20  Normalizat    1.2816        .23306        .10905E-04   -.84116    
  21  Prefactor     .80024        .15022        .90503E-05   -.99719    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.73348e-10
Minuit parameter uncertainties:
  1  1.97053e-05
  2  38.0661
  3  2.92577
  4  5.09444e-06
  5  2.27959
  6  1.28058e-06
  7  9.76184
  8  1.39876e-06
  9  8.29049
  10  3.55552e-05
  11  2.74723e-06
  12  1.67101e-06
  13  19.1619
  14  3.81995
  15  0.00650098
  16  6.97079e-05
  17  0.118672
  18  4.26258e-05
  19  34.8465
  20  0.233254
  21  0.150293
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  3.756e+00  1.916e+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.002e-01  1.503e-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.282e+00  2.333e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 122.453 5.131
Photon Flux Upper Limit: 8.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.21e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/253015/likelihoodResults_440467201_440726401_4FGL_J0809.8+0507_daily_bin776.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) = 7198.57914962
delta logL = 0.494078939983

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7198.44690461
delta logL = 0.626323949569

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8925       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1860       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84058       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=   7198.447     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      214 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9036        5.8514        .41358E-02    .47438E-03
   2  alpha         5.0000        1.1108        .46328    ** at limit **
   3  Normalizat    1.1861        .19676        .63703E-01   -.15470E-04
   4  Prefactor     .84083        .12781        .44243E-01   -.17151E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.90364
  alpha      = 5
  Normalizat = 1.1861
  Prefactor  = 0.840828
 **********
 **   18 **HESSE 
 **********

 FCN=   7198.447     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .46E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9036        5.6563        .16543E-03   -1.5222    
   2  alpha         5.0000        1.1209        .75338E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1861        .23415        .28178E-03   -.87034    
   4  Prefactor     .84083        .15191        .22129E-03   -.98240    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.64565e-12
Minuit parameter uncertainties:
  1  5.65678
  2  2.34688e-06
  3  0.234353
  4  0.151985
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/253015': 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) = 7198.44689175
delta logL = 0.62633681024

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  5.904e+00  5.657e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  5.000e+00  2.347e-06  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.408e-01  1.520e-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.186e+00  2.344e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.46
Ra Dec: 122.453 5.131
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 7.36e-08 +/- 7.04e-08
Energy Flux (Free Index): 1.15e-05 +/- 1.11e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/253015/cmap_HighResolution_440467201_440726401_4FGL_J0809.8+0507_daily_bin776.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.21e-05', comment='SUCCESS', energy_flux2='1.15e-05', dlogl='6.26e-01', photon_flux2='7.36e-08', job_status='DONE', time_completed='2021-08-29 09:14:35.958600', photon_index_error2='0.00', photon_index2='5.00', ts='0.05', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='8.39e-08', energy_flux_error2='1.11e-05', EG='1.28', time_epoch_completed='1630253675.96', return_code='0', job_id='253015', GAL2='0.84', EG2='1.19', return_code2='0', photon_flux_error2='7.04e-08', ts2='1.46', photon_index='2.82' WHERE bin_id='776' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:14:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 253015: <4FGL_J0809.8+0507_daily_bin776> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin776> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 29 09:00:41 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 09:00:42 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:00:42 2021
Terminated at Sun Aug 29 09:14:36 2021
Results reported at Sun Aug 29 09:14:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin776 122.453 5.1313 440467201 440726401 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 :                                   692.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            835 sec.

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

