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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin248
RA = 122.453, Dec = 5.1313
tmin = 303609601, tmax = 303868801
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='250011', job_status='RUN', time_executed='2021-08-29 08:52:25.040581', time_epoch_executed='1630252345.04' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='248'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250011

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250011/ft1_4FGL_J0809.8+0507_daily_bin248.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250011/ft2_4FGL_J0809.8+0507_daily_bin248.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250011/ft1_4FGL_J0809.8+0507_daily_bin248.fits outfile=/scratch/kocevski/250011/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin248.fits ra=122.453 dec=5.1313 rad=12.0 tmin=303609601.0 tmax=303868801.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.55
user 3.17
sys 0.35

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250011/ft1_filtered_4FGL_J0809.8+0507_daily_bin248.fits" evtable="EVENTS" scfile=/scratch/kocevski/250011/ft2_4FGL_J0809.8+0507_daily_bin248.fits sctable="SC_DATA" outfile=/scratch/kocevski/250011/ltcube_303609601_303868801_4FGL_J0809.8+0507_daily_bin248.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/250011/ft2_4FGL_J0809.8+0507_daily_bin248.fits
.....................!
real 11.92
user 11.40
sys 0.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250011/ft1_filtered_4FGL_J0809.8+0507_daily_bin248.fits evtable="EVENTS" scfile=/scratch/kocevski/250011/ft2_4FGL_J0809.8+0507_daily_bin248.fits sctable="SC_DATA" expcube=/scratch/kocevski/250011/ltcube_303609601_303868801_4FGL_J0809.8+0507_daily_bin248.fits outfile=/scratch/kocevski/250011/expmap_303609601_303868801_4FGL_J0809.8+0507_daily_bin248.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/250011/ltcube_303609601_303868801_4FGL_J0809.8+0507_daily_bin248.fits
.....................!
real 191.84
user 185.88
sys 5.60

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/250011/ft1_filtered_4FGL_J0809.8+0507_daily_bin248.fits scfile=/scratch/kocevski/250011/ft2_4FGL_J0809.8+0507_daily_bin248.fits outfile=/scratch/kocevski/250011/cmap_303609601_303868801_4FGL_J0809.8+0507_daily_bin248.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.70
user 0.37
sys 0.29

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250011/ft1_filtered_4FGL_J0809.8+0507_daily_bin248.fits scfile=/scratch/kocevski/250011/ft2_4FGL_J0809.8+0507_daily_bin248.fits outfile=/scratch/kocevski/250011/cmap_HighResolution_303609601_303868801_4FGL_J0809.8+0507_daily_bin248.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.68
user 0.38
sys 0.30

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.2569       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .33076       1.0000         .10000E-03   10000.    
     6 'norm      '    .10420E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.006       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.1931       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10623E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.9882       1.0000         .10000E-03   10000.    
    12 'norm      '    3.0810       1.0000         .10000E-03   10000.    
    13 'norm      '    11.188       1.0000         .10000E-03   10000.    
    14 'norm      '    3.9513       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.8021       1.0000         .10000E-03   10000.    
    17 'norm      '    4.1607       1.0000         .10000E-03   10000.    
    18 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    149.19       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .91500       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1076       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=   7684.779     FROM MIGRAD    STATUS=CONVERGED    446 CALLS     2189 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.103        .26519E-05** at limit **
   2  Prefactor     .10000E-03    22.276       -.39728E-05** at limit **
   3  norm          9.2566        2.3466       -.14788E-06    .52065E-05
   4  Prefactor     .10000E-03    10.699       -.11926E-05** at limit **
   5  Prefactor     .30302        1.6490       -.95080E-06    .18839E-03
   6  norm          .10000E-03    10.960       -.69249E-06** at limit **
   7  Prefactor     24.019        14.633       -.55732E-06    .22807E-03
   8  Prefactor     .10000E-03    47.637       -.38898E-05** at limit **
   9  Prefactor     8.1919        8.3820       -.32456E-06   -.70255E-04
  10  Prefactor     .10000E-03    44.692        .10074E-04** at limit **
  11  norm          9.9859        8.0504       -.67880E-06   -.64571E-03
  12  norm          3.0809        3.1574       -.62632E-06   -.67925E-03
  13  norm          11.153        19.428       -.13694E-04   -.76560E-04
  14  norm          3.9504        2.9157        .12965E-06    .11926E-03
  15  Prefactor     .10000E-03    10.047        .11407E-05** at limit **
  16  Prefactor     6.7991        10.489        .78507E-07   -.89602E-05
  17  norm          4.1598        1.4845       -.13441E-06    .41561E-04
  18  norm          .10000E-03    3.9210       -.53508E-06** at limit **
  19  Prefactor     149.16        54.794       -.17586E-04    .15769E-04
  20  Normalizat    .91553        .21360        .66348E-05    .40120E-04
  21  Prefactor     1.1073        .13908       -.47472E-06    .41914E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.25655
  Prefactor  = 0.0001
  Prefactor  = 0.303022
  norm       = 0.0001
  Prefactor  = 24.0193
  Prefactor  = 0.0001
  Prefactor  = 8.19194
  Prefactor  = 0.000100004
  norm       = 9.9859
  norm       = 3.08089
  norm       = 11.1535
  norm       = 3.9504
  Prefactor  = 0.0001
  Prefactor  = 6.79911
  norm       = 4.15979
  norm       = 0.0001
  Prefactor  = 149.165
  Normalizat = 0.915527
  Prefactor  = 1.10733
 **********
 **   18 **HESSE 
 **********

 FCN=   7684.779     FROM HESSE     STATUS=OK           321 CALLS     2510 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.2566        2.3515        .64385E-04   -1.5099    
   4  Prefactor     .10000E-03    10.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .30302        9.8545        .20685E-02   -1.5598    
   6  norm          .10000E-03    10.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     24.019        14.609        .81756E-04   -1.4727    
   8  Prefactor     .10000E-03    47.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.1919        8.3573        .14006E-03   -1.5135    
  10  Prefactor     .10000E-03    45.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.9859        8.0697        .63395E-03   -1.5076    
  12  norm          3.0809        3.1499        .14786E-03   -1.5357    
  13  norm          11.153        19.517        .11977E-03   -1.5040    
  14  norm          3.9504        2.9162        .12441E-03   -1.5310    
  15  Prefactor     .10000E-03    10.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.7991        10.492        .15384E-03   -1.5186    
  17  norm          4.1598        1.4879        .59970E-04   -1.5300    
  18  norm          .10000E-03    3.9359        .16951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     149.16        54.602        .16498E-03   -1.3259    
  20  Normalizat    .91553        .24289        .34040E-03   -.95917    
  21  Prefactor     1.1073        .15919        .21416E-03   -.89233    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18151e-09
