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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin380
RA = 122.453, Dec = 5.1313
tmin = 337824001, tmax = 338083201
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='250224', job_status='RUN', time_executed='2021-08-29 08:53:12.513109', time_epoch_executed='1630252392.51' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='380'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250224

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250224/ft1_4FGL_J0809.8+0507_daily_bin380.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250224/ft2_4FGL_J0809.8+0507_daily_bin380.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250224/ft1_4FGL_J0809.8+0507_daily_bin380.fits outfile=/scratch/kocevski/250224/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin380.fits ra=122.453 dec=5.1313 rad=12.0 tmin=337824001.0 tmax=338083201.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 5.40
user 3.25
sys 2.11

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/250224/ft2_4FGL_J0809.8+0507_daily_bin380.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/250224/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin380.fits evtable="EVENTS" outfile="/scratch/kocevski/250224/ft1_filtered_4FGL_J0809.8+0507_daily_bin380.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 2.44
user 0.31
sys 2.09

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250224/ft1_filtered_4FGL_J0809.8+0507_daily_bin380.fits" evtable="EVENTS" scfile=/scratch/kocevski/250224/ft2_4FGL_J0809.8+0507_daily_bin380.fits sctable="SC_DATA" outfile=/scratch/kocevski/250224/ltcube_337824001_338083201_4FGL_J0809.8+0507_daily_bin380.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/250224/ft2_4FGL_J0809.8+0507_daily_bin380.fits
.....................!
real 13.81
user 11.31
sys 2.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250224/ft1_filtered_4FGL_J0809.8+0507_daily_bin380.fits evtable="EVENTS" scfile=/scratch/kocevski/250224/ft2_4FGL_J0809.8+0507_daily_bin380.fits sctable="SC_DATA" expcube=/scratch/kocevski/250224/ltcube_337824001_338083201_4FGL_J0809.8+0507_daily_bin380.fits outfile=/scratch/kocevski/250224/expmap_337824001_338083201_4FGL_J0809.8+0507_daily_bin380.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/250224/ltcube_337824001_338083201_4FGL_J0809.8+0507_daily_bin380.fits
.....................!
real 193.40
user 184.38
sys 8.63

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/250224/ft1_filtered_4FGL_J0809.8+0507_daily_bin380.fits scfile=/scratch/kocevski/250224/ft2_4FGL_J0809.8+0507_daily_bin380.fits outfile=/scratch/kocevski/250224/cmap_337824001_338083201_4FGL_J0809.8+0507_daily_bin380.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 2.44
user 0.36
sys 2.04

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250224/ft1_filtered_4FGL_J0809.8+0507_daily_bin380.fits scfile=/scratch/kocevski/250224/ft2_4FGL_J0809.8+0507_daily_bin380.fits outfile=/scratch/kocevski/250224/cmap_HighResolution_337824001_338083201_4FGL_J0809.8+0507_daily_bin380.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 2.42
user 0.38
sys 2.03

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.483       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.8346       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.557       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .68726       1.0000         .10000E-03   10000.    
     6 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.3829       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.044       1.0000         .10000E-03   10000.    
    11 'norm      '    48.983       1.0000         .10000E-03   10000.    
    12 'norm      '    2.7662       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.9571       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .25998E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.832       1.0000         .10000E-03   10000.    
    17 'norm      '    1.7199       1.0000         .10000E-03   10000.    
    18 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0106       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0211       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=   6244.643     FROM MIGRAD    STATUS=CONVERGED    454 CALLS     2259 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.534        42.910        .60334E-04   -.40101E-05
   2  Prefactor     .10000E-03    16.132       -.14125E-06** at limit **
   3  norm          1.8338        1.5945       -.37630E-06   -.71702E-03
   4  Prefactor     11.558        17.083        .86007E-07   -.11167E-04
   5  Prefactor     .69115        2.6861       -.27130E-06   -.54881E-03
   6  norm          .10000E-03    7.0227       -.45237E-07** at limit **
   7  Prefactor     .10000E-03    4.9456        .43874E-07** at limit **
   8  Prefactor     .10000E-03    50.549       -.13539E-05** at limit **
   9  Prefactor     8.3830        7.6711        .18386E-06   -.39368E-04
  10  Prefactor     14.051        33.471        .96977E-05   -.23602E-04
  11  norm          48.984        15.920        .68407E-08   -.16850E-04
  12  norm          2.7664        2.1880        .94619E-07   -.56599E-04
  13  norm          .10002E-03    114.68        .10169E-04** at limit **
  14  norm          3.9571        3.5971       -.18856E-06   -.26380E-03
  15  Prefactor     .10026E-03    22.807       -.28806E-05** at limit **
  16  Prefactor     11.837        14.907        .15740E-05    .39460E-04
  17  norm          1.7198        1.0517       -.54294E-08   -.14330E-02
  18  norm          .10000E-03    3.5467        .52705E-07** at limit **
  19  Prefactor     .10000E-03    6.8227        .81615E-07** at limit **
  20  Normalizat    1.0105        .21313        .11190E-05   -.29363E-04
  21  Prefactor     1.0212        .14105       -.36760E-05    .32261E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.5336
  Prefactor  = 0.0001
  norm       = 1.83377
  Prefactor  = 11.558
  Prefactor  = 0.691146
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.383
  Prefactor  = 14.051
  norm       = 48.9844
  norm       = 2.76635
  norm       = 0.000100017
  norm       = 3.95707
  Prefactor  = 0.000100256
  Prefactor  = 11.8374
  norm       = 1.71982
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.01049
  Prefactor  = 1.02119
 **********
 **   18 **HESSE 
 **********

 FCN=   6244.643     FROM HESSE     STATUS=OK           325 CALLS     2584 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.534        42.879        .90741E-04   -1.4824    
   2  Prefactor     .10000E-03    16.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.8338        1.5872        .88993E-04   -1.5437    
   4  Prefactor     11.558        17.077        .11784E-03   -1.5028    
   5  Prefactor     .69115        4.5031        .22982E-02   -1.5542    
   6  norm          .10000E-03    7.0284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.9526        .17158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    50.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.3830        7.6657        .13846E-03   -1.5129    
  10  Prefactor     14.051        33.083        .10688E-03   -1.4958    
  11  norm          48.984        15.909        .57296E-04   -1.4307    
  12  norm          2.7664        2.1854        .10084E-03   -1.5375    
  13  norm          .10002E-03    116.50        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.9571        3.5879        .13719E-03   -1.5310    
  15  Prefactor     .10026E-03    181.65        .71157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.837        14.923        .11646E-03   -1.5020    
  17  norm          1.7198        1.0523        .16017E-03   -1.5446    
  18  norm          .10000E-03    3.5685        .14533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.8236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0105        .24352        .29534E-03   -.92680    
  21  Prefactor     1.0212        .16396        .20753E-03   -.92026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40379e-09
