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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin415
RA = 122.861, Dec = 1.7756
tmin = 346896001, tmax = 347155201
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='306232', job_status='RUN', time_executed='2021-08-29 12:14:06.221811', time_epoch_executed='1630264446.22' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='415'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/306232

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/306232/ft1_4FGL_J0811.4+0146_daily_bin415.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/306232/ft2_4FGL_J0811.4+0146_daily_bin415.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/306232/ft1_4FGL_J0811.4+0146_daily_bin415.fits outfile=/scratch/kocevski/306232/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin415.fits ra=122.861 dec=1.7756 rad=12.0 tmin=346896001.0 tmax=347155201.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.20
user 3.24
sys 1.87

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/306232/ft1_filtered_4FGL_J0811.4+0146_daily_bin415.fits" evtable="EVENTS" scfile=/scratch/kocevski/306232/ft2_4FGL_J0811.4+0146_daily_bin415.fits sctable="SC_DATA" outfile=/scratch/kocevski/306232/ltcube_346896001_347155201_4FGL_J0811.4+0146_daily_bin415.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/306232/ft2_4FGL_J0811.4+0146_daily_bin415.fits
.....................!
real 13.66
user 11.40
sys 2.21

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/306232/ft1_filtered_4FGL_J0811.4+0146_daily_bin415.fits evtable="EVENTS" scfile=/scratch/kocevski/306232/ft2_4FGL_J0811.4+0146_daily_bin415.fits sctable="SC_DATA" expcube=/scratch/kocevski/306232/ltcube_346896001_347155201_4FGL_J0811.4+0146_daily_bin415.fits outfile=/scratch/kocevski/306232/expmap_346896001_347155201_4FGL_J0811.4+0146_daily_bin415.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/306232/ltcube_346896001_347155201_4FGL_J0811.4+0146_daily_bin415.fits
.....................!
real 193.13
user 185.27
sys 7.23

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 151 point sources and 0 extended sources

