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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin688
RA = 122.453, Dec = 5.1313
tmin = 417657601, tmax = 417916801
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='252874', job_status='RUN', time_executed='2021-08-29 09:03:47.274964', time_epoch_executed='1630253027.27' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='688'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/252874

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/252874/ft1_4FGL_J0809.8+0507_daily_bin688.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/252874/ft2_4FGL_J0809.8+0507_daily_bin688.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/252874/ft1_4FGL_J0809.8+0507_daily_bin688.fits outfile=/scratch/kocevski/252874/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin688.fits ra=122.453 dec=5.1313 rad=12.0 tmin=417657601.0 tmax=417916801.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 6.57
user 5.73
sys 0.81

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/252874/ft1_filtered_4FGL_J0809.8+0507_daily_bin688.fits" evtable="EVENTS" scfile=/scratch/kocevski/252874/ft2_4FGL_J0809.8+0507_daily_bin688.fits sctable="SC_DATA" outfile=/scratch/kocevski/252874/ltcube_417657601_417916801_4FGL_J0809.8+0507_daily_bin688.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/252874/ft2_4FGL_J0809.8+0507_daily_bin688.fits
.....................!
real 12.86
user 11.81
sys 1.00

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/252874/ft1_filtered_4FGL_J0809.8+0507_daily_bin688.fits evtable="EVENTS" scfile=/scratch/kocevski/252874/ft2_4FGL_J0809.8+0507_daily_bin688.fits sctable="SC_DATA" expcube=/scratch/kocevski/252874/ltcube_417657601_417916801_4FGL_J0809.8+0507_daily_bin688.fits outfile=/scratch/kocevski/252874/expmap_417657601_417916801_4FGL_J0809.8+0507_daily_bin688.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/252874/ltcube_417657601_417916801_4FGL_J0809.8+0507_daily_bin688.fits
.....................!
real 192.36
user 185.98
sys 5.97

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/252874/ft1_filtered_4FGL_J0809.8+0507_daily_bin688.fits scfile=/scratch/kocevski/252874/ft2_4FGL_J0809.8+0507_daily_bin688.fits outfile=/scratch/kocevski/252874/cmap_417657601_417916801_4FGL_J0809.8+0507_daily_bin688.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.16
user 0.37
sys 0.71

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/252874/ft1_filtered_4FGL_J0809.8+0507_daily_bin688.fits scfile=/scratch/kocevski/252874/ft2_4FGL_J0809.8+0507_daily_bin688.fits outfile=/scratch/kocevski/252874/cmap_HighResolution_417657601_417916801_4FGL_J0809.8+0507_daily_bin688.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.12
user 0.39
sys 0.72

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    74.941       1.0000         .10000E-03   10000.    
     2 'Prefactor '    53.047       1.0000         .10000E-03   10000.    
     3 'norm      '    8.8210       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.822       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6682       1.0000         .10000E-03   10000.    
     6 'norm      '    24.293       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .58504E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .30998E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10115E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.6153       1.0000         .10000E-03   10000.    
    13 'norm      '    41.843       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    87.404       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.7762       1.0000         .10000E-03   10000.    
    17 'norm      '    1.7532       1.0000         .10000E-03   10000.    
    18 'norm      '    14.205       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0472       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .85517       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6315.495     FROM MIGRAD    STATUS=CONVERGED    762 CALLS     2546 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     74.903        56.796        .23191E-03    .82309E-04
   2  Prefactor     53.031        42.955        .55069E-04    .53511E-04
   3  norm          8.8205        2.6200        .65904E-04   -.48646E-04
   4  Prefactor     16.822        22.082        .97652E-04   -.12690E-04
   5  Prefactor     1.6681        3.0663        .18091E-03   -.56067E-03
   6  norm          24.295        19.023        .81272E-04   -.21783E-03
   7  Prefactor     .10001E-03    116.23        .43794E-02** at limit **
   8  Prefactor     .10000E-03    54.573        .18142E-02** at limit **
   9  Prefactor     .10002E-03    17.340        .36329E-02** at limit **
  10  Prefactor     .10000E-03    21.816        .18142E-02** at limit **
  11  norm          .10000E-03    17.107        .18142E-02** at limit **
  12  norm          1.6163        1.9846        .12120E-03   -.57715E-03
  13  norm          41.840        28.945        .61972E-04    .84277E-04
  14  norm          .10000E-03    .94795        .75502E-03** at limit **
  15  Prefactor     87.400        47.923        .42974E-04    .23068E-04
  16  Prefactor     9.7748        12.920        .12816E-03   -.30515E-04
  17  norm          1.7530        .98018        .56915E-04   -.10407E-03
  18  norm          14.204        8.2564        .10627E-03   -.99490E-05
  19  Prefactor     .10000E-03    25.313        .18142E-02** at limit **
  20  Normalizat    1.0472        .23817        .29561E-03   -.19091E-03
  21  Prefactor     .85528        .15869        .21964E-03   -.15197E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 74.9029
  Prefactor  = 53.0307
  norm       = 8.82049
  Prefactor  = 16.8216
  Prefactor  = 1.66815
  norm       = 24.2947
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 0.000100024
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.6163
  norm       = 41.8401
  norm       = 0.0001
  Prefactor  = 87.3997
  Prefactor  = 9.77477
  norm       = 1.75296
  norm       = 14.2045
  Prefactor  = 0.0001
  Normalizat = 1.04718
  Prefactor  = 0.855284
 **********
 **   18 **HESSE 
 **********

 FCN=   6315.495     FROM HESSE     STATUS=OK           295 CALLS     2841 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     74.903        56.793        .92763E-05   -1.3975    
   2  Prefactor     53.031        42.954        .11014E-04   -1.4250    
   3  norm          8.8205        2.6200        .26362E-05   -1.5114    
   4  Prefactor     16.822        22.082        .39061E-05   -1.4887    
   5  Prefactor     1.6681        3.0658        .72364E-05   -1.5450    
   6  norm          24.295        18.901        .16254E-04   -1.4722    
   7  Prefactor     .10001E-03    119.16        .17518E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    54.573        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    17.498        .72658E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.817        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    17.122        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.6163        1.9844        .48481E-05   -1.5454    
  13  norm          41.840        28.944        .12394E-04   -1.4413    
  14  norm          .10000E-03    .94796        .15100E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     87.400        47.922        .85949E-05   -1.3835    
  16  Prefactor     9.7748        12.919        .51265E-05   -1.5083    
  17  norm          1.7530        .98016        .22766E-05   -1.5443    
  18  norm          14.204        8.2563        .42508E-05   -1.4954    
  19  Prefactor     .10000E-03    25.314        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0472        .23835        .11824E-04   -.91466    
  21  Prefactor     .85528        .15883        .87854E-05   -.97722    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87734e-09
