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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin675
RA = 122.861, Dec = 1.7756
tmin = 414288001, tmax = 414547201
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='307893', job_status='RUN', time_executed='2021-08-29 12:18:15.960233', time_epoch_executed='1630264695.96' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='675'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/307893

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/307893/ft1_4FGL_J0811.4+0146_daily_bin675.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/307893/ft2_4FGL_J0811.4+0146_daily_bin675.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/307893/ft1_4FGL_J0811.4+0146_daily_bin675.fits outfile=/scratch/kocevski/307893/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin675.fits ra=122.861 dec=1.7756 rad=12.0 tmin=414288001.0 tmax=414547201.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 6.75
user 5.19
sys 1.36

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/307893/ft1_filtered_4FGL_J0811.4+0146_daily_bin675.fits" evtable="EVENTS" scfile=/scratch/kocevski/307893/ft2_4FGL_J0811.4+0146_daily_bin675.fits sctable="SC_DATA" outfile=/scratch/kocevski/307893/ltcube_414288001_414547201_4FGL_J0811.4+0146_daily_bin675.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/307893/ft2_4FGL_J0811.4+0146_daily_bin675.fits
.....................!
real 13.90
user 11.91
sys 1.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/307893/ft1_filtered_4FGL_J0811.4+0146_daily_bin675.fits evtable="EVENTS" scfile=/scratch/kocevski/307893/ft2_4FGL_J0811.4+0146_daily_bin675.fits sctable="SC_DATA" expcube=/scratch/kocevski/307893/ltcube_414288001_414547201_4FGL_J0811.4+0146_daily_bin675.fits outfile=/scratch/kocevski/307893/expmap_414288001_414547201_4FGL_J0811.4+0146_daily_bin675.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/307893/ltcube_414288001_414547201_4FGL_J0811.4+0146_daily_bin675.fits
.....................!
real 196.32
user 187.07
sys 7.07

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/307893/ft1_filtered_4FGL_J0811.4+0146_daily_bin675.fits scfile=/scratch/kocevski/307893/ft2_4FGL_J0811.4+0146_daily_bin675.fits outfile=/scratch/kocevski/307893/cmap_414288001_414547201_4FGL_J0811.4+0146_daily_bin675.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.72
user 0.37
sys 1.24

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/307893/ft1_filtered_4FGL_J0811.4+0146_daily_bin675.fits scfile=/scratch/kocevski/307893/ft2_4FGL_J0811.4+0146_daily_bin675.fits outfile=/scratch/kocevski/307893/cmap_HighResolution_414288001_414547201_4FGL_J0811.4+0146_daily_bin675.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.70
user 0.38
sys 1.27

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.848       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11914       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    9.7070       1.0000         .10000E-03   10000.    
     5 'Prefactor '    61.794       1.0000         .10000E-03   10000.    
     6 'norm      '    3.7926       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    11.876       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10959E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.343       1.0000         .10000E-03   10000.    
    13 'norm      '    20.608       1.0000         .10000E-03   10000.    
    14 'norm      '    .12676       1.0000         .10000E-03   10000.    
    15 'norm      '    .92227       1.0000         .10000E-03   10000.    
    16 'norm      '    17.980       1.0000         .10000E-03   10000.    
    17 'norm      '    9.4326       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.371       1.0000         .10000E-03   10000.    
    19 'norm      '    36.867       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.0917       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2368       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .79083       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=   7130.269     FROM MIGRAD    STATUS=FAILED       972 CALLS     3187 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.888        57.007        .62719E-04   -.77944E-05
   2  Prefactor     .60603E-01    6.8692        .62125E-01    .30410E-03
   3  Prefactor     .10000E-03    10.249        .18142E-02** at limit **
   4  norm          9.7073        2.4884        .64056E-04    .73299E-04
   5  Prefactor     61.790        32.987        .51044E-04   -.57907E-05
   6  norm          3.7910        8.9052        .10364E-02    .27193E-04
   7  Prefactor     .10000E-03    5.2323        .36285E-03** at limit **
   8  norm          11.865        15.788        .11624E-03    .16304E-03
   9  Prefactor     .10000E-03    18.548        .36285E-03** at limit **
  10  Prefactor     .10000E-03    79.916        .18142E-02** at limit **
  11  Prefactor     .10000E-03    7.5241        .18142E-02** at limit **
  12  Prefactor     22.352        28.747        .84739E-04   -.11270E-04
  13  norm          20.607        12.939        .88230E-04   -.87877E-04
  14  norm          .12694        4.6483        .16543E-02    .38929E-02
  15  norm          .92211        .77211        .66726E-04    .19202E-03
  16  norm          17.980        20.512        .94455E-04   -.17332E-04
  17  norm          9.4319        4.9216        .12913E-03   -.44638E-04
  18  Prefactor     15.378        37.166        .10216E-03   -.19364E-04
  19  norm          36.861        23.053        .66006E-04   -.11505E-04
  20  Prefactor     .10000E-03    11.311        .18142E-02** at limit **
  21  norm          2.0917        1.1057        .61870E-04   -.12367E-03
  22  norm          .10000E-03    2.0129        .11694E-02** at limit **
  23  Normalizat    1.2366        .23056        .29406E-03   -.16199E-03
  24  Prefactor     .79102        .14148        .22092E-03    .54549E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7130.269     FROM SIMPLEX   STATUS=PROGRESS    1114 CALLS     4301 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.888        57.007        .42564E-06   -1.4428    
   2  Prefactor     .60557E-01    6.8692        .18741E-05   -1.5659    
   3  Prefactor     .10000E-03    10.249        .47812E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.7073        2.4884        .36179E-06   -1.5085    
   5  Prefactor     61.790        32.987        .34611E-06   -1.4134    
   6  norm          3.7910        8.9052        .37880E-06   -1.5319    
   7  Prefactor     .10000E-03    5.2323        .34414E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.865        15.788        .35932E-06   -1.5019    
   9  Prefactor     .10000E-03    18.548        .73830E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    79.916        .10315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.5241        .50560E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.352        28.747        .35683E-06   -1.4762    
  13  norm          20.607        12.939        .35607E-06   -1.4800    
  14  norm          .12694        4.6483        .41625E-06   -1.5637    
  15  norm          .92211        .77211        .37307E-06   -1.5516    
  16  norm          17.980        20.512        .37867E-06   -1.4860    
  17  norm          9.4319        4.9216        .36726E-06   -1.5094    
  18  Prefactor     15.378        37.166        .42169E-06   -1.4923    
  19  norm          36.861        23.053        .36665E-06   -1.4493    
  20  Prefactor     .10000E-03    11.311        .46478E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.0917        1.1057        .36912E-06   -1.5419    
  22  norm          .10000E-03    2.0129        .20638E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2366        .23056        .20478E-06   -.85478    
  24  Prefactor     .79102        .14148        .23954E-06   -1.0006    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7130.269     FROM MIGRAD    STATUS=CONVERGED    390 CALLS     4691 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.888        57.077        .25087E-05   -.54380E-06
   2  Prefactor     .60558E-01    6.2790        .66726E-01    .24910E-03
   3  Prefactor     .10000E-03    10.249        .36285E-03** at limit **
   4  norm          9.7073        2.4884        .25622E-05   -.79866E-05
   5  Prefactor     61.790        32.987        .10209E-04   -.22272E-06
   6  norm          3.7910        8.9038        .41456E-04    .16454E-06
   7  Prefactor     .10000E-03    5.2325        .72569E-04** at limit **
   8  norm          11.865        15.787        .46497E-05   -.97802E-06
   9  Prefactor     .10000E-03    18.548        .72569E-04** at limit **
  10  Prefactor     .10000E-03    79.916        .36285E-03** at limit **
  11  Prefactor     .10000E-03    7.5296        .36285E-03** at limit **
  12  Prefactor     22.352        28.755        .33895E-05   -.13416E-06
  13  norm          20.607        12.939        .35292E-05    .38656E-06
  14  norm          .12694        4.6551        .33087E-03    .15606E-03
  15  norm          .92211        .77143        .26690E-05   -.85189E-06
  16  norm          17.980        20.514        .37782E-05   -.12036E-06
  17  norm          9.4319        4.9214        .51650E-05   -.44022E-06
  18  Prefactor     15.378        37.178        .40863E-05   -.11129E-06
  19  norm          36.861        23.053        .13201E-04    .34447E-07
  20  Prefactor     .10000E-03    11.315        .36285E-03** at limit **
  21  norm          2.0917        1.1057        .24748E-05    .91876E-06
  22  norm          .10000E-03    2.0130        .23388E-03** at limit **
  23  Normalizat    1.2366        .23069        .11762E-04   -.23197E-05
  24  Prefactor     .79102        .14145        .88366E-05   -.48889E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.8877
  Prefactor  = 0.0605582
  Prefactor  = 0.0001
  norm       = 9.70729
  Prefactor  = 61.7898
  norm       = 3.79101
  Prefactor  = 0.0001
  norm       = 11.8651
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.3517
  norm       = 20.6074
  norm       = 0.126943
  norm       = 0.922113
  norm       = 17.9804
  norm       = 9.43189
  Prefactor  = 15.3776
  norm       = 36.8615
  Prefactor  = 0.0001
  norm       = 2.09167
  norm       = 0.0001
  Normalizat = 1.23664
  Prefactor  = 0.791021
 **********
 **   18 **HESSE 
 **********

 FCN=   7130.269     FROM HESSE     STATUS=OK           385 CALLS     5076 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.888        57.091        .25087E-05   -1.4428    
   2  Prefactor     .60558E-01    6.3837        .65843E-01   -1.5659    
   3  Prefactor     .10000E-03    10.249        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.7073        2.4890        .51245E-06   -1.5085    
   5  Prefactor     61.790        33.001        .20418E-05   -1.4134    
   6  norm          3.7910        8.9046        .82912E-05   -1.5319    
   7  Prefactor     .10000E-03    5.2325        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.865        15.807        .92993E-06   -1.5019    
   9  Prefactor     .10000E-03    18.549        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    79.916        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.5299        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.352        28.753        .33895E-05   -1.4762    
  13  norm          20.607        12.939        .35292E-05   -1.4800    
  14  norm          .12694        4.6515        .66173E-04   -1.5637    
  15  norm          .92211        .77127        .53381E-06   -1.5516    
  16  norm          17.980        20.514        .37782E-05   -1.4860    
  17  norm          9.4319        4.9215        .10330E-05   -1.5094    
  18  Prefactor     15.378        37.171        .40863E-05   -1.4923    
  19  norm          36.861        23.054        .13201E-04   -1.4493    
  20  Prefactor     .10000E-03    11.315        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.0917        1.1058        .49496E-06   -1.5419    
  22  norm          .10000E-03    2.0130        .46776E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2366        .23075        .23524E-05   -.85478    
  24  Prefactor     .79102        .14159        .17673E-05   -1.0006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64502e-10
