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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin922
RA = 122.861, Dec = 1.7756
tmin = 478310401, tmax = 478569601
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='309621', job_status='RUN', time_executed='2021-08-29 12:23:37.599989', time_epoch_executed='1630265017.6' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='922'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/309621

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/309621/ft1_4FGL_J0811.4+0146_daily_bin922.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/309621/ft2_4FGL_J0811.4+0146_daily_bin922.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/309621/ft1_4FGL_J0811.4+0146_daily_bin922.fits outfile=/scratch/kocevski/309621/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin922.fits ra=122.861 dec=1.7756 rad=12.0 tmin=478310401.0 tmax=478569601.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 4.23
user 3.31
sys 0.44

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/309621/ft1_filtered_4FGL_J0811.4+0146_daily_bin922.fits" evtable="EVENTS" scfile=/scratch/kocevski/309621/ft2_4FGL_J0811.4+0146_daily_bin922.fits sctable="SC_DATA" outfile=/scratch/kocevski/309621/ltcube_478310401_478569601_4FGL_J0811.4+0146_daily_bin922.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/309621/ft2_4FGL_J0811.4+0146_daily_bin922.fits
.....................!
real 12.12
user 11.48
sys 0.53

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/309621/ft1_filtered_4FGL_J0811.4+0146_daily_bin922.fits evtable="EVENTS" scfile=/scratch/kocevski/309621/ft2_4FGL_J0811.4+0146_daily_bin922.fits sctable="SC_DATA" expcube=/scratch/kocevski/309621/ltcube_478310401_478569601_4FGL_J0811.4+0146_daily_bin922.fits outfile=/scratch/kocevski/309621/expmap_478310401_478569601_4FGL_J0811.4+0146_daily_bin922.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/309621/ltcube_478310401_478569601_4FGL_J0811.4+0146_daily_bin922.fits
.....................!
real 190.32
user 184.96
sys 4.78

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/309621/ft1_filtered_4FGL_J0811.4+0146_daily_bin922.fits scfile=/scratch/kocevski/309621/ft2_4FGL_J0811.4+0146_daily_bin922.fits outfile=/scratch/kocevski/309621/cmap_478310401_478569601_4FGL_J0811.4+0146_daily_bin922.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.77
user 0.37
sys 0.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/309621/ft1_filtered_4FGL_J0811.4+0146_daily_bin922.fits scfile=/scratch/kocevski/309621/ft2_4FGL_J0811.4+0146_daily_bin922.fits outfile=/scratch/kocevski/309621/cmap_HighResolution_478310401_478569601_4FGL_J0811.4+0146_daily_bin922.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.74
user 0.38
sys 0.35

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    46.356       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.511       1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    32.251       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .18690E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.3930       1.0000         .10000E-03   10000.    
    14 'norm      '    3.5602       1.0000         .10000E-03   10000.    
    15 'norm      '    2.1511       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    14.658       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10492E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.4937       1.0000         .10000E-03   10000.    
    22 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2187       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .75280       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=   7011.519     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2797 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.253        .41170E-07** at limit **
   2  Prefactor     .10000E-03    2.6288        .36731E-08** at limit **
   3  Prefactor     46.349        33.302        .36931E-06    .50058E-04
   4  norm          .10000E-03    .60979        .32109E-08** at limit **
   5  Prefactor     14.509        20.376       -.87911E-08   -.70752E-05
   6  norm          .10000E-03    3.8550        .50622E-08** at limit **
   7  Prefactor     .10000E-03    1.6244       -.51778E-07** at limit **
   8  norm          32.264        23.892        .23961E-05    .21407E-03
   9  Prefactor     .10460E-03    17.030       -.35131E-05** at limit **
  10  Prefactor     .10000E-03    63.352       -.10717E-06** at limit **
  11  Prefactor     .10000E-03    9.3247        .17034E-05** at limit **
  12  Prefactor     .10000E-03    9.0103       -.62956E-06** at limit **
  13  norm          2.3928        8.0066        .22602E-05    .55450E-04
  14  norm          3.5599        2.5661        .31669E-07   -.26671E-03
  15  norm          2.1510        1.0526       -.11959E-07   -.10155E-03
  16  norm          .10000E-03    5.3735       -.89913E-08** at limit **
  17  norm          14.658        4.9123       -.13728E-06   -.14879E-03
  18  Prefactor     .10000E-03    98.833        .62432E-06** at limit **
  19  norm          .10000E-03    6.2857       -.78977E-08** at limit **
  20  Prefactor     .10000E-03    8.0228        .49435E-07** at limit **
  21  norm          1.4937        .83965       -.15632E-07    .59857E-04
  22  norm          .10000E-03    9.1631       -.10797E-05** at limit **
  23  Normalizat    1.2185        .18073        .86613E-06    .11071E-03
  24  Prefactor     .75288        .11093       -.29847E-06    .15366E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.3492
  norm       = 0.0001
  Prefactor  = 14.5094
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 32.2642
  Prefactor  = 0.000104595
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.39282
  norm       = 3.55993
  norm       = 2.15103
  norm       = 0.0001
  norm       = 14.6577
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.49374
  norm       = 0.0001
  Normalizat = 1.21855
  Prefactor  = 0.752882
 **********
 **   18 **HESSE 
 **********

 FCN=   7011.519     FROM HESSE     STATUS=OK           397 CALLS     3194 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.6320        .13258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     46.349        33.333        .58890E-04   -1.4345    
   4  norm          .10000E-03    .62292        .63781E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.509        20.395        .10515E-03   -1.4946    
   6  norm          .10000E-03    3.8574        .16057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.6322        .10418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          32.264        29.198        .70557E-04   -1.4571    
   9  Prefactor     .10460E-03    23.074        .78538E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    63.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.4129        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.0470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.3928        7.8677        .26474E-03   -1.5399    
  14  norm          3.5599        2.5593        .10755E-03   -1.5331    
  15  norm          2.1510        1.0521        .28094E-04   -1.5415    
  16  norm          .10000E-03    5.3771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          14.658        4.9194        .10374E-03   -1.4942    
  18  Prefactor     .10000E-03    100.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.2910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.0614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.4937        .84277        .55500E-04   -1.5464    
  22  norm          .10000E-03    9.5499        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2185        .20680        .27311E-03   -.86032    
  24  Prefactor     .75288        .12647        .20879E-03   -1.0149    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73324e-10
