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


Performing analysis on: 4FGL_J0809.5+5341_daily_bin1316
RA = 122.379, Dec = 53.6876
tmin = 580435201, tmax = 580694401
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='246976', job_status='RUN', time_executed='2021-08-29 08:40:38.533257', time_epoch_executed='1630251638.53' WHERE source_name='4FGL J0809.5+5341' and cadence='daily' and bin_id='1316'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/246976

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/246976/ft1_4FGL_J0809.5+5341_daily_bin1316.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/246976/ft2_4FGL_J0809.5+5341_daily_bin1316.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/246976/ft1_4FGL_J0809.5+5341_daily_bin1316.fits outfile=/scratch/kocevski/246976/ft1_filteredMKT_4FGL_J0809.5+5341_daily_bin1316.fits ra=122.379 dec=53.6876 rad=12.0 tmin=580435201.0 tmax=580694401.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.48
user 2.84
sys 0.57

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/246976/ft2_4FGL_J0809.5+5341_daily_bin1316.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/246976/ft2_4FGL_J0809.5+5341_daily_bin1316.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/246976/ft1_filteredMKT_4FGL_J0809.5+5341_daily_bin1316.fits evtable="EVENTS" outfile="/scratch/kocevski/246976/ft1_filtered_4FGL_J0809.5+5341_daily_bin1316.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.91
user 0.32
sys 0.55

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/246976/ft1_filtered_4FGL_J0809.5+5341_daily_bin1316.fits" evtable="EVENTS" scfile=/scratch/kocevski/246976/ft2_4FGL_J0809.5+5341_daily_bin1316.fits sctable="SC_DATA" outfile=/scratch/kocevski/246976/ltcube_580435201_580694401_4FGL_J0809.5+5341_daily_bin1316.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/246976/ft2_4FGL_J0809.5+5341_daily_bin1316.fits
.....................!
real 13.29
user 12.47
sys 0.73

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/246976/ft1_filtered_4FGL_J0809.5+5341_daily_bin1316.fits evtable="EVENTS" scfile=/scratch/kocevski/246976/ft2_4FGL_J0809.5+5341_daily_bin1316.fits sctable="SC_DATA" expcube=/scratch/kocevski/246976/ltcube_580435201_580694401_4FGL_J0809.5+5341_daily_bin1316.fits outfile=/scratch/kocevski/246976/expmap_580435201_580694401_4FGL_J0809.5+5341_daily_bin1316.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/246976/ltcube_580435201_580694401_4FGL_J0809.5+5341_daily_bin1316.fits
.....................!
real 191.30
user 185.44
sys 5.17

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 228 point sources and 0 extended sources

Setting source of interest to:
4FGL J0809.5+5341 @ 122.379 53.6876

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/246976/ft1_filtered_4FGL_J0809.5+5341_daily_bin1316.fits scfile=/scratch/kocevski/246976/ft2_4FGL_J0809.5+5341_daily_bin1316.fits outfile=/scratch/kocevski/246976/cmap_580435201_580694401_4FGL_J0809.5+5341_daily_bin1316.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.379 yref=53.6876 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.91
user 0.36
sys 0.53

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/246976/ft1_filtered_4FGL_J0809.5+5341_daily_bin1316.fits scfile=/scratch/kocevski/246976/ft2_4FGL_J0809.5+5341_daily_bin1316.fits outfile=/scratch/kocevski/246976/cmap_HighResolution_580435201_580694401_4FGL_J0809.5+5341_daily_bin1316.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.379 yref=53.6876 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.93
user 0.39
sys 0.52

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/246976/ft1_filtered_4FGL_J0809.5+5341_daily_bin1316.fits evtable="EVENTS" scfile=/scratch/kocevski/246976/ft2_4FGL_J0809.5+5341_daily_bin1316.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/246976/Model_4FGL_J0809.5+5341_daily_bin1316.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/246976/ft1_filtered_4FGL_J0809.5+5341_daily_bin1316.fits.....................!
real 47.15
user 45.32
sys 1.64

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/246976/ft1_filtered_4FGL_J0809.5+5341_daily_bin1316.fits', '/scratch/kocevski/246976/ft2_4FGL_J0809.5+5341_daily_bin1316.fits', expMap='/scratch/kocevski/246976/expmap_580435201_580694401_4FGL_J0809.5+5341_daily_bin1316.fits', expCube='/scratch/kocevski/246976/ltcube_580435201_580694401_4FGL_J0809.5+5341_daily_bin1316.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/246976/Model_4FGL_J0809.5+5341_daily_bin1316.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0809.5+5341'

