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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin216
RA = 122.861, Dec = 1.7756
tmin = 295315201, tmax = 295574401
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='303181', job_status='RUN', time_executed='2021-08-29 12:04:58.959608', time_epoch_executed='1630263898.96' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='216'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/303181

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/303181/ft1_4FGL_J0811.4+0146_daily_bin216.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/303181/ft2_4FGL_J0811.4+0146_daily_bin216.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/303181/ft1_4FGL_J0811.4+0146_daily_bin216.fits outfile=/scratch/kocevski/303181/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin216.fits ra=122.861 dec=1.7756 rad=12.0 tmin=295315201.0 tmax=295574401.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.45
user 2.11
sys 1.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/303181/ft1_filtered_4FGL_J0811.4+0146_daily_bin216.fits" evtable="EVENTS" scfile=/scratch/kocevski/303181/ft2_4FGL_J0811.4+0146_daily_bin216.fits sctable="SC_DATA" outfile=/scratch/kocevski/303181/ltcube_295315201_295574401_4FGL_J0811.4+0146_daily_bin216.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/303181/ft2_4FGL_J0811.4+0146_daily_bin216.fits
.....................!
real 12.93
user 11.27
sys 1.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/303181/ft1_filtered_4FGL_J0811.4+0146_daily_bin216.fits evtable="EVENTS" scfile=/scratch/kocevski/303181/ft2_4FGL_J0811.4+0146_daily_bin216.fits sctable="SC_DATA" expcube=/scratch/kocevski/303181/ltcube_295315201_295574401_4FGL_J0811.4+0146_daily_bin216.fits outfile=/scratch/kocevski/303181/expmap_295315201_295574401_4FGL_J0811.4+0146_daily_bin216.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/303181/ltcube_295315201_295574401_4FGL_J0811.4+0146_daily_bin216.fits
.....................!
real 191.75
user 185.17
sys 6.23

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/303181/ft1_filtered_4FGL_J0811.4+0146_daily_bin216.fits scfile=/scratch/kocevski/303181/ft2_4FGL_J0811.4+0146_daily_bin216.fits outfile=/scratch/kocevski/303181/cmap_295315201_295574401_4FGL_J0811.4+0146_daily_bin216.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 1.67
user 0.37
sys 1.27

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/303181/ft1_filtered_4FGL_J0811.4+0146_daily_bin216.fits scfile=/scratch/kocevski/303181/ft2_4FGL_J0811.4+0146_daily_bin216.fits outfile=/scratch/kocevski/303181/cmap_HighResolution_295315201_295574401_4FGL_J0811.4+0146_daily_bin216.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 1.56
user 0.36
sys 1.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.376       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .44831       1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.080       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0667       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6097       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.768       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.9175       1.0000         .10000E-03   10000.    
    16 'norm      '    .10127E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.8122       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    24.372       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.5667       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .84155       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2343       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=   7834.788     FROM MIGRAD    STATUS=CONVERGED    536 CALLS     2659 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.374        51.036       -.96340E-06   -.60674E-04
   2  Prefactor     .10000E-03    2.9527       -.15856E-07** at limit **
   3  Prefactor     .10000E-03    18.202        .18139E-06** at limit **
   4  norm          .44909        1.3894        .70883E-06   -.48589E-03
   5  Prefactor     27.084        25.100        .70429E-06    .12201E-03
   6  norm          .10000E-03    5.4829       -.45895E-08** at limit **
   7  Prefactor     2.0667        2.1623       -.27686E-07    .43106E-04
   8  norm          .10000E-03    8.8861        .69540E-08** at limit **
   9  Prefactor     2.6080        10.294        .66856E-06   -.54394E-04
  10  Prefactor     .10000E-03    40.454       -.21481E-05** at limit **
  11  Prefactor     .10000E-03    2.6941       -.23089E-07** at limit **
  12  Prefactor     .10000E-03    35.247        .25293E-05** at limit **
  13  norm          11.768        9.7624        .81814E-06   -.37233E-03
  14  norm          .10000E-03    .93744       -.95181E-08** at limit **
  15  norm          4.9177        1.4899        .12008E-07   -.49290E-04
  16  norm          .10000E-03    23.057       -.95206E-06** at limit **
  17  norm          6.8110        3.8711        .18910E-06    .33342E-03
  18  Prefactor     .10000E-03    25.595        .57477E-06** at limit **
  19  norm          24.375        23.646        .51409E-06    .82102E-04
  20  Prefactor     .10000E-03    4.4193       -.37459E-06** at limit **
  21  norm          1.5667        1.0119        .33792E-07   -.13021E-03
  22  norm          .10000E-03    4.4448        .36189E-06** at limit **
  23  Normalizat    .84171        .19206       -.25110E-06   -.62987E-04
  24  Prefactor     1.2342        .12950       -.31637E-06   -.75285E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.374
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.449092
  Prefactor  = 27.0836
  norm       = 0.0001
  Prefactor  = 2.06671
  norm       = 0.0001
  Prefactor  = 2.60799
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 11.7677
  norm       = 0.0001
  norm       = 4.91772
  norm       = 0.0001
  norm       = 6.81099
  Prefactor  = 0.0001
  norm       = 24.3748
  Prefactor  = 0.0001
  norm       = 1.56671
  norm       = 0.0001
  Normalizat = 0.84171
  Prefactor  = 1.23417
 **********
 **   18 **HESSE 
 **********

 FCN=   7834.788     FROM HESSE     STATUS=OK           389 CALLS     3048 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.374        51.517        .66448E-04   -1.4501    
   2  Prefactor     .10000E-03    2.9613        .14853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .44909        1.4397        .17943E-03   -1.5574    
   5  Prefactor     27.084        25.440        .76984E-04   -1.4667    
   6  norm          .10000E-03    5.4923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.0667        2.1671        .12927E-03   -1.5420    
   8  norm          .10000E-03    8.8945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.6080        10.327        .25251E-03   -1.5385    
  10  Prefactor     .10000E-03    41.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.6997        .14188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    37.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.768        10.161        .58388E-03   -1.5022    
  14  norm          .10000E-03    .94554        .83625E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.9177        1.4900        .56804E-04   -1.5264    
  16  norm          .10000E-03    23.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.8110        3.9099        .12798E-03   -1.5186    
  18  Prefactor     .10000E-03    25.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          24.375        23.764        .81140E-04   -1.4720    
  20  Prefactor     .10000E-03    4.4694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.5667        1.0064        .68415E-04   -1.5458    
  22  norm          .10000E-03    4.5079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .84171        .21359        .35118E-03   -.98540    
  24  Prefactor     1.2342        .14484        .19638E-03   -.85286    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21125e-10
