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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin251
RA = 122.453, Dec = 5.1313
tmin = 304387201, tmax = 304646401
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='250016', job_status='RUN', time_executed='2021-08-29 08:53:49.707840', time_epoch_executed='1630252429.71' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='251'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250016

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250016/ft1_4FGL_J0809.8+0507_daily_bin251.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250016/ft2_4FGL_J0809.8+0507_daily_bin251.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250016/ft1_4FGL_J0809.8+0507_daily_bin251.fits outfile=/scratch/kocevski/250016/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin251.fits ra=122.453 dec=5.1313 rad=12.0 tmin=304387201.0 tmax=304646401.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 8.32
user 3.88
sys 4.37

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250016/ft1_filtered_4FGL_J0809.8+0507_daily_bin251.fits" evtable="EVENTS" scfile=/scratch/kocevski/250016/ft2_4FGL_J0809.8+0507_daily_bin251.fits sctable="SC_DATA" outfile=/scratch/kocevski/250016/ltcube_304387201_304646401_4FGL_J0809.8+0507_daily_bin251.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/250016/ft2_4FGL_J0809.8+0507_daily_bin251.fits
.....................!
real 16.36
user 11.26
sys 5.04

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250016/ft1_filtered_4FGL_J0809.8+0507_daily_bin251.fits evtable="EVENTS" scfile=/scratch/kocevski/250016/ft2_4FGL_J0809.8+0507_daily_bin251.fits sctable="SC_DATA" expcube=/scratch/kocevski/250016/ltcube_304387201_304646401_4FGL_J0809.8+0507_daily_bin251.fits outfile=/scratch/kocevski/250016/expmap_304387201_304646401_4FGL_J0809.8+0507_daily_bin251.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/250016/ltcube_304387201_304646401_4FGL_J0809.8+0507_daily_bin251.fits
.....................!
real 197.02
user 185.74
sys 10.94

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/250016/ft1_filtered_4FGL_J0809.8+0507_daily_bin251.fits scfile=/scratch/kocevski/250016/ft2_4FGL_J0809.8+0507_daily_bin251.fits outfile=/scratch/kocevski/250016/cmap_304387201_304646401_4FGL_J0809.8+0507_daily_bin251.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 4.65
user 0.37
sys 4.26

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250016/ft1_filtered_4FGL_J0809.8+0507_daily_bin251.fits scfile=/scratch/kocevski/250016/ft2_4FGL_J0809.8+0507_daily_bin251.fits outfile=/scratch/kocevski/250016/cmap_HighResolution_304387201_304646401_4FGL_J0809.8+0507_daily_bin251.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 4.70
user 0.40
sys 4.27

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18904E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .15492E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.9151       1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.663       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7979       1.0000         .10000E-03   10000.    
     6 'norm      '    5.9670       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.196       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.640       1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.832       1.0000         .10000E-03   10000.    
    11 'norm      '    18.571       1.0000         .10000E-03   10000.    
    12 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.3580       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.2773       1.0000         .10000E-03   10000.    
    17 'norm      '    5.5358       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    94.191       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .89737       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0722       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=   6098.045     FROM MIGRAD    STATUS=CONVERGED    441 CALLS     2238 TOTAL
                     EDM=   .59E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    362.04       -.11546E-04** at limit **
   2  Prefactor     .10000E-03    101.69        .82195E-07** at limit **
   3  norm          4.9134        2.3236       -.27879E-07    .53938E-04
   4  Prefactor     34.663        32.968        .25397E-06   -.10485E-05
   5  Prefactor     1.8005        4.2401        .11039E-05   -.21704E-05
   6  norm          5.9618        41.388        .11376E-05   -.10433E-04
   7  Prefactor     13.199        24.288       -.54754E-06   -.39032E-04
   8  Prefactor     .10000E-03    45.708       -.34970E-07** at limit **
   9  Prefactor     17.642        8.9757        .66994E-07    .64223E-05
  10  Prefactor     34.851        31.909        .82014E-07   -.48550E-05
  11  norm          18.575        11.921        .46322E-07   -.61631E-05
  12  norm          .10000E-03    .89600        .48018E-07** at limit **
  13  norm          .10000E-03    6.4295        .50999E-07** at limit **
  14  norm          2.3594        5.2012        .11322E-05   -.15724E-04
  15  Prefactor     .10000E-03    12.580        .18508E-07** at limit **
  16  Prefactor     6.2905        17.339        .91020E-06   -.12625E-04
  17  norm          5.5373        1.6844        .58360E-07   -.76675E-04
  18  norm          .10000E-03    2.5728       -.34508E-08** at limit **
  19  Prefactor     94.215        54.488        .51737E-06    .75956E-05
  20  Normalizat    .89666        .23360       -.12577E-05   -.23071E-04
  21  Prefactor     1.0725        .14605       -.70342E-06   -.24692E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.91337
  Prefactor  = 34.6632
  Prefactor  = 1.80047
  norm       = 5.96175
  Prefactor  = 13.1985
  Prefactor  = 0.0001
  Prefactor  = 17.642
  Prefactor  = 34.8507
  norm       = 18.5752
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.35939
  Prefactor  = 0.0001
  Prefactor  = 6.29053
  norm       = 5.5373
  norm       = 0.0001
  Prefactor  = 94.2145
  Normalizat = 0.896658
  Prefactor  = 1.07248
 **********
 **   18 **HESSE 
 **********

 FCN=   6098.045     FROM HESSE     STATUS=OK           321 CALLS     2559 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    364.25        .40558E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    102.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.9134        2.3237        .77679E-04   -1.5265    
   4  Prefactor     34.663        33.004        .68065E-04   -1.4530    
   5  Prefactor     1.8005        4.2348        .21945E-03   -1.5440    
   6  norm          5.9618        39.744        .16438E-03   -1.5220    
   7  Prefactor     13.199        23.784        .11027E-03   -1.4981    
   8  Prefactor     .10000E-03    45.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.642        8.9743        .95360E-04   -1.4868    
  10  Prefactor     34.851        31.983        .67900E-04   -1.4527    
  11  norm          18.575        11.914        .92940E-04   -1.4846    
  12  norm          .10000E-03    .90310        .72196E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.4320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.3594        5.1986        .24898E-03   -1.5401    
  15  Prefactor     .10000E-03    12.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.2905        17.422        .16022E-03   -1.5206    
  17  norm          5.5373        1.6907        .52838E-04   -1.5237    
  18  norm          .10000E-03    2.5750        .12232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     94.215        54.784        .41411E-04   -1.3764    
  20  Normalizat    .89666        .26653        .33683E-03   -.96578    
  21  Prefactor     1.0725        .16552        .21040E-03   -.90351    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47787e-11
