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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin824
RA = 122.453, Dec = 5.1313
tmin = 452908801, tmax = 453168001
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='253091', job_status='RUN', time_executed='2021-08-29 09:04:16.332581', time_epoch_executed='1630253056.33' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='824'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/253091

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/253091/ft1_4FGL_J0809.8+0507_daily_bin824.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/253091/ft2_4FGL_J0809.8+0507_daily_bin824.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/253091/ft1_4FGL_J0809.8+0507_daily_bin824.fits outfile=/scratch/kocevski/253091/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin824.fits ra=122.453 dec=5.1313 rad=12.0 tmin=452908801.0 tmax=453168001.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.67
user 3.98
sys 0.67

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/253091/ft2_4FGL_J0809.8+0507_daily_bin824.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/253091/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin824.fits evtable="EVENTS" outfile="/scratch/kocevski/253091/ft1_filtered_4FGL_J0809.8+0507_daily_bin824.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 0.97
user 0.32
sys 0.64

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/253091/ft1_filtered_4FGL_J0809.8+0507_daily_bin824.fits" evtable="EVENTS" scfile=/scratch/kocevski/253091/ft2_4FGL_J0809.8+0507_daily_bin824.fits sctable="SC_DATA" outfile=/scratch/kocevski/253091/ltcube_452908801_453168001_4FGL_J0809.8+0507_daily_bin824.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/253091/ft2_4FGL_J0809.8+0507_daily_bin824.fits
.....................!
real 12.16
user 11.27
sys 0.85

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/253091/ft1_filtered_4FGL_J0809.8+0507_daily_bin824.fits evtable="EVENTS" scfile=/scratch/kocevski/253091/ft2_4FGL_J0809.8+0507_daily_bin824.fits sctable="SC_DATA" expcube=/scratch/kocevski/253091/ltcube_452908801_453168001_4FGL_J0809.8+0507_daily_bin824.fits outfile=/scratch/kocevski/253091/expmap_452908801_453168001_4FGL_J0809.8+0507_daily_bin824.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/253091/ltcube_452908801_453168001_4FGL_J0809.8+0507_daily_bin824.fits
.....................!
real 191.47
user 185.54
sys 5.58

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/253091/ft1_filtered_4FGL_J0809.8+0507_daily_bin824.fits scfile=/scratch/kocevski/253091/ft2_4FGL_J0809.8+0507_daily_bin824.fits outfile=/scratch/kocevski/253091/cmap_452908801_453168001_4FGL_J0809.8+0507_daily_bin824.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.05
user 0.39
sys 0.60

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/253091/ft1_filtered_4FGL_J0809.8+0507_daily_bin824.fits scfile=/scratch/kocevski/253091/ft2_4FGL_J0809.8+0507_daily_bin824.fits outfile=/scratch/kocevski/253091/cmap_HighResolution_452908801_453168001_4FGL_J0809.8+0507_daily_bin824.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.05
user 0.40
sys 0.61

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    63.037       1.0000         .10000E-03   10000.    
     3 'norm      '    7.6898       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .63504       1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.871       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.4407       1.0000         .10000E-03   10000.    
    11 'norm      '    .10208E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.2172       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .89242       1.0000         .10000E-03   10000.    
    18 'norm      '    .90861       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1859       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .80851       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=   5690.576     FROM MIGRAD    STATUS=CONVERGED    447 CALLS     2177 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10009E-03    24.236        .90712E-02** at limit **
   2  Prefactor     63.038        37.538        .12635E-02   -.76689E-03
   3  norm          7.6899        2.4369        .36152E-02    .31792E-04
   4  Prefactor     .10000E-03    22.642        .90712E-02** at limit **
   5  Prefactor     .63519        2.0140        .11810E-01    .13087E-02
   6  norm          .10000E-03    7.3472        .90712E-02** at limit **
   7  Prefactor     10.874        10.644        .30378E-02    .70482E-04
   8  Prefactor     .10001E-03    43.736        .90712E-02** at limit **
   9  Prefactor     .10000E-03    2.0765        .90712E-02** at limit **
  10  Prefactor     6.4423        27.854        .39536E-02   -.40385E-03
  11  norm          .10003E-03    13.968        .90712E-02** at limit **
  12  norm          .10000E-03    1.0509        .30531E-01** at limit **
  13  norm          .10000E-03    6.4490        .90712E-02** at limit **
  14  norm          7.2166        4.8774        .37327E-02   -.56385E-03
  15  Prefactor     .10000E-03    15.406        .90712E-02** at limit **
  16  Prefactor     .10000E-03    10.910        .90712E-02** at limit **
  17  norm          .89221        1.2700        .12780E-02    .29800E-03
  18  norm          .90627        10.029        .69486E-01    .45451E-03
  19  Prefactor     .10013E-03    19.428        .90712E-02** at limit **
  20  Normalizat    1.1859        .19631        .58795E-01    .96260E-05
  21  Prefactor     .80847        .13170        .43828E-01    .81985E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100088
  Prefactor  = 63.0378
  norm       = 7.68994
  Prefactor  = 0.0001
  Prefactor  = 0.635189
  norm       = 0.0001
  Prefactor  = 10.8741
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 6.44228
  norm       = 0.00010003
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.21657
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.892209
  norm       = 0.906271
  Prefactor  = 0.00010013
  Normalizat = 1.1859
  Prefactor  = 0.808466
 **********
 **   18 **HESSE 
 **********

 FCN=   5690.576     FROM HESSE     STATUS=OK           315 CALLS     2492 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10009E-03    24.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     63.038        37.534        .50542E-04   -1.4118    
   3  norm          7.6899        2.4371        .63267E-04   -1.5153    
   4  Prefactor     .10000E-03    22.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .63519        1.9925        .18130E-03   -1.5549    
   6  norm          .10000E-03    7.3609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.874        10.631        .12151E-03   -1.5048    
   8  Prefactor     .10001E-03    43.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.0777        .10616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.4423        27.833        .15814E-03   -1.5200    
  11  norm          .10003E-03    14.369        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.1286        .15079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.4524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.2166        4.8759        .13066E-03   -1.5171    
  15  Prefactor     .10000E-03    15.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .89221        1.2647        .51120E-04   -1.5519    
  18  norm          .90627        28.022        .43726E-02   -1.5518    
  19  Prefactor     .10013E-03    19.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1859        .22460        .26002E-03   -.87040    
  21  Prefactor     .80847        .15124        .21493E-03   -.99417    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21247e-08
