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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin347
RA = 122.861, Dec = 1.7756
tmin = 329270401, tmax = 329529601
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='304680', job_status='RUN', time_executed='2021-08-29 12:08:03.580692', time_epoch_executed='1630264083.58' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='347'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/304680

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/304680/ft1_4FGL_J0811.4+0146_daily_bin347.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/304680/ft2_4FGL_J0811.4+0146_daily_bin347.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/304680/ft1_4FGL_J0811.4+0146_daily_bin347.fits outfile=/scratch/kocevski/304680/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin347.fits ra=122.861 dec=1.7756 rad=12.0 tmin=329270401.0 tmax=329529601.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.61
user 3.40
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/304680/ft1_filtered_4FGL_J0811.4+0146_daily_bin347.fits evtable="EVENTS" scfile=/scratch/kocevski/304680/ft2_4FGL_J0811.4+0146_daily_bin347.fits sctable="SC_DATA" expcube=/scratch/kocevski/304680/ltcube_329270401_329529601_4FGL_J0811.4+0146_daily_bin347.fits outfile=/scratch/kocevski/304680/expmap_329270401_329529601_4FGL_J0811.4+0146_daily_bin347.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/304680/ltcube_329270401_329529601_4FGL_J0811.4+0146_daily_bin347.fits
.....................!
real 189.68
user 185.27
sys 4.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/304680/ft1_filtered_4FGL_J0811.4+0146_daily_bin347.fits scfile=/scratch/kocevski/304680/ft2_4FGL_J0811.4+0146_daily_bin347.fits outfile=/scratch/kocevski/304680/cmap_329270401_329529601_4FGL_J0811.4+0146_daily_bin347.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/304680/ft1_filtered_4FGL_J0811.4+0146_daily_bin347.fits scfile=/scratch/kocevski/304680/ft2_4FGL_J0811.4+0146_daily_bin347.fits outfile=/scratch/kocevski/304680/cmap_HighResolution_329270401_329529601_4FGL_J0811.4+0146_daily_bin347.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.573       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    14.079       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12315E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10331E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.617       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    17.998       1.0000         .10000E-03   10000.    
    14 'norm      '    6.0718       1.0000         .10000E-03   10000.    
    15 'norm      '    2.7350       1.0000         .10000E-03   10000.    
    16 'norm      '    .10361E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.8533       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10615E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .23589E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    1.0016       1.0000         .10000E-03   10000.    
    22 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .91578       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1651       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6490.537     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2695 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.591       -.32609E-04** at limit **
   2  Prefactor     .10000E-03    3.3377        .23019E-07** at limit **
   3  Prefactor     12.563        36.613       -.13521E-04    .10220E-04
   4  norm          .10000E-03    .47403       -.47959E-07** at limit **
   5  Prefactor     .10000E-03    14.748       -.64651E-05** at limit **
   6  norm          14.070        20.815       -.53083E-06   -.10395E-04
   7  Prefactor     .10000E-03    2.6964       -.20140E-06** at limit **
   8  norm          .10000E-03    12.832        .39242E-05** at limit **
   9  Prefactor     14.617        12.103        .92109E-08   -.34923E-05
  10  Prefactor     .10000E-03    55.227        .28788E-04** at limit **
  11  Prefactor     .10000E-03    3.9227        .20695E-07** at limit **
  12  Prefactor     .10000E-03    16.030       -.23528E-06** at limit **
  13  norm          17.997        14.026       -.18038E-06    .76361E-05
  14  norm          6.0711        3.3783       -.94367E-07   -.81102E-04
  15  norm          2.7354        1.6154       -.14286E-06   -.44924E-03
  16  norm          .10000E-03    15.233       -.47064E-05** at limit **
  17  norm          9.8537        4.5958       -.27566E-05    .62812E-04
  18  Prefactor     .10000E-03    56.303        .32300E-04** at limit **
  19  norm          .10000E-03    18.108        .11454E-04** at limit **
  20  Prefactor     .10155E-03    11.431       -.39936E-05** at limit **
  21  norm          1.0015        .93804       -.90697E-07   -.53527E-03
  22  norm          .10000E-03    4.9013        .23975E-07** at limit **
  23  Normalizat    .91585        .21241        .19249E-05    .20986E-03
  24  Prefactor     1.1650        .13854        .76688E-06    .31338E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.5627
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 14.0703
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.6169
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.9971
  norm       = 6.0711
  norm       = 2.73544
  norm       = 0.0001
  norm       = 9.85371
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000101547
  norm       = 1.00152
  norm       = 0.0001
  Normalizat = 0.915854
  Prefactor  = 1.16503
 **********
 **   18 **HESSE 
 **********

 FCN=   6490.537     FROM HESSE     STATUS=OK           399 CALLS     3094 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    39.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.3418        .14374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.563        36.638        .11297E-03   -1.4999    
   4  norm          .10000E-03    .47777        .54144E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          14.070        20.917        .10675E-03   -1.4958    
   7  Prefactor     .10000E-03    7.8323        .25530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    12.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.617        12.068        .10476E-03   -1.4943    
  10  Prefactor     .10000E-03    55.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.9317        .15579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          17.997        14.012        .94409E-04   -1.4859    
  14  norm          6.0711        3.3714        .10442E-03   -1.5215    
  15  norm          2.7354        1.6116        .73559E-04   -1.5377    
  16  norm          .10000E-03    15.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.8537        4.5961        .11377E-03   -1.5080    
  18  Prefactor     .10000E-03    56.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    18.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10155E-03    93.937        .51506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.0015        .89126        .72412E-03   -1.5508    
  22  norm          .10000E-03    4.9238        .17415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .91585        .23374        .33870E-03   -.95905    
  24  Prefactor     1.1650        .15597        .19967E-03   -.87414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53481e-08
