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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin145
RA = 122.453, Dec = 5.1313
tmin = 276912001, tmax = 277171201
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='249992', job_status='RUN', time_executed='2021-08-29 08:53:17.631845', time_epoch_executed='1630252397.63' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='145'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/249992

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/249992/ft1_4FGL_J0809.8+0507_daily_bin145.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/249992/ft2_4FGL_J0809.8+0507_daily_bin145.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/249992/ft1_4FGL_J0809.8+0507_daily_bin145.fits outfile=/scratch/kocevski/249992/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin145.fits ra=122.453 dec=5.1313 rad=12.0 tmin=276912001.0 tmax=277171201.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 3.71
user 3.26
sys 0.42

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/249992/ft1_filtered_4FGL_J0809.8+0507_daily_bin145.fits" evtable="EVENTS" scfile=/scratch/kocevski/249992/ft2_4FGL_J0809.8+0507_daily_bin145.fits sctable="SC_DATA" outfile=/scratch/kocevski/249992/ltcube_276912001_277171201_4FGL_J0809.8+0507_daily_bin145.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/249992/ft2_4FGL_J0809.8+0507_daily_bin145.fits
.....................!
real 13.87
user 13.23
sys 0.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/249992/ft1_filtered_4FGL_J0809.8+0507_daily_bin145.fits evtable="EVENTS" scfile=/scratch/kocevski/249992/ft2_4FGL_J0809.8+0507_daily_bin145.fits sctable="SC_DATA" expcube=/scratch/kocevski/249992/ltcube_276912001_277171201_4FGL_J0809.8+0507_daily_bin145.fits outfile=/scratch/kocevski/249992/expmap_276912001_277171201_4FGL_J0809.8+0507_daily_bin145.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/249992/ltcube_276912001_277171201_4FGL_J0809.8+0507_daily_bin145.fits
.....................!
real 192.93
user 186.71
sys 5.12

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/249992/ft1_filtered_4FGL_J0809.8+0507_daily_bin145.fits scfile=/scratch/kocevski/249992/ft2_4FGL_J0809.8+0507_daily_bin145.fits outfile=/scratch/kocevski/249992/cmap_276912001_277171201_4FGL_J0809.8+0507_daily_bin145.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 0.77
user 0.38
sys 0.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/249992/ft1_filtered_4FGL_J0809.8+0507_daily_bin145.fits scfile=/scratch/kocevski/249992/ft2_4FGL_J0809.8+0507_daily_bin145.fits outfile=/scratch/kocevski/249992/cmap_HighResolution_276912001_277171201_4FGL_J0809.8+0507_daily_bin145.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 0.78
user 0.40
sys 0.35

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.548       1.0000         .10000E-03   10000.    
     3 'norm      '    .61820       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.1720       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    41.729       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.9870       1.0000         .10000E-03   10000.    
    12 'norm      '    .97940E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .31186       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.4673       1.0000         .10000E-03   10000.    
    18 'norm      '    1.8203       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.3099       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3529       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .89514       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=   5903.709     FROM MIGRAD    STATUS=CONVERGED    460 CALLS     2254 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.092        .54876E-06** at limit **
   2  Prefactor     19.559        30.635       -.84027E-06    .44945E-04
   3  norm          .61923        1.8650        .27490E-06    .21791E-03
   4  Prefactor     .10000E-03    17.402       -.13018E-06** at limit **
   5  Prefactor     4.1734        4.1099        .97181E-06    .49068E-04
   6  norm          .10000E-03    6.1733       -.79486E-07** at limit **
   7  Prefactor     .10000E-03    4.6342       -.12308E-06** at limit **
   8  Prefactor     41.723        82.182       -.14009E-07    .91058E-05
   9  Prefactor     .10000E-03    5.2114       -.22363E-06** at limit **
  10  Prefactor     .10000E-03    35.331       -.97860E-06** at limit **
  11  norm          2.9845        9.1024        .26244E-06    .53263E-04
  12  norm          .37579E-01    1.4213       -.63857E-07   -.40107E-06
  13  norm          .10000E-03    17.551       -.38422E-06** at limit **
  14  norm          .31287        2.7869       -.17189E-05   -.49495E-03
  15  Prefactor     .10000E-03    20.596       -.15228E-06** at limit **
  16  Prefactor     .10000E-03    19.235       -.17102E-06** at limit **
  17  norm          1.4675        1.2709       -.10069E-06    .23709E-03
  18  norm          1.8225        10.858        .85818E-05   -.13532E-03
  19  Prefactor     2.3213        236.50       -.11909E-05    .14246E-04
  20  Normalizat    1.3530        .21006       -.53631E-06    .82793E-03
  21  Prefactor     .89491        .13842        .66958E-06    .97652E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 19.5592
  norm       = 0.619225
  Prefactor  = 0.0001
  Prefactor  = 4.17336
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.7231
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.98448
  norm       = 0.0375793
  norm       = 0.0001
  norm       = 0.312866
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.46753
  norm       = 1.82248
  Prefactor  = 2.32133
  Normalizat = 1.35299
  Prefactor  = 0.894907
 **********
 **   18 **HESSE 
 **********

 FCN=   5903.709     FROM HESSE     STATUS=OK           317 CALLS     2571 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.559        30.687        .90590E-04   -1.4823    
   3  norm          .61923        1.8708        .16812E-03   -1.5551    
   4  Prefactor     .10000E-03    17.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.1734        4.1345        .72446E-03   -1.5299    
   6  norm          .10000E-03    6.1787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.6479        .16155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     41.723        82.166        .62055E-04   -1.4415    
   9  Prefactor     .10000E-03    5.2800        .17131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    35.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.9845        9.0628        .23489E-03   -1.5362    
  12  norm          .37579E-01    56.660        .17645E-02   -1.5669    
  13  norm          .10000E-03    17.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .31287        6.1287        .24527E-02   -1.5596    
  15  Prefactor     .10000E-03    20.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.4675        1.2552        .76016E-04   -1.5466    
  18  norm          1.8225        11.298        .15475E-02   -1.5438    
  19  Prefactor     2.3213        238.62        .26996E-03   -1.5403    
  20  Normalizat    1.3530        .24266        .26935E-03   -.81998    
  21  Prefactor     .89491        .16145        .21778E-03   -.96319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18706e-08
