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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin571
RA = 122.453, Dec = 5.1313
tmin = 387331201, tmax = 387590401
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='251580', job_status='RUN', time_executed='2021-08-29 08:59:41.813145', time_epoch_executed='1630252781.81' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='571'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251580

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251580/ft1_4FGL_J0809.8+0507_daily_bin571.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251580/ft2_4FGL_J0809.8+0507_daily_bin571.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/251580/ft1_4FGL_J0809.8+0507_daily_bin571.fits outfile=/scratch/kocevski/251580/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin571.fits ra=122.453 dec=5.1313 rad=12.0 tmin=387331201.0 tmax=387590401.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.69
user 4.13
sys 0.52

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/251580/ft1_filtered_4FGL_J0809.8+0507_daily_bin571.fits" evtable="EVENTS" scfile=/scratch/kocevski/251580/ft2_4FGL_J0809.8+0507_daily_bin571.fits sctable="SC_DATA" outfile=/scratch/kocevski/251580/ltcube_387331201_387590401_4FGL_J0809.8+0507_daily_bin571.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/251580/ft2_4FGL_J0809.8+0507_daily_bin571.fits
.....................!
real 12.20
user 11.55
sys 0.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251580/ft1_filtered_4FGL_J0809.8+0507_daily_bin571.fits evtable="EVENTS" scfile=/scratch/kocevski/251580/ft2_4FGL_J0809.8+0507_daily_bin571.fits sctable="SC_DATA" expcube=/scratch/kocevski/251580/ltcube_387331201_387590401_4FGL_J0809.8+0507_daily_bin571.fits outfile=/scratch/kocevski/251580/expmap_387331201_387590401_4FGL_J0809.8+0507_daily_bin571.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/251580/ltcube_387331201_387590401_4FGL_J0809.8+0507_daily_bin571.fits
.....................!
real 189.98
user 185.12
sys 4.50

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/251580/ft1_filtered_4FGL_J0809.8+0507_daily_bin571.fits scfile=/scratch/kocevski/251580/ft2_4FGL_J0809.8+0507_daily_bin571.fits outfile=/scratch/kocevski/251580/cmap_387331201_387590401_4FGL_J0809.8+0507_daily_bin571.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.81
user 0.37
sys 0.43

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/251580/ft1_filtered_4FGL_J0809.8+0507_daily_bin571.fits scfile=/scratch/kocevski/251580/ft2_4FGL_J0809.8+0507_daily_bin571.fits outfile=/scratch/kocevski/251580/cmap_HighResolution_387331201_387590401_4FGL_J0809.8+0507_daily_bin571.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.78
user 0.36
sys 0.41

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.186       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.100       1.0000         .10000E-03   10000.    
     3 'norm      '    2.9736       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4665       1.0000         .10000E-03   10000.    
     6 'norm      '    17.571       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.111       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.1291       1.0000         .10000E-03   10000.    
    12 'norm      '    7.3503       1.0000         .10000E-03   10000.    
    13 'norm      '    1.0358       1.0000         .10000E-03   10000.    
    14 'norm      '    .51433       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .22094E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.7094       1.0000         .10000E-03   10000.    
    18 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .82220       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1775       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=   5879.521     FROM MIGRAD    STATUS=CONVERGED    462 CALLS     2228 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.215        53.148        .10447E-05    .46998E-04
   2  Prefactor     20.096        27.183        .16130E-06   -.35077E-05
   3  norm          2.9731        2.0618        .77587E-07   -.35222E-04
   4  Prefactor     .10000E-03    28.933       -.85201E-06** at limit **
   5  Prefactor     2.4657        4.3295        .61735E-06    .53625E-04
   6  norm          17.567        31.202        .14453E-05    .39097E-05
   7  Prefactor     11.117        20.085       -.79645E-06   -.19216E-04
   8  Prefactor     .10000E-03    55.530        .20737E-06** at limit **
   9  Prefactor     .10000E-03    9.0488       -.33047E-07** at limit **
  10  Prefactor     .10000E-03    13.822        .21487E-08** at limit **
  11  norm          4.1289        6.9747        .15562E-06   -.36098E-04
  12  norm          7.3506        3.7207        .65838E-07   -.15968E-04
  13  norm          1.0153        22.009        .16569E-05   -.21997E-03
  14  norm          .51358        3.4080        .23131E-05    .73465E-04
  15  Prefactor     .10000E-03    187.78       -.41059E-06** at limit **
  16  Prefactor     .10000E-03    26.292        .11096E-05** at limit **
  17  norm          5.7098        1.7253        .39843E-08   -.22109E-03
  18  norm          .10000E-03    7.2516        .26723E-07** at limit **
  19  Prefactor     .10000E-03    15.279       -.50132E-07** at limit **
  20  Normalizat    .82207        .22698        .10334E-05   -.13327E-03
  21  Prefactor     1.1776        .15669       -.12104E-05   -.10741E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.2154
  Prefactor  = 20.0959
  norm       = 2.97306
  Prefactor  = 0.000100001
  Prefactor  = 2.46566
  norm       = 17.5668
  Prefactor  = 11.1174
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.12891
  norm       = 7.35055
  norm       = 1.01533
  norm       = 0.513576
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 5.70976
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.822067
  Prefactor  = 1.17761
 **********
 **   18 **HESSE 
 **********

 FCN=   5879.521     FROM HESSE     STATUS=OK           319 CALLS     2547 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.215        53.406        .78284E-04   -1.4683    
   2  Prefactor     20.096        27.190        .89337E-04   -1.4811    
   3  norm          2.9731        2.0577        .87098E-04   -1.5363    
   4  Prefactor     .10000E-03    29.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.4657        4.3288        .19426E-03   -1.5394    
   6  norm          17.567        31.143        .47774E-03   -1.4869    
   7  Prefactor     11.117        20.013        .12019E-03   -1.5041    
   8  Prefactor     .10000E-03    55.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.3584        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.1289        6.9574        .19837E-03   -1.5302    
  12  norm          7.3506        3.7198        .10146E-03   -1.5166    
  13  norm          1.0153        122.64        .63210E-02   -1.5506    
  14  norm          .51358        3.4839        .27561E-03   -1.5565    
  15  Prefactor     .10000E-03    191.93        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    26.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.7098        1.7290        .52417E-04   -1.5230    
  18  norm          .10000E-03    7.2911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .82207        .25120        .34138E-03   -.99255    
  21  Prefactor     1.1776        .17359        .20252E-03   -.87023    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7626e-09
