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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin540
RA = 122.861, Dec = 1.7756
tmin = 379296001, tmax = 379555201
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='307697', job_status='RUN', time_executed='2021-08-29 12:19:22.643421', time_epoch_executed='1630264762.64' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='540'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/307697

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/307697/ft1_4FGL_J0811.4+0146_daily_bin540.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/307697/ft2_4FGL_J0811.4+0146_daily_bin540.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/307697/ft1_4FGL_J0811.4+0146_daily_bin540.fits outfile=/scratch/kocevski/307697/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin540.fits ra=122.861 dec=1.7756 rad=12.0 tmin=379296001.0 tmax=379555201.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.78
user 4.39
sys 1.35

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/307697/ft1_filtered_4FGL_J0811.4+0146_daily_bin540.fits" evtable="EVENTS" scfile=/scratch/kocevski/307697/ft2_4FGL_J0811.4+0146_daily_bin540.fits sctable="SC_DATA" outfile=/scratch/kocevski/307697/ltcube_379296001_379555201_4FGL_J0811.4+0146_daily_bin540.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/307697/ft2_4FGL_J0811.4+0146_daily_bin540.fits
.....................!
real 13.52
user 11.78
sys 1.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/307697/ft1_filtered_4FGL_J0811.4+0146_daily_bin540.fits evtable="EVENTS" scfile=/scratch/kocevski/307697/ft2_4FGL_J0811.4+0146_daily_bin540.fits sctable="SC_DATA" expcube=/scratch/kocevski/307697/ltcube_379296001_379555201_4FGL_J0811.4+0146_daily_bin540.fits outfile=/scratch/kocevski/307697/expmap_379296001_379555201_4FGL_J0811.4+0146_daily_bin540.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/307697/ltcube_379296001_379555201_4FGL_J0811.4+0146_daily_bin540.fits
.....................!
real 192.75
user 184.48
sys 7.30

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/307697/ft1_filtered_4FGL_J0811.4+0146_daily_bin540.fits scfile=/scratch/kocevski/307697/ft2_4FGL_J0811.4+0146_daily_bin540.fits outfile=/scratch/kocevski/307697/cmap_379296001_379555201_4FGL_J0811.4+0146_daily_bin540.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.19
user 0.37
sys 1.25

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/307697/ft1_filtered_4FGL_J0811.4+0146_daily_bin540.fits scfile=/scratch/kocevski/307697/ft2_4FGL_J0811.4+0146_daily_bin540.fits outfile=/scratch/kocevski/307697/cmap_HighResolution_379296001_379555201_4FGL_J0811.4+0146_daily_bin540.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.00
user 0.38
sys 1.23

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.067       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    67.928       1.0000         .10000E-03   10000.    
     4 'norm      '    .22663       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.643       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   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 '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.9874       1.0000         .10000E-03   10000.    
    15 'norm      '    .95421       1.0000         .10000E-03   10000.    
    16 'norm      '    .10382E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.4546       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.2805       1.0000         .10000E-03   10000.    
    19 'norm      '    27.103       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.8401       1.0000         .10000E-03   10000.    
    21 'norm      '    .75492       1.0000         .10000E-03   10000.    
    22 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .60716       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2828       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=   5077.966     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2727 TOTAL
                     EDM=   .26E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.027        53.068        .73693E-05    .59112E-05
   2  Prefactor     .10000E-03    3.7436       -.16152E-07** at limit **
   3  Prefactor     67.936        42.907       -.62795E-06    .37427E-05
   4  norm          .22519        1.3435        .10403E-06   -.10721E-03
   5  Prefactor     .10000E-03    18.924       -.61142E-06** at limit **
   6  norm          .10000E-03    8.6447       -.33916E-08** at limit **
   7  Prefactor     .10000E-03    1.4398       -.63662E-08** at limit **
   8  norm          10.643        11.399        .52291E-07   -.37677E-05
   9  Prefactor     .10000E-03    3.5320       -.42437E-08** at limit **
  10  Prefactor     .10000E-03    49.553       -.91204E-06** at limit **
  11  Prefactor     .10000E-03    2.7227        .27330E-08** at limit **
  12  Prefactor     .10000E-03    19.615        .26318E-06** at limit **
  13  norm          .10000E-03    9.3397       -.98667E-08** at limit **
  14  norm          1.9874        2.3423        .69673E-07    .22738E-04
  15  norm          .95385        1.3278        .57660E-09   -.14481E-03
  16  norm          .10000E-03    35.687       -.69568E-06** at limit **
  17  norm          5.4543        4.7429        .22865E-06   -.16554E-04
  18  Prefactor     3.2677        67.935        .27456E-05   -.75625E-06
  19  norm          27.098        30.863        .61593E-06    .22373E-05
  20  Prefactor     1.8415        27.276        .13510E-04   -.12979E-04
  21  norm          .75492        .79888       -.45065E-08   -.20194E-03
  22  norm          .10000E-03    5.6291        .81822E-07** at limit **
  23  Normalizat    .60683        .22580       -.40031E-05   -.19144E-04
  24  Prefactor     1.2830        .15267        .94205E-06    .68141E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.0268
  Prefactor  = 0.0001
  Prefactor  = 67.9362
  norm       = 0.225195
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.6434
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.98742
  norm       = 0.95385
  norm       = 0.0001
  norm       = 5.45435
  Prefactor  = 3.26767
  norm       = 27.0982
  Prefactor  = 1.84154
  norm       = 0.754923
  norm       = 0.0001
  Normalizat = 0.606833
  Prefactor  = 1.28302
 **********
 **   18 **HESSE 
 **********

 FCN=   5077.966     FROM HESSE     STATUS=OK           403 CALLS     3130 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.027        53.106        .74311E-04   -1.4630    
   2  Prefactor     .10000E-03    3.7489        .13465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     67.936        42.695        .48700E-04   -1.4058    
   4  norm          .22519        2.5483        .15497E-02   -1.5613    
   5  Prefactor     .10000E-03    18.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    8.6493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.4572        .83492E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.643        11.397        .12281E-03   -1.5055    
   9  Prefactor     .10000E-03    3.5363        .13078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    49.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.7247        .11483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    9.3973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.9874        2.3206        .11320E-03   -1.5426    
  15  norm          .95385        1.2100        .90890E-03   -1.5513    
  16  norm          .10000E-03    36.593        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.4543        4.7371        .13907E-03   -1.5241    
  18  Prefactor     3.2677        68.016        .22356E-03   -1.5346    
  19  norm          27.098        30.834        .76951E-04   -1.4666    
  20  Prefactor     1.8415        27.421        .15376E-02   -1.5437    
  21  norm          .75492        .75721        .63100E-03   -1.5534    
  22  norm          .10000E-03    5.6573        .16509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .60683        .24351        .36239E-03   -1.0769    
  24  Prefactor     1.2830        .16750        .17869E-03   -.83813    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27984e-08
