/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 46 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 = 7406
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0809.8+0507_daily_bin526
RA = 122.453, Dec = 5.1313
tmin = 375667201, tmax = 375926401
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='251508', job_status='RUN', time_executed='2021-08-29 08:58:23.600377', time_epoch_executed='1630252703.6' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='526'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251508

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251508/ft1_4FGL_J0809.8+0507_daily_bin526.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251508/ft2_4FGL_J0809.8+0507_daily_bin526.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/251508/ft1_4FGL_J0809.8+0507_daily_bin526.fits outfile=/scratch/kocevski/251508/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin526.fits ra=122.453 dec=5.1313 rad=12.0 tmin=375667201.0 tmax=375926401.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 12.20
user 4.65
sys 7.50

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/251508/ft1_filtered_4FGL_J0809.8+0507_daily_bin526.fits" evtable="EVENTS" scfile=/scratch/kocevski/251508/ft2_4FGL_J0809.8+0507_daily_bin526.fits sctable="SC_DATA" outfile=/scratch/kocevski/251508/ltcube_375667201_375926401_4FGL_J0809.8+0507_daily_bin526.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/251508/ft2_4FGL_J0809.8+0507_daily_bin526.fits
.....................!
real 21.43
user 11.65
sys 9.67

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251508/ft1_filtered_4FGL_J0809.8+0507_daily_bin526.fits evtable="EVENTS" scfile=/scratch/kocevski/251508/ft2_4FGL_J0809.8+0507_daily_bin526.fits sctable="SC_DATA" expcube=/scratch/kocevski/251508/ltcube_375667201_375926401_4FGL_J0809.8+0507_daily_bin526.fits outfile=/scratch/kocevski/251508/expmap_375667201_375926401_4FGL_J0809.8+0507_daily_bin526.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/251508/ltcube_375667201_375926401_4FGL_J0809.8+0507_daily_bin526.fits
.....................!
real 201.52
user 186.95
sys 14.19

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/251508/ft1_filtered_4FGL_J0809.8+0507_daily_bin526.fits scfile=/scratch/kocevski/251508/ft2_4FGL_J0809.8+0507_daily_bin526.fits outfile=/scratch/kocevski/251508/cmap_375667201_375926401_4FGL_J0809.8+0507_daily_bin526.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 7.89
user 0.37
sys 7.44

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/251508/ft1_filtered_4FGL_J0809.8+0507_daily_bin526.fits scfile=/scratch/kocevski/251508/ft2_4FGL_J0809.8+0507_daily_bin526.fits outfile=/scratch/kocevski/251508/cmap_HighResolution_375667201_375926401_4FGL_J0809.8+0507_daily_bin526.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 8.07
user 0.38
sys 7.61

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10739E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.2690       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10529E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .49434E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10790E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10892E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.4459       1.0000         .10000E-03   10000.    
    10 'Prefactor '    35.897       1.0000         .10000E-03   10000.    
    11 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.2511       1.0000         .10000E-03   10000.    
    13 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.4153       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .38476E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.892       1.0000         .10000E-03   10000.    
    17 'norm      '    2.5266       1.0000         .10000E-03   10000.    
    18 'norm      '    1.8346       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .64346       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3950       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .72649       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=   6667.599     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2319 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    58.548        .87240E-07** at limit **
   2  Prefactor     .10000E-03    12.305        .70421E-07** at limit **
   3  norm          3.2686        1.8392       -.87636E-07   -.20110E-03
   4  Prefactor     .10000E-03    9.1338       -.50362E-08** at limit **
   5  Prefactor     .10000E-03    2.0289       -.17687E-06** at limit **
   6  norm          .10001E-03    15.659       -.19294E-06** at limit **
   7  Prefactor     .10000E-03    27.029       -.10711E-06** at limit **
   8  Prefactor     .10000E-03    80.088       -.15449E-05** at limit **
   9  Prefactor     6.4440        7.6791       -.45207E-05    .28573E-03
  10  Prefactor     35.902        30.078       -.22545E-05    .54125E-04
  11  norm          .10000E-03    5.0038        .84881E-07** at limit **
  12  norm          3.2502        2.8748        .31915E-06   -.30974E-03
  13  norm          .10000E-03    10.463        .74325E-07** at limit **
  14  norm          2.4155        3.3819       -.19591E-06   -.46501E-03
  15  Prefactor     .10009E-03    50.375        .10885E-05** at limit **
  16  Prefactor     14.915        18.288       -.20222E-05    .32961E-04
  17  norm          2.5267        1.1908       -.23949E-08   -.11265E-05
  18  norm          1.8310        6.7195       -.27415E-05   -.47343E-03
  19  Prefactor     .64627        22.957       -.21334E-05    .41869E-04
  20  Normalizat    1.3950        .20530        .12544E-05    .66554E-04
  21  Prefactor     .72665        .13055        .51866E-06    .13434E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.26857
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.44404
  Prefactor  = 35.902
  norm       = 0.0001
  norm       = 3.25025
  norm       = 0.0001
  norm       = 2.41548
  Prefactor  = 0.000100086
  Prefactor  = 14.9148
  norm       = 2.52673
  norm       = 1.83099
  Prefactor  = 0.646267
  Normalizat = 1.395
  Prefactor  = 0.726653
 **********
 **   18 **HESSE 
 **********

 FCN=   6667.599     FROM HESSE     STATUS=OK           333 CALLS     2652 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    58.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.2686        1.8399        .79203E-04   -1.5346    
   4  Prefactor     .10000E-03    9.1371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.1297        .22235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10001E-03    127.58        .61409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    27.619        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    80.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.4440        7.5367        .15808E-03   -1.5200    
  10  Prefactor     35.902        30.095        .66889E-04   -1.4509    
  11  norm          .10000E-03    5.0267        .17837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.2502        2.8572        .12292E-03   -1.5347    
  13  norm          .10000E-03    10.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.4155        3.3817        .17150E-03   -1.5397    
  15  Prefactor     .10009E-03    46.061        .13476       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.915        18.382        .10379E-03   -1.4935    
  17  norm          2.5267        1.1903        .57922E-04   -1.5390    
  18  norm          1.8310        7.0793        .30806E-03   -1.5437    
  19  Prefactor     .64627        273.58        .75137E-02   -1.5547    
  20  Normalizat    1.3950        .24103        .25836E-03   -.80773    
  21  Prefactor     .72665        .15412        .23020E-03   -1.0249    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46249e-09
