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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin863
RA = 122.861, Dec = 1.7756
tmin = 463017601, tmax = 463276801
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='309529', job_status='RUN', time_executed='2021-08-29 12:23:59.363715', time_epoch_executed='1630265039.36' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='863'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/309529

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/309529/ft1_4FGL_J0811.4+0146_daily_bin863.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/309529/ft2_4FGL_J0811.4+0146_daily_bin863.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/309529/ft1_4FGL_J0811.4+0146_daily_bin863.fits outfile=/scratch/kocevski/309529/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin863.fits ra=122.861 dec=1.7756 rad=12.0 tmin=463017601.0 tmax=463276801.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.74
user 3.40
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/309529/ft2_4FGL_J0811.4+0146_daily_bin863.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/309529/ft2_4FGL_J0811.4+0146_daily_bin863.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/309529/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin863.fits evtable="EVENTS" outfile="/scratch/kocevski/309529/ft1_filtered_4FGL_J0811.4+0146_daily_bin863.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.54
user 0.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/309529/ft1_filtered_4FGL_J0811.4+0146_daily_bin863.fits" evtable="EVENTS" scfile=/scratch/kocevski/309529/ft2_4FGL_J0811.4+0146_daily_bin863.fits sctable="SC_DATA" outfile=/scratch/kocevski/309529/ltcube_463017601_463276801_4FGL_J0811.4+0146_daily_bin863.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/309529/ft2_4FGL_J0811.4+0146_daily_bin863.fits
.....................!
real 11.80
user 11.42
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/309529/ft1_filtered_4FGL_J0811.4+0146_daily_bin863.fits evtable="EVENTS" scfile=/scratch/kocevski/309529/ft2_4FGL_J0811.4+0146_daily_bin863.fits sctable="SC_DATA" expcube=/scratch/kocevski/309529/ltcube_463017601_463276801_4FGL_J0811.4+0146_daily_bin863.fits outfile=/scratch/kocevski/309529/expmap_463017601_463276801_4FGL_J0811.4+0146_daily_bin863.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/309529/ltcube_463017601_463276801_4FGL_J0811.4+0146_daily_bin863.fits
.....................!
real 191.08
user 185.41
sys 5.24

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

