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


Performing analysis on: 4FGL_J0809.5+5341_monthly_bin47
RA = 122.379, Dec = 53.6876
tmin = 358819201, tmax = 361411201
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='226300', job_status='RUN', time_executed='2021-10-19 09:18:14.061499', time_epoch_executed='1634660294.06' WHERE source_name='4FGL J0809.5+5341' and cadence='monthly' and bin_id='47'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/226300

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

Retrieving the FT1 file...

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

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

Retrieving 457 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/226300/ft1_4FGL_J0809.5+5341_monthly_bin47.fits


Retrieving the FT1 file...

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

Retrieving 457 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/226300/ft2_4FGL_J0809.5+5341_monthly_bin47.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/226300/ft1_4FGL_J0809.5+5341_monthly_bin47.fits outfile=/scratch/kocevski/226300/ft1_filteredMKT_4FGL_J0809.5+5341_monthly_bin47.fits ra=122.379 dec=53.6876 rad=12.0 tmin=358819201.0 tmax=361411201.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 31.57
user 30.77
sys 0.70

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/226300/ft2_4FGL_J0809.5+5341_monthly_bin47.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/226300/ft1_filteredMKT_4FGL_J0809.5+5341_monthly_bin47.fits evtable="EVENTS" outfile="/scratch/kocevski/226300/ft1_filtered_4FGL_J0809.5+5341_monthly_bin47.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.01
user 0.65
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/226300/ft1_filtered_4FGL_J0809.5+5341_monthly_bin47.fits" evtable="EVENTS" scfile=/scratch/kocevski/226300/ft2_4FGL_J0809.5+5341_monthly_bin47.fits sctable="SC_DATA" outfile=/scratch/kocevski/226300/ltcube_358819201_361411201_4FGL_J0809.5+5341_monthly_bin47.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/226300/ft2_4FGL_J0809.5+5341_monthly_bin47.fits
.....................!
real 115.45
user 114.59
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/226300/ft1_filtered_4FGL_J0809.5+5341_monthly_bin47.fits evtable="EVENTS" scfile=/scratch/kocevski/226300/ft2_4FGL_J0809.5+5341_monthly_bin47.fits sctable="SC_DATA" expcube=/scratch/kocevski/226300/ltcube_358819201_361411201_4FGL_J0809.5+5341_monthly_bin47.fits outfile=/scratch/kocevski/226300/expmap_358819201_361411201_4FGL_J0809.5+5341_monthly_bin47.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/226300/ltcube_358819201_361411201_4FGL_J0809.5+5341_monthly_bin47.fits
.....................!
real 191.17
user 185.68
sys 4.87

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/226300/ft1_filtered_4FGL_J0809.5+5341_monthly_bin47.fits scfile=/scratch/kocevski/226300/ft2_4FGL_J0809.5+5341_monthly_bin47.fits outfile=/scratch/kocevski/226300/cmap_358819201_361411201_4FGL_J0809.5+5341_monthly_bin47.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.78
user 0.61
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/226300/ft1_filtered_4FGL_J0809.5+5341_monthly_bin47.fits scfile=/scratch/kocevski/226300/ft2_4FGL_J0809.5+5341_monthly_bin47.fits outfile=/scratch/kocevski/226300/cmap_HighResolution_358819201_361411201_4FGL_J0809.5+5341_monthly_bin47.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.78
user 0.61
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/226300/ft1_filtered_4FGL_J0809.5+5341_monthly_bin47.fits', '/scratch/kocevski/226300/ft2_4FGL_J0809.5+5341_monthly_bin47.fits', expMap='/scratch/kocevski/226300/expmap_358819201_361411201_4FGL_J0809.5+5341_monthly_bin47.fits', expCube='/scratch/kocevski/226300/ltcube_358819201_361411201_4FGL_J0809.5+5341_monthly_bin47.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/226300/Model_4FGL_J0809.5+5341_monthly_bin47.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/226300/ft1_filtered_4FGL_J0809.5+5341_monthly_bin47.fits
Spacecraft file(s): /scratch/kocevski/226300/ft2_4FGL_J0809.5+5341_monthly_bin47.fits
Exposure map: /scratch/kocevski/226300/expmap_358819201_361411201_4FGL_J0809.5+5341_monthly_bin47.fits
Exposure cube: /scratch/kocevski/226300/ltcube_358819201_361411201_4FGL_J0809.5+5341_monthly_bin47.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/226300/Model_4FGL_J0809.5+5341_monthly_bin47.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) = 81275.9964715

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4295       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16317E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .68279       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.8605       1.0000         .10000E-03   10000.    
     7 'norm      '    3.9594       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.227       1.0000         .10000E-03   10000.    
    10 'norm      '    .16744       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.6829       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10339E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.3518       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .75306       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.7688       1.0000         .10000E-03   10000.    
    16 'norm      '    .64891       1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.836       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.8294       1.0000         .10000E-03   10000.    
    20 'norm      '    1.5229       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.4584       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.4763       1.0000         .10000E-03   10000.    
    23 'norm      '    .70555       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.7352       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .25928E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .29193       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    11.075       1.0000         .10000E-03   10000.    
    29 'norm      '    38.662       1.0000         .10000E-03   10000.    
    30 'Prefactor '    6.9908       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .71291       1.0000         .10000E-03   10000.    
    33 'Prefactor '    4.4955       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .20269E-03   1.0000         .10000E-03   10000.    
    35 'Normalizat'    .99127       1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.0214       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   81275.14     FROM MIGRAD    STATUS=CONVERGED   1059 CALLS     4743 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4294        1.0117         .0000        .44489E-02
   2  norm          .10000E-03    .27017         .0000    ** at limit **
   3  Prefactor     .10000E-03    .68055         .0000    ** at limit **
   4  Prefactor     .68278        1.0532         .0000        .97188E-02
   5  Prefactor     .10000E-03    .95522         .0000    ** at limit **
   6  Prefactor     5.8590        5.1853         .0000        .77136E-03
   7  norm          3.9593        1.9071         .0000        .53032E-01
   8  Prefactor     .10001E-03    6.1630         .0000    ** at limit **
   9  Prefactor     11.227        6.9939         .0000       -.32454E-03
  10  norm          .16746        .14277         .0000        .16387E-01
  11  Prefactor     5.6820        3.4600         .0000        .23970E-01
  12  Prefactor     .10001E-03    .72196         .0000    ** at limit **
  13  norm          2.3518        .72894         .0000        .23866E-02
  14  Prefactor     .75271        .99761         .0000        .74707E-02
  15  Prefactor     5.7700        5.4373         .0000        .75107E-02
  16  norm          .64690        .72123         .0000        .19572E-01
  17  Prefactor     22.832        11.004         .0000       -.23437E-02
  18  Prefactor     .10000E-03    3.3209         .0000    ** at limit **
  19  norm          1.8293        .86507         .0000        .35883E-02
  20  norm          1.5229        .43605         .0000        .10986E-02
  21  Prefactor     3.4587        .54512         .0000        .15764E-02
  22  Prefactor     8.4770        2.5522         .0000       -.83243E-03
  23  norm          .70554        .16912         .0000        .46203E-02
  24  Prefactor     2.7350        1.5473         .0000        .71013E-02
  25  Prefactor     .10000E-03    2.6731         .0000    ** at limit **
  26  Prefactor     .30109        .76305         .0000        .44966E-02
  27  Prefactor     .10000E-03    .52021         .0000    ** at limit **
  28  norm          11.074        2.0427         .0000        .92921E-02
  29  norm          38.661        3.1591         .0000        .77826E-03
  30  Prefactor     6.9900        3.0013         .0000        .26924E-02
  31  Prefactor     .10000E-03    .96206         .0000    ** at limit **
  32  Prefactor     .71268        .65407         .0000        .15386E-01
  33  Prefactor     4.4940        4.8309         .0000        .10948E-02
  34  Prefactor     .10000E-03    17.609         .0000    ** at limit **
  35  Normalizat    .99131        .58279E-01     .0000        .14499E-03
  36  Prefactor     1.0214        .40648E-01     .0000       -.17526E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.42944
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.682784
  Prefactor  = 0.0001
  Prefactor  = 5.85904
  norm       = 3.95934
  Prefactor  = 0.000100009
  Prefactor  = 11.2269
  norm       = 0.167463
  Prefactor  = 5.68204
  Prefactor  = 0.000100007
  norm       = 2.3518
  Prefactor  = 0.752711
  Prefactor  = 5.77004
  norm       = 0.646895
  Prefactor  = 22.8321
  Prefactor  = 0.0001
  norm       = 1.82935
  norm       = 1.5229
  Prefactor  = 3.45873
  Prefactor  = 8.47696
  norm       = 0.705535
  Prefactor  = 2.73499
  Prefactor  = 0.0001
  Prefactor  = 0.301092
  Prefactor  = 0.0001
  norm       = 11.0741
  norm       = 38.6612
  Prefactor  = 6.98997
  Prefactor  = 0.0001
  Prefactor  = 0.712678
  Prefactor  = 4.49401
  Prefactor  = 0.0001
  Normalizat = 0.991308
  Prefactor  = 1.02141
 **********
 **   18 **HESSE 
 **********

 FCN=   81275.14     FROM HESSE     STATUS=OK           869 CALLS     5612 TOTAL
                     EDM=   .94E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4294        .99815        .23323E-03   -1.5469    
   2  norm          .10000E-03    1.3813        .27885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .66622        .94484E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .68278        1.4734        .32961E-02   -1.5543    
   5  Prefactor     .10000E-03    3.9609        .52863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.8590        5.1745        .16589E-03   -1.5224    
   7  norm          3.9593        1.8952        .10136E-02   -1.5310    
   8  Prefactor     .10001E-03    6.3525        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.227        6.9634        .11956E-03   -1.5038    
  10  norm          .16746        .12212        .94750E-03   -1.5626    
  11  Prefactor     5.6820        3.4414        .84250E-03   -1.5231    
  12  Prefactor     .10001E-03    .73396        .88345E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.3518        .72522        .12775E-03   -1.5401    
  14  Prefactor     .75271        1.1667        .30422E-02   -1.5534    
  15  Prefactor     5.7700        5.4275        .83611E-03   -1.5228    
  16  norm          .64690        .71512        .23444E-03   -1.5547    
  17  Prefactor     22.832        10.752        .83821E-04   -1.4752    
  18  Prefactor     .10000E-03    3.3800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.8293        .85742        .17340E-03   -1.5437    
  20  norm          1.5229        .43512        .96334E-04   -1.5461    
  21  Prefactor     3.4587        .54138        .78179E-04   -1.5336    
  22  Prefactor     8.4770        2.5459        .13769E-03   -1.5126    
  23  norm          .70554        .16266        .55212E-03   -1.5540    
  24  Prefactor     2.7350        1.5374        .24620E-03   -1.5377    
  25  Prefactor     .10000E-03    2.6946        .14399       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .30109        3.2887        .36828E-02   -1.5598    
  27  Prefactor     .10000E-03    .53211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          11.074        2.0383        .60194E-03   -1.5042    
  29  norm          38.661        3.1569        .64461E-04   -1.4464    
  30  Prefactor     6.9900        2.9981        .15173E-03   -1.5179    
  31  Prefactor     .10000E-03    .99511        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .71268        .63753        .21032E-03   -1.5539    
  33  Prefactor     4.4940        4.8208        .18989E-03   -1.5284    
  34  Prefactor     .10000E-03    18.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    .99131        .64541E-01    .28910E-03   -.93322    
  36  Prefactor     1.0214        .45995E-01    .21421E-03   -.92019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.43652e-07
