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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin353
RA = 122.453, Dec = 5.1313
tmin = 330825601, tmax = 331084801
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='250176', job_status='RUN', time_executed='2021-08-29 08:54:55.142648', time_epoch_executed='1630252495.14' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='353'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250176

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250176/ft1_4FGL_J0809.8+0507_daily_bin353.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250176/ft2_4FGL_J0809.8+0507_daily_bin353.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250176/ft1_4FGL_J0809.8+0507_daily_bin353.fits outfile=/scratch/kocevski/250176/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin353.fits ra=122.453 dec=5.1313 rad=12.0 tmin=330825601.0 tmax=331084801.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 10.22
user 3.25
sys 6.90

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/250176/ft2_4FGL_J0809.8+0507_daily_bin353.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/250176/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin353.fits evtable="EVENTS" outfile="/scratch/kocevski/250176/ft1_filtered_4FGL_J0809.8+0507_daily_bin353.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 7.29
user 0.34
sys 6.79

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250176/ft1_filtered_4FGL_J0809.8+0507_daily_bin353.fits" evtable="EVENTS" scfile=/scratch/kocevski/250176/ft2_4FGL_J0809.8+0507_daily_bin353.fits sctable="SC_DATA" outfile=/scratch/kocevski/250176/ltcube_330825601_331084801_4FGL_J0809.8+0507_daily_bin353.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/250176/ft2_4FGL_J0809.8+0507_daily_bin353.fits
.....................!
real 19.49
user 11.58
sys 7.85

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250176/ft1_filtered_4FGL_J0809.8+0507_daily_bin353.fits evtable="EVENTS" scfile=/scratch/kocevski/250176/ft2_4FGL_J0809.8+0507_daily_bin353.fits sctable="SC_DATA" expcube=/scratch/kocevski/250176/ltcube_330825601_331084801_4FGL_J0809.8+0507_daily_bin353.fits outfile=/scratch/kocevski/250176/expmap_330825601_331084801_4FGL_J0809.8+0507_daily_bin353.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/250176/ltcube_330825601_331084801_4FGL_J0809.8+0507_daily_bin353.fits
.....................!
real 201.04
user 187.98
sys 12.66

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/250176/ft1_filtered_4FGL_J0809.8+0507_daily_bin353.fits scfile=/scratch/kocevski/250176/ft2_4FGL_J0809.8+0507_daily_bin353.fits outfile=/scratch/kocevski/250176/cmap_330825601_331084801_4FGL_J0809.8+0507_daily_bin353.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.11
user 0.38
sys 6.70

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250176/ft1_filtered_4FGL_J0809.8+0507_daily_bin353.fits scfile=/scratch/kocevski/250176/ft2_4FGL_J0809.8+0507_daily_bin353.fits outfile=/scratch/kocevski/250176/cmap_HighResolution_330825601_331084801_4FGL_J0809.8+0507_daily_bin353.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 7.06
user 0.39
sys 6.65

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    60.813       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.3127       1.0000         .10000E-03   10000.    
     3 'norm      '    4.8136       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3980       1.0000         .10000E-03   10000.    
     6 'norm      '    .10617       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.187       1.0000         .10000E-03   10000.    
     8 'Prefactor '    70.911       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1453       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.8794       1.0000         .10000E-03   10000.    
    11 'norm      '    .10177E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.1446       1.0000         .10000E-03   10000.    
    13 'norm      '    17.269       1.0000         .10000E-03   10000.    
    14 'norm      '    10.135       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16560E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8570       1.0000         .10000E-03   10000.    
    17 'norm      '    .85671       1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .84144       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .99373       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=   7278.461     FROM MIGRAD    STATUS=CONVERGED     94 CALLS     1841 TOTAL
                     EDM=   .78E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     60.811        1.0150       -.15961E-07    .81354E-03
   2  Prefactor     9.3112        1.0088       -.25781E-07   -.13430E-03
   3  norm          4.8135        2.1807        .31857E-06    .33516E-04
   4  Prefactor     .10000E-03    8.6233        .11842E-05** at limit **
   5  Prefactor     3.3975        3.4643       -.19425E-06    .55592E-04
   6  norm          .10001E-03    245.24       -.24479E-04** at limit **
   7  Prefactor     10.207        12.962        .52125E-06   -.20963E-03
   8  Prefactor     70.915        1.0357        .24108E-07   -.12587E-02
   9  Prefactor     3.1455        5.1851        .98328E-06    .18276E-05
  10  Prefactor     9.8820        1.1574        .62669E-07    .14651E-02
  11  norm          .10000E-03    2.9476       -.62685E-06** at limit **
  12  norm          3.1448        1.9809       -.21007E-06   -.63042E-05
  13  norm          17.249        2.5434        .82954E-07    .32364E-02
  14  norm          10.135        4.1296        .10313E-06    .37405E-04
  15  Prefactor     .10002E-03    66.288        .17970E-05** at limit **
  16  Prefactor     1.8577        1.2809        .23052E-07    .71351E-03
  17  norm          .85676        .68048        .85558E-07    .12946E-04
  18  norm          .10000E-03    2.9181       -.35583E-06** at limit **
  19  Prefactor     .10000E-03    16.422       -.20094E-05** at limit **
  20  Normalizat    .84139        .20594       -.62591E-06    .11700E-04
  21  Prefactor     .99373        .14303       -.69203E-07    .14203E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 60.8113
  Prefactor  = 9.31116
  norm       = 4.81352
  Prefactor  = 0.0001
  Prefactor  = 3.39754
  norm       = 0.000100006
  Prefactor  = 10.2074
  Prefactor  = 70.9154
  Prefactor  = 3.14555
  Prefactor  = 9.88205
  norm       = 0.0001
  norm       = 3.14479
  norm       = 17.2489
  norm       = 10.1351
  Prefactor  = 0.00010002
  Prefactor  = 1.85775
  norm       = 0.85676
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.841388
  Prefactor  = 0.993732
 **********
 **   18 **HESSE 
 **********

 FCN=   7278.461     FROM HESSE     STATUS=OK           369 CALLS     2210 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     60.811        63.368        .12863E-02   -1.4147    
   2  Prefactor     9.3112        26.054        .32832E-02   -1.5098    
   3  norm          4.8135        2.2150        .45841E-02   -1.5269    
   4  Prefactor     .10000E-03    8.6120        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.3975        3.5034        .54870E-02   -1.5339    
   6  norm          .10001E-03    11.078        .13735       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.207        14.513        .31386E-02   -1.5069    
   8  Prefactor     70.915        78.707        .11918E-02   -1.4022    
   9  Prefactor     3.1455        5.2126        .57141E-02   -1.5353    
  10  Prefactor     9.8820        21.155        .31872E-02   -1.5079    
  11  norm          .10000E-03    2.9457        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.1448        1.9854        .57148E-02   -1.5353    
  13  norm          17.249        16.278        .24095E-02   -1.4877    
  14  norm          10.135        4.1480        .31465E-02   -1.5071    
  15  Prefactor     .10002E-03    66.402        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.8577        25.039        .76462E-02   -1.5435    
  17  norm          .85676        .70263        .12650E-01   -1.5523    
  18  norm          .10000E-03    2.9011        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.521        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .84139        .18319        .68527E-01   -.98551    
  21  Prefactor     .99373        .12431        .46189E-01   -.92939    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98689e-08
