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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin793
RA = 122.861, Dec = 1.7756
tmin = 444873601, tmax = 445132801
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='309385', job_status='RUN', time_executed='2021-08-29 12:20:49.457967', time_epoch_executed='1630264849.46' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='793'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/309385

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/309385/ft1_4FGL_J0811.4+0146_daily_bin793.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/309385/ft2_4FGL_J0811.4+0146_daily_bin793.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/309385/ft1_4FGL_J0811.4+0146_daily_bin793.fits outfile=/scratch/kocevski/309385/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin793.fits ra=122.861 dec=1.7756 rad=12.0 tmin=444873601.0 tmax=445132801.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.66
user 3.23
sys 0.41

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/309385/ft1_filtered_4FGL_J0811.4+0146_daily_bin793.fits" evtable="EVENTS" scfile=/scratch/kocevski/309385/ft2_4FGL_J0811.4+0146_daily_bin793.fits sctable="SC_DATA" outfile=/scratch/kocevski/309385/ltcube_444873601_445132801_4FGL_J0811.4+0146_daily_bin793.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/309385/ft2_4FGL_J0811.4+0146_daily_bin793.fits
.....................!
real 12.22
user 11.61
sys 0.55

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/309385/ft1_filtered_4FGL_J0811.4+0146_daily_bin793.fits evtable="EVENTS" scfile=/scratch/kocevski/309385/ft2_4FGL_J0811.4+0146_daily_bin793.fits sctable="SC_DATA" expcube=/scratch/kocevski/309385/ltcube_444873601_445132801_4FGL_J0811.4+0146_daily_bin793.fits outfile=/scratch/kocevski/309385/expmap_444873601_445132801_4FGL_J0811.4+0146_daily_bin793.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/309385/ltcube_444873601_445132801_4FGL_J0811.4+0146_daily_bin793.fits
.....................!
real 190.82
user 185.13
sys 5.24

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/309385/ft1_filtered_4FGL_J0811.4+0146_daily_bin793.fits scfile=/scratch/kocevski/309385/ft2_4FGL_J0811.4+0146_daily_bin793.fits outfile=/scratch/kocevski/309385/cmap_444873601_445132801_4FGL_J0811.4+0146_daily_bin793.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.74
user 0.37
sys 0.35

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/309385/ft1_filtered_4FGL_J0811.4+0146_daily_bin793.fits scfile=/scratch/kocevski/309385/ft2_4FGL_J0811.4+0146_daily_bin793.fits outfile=/scratch/kocevski/309385/cmap_HighResolution_444873601_445132801_4FGL_J0811.4+0146_daily_bin793.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.75
user 0.38
sys 0.36

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.971       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    10.946       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.4613       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.4318       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.637       1.0000         .10000E-03   10000.    
    13 'norm      '    8.1141       1.0000         .10000E-03   10000.    
    14 'norm      '    1.3276       1.0000         .10000E-03   10000.    
    15 'norm      '    .78875       1.0000         .10000E-03   10000.    
    16 'norm      '    1.5800       1.0000         .10000E-03   10000.    
    17 'norm      '    .15526       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.4255       1.0000         .10000E-03   10000.    
    19 'norm      '    4.3567       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .74900       1.0000         .10000E-03   10000.    
    22 'norm      '    1.1416       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0924       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90422       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=   6927.199     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     2803 TOTAL
                     EDM=   .99E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.969        45.498        .37196E-06    .62973E-06
   2  Prefactor     .10000E-03    4.9363       -.35233E-07** at limit **
   3  Prefactor     .10000E-03    18.295       -.33814E-06** at limit **
   4  norm          10.946        2.7525        .40000E-07    .51596E-05
   5  Prefactor     .10000E-03    17.808        .35973E-06** at limit **
   6  norm          .10000E-03    6.0451        .28452E-07** at limit **
   7  Prefactor     .10000E-03    1.4644       -.13486E-07** at limit **
   8  norm          8.4626        18.703       -.84610E-06   -.31263E-05
   9  Prefactor     5.4301        13.778        .18399E-05   -.23064E-04
  10  Prefactor     .10000E-03    50.747       -.96571E-07** at limit **
  11  Prefactor     .10000E-03    4.6998        .52912E-07** at limit **
  12  Prefactor     10.648        41.702       -.84003E-05   -.66578E-04
  13  norm          8.1157        8.4424       -.12846E-07   -.57324E-04
  14  norm          1.3276        1.7522        .43783E-07   -.75881E-05
  15  norm          .78873        .85514        .29596E-07   -.78918E-05
  16  norm          1.5908        51.145        .17081E-04   -.14898E-04
  17  norm          .14835        2.1888       -.13637E-05    .24235E-03
  18  Prefactor     7.4078        28.134        .14132E-05   -.12414E-04
  19  norm          4.3548        19.486        .30595E-06   -.14482E-05
  20  Prefactor     .10000E-03    8.0976       -.37789E-06** at limit **
  21  norm          .74907        .80429       -.50706E-07   -.52403E-03
  22  norm          1.1415        4.2367        .51547E-06    .51564E-06
  23  Normalizat    1.0924        .19058       -.22294E-06   -.81804E-04
  24  Prefactor     .90425        .11840       -.27329E-06   -.12932E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.9688
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.9464
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.46257
  Prefactor  = 5.43013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.6479
  norm       = 8.11575
  norm       = 1.32758
  norm       = 0.788732
  norm       = 1.5908
  norm       = 0.148348
  Prefactor  = 7.40779
  norm       = 4.35478
  Prefactor  = 0.0001
  norm       = 0.749066
  norm       = 1.14145
  Normalizat = 1.09238
  Prefactor  = 0.904252
 **********
 **   18 **HESSE 
 **********

 FCN=   6927.199     FROM HESSE     STATUS=OK           409 CALLS     3212 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.969        45.622        .78608E-04   -1.4688    
   2  Prefactor     .10000E-03    4.9562        .18058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.946        2.7533        .65696E-04   -1.5046    
   5  Prefactor     .10000E-03    17.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.0533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.4686        .98335E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.4626        18.569        .13781E-03   -1.5126    
   9  Prefactor     5.4301        13.687        .86207E-03   -1.5242    
  10  Prefactor     .10000E-03    50.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.7313        .17615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.648        42.150        .12285E-03   -1.5055    
  13  norm          8.1157        8.4341        .14075E-03   -1.5138    
  14  norm          1.3276        1.7201        .12164E-03   -1.5478    
  15  norm          .78873        .81158        .76264E-03   -1.5530    
  16  norm          1.5908        52.866        .16895E-02   -1.5456    
  17  norm          .14835        10.916        .21535E-02   -1.5631    
  18  Prefactor     7.4078        28.176        .14718E-03   -1.5164    
  19  norm          4.3548        19.541        .19297E-03   -1.5291    
  20  Prefactor     .10000E-03    8.1318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .74907        .76792        .74197E-03   -1.5535    
  22  norm          1.1415        4.1816        .31971E-03   -1.5494    
  23  Normalizat    1.0924        .21760        .29602E-03   -.89997    
  24  Prefactor     .90425        .13575        .20368E-03   -.95993    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25313e-09
