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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin358
RA = 122.861, Dec = 1.7756
tmin = 332121601, tmax = 332380801
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='304697', job_status='RUN', time_executed='2021-08-29 12:09:04.664053', time_epoch_executed='1630264144.66' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='358'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/304697

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/304697/ft1_4FGL_J0811.4+0146_daily_bin358.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/304697/ft2_4FGL_J0811.4+0146_daily_bin358.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/304697/ft1_4FGL_J0811.4+0146_daily_bin358.fits outfile=/scratch/kocevski/304697/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin358.fits ra=122.861 dec=1.7756 rad=12.0 tmin=332121601.0 tmax=332380801.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 4.49
user 3.08
sys 1.34

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/304697/ft2_4FGL_J0811.4+0146_daily_bin358.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/304697/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin358.fits evtable="EVENTS" outfile="/scratch/kocevski/304697/ft1_filtered_4FGL_J0811.4+0146_daily_bin358.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.61
user 0.31
sys 1.21

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/304697/ft1_filtered_4FGL_J0811.4+0146_daily_bin358.fits" evtable="EVENTS" scfile=/scratch/kocevski/304697/ft2_4FGL_J0811.4+0146_daily_bin358.fits sctable="SC_DATA" outfile=/scratch/kocevski/304697/ltcube_332121601_332380801_4FGL_J0811.4+0146_daily_bin358.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/304697/ft2_4FGL_J0811.4+0146_daily_bin358.fits
.....................!
real 13.08
user 11.36
sys 1.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/304697/ft1_filtered_4FGL_J0811.4+0146_daily_bin358.fits evtable="EVENTS" scfile=/scratch/kocevski/304697/ft2_4FGL_J0811.4+0146_daily_bin358.fits sctable="SC_DATA" expcube=/scratch/kocevski/304697/ltcube_332121601_332380801_4FGL_J0811.4+0146_daily_bin358.fits outfile=/scratch/kocevski/304697/expmap_332121601_332380801_4FGL_J0811.4+0146_daily_bin358.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/304697/ltcube_332121601_332380801_4FGL_J0811.4+0146_daily_bin358.fits
.....................!
real 192.11
user 185.84
sys 5.96

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/304697/ft1_filtered_4FGL_J0811.4+0146_daily_bin358.fits scfile=/scratch/kocevski/304697/ft2_4FGL_J0811.4+0146_daily_bin358.fits outfile=/scratch/kocevski/304697/cmap_332121601_332380801_4FGL_J0811.4+0146_daily_bin358.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.66
user 0.35
sys 1.29

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/304697/ft1_filtered_4FGL_J0811.4+0146_daily_bin358.fits scfile=/scratch/kocevski/304697/ft2_4FGL_J0811.4+0146_daily_bin358.fits outfile=/scratch/kocevski/304697/cmap_HighResolution_332121601_332380801_4FGL_J0811.4+0146_daily_bin358.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/304697/ft1_filtered_4FGL_J0811.4+0146_daily_bin358.fits evtable="EVENTS" scfile=/scratch/kocevski/304697/ft2_4FGL_J0811.4+0146_daily_bin358.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/304697/Model_4FGL_J0811.4+0146_daily_bin358.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/304697/ft1_filtered_4FGL_J0811.4+0146_daily_bin358.fits.....................!
real 79.89
user 76.30
sys 2.70

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19609       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.2857       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14531E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.2597       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10325E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    28.429       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .30585E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    42.691       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    93.805       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.492       1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.468       1.0000         .10000E-03   10000.    
    13 'norm      '    15.881       1.0000         .10000E-03   10000.    
    14 'norm      '    6.5740       1.0000         .10000E-03   10000.    
    15 'norm      '    1.2166       1.0000         .10000E-03   10000.    
    16 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    12.568       1.0000         .10000E-03   10000.    
    18 'Prefactor '    33.901       1.0000         .10000E-03   10000.    
    19 'norm      '    11.218       1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.741       1.0000         .10000E-03   10000.    
    21 'norm      '    .35404       1.0000         .10000E-03   10000.    
    22 'norm      '    7.1294       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .63542       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0800       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=   6281.052     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     3186 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .52308        45.382        .24202E-06   -.74488E-05
   2  Prefactor     3.2836        6.9199        .28472E-06   -.86405E-05
   3  Prefactor     .10000E-03    88.391       -.23770E-06** at limit **
   4  norm          7.2584        2.7050        .42355E-06   -.17428E-03
   5  Prefactor     .10000E-03    44.674       -.57699E-07** at limit **
   6  norm          28.429        18.607       -.19506E-06   -.55236E-04
   7  Prefactor     .10004E-03    2.6190        .57564E-06** at limit **
   8  norm          42.699        21.327       -.39274E-06   -.67130E-04
   9  Prefactor     .10000E-03    5.3274        .13721E-06** at limit **
  10  Prefactor     93.966        218.26        .82256E-05    .49216E-04
  11  Prefactor     14.491        11.042       -.14201E-07   -.22927E-04
  12  Prefactor     26.470        26.653        .28311E-06   -.57348E-05
  13  norm          15.881        12.491        .32682E-06    .22694E-04
  14  norm          6.5741        3.4239        .35485E-06   -.53275E-04
  15  norm          1.2165        .94832        .24681E-07    .46949E-04
  16  norm          .10000E-03    10.619        .97532E-07** at limit **
  17  norm          12.568        5.3722        .21062E-06   -.42913E-04
  18  Prefactor     33.900        31.390        .13141E-05    .72931E-04
  19  norm          11.218        19.130        .23814E-07   -.13053E-04
  20  Prefactor     29.742        19.812        .33441E-06   -.44469E-04
  21  norm          .35403        .63106        .41526E-07   -.53992E-04
  22  norm          7.1295        10.405        .35223E-05   -.97263E-04
  23  Normalizat    .63555        .23613       -.45711E-05   -.60719E-04
  24  Prefactor     1.0800        .14281        .25469E-06   -.16924E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.523077
  Prefactor  = 3.28358
  Prefactor  = 0.0001
  norm       = 7.25842
  Prefactor  = 0.0001
  norm       = 28.4294
  Prefactor  = 0.00010004
  norm       = 42.6987
  Prefactor  = 0.0001
  Prefactor  = 93.966
  Prefactor  = 14.4912
  Prefactor  = 26.4702
  norm       = 15.8811
  norm       = 6.57412
  norm       = 1.21653
  norm       = 0.0001
  norm       = 12.5678
  Prefactor  = 33.9004
  norm       = 11.2179
  Prefactor  = 29.7418
  norm       = 0.354028
  norm       = 7.12949
  Normalizat = 0.635555
  Prefactor  = 1.07996
 **********
 **   18 **HESSE 
 **********

 FCN=   6281.052     FROM HESSE     STATUS=OK           411 CALLS     3597 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .52308        45.078        .16318       -1.5563    
   2  Prefactor     3.2836        6.9091        .22337E-03   -1.5346    
   3  Prefactor     .10000E-03    89.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.2584        2.7107        .37189E-03   -1.5169    
   5  Prefactor     .10000E-03    45.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          28.429        18.666        .75138E-04   -1.4641    
   7  Prefactor     .10004E-03    21.760        .23805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          42.699        21.276        .61355E-04   -1.4400    
   9  Prefactor     .10000E-03    5.3380        .17861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     93.966        223.66        .20748E-03   -1.3766    
  11  Prefactor     14.491        11.028        .10521E-03   -1.4946    
  12  Prefactor     26.470        26.653        .77866E-04   -1.4679    
  13  norm          15.881        12.483        .10050E-03   -1.4911    
  14  norm          6.5741        3.4215        .49567E-03   -1.5195    
  15  norm          1.2165        .94602        .65296E-04   -1.5487    
  16  norm          .10000E-03    10.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          12.568        5.3708        .56496E-03   -1.4999    
  18  Prefactor     33.900        31.503        .68824E-04   -1.4543    
  19  norm          11.218        19.149        .11962E-03   -1.5038    
  20  Prefactor     29.742        19.885        .73466E-04   -1.4617    
  21  norm          .35403        .63024        .42638E-04   -1.5589    
  22  norm          7.1295        10.464        .75117E-03   -1.5174    
  23  Normalizat    .63555        .25609        .38911E-03   -1.0649    
  24  Prefactor     1.0800        .15914        .19540E-03   -.90110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19326e-09