Setting source of interest to:
4FGL J0811.4+0146 @ 122.861 1.7756

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/306232/ft1_filtered_4FGL_J0811.4+0146_daily_bin415.fits scfile=/scratch/kocevski/306232/ft2_4FGL_J0811.4+0146_daily_bin415.fits outfile=/scratch/kocevski/306232/cmap_346896001_347155201_4FGL_J0811.4+0146_daily_bin415.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.80

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/306232/ft1_filtered_4FGL_J0811.4+0146_daily_bin415.fits scfile=/scratch/kocevski/306232/ft2_4FGL_J0811.4+0146_daily_bin415.fits outfile=/scratch/kocevski/306232/cmap_HighResolution_346896001_347155201_4FGL_J0811.4+0146_daily_bin415.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.21
user 0.39
sys 1.81

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    60.913       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.1320       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5146       1.0000         .10000E-03   10000.    
     6 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .66212       1.0000         .10000E-03   10000.    
     8 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.111       1.0000         .10000E-03   10000.    
    10 'Prefactor '    48.390       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .74410       1.0000         .10000E-03   10000.    
    13 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.3531       1.0000         .10000E-03   10000.    
    15 'norm      '    3.1186       1.0000         .10000E-03   10000.    
    16 'norm      '    .12738E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.1244       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .19990E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    10.531       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.891       1.0000         .10000E-03   10000.    
    21 'norm      '    .75911       1.0000         .10000E-03   10000.    
    22 'norm      '    5.1934       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .76148       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0473       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5590.675     FROM MIGRAD    STATUS=FAILED       978 CALLS     3530 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     60.964        65.263        .51410E-04   -.13357E-04
   2  Prefactor     .10000E-03    15.741        .18142E-02** at limit **
   3  Prefactor     .10000E-03    11.601        .18142E-02** at limit **
   4  norm          2.1313        2.0248        .98442E-04   -.22947E-03
   5  Prefactor     1.4946        145.76        .34740E-03   -.92939E-05
   6  norm          .10000E-03    11.440        .18142E-02** at limit **
   7  Prefactor     .66123        4.0435        .28099E-03   -.70521E-04
   8  norm          .10000E-03    7.5980        .18142E-02** at limit **
   9  Prefactor     12.119        12.503        .11511E-03   -.87704E-04
  10  Prefactor     48.377        168.10        .57645E-04   -.48122E-05
  11  Prefactor     .10000E-03    3.5677        .13752E-02** at limit **
  12  Prefactor     .80171        397.00        .77716E-02    .46980E-03
  13  norm          .10000E-03    2.8828        .12392E-02** at limit **
  14  norm          3.3536        2.2768        .89574E-04   -.32999E-05
  15  norm          3.1184        1.4023        .56564E-04   -.11456E-04
  16  norm          .10000E-03    37.683        .18142E-02** at limit **
  17  norm          5.1229        3.8730        .12261E-03   -.17821E-03
  18  Prefactor     .10011E-03    270.04        .75157E-02** at limit **
  19  norm          10.530        13.526        .12347E-03    .13812E-05
  20  Prefactor     14.897        12.576        .10379E-03   -.54986E-04
  21  norm          .75901        .65206        .52832E-03   -.40906E-04
  22  norm          5.1930        6.0286        .17640E-03   -.20366E-04
  23  Normalizat    .76162        .22270        .31704E-03   -.15653E-03
  24  Prefactor     1.0473        .14716        .18619E-03   -.40936E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5590.675     FROM SIMPLEX   STATUS=UNCHANGED   1193 CALLS     4723 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     60.964        65.263        .62128E-06   -1.4145    
   2  Prefactor     .10000E-03    15.741        .51920E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.601        .52637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.1313        2.0248        .55392E-06   -1.5416    
   5  Prefactor     1.4946        145.76        .57148E-06   -1.5463    
   6  norm          .10000E-03    11.440        .50927E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .66123        4.0435        .55848E-06   -1.5545    
   8  norm          .10000E-03    7.5980        .26482E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.119        12.503        .53929E-06   -1.5012    
  10  Prefactor     48.377        168.10        .51752E-06   -1.4316    
  11  Prefactor     .10000E-03    3.5677        .23453E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .80171        397.00        .62616E-06   -1.5529    
  13  norm          .10000E-03    2.8828        .24643E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.3536        2.2768        .55119E-06   -1.5342    
  15  norm          3.1184        1.4023        .55175E-06   -1.5355    
  16  norm          .10000E-03    37.683        .66746E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.1229        3.8730        .54901E-06   -1.5255    
  18  Prefactor     .10011E-03    270.04        .17785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          10.530        13.526        .55035E-06   -1.5059    
  20  Prefactor     14.897        12.576        .54360E-06   -1.4936    
  21  norm          .75901        .65206        .56055E-06   -1.5534    
  22  norm          5.1930        6.0286        .55761E-06   -1.5252    
  23  Normalizat    .76162        .22270        .38054E-06   -1.0151    
  24  Prefactor     1.0473        .14716        .32757E-06   -.91169    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5590.675     FROM MIGRAD    STATUS=CONVERGED    380 CALLS     5103 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     60.964        65.261        .10282E-04   -.22114E-06
   2  Prefactor     .10000E-03    15.751        .36285E-03** at limit **
   3  Prefactor     .10000E-03    11.601        .36285E-03** at limit **
   4  norm          2.1313        2.0247        .39377E-05   -.11549E-05
   5  Prefactor     1.4946        145.72        .13896E-04   -.32725E-07
   6  norm          .10000E-03    11.441        .36285E-03** at limit **
   7  Prefactor     .66123        4.0382        .11240E-04    .22253E-05
   8  norm          .10000E-03    7.5982        .36285E-03** at limit **
   9  Prefactor     12.119        12.501        .46043E-05    .79013E-05
  10  Prefactor     48.377        168.05        .11529E-04    .39444E-06
  11  Prefactor     .10000E-03    3.5681        .27504E-03** at limit **
  12  Prefactor     .80191        392.90        .15543E-02    .26039E-05
  13  norm          .10000E-03    2.8828        .24784E-03** at limit **
  14  norm          3.3536        2.2766        .35829E-05     .0000    
  15  norm          3.1184        1.4020        .22626E-05    .40198E-06
  16  norm          .10000E-03    37.694        .36285E-03** at limit **
  17  norm          5.1229        3.8625        .49045E-05   -.13908E-05
  18  Prefactor     .10000E-03    280.35        .30063E-02** at limit **
  19  norm          10.530        13.526        .49387E-05     .0000    
  20  Prefactor     14.897        12.574        .41517E-05    .10406E-04
  21  norm          .75901        .65197        .21133E-04    .10974E-04
  22  norm          5.1930        6.0273        .70559E-05    .64449E-06
  23  Normalizat    .76162        .21973        .12681E-04    .15061E-04
  24  Prefactor     1.0473        .14695        .37238E-04    .16364E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 60.9644
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.13127
  Prefactor  = 1.49457
  norm       = 0.0001
  Prefactor  = 0.661232
  norm       = 0.0001
  Prefactor  = 12.1188
  Prefactor  = 48.3774
  Prefactor  = 0.0001
  Prefactor  = 0.801908
  norm       = 0.0001
  norm       = 3.35359
  norm       = 3.11841
  norm       = 0.0001
  norm       = 5.12292
  Prefactor  = 0.0001
  norm       = 10.5297
  Prefactor  = 14.8969
  norm       = 0.75901
  norm       = 5.19304
  Normalizat = 0.761619
  Prefactor  = 1.0473
 **********
 **   18 **HESSE 
 **********

 FCN=   5590.675     FROM HESSE     STATUS=OK           373 CALLS     5476 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     60.964        65.340        .20564E-05   -1.4145    
   2  Prefactor     .10000E-03    15.752        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.601        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.1313        2.0250        .78754E-06   -1.5416    
   5  Prefactor     1.4946        145.72        .13896E-04   -1.5463    
   6  norm          .10000E-03    11.442        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .66123        4.0430        .22479E-05   -1.5545    
   8  norm          .10000E-03    7.5982        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.119        12.500        .92086E-06   -1.5012    
  10  Prefactor     48.377        168.10        .23058E-05   -1.4316    
  11  Prefactor     .10000E-03    3.5682        .55009E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .80191        388.76        .62173E-04   -1.5529    
  13  norm          .10000E-03    2.8828        .49568E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.3536        2.2766        .35829E-05   -1.5342    
  15  norm          3.1184        1.4020        .22626E-05   -1.5355    
  16  norm          .10000E-03    37.694        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.1229        3.8604        .98091E-06   -1.5255    
  18  Prefactor     .10000E-03    282.35        .60126E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          10.530        13.526        .49387E-05   -1.5059    
  20  Prefactor     14.897        12.567        .83033E-06   -1.4936    
  21  norm          .75901        .65196        .42266E-05   -1.5534    
  22  norm          5.1930        6.0278        .14112E-05   -1.5252    
  23  Normalizat    .76162        .21912        .25363E-05   -1.0151    
  24  Prefactor     1.0473        .14696        .74476E-05   -.91169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05632e-12
