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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin393
RA = 122.453, Dec = 5.1313
tmin = 341193601, tmax = 341452801
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='250245', job_status='RUN', time_executed='2021-08-29 08:54:41.639373', time_epoch_executed='1630252481.64' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='393'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250245

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250245/ft1_4FGL_J0809.8+0507_daily_bin393.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250245/ft2_4FGL_J0809.8+0507_daily_bin393.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250245/ft1_4FGL_J0809.8+0507_daily_bin393.fits outfile=/scratch/kocevski/250245/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin393.fits ra=122.453 dec=5.1313 rad=12.0 tmin=341193601.0 tmax=341452801.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.89
user 3.20
sys 0.65

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250245/ft1_filtered_4FGL_J0809.8+0507_daily_bin393.fits evtable="EVENTS" scfile=/scratch/kocevski/250245/ft2_4FGL_J0809.8+0507_daily_bin393.fits sctable="SC_DATA" expcube=/scratch/kocevski/250245/ltcube_341193601_341452801_4FGL_J0809.8+0507_daily_bin393.fits outfile=/scratch/kocevski/250245/expmap_341193601_341452801_4FGL_J0809.8+0507_daily_bin393.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/250245/ltcube_341193601_341452801_4FGL_J0809.8+0507_daily_bin393.fits
.....................!
real 190.78
user 185.40
sys 5.01

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/250245/ft1_filtered_4FGL_J0809.8+0507_daily_bin393.fits scfile=/scratch/kocevski/250245/ft2_4FGL_J0809.8+0507_daily_bin393.fits outfile=/scratch/kocevski/250245/cmap_341193601_341452801_4FGL_J0809.8+0507_daily_bin393.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.95
user 0.37
sys 0.57

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250245/ft1_filtered_4FGL_J0809.8+0507_daily_bin393.fits scfile=/scratch/kocevski/250245/ft2_4FGL_J0809.8+0507_daily_bin393.fits outfile=/scratch/kocevski/250245/cmap_HighResolution_341193601_341452801_4FGL_J0809.8+0507_daily_bin393.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.97
user 0.37
sys 0.58

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .13468E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.4246       1.0000         .10000E-03   10000.    
     6 'norm      '    17.442       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0980       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12668E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .67019E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    2.3004       1.0000         .10000E-03   10000.    
    14 'norm      '    3.3036       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.9093       1.0000         .10000E-03   10000.    
    17 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.6311       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .64474       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2826       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6862.007     FROM MIGRAD    STATUS=CONVERGED     97 CALLS     1575 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10045E-03    13.342       -.26520E-04** at limit **
   2  Prefactor     .10000E-03    10.956       -.66615E-05** at limit **
   3  norm          .10000E-03    3.2075        .46426E-06** at limit **
   4  Prefactor     .10000E-03    20.089        .30522E-04** at limit **
   5  Prefactor     5.4242        3.3943       -.13482E-06    .68352E-03
   6  norm          17.438        1.0260        .50815E-07   -.76386E-04
   7  Prefactor     .10000E-03    3.8624        .11100E-06** at limit **
   8  Prefactor     .10293E-03    23.178        .16468E-04** at limit **
   9  Prefactor     3.0976        3.6437       -.14526E-05    .19683E-03
  10  Prefactor     .10291E-03    57.835       -.49719E-04** at limit **
  11  norm          .10000E-03    2.9583       -.22860E-06** at limit **
  12  norm          .70979E-01    8.0500       -.13610E-04   -.93832E-03
  13  norm          2.2872        1.2025        .18352E-06   -.94917E-04
  14  norm          3.3031        2.7892       -.78202E-07    .51339E-03
  15  Prefactor     .10016E-03    13.082        .27629E-04** at limit **
  16  Prefactor     7.9091        1.0046        .15506E-07   -.27637E-05
  17  norm          .10000E-03    .89351        .11730E-07** at limit **
  18  norm          5.6311        1.0411        .65661E-06    .38585E-03
  19  Prefactor     .10075E-03    18.210       -.14271E-04** at limit **
  20  Normalizat    .64488        .20600        .44222E-07    .29119E-04
  21  Prefactor     1.2825        .14764        .72629E-06    .14583E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100448
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.42418
  norm       = 17.4375
  Prefactor  = 0.0001
  Prefactor  = 0.000102925
  Prefactor  = 3.09758
  Prefactor  = 0.000102913
  norm       = 0.0001
  norm       = 0.0709792
  norm       = 2.2872
  norm       = 3.30313
  Prefactor  = 0.000100165
  Prefactor  = 7.90911
  norm       = 0.0001
  norm       = 5.63106
  Prefactor  = 0.000100746
  Normalizat = 0.644882
  Prefactor  = 1.28255
 **********
 **   18 **HESSE 
 **********

 FCN=   6862.007     FROM HESSE     STATUS=OK           375 CALLS     1950 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10045E-03    17.412        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.973        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .89042        .42446E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    36.928        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.4242        3.4153        .43133E-02   -1.5242    
   6  norm          17.438        16.618        .23975E-02   -1.4873    
   7  Prefactor     .10000E-03    3.8595        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10293E-03    53.305        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.0976        3.6501        .57600E-02   -1.5356    
  10  Prefactor     .10291E-03    76.468        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.9518        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .70979E-01    .95367        .46930E-01   -1.5655    
  13  norm          2.2872        38.186        .67643E-02   -1.5405    
  14  norm          3.3031        2.7981        .55685E-02   -1.5344    
  15  Prefactor     .10016E-03    14.811        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.9091        9.1423        .35643E-02   -1.5145    
  17  norm          .10000E-03    .50907        .22235E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.6311        6.9858        .42321E-02   -1.5233    
  19  Prefactor     .10075E-03    28.227        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .64488        .19398        .78776E-01   -1.0611    
  21  Prefactor     1.2825        .13397        .32920E-01   -.83827    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04148e-07
