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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin646
RA = 122.453, Dec = 5.1313
tmin = 406771201, tmax = 407030401
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='251699', job_status='RUN', time_executed='2021-08-29 08:59:33.694395', time_epoch_executed='1630252773.69' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='646'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251699

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251699/ft1_4FGL_J0809.8+0507_daily_bin646.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251699/ft2_4FGL_J0809.8+0507_daily_bin646.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/251699/ft1_4FGL_J0809.8+0507_daily_bin646.fits outfile=/scratch/kocevski/251699/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin646.fits ra=122.453 dec=5.1313 rad=12.0 tmin=406771201.0 tmax=407030401.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.45
user 3.18
sys 1.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/251699/ft1_filtered_4FGL_J0809.8+0507_daily_bin646.fits" evtable="EVENTS" scfile=/scratch/kocevski/251699/ft2_4FGL_J0809.8+0507_daily_bin646.fits sctable="SC_DATA" outfile=/scratch/kocevski/251699/ltcube_406771201_407030401_4FGL_J0809.8+0507_daily_bin646.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/251699/ft2_4FGL_J0809.8+0507_daily_bin646.fits
.....................!
real 12.64
user 11.25
sys 1.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251699/ft1_filtered_4FGL_J0809.8+0507_daily_bin646.fits evtable="EVENTS" scfile=/scratch/kocevski/251699/ft2_4FGL_J0809.8+0507_daily_bin646.fits sctable="SC_DATA" expcube=/scratch/kocevski/251699/ltcube_406771201_407030401_4FGL_J0809.8+0507_daily_bin646.fits outfile=/scratch/kocevski/251699/expmap_406771201_407030401_4FGL_J0809.8+0507_daily_bin646.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/251699/ltcube_406771201_407030401_4FGL_J0809.8+0507_daily_bin646.fits
.....................!
real 191.76
user 185.40
sys 5.99

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/251699/ft1_filtered_4FGL_J0809.8+0507_daily_bin646.fits scfile=/scratch/kocevski/251699/ft2_4FGL_J0809.8+0507_daily_bin646.fits outfile=/scratch/kocevski/251699/cmap_406771201_407030401_4FGL_J0809.8+0507_daily_bin646.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 1.58
user 0.38
sys 1.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/251699/ft1_filtered_4FGL_J0809.8+0507_daily_bin646.fits scfile=/scratch/kocevski/251699/ft2_4FGL_J0809.8+0507_daily_bin646.fits outfile=/scratch/kocevski/251699/cmap_HighResolution_406771201_407030401_4FGL_J0809.8+0507_daily_bin646.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 1.56
user 0.38
sys 1.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    108.22       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.6768       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15738E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.2344       1.0000         .10000E-03   10000.    
     6 'norm      '    3.5073       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.0420       1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.745       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10484E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .26307       1.0000         .10000E-03   10000.    
    12 'norm      '    3.4512       1.0000         .10000E-03   10000.    
    13 'norm      '    35.557       1.0000         .10000E-03   10000.    
    14 'norm      '    .85450       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.1121       1.0000         .10000E-03   10000.    
    18 'norm      '    4.0642       1.0000         .10000E-03   10000.    
    19 'Prefactor '    41.557       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1572       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92174       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=   6202.079     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     2232 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     108.22        61.518        .13333E-05    .20567E-04
   2  Prefactor     .10000E-03    17.171       -.78639E-06** at limit **
   3  norm          1.6772        2.0249        .33945E-06   -.26424E-04
   4  Prefactor     .10000E-03    56.739        .10660E-04** at limit **
   5  Prefactor     4.2354        3.6820        .24786E-05   -.32343E-03
   6  norm          3.4388        76.758        .33624E-06   -.84672E-04
   7  Prefactor     8.0844        25.455       -.17893E-05    .74671E-04
   8  Prefactor     25.775        96.012        .12833E-04    .27404E-04
   9  Prefactor     .10000E-03    1.9126       -.43574E-07** at limit **
  10  Prefactor     .10000E-03    23.904        .39684E-05** at limit **
  11  norm          .31547        5.9426       -.26219E-06    .12603E-03
  12  norm          3.4510        2.4961        .97005E-07   -.11529E-04
  13  norm          35.551        28.035        .83796E-07   -.81011E-04
  14  norm          .85357        4.5219        .21346E-05    .43434E-05
  15  Prefactor     .10000E-03    31.914       -.76890E-05** at limit **
  16  Prefactor     .10000E-03    4.6712        .18321E-06** at limit **
  17  norm          1.1122        .87882        .97958E-07   -.67889E-04
  18  norm          4.0643        7.1856        .23053E-05    .81631E-04
  19  Prefactor     41.590        32.727        .57744E-05    .13426E-03
  20  Normalizat    1.1572        .20992       -.48216E-05    .39854E-04
  21  Prefactor     .92165        .14029        .10544E-05   -.34105E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 108.222
  Prefactor  = 0.0001
  norm       = 1.67719
  Prefactor  = 0.000100002
  Prefactor  = 4.23535
  norm       = 3.43879
  Prefactor  = 8.08442
  Prefactor  = 25.7748
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.315469
  norm       = 3.45105
  norm       = 35.5512
  norm       = 0.853571
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.11217
  norm       = 4.0643
  Prefactor  = 41.5896
  Normalizat = 1.15721
  Prefactor  = 0.921651
 **********
 **   18 **HESSE 
 **********

 FCN=   6202.079     FROM HESSE     STATUS=OK           319 CALLS     2551 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     108.22        61.680        .38662E-04   -1.3624    
   2  Prefactor     .10000E-03    17.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.6772        2.0102        .11517E-03   -1.5449    
   4  Prefactor     .10000E-03    57.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.2354        3.7465        .66354E-03   -1.5296    
   6  norm          3.4388        76.027        .21588E-03   -1.5337    
   7  Prefactor     8.0844        25.220        .14138E-03   -1.5139    
   8  Prefactor     25.775        96.201        .78950E-04   -1.4692    
   9  Prefactor     .10000E-03    1.9137        .10636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .31547        30.174        .36792E-02   -1.5596    
  12  norm          3.4510        2.4928        .10263E-03   -1.5336    
  13  norm          35.551        28.024        .67207E-04   -1.4515    
  14  norm          .85357        4.5048        .31385E-03   -1.5523    
  15  Prefactor     .10000E-03    32.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.6804        .16623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.1122        .87216        .62995E-04   -1.5497    
  18  norm          4.0643        7.1820        .20000E-03   -1.5305    
  19  Prefactor     41.590        32.865        .62183E-04   -1.4417    
  20  Normalizat    1.1572        .24183        .27705E-03   -.87935    
  21  Prefactor     .92165        .16380        .21478E-03   -.95389    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61403e-09