Minuit parameter uncertainties:
  1  42.9464
  2  5.99597e-05
  3  1.58728
  4  17.0847
  5  3.52849
  6  5.78397e-06
  7  5.05066e-06
  8  3.35489e-05
  9  7.66661
  10  33.1264
  11  15.91
  12  2.18544
  13  0.00285811
  14  3.58812
  15  0.0136698
  16  14.9281
  17  1.05232
  18  9.65872e-06
  19  1.6489e-06
  20  0.243788
  21  0.164035
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  2.858e-03  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.021e+00  1.640e-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.010e+00  2.438e-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: 9.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.41e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/250224/likelihoodResults_337824001_338083201_4FGL_J0809.8+0507_daily_bin380.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) = 6244.64332937
delta logL = -4.08421765314e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6244.64332936
delta logL = -4.08376363339e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96349E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8151       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0105       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0212       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=   6244.643     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      198 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    113.72        .90714E-02** at limit **
   2  alpha         2.7781        3.6101        .41572        .16973E-05
   3  Normalizat    1.0105        .19363        .66769E-01   -.63369E-04
   4  Prefactor     1.0212        .13743        .42024E-01   -.18842E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.77808
  Normalizat = 1.01049
  Prefactor  = 1.02119
 **********
 **   18 **HESSE 
 **********

 FCN=   6244.643     FROM HESSE     STATUS=OK            29 CALLS      227 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    117.70        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7781        3.6092        .16629        .11146    
   3  Normalizat    1.0105        .22343        .29533E-03   -.92680    
   4  Prefactor     1.0212        .15884        .20753E-03   -.92027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.81437e-11
Minuit parameter uncertainties:
  1  0.000154643
  2  2.48449
  3  0.223634
  4  0.158908
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250224': 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) = 6244.6432885
delta logL = 2.46391209657e-08

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  1.546e-04  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.778e+00  2.484e+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.021e+00  1.589e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.010e+00  2.236e-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/250224/cmap_HighResolution_337824001_338083201_4FGL_J0809.8+0507_daily_bin380.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.41e-05', job_status='DONE', photon_flux_upper_limit='9.16e-08', time_completed='2021-08-29 09:03:49.559823', job_id='250224', GAL2='1.02', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1630253029.56', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='2.46e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='380' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:03:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 250224: <4FGL_J0809.8+0507_daily_bin380> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin380 122.453 5.1313 337824001 338083201 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 :                                   666.13 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   787 sec.
    Turnaround time :                            789 sec.

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