Minuit parameter uncertainties:
  1  6.7474e-06
  2  6.7933e-07
  3  33.3466
  4  1.68672e-06
  5  20.4049
  6  1.02846e-07
  7  6.36873e-07
  8  29.2107
  9  0.0206027
  10  1.65419e-05
  11  1.67994e-05
  12  4.38976e-05
  13  7.8711
  14  2.55938
  15  1.05213
  16  7.17741e-07
  17  4.91949
  18  8.54002e-05
  19  7.26807e-07
  20  1.02734e-06
  21  0.842777
  22  4.36985e-05
  23  0.206934
  24  0.126518
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  1.466e+01  4.919e+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.529e-01  1.265e-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.219e+00  2.069e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 34.55
Ra Dec: 122.861 1.776
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 1.05e-07 +/- 3.53e-08
Energy Flux (Fixed Index): 6.23e-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) = 7008.66989506
delta logL = 2.84872765501

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7008.6540288
delta logL = 2.8645939116

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.657       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3958       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2594       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74211       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=   7008.654     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      215 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.657        4.9244        .27097E-02   -.65316E-02
   2  alpha         1.3958        .21404        .17804       -.42358E-04
   3  Normalizat    1.2594        .17648        .60914E-01    .42653E-04
   4  Prefactor     .74215        .10914        .42959E-01    .40507E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.6568
  alpha      = 1.39583
  Normalizat = 1.25937
  Prefactor  = 0.742148
 **********
 **   18 **HESSE 
 **********

 FCN=   7008.654     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.657        5.5082        .10650E-03   -1.4969    
   2  alpha         1.3958        .24650        .76496E-02   -.45746    
   3  Normalizat    1.2594        .20121        .26941E-03   -.84788    
   4  Prefactor     .74215        .12445        .21022E-03   -1.0190    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.55091e-09
Minuit parameter uncertainties:
  1  5.50837
  2  0.247001
  3  0.201333
  4  0.124497
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/309621': 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) = 7008.65402873
delta logL = 2.86459398243

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  1.366e+01  5.508e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  1.396e+00  2.470e-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:  7.421e-01  1.245e-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.259e+00  2.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 40.23
Ra Dec: 122.861 1.776
Photon Index (Free Index): 1.40 +/- 0.25
Photon Flux (Free Index): 5.98e-08 +/- 2.67e-08
Energy Flux (Free Index): 1.57e-04 +/- 8.65e-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/309621/cmap_HighResolution_478310401_478569601_4FGL_J0811.4+0146_daily_bin922.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.05e-07', energy_flux2='1.57e-04', photon_flux_error='3.53e-08', dlogl='2.86e+00', energy_flux='6.23e-05', photon_flux2='5.98e-08', job_status='DONE', time_completed='2021-08-29 12:34:00.543959', photon_index_error2='0.25', photon_index2='1.40', ts='34.55', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='8.65e-05', EG='1.22', time_epoch_completed='1630265640.54', return_code='0', job_id='309621', GAL2='0.74', EG2='1.26', return_code2='0', energy_flux_error='2.09e-05', photon_flux_error2='2.67e-08', ts2='40.23', photon_index='2.01' WHERE bin_id='922' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:34:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 309621: <4FGL_J0811.4+0146_daily_bin922> in cluster <slac> Done

Job <4FGL_J0811.4+0146_daily_bin922> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 12:20:39 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:20:41 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:41 2021
Terminated at Sun Aug 29 12:34:00 2021
Results reported at Sun Aug 29 12:34:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin922 122.861 1.7756 478310401 478569601 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 :                                   624.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            801 sec.

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