Minuit parameter uncertainties:
  1  56.8345
  2  42.979
  3  2.62004
  4  22.0926
  5  3.06611
  6  18.9056
  7  0.00238545
  8  4.69253e-05
  9  0.0012853
  10  0.000115515
  11  0.000179169
  12  1.9845
  13  28.954
  14  8.24528e-07
  15  47.9437
  16  12.9225
  17  0.980165
  18  8.25699
  19  0.000117438
  20  0.238593
  21  0.158913
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  4.184e+01  2.895e+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:  8.553e-01  1.589e-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.047e+00  2.386e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.29
Ra Dec: 122.453 5.131
Photon Index (Fixed Index): 2.82 +/- 0.00
Photon Flux (Fixed Index): 6.71e-08 +/- 4.64e-08
Energy Flux (Fixed Index): 1.77e-05 +/- 1.22e-05

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

Saving results to:
/scratch/kocevski/252874/likelihoodResults_417657601_417916801_4FGL_J0809.8+0507_daily_bin688.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) = 6313.86386354
delta logL = 1.63162047988

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6313.86313638
delta logL = 1.63234764476

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    24.039       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.3062       1.0000          .0000       5.0000    
     3 'Normalizat'    .96091       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89196       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6313.863     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      300 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          24.039        22.042        .81699E-04    .69869E-03
   2  alpha         4.3063        .87569        .22929E-01    .51339E-04
   3  Normalizat    .96073        .23488        .30615E-03    .48237E-04
   4  Prefactor     .89204        .15698        .21538E-03    .91319E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 24.0389
  alpha      = 4.30635
  Normalizat = 0.960731
  Prefactor  = 0.892036
 **********
 **   18 **HESSE 
 **********

 FCN=   6313.863     FROM HESSE     STATUS=OK            23 CALLS      323 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          24.039        20.141        .16340E-04   -1.4727    
   2  alpha         4.3063        .80619        .91717E-03    .80747    
   3  Normalizat    .96073        .23521        .12246E-04   -.94358    
   4  Prefactor     .89204        .15712        .86150E-05   -.96420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.469e-10
Minuit parameter uncertainties:
  1  20.1469
  2  0.838725
  3  0.235463
  4  0.157196
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/252874': 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) = 6313.86313603
delta logL = 1.63234799094

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  2.404e+01  2.015e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  4.306e+00  8.387e-01  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:  8.920e-01  1.572e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  9.607e-01  2.355e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.87
Ra Dec: 122.453 5.131
Photon Index (Free Index): 4.31 +/- 0.84
Photon Flux (Free Index): 1.43e-07 +/- 7.18e-08
Energy Flux (Free Index): 2.51e-05 +/- 1.19e-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/252874/cmap_HighResolution_417657601_417916801_4FGL_J0809.8+0507_daily_bin688.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.11e-05', comment='SUCCESS', photon_flux='6.71e-08', energy_flux2='2.51e-05', photon_flux_error='4.64e-08', dlogl='1.63e+00', energy_flux='1.77e-05', photon_flux2='1.43e-07', job_status='DONE', time_completed='2021-08-29 09:14:47.984711', photon_index_error2='0.84', photon_index2='4.31', ts='3.29', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.56e-07', energy_flux_error2='1.19e-05', EG='1.05', time_epoch_completed='1630253687.98', return_code='0', job_id='252874', GAL2='0.89', EG2='0.96', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='7.18e-08', ts2='6.87', photon_index='2.82' WHERE bin_id='688' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:14:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 252874: <4FGL_J0809.8+0507_daily_bin688> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin688> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 29 09:00:26 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 09:00:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 09:00:29 2021
Terminated at Sun Aug 29 09:14:48 2021
Results reported at Sun Aug 29 09:14:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin688 122.453 5.1313 417657601 417916801 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 :                                   668.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             243.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            862 sec.

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