Minuit parameter uncertainties:
  1  9.7183
  2  6.91078
  3  0.000163557
  4  2.71071
  5  3.78232e-05
  6  18.6695
  7  0.00185982
  8  21.2793
  9  5.30857e-06
  10  225.716
  11  11.03
  12  26.665
  13  12.4849
  14  3.42157
  15  0.946027
  16  3.46897e-06
  17  5.37103
  18  31.5182
  19  19.1594
  20  19.889
  21  0.630249
  22  10.4665
  23  0.256566
  24  0.159212
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  1.257e+01  5.371e+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.080e+00  1.592e-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.356e-01  2.566e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.46
Ra Dec: 122.861 1.776
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 9.02e-08 +/- 3.85e-08
Energy Flux (Fixed Index): 5.34e-05 +/- 2.28e-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) = 6280.96525147
delta logL = 0.0863865172541

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6280.96356485
delta logL = 0.0880731375219

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.568       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8454       1.0000          .0000       5.0000    
     3 'Normalizat'    .65062       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0754       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=   6280.964     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      197 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.549        7.0339        .28248E-02    .38576E-03
   2  alpha         1.8451        .43411        .27109        .47307E-06
   3  Normalizat    .65119        .21708        .86890E-01    .31711E-04
   4  Prefactor     1.0752        .13791        .38606E-01   -.26076E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 12.5494
  alpha      = 1.8451
  Normalizat = 0.651188
  Prefactor  = 1.07521
 **********
 **   18 **HESSE 
 **********

 FCN=   6280.964     FROM HESSE     STATUS=OK            33 CALLS      230 TOTAL
                     EDM=   .12E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.549        5.5825        .56496E-03   -1.4999    
   2  alpha         1.8451        .38188        .10728E-01   -.26505    
   3  Normalizat    .65119        .23766        .38491E-03   -1.0585    
   4  Prefactor     1.0752        .15173        .19584E-03   -.90263    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16399e-14
