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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin148
RA = 122.861, Dec = 1.7756
tmin = 277689601, tmax = 277948801
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='303084', job_status='RUN', time_executed='2021-08-29 12:04:01.886172', time_epoch_executed='1630263841.89' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='148'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/303084

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/303084/ft1_4FGL_J0811.4+0146_daily_bin148.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/303084/ft2_4FGL_J0811.4+0146_daily_bin148.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/303084/ft1_4FGL_J0811.4+0146_daily_bin148.fits outfile=/scratch/kocevski/303084/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin148.fits ra=122.861 dec=1.7756 rad=12.0 tmin=277689601.0 tmax=277948801.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 3.55
user 3.29
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/303084/ft1_filtered_4FGL_J0811.4+0146_daily_bin148.fits" evtable="EVENTS" scfile=/scratch/kocevski/303084/ft2_4FGL_J0811.4+0146_daily_bin148.fits sctable="SC_DATA" outfile=/scratch/kocevski/303084/ltcube_277689601_277948801_4FGL_J0811.4+0146_daily_bin148.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/303084/ft2_4FGL_J0811.4+0146_daily_bin148.fits
.....................!
real 11.92
user 11.58
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/303084/ft1_filtered_4FGL_J0811.4+0146_daily_bin148.fits evtable="EVENTS" scfile=/scratch/kocevski/303084/ft2_4FGL_J0811.4+0146_daily_bin148.fits sctable="SC_DATA" expcube=/scratch/kocevski/303084/ltcube_277689601_277948801_4FGL_J0811.4+0146_daily_bin148.fits outfile=/scratch/kocevski/303084/expmap_277689601_277948801_4FGL_J0811.4+0146_daily_bin148.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/303084/ltcube_277689601_277948801_4FGL_J0811.4+0146_daily_bin148.fits
.....................!
real 191.69
user 186.55
sys 4.77

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/303084/ft1_filtered_4FGL_J0811.4+0146_daily_bin148.fits scfile=/scratch/kocevski/303084/ft2_4FGL_J0811.4+0146_daily_bin148.fits outfile=/scratch/kocevski/303084/cmap_277689601_277948801_4FGL_J0811.4+0146_daily_bin148.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/303084/ft1_filtered_4FGL_J0811.4+0146_daily_bin148.fits scfile=/scratch/kocevski/303084/ft2_4FGL_J0811.4+0146_daily_bin148.fits outfile=/scratch/kocevski/303084/cmap_HighResolution_277689601_277948801_4FGL_J0811.4+0146_daily_bin148.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.319       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.9920       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16241E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10185E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    50.020       1.0000         .10000E-03   10000.    
     6 'norm      '    .29262E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .32220       1.0000         .10000E-03   10000.    
     8 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.933       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15761E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2241       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .36790       1.0000         .10000E-03   10000.    
    14 'norm      '    2.9463       1.0000         .10000E-03   10000.    
    15 'norm      '    3.9223       1.0000         .10000E-03   10000.    
    16 'norm      '    7.4122       1.0000         .10000E-03   10000.    
    17 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13599E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    30.356       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.2482       1.0000         .10000E-03   10000.    
    22 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2332       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88084       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=   5912.849     FROM MIGRAD    STATUS=CONVERGED   1028 CALLS     2942 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.283        57.734        .10975E-03    .12105E-03
   2  Prefactor     2.9916        5.3243        .23075E-03    .22560E-03
   3  Prefactor     .10004E-03    45.711        .13062    ** at limit **
   4  norm          .10000E-03    1.8207        .15652E-02** at limit **
   5  Prefactor     50.018        35.249        .56702E-04    .13401E-03
   6  norm          .10002E-03    68.198        .55032E-02** at limit **
   7  Prefactor     .32092        17.796        .23872E-02    .12564E-03
   8  norm          .10000E-03    7.2204        .18142E-02** at limit **
   9  Prefactor     13.936        13.933        .10731E-03   -.47167E-03
  10  Prefactor     .10026E-03    1537.3        .20431E-02** at limit **
  11  Prefactor     3.2231        7.3279        .22561E-03    .78258E-04
  12  Prefactor     .10000E-03    14.879        .18142E-02** at limit **
  13  norm          .37224        40.987        .39572E-02    .22656E-03
  14  norm          2.9466        3.3610        .13886E-03    .16366E-03
  15  norm          3.9224        1.6111        .57962E-04    .99247E-04
  16  norm          7.4127        17.472        .73657E-03   -.20898E-03
  17  norm          .10000E-03    2.4809        .11747E-02** at limit **
  18  Prefactor     .10006E-03    39.285        .11881    ** at limit **
  19  norm          30.346        21.973        .72721E-04    .69693E-04
  20  Prefactor     .10000E-03    4.4309        .15796E-02** at limit **
  21  norm          4.2484        1.4271        .50599E-04   -.10257E-02
  22  norm          .10000E-03    12.833        .36285E-03** at limit **
  23  Normalizat    1.2330        .25481        .28476E-03    .21031E-03
  24  Prefactor     .88085        .16016        .21421E-03   -.31581E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.2832
  Prefactor  = 2.99163
  Prefactor  = 0.000100036
  norm       = 0.000100001
  Prefactor  = 50.0184
  norm       = 0.000100017
  Prefactor  = 0.320923
  norm       = 0.0001
  Prefactor  = 13.9362
  Prefactor  = 0.000100262
  Prefactor  = 3.22308
  Prefactor  = 0.0001
  norm       = 0.372236
  norm       = 2.94657
  norm       = 3.92245
  norm       = 7.41267
  norm       = 0.0001
  Prefactor  = 0.000100062
  norm       = 30.3461
  Prefactor  = 0.0001
  norm       = 4.24839
  norm       = 0.000100001
  Normalizat = 1.23304
  Prefactor  = 0.880848
 **********
 **   18 **HESSE 
 **********

 FCN=   5912.849     FROM HESSE     STATUS=OK           397 CALLS     3339 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.283        57.720        .21951E-04   -1.4979    
   2  Prefactor     2.9916        5.3242        .92300E-05   -1.5362    
   3  Prefactor     .10004E-03    47.442        .12764       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.8238        .31304E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     50.018        35.248        .11340E-04   -1.4292    
   6  norm          .10002E-03    69.383        .11006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .32092        17.528        .95490E-04   -1.5595    
   8  norm          .10000E-03    7.2205        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.936        13.851        .42922E-05   -1.4961    
  10  Prefactor     .10026E-03    1538.1        .40863E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.2231        7.3090        .90243E-05   -1.5349    
  12  Prefactor     .10000E-03    14.880        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .37224        41.251        .15829E-03   -1.5586    
  14  norm          2.9466        3.3605        .55545E-05   -1.5365    
  15  norm          3.9224        1.6110        .23185E-05   -1.5312    
  16  norm          7.4127        17.457        .29463E-04   -1.5163    
  17  norm          .10000E-03    2.4814        .23494E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10006E-03    37.636        .12220       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          30.346        21.973        .14544E-04   -1.4606    
  20  Prefactor     .10000E-03    4.4311        .31591E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.2484        1.4268        .20240E-05   -1.5296    
  22  norm          .10000E-03    12.833        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2330        .25428        .56953E-04   -.85588    
  24  Prefactor     .88085        .16017        .42842E-04   -.96814    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96009e-09
