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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin589
RA = 122.453, Dec = 5.1313
tmin = 391996801, tmax = 392256001
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='251608', job_status='RUN', time_executed='2021-08-29 08:58:41.030984', time_epoch_executed='1630252721.03' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='589'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251608

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251608/ft1_4FGL_J0809.8+0507_daily_bin589.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251608/ft2_4FGL_J0809.8+0507_daily_bin589.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/251608/ft1_4FGL_J0809.8+0507_daily_bin589.fits outfile=/scratch/kocevski/251608/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin589.fits ra=122.453 dec=5.1313 rad=12.0 tmin=391996801.0 tmax=392256001.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 5.68
user 5.08
sys 0.56

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251608/ft1_filtered_4FGL_J0809.8+0507_daily_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/251608/ft2_4FGL_J0809.8+0507_daily_bin589.fits sctable="SC_DATA" expcube=/scratch/kocevski/251608/ltcube_391996801_392256001_4FGL_J0809.8+0507_daily_bin589.fits outfile=/scratch/kocevski/251608/expmap_391996801_392256001_4FGL_J0809.8+0507_daily_bin589.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/251608/ltcube_391996801_392256001_4FGL_J0809.8+0507_daily_bin589.fits
.....................!
real 190.42
user 185.15
sys 4.81

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/251608/ft1_filtered_4FGL_J0809.8+0507_daily_bin589.fits scfile=/scratch/kocevski/251608/ft2_4FGL_J0809.8+0507_daily_bin589.fits outfile=/scratch/kocevski/251608/cmap_391996801_392256001_4FGL_J0809.8+0507_daily_bin589.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.88
user 0.37
sys 0.48

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/251608/ft1_filtered_4FGL_J0809.8+0507_daily_bin589.fits scfile=/scratch/kocevski/251608/ft2_4FGL_J0809.8+0507_daily_bin589.fits outfile=/scratch/kocevski/251608/cmap_HighResolution_391996801_392256001_4FGL_J0809.8+0507_daily_bin589.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.87
user 0.38
sys 0.48

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10532E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.1348       1.0000         .10000E-03   10000.    
     3 'norm      '    .10738E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.3056       1.0000         .10000E-03   10000.    
     6 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.1282       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.2991       1.0000         .10000E-03   10000.    
    13 'norm      '    52.552       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.006       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.1966       1.0000         .10000E-03   10000.    
    18 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.685       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .63479       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1752       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=   5374.467     FROM MIGRAD    STATUS=CONVERGED    454 CALLS     2172 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    58.412        .19877E-04** at limit **
   2  Prefactor     5.0936        56.346       -.88074E-04   -.25129E-04
   3  norm          .10000E-03    1.0828        .69110E-06** at limit **
   4  Prefactor     .10000E-03    9.7645       -.44772E-06** at limit **
   5  Prefactor     2.3058        3.2371       -.46796E-06   -.48348E-03
   6  norm          .10000E-03    12.222        .53448E-06** at limit **
   7  Prefactor     8.1271        8.0541        .11199E-06    .32124E-04
   8  Prefactor     .10000E-03    65.290       -.76624E-05** at limit **
   9  Prefactor     .10000E-03    2.6264       -.61471E-07** at limit **
  10  Prefactor     .10000E-03    40.132       -.64067E-05** at limit **
  11  norm          .10000E-03    6.6365        .59947E-07** at limit **
  12  norm          1.2993        2.6742       -.10548E-05   -.85405E-03
  13  norm          52.549        28.758       -.11153E-05    .67590E-04
  14  norm          .10000E-03    1.3289       -.40240E-07** at limit **
  15  Prefactor     12.005        27.146       -.11331E-05    .40630E-05
  16  Prefactor     .10000E-03    5.2119       -.13540E-05** at limit **
  17  norm          4.1969        1.5201       -.15694E-06   -.28136E-05
  18  norm          .10000E-03    5.1706        .10807E-05** at limit **
  19  Prefactor     25.686        42.802        .95084E-06    .89261E-05
  20  Normalizat    .63471        .22376        .46341E-06    .11002E-03
  21  Prefactor     1.1752        .15107        .37062E-05   -.23191E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.0936
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.30578
  norm       = 0.0001
  Prefactor  = 8.12709
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.29934
  norm       = 52.5491
  norm       = 0.0001
  Prefactor  = 12.0051
  Prefactor  = 0.0001
  norm       = 4.19691
  norm       = 0.0001
  Prefactor  = 25.6864
  Normalizat = 0.634706
  Prefactor  = 1.17521
 **********
 **   18 **HESSE 
 **********

 FCN=   5374.467     FROM HESSE     STATUS=OK           313 CALLS     2485 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    58.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.0936        56.773        .17742E-03   -1.5257    
   3  norm          .10000E-03    2.0161        .14711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.7672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.3058        3.2291        .14724E-03   -1.5404    
   6  norm          .10000E-03    12.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.1271        8.0490        .14063E-03   -1.5138    
   8  Prefactor     .10000E-03    65.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.6293        .11602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    40.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.6849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.2993        2.6547        .16577E-03   -1.5480    
  13  norm          52.549        28.726        .55326E-04   -1.4257    
  14  norm          .10000E-03    1.3355        .82519E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.005        27.151        .11561E-03   -1.5015    
  16  Prefactor     .10000E-03    5.2197        .16346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.1969        1.5203        .51609E-04   -1.5298    
  18  norm          .10000E-03    5.1955        .16275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     25.686        42.905        .79043E-04   -1.4694    
  20  Normalizat    .63471        .25158        .35028E-03   -1.0653    
  21  Prefactor     1.1752        .16996        .18413E-03   -.87098    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69383e-09
