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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin156
RA = 122.861, Dec = 1.7756
tmin = 279763201, tmax = 280022401
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='303095', job_status='RUN', time_executed='2021-08-29 12:00:59.369932', time_epoch_executed='1630263659.37' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='156'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/303095

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/303095/ft1_4FGL_J0811.4+0146_daily_bin156.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/303095/ft2_4FGL_J0811.4+0146_daily_bin156.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/303095/ft1_4FGL_J0811.4+0146_daily_bin156.fits outfile=/scratch/kocevski/303095/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin156.fits ra=122.861 dec=1.7756 rad=12.0 tmin=279763201.0 tmax=280022401.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.93
user 3.30
sys 0.61

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/303095/ft1_filtered_4FGL_J0811.4+0146_daily_bin156.fits" evtable="EVENTS" scfile=/scratch/kocevski/303095/ft2_4FGL_J0811.4+0146_daily_bin156.fits sctable="SC_DATA" outfile=/scratch/kocevski/303095/ltcube_279763201_280022401_4FGL_J0811.4+0146_daily_bin156.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/303095/ft2_4FGL_J0811.4+0146_daily_bin156.fits
.....................!
real 12.20
user 11.34
sys 0.80

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/303095/ft1_filtered_4FGL_J0811.4+0146_daily_bin156.fits evtable="EVENTS" scfile=/scratch/kocevski/303095/ft2_4FGL_J0811.4+0146_daily_bin156.fits sctable="SC_DATA" expcube=/scratch/kocevski/303095/ltcube_279763201_280022401_4FGL_J0811.4+0146_daily_bin156.fits outfile=/scratch/kocevski/303095/expmap_279763201_280022401_4FGL_J0811.4+0146_daily_bin156.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/303095/ltcube_279763201_280022401_4FGL_J0811.4+0146_daily_bin156.fits
.....................!
real 191.74
user 185.33
sys 6.04

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/303095/ft1_filtered_4FGL_J0811.4+0146_daily_bin156.fits scfile=/scratch/kocevski/303095/ft2_4FGL_J0811.4+0146_daily_bin156.fits outfile=/scratch/kocevski/303095/cmap_279763201_280022401_4FGL_J0811.4+0146_daily_bin156.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.97
user 0.37
sys 0.58

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/303095/ft1_filtered_4FGL_J0811.4+0146_daily_bin156.fits scfile=/scratch/kocevski/303095/ft2_4FGL_J0811.4+0146_daily_bin156.fits outfile=/scratch/kocevski/303095/cmap_HighResolution_279763201_280022401_4FGL_J0811.4+0146_daily_bin156.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.95
user 0.36
sys 0.57

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .53563       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.2582       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.145       1.0000         .10000E-03   10000.    
     8 'norm      '    .77600       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.405       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.808       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.0026       1.0000         .10000E-03   10000.    
    16 'norm      '    4.1255       1.0000         .10000E-03   10000.    
    17 'norm      '    1.0593       1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.918       1.0000         .10000E-03   10000.    
    19 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13825E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    .53806       1.0000         .10000E-03   10000.    
    22 'norm      '    .36439E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .63052       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1357       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=   7404.070     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2771 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    56.042        .76815E-05** at limit **
   2  Prefactor     .10000E-03    4.6017        .73565E-08** at limit **
   3  Prefactor     .10000E-03    11.598       -.63752E-07** at limit **
   4  norm          .53559        1.3113        .53145E-06   -.40997E-03
   5  Prefactor     .10000E-03    30.680        .37657E-06** at limit **
   6  norm          3.2597        13.803        .64179E-06   -.23256E-04
   7  Prefactor     11.145        5.1852        .26338E-06   -.37578E-03
   8  norm          .75314        8.8629        .93443E-06   -.24802E-03
   9  Prefactor     11.407        10.076       -.33557E-06   -.21694E-03
  10  Prefactor     .10003E-03    47.909       -.66266E-05** at limit **
  11  Prefactor     21.810        9.2442        .98181E-07    .11156E-04
  12  Prefactor     .10000E-03    13.925        .11734E-05** at limit **
  13  norm          .10000E-03    6.5799        .67800E-08** at limit **
  14  norm          .10000E-03    .89120        .16003E-07** at limit **
  15  norm          3.0027        1.0676        .27195E-07   -.49356E-04
  16  norm          4.1295        14.260        .67440E-05   -.36907E-03
  17  norm          1.0607        2.7630        .38873E-06   -.27735E-03
  18  Prefactor     32.896        33.347       -.19342E-05   -.17742E-03
  19  norm          .10000E-03    14.097       -.14216E-05** at limit **
  20  Prefactor     .10066E-03    6.8431       -.46233E-06** at limit **
  21  norm          .53867        .99876        .27704E-06   -.62628E-03
  22  norm          .10017E-03    4.9180        .12350E-05** at limit **
  23  Normalizat    .63055        .18807       -.87721E-06   -.25628E-03
  24  Prefactor     1.1357        .11884       -.27949E-06   -.38505E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100036
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.535589
  Prefactor  = 0.0001
  norm       = 3.25971
  Prefactor  = 11.1449
  norm       = 0.753138
  Prefactor  = 11.4073
  Prefactor  = 0.000100028
  Prefactor  = 21.8104
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.00267
  norm       = 4.12945
  norm       = 1.06069
  Prefactor  = 32.8958
  norm       = 0.000100001
  Prefactor  = 0.000100657
  norm       = 0.538665
  norm       = 0.000100166
  Normalizat = 0.630552
  Prefactor  = 1.13567
 **********
 **   18 **HESSE 
 **********

 FCN=   7404.070     FROM HESSE     STATUS=OK           409 CALLS     3180 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    60.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.6695        .18024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .53559        1.3033        .14671E-03   -1.5562    
   5  Prefactor     .10000E-03    31.520        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.2597        13.911        .22436E-03   -1.5347    
   7  Prefactor     11.145        5.1822        .60002E-03   -1.5040    
   8  norm          .75314        43.457        .48109E-02   -1.5534    
   9  Prefactor     11.407        10.129        .11862E-03   -1.5032    
  10  Prefactor     .10003E-03    51.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.810        9.2307        .85770E-04   -1.4774    
  12  Prefactor     .10000E-03    14.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.6627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .90568        .79215E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.0027        1.0664        .50767E-04   -1.5361    
  16  norm          4.1295        14.803        .99231E-03   -1.5302    
  17  norm          1.0607        2.6872        .22179E-03   -1.5502    
  18  Prefactor     32.896        33.477        .69841E-04   -1.4560    
  19  norm          .10000E-03    14.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10066E-03    8.2400        .76493E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .53867        .98449        .10832E-03   -1.5561    
  22  norm          .10017E-03    36.014        .35713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .63055        .20695        .35118E-03   -1.0670    
  24  Prefactor     1.1357        .13351        .17778E-03   -.88335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.12106e-09