Minuit parameter uncertainties:
  1  53.5032
  2  27.2068
  3  2.05775
  4  0.00033992
  5  4.32935
  6  31.1715
  7  20.0248
  8  0.000155892
  9  3.43743e-06
  10  9.25971e-07
  11  6.95877
  12  3.71995
  13  22.3635
  14  2.67521
  15  0.000898062
  16  0.00029784
  17  1.72897
  18  3.80523e-06
  19  2.3951e-05
  20  0.251551
  21  0.173673
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.015e+00  2.236e+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.178e+00  1.737e-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.221e-01  2.516e-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: 9.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.58e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/251580/likelihoodResults_387331201_387590401_4FGL_J0809.8+0507_daily_bin571.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) = 5879.5106638
delta logL = 0.0102634339873

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5879.47862978
delta logL = 0.0422974565545

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5636       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5525       1.0000          .0000       5.0000    
     3 'Normalizat'    .82311       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1741       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=   5879.479     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      250 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5672        20.845        .17033E-03   -.13810E-03
   2  alpha         1.5464        3.2718        .91329E-02    .18622E-05
   3  Normalizat    .82336        .23533        .34110E-03   -.39662E-04
   4  Prefactor     1.1741        .16559        .20278E-03   -.37720E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.56725
  alpha      = 1.54645
  Normalizat = 0.823362
  Prefactor  = 1.17411
 **********
 **   18 **HESSE 
 **********

 FCN=   5879.479     FROM HESSE     STATUS=OK            23 CALLS      273 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5672        20.909        .68130E-05   -1.5236    
   2  alpha         1.5464        3.2716        .36532E-03   -.39133    
   3  Normalizat    .82336        .23547        .13644E-04   -.99208    
   4  Prefactor     1.1741        .16568        .40556E-04   -.87132    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43132e-10
Minuit parameter uncertainties:
  1  20.9363
  2  2.84533
  3  0.235765
  4  0.165756
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251580': 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) = 5879.47862491
delta logL = 0.0423023248304

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  5.567e+00  2.094e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  1.546e+00  2.845e+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.174e+00  1.658e-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.234e-01  2.358e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/251580/cmap_HighResolution_387331201_387590401_4FGL_J0809.8+0507_daily_bin571.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.58e-05', job_status='DONE', photon_flux_upper_limit='9.81e-08', time_completed='2021-08-29 09:09:31.617533', job_id='251580', GAL2='1.17', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1630253371.62', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='4.23e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='571' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:09:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 251580: <4FGL_J0809.8+0507_daily_bin571> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin571 122.453 5.1313 387331201 387590401 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 :                                   593.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             232.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            840 sec.

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