4FGL J0809.5+5341
   Spectrum: LogParabola
326         norm:  2.091e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        alpha:  2.165e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
328         beta:  1.129e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
329           Eb:  8.538e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/246976/ft1_filtered_4FGL_J0809.5+5341_daily_bin1316.fits
Spacecraft file(s): /scratch/kocevski/246976/ft2_4FGL_J0809.5+5341_daily_bin1316.fits
Exposure map: /scratch/kocevski/246976/expmap_580435201_580694401_4FGL_J0809.5+5341_daily_bin1316.fits
Exposure cube: /scratch/kocevski/246976/ltcube_580435201_580694401_4FGL_J0809.5+5341_daily_bin1316.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/246976/Model_4FGL_J0809.5+5341_daily_bin1316.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) = 4379.25278474

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .98484       1.0000         .10000E-03   10000.    
     2 'norm      '    9.8570       1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.957       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10321E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.008       1.0000         .10000E-03   10000.    
     7 'norm      '    4.9503       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    108.73       1.0000         .10000E-03   10000.    
    10 'norm      '    .44838       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.7242       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.231       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11555E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.1260       1.0000         .10000E-03   10000.    
    19 'norm      '    6.0008       1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.7599       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.8441       1.0000         .10000E-03   10000.    
    23 'norm      '    2.0508       1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.194       1.0000         .10000E-03   10000.    
    25 'Prefactor '    131.52       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .44065       1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.0264       1.0000         .10000E-03   10000.    
    28 'norm      '    11.183       1.0000         .10000E-03   10000.    
    29 'norm      '    8.2132       1.0000         .10000E-03   10000.    
    30 'Prefactor '    28.577       1.0000         .10000E-03   10000.    
    31 'Prefactor '    4.8962       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .42587       1.0000         .10000E-03   10000.    
    33 'Prefactor '    1.5603       1.0000         .10000E-03   10000.    
    34 'Prefactor '    141.81       1.0000         .10000E-03   10000.    
    35 'Normalizat'    .30999       1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.2664       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4379.250     FROM MIGRAD    STATUS=CONVERGED   1040 CALLS     6711 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .98483        21.562        .15386E-04    .61610E-03
   2  norm          9.8476        11.662       -.10533E-05   -.35029E-04
   3  Prefactor     29.957        37.178       -.25879E-06    .27511E-05
   4  Prefactor     .10000E-03    21.459        .51745E-06** at limit **
   5  Prefactor     .10000E-03    12.505        .71087E-08** at limit **
   6  Prefactor     13.005        37.766       -.98811E-06    .48764E-05
   7  norm          4.9463        12.314       -.35370E-06   -.55498E-05
   8  Prefactor     .10000E-03    14.940        .16260E-06** at limit **
   9  Prefactor     108.72        62.162        .22205E-06    .22098E-04
  10  norm          .44790        1.1680       -.14941E-06   -.24179E-05
  11  Prefactor     .10000E-03    4.8829       -.27965E-07** at limit **
  12  Prefactor     .10000E-03    34.481       -.13345E-05** at limit **
  13  norm          2.7239        2.5585       -.36403E-07   -.10917E-04
  14  Prefactor     15.224        12.364       -.89900E-07    .52147E-05
  15  Prefactor     .10000E-03    17.199       -.41229E-06** at limit **
  16  norm          .10000E-03    2.2890       -.18477E-06** at limit **
  17  Prefactor     .10002E-03    400.60        .38074E-06** at limit **
  18  Prefactor     2.0678        132.30       -.31730E-04   -.13766E-04
  19  norm          6.0022        5.4646       -.95446E-07    .22211E-03
  20  norm          .10000E-03    1.5860       -.30495E-06** at limit **
  21  Prefactor     1.7594        2.1233       -.12323E-06    .11411E-03
  22  Prefactor     4.8399        18.742        .46328E-06    .11450E-03
  23  norm          2.0505        .98683        .23628E-06    .54555E-03
  24  Prefactor     11.194        10.258       -.28942E-06    .16112E-03
  25  Prefactor     131.61        72.530        .71760E-05    .28327E-03
  26  Prefactor     .41058        53.543       -.27835E-04    .48397E-03
  27  Prefactor     6.0257        10.217       -.35611E-06    .32411E-04
  28  norm          11.182        7.4147       -.46509E-07    .11329E-03
  29  norm          8.2123        7.2751       -.12774E-07    .62813E-04
  30  Prefactor     28.573        16.366       -.27062E-06    .55002E-04
  31  Prefactor     4.8945        7.9713       -.46146E-06    .40412E-04
  32  Prefactor     .42644        2.0782       -.13584E-06   -.26961E-03
  33  Prefactor     1.5626        23.327       -.10784E-05   -.48622E-04
  34  Prefactor     141.78        85.787        .36871E-05    .53619E-04
  35  Normalizat    .31008        .31478        .34013E-05    .19710E-03
  36  Prefactor     1.2664        .23475        .13208E-05    .30706E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.984827
  norm       = 9.84756
  Prefactor  = 29.9567
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.0049
  norm       = 4.94631
  Prefactor  = 0.0001
  Prefactor  = 108.721
  norm       = 0.447902
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.72391
  Prefactor  = 15.224
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100023
  Prefactor  = 2.06781
  norm       = 6.00223
  norm       = 0.0001
  Prefactor  = 1.75941
  Prefactor  = 4.83992
  norm       = 2.05054
  Prefactor  = 11.1942
  Prefactor  = 131.615
  Prefactor  = 0.410575
  Prefactor  = 6.02571
  norm       = 11.1816
  norm       = 8.21232
  Prefactor  = 28.5731
  Prefactor  = 4.89446
  Prefactor  = 0.42644
  Prefactor  = 1.56262
  Prefactor  = 141.779
  Normalizat = 0.310084
  Prefactor  = 1.2664
 **********
 **   18 **HESSE 
 **********

 FCN=   4379.250     FROM HESSE     STATUS=OK           823 CALLS     7534 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .98483        31.085        .26224E-02   -1.5509    
   2  norm          9.8476        11.643        .12763E-03   -1.5080    
   3  Prefactor     29.957        37.179        .73202E-04   -1.4613    
   4  Prefactor     .10000E-03    21.806        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.005        37.759        .11106E-03   -1.4987    
   7  norm          4.9463        12.312        .18076E-03   -1.5263    
   8  Prefactor     .10000E-03    14.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     108.72        61.764        .38571E-04   -1.3619    
  10  norm          .44790        1.1359        .11052E-03   -1.5574    
  11  Prefactor     .10000E-03    4.8844        .14281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    34.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.7239        2.5645        .99674E-04   -1.5378    
  14  Prefactor     15.224        12.295        .10263E-03   -1.4927    
  15  Prefactor     .10000E-03    17.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.2926        .97712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10002E-03    406.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.0678        132.18        .28280E-03   -1.5420    
  19  norm          6.0022        5.3114        .13730E-03   -1.5218    
  20  norm          .10000E-03    2.4565        .15730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.7594        2.1053        .10194E-03   -1.5443    
  22  Prefactor     4.8399        18.556        .18277E-03   -1.5268    
  23  norm          2.0505        .98541        .42851E-04   -1.5422    
  24  Prefactor     11.194        10.067        .11974E-03   -1.5039    
  25  Prefactor     131.61        77.378        .17555E-03   -1.3408    
  26  Prefactor     .41058        123.51        .43673E-02   -1.5580    
  27  Prefactor     6.0257        10.153        .16356E-03   -1.5217    
  28  norm          11.182        7.3716        .11980E-03   -1.5039    
  29  norm          8.2123        7.2424        .13989E-03   -1.5135    
  30  Prefactor     28.573        16.206        .74945E-04   -1.4638    
  31  Prefactor     4.8945        7.8874        .18178E-03   -1.5265    
  32  Prefactor     .42644        2.0077        .17771E-03   -1.5577    
  33  Prefactor     1.5626        22.998        .34067E-03   -1.5458    
  34  Prefactor     141.78        84.254        .16915E-03   -1.3321    
  35  Normalizat    .31008        .27367        .45810E-03   -1.2224    
  36  Prefactor     1.2664        .22170        .19986E-03   -.84312    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68303e-08