Minuit parameter uncertainties:
  1  5.58276
  2  0.383497
  3  0.238036
  4  0.151786
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/304697': 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) = 6280.9635569
delta logL = 0.0880810964445

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  1.255e+01  5.583e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  1.845e+00  3.835e-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.075e+00  1.518e-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.512e-01  2.380e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.58
Ra Dec: 122.861 1.776
Photon Index (Free Index): 1.85 +/- 0.38
Photon Flux (Free Index): 7.55e-08 +/- 4.73e-08
Energy Flux (Free Index): 6.20e-05 +/- 3.70e-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/304697/cmap_HighResolution_332121601_332380801_4FGL_J0811.4+0146_daily_bin358.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.02e-08', energy_flux2='6.20e-05', photon_flux_error='3.85e-08', dlogl='8.81e-02', energy_flux='5.34e-05', photon_flux2='7.55e-08', job_status='DONE', time_completed='2021-08-29 12:19:24.139738', photon_index_error2='0.38', photon_index2='1.85', ts='20.46', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='3.70e-05', EG='0.64', time_epoch_completed='1630264764.14', return_code='0', job_id='304697', GAL2='1.08', EG2='0.65', return_code2='0', energy_flux_error='2.28e-05', photon_flux_error2='4.73e-08', ts2='20.58', photon_index='2.01' WHERE bin_id='358' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:19:24 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin358 122.861 1.7756 332121601 332380801 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 :                                   636.58 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            834 sec.

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