Setting source of interest to:
4FGL J0811.4+0146 @ 122.861 1.7756

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/309529/ft1_filtered_4FGL_J0811.4+0146_daily_bin863.fits scfile=/scratch/kocevski/309529/ft2_4FGL_J0811.4+0146_daily_bin863.fits outfile=/scratch/kocevski/309529/cmap_463017601_463276801_4FGL_J0811.4+0146_daily_bin863.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.861 yref=1.7756 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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/309529/ft1_filtered_4FGL_J0811.4+0146_daily_bin863.fits scfile=/scratch/kocevski/309529/ft2_4FGL_J0811.4+0146_daily_bin863.fits outfile=/scratch/kocevski/309529/cmap_HighResolution_463017601_463276801_4FGL_J0811.4+0146_daily_bin863.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.861 yref=1.7756 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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/309529/ft1_filtered_4FGL_J0811.4+0146_daily_bin863.fits evtable="EVENTS" scfile=/scratch/kocevski/309529/ft2_4FGL_J0811.4+0146_daily_bin863.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/309529/Model_4FGL_J0811.4+0146_daily_bin863.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/309529/ft1_filtered_4FGL_J0811.4+0146_daily_bin863.fits.....................!
real 91.54
user 89.97
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/309529/ft1_filtered_4FGL_J0811.4+0146_daily_bin863.fits', '/scratch/kocevski/309529/ft2_4FGL_J0811.4+0146_daily_bin863.fits', expMap='/scratch/kocevski/309529/expmap_463017601_463276801_4FGL_J0811.4+0146_daily_bin863.fits', expCube='/scratch/kocevski/309529/ltcube_463017601_463276801_4FGL_J0811.4+0146_daily_bin863.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/309529/Model_4FGL_J0811.4+0146_daily_bin863.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0811.4+0146'

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  5.108e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.005e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
274         beta:  6.882e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
275           Eb:  9.156e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/309529/ft1_filtered_4FGL_J0811.4+0146_daily_bin863.fits
Spacecraft file(s): /scratch/kocevski/309529/ft2_4FGL_J0811.4+0146_daily_bin863.fits
Exposure map: /scratch/kocevski/309529/expmap_463017601_463276801_4FGL_J0811.4+0146_daily_bin863.fits
Exposure cube: /scratch/kocevski/309529/ltcube_463017601_463276801_4FGL_J0811.4+0146_daily_bin863.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/309529/Model_4FGL_J0811.4+0146_daily_bin863.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) = 7570.97262402

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    12.115       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.530       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    19.025       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13394E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.7388       1.0000         .10000E-03   10000.    
    12 'Prefactor '    36.593       1.0000         .10000E-03   10000.    
    13 'norm      '    10.878       1.0000         .10000E-03   10000.    
    14 'norm      '    2.0631       1.0000         .10000E-03   10000.    
    15 'norm      '    1.1790       1.0000         .10000E-03   10000.    
    16 'norm      '    12.117       1.0000         .10000E-03   10000.    
    17 'norm      '    4.3752       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.1343       1.0000         .10000E-03   10000.    
    19 'norm      '    23.860       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10127E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .83960       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1011       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5000E+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=   7570.908     FROM MIGRAD    STATUS=CONVERGED    956 CALLS     3155 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.748        .18142E-02** at limit **
   2  Prefactor     .10000E-03    3.4764        .15824E-02** at limit **
   3  Prefactor     .10000E-03    16.367        .18142E-02** at limit **
   4  norm          12.115        2.7972        .66285E-04    .53169E-05
   5  Prefactor     19.528        25.316        .90631E-04    .38008E-04
   6  norm          .10000E-03    4.7299        .18142E-02** at limit **
   7  Prefactor     .10000E-03    1.2177        .93626E-03** at limit **
   8  norm          19.007        18.024        .91826E-04    .23523E-04
   9  Prefactor     .10000E-03    18.989        .18142E-02** at limit **
  10  Prefactor     .10000E-03    62.446        .18142E-02** at limit **
  11  Prefactor     2.7403        7.2753        .24602E-03    .18068E-03
  12  Prefactor     36.589        32.749        .66252E-04   -.46331E-05
  13  norm          10.875        10.291        .12147E-03    .52036E-04
  14  norm          2.0631        2.4144        .13769E-03    .25537E-03
  15  norm          1.1790        .94517        .71958E-04    .27727E-03
  16  norm          12.116        19.730        .11508E-03   -.15777E-03
  17  norm          4.3752        4.0500        .16133E-03    .29596E-05
  18  Prefactor     1.0685        287.82        .87917E-02    .55367E-04
  19  norm          23.860        17.055        .82005E-04    .10536E-04
  20  Prefactor     .10000E-03    5.0917        .18142E-02** at limit **
  21  norm          .10000E-03    1.0401        .11576E-02** at limit **
  22  norm          .10000E-03    7.2934        .18142E-02** at limit **
  23  Normalizat    .83968        .22499        .34461E-03    .12853E-03
  24  Prefactor     1.1011        .14222        .19759E-03    .20038E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.1153
  Prefactor  = 19.5278
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 19.0074
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.74026
  Prefactor  = 36.5887
  norm       = 10.8748
  norm       = 2.06311
  norm       = 1.17899
  norm       = 12.1157
  norm       = 4.37518
  Prefactor  = 1.06846
  norm       = 23.8601
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Normalizat = 0.839682
  Prefactor  = 1.10109
 **********
 **   18 **HESSE 
 **********

 FCN=   7570.908     FROM HESSE     STATUS=OK           375 CALLS     3530 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.749        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.4766        .31649E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.369        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.115        2.7965        .26514E-05   -1.5012    
   5  Prefactor     19.528        25.310        .36252E-05   -1.4824    
   6  norm          .10000E-03    4.7299        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.2177        .18725E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          19.007        18.021        .36730E-05   -1.4836    
   9  Prefactor     .10000E-03    18.996        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    62.446        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.7403        7.2733        .98408E-05   -1.5377    
  12  Prefactor     36.589        32.743        .26501E-05   -1.4497    
  13  norm          10.875        10.287        .48589E-05   -1.5048    
  14  norm          2.0631        2.4137        .55077E-05   -1.5421    
  15  norm          1.1790        .94503        .28783E-05   -1.5491    
  16  norm          12.116        19.567        .46031E-05   -1.5012    
  17  norm          4.3752        4.0496        .64533E-05   -1.5290    
  18  Prefactor     1.0685        282.76        .35167E-03   -1.5501    
  19  norm          23.860        17.054        .32802E-05   -1.4731    
  20  Prefactor     .10000E-03    5.0921        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.0453        .23152E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    7.2982        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .83968        .22271        .13784E-04   -.98613    
  24  Prefactor     1.1011        .14203        .39518E-04   -.89432    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1642e-09
