/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 207 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_bin694
RA = 122.453, Dec = 5.1313
tmin = 419212801, tmax = 419472001
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='252883', job_status='RUN', time_executed='2021-08-29 09:05:15.670089', time_epoch_executed='1630253115.67' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='694'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/252883

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/252883/ft1_4FGL_J0809.8+0507_daily_bin694.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/252883/ft2_4FGL_J0809.8+0507_daily_bin694.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/252883/ft1_4FGL_J0809.8+0507_daily_bin694.fits outfile=/scratch/kocevski/252883/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin694.fits ra=122.453 dec=5.1313 rad=12.0 tmin=419212801.0 tmax=419472001.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 9.88
user 5.12
sys 4.60

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/252883/ft1_filtered_4FGL_J0809.8+0507_daily_bin694.fits" evtable="EVENTS" scfile=/scratch/kocevski/252883/ft2_4FGL_J0809.8+0507_daily_bin694.fits sctable="SC_DATA" outfile=/scratch/kocevski/252883/ltcube_419212801_419472001_4FGL_J0809.8+0507_daily_bin694.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/252883/ft2_4FGL_J0809.8+0507_daily_bin694.fits
.....................!
real 17.18
user 11.96
sys 5.18

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/252883/ft1_filtered_4FGL_J0809.8+0507_daily_bin694.fits evtable="EVENTS" scfile=/scratch/kocevski/252883/ft2_4FGL_J0809.8+0507_daily_bin694.fits sctable="SC_DATA" expcube=/scratch/kocevski/252883/ltcube_419212801_419472001_4FGL_J0809.8+0507_daily_bin694.fits outfile=/scratch/kocevski/252883/expmap_419212801_419472001_4FGL_J0809.8+0507_daily_bin694.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/252883/ltcube_419212801_419472001_4FGL_J0809.8+0507_daily_bin694.fits
.....................!
real 197.62
user 186.06
sys 10.96

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/252883/ft1_filtered_4FGL_J0809.8+0507_daily_bin694.fits scfile=/scratch/kocevski/252883/ft2_4FGL_J0809.8+0507_daily_bin694.fits outfile=/scratch/kocevski/252883/cmap_419212801_419472001_4FGL_J0809.8+0507_daily_bin694.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 4.82
user 0.37
sys 4.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/252883/ft1_filtered_4FGL_J0809.8+0507_daily_bin694.fits scfile=/scratch/kocevski/252883/ft2_4FGL_J0809.8+0507_daily_bin694.fits outfile=/scratch/kocevski/252883/cmap_HighResolution_419212801_419472001_4FGL_J0809.8+0507_daily_bin694.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 4.83
user 0.38
sys 4.43

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    53.045       1.0000         .10000E-03   10000.    
     3 'norm      '    2.2726       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17139E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    13.209       1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.791       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.1874       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.673       1.0000         .10000E-03   10000.    
    11 'norm      '    20.138       1.0000         .10000E-03   10000.    
    12 'norm      '    2.5820       1.0000         .10000E-03   10000.    
    13 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    54.750       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.0339       1.0000         .10000E-03   10000.    
    17 'norm      '    .60819       1.0000         .10000E-03   10000.    
    18 'norm      '    13.692       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .56496       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2893       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=   6560.247     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     2252 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.707       -.75506E-05** at limit **
   2  Prefactor     53.044        41.002       -.66219E-06    .17495E-04
   3  norm          2.2724        2.1350       -.78831E-07   -.57613E-03
   4  Prefactor     .10000E-03    14.231        .73952E-05** at limit **
   5  Prefactor     .10028E-03    1.7199       -.33934E-06** at limit **
   6  norm          13.209        14.704       -.54716E-06    .29857E-04
   7  Prefactor     33.790        16.116        .65289E-06    .97298E-04
   8  Prefactor     .10000E-03    55.477        .61859E-05** at limit **
   9  Prefactor     6.1881        10.154       -.15709E-06   -.11593E-03
  10  Prefactor     11.675        24.179        .92890E-06    .19133E-04
  11  norm          20.138        15.656       -.34592E-06   -.15514E-04
  12  norm          2.5820        2.5358        .11826E-08   -.17377E-03
  13  norm          .10000E-03    13.937       -.68573E-05** at limit **
  14  norm          .10000E-03    2.2327       -.74767E-08** at limit **
  15  Prefactor     54.755        43.002        .52692E-05    .56384E-04
  16  Prefactor     5.0347        19.937       -.40151E-05   -.54670E-04
  17  norm          .60822        .66050        .72726E-08    .17643E-04
  18  norm          13.692        10.090        .21422E-08   -.27118E-04
  19  Prefactor     .10000E-03    27.103        .75233E-05** at limit **
  20  Normalizat    .56488        .23551       -.12386E-05    .36135E-04
  21  Prefactor     1.2894        .15318        .35763E-06    .89259E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 53.0444
  norm       = 2.27244
  Prefactor  = 0.0001
  Prefactor  = 0.000100279
  norm       = 13.209
  Prefactor  = 33.7897
  Prefactor  = 0.0001
  Prefactor  = 6.18807
  Prefactor  = 11.6753
  norm       = 20.1378
  norm       = 2.58199
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 54.7554
  Prefactor  = 5.03467
  norm       = 0.608219
  norm       = 13.6925
  Prefactor  = 0.0001
  Normalizat = 0.564876
  Prefactor  = 1.28938
 **********
 **   18 **HESSE 
 **********

 FCN=   6560.247     FROM HESSE     STATUS=OK           321 CALLS     2573 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     53.044        40.929        .55070E-04   -1.4250    
   3  norm          2.2724        2.1259        .10703E-03   -1.5406    
   4  Prefactor     .10000E-03    14.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10028E-03    56.215        .19883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          13.209        14.695        .11021E-03   -1.4981    
   7  Prefactor     33.790        16.006        .68935E-04   -1.4545    
   8  Prefactor     .10000E-03    55.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.1881        10.112        .16139E-03   -1.5210    
  10  Prefactor     11.675        24.151        .11725E-03   -1.5024    
  11  norm          20.138        15.583        .89254E-04   -1.4810    
  12  norm          2.5820        2.5292        .12222E-03   -1.5387    
  13  norm          .10000E-03    14.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.2633        .11810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     54.755        43.167        .54210E-04   -1.4227    
  16  Prefactor     5.0347        19.999        .17922E-03   -1.5259    
  17  norm          .60822        .64452        .66112E-04   -1.5552    
  18  norm          13.692        10.072        .10825E-03   -1.4968    
  19  Prefactor     .10000E-03    27.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .56488        .24789        .40167E-03   -1.0950    
  21  Prefactor     1.2894        .16652        .19356E-03   -.83623    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63375e-09