Minuit parameter uncertainties:
  1  0.00292769
  2  37.5476
  3  2.43713
  4  0.000120307
  5  1.9927
  6  5.41257e-05
  7  10.6325
  8  0.00112826
  9  2.09049e-06
  10  26.8023
  11  0.00132097
  12  1.30623e-06
  13  1.39703e-05
  14  4.87619
  15  9.94895e-05
  16  0.000329501
  17  1.26472
  18  10.0835
  19  0.00318077
  20  0.224785
  21  0.151316
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  1.397e-05  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:  8.085e-01  1.513e-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.186e+00  2.248e-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.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.37e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/253091/likelihoodResults_452908801_453168001_4FGL_J0809.8+0507_daily_bin824.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) = 5690.57628921
delta logL = -0.000735472182896

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5690.57555376
delta logL = -2.83489498543e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8095       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1859       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80850       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=   5690.576     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      231 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    378.86        .18142E-01** at limit **
   2  alpha         2.0931        3.6785        .16623        .38163E-07
   3  Normalizat    1.1859        .39936E-01    .26002E-03    .20418E-04
   4  Prefactor     .80847        .27959E-01    .21493E-03    .22744E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.09308
  Normalizat = 1.1859
  Prefactor  = 0.808466
 **********
 **   18 **HESSE 
 **********

 FCN=   5690.576     FROM HESSE     STATUS=OK            23 CALLS      254 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.0688        .19530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0931        2.8466        .66492E-02   -.16350    
   3  Normalizat    1.1859        .21351        .10401E-04   -.87040    
   4  Prefactor     .80847        .14952        .85974E-05   -.99417    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0137e-10
Minuit parameter uncertainties:
  1  4.96484e-05
  2  619.253
  3  0.213668
  4  0.149599
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/253091': 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) = 5690.57555308
delta logL = 6.50889887766e-07

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  4.965e-05  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.093e+00  6.193e+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:  8.085e-01  1.496e-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.186e+00  2.137e-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/253091/cmap_HighResolution_452908801_453168001_4FGL_J0809.8+0507_daily_bin824.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.37e-05', job_status='DONE', photon_flux_upper_limit='5.20e-08', time_completed='2021-08-29 09:14:00.932456', job_id='253091', GAL2='0.81', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1630253640.93', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='6.51e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='824' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:14:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 253091: <4FGL_J0809.8+0507_daily_bin824> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin824 122.453 5.1313 452908801 453168001 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 :                                   591.61 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            793 sec.

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