Minuit parameter uncertainties:
  1  0.00295092
  2  4.56964e-07
  3  1.0998e-05
  4  1.3034
  5  9.33579e-05
  6  13.4731
  7  5.18238
  8  11.4499
  9  10.1306
  10  0.00238532
  11  9.23129
  12  0.000232482
  13  1.3277e-06
  14  3.55048e-07
  15  1.06636
  16  14.8156
  17  2.68752
  18  33.4956
  19  0.000255021
  20  0.00465403
  21  0.984517
  22  0.00489853
  23  0.207208
  24  0.133548
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  1.061e+00  2.688e+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.136e+00  1.335e-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:  6.306e-01  2.072e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/303095/likelihoodResults_279763201_280022401_4FGL_J0811.4+0146_daily_bin156.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) = 7404.06972068
delta logL = 1.14623471745e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7404.06969181
delta logL = 4.03408876082e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0638       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0227       1.0000          .0000       5.0000    
     3 'Normalizat'    .63031       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1358       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7404.070     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      272 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0656        2.6956        .22166E-03   -.31287E-05
   2  alpha         2.0242        1.8281        .52018E-01   -.77774E-05
   3  Normalizat    .63028        .19582        .35125E-03   -.16313E-04
   4  Prefactor     1.1358        .12930        .17777E-03   -.33958E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.06559
  alpha      = 2.02419
  Normalizat = 0.630279
  Prefactor  = 1.13576
 **********
 **   18 **HESSE 
 **********

 FCN=   7404.070     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .54E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0656        2.7333        .88663E-05   -1.5502    
   2  alpha         2.0242        1.8480        .20807E-02   -.19149    
   3  Normalizat    .63028        .19570        .14050E-04   -1.0671    
   4  Prefactor     1.1358        .12928        .71108E-05   -.88332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.44526e-13
Minuit parameter uncertainties:
  1  2.73361
  2  2.09238
  3  0.195911
  4  0.129319
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/303095': 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) = 7404.06969139
delta logL = 4.0752905079e-05

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  1.066e+00  2.734e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.024e+00  2.092e+00  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.136e+00  1.293e-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:  6.303e-01  1.959e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.20
Ra Dec: 122.861 1.776

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/303095/cmap_HighResolution_279763201_280022401_4FGL_J0811.4+0146_daily_bin156.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.86e-05', job_status='DONE', photon_flux_upper_limit='6.52e-08', time_completed='2021-08-29 12:12:47.034287', job_id='303095', GAL2='1.14', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1630264367.03', return_code2='0', ts='0.20', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='4.08e-05', ts2='0.20', photon_index_error='0.00', photon_index='2.01' WHERE bin_id='156' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:12:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 303095: <4FGL_J0811.4+0146_daily_bin156> in cluster <slac> Done

Job <4FGL_J0811.4+0146_daily_bin156> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 29 12:00:34 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:00:36 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:00:36 2021
Terminated at Sun Aug 29 12:12:47 2021
Results reported at Sun Aug 29 12:12:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin156 122.861 1.7756 279763201 280022401 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 :                                   713.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             322.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            733 sec.

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

