/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 178 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7679
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0811.4+0146_daily_bin224
RA = 122.861, Dec = 1.7756
tmin = 297388801, tmax = 297648001
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='303193', job_status='RUN', time_executed='2021-08-29 12:04:19.055783', time_epoch_executed='1630263859.06' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='224'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/303193

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/303193/ft1_4FGL_J0811.4+0146_daily_bin224.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/303193/ft2_4FGL_J0811.4+0146_daily_bin224.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/303193/ft1_4FGL_J0811.4+0146_daily_bin224.fits outfile=/scratch/kocevski/303193/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin224.fits ra=122.861 dec=1.7756 rad=12.0 tmin=297388801.0 tmax=297648001.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.97
user 3.48
sys 1.44

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/303193/ft1_filtered_4FGL_J0811.4+0146_daily_bin224.fits evtable="EVENTS" scfile=/scratch/kocevski/303193/ft2_4FGL_J0811.4+0146_daily_bin224.fits sctable="SC_DATA" expcube=/scratch/kocevski/303193/ltcube_297388801_297648001_4FGL_J0811.4+0146_daily_bin224.fits outfile=/scratch/kocevski/303193/expmap_297388801_297648001_4FGL_J0811.4+0146_daily_bin224.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/303193/ltcube_297388801_297648001_4FGL_J0811.4+0146_daily_bin224.fits
.....................!
real 192.41
user 185.84
sys 6.10

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/303193/ft1_filtered_4FGL_J0811.4+0146_daily_bin224.fits scfile=/scratch/kocevski/303193/ft2_4FGL_J0811.4+0146_daily_bin224.fits outfile=/scratch/kocevski/303193/cmap_297388801_297648001_4FGL_J0811.4+0146_daily_bin224.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.74
user 0.36
sys 1.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/303193/ft1_filtered_4FGL_J0811.4+0146_daily_bin224.fits scfile=/scratch/kocevski/303193/ft2_4FGL_J0811.4+0146_daily_bin224.fits outfile=/scratch/kocevski/303193/cmap_HighResolution_297388801_297648001_4FGL_J0811.4+0146_daily_bin224.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.75
user 0.37
sys 1.37

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    82.802       1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.959       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .79974       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.427       1.0000         .10000E-03   10000.    
     6 'norm      '    33.313       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.0959       1.0000         .10000E-03   10000.    
     8 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    41.852       1.0000         .10000E-03   10000.    
    10 'Prefactor '    82.708       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    50.841       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .49553       1.0000         .10000E-03   10000.    
    15 'norm      '    1.7808       1.0000         .10000E-03   10000.    
    16 'norm      '    .10309E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.0662       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.1228       1.0000         .10000E-03   10000.    
    19 'norm      '    11.458       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.5950       1.0000         .10000E-03   10000.    
    22 'norm      '    5.0648       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2350       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84147       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=   7437.180     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     2705 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     82.815        59.606        .13131E-04   -.20675E-03
   2  Prefactor     26.963        13.608       -.88378E-07    .18392E-04
   3  Prefactor     .10000E-03    10.697        .27454E-06** at limit **
   4  norm          .79839        1.7339       -.10404E-05   -.16806E-02
   5  Prefactor     14.428        14.976        .17634E-06    .15476E-04
   6  norm          33.317        22.788        .34807E-05   -.15904E-03
   7  Prefactor     4.0948        5.1803       -.15595E-05   -.34485E-03
   8  norm          .10000E-03    33.719        .44217E-06** at limit **
   9  Prefactor     41.853        18.356        .19628E-05   -.79450E-04
  10  Prefactor     82.695        110.81       -.14144E-04    .72032E-04
  11  Prefactor     .10000E-03    3.3403        .28874E-08** at limit **
  12  Prefactor     50.837        38.734       -.41798E-05    .15692E-03
  13  norm          .10000E-03    2.7857        .41136E-07** at limit **
  14  norm          .49664        1.4101       -.74298E-06   -.16705E-02
  15  norm          1.7808        1.2248        .69739E-08   -.26541E-03
  16  norm          .10000E-03    9.9845        .42619E-06** at limit **
  17  norm          8.0654        4.7730       -.12436E-06    .52930E-04
  18  Prefactor     5.1166        35.178       -.15283E-04    .66610E-04
  19  norm          11.458        13.212        .40063E-07    .12217E-04
  20  Prefactor     .10000E-03    6.6211        .22839E-06** at limit **
  21  norm          2.5947        1.1463       -.12113E-07    .45635E-04
  22  norm          5.0644        5.2967       -.67445E-08   -.50433E-04
  23  Normalizat    1.2354        .20726        .33587E-05   -.10644E-04
  24  Prefactor     .84125        .12953       -.17212E-05    .38415E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 82.8149
  Prefactor  = 26.9632
  Prefactor  = 0.0001
  norm       = 0.798394
  Prefactor  = 14.428
  norm       = 33.3168
  Prefactor  = 4.09479
  norm       = 0.000100001
  Prefactor  = 41.853
  Prefactor  = 82.695
  Prefactor  = 0.0001
  Prefactor  = 50.8372
  norm       = 0.0001
  norm       = 0.496644
  norm       = 1.78083
  norm       = 0.0001
  norm       = 8.06544
  Prefactor  = 5.11658
  norm       = 11.4578
  Prefactor  = 0.0001
  norm       = 2.59471
  norm       = 5.06436
  Normalizat = 1.23535
  Prefactor  = 0.841253
 **********
 **   18 **HESSE 
 **********

 FCN=   7437.180     FROM HESSE     STATUS=OK           401 CALLS     3106 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     82.815        59.023        .22071E-03   -1.3885    
   2  Prefactor     26.963        13.617        .77155E-04   -1.4669    
   3  Prefactor     .10000E-03    10.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .79839        1.7544        .15979E-03   -1.5529    
   5  Prefactor     14.428        14.979        .10545E-03   -1.4948    
   6  norm          33.317        22.800        .69427E-04   -1.4553    
   7  Prefactor     4.0948        5.2107        .19920E-03   -1.5303    
   8  norm          .10000E-03    33.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     41.853        18.307        .61965E-04   -1.4413    
  10  Prefactor     82.695        110.24        .22083E-03   -1.3887    
  11  Prefactor     .10000E-03    3.3516        .15390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     50.837        38.730        .56244E-04   -1.4281    
  13  norm          .10000E-03    2.7884        .14056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .49664        1.3707        .16707E-02   -1.5567    
  15  norm          1.7808        1.2071        .74039E-04   -1.5441    
  16  norm          .10000E-03    9.9998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.0654        4.7723        .13765E-03   -1.5140    
  18  Prefactor     5.1166        35.169        .17763E-03   -1.5256    
  19  norm          11.458        13.211        .11835E-03   -1.5031    
  20  Prefactor     .10000E-03    6.6359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.5947        1.1471        .58485E-04   -1.5386    
  22  norm          5.0644        5.2951        .17866E-03   -1.5258    
  23  Normalizat    1.2354        .24082        .30065E-03   -.85517    
  24  Prefactor     .84125        .15048        .22275E-03   -.98225    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17768e-09