Minuit parameter uncertainties:
  1  0.998165
  2  8.00141e-07
  3  2.23245e-05
  4  1.47348
  5  5.41118e-06
  6  5.17485
  7  1.89525
  8  0.000469022
  9  6.96395
  10  0.122124
  11  3.44151
  12  0.000139942
  13  0.725221
  14  1.16672
  15  5.42799
  16  0.715128
  17  10.7533
  18  6.2908e-07
  19  0.857427
  20  0.43512
  21  0.54138
  22  2.54596
  23  0.162659
  24  1.53738
  25  3.70468e-05
  26  1.98998
  27  2.6053e-07
  28  2.03835
  29  3.15692
  30  2.99819
  31  2.30304e-06
  32  0.637535
  33  4.82119
  34  1.1282e-06
  35  0.0645462
  36  0.0459969
Done.

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

Extracting fit parameters...

4FGL J0809.5+5341
   Spectrum: LogParabola
326         norm:  1.829e+00  8.574e-01  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.021e+00  4.600e-02  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:  9.913e-01  6.455e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.23
Ra Dec: 122.379 53.688
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 1.26e-08 +/- 5.92e-09
Energy Flux (Fixed Index): 5.56e-06 +/- 2.61e-06

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) = 81274.852704
delta logL = 0.289357588365

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 81274.8314603
delta logL = 0.310601307938

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7254       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5526       1.0000          .0000       5.0000    
     3 'Normalizat'    .98306       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0244       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=   81274.83     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      240 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7254        7.0952        .79928E-02    .55221E-02
   2  alpha         2.5525        3.6152        .41163        .38261E-03
   3  Normalizat    .98303        .18889E-01    .65654E-01    .20638E-03
   4  Prefactor     1.0244        .11725E-01    .41727E-01    .62345E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.72537
  alpha      = 2.55249
  Normalizat = 0.983035
  Prefactor  = 1.02441
 **********
 **   18 **HESSE 
 **********

 FCN=   81274.83     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7254        .91162        .15274E-03   -1.5445    
   2  alpha         2.5525        .53913        .30833E-01    .20997E-01
   3  Normalizat    .98303        .61456E-01    .29039E-03   -.93601    
   4  Prefactor     1.0244        .45487E-01    .21392E-03   -.91920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10854e-07