Minuit parameter uncertainties:
  1  65.417
  2  2.26375e-06
  3  2.32042e-07
  4  2.02508
  5  29.5883
  6  7.26094e-07
  7  3.27016
  8  3.34619e-07
  9  12.5029
  10  169.789
  11  8.4929e-08
  12  35.5452
  13  6.9824e-08
  14  2.27667
  15  1.40198
  16  6.36582e-06
  17  3.86054
  18  0.000247104
  19  13.5299
  20  12.5696
  21  0.651969
  22  6.02847
  23  0.219371
  24  0.14702
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  5.123e+00  3.861e+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.047e+00  1.470e-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:  7.616e-01  2.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.64
Ra Dec: 122.861 1.776
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 3.68e-08 +/- 2.77e-08
Energy Flux (Fixed Index): 2.18e-05 +/- 1.64e-05

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

Saving results to:
/scratch/kocevski/306232/likelihoodResults_346896001_347155201_4FGL_J0811.4+0146_daily_bin415.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) = 5590.65063573
delta logL = 0.0239157803026

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5590.64845948
delta logL = 0.0260920310993

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8966       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1356       1.0000          .0000       5.0000    
     3 'Normalizat'    .75727       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0486       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=   5590.648     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      236 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8965        3.8992        .11779E-03    .70631E-03
   2  alpha         2.1356        .58033        .13454E-01    .57823E-04
   3  Normalizat    .75727        .20517        .31787E-03   -.36981E-04
   4  Prefactor     1.0486        .13953        .18608E-03   -.72776E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.89648
  alpha      = 2.13565
  Normalizat = 0.757267
  Prefactor  = 1.04862
 **********
 **   18 **HESSE 
 **********

 FCN=   5590.648     FROM HESSE     STATUS=OK            25 CALLS      261 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8965        3.8464        .47116E-05   -1.5265    
   2  alpha         2.1356        .57244        .53816E-03   -.14626    
   3  Normalizat    .75727        .20522        .12715E-04   -1.0167    
   4  Prefactor     1.0486        .13959        .37217E-04   -.91126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14677e-10
Minuit parameter uncertainties:
  1  3.84662
  2  0.577677
  3  0.205433
  4  0.139636
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/306232': 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) = 5590.64845947
delta logL = 0.0260920367018

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  4.896e+00  3.847e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.136e+00  5.777e-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.049e+00  1.396e-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:  7.573e-01  2.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.69
Ra Dec: 122.861 1.776
Photon Index (Free Index): 2.14 +/- 0.58
Photon Flux (Free Index): 4.12e-08 +/- 3.58e-08
Energy Flux (Free Index): 1.95e-05 +/- 1.69e-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/306232/cmap_HighResolution_346896001_347155201_4FGL_J0811.4+0146_daily_bin415.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.04e-05', comment='SUCCESS', photon_flux='3.68e-08', energy_flux2='1.95e-05', photon_flux_error='2.77e-08', dlogl='2.61e-02', energy_flux='2.18e-05', photon_flux2='4.12e-08', job_status='DONE', time_completed='2021-08-29 12:26:39.833960', photon_index_error2='0.58', photon_index2='2.14', ts='3.64', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='1.69e-05', EG='0.76', time_epoch_completed='1630265199.83', return_code='0', job_id='306232', GAL2='1.05', EG2='0.76', return_code2='0', energy_flux_error='1.64e-05', photon_flux_error2='3.58e-08', ts2='3.69', photon_index='2.01' WHERE bin_id='415' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:26:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 306232: <4FGL_J0811.4+0146_daily_bin415> in cluster <slac> Done

Job <4FGL_J0811.4+0146_daily_bin415> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 12:10:30 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:10:31 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:10:31 2021
Terminated at Sun Aug 29 12:26:40 2021
Results reported at Sun Aug 29 12:26:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin415 122.861 1.7756 346896001 347155201 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 :                                   778.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             253.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            970 sec.

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

