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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin681
RA = 122.453, Dec = 5.1313
tmin = 415843201, tmax = 416102401
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='252862', job_status='RUN', time_executed='2021-08-29 09:03:58.451215', time_epoch_executed='1630253038.45' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='681'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/252862

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/252862/ft1_4FGL_J0809.8+0507_daily_bin681.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/252862/ft2_4FGL_J0809.8+0507_daily_bin681.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/252862/ft1_4FGL_J0809.8+0507_daily_bin681.fits outfile=/scratch/kocevski/252862/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin681.fits ra=122.453 dec=5.1313 rad=12.0 tmin=415843201.0 tmax=416102401.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 7.11
user 5.72
sys 1.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/252862/ft1_filtered_4FGL_J0809.8+0507_daily_bin681.fits" evtable="EVENTS" scfile=/scratch/kocevski/252862/ft2_4FGL_J0809.8+0507_daily_bin681.fits sctable="SC_DATA" outfile=/scratch/kocevski/252862/ltcube_415843201_416102401_4FGL_J0809.8+0507_daily_bin681.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/252862/ft2_4FGL_J0809.8+0507_daily_bin681.fits
.....................!
real 13.50
user 11.75
sys 1.69

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/252862/ft1_filtered_4FGL_J0809.8+0507_daily_bin681.fits evtable="EVENTS" scfile=/scratch/kocevski/252862/ft2_4FGL_J0809.8+0507_daily_bin681.fits sctable="SC_DATA" expcube=/scratch/kocevski/252862/ltcube_415843201_416102401_4FGL_J0809.8+0507_daily_bin681.fits outfile=/scratch/kocevski/252862/expmap_415843201_416102401_4FGL_J0809.8+0507_daily_bin681.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/252862/ltcube_415843201_416102401_4FGL_J0809.8+0507_daily_bin681.fits
.....................!
real 192.05
user 185.92
sys 5.73

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/252862/ft1_filtered_4FGL_J0809.8+0507_daily_bin681.fits scfile=/scratch/kocevski/252862/ft2_4FGL_J0809.8+0507_daily_bin681.fits outfile=/scratch/kocevski/252862/cmap_415843201_416102401_4FGL_J0809.8+0507_daily_bin681.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.64
user 0.37
sys 1.21

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/252862/ft1_filtered_4FGL_J0809.8+0507_daily_bin681.fits scfile=/scratch/kocevski/252862/ft2_4FGL_J0809.8+0507_daily_bin681.fits outfile=/scratch/kocevski/252862/cmap_HighResolution_415843201_416102401_4FGL_J0809.8+0507_daily_bin681.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.74
user 0.38
sys 1.33

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.8559       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.515       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 '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .51538       1.0000         .10000E-03   10000.    
    13 'norm      '    20.803       1.0000         .10000E-03   10000.    
    14 'norm      '    .66479       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .49376       1.0000         .10000E-03   10000.    
    18 'norm      '    10.923       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .75446E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .93254       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .99276       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=   4587.058     FROM MIGRAD    STATUS=CONVERGED    448 CALLS     2182 TOTAL
                     EDM=   .83E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.608        .30122E-06** at limit **
   2  Prefactor     .10000E-03    33.268        .24933E-06** at limit **
   3  norm          6.8569        2.6665        .83212E-07   -.52931E-04
   4  Prefactor     .10000E-03    12.428       -.57243E-07** at limit **
   5  Prefactor     .10000E-03    .85404        .23413E-07** at limit **
   6  norm          .10000E-03    9.1416        .71974E-08** at limit **
   7  Prefactor     18.517        13.035        .20276E-06   -.12986E-04
   8  Prefactor     .10000E-03    52.579       -.62931E-08** at limit **
   9  Prefactor     .10000E-03    3.5048       -.78514E-08** at limit **
  10  Prefactor     .10000E-03    25.343       -.33539E-07** at limit **
  11  norm          .10000E-03    3.6155       -.30585E-09** at limit **
  12  norm          .51539        1.4479        .62430E-06    .40323E-03
  13  norm          20.813        24.527       -.12847E-06   -.10798E-05
  14  norm          .66548        2.3801        .80867E-06   -.10092E-03
  15  Prefactor     .10000E-03    15.091        .28949E-06** at limit **
  16  Prefactor     .10000E-03    3.5479        .17906E-07** at limit **
  17  norm          .49430        1.2204        .40183E-06   -.91195E-04
  18  norm          10.925        9.8695        .11072E-05   -.14763E-03
  19  Prefactor     .10000E-03    149.05       -.47249E-05** at limit **
  20  Normalizat    .93220        .22434       -.21066E-05    .67767E-05
  21  Prefactor     .99287        .15157        .28020E-06   -.84075E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.85695
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.5168
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.515387
  norm       = 20.8131
  norm       = 0.665484
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.494299
  norm       = 10.9252
  Prefactor  = 0.000100001
  Normalizat = 0.932197
  Prefactor  = 0.992874
 **********
 **   18 **HESSE 
 **********

 FCN=   4587.058     FROM HESSE     STATUS=OK           315 CALLS     2497 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    33.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.8569        2.6664        .65466E-04   -1.5184    
   4  Prefactor     .10000E-03    12.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .85785        .61121E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    9.1469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.517        13.041        .93081E-04   -1.4847    
   8  Prefactor     .10000E-03    52.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.5157        .12382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    25.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.6209        .12577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .51539        1.3290        .14276E-02   -1.5564    
  13  norm          20.813        24.517        .87817E-04   -1.4795    
  14  norm          .66548        2.4080        .18909E-02   -1.5545    
  15  Prefactor     .10000E-03    15.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.5499        .12460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .49430        1.2019        .10947E-03   -1.5567    
  18  norm          10.925        9.7200        .60611E-03   -1.5047    
  19  Prefactor     .10000E-03    152.12        .41873E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .93220        .25231        .28288E-03   -.95338    
  21  Prefactor     .99287        .17445        .19540E-03   -.92967    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.49788e-09