Minuit parameter uncertainties:
  1  0.911624
  2  0.543401
  3  0.0614606
  4  0.0454889
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/226300': 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) = 81274.8314601
delta logL = 0.310601514415

Extracting fit parameters...

4FGL J0809.5+5341
   Spectrum: LogParabola
326         norm:  1.725e+00  9.116e-01  1.000e-04  1.000e+04 ( 1.000e-12)
327        alpha:  2.552e+00  5.434e-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.024e+00  4.549e-02  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:  9.830e-01  6.146e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.86
Ra Dec: 122.379 53.688
Photon Index (Free Index): 2.55 +/- 0.54
Photon Flux (Free Index): 1.99e-08 +/- 1.23e-08
Energy Flux (Free Index): 5.77e-06 +/- 2.44e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.003e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.113e+00 [aplpy.core]
Saving /scratch/kocevski/226300/cmap_HighResolution_358819201_361411201_4FGL_J0809.5+5341_monthly_bin47.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.26e-08', energy_flux2='5.77e-06', photon_flux_error='5.92e-09', dlogl='3.11e-01', energy_flux='5.56e-06', photon_flux2='1.99e-08', job_status='DONE', time_completed='2021-10-19 12:02:51.756300', photon_index_error2='0.54', photon_index2='2.55', ts='9.23', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='2.44e-06', EG='0.99', time_epoch_completed='1634670171.76', return_code='0', job_id='226300', GAL2='1.02', EG2='0.98', return_code2='0', energy_flux_error='2.61e-06', photon_flux_error2='1.23e-08', ts2='9.86', photon_index='2.16' WHERE bin_id='47' AND source_name='4FGL J0809.5+5341' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue Oct 19 12:02:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 226300: <4FGL_J0809.5+5341_monthly_bin47> in cluster <slac> Done

Job <4FGL_J0809.5+5341_monthly_bin47> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Tue Oct 19 09:15:14 2021
Job was executed on host(s) <bullet0293>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 19 09:15:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 19 09:15:25 2021
Terminated at Tue Oct 19 12:02:53 2021
Results reported at Tue Oct 19 12:02:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.5+5341_monthly_bin47 122.379 53.6876 358819201 361411201 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 :                                   9804.00 sec.
    Max Memory :                                 630 MB
    Average Memory :                             434.49 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10047 sec.
    Turnaround time :                            10059 sec.

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