Minuit parameter uncertainties:
  1  0.000118078
  2  6.27804e-06
  3  9.90474e-05
  4  2.79653
  5  25.3236
  6  1.86683e-06
  7  2.87311e-06
  8  18.0259
  9  8.88358e-05
  10  0.000577915
  11  7.27563
  12  32.7589
  13  10.2891
  14  2.41383
  15  0.945037
  16  19.5777
  17  4.04985
  18  34.9292
  19  17.0573
  20  1.93297e-05
  21  6.08107e-05
  22  2.05962e-05
  23  0.222949
  24  0.142082
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  4.375e+00  4.050e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.005e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
274         beta:  6.882e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
275           Eb:  9.156e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  1.101e+00  1.421e-01  0.000e+00  1.000e+01 ( 1.000e+00)
498        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
499        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  8.397e-01  2.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.71
Ra Dec: 122.861 1.776
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 3.14e-08 +/- 2.90e-08
Energy Flux (Fixed Index): 1.86e-05 +/- 1.72e-05

TS (Fixed Index): 1.71
Ra Dec: 122.861 1.776
Photon Flux Upper Limit: 9.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.74e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/309529/likelihoodResults_463017601_463276801_4FGL_J0811.4+0146_daily_bin863.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) = 7570.90453716
delta logL = 0.0033224804929

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7570.90438171
delta logL = 0.00347793487526

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3204       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0595       1.0000          .0000       5.0000    
     3 'Normalizat'    .83774       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1018       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5000E+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=   7570.904     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      244 TOTAL
                     EDM=   .90E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3204        4.0845        .15962E-03    .15014E-04
   2  alpha         2.0595        .65423        .17484E-01   -.26966E-05
   3  Normalizat    .83774        .21324        .34495E-03    .16808E-04
   4  Prefactor     1.1018        .13847        .19754E-03   -.36638E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.32035
  alpha      = 2.05951
  Normalizat = 0.837741
  Prefactor  = 1.10179
 **********
 **   18 **HESSE 
 **********

 FCN=   7570.904     FROM HESSE     STATUS=OK            27 CALLS      271 TOTAL
                     EDM=   .93E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3204        4.0433        .31924E-04   -1.5292    
   2  alpha         2.0595        .64755        .69935E-03   -.17712    
   3  Normalizat    .83774        .21329        .13798E-04   -.98684    
   4  Prefactor     1.1018        .13851        .39507E-04   -.89409    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.30032e-12
Minuit parameter uncertainties:
  1  4.04357
  2  0.655264
  3  0.213503
  4  0.138557
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/309529': 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) = 7570.90438171
delta logL = 0.00347793514811

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  4.320e+00  4.044e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.060e+00  6.553e-01  0.000e+00  5.000e+00 ( 1.000e+00)
274         beta:  6.882e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
275           Eb:  9.156e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  1.102e+00  1.386e-01  0.000e+00  1.000e+01 ( 1.000e+00)
498        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
499        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  8.377e-01  2.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.72
Ra Dec: 122.861 1.776
Photon Index (Free Index): 2.06 +/- 0.66
Photon Flux (Free Index): 3.31e-08 +/- 3.62e-08
Energy Flux (Free Index): 1.78e-05 +/- 1.89e-05

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/309529/cmap_HighResolution_463017601_463276801_4FGL_J0811.4+0146_daily_bin863.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.74e-05', comment='SUCCESS', photon_flux='3.14e-08', energy_flux2='1.78e-05', photon_flux_error='2.90e-08', dlogl='3.48e-03', energy_flux='1.86e-05', photon_flux2='3.31e-08', job_status='DONE', time_completed='2021-08-29 12:36:15.297799', photon_index_error2='0.66', photon_index2='2.06', ts='1.71', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='9.69e-08', energy_flux_error2='1.89e-05', EG='0.84', time_epoch_completed='1630265775.3', return_code='0', job_id='309529', GAL2='1.10', EG2='0.84', return_code2='0', energy_flux_error='1.72e-05', photon_flux_error2='3.62e-08', ts2='1.72', photon_index='2.01' WHERE bin_id='863' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:36:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 309529: <4FGL_J0811.4+0146_daily_bin863> in cluster <slac> Done

Job <4FGL_J0811.4+0146_daily_bin863> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 12:20:31 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:20:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 12:20:33 2021
Terminated at Sun Aug 29 12:36:15 2021
Results reported at Sun Aug 29 12:36:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin863 122.861 1.7756 463017601 463276801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0811.4+0146 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   735.39 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             291.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            944 sec.

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

