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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin370
RA = 122.861, Dec = 1.7756
tmin = 335232001, tmax = 335491201
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='304715', job_status='RUN', time_executed='2021-08-29 12:08:46.744453', time_epoch_executed='1630264126.74' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='370'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/304715

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/304715/ft1_4FGL_J0811.4+0146_daily_bin370.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/304715/ft2_4FGL_J0811.4+0146_daily_bin370.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/304715/ft1_4FGL_J0811.4+0146_daily_bin370.fits outfile=/scratch/kocevski/304715/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin370.fits ra=122.861 dec=1.7756 rad=12.0 tmin=335232001.0 tmax=335491201.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 7.65
user 3.46
sys 4.01

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/304715/ft1_filtered_4FGL_J0811.4+0146_daily_bin370.fits" evtable="EVENTS" scfile=/scratch/kocevski/304715/ft2_4FGL_J0811.4+0146_daily_bin370.fits sctable="SC_DATA" outfile=/scratch/kocevski/304715/ltcube_335232001_335491201_4FGL_J0811.4+0146_daily_bin370.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/304715/ft2_4FGL_J0811.4+0146_daily_bin370.fits
.....................!
real 16.17
user 11.48
sys 4.63

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/304715/ft1_filtered_4FGL_J0811.4+0146_daily_bin370.fits evtable="EVENTS" scfile=/scratch/kocevski/304715/ft2_4FGL_J0811.4+0146_daily_bin370.fits sctable="SC_DATA" expcube=/scratch/kocevski/304715/ltcube_335232001_335491201_4FGL_J0811.4+0146_daily_bin370.fits outfile=/scratch/kocevski/304715/expmap_335232001_335491201_4FGL_J0811.4+0146_daily_bin370.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/304715/ltcube_335232001_335491201_4FGL_J0811.4+0146_daily_bin370.fits
.....................!
real 195.41
user 185.70
sys 9.08

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/304715/ft1_filtered_4FGL_J0811.4+0146_daily_bin370.fits scfile=/scratch/kocevski/304715/ft2_4FGL_J0811.4+0146_daily_bin370.fits outfile=/scratch/kocevski/304715/cmap_335232001_335491201_4FGL_J0811.4+0146_daily_bin370.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 4.47
user 0.37
sys 3.91

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/304715/ft1_filtered_4FGL_J0811.4+0146_daily_bin370.fits scfile=/scratch/kocevski/304715/ft2_4FGL_J0811.4+0146_daily_bin370.fits outfile=/scratch/kocevski/304715/cmap_HighResolution_335232001_335491201_4FGL_J0811.4+0146_daily_bin370.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 4.01
user 0.37
sys 3.51

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    19.457       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.6167       1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.405       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.0994       1.0000         .10000E-03   10000.    
     8 'norm      '    12.026       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14875E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11192E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.4618       1.0000         .10000E-03   10000.    
    13 'norm      '    2.5051       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .90763       1.0000         .10000E-03   10000.    
    16 'norm      '    6.3808       1.0000         .10000E-03   10000.    
    17 'norm      '    7.4480       1.0000         .10000E-03   10000.    
    18 'Prefactor '    33.490       1.0000         .10000E-03   10000.    
    19 'norm      '    6.8842       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.1957       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2818       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84074       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=   8642.216     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2724 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.654        .50568E-07** at limit **
   2  Prefactor     19.457        8.6936        .66385E-09   -.55617E-06
   3  Prefactor     .10000E-03    15.452        .17543E-06** at limit **
   4  norm          4.6169        1.8797        .10248E-08   -.38398E-04
   5  Prefactor     27.408        28.954        .14860E-06    .77665E-08
   6  norm          .10000E-03    3.2585        .26807E-07** at limit **
   7  Prefactor     5.0941        2.2130        .15083E-06   -.11270E-02
   8  norm          12.016        14.822        .29731E-05    .62623E-04
   9  Prefactor     .10000E-03    27.766       -.12583E-05** at limit **
  10  Prefactor     .10000E-03    153.88       -.35723E-06** at limit **
  11  Prefactor     .10000E-03    1.8262       -.57661E-07** at limit **
  12  Prefactor     5.4584        34.316        .41082E-06    .51065E-06
  13  norm          2.5046        5.1577       -.22741E-06   -.54120E-04
  14  norm          .10000E-03    .67919        .79396E-07** at limit **
  15  norm          .90768        .59239       -.34908E-08   -.24846E-04
  16  norm          6.3808        10.897       -.18839E-06   -.56997E-05
  17  norm          7.4481        4.2350       -.35739E-06   -.49893E-04
  18  Prefactor     33.487        28.545       -.20794E-07    .53147E-05
  19  norm          6.8843        8.8205       -.37050E-08   -.54569E-06
  20  Prefactor     3.1943        10.098       -.57897E-06   -.21633E-04
  21  norm          .10000E-03    .26789       -.21267E-07** at limit **
  22  norm          .10000E-03    3.4156       -.79934E-08** at limit **
  23  Normalizat    1.2819        .17425       -.29306E-07    .15605E-04
  24  Prefactor     .84067        .10750       -.62482E-07    .20276E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 19.4574
  Prefactor  = 0.0001
  norm       = 4.61692
  Prefactor  = 27.4077
  norm       = 0.0001
  Prefactor  = 5.09414
  norm       = 12.016
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.45842
  norm       = 2.50464
  norm       = 0.0001
  norm       = 0.907675
  norm       = 6.38079
  norm       = 7.44811
  Prefactor  = 33.4874
  norm       = 6.88433
  Prefactor  = 3.19428
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.28186
  Prefactor  = 0.840675
 **********
 **   18 **HESSE 
 **********

 FCN=   8642.216     FROM HESSE     STATUS=OK           405 CALLS     3129 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.457        8.7003        .90801E-04   -1.4825    
   3  Prefactor     .10000E-03    15.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.6169        1.8788        .77348E-04   -1.5278    
   5  Prefactor     27.408        29.019        .76526E-04   -1.4660    
   6  norm          .10000E-03    3.2611        .16389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.0941        5.3327        .89023E-03   -1.5257    
   8  norm          12.016        15.116        .11551E-03   -1.5015    
   9  Prefactor     .10000E-03    29.400        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    154.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.8325        .12267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.4584        34.229        .17193E-03   -1.5241    
  13  norm          2.5046        5.1478        .25818E-03   -1.5391    
  14  norm          .10000E-03    .70102        .14952E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .90768        .59314        .55926E-04   -1.5517    
  16  norm          6.3808        10.861        .15890E-03   -1.5203    
  17  norm          7.4481        4.2317        .13712E-03   -1.5162    
  18  Prefactor     33.487        28.597        .69243E-04   -1.4550    
  19  norm          6.8843        8.8192        .15291E-03   -1.5183    
  20  Prefactor     3.1943        10.094        .22666E-03   -1.5350    
  21  norm          .10000E-03    .37546        .93351E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.4456        .16776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2819        .20305        .28080E-03   -.84110    
  24  Prefactor     .84067        .12394        .21223E-03   -.98246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.13576e-10