Minuit parameter uncertainties:
  1  57.1671
  2  1.24263
  3  8.57007e-08
  4  2.48899
  5  33.0111
  6  8.90769
  7  9.87076e-08
  8  15.813
  9  1.20738e-06
  10  5.62874e-07
  11  4.31245e-07
  12  28.7712
  13  12.9403
  14  1.53636
  15  0.771278
  16  20.5219
  17  4.92173
  18  37.2272
  19  23.0592
  20  1.10686e-06
  21  1.10584
  22  3.93548e-08
  23  0.230941
  24  0.141659
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  9.432e+00  4.922e+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:  7.910e-01  1.417e-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.237e+00  2.309e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.51
Ra Dec: 122.861 1.776
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 6.77e-08 +/- 3.53e-08
Energy Flux (Fixed Index): 4.01e-05 +/- 2.09e-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) = 7129.78010677
delta logL = 0.488702884793

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7129.77389323
delta logL = 0.494916427135

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3729       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5053       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1953       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80702       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=   7129.774     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      247 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3748        59.920        .36927E-02    .19704E-03
   2  alpha         2.5060        3.7529        .27140        .61493E-04
   3  Normalizat    1.1953        .10973        .67358E-01    .11685E-04
   4  Prefactor     .80690        .54056E-01    .43808E-01    .11888E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.3748
  alpha      = 2.50604
  Normalizat = 1.1953
  Prefactor  = 0.806897
 **********
 **   18 **HESSE 
 **********

 FCN=   7129.774     FROM HESSE     STATUS=OK            33 CALLS      280 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3748        5.2597        .10328E-03   -1.5165    
   2  alpha         2.5060        .56900        .10348E-01    .24143E-02
   3  Normalizat    1.1953        .22127        .29799E-03   -.86748    
   4  Prefactor     .80690        .13463        .21892E-03   -.99475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20413e-09