Minuit parameter uncertainties:
  1  0.000194342
  2  0.000395283
  3  2.32374
  4  33.0216
  5  4.23554
  6  30.8155
  7  23.8008
  8  1.04101e-05
  9  8.97499
  10  31.999
  11  11.9151
  12  9.45146e-07
  13  3.89738e-09
  14  5.19959
  15  2.30278e-06
  16  17.4362
  17  1.69069
  18  1.79345e-06
  19  54.8131
  20  0.266918
  21  0.165597
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  3.897e-09  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.072e+00  1.656e-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.967e-01  2.669e-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: 5.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.45e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/250016/likelihoodResults_304387201_304646401_4FGL_J0809.8+0507_daily_bin251.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) = 6098.04607082
delta logL = -0.000735556853215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6098.0453353
delta logL = -3.80714482162e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8163       1.0000          .0000       5.0000    
     3 'Normalizat'    .89660       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0725       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=   6098.045     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      197 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.4209        .90712E-02** at limit **
   2  alpha         2.8175        3.6168        .41576       -.95113E-06
   3  Normalizat    .89666        .20827        .76106E-01    .16440E-04
   4  Prefactor     1.0725        .14185        .38739E-01   -.45648E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.81751
  Normalizat = 0.896659
  Prefactor  = 1.07248
 **********
 **   18 **HESSE 
 **********

 FCN=   6098.045     FROM HESSE     STATUS=OK            33 CALLS      230 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.4167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8175        3.6163        .50000        .12735    
   3  Normalizat    .89666        .23244        .33683E-03   -.96578    
   4  Prefactor     1.0725        .15863        .21040E-03   -.90351    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1758e-12
Minuit parameter uncertainties:
  1  6.10452e-06
  2  2.47985
  3  0.2327
  4  0.158695
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250016': 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) = 6098.04533527
delta logL = 9.27684595808e-10

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  6.105e-06  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.818e+00  2.480e+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.072e+00  1.587e-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.967e-01  2.327e-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/250016/cmap_HighResolution_304387201_304646401_4FGL_J0809.8+0507_daily_bin251.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.45e-05', job_status='DONE', photon_flux_upper_limit='5.50e-08', time_completed='2021-08-29 09:04:49.018809', job_id='250016', GAL2='1.07', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1630253089.02', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='9.28e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='251' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:04:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 250016: <4FGL_J0809.8+0507_daily_bin251> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin251 122.453 5.1313 304387201 304646401 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 :                                   726.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            867 sec.

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

