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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin854
RA = 122.453, Dec = 5.1313
tmin = 460684801, tmax = 460944001
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='253139', job_status='RUN', time_executed='2021-08-29 09:04:51.656393', time_epoch_executed='1630253091.66' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/253139

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/253139/ft1_4FGL_J0809.8+0507_daily_bin854.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/253139/ft2_4FGL_J0809.8+0507_daily_bin854.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/253139/ft1_4FGL_J0809.8+0507_daily_bin854.fits outfile=/scratch/kocevski/253139/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin854.fits ra=122.453 dec=5.1313 rad=12.0 tmin=460684801.0 tmax=460944001.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.03
user 3.11
sys 0.89

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/253139/ft1_filtered_4FGL_J0809.8+0507_daily_bin854.fits" evtable="EVENTS" scfile=/scratch/kocevski/253139/ft2_4FGL_J0809.8+0507_daily_bin854.fits sctable="SC_DATA" outfile=/scratch/kocevski/253139/ltcube_460684801_460944001_4FGL_J0809.8+0507_daily_bin854.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/253139/ft2_4FGL_J0809.8+0507_daily_bin854.fits
.....................!
real 12.65
user 11.51
sys 1.09

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/253139/ft1_filtered_4FGL_J0809.8+0507_daily_bin854.fits evtable="EVENTS" scfile=/scratch/kocevski/253139/ft2_4FGL_J0809.8+0507_daily_bin854.fits sctable="SC_DATA" expcube=/scratch/kocevski/253139/ltcube_460684801_460944001_4FGL_J0809.8+0507_daily_bin854.fits outfile=/scratch/kocevski/253139/expmap_460684801_460944001_4FGL_J0809.8+0507_daily_bin854.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/253139/ltcube_460684801_460944001_4FGL_J0809.8+0507_daily_bin854.fits
.....................!
real 191.93
user 186.17
sys 5.40

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/253139/ft1_filtered_4FGL_J0809.8+0507_daily_bin854.fits scfile=/scratch/kocevski/253139/ft2_4FGL_J0809.8+0507_daily_bin854.fits outfile=/scratch/kocevski/253139/cmap_460684801_460944001_4FGL_J0809.8+0507_daily_bin854.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.21
user 0.37
sys 0.83

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/253139/ft1_filtered_4FGL_J0809.8+0507_daily_bin854.fits scfile=/scratch/kocevski/253139/ft2_4FGL_J0809.8+0507_daily_bin854.fits outfile=/scratch/kocevski/253139/cmap_HighResolution_460684801_460944001_4FGL_J0809.8+0507_daily_bin854.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.22
user 0.38
sys 0.83

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.459       1.0000         .10000E-03   10000.    
     2 'Prefactor '    40.591       1.0000         .10000E-03   10000.    
     3 'norm      '    1.4845       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.0417       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7099       1.0000         .10000E-03   10000.    
     6 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7787       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.998       1.0000         .10000E-03   10000.    
    11 'norm      '    17.454       1.0000         .10000E-03   10000.    
    12 'norm      '    .28020E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.4832       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .81451       1.0000         .10000E-03   10000.    
    18 'norm      '    9.7872       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.6021       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .76993       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=   6687.171     FROM MIGRAD    STATUS=CONVERGED    448 CALLS     2184 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.421        36.791       -.47641E-04    .95770E-05
   2  Prefactor     40.581        40.182       -.99510E-05    .14034E-04
   3  norm          1.4838        1.5122        .25783E-06    .23557E-03
   4  Prefactor     6.0341        19.922       -.41594E-05   -.20707E-04
   5  Prefactor     1.7097        3.5010       -.10151E-05   -.96636E-03
   6  norm          .10000E-03    13.587        .19054E-05** at limit **
   7  Prefactor     2.7777        7.2662       -.94992E-06   -.28048E-03
   8  Prefactor     .10000E-03    63.797        .57232E-05** at limit **
   9  Prefactor     .10000E-03    2.2698        .12424E-06** at limit **
  10  Prefactor     29.996        26.767       -.11355E-05    .96989E-05
  11  norm          17.455        12.956       -.94108E-06    .11318E-04
  12  norm          .10000E-03    1.7341       -.33864E-06** at limit **
  13  norm          .10000E-03    7.7166        .86641E-07** at limit **
  14  norm          3.4826        3.2927       -.24698E-06   -.14103E-03
  15  Prefactor     .10000E-03    11.766       -.12934E-05** at limit **
  16  Prefactor     .10000E-03    5.4224        .16865E-06** at limit **
  17  norm          .81432        1.0353       -.40739E-06   -.14506E-02
  18  norm          9.7867        8.8106       -.39582E-06    .34913E-04
  19  Prefactor     .10000E-03    20.691       -.20287E-05** at limit **
  20  Normalizat    1.6018        .21215       -.82607E-06    .27368E-03
  21  Prefactor     .77018        .13649        .50060E-05   -.95105E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.4206
  Prefactor  = 40.5809
  norm       = 1.48376
  Prefactor  = 6.03407
  Prefactor  = 1.70969
  norm       = 0.0001
  Prefactor  = 2.7777
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.9962
  norm       = 17.4553
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.4826
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.814325
  norm       = 9.78669
  Prefactor  = 0.0001
  Normalizat = 1.60181
  Prefactor  = 0.770181
 **********
 **   18 **HESSE 
 **********

 FCN=   6687.171     FROM HESSE     STATUS=OK           323 CALLS     2507 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.421        36.710        .84520E-04   -1.4761    
   2  Prefactor     40.581        40.160        .62916E-04   -1.4433    
   3  norm          1.4838        1.5049        .96751E-04   -1.5464    
   4  Prefactor     6.0341        19.938        .16335E-03   -1.5217    
   5  Prefactor     1.7097        3.4941        .20653E-03   -1.5446    
   6  norm          .10000E-03    13.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.7777        7.2352        .24412E-03   -1.5375    
   8  Prefactor     .10000E-03    63.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.2724        .12031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     29.996        26.792        .73153E-04   -1.4612    
  11  norm          17.455        12.949        .95868E-04   -1.4872    
  12  norm          .10000E-03    3.7222        .20875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.7282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.4826        3.2852        .13939E-03   -1.5335    
  15  Prefactor     .10000E-03    11.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.4289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .81432        .92528        .88854E-03   -1.5527    
  18  norm          9.7867        8.7983        .12809E-03   -1.5082    
  19  Prefactor     .10000E-03    20.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.6018        .24204        .27012E-03   -.74956    
  21  Prefactor     .77018        .15541        .24044E-03   -1.0084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89563e-09
