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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin894
RA = 122.453, Dec = 5.1313
tmin = 471052801, tmax = 471312001
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='253204', job_status='RUN', time_executed='2021-08-29 09:04:26.466012', time_epoch_executed='1630253066.47' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='894'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/253204

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/253204/ft1_4FGL_J0809.8+0507_daily_bin894.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/253204/ft2_4FGL_J0809.8+0507_daily_bin894.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/253204/ft1_4FGL_J0809.8+0507_daily_bin894.fits outfile=/scratch/kocevski/253204/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin894.fits ra=122.453 dec=5.1313 rad=12.0 tmin=471052801.0 tmax=471312001.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 4.77
user 3.74
sys 1.00

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/253204/ft2_4FGL_J0809.8+0507_daily_bin894.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/253204/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin894.fits evtable="EVENTS" outfile="/scratch/kocevski/253204/ft1_filtered_4FGL_J0809.8+0507_daily_bin894.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.28
user 0.32
sys 0.94

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/253204/ft1_filtered_4FGL_J0809.8+0507_daily_bin894.fits" evtable="EVENTS" scfile=/scratch/kocevski/253204/ft2_4FGL_J0809.8+0507_daily_bin894.fits sctable="SC_DATA" outfile=/scratch/kocevski/253204/ltcube_471052801_471312001_4FGL_J0809.8+0507_daily_bin894.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/253204/ft2_4FGL_J0809.8+0507_daily_bin894.fits
.....................!
real 15.70
user 14.43
sys 1.22

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/253204/ft1_filtered_4FGL_J0809.8+0507_daily_bin894.fits evtable="EVENTS" scfile=/scratch/kocevski/253204/ft2_4FGL_J0809.8+0507_daily_bin894.fits sctable="SC_DATA" expcube=/scratch/kocevski/253204/ltcube_471052801_471312001_4FGL_J0809.8+0507_daily_bin894.fits outfile=/scratch/kocevski/253204/expmap_471052801_471312001_4FGL_J0809.8+0507_daily_bin894.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/253204/ltcube_471052801_471312001_4FGL_J0809.8+0507_daily_bin894.fits
.....................!
real 191.53
user 185.61
sys 5.56

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/253204/ft1_filtered_4FGL_J0809.8+0507_daily_bin894.fits scfile=/scratch/kocevski/253204/ft2_4FGL_J0809.8+0507_daily_bin894.fits outfile=/scratch/kocevski/253204/cmap_471052801_471312001_4FGL_J0809.8+0507_daily_bin894.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=122.453 yref=5.1313 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.30
user 0.37
sys 0.91

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/253204/ft1_filtered_4FGL_J0809.8+0507_daily_bin894.fits scfile=/scratch/kocevski/253204/ft2_4FGL_J0809.8+0507_daily_bin894.fits outfile=/scratch/kocevski/253204/cmap_HighResolution_471052801_471312001_4FGL_J0809.8+0507_daily_bin894.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=122.453 yref=5.1313 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.34
user 0.36
sys 0.94

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.029       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.7349       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10900E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4247       1.0000         .10000E-03   10000.    
     6 'norm      '    15.163       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.036       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4778       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    93.040       1.0000         .10000E-03   10000.    
    11 'norm      '    2.4055       1.0000         .10000E-03   10000.    
    12 'norm      '    1.3651       1.0000         .10000E-03   10000.    
    13 'norm      '    .11985E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.5076       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.635       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.6093       1.0000         .10000E-03   10000.    
    18 'norm      '    8.6310       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.3019       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3695       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .77559       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=   6276.325     FROM MIGRAD    STATUS=CONVERGED    486 CALLS     2247 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.051        40.098       -.48937E-05    .54122E-05
   2  Prefactor     .10000E-03    32.338       -.43652E-06** at limit **
   3  norm          2.7341        1.8071       -.11762E-06   -.14508E-03
   4  Prefactor     .10000E-03    12.720        .32080E-06** at limit **
   5  Prefactor     2.4324        3.6659        .30190E-06   -.47781E-03
   6  norm          15.162        16.183        .15151E-05   -.11126E-04
   7  Prefactor     10.036        12.383       -.10718E-04   -.31729E-04
   8  Prefactor     .91136        1586.7       -.53949E-04   -.93079E-06
   9  Prefactor     .10000E-03    2.9937       -.14796E-06** at limit **
  10  Prefactor     93.108        39.865       -.53501E-05    .66930E-04
  11  norm          2.4045        10.192       -.69168E-05   -.23618E-03
  12  norm          1.3649        1.9350       -.24660E-06   -.51033E-03
  13  norm          .10003E-03    101.87       -.47858E-05** at limit **
  14  norm          7.5066        4.6247       -.31840E-06   -.16997E-02
  15  Prefactor     16.632        35.444        .28951E-04    .41970E-04
  16  Prefactor     .10000E-03    12.330       -.59102E-06** at limit **
  17  norm          2.6093        1.2926       -.12609E-06   -.12250E-03
  18  norm          8.6328        7.9101       -.42391E-05   -.16280E-04
  19  Prefactor     3.2973        84.196       -.36514E-04   -.16434E-04
  20  Normalizat    1.3695        .21078        .17873E-05    .19009E-03
  21  Prefactor     .77570        .13541        .15756E-05    .20617E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.0515
  Prefactor  = 0.0001
  norm       = 2.73415
  Prefactor  = 0.0001
  Prefactor  = 2.43244
  norm       = 15.1622
  Prefactor  = 10.0364
  Prefactor  = 0.911357
  Prefactor  = 0.0001
  Prefactor  = 93.1075
  norm       = 2.40453
  norm       = 1.36488
  norm       = 0.000100031
  norm       = 7.50656
  Prefactor  = 16.6321
  Prefactor  = 0.0001
  norm       = 2.60931
  norm       = 8.63277
  Prefactor  = 3.29728
  Normalizat = 1.36954
  Prefactor  = 0.775701
 **********
 **   18 **HESSE 
 **********

 FCN=   6276.325     FROM HESSE     STATUS=OK           323 CALLS     2570 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.051        40.166        .62580E-04   -1.4426    
   2  Prefactor     .10000E-03    32.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.7341        1.8052        .82716E-04   -1.5377    
   4  Prefactor     .10000E-03    12.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.4324        3.6525        .17054E-03   -1.5396    
   6  norm          15.162        16.190        .10286E-03   -1.4929    
   7  Prefactor     10.036        12.360        .12649E-03   -1.5074    
   8  Prefactor     .91136        1645.3        .35319E-02   -1.5517    
   9  Prefactor     .10000E-03    3.0009        .13385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     93.108        39.749        .41664E-04   -1.3775    
  11  norm          2.4045        10.276        .26398E-03   -1.5398    
  12  norm          1.3649        1.9030        .12741E-03   -1.5474    
  13  norm          .10003E-03    104.72        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.5066        4.6365        .64167E-03   -1.5160    
  15  Prefactor     16.632        35.483        .98198E-04   -1.4892    
  16  Prefactor     .10000E-03    12.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.6093        1.2919        .60194E-04   -1.5385    
  18  norm          8.6328        7.9142        .13644E-03   -1.5120    
  19  Prefactor     3.2973        85.452        .22280E-03   -1.5345    
  20  Normalizat    1.3695        .24517        .26706E-03   -.81514    
  21  Prefactor     .77570        .15623        .23351E-03   -1.0063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0415e-09
