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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin949
RA = 122.861, Dec = 1.7756
tmin = 485308801, tmax = 485568001
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='309663', job_status='RUN', time_executed='2021-08-29 12:24:33.080590', time_epoch_executed='1630265073.08' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='949'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/309663

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/309663/ft1_4FGL_J0811.4+0146_daily_bin949.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/309663/ft2_4FGL_J0811.4+0146_daily_bin949.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/309663/ft1_4FGL_J0811.4+0146_daily_bin949.fits outfile=/scratch/kocevski/309663/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin949.fits ra=122.861 dec=1.7756 rad=12.0 tmin=485308801.0 tmax=485568001.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 5.92
user 5.31
sys 0.59

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/309663/ft2_4FGL_J0811.4+0146_daily_bin949.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/309663/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin949.fits evtable="EVENTS" outfile="/scratch/kocevski/309663/ft1_filtered_4FGL_J0811.4+0146_daily_bin949.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.81
user 0.33
sys 0.47

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/309663/ft1_filtered_4FGL_J0811.4+0146_daily_bin949.fits" evtable="EVENTS" scfile=/scratch/kocevski/309663/ft2_4FGL_J0811.4+0146_daily_bin949.fits sctable="SC_DATA" outfile=/scratch/kocevski/309663/ltcube_485308801_485568001_4FGL_J0811.4+0146_daily_bin949.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/309663/ft2_4FGL_J0811.4+0146_daily_bin949.fits
.....................!
real 11.91
user 11.20
sys 0.68

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/309663/ft1_filtered_4FGL_J0811.4+0146_daily_bin949.fits evtable="EVENTS" scfile=/scratch/kocevski/309663/ft2_4FGL_J0811.4+0146_daily_bin949.fits sctable="SC_DATA" expcube=/scratch/kocevski/309663/ltcube_485308801_485568001_4FGL_J0811.4+0146_daily_bin949.fits outfile=/scratch/kocevski/309663/expmap_485308801_485568001_4FGL_J0811.4+0146_daily_bin949.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/309663/ltcube_485308801_485568001_4FGL_J0811.4+0146_daily_bin949.fits
.....................!
real 190.75
user 186.05
sys 4.39

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/309663/ft1_filtered_4FGL_J0811.4+0146_daily_bin949.fits scfile=/scratch/kocevski/309663/ft2_4FGL_J0811.4+0146_daily_bin949.fits outfile=/scratch/kocevski/309663/cmap_485308801_485568001_4FGL_J0811.4+0146_daily_bin949.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.86
user 0.37
sys 0.47

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/309663/ft1_filtered_4FGL_J0811.4+0146_daily_bin949.fits scfile=/scratch/kocevski/309663/ft2_4FGL_J0811.4+0146_daily_bin949.fits outfile=/scratch/kocevski/309663/cmap_HighResolution_485308801_485568001_4FGL_J0811.4+0146_daily_bin949.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.85
user 0.39
sys 0.45

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/309663/ft1_filtered_4FGL_J0811.4+0146_daily_bin949.fits', '/scratch/kocevski/309663/ft2_4FGL_J0811.4+0146_daily_bin949.fits', expMap='/scratch/kocevski/309663/expmap_485308801_485568001_4FGL_J0811.4+0146_daily_bin949.fits', expCube='/scratch/kocevski/309663/ltcube_485308801_485568001_4FGL_J0811.4+0146_daily_bin949.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/309663/Model_4FGL_J0811.4+0146_daily_bin949.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/309663/ft1_filtered_4FGL_J0811.4+0146_daily_bin949.fits
Spacecraft file(s): /scratch/kocevski/309663/ft2_4FGL_J0811.4+0146_daily_bin949.fits
Exposure map: /scratch/kocevski/309663/expmap_485308801_485568001_4FGL_J0811.4+0146_daily_bin949.fits
Exposure cube: /scratch/kocevski/309663/ltcube_485308801_485568001_4FGL_J0811.4+0146_daily_bin949.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/309663/Model_4FGL_J0811.4+0146_daily_bin949.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) = 4818.71785745

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.186       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1743       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.6631       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.8205       1.0000         .10000E-03   10000.    
     8 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.198       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2713       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .15950       1.0000         .10000E-03   10000.    
    15 'norm      '    .16614       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    13.257       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    46.918       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2603       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .75129       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.

 FCN=   4818.710     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2692 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.146        72.868       -.10983E-04   -.30337E-03
   2  Prefactor     2.1729        6.8015        .70639E-06   -.47285E-04
   3  Prefactor     .10000E-03    15.685       -.36848E-06** at limit **
   4  norm          6.6629        2.6836        .10938E-06   -.27639E-04
   5  Prefactor     .10001E-03    60.206       -.45440E-05** at limit **
   6  norm          .10000E-03    16.294       -.20257E-07** at limit **
   7  Prefactor     5.8208        5.1398        .10117E-06   -.12392E-03
   8  norm          .10000E-03    13.927        .34379E-06** at limit **
   9  Prefactor     .10000E-03    8.5784       -.50577E-06** at limit **
  10  Prefactor     13.181        307.04       -.85718E-05   -.29065E-04
  11  Prefactor     .10000E-03    7.2942        .32323E-06** at limit **
  12  Prefactor     2.2712        57.004        .20346E-04   -.21439E-03
  13  norm          .10000E-03    4.5152        .16237E-07** at limit **
  14  norm          .16112        1.9662       -.17489E-06    .11861E-03
  15  norm          .16482        .94762        .15584E-06   -.23936E-03
  16  norm          .10000E-03    9.3695        .16175E-06** at limit **
  17  norm          13.257        5.5715       -.17113E-06   -.75250E-04
  18  Prefactor     .10001E-03    56.291        .43249E-05** at limit **
  19  norm          46.917        38.192       -.32531E-06   -.12675E-04
  20  Prefactor     .10000E-03    6.6324       -.28031E-07** at limit **
  21  norm          .10000E-03    .49924        .59675E-07** at limit **
  22  norm          .10000E-03    2.1222        .94864E-08** at limit **
  23  Normalizat    1.2600        .22041       -.17834E-05    .19856E-04
  24  Prefactor     .75151        .14140        .96020E-06   -.11612E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.1457
  Prefactor  = 2.17288
  Prefactor  = 0.0001
  norm       = 6.66287
  Prefactor  = 0.000100009
  norm       = 0.0001
  Prefactor  = 5.82081
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.1807
  Prefactor  = 0.0001
  Prefactor  = 2.27124
  norm       = 0.0001
  norm       = 0.161122
  norm       = 0.164816
  norm       = 0.0001
  norm       = 13.2574
  Prefactor  = 0.000100007
  norm       = 46.9174
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.25997
  Prefactor  = 0.75151
 **********
 **   18 **HESSE 
 **********

 FCN=   4818.710     FROM HESSE     STATUS=OK           395 CALLS     3087 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.146        78.280        .63231E-04   -1.4440    
   2  Prefactor     2.1729        6.7783        .27924E-03   -1.5413    
   3  Prefactor     .10000E-03    15.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.6629        2.6850        .68250E-04   -1.5192    
   5  Prefactor     .10001E-03    61.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    16.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.8208        5.1507        .14062E-03   -1.5225    
   8  norm          .10000E-03    13.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.6269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.181        310.79        .11026E-03   -1.4982    
  11  Prefactor     .10000E-03    7.3588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.2712        63.776        .13625E-02   -1.5407    
  13  norm          .10000E-03    4.5227        .14405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .16112        11.534        .17743E-02   -1.5628    
  15  norm          .16482        1.4577        .12236E-02   -1.5627    
  16  norm          .10000E-03    9.3817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          13.257        5.5754        .10259E-03   -1.4980    
  18  Prefactor     .10001E-03    57.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          46.917        38.094        .58538E-04   -1.4337    
  20  Prefactor     .10000E-03    6.6478        .17459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .52077        .95631E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.1232        .98762E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2600        .25423        .26856E-03   -.84769    
  24  Prefactor     .75151        .16420        .21281E-03   -1.0154    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04312e-08