Minuit parameter uncertainties:
  1  4.58091e-07
  2  8.70084
  3  4.84457e-07
  4  1.87879
  5  29.0339
  6  1.86654e-07
  7  5.33316
  8  15.1208
  9  0.000520823
  10  3.98021e-05
  11  2.74888e-07
  12  27.3603
  13  5.14874
  14  1.20829e-07
  15  0.593146
  16  10.8644
  17  4.23189
  18  28.6083
  19  8.82086
  20  10.0995
  21  1.30485e-06
  22  6.95745e-07
  23  0.20318
  24  0.123985
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  7.448e+00  4.232e+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:  8.407e-01  1.240e-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.282e+00  2.032e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.67
Ra Dec: 122.861 1.776
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 5.34e-08 +/- 3.04e-08
Energy Flux (Fixed Index): 3.17e-05 +/- 1.80e-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) = 8638.51310138
delta logL = 3.70272675792

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8638.49523414
delta logL = 3.72059399521

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7572       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6732       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1224       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90430       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=   8638.495     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      257 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7569        7.2698        .79040E-02    .47124E-03
   2  alpha         3.6733        3.7337        .18171        .88085E-04
   3  Normalizat    1.1224        .72603E-01    .66946E-01    .17172E-04
   4  Prefactor     .90430        .44618E-01    .45060E-01    .10003E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.75686
  alpha      = 3.67331
  Normalizat = 1.12243
  Prefactor  = 0.904304
 **********
 **   18 **HESSE 
 **********

 FCN=   8638.495     FROM HESSE     STATUS=OK            33 CALLS      290 TOTAL
                     EDM=   .93E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7569        5.6810        .41022E-04   -1.5443    
   2  alpha         3.6733        1.6635        .78425E-02    .48852    
   3  Normalizat    1.1224        .20758        .29617E-03   -.89035    
   4  Prefactor     .90430        .12823        .20539E-03   -.95991    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.26404e-08
Minuit parameter uncertainties:
  1  5.68273
  2  1.88403
  3  0.207728
  4  0.128271
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/304715': 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) = 8638.49523412
delta logL = 3.72059401663

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  1.757e+00  5.683e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  3.673e+00  1.884e+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:  9.043e-01  1.283e-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.122e+00  2.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.88
Ra Dec: 122.861 1.776
Photon Index (Free Index): 3.67 +/- 1.88
Photon Flux (Free Index): 1.77e-07 +/- 7.17e-08
Energy Flux (Free Index): 2.93e-05 +/- 1.30e-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/304715/cmap_HighResolution_335232001_335491201_4FGL_J0811.4+0146_daily_bin370.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.34e-08', energy_flux2='2.93e-05', photon_flux_error='3.04e-08', dlogl='3.72e+00', energy_flux='3.17e-05', photon_flux2='1.77e-07', job_status='DONE', time_completed='2021-08-29 12:21:19.949186', photon_index_error2='1.88', photon_index2='3.67', ts='5.67', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='1.30e-05', EG='1.28', time_epoch_completed='1630264879.95', return_code='0', job_id='304715', GAL2='0.90', EG2='1.12', return_code2='0', energy_flux_error='1.80e-05', photon_flux_error2='7.17e-08', ts2='13.88', photon_index='2.01' WHERE bin_id='370' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:21:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 304715: <4FGL_J0811.4+0146_daily_bin370> in cluster <slac> Done

Job <4FGL_J0811.4+0146_daily_bin370> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 29 12:05:32 2021
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:05:34 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:05:34 2021
Terminated at Sun Aug 29 12:21:21 2021
Results reported at Sun Aug 29 12:21:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin370 122.861 1.7756 335232001 335491201 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 :                                   810.07 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             299.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   946 sec.
    Turnaround time :                            949 sec.

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