Minuit parameter uncertainties:
  1  5.50138e-05
  2  1.02801e-05
  3  1.83998
  4  8.22194e-07
  5  3.72018e-05
  6  0.00276137
  7  4.53021e-05
  8  8.98048e-05
  9  7.53781
  10  30.1074
  11  1.812e-05
  12  2.85727
  13  1.58706e-05
  14  3.38201
  15  0.00399261
  16  18.3894
  17  1.19031
  18  7.08252
  19  26.7151
  20  0.241229
  21  0.15421
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  1.587e-05  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:  7.267e-01  1.542e-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.395e+00  2.412e-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: 6.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.64e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/251508/likelihoodResults_375667201_375926401_4FGL_J0809.8+0507_daily_bin526.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) = 6667.59987098
delta logL = -0.000454157467175

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6667.59941725
delta logL = -4.3384716264e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10745E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8263       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3949       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72672       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=   6667.599     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      192 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.604        .90712E-02** at limit **
   2  alpha         2.8374        3.6232        .41603       -.52216E-05
   3  Normalizat    1.3950        .19003        .58422E-01    .98744E-05
   4  Prefactor     .72665        .12734        .42756E-01    .21864E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.83738
  Normalizat = 1.395
  Prefactor  = 0.726653
 **********
 **   18 **HESSE 
 **********

 FCN=   6667.599     FROM HESSE     STATUS=OK            29 CALLS      221 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8374        3.6199        .16641        .13536    
   3  Normalizat    1.3950        .22068        .25836E-03   -.80773    
   4  Prefactor     .72665        .14790        .23020E-03   -1.0249    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7359e-11
Minuit parameter uncertainties:
  1  1.9052e-07
  2  2.47745
  3  0.220828
  4  0.147978
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251508': 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) = 6667.59941677
delta logL = 4.6900822781e-08

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  1.905e-07  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.837e+00  2.477e+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:  7.267e-01  1.480e-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.395e+00  2.208e-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/251508/cmap_HighResolution_375667201_375926401_4FGL_J0809.8+0507_daily_bin526.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.64e-05', job_status='DONE', photon_flux_upper_limit='6.24e-08', time_completed='2021-08-29 09:10:52.437311', job_id='251508', GAL2='0.73', fit_tolerance='1e-08', EG2='1.40', EG='1.40', time_epoch_completed='1630253452.44', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='4.69e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='526' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:10:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0193>
Subject: Job 251508: <4FGL_J0809.8+0507_daily_bin526> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin526 122.453 5.1313 375667201 375926401 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 :                                   865.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            929 sec.

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