Minuit parameter uncertainties:
  1  61.7164
  2  3.52652e-06
  3  2.01026
  4  0.000597216
  5  3.74675
  6  32.3845
  7  25.2534
  8  96.7879
  9  1.10638e-06
  10  0.000173403
  11  6.17279
  12  2.4929
  13  28.0341
  14  3.92207
  15  0.000254365
  16  7.85678e-06
  17  0.87217
  18  7.18347
  19  32.8795
  20  0.242065
  21  0.163889
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  3.555e+01  2.803e+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:  9.217e-01  1.639e-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.157e+00  2.421e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.22
Ra Dec: 122.453 5.131
Photon Index (Fixed Index): 2.82 +/- 0.00
Photon Flux (Fixed Index): 5.70e-08 +/- 4.50e-08
Energy Flux (Fixed Index): 1.50e-05 +/- 1.18e-05

TS (Fixed Index): 2.22
Ra Dec: 122.453 5.131
Photon Flux Upper Limit: 1.46e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.85e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/251699/likelihoodResults_406771201_407030401_4FGL_J0809.8+0507_daily_bin646.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) = 6201.51293816
delta logL = 0.565852727384

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6201.51238586
delta logL = 0.566405022075

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.155       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.0868       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0989       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95173       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=   6201.512     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      270 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.247        299.21        .22878E-02   -.24837E-03
   2  alpha         4.0871        2.5128        .50000       -.23021E-05
   3  Normalizat    1.0987        .96867E-01    .64041E-01   -.24387E-04
   4  Prefactor     .95169        .70296E-01    .45661E-01   -.15370E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 19.247
  alpha      = 4.0871
  Normalizat = 1.09872
  Prefactor  = 0.951691
 **********
 **   18 **HESSE 
 **********

 FCN=   6201.512     FROM HESSE     STATUS=OK            33 CALLS      303 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.247        29.785        .91514E-04   -1.4830    
   2  alpha         4.0871        1.3813        .26786E-01    .68780    
   3  Normalizat    1.0987        .23727        .28328E-03   -.89793    
   4  Prefactor     .95169        .16295        .21178E-03   -.94358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.20066e-11
Minuit parameter uncertainties:
  1  29.8078
  2  1.53899
  3  0.237502
  4  0.163037
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251699': 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) = 6201.51235465
delta logL = 0.566436235379

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.925e+01  2.981e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  4.087e+00  1.539e+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:  9.517e-01  1.630e-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.099e+00  2.375e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.50
Ra Dec: 122.453 5.131
Photon Index (Free Index): 4.09 +/- 1.54
Photon Flux (Free Index): 9.17e-08 +/- 6.04e-08
Energy Flux (Free Index): 1.69e-05 +/- 1.15e-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/251699/cmap_HighResolution_406771201_407030401_4FGL_J0809.8+0507_daily_bin646.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.85e-05', comment='SUCCESS', photon_flux='5.70e-08', energy_flux2='1.69e-05', photon_flux_error='4.50e-08', dlogl='5.66e-01', energy_flux='1.50e-05', photon_flux2='9.17e-08', job_status='DONE', time_completed='2021-08-29 09:09:55.331276', photon_index_error2='1.54', photon_index2='4.09', ts='2.22', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.46e-07', energy_flux_error2='1.15e-05', EG='1.16', time_epoch_completed='1630253395.33', return_code='0', job_id='251699', GAL2='0.95', EG2='1.10', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='6.04e-08', ts2='3.50', photon_index='2.82' WHERE bin_id='646' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:09:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 251699: <4FGL_J0809.8+0507_daily_bin646> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin646 122.453 5.1313 406771201 407030401 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 :                                   637.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            852 sec.

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