Minuit parameter uncertainties:
  1  6.45016e-06
  2  40.9508
  3  2.12592
  4  1.53606e-07
  5  0.0079244
  6  14.699
  7  16.0076
  8  6.19651e-06
  9  10.115
  10  24.1711
  11  15.5864
  12  2.52934
  13  5.07867e-05
  14  2.11329e-07
  15  43.1916
  16  20.0252
  17  0.644525
  18  10.0729
  19  7.43249e-06
  20  0.248378
  21  0.166592
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  5.079e-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.289e+00  1.666e-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:  5.649e-01  2.484e-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.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.80e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/252883/likelihoodResults_419212801_419472001_4FGL_J0809.8+0507_daily_bin694.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): 102
logL (Free Index) = 6560.24722857
delta logL = -0.00033918997633

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6560.24689099
delta logL = -1.61298248713e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13103E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7902       1.0000          .0000       5.0000    
     3 'Normalizat'    .56463       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2896       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=   6559.756     FROM MIGRAD    STATUS=CONVERGED    146 CALLS      288 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1428        6.1419        .18142E-01    .25007E-03
   2  alpha         .74523E-10    3.2006        .16603    ** at limit **
   3  Normalizat    .57261        .22646        .40167E-03    .68325E-04
   4  Prefactor     1.2798        .16054        .19356E-03    .24771E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.14278
  alpha      = 7.45229e-11
  Normalizat = 0.572609
  Prefactor  = 1.27981
 **********
 **   18 **HESSE 
 **********

 FCN=   6559.756     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1428        5.8694        .23208E-03   -1.5301    
   2  alpha         .74523E-10    3.1816        .33206E-01   -7.8540    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .57261        .22655        .16067E-04   -1.0916    
   4  Prefactor     1.2798        .16061        .38712E-04   -.83909    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17642e-10
Minuit parameter uncertainties:
  1  5.87021
  2  2.12087e-05
  3  0.226915
  4  0.160672
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/252883': 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) = 6559.75605755
delta logL = 0.490831827075

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  4.143e+00  5.870e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  7.452e-11  2.121e-05  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.280e+00  1.607e-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:  5.726e-01  2.269e-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/252883/cmap_HighResolution_419212801_419472001_4FGL_J0809.8+0507_daily_bin694.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.80e-05', job_status='DONE', photon_flux_upper_limit='6.84e-08', time_completed='2021-08-29 09:16:49.269093', job_id='252883', GAL2='1.28', fit_tolerance='1e-08', EG2='0.57', EG='0.56', time_epoch_completed='1630253809.27', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='4.91e-01', ts2='0.99', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='694' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:16:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 252883: <4FGL_J0809.8+0507_daily_bin694> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin694 122.453 5.1313 419212801 419472001 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 :                                   761.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            983 sec.

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

