/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 182 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 = 7460
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0809.8+0507_daily_bin206
RA = 122.453, Dec = 5.1313
tmin = 292723201, tmax = 292982401
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='248895', job_status='RUN', time_executed='2021-08-29 08:49:06.656801', time_epoch_executed='1630252146.66' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='206'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248895

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248895/ft1_4FGL_J0809.8+0507_daily_bin206.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248895/ft2_4FGL_J0809.8+0507_daily_bin206.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248895/ft1_4FGL_J0809.8+0507_daily_bin206.fits outfile=/scratch/kocevski/248895/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin206.fits ra=122.453 dec=5.1313 rad=12.0 tmin=292723201.0 tmax=292982401.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.41
user 4.17
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248895/ft1_filtered_4FGL_J0809.8+0507_daily_bin206.fits" evtable="EVENTS" scfile=/scratch/kocevski/248895/ft2_4FGL_J0809.8+0507_daily_bin206.fits sctable="SC_DATA" outfile=/scratch/kocevski/248895/ltcube_292723201_292982401_4FGL_J0809.8+0507_daily_bin206.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/248895/ft2_4FGL_J0809.8+0507_daily_bin206.fits
.....................!
real 11.81
user 11.47
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248895/ft1_filtered_4FGL_J0809.8+0507_daily_bin206.fits evtable="EVENTS" scfile=/scratch/kocevski/248895/ft2_4FGL_J0809.8+0507_daily_bin206.fits sctable="SC_DATA" expcube=/scratch/kocevski/248895/ltcube_292723201_292982401_4FGL_J0809.8+0507_daily_bin206.fits outfile=/scratch/kocevski/248895/expmap_292723201_292982401_4FGL_J0809.8+0507_daily_bin206.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/248895/ltcube_292723201_292982401_4FGL_J0809.8+0507_daily_bin206.fits
.....................!
real 189.23
user 184.95
sys 3.96

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/248895/ft1_filtered_4FGL_J0809.8+0507_daily_bin206.fits scfile=/scratch/kocevski/248895/ft2_4FGL_J0809.8+0507_daily_bin206.fits outfile=/scratch/kocevski/248895/cmap_292723201_292982401_4FGL_J0809.8+0507_daily_bin206.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.53
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/248895/ft1_filtered_4FGL_J0809.8+0507_daily_bin206.fits scfile=/scratch/kocevski/248895/ft2_4FGL_J0809.8+0507_daily_bin206.fits outfile=/scratch/kocevski/248895/cmap_HighResolution_292723201_292982401_4FGL_J0809.8+0507_daily_bin206.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.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.403       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10544E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.3182       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10351E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.5910       1.0000         .10000E-03   10000.    
     6 'norm      '    .14087E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.827       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .20206E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .26217E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    3.2680       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.030       1.0000         .10000E-03   10000.    
    17 'norm      '    3.3567       1.0000         .10000E-03   10000.    
    18 'norm      '    .89216       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.252       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3478       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .96785       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=   7671.935     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     2273 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.389        24.928        .42204E-07   -.23895E-04
   2  Prefactor     .10000E-03    36.909        .18925E-05** at limit **
   3  norm          5.3178        2.0804        .22312E-06    .18322E-03
   4  Prefactor     .10000E-03    9.7286       -.83801E-07** at limit **
   5  Prefactor     4.5908        3.3766        .37879E-06    .14489E-03
   6  norm          .10000E-03    25.155       -.97414E-06** at limit **
   7  Prefactor     11.827        9.3216       -.93053E-06    .56038E-06
   8  Prefactor     .10000E-03    27.263       -.74798E-06** at limit **
   9  Prefactor     .10000E-03    1.5312       -.16495E-09** at limit **
  10  Prefactor     .10000E-03    22.646        .83198E-06** at limit **
  11  norm          .10001E-03    8.1959        .25418E-05** at limit **
  12  norm          .10000E-03    .50378        .17559E-08** at limit **
  13  norm          .10001E-03    103.52       -.15180E-04** at limit **
  14  norm          3.2655        3.4094        .31264E-06    .58961E-04
  15  Prefactor     .10000E-03    30.700       -.28626E-06** at limit **
  16  Prefactor     17.025        18.418       -.12820E-06   -.42795E-04
  17  norm          3.3567        1.1902       -.88476E-07   -.51296E-03
  18  norm          .86162        18.782       -.54568E-05    .36034E-04
  19  Prefactor     13.263        30.190        .58244E-06    .15634E-04
  20  Normalizat    1.3477        .21019        .14737E-06   -.16513E-05
  21  Prefactor     .96785        .13385       -.53873E-06   -.30644E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.3895
  Prefactor  = 0.000100001
  norm       = 5.31777
  Prefactor  = 0.0001
  Prefactor  = 4.5908
  norm       = 0.000100001
  Prefactor  = 11.8274
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100011
  norm       = 0.0001
  norm       = 0.000100006
  norm       = 3.2655
  Prefactor  = 0.0001
  Prefactor  = 17.0254
  norm       = 3.35672
  norm       = 0.861621
  Prefactor  = 13.2635
  Normalizat = 1.34774
  Prefactor  = 0.967848
 **********
 **   18 **HESSE 
 **********

 FCN=   7671.935     FROM HESSE     STATUS=OK           319 CALLS     2592 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.389        24.935        .86577E-04   -1.4783    
   2  Prefactor     .10000E-03    37.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.3178        2.0904        .75778E-04   -1.5247    
   4  Prefactor     .10000E-03    9.7425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.5908        3.3839        .13177E-03   -1.5279    
   6  norm          .10000E-03    25.641        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.827        9.2861        .11649E-03   -1.5020    
   8  Prefactor     .10000E-03    27.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.5317        .10585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10001E-03    42.893        .37796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .50521        .60710E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10001E-03    109.17        .52883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.2655        3.3939        .15906E-03   -1.5347    
  15  Prefactor     .10000E-03    30.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.025        18.540        .97054E-04   -1.4882    
  17  norm          3.3567        1.1939        .54506E-04   -1.5342    
  18  norm          .86162        18.910        .42458E-02   -1.5522    
  19  Prefactor     13.263        30.202        .11003E-03   -1.4979    
  20  Normalizat    1.3477        .24102        .29190E-03   -.82152    
  21  Prefactor     .96785        .15649        .22887E-03   -.93809    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.61717e-10
