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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin268
RA = 122.453, Dec = 5.1313
tmin = 308793601, tmax = 309052801
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='250043', job_status='RUN', time_executed='2021-08-29 08:53:56.218696', time_epoch_executed='1630252436.22' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='268'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250043

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250043/ft1_4FGL_J0809.8+0507_daily_bin268.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250043/ft2_4FGL_J0809.8+0507_daily_bin268.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250043/ft1_4FGL_J0809.8+0507_daily_bin268.fits outfile=/scratch/kocevski/250043/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin268.fits ra=122.453 dec=5.1313 rad=12.0 tmin=308793601.0 tmax=309052801.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.68
user 3.28
sys 0.38

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/250043/ft2_4FGL_J0809.8+0507_daily_bin268.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/250043/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin268.fits evtable="EVENTS" outfile="/scratch/kocevski/250043/ft1_filtered_4FGL_J0809.8+0507_daily_bin268.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.71
user 0.32
sys 0.36

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250043/ft1_filtered_4FGL_J0809.8+0507_daily_bin268.fits" evtable="EVENTS" scfile=/scratch/kocevski/250043/ft2_4FGL_J0809.8+0507_daily_bin268.fits sctable="SC_DATA" outfile=/scratch/kocevski/250043/ltcube_308793601_309052801_4FGL_J0809.8+0507_daily_bin268.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/250043/ft2_4FGL_J0809.8+0507_daily_bin268.fits
.....................!
real 12.17
user 11.62
sys 0.51

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250043/ft1_filtered_4FGL_J0809.8+0507_daily_bin268.fits evtable="EVENTS" scfile=/scratch/kocevski/250043/ft2_4FGL_J0809.8+0507_daily_bin268.fits sctable="SC_DATA" expcube=/scratch/kocevski/250043/ltcube_308793601_309052801_4FGL_J0809.8+0507_daily_bin268.fits outfile=/scratch/kocevski/250043/expmap_308793601_309052801_4FGL_J0809.8+0507_daily_bin268.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/250043/ltcube_308793601_309052801_4FGL_J0809.8+0507_daily_bin268.fits
.....................!
real 190.38
user 184.85
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/250043/ft1_filtered_4FGL_J0809.8+0507_daily_bin268.fits scfile=/scratch/kocevski/250043/ft2_4FGL_J0809.8+0507_daily_bin268.fits outfile=/scratch/kocevski/250043/cmap_308793601_309052801_4FGL_J0809.8+0507_daily_bin268.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.72
user 0.36
sys 0.34

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250043/ft1_filtered_4FGL_J0809.8+0507_daily_bin268.fits scfile=/scratch/kocevski/250043/ft2_4FGL_J0809.8+0507_daily_bin268.fits outfile=/scratch/kocevski/250043/cmap_HighResolution_308793601_309052801_4FGL_J0809.8+0507_daily_bin268.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.73
user 0.37
sys 0.35

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.266       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0361       1.0000         .10000E-03   10000.    
     3 'norm      '    8.7539       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.1966       1.0000         .10000E-03   10000.    
     6 'norm      '    .65731       1.0000         .10000E-03   10000.    
     7 'Prefactor '    43.353       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.230       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9176       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.5663       1.0000         .10000E-03   10000.    
    14 'norm      '    .13389       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.7398       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.0391       1.0000         .10000E-03   10000.    
    17 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.718       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3688       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .96206       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7148.270     FROM MIGRAD    STATUS=FAILED       806 CALLS     2616 TOTAL
                     EDM=   .96E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.323        52.131        .78166E-04   -.20798E-04
   2  Prefactor     .94051        46.181        .13320        .24629E-03
   3  norm          8.7546        2.7653        .73426E-04    .11953E-03
   4  Prefactor     .10000E-03    8.8565        .18142E-02** at limit **
   5  Prefactor     5.1962        3.2784        .11662E-03   -.21553E-03
   6  norm          .66004        241.90        .65147E-02    .89226E-03
   7  Prefactor     43.355        22.918        .60887E-04   -.63570E-03
   8  Prefactor     .10000E-03    33.188        .18142E-02** at limit **
   9  Prefactor     16.229        9.8831        .99418E-04   -.61293E-04
  10  Prefactor     1.9018        218.92        .30011E-03    .68036E-04
  11  norm          .10000E-03    4.8345        .18118E-02** at limit **
  12  norm          .10000E-03    1.8102        .21781E-03** at limit **
  13  norm          3.5960        29.053        .21401E-03    .15230E-03
  14  norm          .12586        11.346        .25936E-02    .11819E-02
  15  Prefactor     2.7231        187.22        .24597E-03    .35497E-04
  16  Prefactor     2.0386        22.594        .28961E-03   -.80866E-05
  17  norm          .10000E-03    2.0309        .14499E-02** at limit **
  18  norm          .10000E-03    5.0216        .18142E-02** at limit **
  19  Prefactor     25.724        30.447        .78992E-04   -.24467E-04
  20  Normalizat    1.3687        .25746        .29835E-03   -.30378E-03
  21  Prefactor     .96220        .16925        .23312E-03   -.47214E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7148.270     FROM SIMPLEX   STATUS=PROGRESS     990 CALLS     3606 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.324        52.131        .68278E-06   -1.4681    
   2  Prefactor     .93888        46.181        .31960E-05   -1.5514    
   3  norm          8.7546        2.7653        .18778E-06   -1.5116    
   4  Prefactor     .10000E-03    8.8565        .57170E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.1962        3.2784        .14993E-06   -1.5252    
   6  norm          .66004        241.90        .22379E-06   -1.5545    
   7  Prefactor     43.355        22.918        .14342E-06   -1.4390    
   8  Prefactor     .10000E-03    33.188        .89033E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.229        9.8831        .14662E-06   -1.4902    
  10  Prefactor     1.9018        218.92        .20110E-06   -1.5432    
  11  norm          .10000E-03    4.8345        .23049E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.8102        .79266E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.5960        29.053        .15021E-06   -1.5329    
  14  norm          .12586        11.346        .15432E-06   -1.5637    
  15  Prefactor     2.7231        187.22        .15928E-06   -1.5378    
  16  Prefactor     2.0386        22.594        .15236E-06   -1.5422    
  17  norm          .10000E-03    2.0309        .16763E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.0216        .57361E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     25.724        30.447        .14383E-06   -1.4693    
  20  Normalizat    1.3687        .25746        .79903E-07   -.81537    
  21  Prefactor     .96220        .16925        .92137E-07   -.94000    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7148.270     FROM MIGRAD    STATUS=CONVERGED    312 CALLS     3918 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.323        52.129        .31266E-05    .72722E-05
   2  Prefactor     .93879        43.109        .13898        .15662E-03
   3  norm          8.7546        2.7646        .29370E-05    .15019E-03
   4  Prefactor     .10000E-03    8.8567        .36285E-03** at limit **
   5  Prefactor     5.1962        3.2781        .46649E-05    .25833E-04
   6  norm          .65970        214.40        .13029E-02   -.95457E-05
   7  Prefactor     43.356        21.273        .12177E-04    .81036E-04
   8  Prefactor     .10000E-03    33.188        .36285E-03** at limit **
   9  Prefactor     16.229        9.8822        .39767E-05    .97200E-05
  10  Prefactor     1.9013        217.72        .12004E-04    .66294E-05
  11  norm          .10000E-03    4.8352        .36237E-03** at limit **
  12  norm          .10000E-03    1.8102        .43562E-04** at limit **
  13  norm          3.5958        28.975        .85604E-05    .95620E-05
  14  norm          .12569        11.521        .10374E-03    .18081E-04
  15  Prefactor     2.7226        186.91        .98389E-05    .27732E-05
  16  Prefactor     2.0386        22.575        .11584E-04    .15702E-05
  17  norm          .10000E-03    2.0461        .28998E-03** at limit **
  18  norm          .10000E-03    5.0224        .36285E-03** at limit **
  19  Prefactor     25.724        30.441        .31597E-05    .71961E-06
  20  Normalizat    1.3687        .25749        .59670E-04    .85280E-04
  21  Prefactor     .96220        .16912        .46624E-04    .11821E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.3232
  Prefactor  = 0.938795
  norm       = 8.75456
  Prefactor  = 0.0001
  Prefactor  = 5.19621
  norm       = 0.659705
  Prefactor  = 43.3559
  Prefactor  = 0.0001
  Prefactor  = 16.2294
  Prefactor  = 1.90135
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.5958
  norm       = 0.125693
  Prefactor  = 2.72261
  Prefactor  = 2.03856
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 25.7242
  Normalizat = 1.36873
  Prefactor  = 0.962205
 **********
 **   18 **HESSE 
 **********

 FCN=   7148.270     FROM HESSE     STATUS=OK           307 CALLS     4225 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.323        52.196        .62532E-06   -1.4681    
   2  Prefactor     .93879        44.165        .13691       -1.5514    
   3  norm          8.7546        2.7643        .58740E-06   -1.5116    
   4  Prefactor     .10000E-03    8.8567        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.1962        3.2777        .93299E-06   -1.5252    
   6  norm          .65970        207.24        .52117E-04   -1.5546    
   7  Prefactor     43.356        20.914        .24355E-05   -1.4390    
   8  Prefactor     .10000E-03    33.188        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.229        9.8883        .79534E-06   -1.4902    
  10  Prefactor     1.9013        213.38        .24009E-05   -1.5432    
  11  norm          .10000E-03    4.8352        .72473E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.8102        .87124E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.5958        28.670        .17121E-05   -1.5329    
  14  norm          .12569        11.514        .41498E-05   -1.5637    
  15  Prefactor     2.7226        185.19        .19678E-05   -1.5378    
  16  Prefactor     2.0386        22.566        .23169E-05   -1.5422    
  17  norm          .10000E-03    2.0468        .57997E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.0225        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     25.724        30.264        .63193E-06   -1.4693    
  20  Normalizat    1.3687        .25756        .11934E-04   -.81537    
  21  Prefactor     .96220        .16912        .93247E-05   -.94000    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.43712e-10