Minuit parameter uncertainties:
  1  0.00559021
  2  0.000180958
  3  2.00303e-05
  4  0.000201261
  5  3.41538
  6  16.6227
  7  1.20883e-05
  8  0.0249972
  9  3.65035
  10  0.0298894
  11  4.81394e-05
  12  0.519991
  13  18.7046
  14  2.79818
  15  0.00312538
  16  9.14394
  17  1.05879e-05
  18  6.98684
  19  0.00918363
  20  0.194181
  21  0.134004
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  2.287e+00  1.870e+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.283e+00  1.340e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  6.449e-01  1.942e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/250245/likelihoodResults_341193601_341452801_4FGL_J0809.8+0507_daily_bin393.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) = 6861.47994659
delta logL = 0.527019991245

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6861.29196611
delta logL = 0.715000471496

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4850       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.8427       1.0000          .0000       5.0000    
     3 'Normalizat'    .57102       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3118       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=   6861.292     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      236 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4905        5.5680        .42890E-02    .39656E-03
   2  alpha         4.8429        3.5234        .50000       -.80880E-04
   3  Normalizat    .57113        .19465        .83390E-01    .37027E-04
   4  Prefactor     1.3116        .13610        .32407E-01   -.93313E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.49054
  alpha      = 4.84285
  Normalizat = 0.571133
  Prefactor  = 1.31164
 **********
 **   18 **HESSE 
 **********

 FCN=   6861.292     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4905        8.8827        .16717E-03   -1.5239    
   2  alpha         4.8429        4.1551        .81035E-01    1.2143    
   3  Normalizat    .57113        .21294        .36937E-03   -1.0922    
   4  Prefactor     1.3116        .14947        .18144E-03   -.82962    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.39586e-10
Minuit parameter uncertainties:
  1  8.88486
  2  1.40601
  3  0.213245
  4  0.149522
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250245': 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) = 6861.29196446
delta logL = 0.715002126317

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  5.491e+00  8.885e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  4.843e+00  1.406e+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.312e+00  1.495e-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:  5.711e-01  2.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.59
Ra Dec: 122.453 5.131
Photon Index (Free Index): 4.84 +/- 1.41
Photon Flux (Free Index): 5.76e-08 +/- 5.52e-08
Energy Flux (Free Index): 9.24e-06 +/- 8.64e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/250245/cmap_HighResolution_341193601_341452801_4FGL_J0809.8+0507_daily_bin393.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.06e-05', comment='SUCCESS', energy_flux2='9.24e-06', dlogl='7.15e-01', photon_flux2='5.76e-08', job_status='DONE', time_completed='2021-08-29 09:04:32.264131', photon_index_error2='1.41', photon_index2='4.84', ts='0.02', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', photon_flux_upper_limit='7.83e-08', energy_flux_error2='8.64e-06', EG='0.64', time_epoch_completed='1630253072.26', return_code='0', job_id='250245', GAL2='1.31', EG2='0.57', return_code2='0', photon_flux_error2='5.52e-08', ts2='1.59', photon_index='2.82' WHERE bin_id='393' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:04:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 250245: <4FGL_J0809.8+0507_daily_bin393> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin393 122.453 5.1313 341193601 341452801 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 :                                   597.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             229.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            830 sec.

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