Minuit parameter uncertainties:
  1  78.4815
  2  6.78067
  3  2.4936e-05
  4  2.68509
  5  0.00150103
  6  2.98684e-05
  7  5.15108
  8  4.78074e-05
  9  6.21527e-05
  10  128.766
  11  2.63252e-05
  12  24.0986
  13  1.08631e-06
  14  2.72614
  15  0.980033
  16  1.37152e-05
  17  5.57558
  18  0.00127238
  19  38.1138
  20  6.39204e-06
  21  2.90762e-07
  22  1.92297e-07
  23  0.254484
  24  0.164302
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  1.326e+01  5.576e+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:  7.515e-01  1.643e-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:  1.260e+00  2.545e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 26.88
Ra Dec: 122.861 1.776
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 9.51e-08 +/- 4.00e-08
Energy Flux (Fixed Index): 5.64e-05 +/- 2.37e-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) = 4816.07597569
delta logL = 2.63382639997

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4815.91847998
delta logL = 2.79132211164

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.5829       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1991       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3096       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73977       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.

 FCN=   4815.918     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      211 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.5829        4.8783        .32363E-02   -.34391E-02
   2  alpha         1.1991        .26345        .17566       -.17167E-04
   3  Normalizat    1.3096        .21447        .59774E-01   -.36544E-04
   4  Prefactor     .73977        .13551        .42928E-01   -.38797E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.58294
  alpha      = 1.19911
  Normalizat = 1.30964
  Prefactor  = 0.739766
 **********
 **   18 **HESSE 
 **********

 FCN=   4815.918     FROM HESSE     STATUS=OK            29 CALLS      240 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.5829        6.1245        .96669E-04   -1.5089    
   2  alpha         1.1991        .33807        .75960E-03   -.54727    
   3  Normalizat    1.3096        .24619        .26435E-03   -.83279    
   4  Prefactor     .73977        .15556        .21448E-03   -1.0199    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22565e-09