Minuit parameter uncertainties:
  1  45.6838
  2  1.734e-07
  3  2.75643e-05
  4  2.75337
  5  2.08817e-05
  6  3.66584e-07
  7  1.23768e-06
  8  18.582
  9  13.6944
  10  9.48807e-07
  11  5.62257e-06
  12  42.2687
  13  8.4353
  14  1.72021
  15  0.811588
  16  18.3582
  17  2.54473
  18  28.2265
  19  18.4596
  20  6.24196e-05
  21  0.767931
  22  4.18266
  23  0.217782
  24  0.135803
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  1.483e-01  2.545e+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:  9.043e-01  1.358e-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.092e+00  2.178e-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.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.63e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/309385/likelihoodResults_444873601_445132801_4FGL_J0811.4+0146_daily_bin793.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): 102
logL (Free Index) = 6926.80387978
delta logL = 0.39543738043

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6926.6460987
delta logL = 0.553218459507

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .61919E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0070       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93584       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=   6926.646     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      289 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .61921E-01    .72241E-01    .20053E-03    .10348E-02
   2  alpha         5.0000        3.1629        .50000    ** at limit **
   3  Normalizat    1.0070        .22428        .30668E-03    .44693E-03
   4  Prefactor     .93584        .13545        .20058E-03    .74111E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0619206
  alpha      = 5
  Normalizat = 1.00703
  Prefactor  = 0.935838
 **********
 **   18 **HESSE 
 **********

 FCN=   6926.646     FROM HESSE     STATUS=OK            31 CALLS      320 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .61921E-01    .69918E-01    .80213E-05   -1.5658    
   2  alpha         5.0000        3.1267        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0070        .22498        .61337E-04   -.92795    
   4  Prefactor     .93584        .13567        .40117E-04   -.94900    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5598e-10
Minuit parameter uncertainties:
  1  0.0699177
  2  7.15467e-06
  3  0.225189
  4  0.135718
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/309385': 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) = 6926.64609849
delta logL = 0.553218663906

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  6.192e-02  6.992e-02  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  5.000e+00  7.155e-06  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:  9.358e-01  1.357e-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.007e+00  2.252e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.24
Ra Dec: 122.861 1.776
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 7.66e-08 +/- 8.60e-08
Energy Flux (Free Index): 1.04e-05 +/- 1.17e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/309385/cmap_HighResolution_444873601_445132801_4FGL_J0811.4+0146_daily_bin793.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.63e-05', comment='SUCCESS', energy_flux2='1.04e-05', dlogl='5.53e-01', photon_flux2='7.66e-08', job_status='DONE', time_completed='2021-08-29 12:32:03.592357', photon_index_error2='0.00', photon_index2='5.00', ts='0.00', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='6.13e-08', energy_flux_error2='1.17e-05', EG='1.09', time_epoch_completed='1630265523.59', return_code='0', job_id='309385', GAL2='0.94', EG2='1.01', return_code2='0', photon_flux_error2='8.60e-08', ts2='1.24', photon_index='2.01' WHERE bin_id='793' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:32:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 309385: <4FGL_J0811.4+0146_daily_bin793> in cluster <slac> Done

Job <4FGL_J0811.4+0146_daily_bin793> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 12:20:21 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:20:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 12:20:22 2021
Terminated at Sun Aug 29 12:32:04 2021
Results reported at Sun Aug 29 12:32:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin793 122.861 1.7756 444873601 445132801 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 :                                   677.23 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             355.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   701 sec.
    Turnaround time :                            703 sec.

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

