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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin892
RA = 122.453, Dec = 5.1313
tmin = 470534401, tmax = 470793601
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='253201', job_status='RUN', time_executed='2021-08-29 09:05:26.542246', time_epoch_executed='1630253126.54' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='892'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/253201

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/253201/ft1_4FGL_J0809.8+0507_daily_bin892.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/253201/ft2_4FGL_J0809.8+0507_daily_bin892.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/253201/ft1_4FGL_J0809.8+0507_daily_bin892.fits outfile=/scratch/kocevski/253201/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin892.fits ra=122.453 dec=5.1313 rad=12.0 tmin=470534401.0 tmax=470793601.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 4.66
user 3.29
sys 1.35

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/253201/ft1_filtered_4FGL_J0809.8+0507_daily_bin892.fits" evtable="EVENTS" scfile=/scratch/kocevski/253201/ft2_4FGL_J0809.8+0507_daily_bin892.fits sctable="SC_DATA" outfile=/scratch/kocevski/253201/ltcube_470534401_470793601_4FGL_J0809.8+0507_daily_bin892.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/253201/ft2_4FGL_J0809.8+0507_daily_bin892.fits
.....................!
real 13.21
user 11.56
sys 1.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/253201/ft1_filtered_4FGL_J0809.8+0507_daily_bin892.fits evtable="EVENTS" scfile=/scratch/kocevski/253201/ft2_4FGL_J0809.8+0507_daily_bin892.fits sctable="SC_DATA" expcube=/scratch/kocevski/253201/ltcube_470534401_470793601_4FGL_J0809.8+0507_daily_bin892.fits outfile=/scratch/kocevski/253201/expmap_470534401_470793601_4FGL_J0809.8+0507_daily_bin892.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/253201/ltcube_470534401_470793601_4FGL_J0809.8+0507_daily_bin892.fits
.....................!
real 190.48
user 184.28
sys 5.75

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/253201/ft1_filtered_4FGL_J0809.8+0507_daily_bin892.fits scfile=/scratch/kocevski/253201/ft2_4FGL_J0809.8+0507_daily_bin892.fits outfile=/scratch/kocevski/253201/cmap_470534401_470793601_4FGL_J0809.8+0507_daily_bin892.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.67
user 0.38
sys 1.26

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/253201/ft1_filtered_4FGL_J0809.8+0507_daily_bin892.fits scfile=/scratch/kocevski/253201/ft2_4FGL_J0809.8+0507_daily_bin892.fits outfile=/scratch/kocevski/253201/cmap_HighResolution_470534401_470793601_4FGL_J0809.8+0507_daily_bin892.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.72
user 0.37
sys 1.29

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    95.310       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.925       1.0000         .10000E-03   10000.    
     3 'norm      '    1.4803       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2183       1.0000         .10000E-03   10000.    
     6 'norm      '    22.108       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.4504       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16889E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10586E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11358E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.3317       1.0000         .10000E-03   10000.    
    12 'norm      '    1.4793       1.0000         .10000E-03   10000.    
    13 'norm      '    10.557       1.0000         .10000E-03   10000.    
    14 'norm      '    9.1609       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.346       1.0000         .10000E-03   10000.    
    17 'norm      '    .10264E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.1184       1.0000         .10000E-03   10000.    
    19 'Prefactor '    72.993       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1547       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0430       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=   6616.458     FROM MIGRAD    STATUS=CONVERGED    458 CALLS     2235 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     95.386        54.128       -.50376E-05   -.15259E-04
   2  Prefactor     11.829        34.213        .97222E-05    .24509E-05
   3  norm          1.4818        1.4357       -.36303E-07   -.11464E-03
   4  Prefactor     .10000E-03    40.134        .72655E-06** at limit **
   5  Prefactor     3.2182        2.8604        .67025E-07   -.23774E-05
   6  norm          22.106        23.515        .53242E-07   -.37087E-05
   7  Prefactor     5.4506        16.000        .24042E-06   -.27698E-05
   8  Prefactor     .10000E-03    100.51       -.51374E-05** at limit **
   9  Prefactor     .10000E-03    4.5358        .22593E-08** at limit **
  10  Prefactor     .10000E-03    20.347       -.29212E-06** at limit **
  11  norm          5.3309        9.1022        .22736E-06   -.46643E-05
  12  norm          1.4793        1.3836        .11742E-07   -.31111E-06
  13  norm          10.554        17.475        .17699E-06   -.92340E-05
  14  norm          9.1602        4.4953        .25453E-07   -.31434E-04
  15  Prefactor     .10000E-03    17.836        .11978E-06** at limit **
  16  Prefactor     11.342        11.998        .17443E-06   -.14035E-04
  17  norm          .10000E-03    .53181        .19115E-06** at limit **
  18  norm          2.1136        5.5297        .40180E-05   -.33294E-04
  19  Prefactor     72.987        48.095        .64109E-06   -.67156E-05
  20  Normalizat    1.1551        .20631       -.69063E-06   -.70634E-04
  21  Prefactor     1.0427        .14055       -.43801E-06   -.86991E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 95.3861
  Prefactor  = 11.8291
  norm       = 1.48179
  Prefactor  = 0.0001
  Prefactor  = 3.21818
  norm       = 22.1063
  Prefactor  = 5.45056
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.33091
  norm       = 1.47926
  norm       = 10.5542
  norm       = 9.16024
  Prefactor  = 0.0001
  Prefactor  = 11.3425
  norm       = 0.0001
  norm       = 2.11359
  Prefactor  = 72.9869
  Normalizat = 1.1551
  Prefactor  = 1.04272
 **********
 **   18 **HESSE 
 **********

 FCN=   6616.458     FROM HESSE     STATUS=OK           325 CALLS     2560 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     95.386        54.176        .20585E-03   -1.3752    
   2  Prefactor     11.829        34.288        .11600E-03   -1.5020    
   3  norm          1.4818        1.4206        .91952E-04   -1.5465    
   4  Prefactor     .10000E-03    41.221        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.2182        2.8525        .12316E-03   -1.5349    
   6  norm          22.106        23.341        .85187E-04   -1.4767    
   7  Prefactor     5.4506        15.865        .17211E-03   -1.5241    
   8  Prefactor     .10000E-03    100.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.5716        .16914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.3309        9.0917        .17405E-03   -1.5246    
  12  norm          1.4793        1.3894        .90238E-04   -1.5465    
  13  norm          10.554        17.481        .12331E-03   -1.5058    
  14  norm          9.1602        4.4949        .11643E-03   -1.5103    
  15  Prefactor     .10000E-03    17.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.342        12.018        .11893E-03   -1.5034    
  17  norm          .10000E-03    .85907        .11395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.1136        5.5322        .14169E-02   -1.5417    
  19  Prefactor     72.987        48.269        .46992E-04   -1.3997    
  20  Normalizat    1.1551        .23562        .29453E-03   -.88002    
  21  Prefactor     1.0427        .16139        .21614E-03   -.91319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.95044e-10