Minuit parameter uncertainties:
  1  55.4689
  2  5.32504
  3  0.00262512
  4  8.35145e-05
  5  35.2625
  6  0.00215378
  7  4.74419
  8  3.51418e-05
  9  13.8544
  10  0.0412365
  11  7.31098
  12  8.09422e-05
  13  7.84162
  14  3.36073
  15  1.61099
  16  17.4692
  17  1.96519e-05
  18  0.00306233
  19  21.9789
  20  1.65652e-05
  21  1.42678
  22  0.000201226
  23  0.254535
  24  0.160255
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  1.000e-04  1.965e-05  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.808e-01  1.603e-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.233e+00  2.545e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/303084/likelihoodResults_277689601_277948801_4FGL_J0811.4+0146_daily_bin148.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) = 5912.850881
delta logL = -0.00191689065923

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5912.84896194
delta logL = 2.17130218516e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10556E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3623       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2330       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88086       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=   5912.849     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      287 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    119.08        .25287E-02** at limit **
   2  alpha         2.5872        2.6970        .50000        .64074E-07
   3  Normalizat    1.2330        .36459E-01    .28476E-03    .19026E-03
   4  Prefactor     .88085        .23750E-01    .21421E-03    .26664E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.58719
  Normalizat = 1.23303
  Prefactor  = 0.880853
 **********
 **   18 **HESSE 
 **********

 FCN=   5912.849     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      316 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    481.61        .50575E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5872        3.6666        .50000        .34882E-01
   3  Normalizat    1.2330        .93500E-01    .56953E-04   -.85588    
   4  Prefactor     .88085        .60893E-01    .42841E-04   -.96813    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.90189e-09
Minuit parameter uncertainties:
  1  2.18021e-06
  2  2106.46
  3  0.0935131
  4  0.0608976
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/303084': 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): 102
logL (Free Index) = 5912.84896045
delta logL = 3.66559652321e-06

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  1.000e-04  2.180e-06  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.587e+00  2.106e+03  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.809e-01  6.090e-02  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.233e+00  9.351e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 122.861 1.776

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/303084/cmap_HighResolution_277689601_277948801_4FGL_J0811.4+0146_daily_bin148.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.73e-05', job_status='DONE', photon_flux_upper_limit='6.30e-08', time_completed='2021-08-29 12:14:40.653808', job_id='303084', GAL2='0.88', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1630264480.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='3.67e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.01' WHERE bin_id='148' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:14:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 303084: <4FGL_J0811.4+0146_daily_bin148> in cluster <slac> Done

Job <4FGL_J0811.4+0146_daily_bin148> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 29 12:00:34 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:00:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 12:00:35 2021
Terminated at Sun Aug 29 12:14:41 2021
Results reported at Sun Aug 29 12:14:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin148 122.861 1.7756 277689601 277948801 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 :                                   637.15 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             266.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            847 sec.

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

