/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 89 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 = 7365
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0809.8+0507_daily_bin25
RA = 122.453, Dec = 5.1313
tmin = 245808001, tmax = 246067201
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='248631', job_status='RUN', time_executed='2021-08-29 08:48:36.840170', time_epoch_executed='1630252116.84' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='25'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248631

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248631/ft1_4FGL_J0809.8+0507_daily_bin25.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248631/ft2_4FGL_J0809.8+0507_daily_bin25.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248631/ft1_4FGL_J0809.8+0507_daily_bin25.fits outfile=/scratch/kocevski/248631/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin25.fits ra=122.453 dec=5.1313 rad=12.0 tmin=245808001.0 tmax=246067201.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 6.70
user 1.24
sys 5.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248631/ft1_filtered_4FGL_J0809.8+0507_daily_bin25.fits evtable="EVENTS" scfile=/scratch/kocevski/248631/ft2_4FGL_J0809.8+0507_daily_bin25.fits sctable="SC_DATA" expcube=/scratch/kocevski/248631/ltcube_245808001_246067201_4FGL_J0809.8+0507_daily_bin25.fits outfile=/scratch/kocevski/248631/expmap_245808001_246067201_4FGL_J0809.8+0507_daily_bin25.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/248631/ltcube_245808001_246067201_4FGL_J0809.8+0507_daily_bin25.fits
.....................!
real 198.61
user 186.14
sys 11.82

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/248631/ft1_filtered_4FGL_J0809.8+0507_daily_bin25.fits scfile=/scratch/kocevski/248631/ft2_4FGL_J0809.8+0507_daily_bin25.fits outfile=/scratch/kocevski/248631/cmap_245808001_246067201_4FGL_J0809.8+0507_daily_bin25.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 5.55
user 0.37
sys 5.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/248631/ft1_filtered_4FGL_J0809.8+0507_daily_bin25.fits scfile=/scratch/kocevski/248631/ft2_4FGL_J0809.8+0507_daily_bin25.fits outfile=/scratch/kocevski/248631/cmap_HighResolution_245808001_246067201_4FGL_J0809.8+0507_daily_bin25.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 5.61
user 0.40
sys 5.20

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    7.9095       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7747       1.0000         .10000E-03   10000.    
     6 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.370       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.092       1.0000         .10000E-03   10000.    
    10 'Prefactor '    80.344       1.0000         .10000E-03   10000.    
    11 'norm      '    18.496       1.0000         .10000E-03   10000.    
    12 'norm      '    .60610       1.0000         .10000E-03   10000.    
    13 'norm      '    .11643E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10221E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.8606       1.0000         .10000E-03   10000.    
    18 'norm      '    7.0010       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .79858       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1013       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=   6653.137     FROM MIGRAD    STATUS=CONVERGED    441 CALLS     2170 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.897        .20863E-04** at limit **
   2  Prefactor     .10000E-03    11.136        .45010E-05** at limit **
   3  norm          7.9096        2.3231       -.27257E-07   -.15425E-03
   4  Prefactor     .10000E-03    10.418       -.10673E-04** at limit **
   5  Prefactor     2.7749        2.9357       -.87765E-07   -.46223E-03
   6  norm          .10000E-03    16.562       -.10822E-04** at limit **
   7  Prefactor     16.373        11.594        .38043E-07    .13084E-03
   8  Prefactor     .10000E-03    47.541       -.16901E-04** at limit **
   9  Prefactor     15.092        8.4695        .13385E-06    .12533E-03
  10  Prefactor     80.351        40.517        .57725E-05   -.11789E-03
  11  norm          18.497        10.795       -.98015E-07    .20562E-04
  12  norm          .60778        2.0911       -.68811E-06   -.63172E-03
  13  norm          .10000E-03    12.472        .15638E-04** at limit **
  14  norm          .10000E-03    2.1542       -.10863E-06** at limit **
  15  Prefactor     .10000E-03    16.213       -.76043E-05** at limit **
  16  Prefactor     .10000E-03    5.2773        .64307E-07** at limit **
  17  norm          1.8607        .94008        .11758E-07   -.12854E-03
  18  norm          7.0015        8.1850       -.54312E-08   -.12619E-03
  19  Prefactor     .10000E-03    7.6155        .82627E-06** at limit **
  20  Normalizat    .79817        .19959       -.20571E-05    .50423E-04
  21  Prefactor     1.1016        .13738        .39084E-06   -.20207E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.90959
  Prefactor  = 0.0001
  Prefactor  = 2.77486
  norm       = 0.0001
  Prefactor  = 16.3726
  Prefactor  = 0.0001
  Prefactor  = 15.0922
  Prefactor  = 80.3507
  norm       = 18.4967
  norm       = 0.607781
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.86072
  norm       = 7.00155
  Prefactor  = 0.0001
  Normalizat = 0.798167
  Prefactor  = 1.1016
 **********
 **   18 **HESSE 
 **********

 FCN=   6653.137     FROM HESSE     STATUS=OK           313 CALLS     2483 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.9096        2.3242        .64495E-04   -1.5145    
   4  Prefactor     .10000E-03    10.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.7749        2.9249        .13696E-03   -1.5375    
   6  norm          .10000E-03    16.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.373        11.594        .98991E-04   -1.4898    
   8  Prefactor     .10000E-03    47.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.092        8.4043        .10310E-03   -1.4931    
  10  Prefactor     80.351        40.475        .44807E-04   -1.3913    
  11  norm          18.497        10.789        .93129E-04   -1.4848    
  12  norm          .60778        2.9340        .20444E-02   -1.5552    
  13  norm          .10000E-03    12.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.1830        .11685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.3008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.8607        .93898        .53982E-04   -1.5435    
  18  norm          7.0015        8.1776        .15162E-03   -1.5179    
  19  Prefactor     .10000E-03    7.6168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .79817        .22508        .32946E-03   -1.0014    
  21  Prefactor     1.1016        .15574        .20158E-03   -.89415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.81727e-10
