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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin994
RA = 122.861, Dec = 1.7756
tmin = 496972801, tmax = 497232001
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='309736', job_status='RUN', time_executed='2021-08-29 12:24:53.968405', time_epoch_executed='1630265093.97' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='994'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/309736

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/309736/ft1_4FGL_J0811.4+0146_daily_bin994.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/309736/ft2_4FGL_J0811.4+0146_daily_bin994.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/309736/ft1_4FGL_J0811.4+0146_daily_bin994.fits outfile=/scratch/kocevski/309736/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin994.fits ra=122.861 dec=1.7756 rad=12.0 tmin=496972801.0 tmax=497232001.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.11
user 4.87
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/309736/ft2_4FGL_J0811.4+0146_daily_bin994.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/309736/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin994.fits evtable="EVENTS" outfile="/scratch/kocevski/309736/ft1_filtered_4FGL_J0811.4+0146_daily_bin994.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 0.55
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/309736/ft1_filtered_4FGL_J0811.4+0146_daily_bin994.fits" evtable="EVENTS" scfile=/scratch/kocevski/309736/ft2_4FGL_J0811.4+0146_daily_bin994.fits sctable="SC_DATA" outfile=/scratch/kocevski/309736/ltcube_496972801_497232001_4FGL_J0811.4+0146_daily_bin994.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/309736/ft2_4FGL_J0811.4+0146_daily_bin994.fits
.....................!
real 11.85
user 11.49
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/309736/ft1_filtered_4FGL_J0811.4+0146_daily_bin994.fits evtable="EVENTS" scfile=/scratch/kocevski/309736/ft2_4FGL_J0811.4+0146_daily_bin994.fits sctable="SC_DATA" expcube=/scratch/kocevski/309736/ltcube_496972801_497232001_4FGL_J0811.4+0146_daily_bin994.fits outfile=/scratch/kocevski/309736/expmap_496972801_497232001_4FGL_J0811.4+0146_daily_bin994.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/309736/ltcube_496972801_497232001_4FGL_J0811.4+0146_daily_bin994.fits
.....................!
real 190.67
user 185.92
sys 4.42

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/309736/ft1_filtered_4FGL_J0811.4+0146_daily_bin994.fits scfile=/scratch/kocevski/309736/ft2_4FGL_J0811.4+0146_daily_bin994.fits outfile=/scratch/kocevski/309736/cmap_496972801_497232001_4FGL_J0811.4+0146_daily_bin994.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 0.63
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/309736/ft1_filtered_4FGL_J0811.4+0146_daily_bin994.fits scfile=/scratch/kocevski/309736/ft2_4FGL_J0811.4+0146_daily_bin994.fits outfile=/scratch/kocevski/309736/cmap_HighResolution_496972801_497232001_4FGL_J0811.4+0146_daily_bin994.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 0.54
user 0.36
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.295       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.822       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.8835       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .23067E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .84075       1.0000         .10000E-03   10000.    
     8 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    47.585       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.334       1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.804       1.0000         .10000E-03   10000.    
    13 'norm      '    2.5295       1.0000         .10000E-03   10000.    
    14 'norm      '    .36511       1.0000         .10000E-03   10000.    
    15 'norm      '    .46717       1.0000         .10000E-03   10000.    
    16 'norm      '    46.034       1.0000         .10000E-03   10000.    
    17 'norm      '    4.0350       1.0000         .10000E-03   10000.    
    18 'Prefactor '    48.953       1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.441       1.0000         .10000E-03   10000.    
    21 'norm      '    .59576       1.0000         .10000E-03   10000.    
    22 'norm      '    13.298       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2570       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84349       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=   6385.369     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2795 TOTAL
                     EDM=   .97E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.292        56.875        .94750E-07    .82048E-06
   2  Prefactor     12.821        10.978        .21575E-07    .17348E-05
   3  Prefactor     .10000E-03    17.745       -.36839E-07** at limit **
   4  norm          4.8834        2.2300        .77117E-08    .11621E-04
   5  Prefactor     .10000E-03    103.55       -.24782E-06** at limit **
   6  norm          .10000E-03    6.1447       -.13319E-07** at limit **
   7  Prefactor     .84018        5.0231        .67835E-06   -.29134E-03
   8  norm          .10000E-03    41.421        .14864E-06** at limit **
   9  Prefactor     .10000E-03    13.416        .54656E-07** at limit **
  10  Prefactor     47.217        153.92        .15749E-04    .12056E-04
  11  Prefactor     10.335        8.7074        .13761E-06    .22913E-04
  12  Prefactor     28.795        37.280        .36718E-06    .66086E-05
  13  norm          2.5297        7.6327        .49539E-06    .11912E-04
  14  norm          .36494        3.1266        .14882E-06   -.11264E-04
  15  norm          .46698        .93379        .45478E-07    .20451E-04
  16  norm          46.046        33.118       -.10490E-06    .17554E-05
  17  norm          4.0352        3.4827        .56062E-07    .22316E-04
  18  Prefactor     48.970        48.401       -.31637E-06   -.26765E-05
  19  norm          .10000E-03    8.6496       -.60720E-08** at limit **
  20  Prefactor     28.443        21.202        .38351E-07    .36853E-05
  21  norm          .59576        1.2016       -.27384E-07   -.30958E-04
  22  norm          13.298        11.355        .29535E-07    .12825E-04
  23  Normalizat    1.2567        .23323        .50083E-06    .12184E-04
  24  Prefactor     .84365        .13485       -.20545E-06    .47148E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.2923
  Prefactor  = 12.8206
  Prefactor  = 0.0001
  norm       = 4.88336
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.840177
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.2172
  Prefactor  = 10.3348
  Prefactor  = 28.7948
  norm       = 2.52967
  norm       = 0.364941
  norm       = 0.466984
  norm       = 46.0458
  norm       = 4.03519
  Prefactor  = 48.9697
  norm       = 0.0001
  Prefactor  = 28.4427
  norm       = 0.59576
  norm       = 13.298
  Normalizat = 1.25673
  Prefactor  = 0.843654
 **********
 **   18 **HESSE 
 **********

 FCN=   6385.369     FROM HESSE     STATUS=OK           411 CALLS     3206 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.292        57.000        .54435E-04   -1.4233    
   2  Prefactor     12.821        10.999        .11186E-03   -1.4992    
   3  Prefactor     .10000E-03    17.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.8834        2.2284        .76040E-04   -1.5266    
   5  Prefactor     .10000E-03    105.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.1519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .84018        8.9583        .30892E-02   -1.5525    
   8  norm          .10000E-03    42.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     47.217        157.36        .29064E-03   -1.4333    
  11  Prefactor     10.335        8.6312        .62321E-03   -1.5065    
  12  Prefactor     28.795        37.319        .74650E-04   -1.4634    
  13  norm          2.5297        7.7200        .12841E-02   -1.5390    
  14  norm          .36494        3.0760        .25834E-03   -1.5587    
  15  norm          .46698        .85166        .10168E-02   -1.5571    
  16  norm          46.046        33.089        .59095E-04   -1.4350    
  17  norm          4.0352        3.4762        .66908E-03   -1.5306    
  18  Prefactor     48.970        48.573        .57314E-04   -1.4307    
  19  norm          .10000E-03    8.6537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     28.443        21.279        .75123E-04   -1.4641    
  21  norm          .59576        1.1730        .11528E-03   -1.5554    
  22  norm          13.298        11.336        .10984E-03   -1.4978    
  23  Normalizat    1.2567        .27156        .30120E-03   -.84868    
  24  Prefactor     .84365        .15697        .21905E-03   -.98139    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34823e-10