Minuit parameter uncertainties:
  1  63.4384
  2  26.0861
  3  2.21501
  4  9.88442e-07
  5  3.50366
  6  0.000527451
  7  14.5177
  8  78.823
  9  5.21337
  10  21.1713
  11  2.94474e-07
  12  1.98542
  13  16.2825
  14  4.14815
  15  0.00230621
  16  13.647
  17  0.70264
  18  1.09419e-06
  19  1.56585e-05
  20  0.183324
  21  0.124348
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.725e+01  1.628e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.815e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  8.580e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  4.471e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  9.937e-01  1.243e-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.414e-01  1.833e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.90
Ra Dec: 122.453 5.131
Photon Index (Fixed Index): 2.82 +/- 0.00
Photon Flux (Fixed Index): 2.77e-08 +/- 2.61e-08
Energy Flux (Fixed Index): 7.28e-06 +/- 6.88e-06

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

Saving results to:
/scratch/kocevski/250176/likelihoodResults_330825601_331084801_4FGL_J0809.8+0507_daily_bin353.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) = 7277.91662678
delta logL = 0.544801566143

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7277.89497589
delta logL = 0.566452456509

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.138       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2372       1.0000          .0000       5.0000    
     3 'Normalizat'    .86409       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98007       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=   7277.895     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      205 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.138        16.816        .21780E-02    .79368E-03
   2  alpha         1.2372        1.1575        .50000       -.11515E-04
   3  Normalizat    .86411        .17148        .67692E-01    .22369E-04
   4  Prefactor     .98005        .12050        .46018E-01    .49346E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 21.1381
  alpha      = 1.23722
  Normalizat = 0.864109
  Prefactor  = 0.980048
 **********
 **   18 **HESSE 
 **********

 FCN=   7277.895     FROM HESSE     STATUS=OK            29 CALLS      234 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.138        19.487        .87118E-04   -1.4788    
   2  alpha         1.2372        1.3098        .47010E-02   -.52951    
   3  Normalizat    .86411        .19964        .29947E-03   -.97733    
   4  Prefactor     .98005        .14043        .19786E-03   -.93398    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1996e-09
Minuit parameter uncertainties:
  1  19.4927
  2  1.40751
  3  0.199814
  4  0.140483
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250176': 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) = 7277.89497587
delta logL = 0.566452478955

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  2.114e+01  1.949e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  1.237e+00  1.408e+00  0.000e+00  5.000e+00 ( 1.000e+00)
282         beta:  8.580e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  4.471e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  9.800e-01  1.405e-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.641e-01  1.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.03
Ra Dec: 122.453 5.131
Photon Index (Free Index): 1.24 +/- 1.41
Photon Flux (Free Index): 1.77e-08 +/- 1.73e-08
Energy Flux (Free Index): 9.53e-06 +/- 7.76e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/250176/cmap_HighResolution_330825601_331084801_4FGL_J0809.8+0507_daily_bin353.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.33e-05', comment='SUCCESS', photon_flux='2.77e-08', energy_flux2='9.53e-06', photon_flux_error='2.61e-08', dlogl='5.66e-01', energy_flux='7.28e-06', photon_flux2='1.77e-08', job_status='DONE', time_completed='2021-08-29 09:07:11.064967', photon_index_error2='1.41', photon_index2='1.24', ts='1.90', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='8.85e-08', energy_flux_error2='7.76e-06', EG='0.84', time_epoch_completed='1630253231.07', return_code='0', job_id='250176', GAL2='0.98', EG2='0.86', return_code2='0', energy_flux_error='6.88e-06', photon_flux_error2='1.73e-08', ts2='3.03', photon_index='2.82' WHERE bin_id='353' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:07:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 250176: <4FGL_J0809.8+0507_daily_bin353> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin353 122.453 5.1313 330825601 331084801 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 :                                   829.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             228.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            994 sec.

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