Minuit parameter uncertainties:
  1  51.5801
  2  5.306e-07
  3  3.83898e-05
  4  1.43981
  5  25.4499
  6  3.58881e-07
  7  2.16714
  8  2.31252e-06
  9  10.3342
  10  0.000601462
  11  1.66753e-06
  12  0.000632223
  13  10.1623
  14  3.51178e-07
  15  1.49003
  16  0.000215064
  17  3.91007
  18  0.000123248
  19  23.7735
  20  3.35095e-05
  21  1.00644
  22  3.28875e-05
  23  0.213807
  24  0.144885
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  6.811e+00  3.910e+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.234e+00  1.449e-01  0.000e+00  1.000e+01 ( 1.000e+00)
498        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
499        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  8.417e-01  2.138e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.40
Ra Dec: 122.861 1.776
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 4.89e-08 +/- 2.80e-08
Energy Flux (Fixed Index): 2.90e-05 +/- 1.66e-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) = 7834.4273387
delta logL = 0.360496999307

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7834.38570798
delta logL = 0.402127718029

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8039       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5440       1.0000          .0000       5.0000    
     3 'Normalizat'    .86542       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2278       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=   7834.386     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      208 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.8027        3.5401        .41677E-02   -.54987E-04
   2  alpha         1.5439        .37192        .35599       -.43921E-04
   3  Normalizat    .86551        .18812        .78351E-01    .29085E-04
   4  Prefactor     1.2277        .12485        .34005E-01    .47104E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.80265
  alpha      = 1.54388
  Normalizat = 0.865507
  Prefactor  = 1.22772
 **********
 **   18 **HESSE 
 **********

 FCN=   7834.386     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.8027        4.1397        .12652E-03   -1.5226    
   2  alpha         1.5439        .49057        .13858E-01   -.39244    
   3  Normalizat    .86551        .20886        .34682E-03   -.97683    
   4  Prefactor     1.2277        .13904        .19685E-03   -.85482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03815e-12
Minuit parameter uncertainties:
  1  4.13993
  2  0.494333
  3  0.209052
  4  0.139082
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/303181': 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) = 7834.38570785
delta logL = 0.402127850102

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  5.803e+00  4.140e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  1.544e+00  4.943e-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.228e+00  1.391e-01  0.000e+00  1.000e+01 ( 1.000e+00)
498        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
499        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  8.655e-01  2.091e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.19
Ra Dec: 122.861 1.776
Photon Index (Free Index): 1.54 +/- 0.49
Photon Flux (Free Index): 2.72e-08 +/- 2.46e-08
Energy Flux (Free Index): 4.73e-05 +/- 4.29e-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/303181/cmap_HighResolution_295315201_295574401_4FGL_J0811.4+0146_daily_bin216.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.89e-08', energy_flux2='4.73e-05', photon_flux_error='2.80e-08', dlogl='4.02e-01', energy_flux='2.90e-05', photon_flux2='2.72e-08', job_status='DONE', time_completed='2021-08-29 12:15:44.321151', photon_index_error2='0.49', photon_index2='1.54', ts='13.40', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', energy_flux_error2='4.29e-05', EG='0.84', time_epoch_completed='1630264544.32', return_code='0', job_id='303181', GAL2='1.23', EG2='0.87', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='2.46e-08', ts2='14.19', photon_index='2.01' WHERE bin_id='216' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:15:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 303181: <4FGL_J0811.4+0146_daily_bin216> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin216 122.861 1.7756 295315201 295574401 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 :                                   663.17 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             321.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            905 sec.

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

