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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin469
RA = 122.453, Dec = 5.1313
tmin = 360892801, tmax = 361152001
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='251417', job_status='RUN', time_executed='2021-08-29 08:59:41.512772', time_epoch_executed='1630252781.51' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='469'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251417

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251417/ft1_4FGL_J0809.8+0507_daily_bin469.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251417/ft2_4FGL_J0809.8+0507_daily_bin469.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/251417/ft1_4FGL_J0809.8+0507_daily_bin469.fits outfile=/scratch/kocevski/251417/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin469.fits ra=122.453 dec=5.1313 rad=12.0 tmin=360892801.0 tmax=361152001.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 11.50
user 3.30
sys 8.13

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/251417/ft2_4FGL_J0809.8+0507_daily_bin469.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/251417/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin469.fits evtable="EVENTS" outfile="/scratch/kocevski/251417/ft1_filtered_4FGL_J0809.8+0507_daily_bin469.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 8.26
user 0.35
sys 7.87

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/251417/ft1_filtered_4FGL_J0809.8+0507_daily_bin469.fits" evtable="EVENTS" scfile=/scratch/kocevski/251417/ft2_4FGL_J0809.8+0507_daily_bin469.fits sctable="SC_DATA" outfile=/scratch/kocevski/251417/ltcube_360892801_361152001_4FGL_J0809.8+0507_daily_bin469.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/251417/ft2_4FGL_J0809.8+0507_daily_bin469.fits
.....................!
real 21.53
user 12.19
sys 9.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251417/ft1_filtered_4FGL_J0809.8+0507_daily_bin469.fits evtable="EVENTS" scfile=/scratch/kocevski/251417/ft2_4FGL_J0809.8+0507_daily_bin469.fits sctable="SC_DATA" expcube=/scratch/kocevski/251417/ltcube_360892801_361152001_4FGL_J0809.8+0507_daily_bin469.fits outfile=/scratch/kocevski/251417/expmap_360892801_361152001_4FGL_J0809.8+0507_daily_bin469.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/251417/ltcube_360892801_361152001_4FGL_J0809.8+0507_daily_bin469.fits
.....................!
real 199.74
user 184.99
sys 14.23

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/251417/ft1_filtered_4FGL_J0809.8+0507_daily_bin469.fits scfile=/scratch/kocevski/251417/ft2_4FGL_J0809.8+0507_daily_bin469.fits outfile=/scratch/kocevski/251417/cmap_360892801_361152001_4FGL_J0809.8+0507_daily_bin469.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 8.29
user 0.38
sys 7.87

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/251417/ft1_filtered_4FGL_J0809.8+0507_daily_bin469.fits scfile=/scratch/kocevski/251417/ft2_4FGL_J0809.8+0507_daily_bin469.fits outfile=/scratch/kocevski/251417/cmap_HighResolution_360892801_361152001_4FGL_J0809.8+0507_daily_bin469.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 8.34
user 0.37
sys 7.94

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11356E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.977       1.0000         .10000E-03   10000.    
     3 'norm      '    .96585       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .11921E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .40302E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1330       1.0000         .10000E-03   10000.    
    10 'Prefactor '    50.803       1.0000         .10000E-03   10000.    
    11 'norm      '    5.8219       1.0000         .10000E-03   10000.    
    12 'norm      '    1.4133       1.0000         .10000E-03   10000.    
    13 'norm      '    16.159       1.0000         .10000E-03   10000.    
    14 'norm      '    4.1335       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4407       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .68065E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.5419       1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.779       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1826       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .81854       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=   5513.002     FROM MIGRAD    STATUS=CONVERGED    458 CALLS     2239 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    71.409       -.44131E-06** at limit **
   2  Prefactor     18.971        25.638       -.24400E-06   -.31444E-04
   3  norm          .96974        1.4125        .22839E-06    .77574E-03
   4  Prefactor     .10000E-03    12.638        .16549E-06** at limit **
   5  Prefactor     .10000E-03    .81863        .12198E-06** at limit **
   6  norm          .10000E-03    56.878        .41091E-06** at limit **
   7  Prefactor     .10001E-03    43.010        .11150E-04** at limit **
   8  Prefactor     .10000E-03    47.505        .11585E-05** at limit **
   9  Prefactor     3.1330        6.6906       -.37175E-06   -.26769E-04
  10  Prefactor     50.808        34.192       -.46942E-06   -.96210E-04
  11  norm          5.8219        6.1623        .56350E-07   -.12351E-04
  12  norm          1.4136        2.9353       -.64134E-06   -.19543E-03
  13  norm          16.162        20.338       -.17207E-05   -.14790E-03
  14  norm          4.1339        3.4554        .19418E-07   -.13778E-04
  15  Prefactor     1.4831        191.34        .29413E-05   -.25549E-05
  16  Prefactor     .10003E-03    8.2530        .15440E-05** at limit **
  17  norm          1.5425        1.0046       -.57550E-07   -.20454E-03
  18  norm          .10000E-03    2.6361        .12199E-06** at limit **
  19  Prefactor     16.831        33.507       -.20419E-05   -.14425E-03
  20  Normalizat    1.1818        .21369       -.20926E-06   -.52502E-03
  21  Prefactor     .81893        .14604       -.17544E-06   -.69703E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 18.9712
  norm       = 0.969738
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.000100001
  Prefactor  = 3.13301
  Prefactor  = 50.8079
  norm       = 5.82192
  norm       = 1.41362
  norm       = 16.1624
  norm       = 4.13393
  Prefactor  = 1.48306
  Prefactor  = 0.00010003
  norm       = 1.54248
  norm       = 0.0001
  Prefactor  = 16.8315
  Normalizat = 1.18176
  Prefactor  = 0.818927
 **********
 **   18 **HESSE 
 **********

 FCN=   5513.002     FROM HESSE     STATUS=OK           321 CALLS     2560 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    71.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.971        25.631        .91940E-04   -1.4837    
   3  norm          .96974        1.2648        .10295E-02   -1.5511    
   4  Prefactor     .10000E-03    12.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .82560        .65592E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    58.876        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    44.066        .37936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    47.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.1330        6.6439        .22904E-03   -1.5354    
  10  Prefactor     50.808        34.157        .56266E-04   -1.4281    
  11  norm          5.8219        6.1636        .16645E-03   -1.5225    
  12  norm          1.4136        2.9142        .17472E-03   -1.5470    
  13  norm          16.162        20.267        .99636E-04   -1.4904    
  14  norm          4.1339        3.4563        .12216E-03   -1.5301    
  15  Prefactor     1.4831        187.34        .35940E-03   -1.5464    
  16  Prefactor     .10003E-03    98.935        .39262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.5425        1.0021        .57481E-04   -1.5460    
  18  norm          .10000E-03    2.6417        .11775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.831        33.628        .97776E-04   -1.4887    
  20  Normalizat    1.1818        .23844        .25820E-03   -.87168    
  21  Prefactor     .81893        .16239        .21173E-03   -.99034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81855e-09