Minuit parameter uncertainties:
  1  6.12492
  2  0.339498
  3  0.246407
  4  0.155655
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/309663': 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) = 4815.91847997
delta logL = 2.7913221153

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  9.583e+00  6.125e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  1.199e+00  3.395e-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:  7.398e-01  1.557e-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:  1.310e+00  2.464e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 32.43
Ra Dec: 122.861 1.776
Photon Index (Free Index): 1.20 +/- 0.34
Photon Flux (Free Index): 4.11e-08 +/- 2.50e-08
Energy Flux (Free Index): 1.88e-04 +/- 1.35e-04

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/309663/cmap_HighResolution_485308801_485568001_4FGL_J0811.4+0146_daily_bin949.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.51e-08', energy_flux2='1.88e-04', photon_flux_error='4.00e-08', dlogl='2.79e+00', energy_flux='5.64e-05', photon_flux2='4.11e-08', job_status='DONE', time_completed='2021-08-29 12:33:20.541759', photon_index_error2='0.34', photon_index2='1.20', ts='26.88', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='1.35e-04', EG='1.26', time_epoch_completed='1630265600.54', return_code='0', job_id='309663', GAL2='0.74', EG2='1.31', return_code2='0', energy_flux_error='2.37e-05', photon_flux_error2='2.50e-08', ts2='32.43', photon_index='2.01' WHERE bin_id='949' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:33:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 309663: <4FGL_J0811.4+0146_daily_bin949> in cluster <slac> Done

Job <4FGL_J0811.4+0146_daily_bin949> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 12:20:43 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:20:44 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:44 2021
Terminated at Sun Aug 29 12:33:20 2021
Results reported at Sun Aug 29 12:33:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin949 122.861 1.7756 485308801 485568001 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 :                                   531.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             242.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            757 sec.

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

