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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin855
RA = 122.861, Dec = 1.7756
tmin = 460944001, tmax = 461203201
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='309514', job_status='RUN', time_executed='2021-08-29 12:24:36.902526', time_epoch_executed='1630265076.9' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='855'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/309514

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/309514/ft1_4FGL_J0811.4+0146_daily_bin855.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/309514/ft2_4FGL_J0811.4+0146_daily_bin855.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/309514/ft1_4FGL_J0811.4+0146_daily_bin855.fits outfile=/scratch/kocevski/309514/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin855.fits ra=122.861 dec=1.7756 rad=12.0 tmin=460944001.0 tmax=461203201.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.25
user 3.18
sys 2.05

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/309514/ft1_filtered_4FGL_J0811.4+0146_daily_bin855.fits" evtable="EVENTS" scfile=/scratch/kocevski/309514/ft2_4FGL_J0811.4+0146_daily_bin855.fits sctable="SC_DATA" outfile=/scratch/kocevski/309514/ltcube_460944001_461203201_4FGL_J0811.4+0146_daily_bin855.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/309514/ft2_4FGL_J0811.4+0146_daily_bin855.fits
.....................!
real 13.85
user 11.35
sys 2.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/309514/ft1_filtered_4FGL_J0811.4+0146_daily_bin855.fits evtable="EVENTS" scfile=/scratch/kocevski/309514/ft2_4FGL_J0811.4+0146_daily_bin855.fits sctable="SC_DATA" expcube=/scratch/kocevski/309514/ltcube_460944001_461203201_4FGL_J0811.4+0146_daily_bin855.fits outfile=/scratch/kocevski/309514/expmap_460944001_461203201_4FGL_J0811.4+0146_daily_bin855.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/309514/ltcube_460944001_461203201_4FGL_J0811.4+0146_daily_bin855.fits
.....................!
real 193.14
user 185.58
sys 7.17

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/309514/ft1_filtered_4FGL_J0811.4+0146_daily_bin855.fits scfile=/scratch/kocevski/309514/ft2_4FGL_J0811.4+0146_daily_bin855.fits outfile=/scratch/kocevski/309514/cmap_460944001_461203201_4FGL_J0811.4+0146_daily_bin855.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 2.38
user 0.37
sys 1.98

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/309514/ft1_filtered_4FGL_J0811.4+0146_daily_bin855.fits scfile=/scratch/kocevski/309514/ft2_4FGL_J0811.4+0146_daily_bin855.fits outfile=/scratch/kocevski/309514/cmap_HighResolution_460944001_461203201_4FGL_J0811.4+0146_daily_bin855.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 2.37
user 0.37
sys 1.98

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.6538       1.0000         .10000E-03   10000.    
     4 'norm      '    5.8378       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.9674       1.0000         .10000E-03   10000.    
     8 'norm      '    4.7783       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15275E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11310E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10563E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    36.987       1.0000         .10000E-03   10000.    
    13 'norm      '    7.9376       1.0000         .10000E-03   10000.    
    14 'norm      '    .12411E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.1506       1.0000         .10000E-03   10000.    
    16 'norm      '    .10378E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.9243       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.065       1.0000         .10000E-03   10000.    
    21 'norm      '    .36399       1.0000         .10000E-03   10000.    
    22 'norm      '    11.117       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .97481       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1348       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=   6451.546     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2849 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.873       -.44034E-05** at limit **
   2  Prefactor     .10000E-03    5.0291       -.12936E-07** at limit **
   3  Prefactor     8.6508        51.597        .27798E-05   -.80563E-05
   4  norm          5.8376        2.4477       -.29673E-07   -.16845E-03
   5  Prefactor     .10000E-03    21.555        .49804E-06** at limit **
   6  norm          .10000E-03    6.2388       -.79689E-07** at limit **
   7  Prefactor     2.9681        3.9932       -.17135E-06   -.44447E-03
   8  norm          4.8000        28.443       -.32293E-05   -.11916E-03
   9  Prefactor     .10001E-03    11.636        .89038E-06** at limit **
  10  Prefactor     .10000E-03    565.64       -.41496E-05** at limit **
  11  Prefactor     .10000E-03    12.877        .56428E-05** at limit **
  12  Prefactor     36.990        40.773       -.20910E-05    .27943E-05
  13  norm          7.9385        12.310       -.30939E-06   -.11275E-03
  14  norm          .10000E-03    1.4737       -.42917E-08** at limit **
  15  norm          1.1505        1.2586       -.89140E-07   -.75270E-03
  16  norm          .10000E-03    9.4096       -.16729E-05** at limit **
  17  norm          8.9248        5.3793       -.41969E-06   -.10654E-03
  18  Prefactor     .10000E-03    10.935       -.36771E-05** at limit **
  19  norm          .10000E-03    9.9032        .37999E-05** at limit **
  20  Prefactor     19.069        16.940        .11956E-05   -.19770E-04
  21  norm          .36402        .42152        .19218E-07    .47894E-03
  22  norm          11.118        10.276        .72492E-07   -.56669E-04
  23  Normalizat    .97456        .22703        .28276E-06   -.11764E-03
  24  Prefactor     1.1349        .13951       -.37564E-08   -.14418E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.65078
  norm       = 5.83763
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.96813
  norm       = 4.79999
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.99
  norm       = 7.93854
  norm       = 0.0001
  norm       = 1.15048
  norm       = 0.0001
  norm       = 8.92484
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.0685
  norm       = 0.364015
  norm       = 11.1185
  Normalizat = 0.974562
  Prefactor  = 1.13491
 **********
 **   18 **HESSE 
 **********

 FCN=   6451.546     FROM HESSE     STATUS=OK           403 CALLS     3252 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.0538        .17590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.6508        51.425        .13626E-03   -1.5120    
   4  norm          5.8376        2.4469        .76880E-04   -1.5225    
   5  Prefactor     .10000E-03    21.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.2440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.9681        3.9857        .17840E-03   -1.5363    
   8  norm          4.8000        22.817        .18406E-03   -1.5270    
   9  Prefactor     .10001E-03    41.723        .46068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    569.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.029        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     36.990        40.859        .65900E-04   -1.4491    
  13  norm          7.9385        12.307        .14232E-03   -1.5144    
  14  norm          .10000E-03    6.4003        .18378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.1505        1.2152        .88055E-04   -1.5493    
  16  norm          .10000E-03    9.3832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.9248        5.3770        .13417E-03   -1.5110    
  18  Prefactor     .10000E-03    10.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    9.8551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     19.069        16.969        .91730E-04   -1.4834    
  21  norm          .36402        .40682        .54685E-03   -1.5587    
  22  norm          11.118        10.275        .12016E-03   -1.5041    
  23  Normalizat    .97456        .25480        .34032E-03   -.93888    
  24  Prefactor     1.1349        .15731        .20192E-03   -.88358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.5549e-10