Minuit parameter uncertainties:
  1  36.7471
  2  40.1871
  3  1.50496
  4  19.9604
  5  3.49456
  6  1.05714e-05
  7  7.23749
  8  1.886e-05
  9  2.21021e-06
  10  26.8027
  11  12.951
  12  7.3074e-05
  13  3.25719e-06
  14  3.28534
  15  5.06594e-06
  16  6.32283e-06
  17  0.925297
  18  8.79948
  19  2.72797e-05
  20  0.242214
  21  0.155498
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  3.257e-06  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:  7.702e-01  1.555e-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.602e+00  2.422e-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: 5.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.48e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/253139/likelihoodResults_460684801_460944001_4FGL_J0809.8+0507_daily_bin854.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): 102
logL (Free Index) = 6687.1720134
delta logL = -0.000614509659499

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6687.1713989
delta logL = -7.51606421545e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8078       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6018       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77021       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=   6687.171     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      232 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    680.72        .18142E-01** at limit **
   2  alpha         1.4900        4.2333        .16621        .32763E-07
   3  Normalizat    1.6018        .52276E-01    .27012E-03    .80307E-03
   4  Prefactor     .77019        .33939E-01    .24044E-03    .89492E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.49003
  Normalizat = 1.60181
  Prefactor  = 0.770185
 **********
 **   18 **HESSE 
 **********

 FCN=   6687.171     FROM HESSE     STATUS=OK            23 CALLS      255 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.4873        .24418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4900        3.8711        .66484E-02   -.41587    
   3  Normalizat    1.6018        .23223        .54024E-04   -.74956    
   4  Prefactor     .77019        .15076        .48087E-04   -1.0084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.44219e-10
Minuit parameter uncertainties:
  1  6.83667e-05
  2  845.075
  3  0.232382
  4  0.150838
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/253139': 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) = 6687.17139772
delta logL = 1.16910723591e-06

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  6.837e-05  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  1.490e+00  8.451e+02  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:  7.702e-01  1.508e-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.602e+00  2.324e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/253139/cmap_HighResolution_460684801_460944001_4FGL_J0809.8+0507_daily_bin854.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.48e-05', job_status='DONE', photon_flux_upper_limit='5.63e-08', time_completed='2021-08-29 09:15:24.811656', job_id='253139', GAL2='0.77', fit_tolerance='1e-08', EG2='1.60', EG='1.60', time_epoch_completed='1630253724.81', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='1.17e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='854' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:15:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 253139: <4FGL_J0809.8+0507_daily_bin854> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin854 122.453 5.1313 460684801 460944001 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 :                                   643.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            874 sec.

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