Minuit parameter uncertainties:
  1  11.0716
  2  11.6452
  3  37.2082
  4  0.000188059
  5  1.87966e-05
  6  37.8286
  7  12.3178
  8  3.32971e-06
  9  61.8008
  10  1.13595
  11  1.15293e-05
  12  0.000243915
  13  2.56463
  14  12.297
  15  4.49867e-06
  16  1.86151e-05
  17  0.00621803
  18  33.1407
  19  5.31186
  20  3.36659e-05
  21  2.10538
  22  18.5777
  23  0.985421
  24  10.0685
  25  77.4377
  26  14.2704
  27  10.1557
  28  7.3722
  29  7.24315
  30  16.2086
  31  7.88905
  32  1.85044
  33  11.9947
  34  84.3253
  35  0.274854
  36  0.221869
Done.

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

Extracting fit parameters...

4FGL J0809.5+5341
   Spectrum: LogParabola
326         norm:  6.002e+00  5.312e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        alpha:  2.165e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
328         beta:  1.129e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
329           Eb:  8.538e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
727    Prefactor:  1.266e+00  2.219e-01  0.000e+00  1.000e+01 ( 1.000e+00)
728        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
729        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
726   Normalization:  3.101e-01  2.749e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.04
Ra Dec: 122.379 53.688
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 4.15e-08 +/- 3.67e-08
Energy Flux (Fixed Index): 1.83e-05 +/- 1.62e-05

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) = 4379.16059527
delta logL = 0.0892980818408

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4379.15828382
delta logL = 0.0916095253124

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0009       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7017       1.0000          .0000       5.0000    
     3 'Normalizat'    .32759       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2587       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4379.158     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      198 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9820        8.4679        .40978E-02   -.20005E-03
   2  alpha         1.7001        1.0696        .44179        .21464E-04
   3  Normalizat    .32795        .26646        .10067       -.47809E-04
   4  Prefactor     1.2585        .22309        .33371E-01   -.28363E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.98197
  alpha      = 1.70009
  Normalizat = 0.32795
  Prefactor  = 1.2585
 **********
 **   18 **HESSE 
 **********

 FCN=   4379.158     FROM HESSE     STATUS=OK            31 CALLS      229 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9820        5.7505        .14420E-03   -1.5219    
   2  alpha         1.7001        .94650        .19032E-01   -.32569    
   3  Normalizat    .32795        .24860        .44580E-03   -1.2121    
   4  Prefactor     1.2585        .21143        .20041E-03   -.84550    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26322e-10