Minuit parameter uncertainties:
  1  1.32376e-05
  2  7.11782e-07
  3  2.32421
  4  5.15918e-06
  5  2.92507
  6  8.23346e-05
  7  11.5956
  8  9.85096e-06
  9  8.40496
  10  40.4888
  11  10.7904
  12  2.67072
  13  9.75876e-05
  14  1.18533e-05
  15  3.64863e-05
  16  2.59749e-06
  17  0.938984
  18  8.17885
  19  1.80674e-06
  20  0.225343
  21  0.155805
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  9.759e-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:  1.102e+00  1.558e-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:  7.982e-01  2.253e-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: 6.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.78e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/248631/likelihoodResults_245808001_246067201_4FGL_J0809.8+0507_daily_bin25.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) = 6653.13702648
delta logL = -0.000384155371648

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6653.13664256
delta logL = -2.30262230616e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10339E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8131       1.0000          .0000       5.0000    
     3 'Normalizat'    .79808       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1017       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=   6653.137     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      201 TOTAL
                     EDM=   .36E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.307        .90712E-02** at limit **
   2  alpha         2.8111        3.6152        .41567        .79130E-06
   3  Normalizat    .79817        .18960        .74437E-01    .25047E-04
   4  Prefactor     1.1016        .13500        .37524E-01    .17483E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.81111
  Normalizat = 0.798166
  Prefactor  = 1.1016
 **********
 **   18 **HESSE 
 **********

 FCN=   6653.137     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .74E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8111        3.6152        .50000        .12477    
   3  Normalizat    .79817        .21324        .32946E-03   -1.0014    
   4  Prefactor     1.1016        .15215        .20158E-03   -.89415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.40836e-13
Minuit parameter uncertainties:
  1  8.35665e-06
  2  2.48059
  3  0.21346
  4  0.152215
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248631': 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) = 6653.13664233
delta logL = 1.29330146592e-09

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  8.357e-06  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.811e+00  2.481e+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.102e+00  1.522e-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:  7.982e-01  2.135e-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/248631/cmap_HighResolution_245808001_246067201_4FGL_J0809.8+0507_daily_bin25.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.78e-05', job_status='DONE', photon_flux_upper_limit='6.77e-08', time_completed='2021-08-29 09:00:10.883208', job_id='248631', GAL2='1.10', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1630252810.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.29e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='25' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:00:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 248631: <4FGL_J0809.8+0507_daily_bin25> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin25> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 29 08:45:31 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 08:45:32 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:45:32 2021
Terminated at Sun Aug 29 09:00:12 2021
Results reported at Sun Aug 29 09:00:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin25 122.453 5.1313 245808001 246067201 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 :                                   775.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             266.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            881 sec.

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