Minuit parameter uncertainties:
  1  5.26007
  2  0.574027
  3  0.221441
  4  0.134688
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/307893': 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) = 7129.77388924
delta logL = 0.494920420742

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  7.375e+00  5.260e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.506e+00  5.740e-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.069e-01  1.347e-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.195e+00  2.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.54
Ra Dec: 122.861 1.776
Photon Index (Free Index): 2.51 +/- 0.57
Photon Flux (Free Index): 1.04e-07 +/- 5.94e-08
Energy Flux (Free Index): 3.10e-05 +/- 1.62e-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/307893/cmap_HighResolution_414288001_414547201_4FGL_J0811.4+0146_daily_bin675.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.77e-08', energy_flux2='3.10e-05', photon_flux_error='3.53e-08', dlogl='4.95e-01', energy_flux='4.01e-05', photon_flux2='1.04e-07', job_status='DONE', time_completed='2021-08-29 12:31:37.253965', photon_index_error2='0.57', photon_index2='2.51', ts='6.51', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='1.62e-05', EG='1.24', time_epoch_completed='1630265497.25', return_code='0', job_id='307893', GAL2='0.81', EG2='1.20', return_code2='0', energy_flux_error='2.09e-05', photon_flux_error2='5.94e-08', ts2='7.54', photon_index='2.01' WHERE bin_id='675' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:31:37 PDT 2021


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

Job <4FGL_J0811.4+0146_daily_bin675> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 29 12:15:37 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:15:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 12:15:38 2021
Terminated at Sun Aug 29 12:31:38 2021
Results reported at Sun Aug 29 12:31:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin675 122.861 1.7756 414288001 414547201 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 :                                   808.31 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            961 sec.

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