Minuit parameter uncertainties:
  1  59.0652
  2  13.6189
  3  1.5537e-05
  4  1.75452
  5  14.9826
  6  22.8056
  7  5.21131
  8  0.000281219
  9  18.3095
  10  110.51
  11  2.79441e-06
  12  38.7491
  13  1.00701e-06
  14  1.37079
  15  1.20715
  16  6.14182e-05
  17  4.77252
  18  26.851
  19  13.2141
  20  4.2497e-06
  21  1.14707
  22  5.29563
  23  0.241042
  24  0.150557
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  8.065e+00  4.773e+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.413e-01  1.506e-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.235e+00  2.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.24
Ra Dec: 122.861 1.776
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 5.79e-08 +/- 3.42e-08
Energy Flux (Fixed Index): 3.43e-05 +/- 2.03e-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) = 7436.06557807
delta logL = 1.11402949131

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7436.04123237
delta logL = 1.13837518932

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3944       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8235       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1336       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87556       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=   7436.041     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      239 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3983        40.869        .39681E-02    .27294E-03
   2  alpha         2.8227        3.8372        .24560        .83023E-04
   3  Normalizat    1.1337        .10901        .70378E-01    .18188E-04
   4  Prefactor     .87555        .51927E-01    .44693E-01    .13077E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.39834
  alpha      = 2.8227
  Normalizat = 1.13366
  Prefactor  = 0.875547
 **********
 **   18 **HESSE 
 **********

 FCN=   7436.041     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .99E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3983        4.6962        .90092E-04   -1.5202    
   2  alpha         2.8227        .57302        .94592E-02    .12944    
   3  Normalizat    1.1337        .23790        .31141E-03   -.88678    
   4  Prefactor     .87555        .14349        .21862E-03   -.97001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.94181e-12
Minuit parameter uncertainties:
  1  4.69644
  2  0.578246
  3  0.238125
  4  0.14355
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/303193': 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) = 7436.04123123
delta logL = 1.13837633512

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  6.398e+00  4.696e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.823e+00  5.782e-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:  8.755e-01  1.436e-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.134e+00  2.381e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.69
Ra Dec: 122.861 1.776
Photon Index (Free Index): 2.82 +/- 0.58
Photon Flux (Free Index): 1.48e-07 +/- 8.36e-08
Energy Flux (Free Index): 3.45e-05 +/- 1.53e-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/303193/cmap_HighResolution_297388801_297648001_4FGL_J0811.4+0146_daily_bin224.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.79e-08', energy_flux2='3.45e-05', photon_flux_error='3.42e-08', dlogl='1.14e+00', energy_flux='3.43e-05', photon_flux2='1.48e-07', job_status='DONE', time_completed='2021-08-29 12:15:08.061431', photon_index_error2='0.58', photon_index2='2.82', ts='6.24', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='1.53e-05', EG='1.24', time_epoch_completed='1630264508.06', return_code='0', job_id='303193', GAL2='0.88', EG2='1.13', return_code2='0', energy_flux_error='2.03e-05', photon_flux_error2='8.36e-08', ts2='8.69', photon_index='2.01' WHERE bin_id='224' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:15:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 303193: <4FGL_J0811.4+0146_daily_bin224> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin224 122.861 1.7756 297388801 297648001 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 :                                   667.31 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             275.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            868 sec.

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