Minuit parameter uncertainties:
  1  1.1762e-06
  2  5.44667e-07
  3  42.2382
  4  2.44692
  5  1.73199e-06
  6  2.0548e-07
  7  3.98607
  8  20.943
  9  0.00120423
  10  0.000104416
  11  8.36923e-05
  12  40.89
  13  12.3105
  14  8.73344e-06
  15  1.21525
  16  2.08127e-05
  17  5.3773
  18  3.37071e-06
  19  1.78612e-06
  20  16.9736
  21  0.406819
  22  10.2764
  23  0.255117
  24  0.157374
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  8.925e+00  5.377e+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.135e+00  1.574e-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:  9.746e-01  2.551e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.57
Ra Dec: 122.861 1.776
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 6.40e-08 +/- 3.86e-08
Energy Flux (Fixed Index): 3.79e-05 +/- 2.29e-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) = 6451.1544564
delta logL = 0.391116000616

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6451.14942987
delta logL = 0.396142539124

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.8259       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3898       1.0000          .0000       5.0000    
     3 'Normalizat'    .94950       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1416       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=   6451.149     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      274 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.8257        5.0019        .11554E-03    .13138E-02
   2  alpha         2.3900        .44596        .10478E-01    .12856E-03
   3  Normalizat    .94955        .24100        .34408E-03   -.61390E-04
   4  Prefactor     1.1416        .15240        .20130E-03   -.11886E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.82568
  alpha      = 2.39
  Normalizat = 0.949548
  Prefactor  = 1.14157
 **********
 **   18 **HESSE 
 **********

 FCN=   6451.149     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.8257        4.8900        .46217E-05   -1.5148    
   2  alpha         2.3900        .43585        .41913E-03   -.44014E-01
   3  Normalizat    .94955        .24110        .13763E-04   -.94740    
   4  Prefactor     1.1416        .15247        .40261E-04   -.88149    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.1638e-10
Minuit parameter uncertainties:
  1  4.89025
  2  0.438094
  3  0.241375
  4  0.152528
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/309514': 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) = 6451.14942967
delta logL = 0.396142733505

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  7.826e+00  4.890e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.390e+00  4.381e-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.142e+00  1.525e-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:  9.495e-01  2.414e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.37
Ra Dec: 122.861 1.776
Photon Index (Free Index): 2.39 +/- 0.44
Photon Flux (Free Index): 9.32e-08 +/- 5.78e-08
Energy Flux (Free Index): 3.13e-05 +/- 1.78e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/309514/cmap_HighResolution_460944001_461203201_4FGL_J0811.4+0146_daily_bin855.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.40e-08', energy_flux2='3.13e-05', photon_flux_error='3.86e-08', dlogl='3.96e-01', energy_flux='3.79e-05', photon_flux2='9.32e-08', job_status='DONE', time_completed='2021-08-29 12:34:59.938214', photon_index_error2='0.44', photon_index2='2.39', ts='7.57', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='1.78e-05', EG='0.97', time_epoch_completed='1630265699.94', return_code='0', job_id='309514', GAL2='1.14', EG2='0.95', return_code2='0', energy_flux_error='2.29e-05', photon_flux_error2='5.78e-08', ts2='8.37', photon_index='2.01' WHERE bin_id='855' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:34:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 309514: <4FGL_J0811.4+0146_daily_bin855> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin855 122.861 1.7756 460944001 461203201 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 :                                   652.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             270.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            873 sec.

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