Minuit parameter uncertainties:
  1  0.000131996
  2  25.6461
  3  1.26483
  4  1.95949e-05
  5  1.15376e-06
  6  5.63394e-05
  7  0.00100027
  8  0.000317437
  9  6.64549
  10  34.1703
  11  6.16429
  12  2.91451
  13  20.2758
  14  3.45643
  15  33.4434
  16  0.00347548
  17  1.00214
  18  4.02086e-06
  19  33.6662
  20  0.238655
  21  0.162488
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.616e+01  2.028e+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:  8.189e-01  1.625e-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.182e+00  2.387e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.26
Ra Dec: 122.453 5.131
Photon Index (Fixed Index): 2.82 +/- 0.00
Photon Flux (Fixed Index): 2.59e-08 +/- 3.25e-08
Energy Flux (Fixed Index): 6.83e-06 +/- 8.56e-06

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

Saving results to:
/scratch/kocevski/251417/likelihoodResults_360892801_361152001_4FGL_J0809.8+0507_daily_bin469.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) = 5512.9192482
delta logL = 0.0831868519717

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5512.91666122
delta logL = 0.0857738367367

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.329       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1293       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1919       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81424       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=   5512.917     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      221 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.329        22.282        .24053E-02    .12589E-02
   2  alpha         2.1287        1.6152        .41738        .18685E-05
   3  Normalizat    1.1919        .19544        .58175E-01    .15714E-05
   4  Prefactor     .81431        .13600        .43902E-01    .24575E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 17.329
  alpha      = 2.12871
  Normalizat = 1.19195
  Prefactor  = 0.814315
 **********
 **   18 **HESSE 
 **********

 FCN=   5512.917     FROM HESSE     STATUS=OK            31 CALLS      252 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.329        20.573        .96213E-04   -1.4875    
   2  alpha         2.1287        1.5595        .46786E-01   -.14907    
   3  Normalizat    1.1919        .22853        .25727E-03   -.86852    
   4  Prefactor     .81431        .15905        .21225E-03   -.99203    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86119e-09
Minuit parameter uncertainties:
  1  20.5817
  2  1.68751
  3  0.228723
  4  0.15914
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251417': 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) = 5512.91665996
delta logL = 0.0857750908708

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.733e+01  2.058e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.129e+00  1.688e+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:  8.143e-01  1.591e-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.192e+00  2.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.44
Ra Dec: 122.453 5.131
Photon Index (Free Index): 2.13 +/- 1.69
Photon Flux (Free Index): 1.86e-08 +/- 2.80e-08
Energy Flux (Free Index): 6.45e-06 +/- 7.70e-06

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/251417/cmap_HighResolution_360892801_361152001_4FGL_J0809.8+0507_daily_bin469.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.74e-05', comment='SUCCESS', photon_flux='2.59e-08', energy_flux2='6.45e-06', photon_flux_error='3.25e-08', dlogl='8.58e-02', energy_flux='6.83e-06', photon_flux2='1.86e-08', job_status='DONE', time_completed='2021-08-29 09:11:13.156637', photon_index_error2='1.69', photon_index2='2.13', ts='1.26', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='7.70e-06', EG='1.18', time_epoch_completed='1630253473.16', return_code='0', job_id='251417', GAL2='0.81', EG2='1.19', return_code2='0', energy_flux_error='8.56e-06', photon_flux_error2='2.80e-08', ts2='1.44', photon_index='2.82' WHERE bin_id='469' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:11:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 251417: <4FGL_J0809.8+0507_daily_bin469> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin469 122.453 5.1313 360892801 361152001 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 :                                   816.35 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             249.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            958 sec.

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