Minuit parameter uncertainties:
  1  9.48094e-05
  2  30.7117
  3  1.87101
  4  0.000102116
  5  4.13475
  6  1.56976e-05
  7  2.09162e-05
  8  82.3899
  9  4.0102e-05
  10  8.73108e-05
  11  9.06696
  12  2.91728
  13  0.000107428
  14  2.76933
  15  9.52426e-05
  16  4.19225e-05
  17  1.25525
  18  9.07779
  19  47.2644
  20  0.242866
  21  0.161537
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  1.074e-04  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.949e-01  1.615e-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.353e+00  2.429e-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.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.81e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/249992/likelihoodResults_276912001_277171201_4FGL_J0809.8+0507_daily_bin145.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) = 5903.70919435
delta logL = -0.000269012426543

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5903.70195538
delta logL = 0.00696995795806

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .59524       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3437       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89829       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5903.702     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      311 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .60442        11.901        .23745E-02   -.14254E-03
   2  alpha         5.0000        4.8653        .18518    ** at limit **
   3  Normalizat    1.3432        .24334        .27021E-03    .44556E-04
   4  Prefactor     .89863        .15664        .21739E-03   -.23062E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.604423
  alpha      = 5
  Normalizat = 1.34324
  Prefactor  = 0.898634
 **********
 **   18 **HESSE 
 **********

 FCN=   5903.702     FROM HESSE     STATUS=OK            25 CALLS      336 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .60442        11.114        .94979E-04   -1.5552    
   2  alpha         5.0000        4.7893        .74072E-02    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.3432        .23988        .10808E-04   -.82285    
   4  Prefactor     .89863        .15593        .86958E-05   -.96189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0699e-09
Minuit parameter uncertainties:
  1  5.18424
  2  0.000690279
  3  0.240077
  4  0.156011
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/249992': 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) = 5903.70195148
delta logL = 0.00697385788408

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  6.044e-01  5.184e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  5.000e+00  6.903e-04  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.986e-01  1.560e-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.343e+00  2.401e-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/249992/cmap_HighResolution_276912001_277171201_4FGL_J0809.8+0507_daily_bin145.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.81e-05', job_status='DONE', photon_flux_upper_limit='6.88e-08', time_completed='2021-08-29 09:03:20.273069', job_id='249992', GAL2='0.90', fit_tolerance='1e-08', EG2='1.34', EG='1.35', time_epoch_completed='1630253000.27', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='6.97e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='145' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:03:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 249992: <4FGL_J0809.8+0507_daily_bin145> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin145> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 29 08:50:21 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 08:50:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 08:50:22 2021
Terminated at Sun Aug 29 09:03:21 2021
Results reported at Sun Aug 29 09:03:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin145 122.453 5.1313 276912001 277171201 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 :                                   608.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             288.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            780 sec.

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