Minuit parameter uncertainties:
  1  52.2862
  2  12.8876
  3  2.76438
  4  5.95128e-07
  5  3.27777
  6  23.4656
  7  20.9177
  8  8.13414e-07
  9  9.88926
  10  40.4318
  11  1.00049e-07
  12  9.65295e-08
  13  20.32
  14  2.40558
  15  45.0541
  16  13.5712
  17  2.05926e-06
  18  1.23142e-06
  19  30.2822
  20  0.257806
  21  0.169217
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  3.596e+00  2.032e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.815e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  8.580e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  4.471e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  9.622e-01  1.692e-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.369e+00  2.578e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 122.453 5.131
Photon Flux Upper Limit: 9.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.49e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/250043/likelihoodResults_308793601_309052801_4FGL_J0809.8+0507_daily_bin268.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) = 7148.07169999
delta logL = 0.198607241639

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7148.04894756
delta logL = 0.2213596664

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.9635       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.6791       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3117       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98330       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=   7148.049     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      317 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9605        18.435        .16443E-03   -.28209E-04
   2  alpha         4.6781        4.7863        .10765       -.57406E-05
   3  Normalizat    1.3121        .25181        .30374E-03   -.11865E-04
   4  Prefactor     .98319        .16192        .23091E-03    .10635E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.96054
  alpha      = 4.67813
  Normalizat = 1.31206
  Prefactor  = 0.983187
 **********
 **   18 **HESSE 
 **********

 FCN=   7148.049     FROM HESSE     STATUS=OK            25 CALLS      342 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9605        14.208        .65773E-05   -1.5220    
   2  alpha         4.6781        4.4269        .43060E-02    1.0578    
   3  Normalizat    1.3121        .25351        .12149E-04   -.83207    
   4  Prefactor     .98319        .16245        .92362E-05   -.93292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27222e-12
Minuit parameter uncertainties:
  1  14.2157
  2  2.19931
  3  0.253751
  4  0.162526
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250043': 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) = 7148.04894644
delta logL = 0.221360787838

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  5.961e+00  1.422e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  4.678e+00  2.199e+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:  9.832e-01  1.625e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.312e+00  2.538e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
Ra Dec: 122.453 5.131

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/250043/cmap_HighResolution_308793601_309052801_4FGL_J0809.8+0507_daily_bin268.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.49e-05', job_status='DONE', photon_flux_upper_limit='9.44e-08', time_completed='2021-08-29 09:06:43.987848', job_id='250043', GAL2='0.98', fit_tolerance='1e-08', EG2='1.31', EG='1.37', time_epoch_completed='1630253203.99', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.21e-01', ts2='0.53', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='268' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:06:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0056>
Subject: Job 250043: <4FGL_J0809.8+0507_daily_bin268> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin268 122.453 5.1313 308793601 309052801 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 :                                   770.04 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             268.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            979 sec.

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