Minuit parameter uncertainties:
  1  40.1923
  2  4.21276e-05
  3  1.80524
  4  7.80986e-06
  5  3.65284
  6  16.1945
  7  12.3636
  8  79.7446
  9  4.91597e-06
  10  39.7602
  11  9.94448
  12  1.90309
  13  0.00359896
  14  4.6367
  15  35.528
  16  0.0001125
  17  1.29194
  18  7.91516
  19  33.6245
  20  0.24538
  21  0.156318
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  3.599e-03  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:  7.757e-01  1.563e-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.370e+00  2.454e-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: 9.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.51e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/253204/likelihoodResults_471052801_471312001_4FGL_J0809.8+0507_daily_bin894.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) = 6276.32495995
delta logL = -4.54442915725e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6276.29551779
delta logL = 0.0293967184425

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8184       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9780       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3573       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77970       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=   6276.296     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      261 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8184        1654.4        .60569E-02    .46614E-03
   2  alpha         3.9780        3.0406        .50000        .24692E-04
   3  Normalizat    1.3573        .94828E-01    .60588E-01    .55376E-05
   4  Prefactor     .77969        .59818E-01    .43452E-01    .13471E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.81841
  alpha      = 3.97801
  Normalizat = 1.35727
  Prefactor  = 0.779692
 **********
 **   18 **HESSE 
 **********

 FCN=   6276.296     FROM HESSE     STATUS=OK            33 CALLS      294 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8184        30.776        .24227E-03   -1.5372    
   2  alpha         3.9780        4.4677        .10514        .63255    
   3  Normalizat    1.3573        .22736        .26796E-03   -.81873    
   4  Prefactor     .77969        .15227        .23292E-03   -1.0048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.8431e-10
Minuit parameter uncertainties:
  1  18.6387
  2  4.06967
  3  0.227529
  4  0.152347
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/253204': 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) = 6276.29551779
delta logL = 0.0293967190064

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  2.818e+00  1.864e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  3.978e+00  4.070e+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:  7.797e-01  1.523e-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.357e+00  2.275e-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/253204/cmap_HighResolution_471052801_471312001_4FGL_J0809.8+0507_daily_bin894.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.51e-05', job_status='DONE', photon_flux_upper_limit='9.52e-08', time_completed='2021-08-29 09:14:51.461177', job_id='253204', GAL2='0.78', fit_tolerance='1e-08', EG2='1.36', EG='1.37', time_epoch_completed='1630253691.46', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='2.94e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='894' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:14:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 253204: <4FGL_J0809.8+0507_daily_bin894> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin894 122.453 5.1313 471052801 471312001 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 :                                   636.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            836 sec.

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