Minuit parameter uncertainties:
  1  0.000257664
  2  34.0511
  3  0.000102275
  4  8.86639e-06
  5  3.22938
  6  7.24833e-06
  7  8.05006
  8  3.5098e-05
  9  2.76891e-06
  10  5.56051e-05
  11  2.71247e-05
  12  2.65493
  13  28.7335
  14  2.2054e-06
  15  27.1785
  16  1.02002e-05
  17  1.5203
  18  2.35162e-05
  19  42.9563
  20  0.25204
  21  0.170043
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  5.255e+01  2.873e+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.175e+00  1.700e-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:  6.347e-01  2.520e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.66
Ra Dec: 122.453 5.131
Photon Index (Fixed Index): 2.82 +/- 0.00
Photon Flux (Fixed Index): 8.43e-08 +/- 4.61e-08
Energy Flux (Fixed Index): 2.22e-05 +/- 1.21e-05

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) = 5370.72382634
delta logL = 3.74361161111

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5370.67622484
delta logL = 3.79121311296

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    43.412       1.0000         .10000E-03   10000.    
     2 'alpha     '    .43301       1.0000          .0000       5.0000    
     3 'Normalizat'    .72012       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1270       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=   5370.676     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      216 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          43.412        24.181        .15211E-02    .10045E-02
   2  alpha         .43293        .65958        .50000        .20952E-04
   3  Normalizat    .72009        .20710        .74577E-01    .22747E-04
   4  Prefactor     1.1270        .14461        .36642E-01   -.12282E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 43.4117
  alpha      = 0.432934
  Normalizat = 0.720088
  Prefactor  = 1.12698
 **********
 **   18 **HESSE 
 **********

 FCN=   5370.676     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          43.412        31.236        .60846E-04   -1.4389    
   2  alpha         .43293        .73420        .28865E-01   -.97344    
   3  Normalizat    .72009        .23551        .33012E-03   -1.0311    
   4  Prefactor     1.1270        .16488        .18698E-03   -.88609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42108e-09
Minuit parameter uncertainties:
  1  31.248
  2  0.772474
  3  0.235844
  4  0.164951
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251608': 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) = 5370.67622482
delta logL = 3.79121313705

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  4.341e+01  3.125e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  4.329e-01  7.725e-01  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.127e+00  1.650e-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:  7.201e-01  2.358e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.30
Ra Dec: 122.453 5.131
Photon Index (Free Index): 0.43 +/- 0.77
Photon Flux (Free Index): 4.05e-08 +/- 2.19e-08
Energy Flux (Free Index): 3.39e-05 +/- 1.65e-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/251608/cmap_HighResolution_391996801_392256001_4FGL_J0809.8+0507_daily_bin589.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.43e-08', energy_flux2='3.39e-05', photon_flux_error='4.61e-08', dlogl='3.79e+00', energy_flux='2.22e-05', photon_flux2='4.05e-08', job_status='DONE', time_completed='2021-08-29 09:07:27.913940', photon_index_error2='0.77', photon_index2='0.43', ts='8.66', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='1.65e-05', EG='0.63', time_epoch_completed='1630253247.91', return_code='0', job_id='251608', GAL2='1.13', EG2='0.72', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='2.19e-08', ts2='16.30', photon_index='2.82' WHERE bin_id='589' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:07:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 251608: <4FGL_J0809.8+0507_daily_bin589> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin589 122.453 5.1313 391996801 392256001 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 :                                   531.04 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             260.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            714 sec.

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