Minuit parameter uncertainties:
  1  24.9467
  2  0.000325714
  3  2.09039
  4  6.9978e-06
  5  3.384
  6  0.000370895
  7  9.28721
  8  0.000164015
  9  6.79186e-07
  10  0.000164156
  11  0.00138959
  12  5.34842e-07
  13  0.00156913
  14  3.39412
  15  6.05988e-06
  16  18.5461
  17  1.19395
  18  8.07544
  19  30.2371
  20  0.241221
  21  0.15656
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  1.569e-03  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:  9.678e-01  1.566e-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.348e+00  2.412e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/248895/likelihoodResults_292723201_292982401_4FGL_J0809.8+0507_daily_bin206.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) = 7671.93475534
delta logL = -4.26747101301e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7671.78075987
delta logL = 0.153952794314

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4026       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3089       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98298       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=   7671.781     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      269 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4038        4.8698        .66039E-02   -.21484E-02
   2  alpha         5.0000        4.0058        .46381    ** at limit **
   3  Normalizat    1.3072        .20169        .66851E-01   -.30558E-03
   4  Prefactor     .98403        .13326        .46054E-01   -.29182E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.40377
  alpha      = 5
  Normalizat = 1.30718
  Prefactor  = 0.984035
 **********
 **   18 **HESSE 
 **********

 FCN=   7671.781     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4038        4.6006        .23889E-03   -1.5398    
   2  alpha         5.0000        3.8858        .70379E-01    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.3072        .23638        .29574E-03   -.83352    
   4  Prefactor     .98403        .15634        .22722E-03   -.93264    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.24994e-09
Minuit parameter uncertainties:
  1  4.60125
  2  0.000306996
  3  0.236572
  4  0.156408
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248895': 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) = 7671.78073029
delta logL = 0.153982369902

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  2.404e+00  4.601e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  5.000e+00  3.070e-04  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:  9.840e-01  1.564e-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.307e+00  2.366e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 122.453 5.131

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/248895/cmap_HighResolution_292723201_292982401_4FGL_J0809.8+0507_daily_bin206.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.04e-05', job_status='DONE', photon_flux_upper_limit='7.75e-08', time_completed='2021-08-29 09:00:26.982030', job_id='248895', GAL2='0.98', fit_tolerance='1e-08', EG2='1.31', EG='1.35', time_epoch_completed='1630252826.98', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.54e-01', ts2='0.34', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='206' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:00:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 248895: <4FGL_J0809.8+0507_daily_bin206> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin206> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 29 08:45:51 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 08:45:53 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:45:53 2021
Terminated at Sun Aug 29 09:00:27 2021
Results reported at Sun Aug 29 09:00:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin206 122.453 5.1313 292723201 292982401 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 :                                   679.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            876 sec.

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