Minuit parameter uncertainties:
  1  0.000153734
  2  0.000107092
  3  2.66643
  4  2.07921e-05
  5  1.47241e-06
  6  2.58032e-06
  7  13.0432
  8  9.95424e-06
  9  7.9194e-07
  10  0.000157719
  11  9.02825e-09
  12  1.32912
  13  24.5289
  14  2.40831
  15  5.4109e-05
  16  2.75398e-06
  17  1.20191
  18  9.72143
  19  0.000914407
  20  0.252633
  21  0.174548
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  2.081e+01  2.453e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.815e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  8.580e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  4.471e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  9.929e-01  1.745e-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:  9.322e-01  2.526e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.95
Ra Dec: 122.453 5.131
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.22e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/252862/likelihoodResults_415843201_416102401_4FGL_J0809.8+0507_daily_bin681.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) = 4586.81555444
delta logL = 0.242934201224

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4586.80865946
delta logL = 0.249829179402

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.925       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6968       1.0000          .0000       5.0000    
     3 'Normalizat'    .90721       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0032       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=   4586.809     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      300 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.934        20.526        .10036E-03   -.14273E-04
   2  alpha         3.6965        1.1928        .28102E-02   -.82934E-06
   3  Normalizat    .90677        .24811        .28656E-03   -.36619E-04
   4  Prefactor     1.0035        .17398        .19443E-03   -.53280E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 15.9338
  alpha      = 3.69653
  Normalizat = 0.906769
  Prefactor  = 1.00352
 **********
 **   18 **HESSE 
 **********

 FCN=   4586.809     FROM HESSE     STATUS=OK            23 CALLS      323 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.934        20.360        .40146E-05   -1.4909    
   2  alpha         3.6965        1.1842        .11241E-03    .49907    
   3  Normalizat    .90677        .24832        .11462E-04   -.96223    
   4  Prefactor     1.0035        .17412        .38886E-04   -.92612    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7109e-12
Minuit parameter uncertainties:
  1  20.369
  2  1.25076
  3  0.248635
  4  0.17422
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/252862': 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) = 4586.80865764
delta logL = 0.249830994597

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.593e+01  2.037e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  3.697e+00  1.251e+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.004e+00  1.742e-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:  9.068e-01  2.486e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.48
Ra Dec: 122.453 5.131
Photon Index (Free Index): 3.70 +/- 1.25
Photon Flux (Free Index): 5.24e-08 +/- 5.26e-08
Energy Flux (Free Index): 1.05e-05 +/- 1.01e-05

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/252862/cmap_HighResolution_415843201_416102401_4FGL_J0809.8+0507_daily_bin681.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.22e-05', comment='SUCCESS', energy_flux2='1.05e-05', dlogl='2.50e-01', photon_flux2='5.24e-08', job_status='DONE', time_completed='2021-08-29 09:13:21.616865', photon_index_error2='1.25', photon_index2='3.70', ts='0.95', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='1.01e-05', EG='0.93', time_epoch_completed='1630253601.62', return_code='0', job_id='252862', GAL2='1.00', EG2='0.91', return_code2='0', photon_flux_error2='5.26e-08', ts2='1.48', photon_index='2.82' WHERE bin_id='681' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:13:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 252862: <4FGL_J0809.8+0507_daily_bin681> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin681 122.453 5.1313 415843201 416102401 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 :                                   579.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            776 sec.

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