Minuit parameter uncertainties:
  1  8.77364e-05
  2  9.10589e-07
  3  36.7037
  4  1.03011e-06
  5  1.94804e-06
  6  20.928
  7  1.13799e-05
  8  1.61829e-05
  9  12.0695
  10  4.20455e-06
  11  6.01486e-07
  12  2.3007e-05
  13  14.0143
  14  3.37154
  15  1.61164
  16  9.61652e-06
  17  4.59622
  18  9.72891e-05
  19  1.98166e-05
  20  0.0241471
  21  0.891269
  22  9.26218e-06
  23  0.234003
  24  0.156028
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  9.854e+00  4.596e+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.165e+00  1.560e-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:  9.159e-01  2.340e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 27.93
Ra Dec: 122.861 1.776
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 7.07e-08 +/- 3.30e-08
Energy Flux (Fixed Index): 4.19e-05 +/- 1.95e-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) = 6488.83353778
delta logL = 1.70366373877

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6488.59641357
delta logL = 1.94078795019

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2320       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1994       1.0000          .0000       5.0000    
     3 'Normalizat'    .95518       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1573       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=   6488.596     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      218 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2270        3.5671        .40201E-02   -.12316E-03
   2  alpha         1.1992        .29099        .23010       -.41651E-04
   3  Normalizat    .95511        .20309        .75152E-01    .18318E-04
   4  Prefactor     1.1573        .13392        .35728E-01    .68070E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 6.22698
  alpha      = 1.19925
  Normalizat = 0.955113
  Prefactor  = 1.15729
 **********
 **   18 **HESSE 
 **********

 FCN=   6488.596     FROM HESSE     STATUS=OK            31 CALLS      249 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2270        4.6397        .10246E-03   -1.5209    
   2  alpha         1.1992        .39218        .98019E-02   -.54720    
   3  Normalizat    .95511        .22720        .33257E-03   -.94550    
   4  Prefactor     1.1573        .15013        .20042E-03   -.87656    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54596e-12
Minuit parameter uncertainties:
  1  4.63997
  2  0.39442
  3  0.227426
  4  0.150186
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/304680': 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) = 6488.59641244
delta logL = 1.94078907357

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  6.227e+00  4.640e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  1.199e+00  3.944e-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.157e+00  1.502e-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:  9.551e-01  2.274e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 31.79
Ra Dec: 122.861 1.776
Photon Index (Free Index): 1.20 +/- 0.39
Photon Flux (Free Index): 2.67e-08 +/- 1.89e-08
Energy Flux (Free Index): 1.22e-04 +/- 9.93e-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/304680/cmap_HighResolution_329270401_329529601_4FGL_J0811.4+0146_daily_bin347.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.07e-08', energy_flux2='1.22e-04', photon_flux_error='3.30e-08', dlogl='1.94e+00', energy_flux='4.19e-05', photon_flux2='2.67e-08', job_status='DONE', time_completed='2021-08-29 12:17:50.057943', photon_index_error2='0.39', photon_index2='1.20', ts='27.93', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', energy_flux_error2='9.93e-05', EG='0.92', time_epoch_completed='1630264670.06', return_code='0', job_id='304680', GAL2='1.16', EG2='0.96', return_code2='0', energy_flux_error='1.95e-05', photon_flux_error2='1.89e-08', ts2='31.79', photon_index='2.01' WHERE bin_id='347' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:17:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 304680: <4FGL_J0811.4+0146_daily_bin347> in cluster <slac> Done

Job <4FGL_J0811.4+0146_daily_bin347> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 29 12:05:29 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:05: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:05:31 2021
Terminated at Sun Aug 29 12:17:50 2021
Results reported at Sun Aug 29 12:17:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin347 122.861 1.7756 329270401 329529601 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 :                                   586.15 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             295.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   739 sec.
    Turnaround time :                            741 sec.

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