Minuit parameter uncertainties:
  1  5.75102
  2  0.973696
  3  0.249437
  4  0.211578
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/246976': 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) = 4379.15827753
delta logL = 0.091615820148

Extracting fit parameters...

4FGL J0809.5+5341
   Spectrum: LogParabola
326         norm:  5.982e+00  5.751e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        alpha:  1.700e+00  9.737e-01  0.000e+00  5.000e+00 ( 1.000e+00)
328         beta:  1.129e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
329           Eb:  8.538e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
727    Prefactor:  1.258e+00  2.116e-01  0.000e+00  1.000e+01 ( 1.000e+00)
728        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
729        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
726   Normalization:  3.280e-01  2.494e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.22
Ra Dec: 122.379 53.688
Photon Index (Free Index): 1.70 +/- 0.97
Photon Flux (Free Index): 2.59e-08 +/- 3.59e-08
Energy Flux (Free Index): 2.52e-05 +/- 3.42e-05

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/246976/cmap_HighResolution_580435201_580694401_4FGL_J0809.5+5341_daily_bin1316.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.15e-08', energy_flux2='2.52e-05', photon_flux_error='3.67e-08', dlogl='9.16e-02', energy_flux='1.83e-05', photon_flux2='2.59e-08', job_status='DONE', time_completed='2021-08-29 08:56:36.395733', photon_index_error2='0.97', photon_index2='1.70', ts='4.04', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', energy_flux_error2='3.42e-05', EG='0.31', time_epoch_completed='1630252596.4', return_code='0', job_id='246976', GAL2='1.26', EG2='0.33', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='3.59e-08', ts2='4.22', photon_index='2.16' WHERE bin_id='1316' AND source_name='4FGL J0809.5+5341' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:56:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 246976: <4FGL_J0809.5+5341_daily_bin1316> in cluster <slac> Done

Job <4FGL_J0809.5+5341_daily_bin1316> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 29 08:40:21 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 08:40:23 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:40:23 2021
Terminated at Sun Aug 29 08:56:36 2021
Results reported at Sun Aug 29 08:56:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.5+5341_daily_bin1316 122.379 53.6876 580435201 580694401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0809.5+5341 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   959.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             318.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            975 sec.

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

