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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin406
RA = 122.453, Dec = 5.1313
tmin = 344563201, tmax = 344822401
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='250266', job_status='RUN', time_executed='2021-08-29 08:54:35.701681', time_epoch_executed='1630252475.7' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='406'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250266

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250266/ft1_4FGL_J0809.8+0507_daily_bin406.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250266/ft2_4FGL_J0809.8+0507_daily_bin406.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250266/ft1_4FGL_J0809.8+0507_daily_bin406.fits outfile=/scratch/kocevski/250266/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin406.fits ra=122.453 dec=5.1313 rad=12.0 tmin=344563201.0 tmax=344822401.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 8.48
user 3.18
sys 5.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250266/ft1_filtered_4FGL_J0809.8+0507_daily_bin406.fits" evtable="EVENTS" scfile=/scratch/kocevski/250266/ft2_4FGL_J0809.8+0507_daily_bin406.fits sctable="SC_DATA" outfile=/scratch/kocevski/250266/ltcube_344563201_344822401_4FGL_J0809.8+0507_daily_bin406.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/250266/ft2_4FGL_J0809.8+0507_daily_bin406.fits
.....................!
real 17.25
user 11.25
sys 5.94

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250266/ft1_filtered_4FGL_J0809.8+0507_daily_bin406.fits evtable="EVENTS" scfile=/scratch/kocevski/250266/ft2_4FGL_J0809.8+0507_daily_bin406.fits sctable="SC_DATA" expcube=/scratch/kocevski/250266/ltcube_344563201_344822401_4FGL_J0809.8+0507_daily_bin406.fits outfile=/scratch/kocevski/250266/expmap_344563201_344822401_4FGL_J0809.8+0507_daily_bin406.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/250266/ltcube_344563201_344822401_4FGL_J0809.8+0507_daily_bin406.fits
.....................!
real 195.60
user 184.59
sys 10.65

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/250266/ft1_filtered_4FGL_J0809.8+0507_daily_bin406.fits scfile=/scratch/kocevski/250266/ft2_4FGL_J0809.8+0507_daily_bin406.fits outfile=/scratch/kocevski/250266/cmap_344563201_344822401_4FGL_J0809.8+0507_daily_bin406.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 5.77
user 0.37
sys 5.07

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250266/ft1_filtered_4FGL_J0809.8+0507_daily_bin406.fits scfile=/scratch/kocevski/250266/ft2_4FGL_J0809.8+0507_daily_bin406.fits outfile=/scratch/kocevski/250266/cmap_HighResolution_344563201_344822401_4FGL_J0809.8+0507_daily_bin406.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 5.46
user 0.38
sys 5.03

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.5251       1.0000         .10000E-03   10000.    
     3 'norm      '    .45653E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10252E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.7718       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.3119       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3936       1.0000         .10000E-03   10000.    
    10 'Prefactor '    32.473       1.0000         .10000E-03   10000.    
    11 'norm      '    6.6888       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.0650       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4740       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.783       1.0000         .10000E-03   10000.    
    17 'norm      '    .86609       1.0000         .10000E-03   10000.    
    18 'norm      '    7.2940       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10807E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .69140       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0955       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=   7619.410     FROM MIGRAD    STATUS=CONVERGED    486 CALLS     2592 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.835        .28444E-05** at limit **
   2  Prefactor     9.5343        31.870       -.10744E-04   -.56062E-04
   3  norm          .43627E-01    .59455        .31630E-06   -.31182E-03
   4  Prefactor     .10000E-03    23.116       -.25102E-06** at limit **
   5  Prefactor     6.7720        3.8377        .55639E-07   -.11327E-03
   6  norm          .10000E-03    12.597        .10409E-07** at limit **
   7  Prefactor     8.3116        8.4266       -.34353E-06   -.52413E-04
   8  Prefactor     .10000E-03    48.156        .13341E-05** at limit **
   9  Prefactor     2.3934        2.7969        .25435E-06   -.14950E-02
  10  Prefactor     32.469        24.855        .49515E-06   -.43946E-05
  11  norm          6.6896        8.1335        .54429E-07   -.45182E-03
  12  norm          .10000E-03    .98096       -.47410E-07** at limit **
  13  norm          .10000E-03    44.455       -.59491E-05** at limit **
  14  norm          7.0658        3.4382       -.53771E-07   -.84069E-04
  15  Prefactor     1.4619        109.88        .31587E-04    .88044E-05
  16  Prefactor     11.783        14.341       -.12989E-05   -.96343E-04
  17  norm          .86622        1.0998       -.10965E-06   -.51867E-03
  18  norm          7.2940        7.8316        .68250E-06   -.43056E-05
  19  Prefactor     .10020E-03    40.695       -.47587E-06** at limit **
  20  Normalizat    .69128        .18579       -.99289E-06   -.11753E-03
  21  Prefactor     1.0956        .11692        .34059E-06   -.30289E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.53431
  norm       = 0.0436271
  Prefactor  = 0.0001
  Prefactor  = 6.77202
  norm       = 0.0001
  Prefactor  = 8.31164
  Prefactor  = 0.0001
  Prefactor  = 2.39335
  Prefactor  = 32.4691
  norm       = 6.6896
  norm       = 0.0001
  norm       = 0.000100004
  norm       = 7.06577
  Prefactor  = 1.46188
  Prefactor  = 11.7826
  norm       = 0.866216
  norm       = 7.29399
  Prefactor  = 0.000100201
  Normalizat = 0.691279
  Prefactor  = 1.0956
 **********
 **   18 **HESSE 
 **********

 FCN=   7619.410     FROM HESSE     STATUS=OK           333 CALLS     2925 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.5343        31.912        .12985E-03   -1.5090    
   3  norm          .43627E-01    10.492        .12582E-02   -1.5666    
   4  Prefactor     .10000E-03    23.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.7720        3.8510        .11969E-03   -1.5187    
   6  norm          .10000E-03    12.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.3116        8.4059        .13905E-03   -1.5131    
   8  Prefactor     .10000E-03    48.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.3934        7.1852        .13235E-02   -1.5399    
  10  Prefactor     32.469        24.810        .70317E-04   -1.4568    
  11  norm          6.6896        8.1154        .77576E-03   -1.5191    
  12  norm          .10000E-03    1.0273        .16877E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    46.123        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.0658        3.4376        .54414E-03   -1.5176    
  15  Prefactor     1.4619        110.10        .35381E-03   -1.5466    
  16  Prefactor     11.783        14.416        .11670E-03   -1.5021    
  17  norm          .86622        1.0791        .93599E-04   -1.5522    
  18  norm          7.2940        7.8408        .14851E-03   -1.5168    
  19  Prefactor     .10020E-03    37.844        .13933       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .69128        .20809        .32381E-03   -1.0424    
  21  Prefactor     1.0956        .13263        .18597E-03   -.89607    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.97523e-09