Minuit parameter uncertainties:
  1  57.0574
  2  11.0011
  3  5.56031e-06
  4  2.22848
  5  3.83781e-05
  6  6.31755e-07
  7  5.48764
  8  9.92704e-05
  9  3.6408e-05
  10  158.773
  11  8.6322
  12  37.3493
  13  7.723
  14  2.11887
  15  0.851683
  16  33.102
  17  3.47642
  18  48.6121
  19  8.0311e-07
  20  21.2847
  21  1.17306
  22  11.3378
  23  0.271866
  24  0.157049
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  4.035e+00  3.476e+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.437e-01  1.570e-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.257e+00  2.719e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.80
Ra Dec: 122.861 1.776
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 2.89e-08 +/- 2.49e-08
Energy Flux (Fixed Index): 1.72e-05 +/- 1.48e-05

TS (Fixed Index): 2.80
Ra Dec: 122.861 1.776
Photon Flux Upper Limit: 9.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.46e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/309736/likelihoodResults_496972801_497232001_4FGL_J0811.4+0146_daily_bin994.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) = 6385.34278013
delta logL = 0.0259564822009

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6385.34154972
delta logL = 0.0271868939244

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8982       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1653       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2516       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84522       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=   6385.342     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      229 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8963        108.17        .51089E-02    .22075E-03
   2  alpha         2.1648        2.7188        .41627        .31638E-04
   3  Normalizat    1.2513        .12512        .68201E-01    .14886E-03
   4  Prefactor     .84541        .59023E-01    .44303E-01    .69155E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.89625
  alpha      = 2.16477
  Normalizat = 1.25132
  Prefactor  = 0.845406
 **********
 **   18 **HESSE 
 **********

 FCN=   6385.342     FROM HESSE     STATUS=OK            33 CALLS      262 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8963        3.4774        .12904E-03   -1.5313    
   2  alpha         2.1648        .69240        .16605E-01   -.13450    
   3  Normalizat    1.2513        .24099        .30174E-03   -.85031    
   4  Prefactor     .84541        .14684        .21884E-03   -.98076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17712e-10