Minuit parameter uncertainties:
  1  54.204
  2  34.3447
  3  1.42058
  4  7.56335e-06
  5  2.85259
  6  23.3507
  7  15.8775
  8  9.80377e-06
  9  2.35948e-06
  10  1.65485e-06
  11  9.09401
  12  1.38948
  13  17.4893
  14  4.49509
  15  2.64305e-06
  16  12.0204
  17  7.93807e-06
  18  5.53353
  19  48.2952
  20  0.235837
  21  0.161463
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.055e+01  1.749e+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.043e+00  1.615e-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.155e+00  2.358e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/253201/likelihoodResults_470534401_470793601_4FGL_J0809.8+0507_daily_bin892.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) = 6616.43535212
delta logL = 0.0222712498835

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6616.43311237
delta logL = 0.0245109934749

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.5432       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1982       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1507       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0445       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=   6616.433     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      244 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.5376        17.730        .12972E-03    .24188E-04
   2  alpha         3.1977        1.6593        .49217E-01    .91268E-04
   3  Normalizat    1.1507        .22513        .29501E-03   -.10074E-03
   4  Prefactor     1.0445        .15748        .21597E-03    .65168E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.53764
  alpha      = 3.1977
  Normalizat = 1.15075
  Prefactor  = 1.04455
 **********
 **   18 **HESSE 
 **********

 FCN=   6616.433     FROM HESSE     STATUS=OK            25 CALLS      269 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.5376        16.884        .51890E-05   -1.5090    
   2  alpha         3.1977        1.5944        .98433E-02    .28283    
   3  Normalizat    1.1507        .22534        .11800E-04   -.88139    
   4  Prefactor     1.0445        .15759        .86388E-05   -.91259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14253e-10
Minuit parameter uncertainties:
  1  16.8921
  2  1.74377
  3  0.225531
  4  0.157658
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/253201': 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) = 6616.43311216
delta logL = 0.0245112049961

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  9.538e+00  1.689e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  3.198e+00  1.744e+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.045e+00  1.577e-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.151e+00  2.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.50
Ra Dec: 122.453 5.131

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/253201/cmap_HighResolution_470534401_470793601_4FGL_J0809.8+0507_daily_bin892.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.36e-05', job_status='DONE', photon_flux_upper_limit='8.95e-08', time_completed='2021-08-29 09:16:12.800808', job_id='253201', GAL2='1.04', fit_tolerance='1e-08', EG2='1.15', EG='1.16', time_epoch_completed='1630253772.8', return_code2='0', ts='0.50', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='2.45e-02', ts2='0.55', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='892' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:16:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 253201: <4FGL_J0809.8+0507_daily_bin892> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin892> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 29 09:00:58 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 09:00:59 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:59 2021
Terminated at Sun Aug 29 09:16:13 2021
Results reported at Sun Aug 29 09:16:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin892 122.453 5.1313 470534401 470793601 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 :                                   664.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             263.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            915 sec.

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