Minuit parameter uncertainties:
  1  9.21809e-05
  2  31.9687
  3  1.35184
  4  1.97357e-06
  5  3.85114
  6  1.40723e-05
  7  8.40712
  8  1.43424e-05
  9  7.1878
  10  24.818
  11  8.11671
  12  5.03331e-07
  13  0.000875816
  14  3.43769
  15  25.4213
  16  14.4202
  17  1.07913
  18  7.8419
  19  0.00551909
  20  0.208323
  21  0.132669
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  8.758e-04  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.096e+00  1.327e-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.913e-01  2.083e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/250266/likelihoodResults_344563201_344822401_4FGL_J0809.8+0507_daily_bin406.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) = 7619.40974874
delta logL = -0.000103344636955

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7619.40964569
delta logL = -2.91633114102e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10186E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8011       1.0000          .0000       5.0000    
     3 'Normalizat'    .69135       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0956       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=   7619.410     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      200 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    63.222        .90712E-02** at limit **
   2  alpha         2.8797        3.6798        .41535       -.90505E-05
   3  Normalizat    .69128        .16137        .73156E-01   -.16473E-05
   4  Prefactor     1.0956        .11499        .37757E-01   -.20929E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100026
  alpha      = 2.87974
  Normalizat = 0.691278
  Prefactor  = 1.0956
 **********
 **   18 **HESSE 
 **********

 FCN=   7619.410     FROM HESSE     STATUS=OK            29 CALLS      229 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10003E-03    57.528        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8797        3.6270        .16614        .15249    
   3  Normalizat    .69128        .18012        .32381E-03   -1.0424    
   4  Prefactor     1.0956        .12870        .18597E-03   -.89607    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.26183e-10
Minuit parameter uncertainties:
  1  0.00246336
  2  2.47119
  3  0.180274
  4  0.128737
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250266': 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) = 7619.40964516
delta logL = 2.346423571e-07

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  2.463e-03  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.880e+00  2.471e+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.096e+00  1.287e-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.913e-01  1.803e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 122.453 5.131

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.80e-05', job_status='DONE', photon_flux_upper_limit='6.82e-08', time_completed='2021-08-29 09:07:14.123673', job_id='250266', GAL2='1.10', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1630253234.12', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='2.35e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='406' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:07:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 250266: <4FGL_J0809.8+0507_daily_bin406> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin406 122.453 5.1313 344563201 344822401 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 :                                   833.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            990 sec.

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