Minuit parameter uncertainties:
  1  3.4776
  2  0.701743
  3  0.241202
  4  0.146912
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/309736': 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) = 6385.34154821
delta logL = 0.0271884057029

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  3.896e+00  3.478e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.165e+00  7.017e-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.454e-01  1.469e-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.251e+00  2.412e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.85
Ra Dec: 122.861 1.776
Photon Index (Free Index): 2.16 +/- 0.70
Photon Flux (Free Index): 3.41e-08 +/- 3.56e-08
Energy Flux (Free Index): 1.54e-05 +/- 1.48e-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/309736/cmap_HighResolution_496972801_497232001_4FGL_J0811.4+0146_daily_bin994.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.46e-05', comment='SUCCESS', photon_flux='2.89e-08', energy_flux2='1.54e-05', photon_flux_error='2.49e-08', dlogl='2.72e-02', energy_flux='1.72e-05', photon_flux2='3.41e-08', job_status='DONE', time_completed='2021-08-29 12:35:45.458790', photon_index_error2='0.70', photon_index2='2.16', ts='2.80', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='9.21e-08', energy_flux_error2='1.48e-05', EG='1.26', time_epoch_completed='1630265745.46', return_code='0', job_id='309736', GAL2='0.85', EG2='1.25', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='3.56e-08', ts2='2.85', photon_index='2.01' WHERE bin_id='994' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:35:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 309736: <4FGL_J0811.4+0146_daily_bin994> in cluster <slac> Done

Job <4FGL_J0811.4+0146_daily_bin994> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 12:20:49 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:20:51 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:20:51 2021
Terminated at Sun Aug 29 12:35:45 2021
Results reported at Sun Aug 29 12:35:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin994 122.861 1.7756 496972801 497232001 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 :                                   649.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             240.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            896 sec.

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