Minuit parameter uncertainties:
  1  1.0023e-05
  2  4.89683e-05
  3  2.35154
  4  1.1255e-05
  5  3.45614
  6  4.94372e-06
  7  14.6111
  8  8.10351e-06
  9  8.35854
  10  0.000861219
  11  8.07058
  12  3.15005
  13  19.5284
  14  2.91628
  15  3.15489e-05
  16  10.4949
  17  1.48794
  18  1.61172e-05
  19  54.6209
  20  0.243184
  21  0.159258
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.115e+01  1.953e+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.107e+00  1.593e-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:  9.155e-01  2.432e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/250011/likelihoodResults_303609601_303868801_4FGL_J0809.8+0507_daily_bin248.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) = 7684.64464986
delta logL = 0.133906726936

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7684.64042209
delta logL = 0.138134494394

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.5548       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8502       1.0000          .0000       5.0000    
     3 'Normalizat'    .89458       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1166       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7684.640     FROM MIGRAD    STATUS=FAILED       101 CALLS      312 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.5457        21.036        .68527E-03   -.10684E-04
   2  alpha         3.8518        3.9773        .58383E-01    .11755E-03
   3  Normalizat    .89442        .23409        .34403E-03   -.35656E-04
   4  Prefactor     1.1167        .15836        .21338E-03    .36071E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7684.640     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      386 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.5457        21.036        .27941E-03   -1.5123    
   2  alpha         3.8518        3.9773        .56151E-02    .57127    
   3  Normalizat    .89442        .23409        .33906E-03   -.96656    
   4  Prefactor     1.1167        .15836        .20141E-03   -.88936    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7684.640     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      416 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.5457        16.700        .27411E-04    .45623E-05
   2  alpha         3.8518        3.6994        .11677E-01    .45054E-05
   3  Normalizat    .89442        .23417        .13761E-04    .16523E-06
   4  Prefactor     1.1167        .15823        .85350E-05    .26640E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 8.54567
  alpha      = 3.85175
  Normalizat = 0.894423
  Prefactor  = 1.11665
 **********
 **   18 **HESSE 
 **********

 FCN=   7684.640     FROM HESSE     STATUS=OK            25 CALLS      441 TOTAL
                     EDM=   .15E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.5457        16.269        .10964E-05   -1.5123    
   2  alpha         3.8518        1.7426        .23353E-02    .57127    
   3  Normalizat    .89442        .23398        .27523E-05   -.96656    
   4  Prefactor     1.1167        .15809        .17070E-05   -.88936    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50396e-13
Minuit parameter uncertainties:
  1  16.2775
  2  2.05396
  3  0.234244
  4  0.158157
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250011': 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) = 7684.64042163
delta logL = 0.138134955791

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  8.546e+00  1.628e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  3.852e+00  2.054e+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.117e+00  1.582e-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.944e-01  2.342e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.41
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/250011/cmap_HighResolution_303609601_303868801_4FGL_J0809.8+0507_daily_bin248.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.42e-05', job_status='DONE', photon_flux_upper_limit='9.20e-08', time_completed='2021-08-29 09:03:50.520925', job_id='250011', GAL2='1.12', fit_tolerance='1e-08', EG2='0.89', EG='0.92', time_epoch_completed='1630253030.52', return_code2='0', ts='0.41', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.38e-01', ts2='0.70', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='248' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:03:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 250011: <4FGL_J0809.8+0507_daily_bin248> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin248 122.453 5.1313 303609601 303868801 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 :                                   686.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            809 sec.

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