Minuit parameter uncertainties:
  1  53.1923
  2  4.86799e-06
  3  42.7141
  4  1.51483
  5  6.02749e-06
  6  2.71036e-06
  7  3.09507e-07
  8  11.3994
  9  8.46372e-07
  10  4.35076e-06
  11  5.3141e-07
  12  2.56885e-05
  13  8.10556e-07
  14  2.32067
  15  1.21001
  16  0.000208689
  17  4.7374
  18  29.8548
  19  30.8526
  20  14.2197
  21  0.757221
  22  3.86429e-06
  23  0.243944
  24  0.167569
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  5.454e+00  4.737e+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.283e+00  1.676e-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.068e-01  2.439e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.18
Ra Dec: 122.861 1.776
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 3.91e-08 +/- 3.40e-08
Energy Flux (Fixed Index): 2.32e-05 +/- 2.01e-05

TS (Fixed Index): 2.18
Ra Dec: 122.861 1.776
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.01e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/307697/likelihoodResults_379296001_379555201_4FGL_J0811.4+0146_daily_bin540.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) = 5077.8878295
delta logL = 0.0777866398284

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5077.88163792
delta logL = 0.0839782167986

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0842       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3399       1.0000          .0000       5.0000    
     3 'Normalizat'    .58478       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2908       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=   5077.882     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      249 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0840        4.8505        .12330E-03    .59563E-03
   2  alpha         2.3400        .85357        .15397E-01    .42026E-04
   3  Normalizat    .58476        .23939        .36880E-03   -.40475E-04
   4  Prefactor     1.2908        .16221        .17822E-03   -.13214E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.08404
  alpha      = 2.33999
  Normalizat = 0.584757
  Prefactor  = 1.29077
 **********
 **   18 **HESSE 
 **********

 FCN=   5077.882     FROM HESSE     STATUS=OK            25 CALLS      274 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0840        4.6697        .49320E-05   -1.5257    
   2  alpha         2.3400        .82093        .61588E-03   -.64048E-01
   3  Normalizat    .58476        .23889        .14752E-04   -1.0864    
   4  Prefactor     1.2908        .16206        .35644E-04   -.83582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81254e-10
Minuit parameter uncertainties:
  1  4.67007
  2  0.836517
  3  0.239307
  4  0.162125
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/307697': 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) = 5077.88163791
delta logL = 0.0839782323019

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  5.084e+00  4.670e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.340e+00  8.365e-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.291e+00  1.621e-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:  5.848e-01  2.393e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.36
Ra Dec: 122.861 1.776
Photon Index (Free Index): 2.34 +/- 0.84
Photon Flux (Free Index): 5.64e-08 +/- 6.16e-08
Energy Flux (Free Index): 2.01e-05 +/- 1.71e-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/307697/cmap_HighResolution_379296001_379555201_4FGL_J0811.4+0146_daily_bin540.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.01e-05', comment='SUCCESS', photon_flux='3.91e-08', energy_flux2='2.01e-05', photon_flux_error='3.40e-08', dlogl='8.40e-02', energy_flux='2.32e-05', photon_flux2='5.64e-08', job_status='DONE', time_completed='2021-08-29 12:29:28.928866', photon_index_error2='0.84', photon_index2='2.34', ts='2.18', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='1.71e-05', EG='0.61', time_epoch_completed='1630265368.93', return_code='0', job_id='307697', GAL2='1.29', EG2='0.58', return_code2='0', energy_flux_error='2.01e-05', photon_flux_error2='6.16e-08', ts2='2.36', photon_index='2.01' WHERE bin_id='540' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:29:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 307697: <4FGL_J0811.4+0146_daily_bin540> in cluster <slac> Done

Job <4FGL_J0811.4+0146_daily_bin540> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 29 12:15:22 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:15:24 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:15:24 2021
Terminated at Sun Aug 29 12:29:29 2021
Results reported at Sun Aug 29 12:29:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin540 122.861 1.7756 379296001 379555201 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 :                                   615.60 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            847 sec.

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

