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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin434
RA = 122.861, Dec = 1.7756
tmin = 351820801, tmax = 352080001
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='306263', job_status='RUN', time_executed='2021-08-29 12:14:34.430554', time_epoch_executed='1630264474.43' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='434'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/306263

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/306263/ft1_4FGL_J0811.4+0146_daily_bin434.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/306263/ft2_4FGL_J0811.4+0146_daily_bin434.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/306263/ft1_4FGL_J0811.4+0146_daily_bin434.fits outfile=/scratch/kocevski/306263/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin434.fits ra=122.861 dec=1.7756 rad=12.0 tmin=351820801.0 tmax=352080001.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.18
user 3.40
sys 0.69

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/306263/ft1_filtered_4FGL_J0811.4+0146_daily_bin434.fits" evtable="EVENTS" scfile=/scratch/kocevski/306263/ft2_4FGL_J0811.4+0146_daily_bin434.fits sctable="SC_DATA" outfile=/scratch/kocevski/306263/ltcube_351820801_352080001_4FGL_J0811.4+0146_daily_bin434.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/306263/ft2_4FGL_J0811.4+0146_daily_bin434.fits
.....................!
real 12.40
user 11.53
sys 0.83

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/306263/ft1_filtered_4FGL_J0811.4+0146_daily_bin434.fits evtable="EVENTS" scfile=/scratch/kocevski/306263/ft2_4FGL_J0811.4+0146_daily_bin434.fits sctable="SC_DATA" expcube=/scratch/kocevski/306263/ltcube_351820801_352080001_4FGL_J0811.4+0146_daily_bin434.fits outfile=/scratch/kocevski/306263/expmap_351820801_352080001_4FGL_J0811.4+0146_daily_bin434.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/306263/ltcube_351820801_352080001_4FGL_J0811.4+0146_daily_bin434.fits
.....................!
real 191.31
user 185.93
sys 4.95

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/306263/ft1_filtered_4FGL_J0811.4+0146_daily_bin434.fits scfile=/scratch/kocevski/306263/ft2_4FGL_J0811.4+0146_daily_bin434.fits outfile=/scratch/kocevski/306263/cmap_351820801_352080001_4FGL_J0811.4+0146_daily_bin434.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=122.861 yref=1.7756 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.02
user 0.37
sys 0.63

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/306263/ft1_filtered_4FGL_J0811.4+0146_daily_bin434.fits scfile=/scratch/kocevski/306263/ft2_4FGL_J0811.4+0146_daily_bin434.fits outfile=/scratch/kocevski/306263/cmap_HighResolution_351820801_352080001_4FGL_J0811.4+0146_daily_bin434.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=122.861 yref=1.7756 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.00
user 0.37
sys 0.58

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.351       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.544       1.0000         .10000E-03   10000.    
     4 'norm      '    1.4941       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.385       1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .12397E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.774       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.9040       1.0000         .10000E-03   10000.    
    12 'Prefactor '    59.123       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.8822       1.0000         .10000E-03   10000.    
    15 'norm      '    1.9262       1.0000         .10000E-03   10000.    
    16 'norm      '    .10313E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.0063       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0355       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .38375       1.0000         .10000E-03   10000.    
    22 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1847       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84024       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=   5521.190     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     2796 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.336        68.367       -.16231E-04    .49453E-05
   2  Prefactor     .10000E-03    3.1605        .29293E-07** at limit **
   3  Prefactor     36.538        43.215       -.55766E-05    .34076E-05
   4  norm          1.4947        1.6584        .18488E-06   -.25820E-03
   5  Prefactor     20.385        18.663       -.12792E-06    .76726E-05
   6  norm          .10000E-03    9.4560       -.26454E-07** at limit **
   7  Prefactor     .10000E-03    2.1157       -.15484E-08** at limit **
   8  norm          .10000E-03    21.443        .19051E-06** at limit **
   9  Prefactor     28.777        14.774       -.36723E-06    .30660E-04
  10  Prefactor     .10000E-03    67.742        .78497E-06** at limit **
  11  Prefactor     7.9042        9.4939       -.38758E-06   -.66359E-04
  12  Prefactor     59.133        37.782        .78980E-05    .57111E-04
  13  norm          .10000E-03    4.0512       -.25771E-07** at limit **
  14  norm          1.8820        2.4088       -.13281E-06   -.19976E-03
  15  norm          1.9262        1.1921       -.63008E-07   -.12112E-03
  16  norm          .10000E-03    29.074       -.69025E-06** at limit **
  17  norm          6.0067        4.5750       -.38507E-06   -.11612E-03
  18  Prefactor     2.0319        193.26       -.19835E-04   -.33561E-04
  19  norm          .10000E-03    7.3163        .15485E-07** at limit **
  20  Prefactor     .10000E-03    4.6306        .82542E-08** at limit **
  21  norm          .38329        .76023       -.22806E-06   -.17238E-02
  22  norm          .10000E-03    2.5491       -.15268E-07** at limit **
  23  Normalizat    1.1845        .21632       -.64070E-06    .16092E-03
  24  Prefactor     .84037        .13486        .18815E-05   -.41011E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.3363
  Prefactor  = 0.0001
  Prefactor  = 36.5381
  norm       = 1.49475
  Prefactor  = 20.385
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 28.7772
  Prefactor  = 0.0001
  Prefactor  = 7.90423
  Prefactor  = 59.1331
  norm       = 0.0001
  norm       = 1.88205
  norm       = 1.92617
  norm       = 0.0001
  norm       = 6.00666
  Prefactor  = 2.03195
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.383295
  norm       = 0.0001
  Normalizat = 1.18451
  Prefactor  = 0.84037
 **********
 **   18 **HESSE 
 **********

 FCN=   5521.190     FROM HESSE     STATUS=OK           397 CALLS     3193 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.336        68.011        .52078E-04   -1.4166    
   2  Prefactor     .10000E-03    3.1628        .12901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     36.538        43.167        .66296E-04   -1.4498    
   4  norm          1.4947        1.6313        .95525E-04   -1.5463    
   5  Prefactor     20.385        18.669        .88710E-04   -1.4805    
   6  norm          .10000E-03    9.4709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.1401        .10549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    21.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.777        14.781        .74688E-04   -1.4635    
  10  Prefactor     .10000E-03    67.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.9042        9.4794        .14262E-03   -1.5146    
  12  Prefactor     59.133        37.777        .52178E-04   -1.4168    
  13  norm          .10000E-03    4.0594        .14604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.8820        2.3885        .12373E-03   -1.5434    
  15  norm          1.9262        1.1859        .60789E-04   -1.5430    
  16  norm          .10000E-03    29.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.0067        4.5761        .13350E-03   -1.5218    
  18  Prefactor     2.0319        199.27        .28991E-03   -1.5423    
  19  norm          .10000E-03    7.3172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.6365        .15615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .38329        .64199        .88041E-03   -1.5584    
  22  norm          .10000E-03    2.5548        .11585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1845        .24840        .27857E-03   -.87083    
  24  Prefactor     .84037        .15541        .20897E-03   -.98257    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.35353e-10
Minuit parameter uncertainties:
  1  68.1004
  2  5.42895e-06
  3  43.2041
  4  1.63132
  5  18.6747
  6  9.49664e-06
  7  7.55322e-07
  8  1.89455e-06
  9  14.7828
  10  2.44149e-07
  11  9.48123
  12  37.792
  13  3.82233e-06
  14  2.38863
  15  1.18589
  16  0.000227821
  17  4.57641
  18  40.3828
  19  1.38926e-06
  20  3.28197e-06
  21  0.642004
  22  1.53384e-06
  23  0.248652
  24  0.155496
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  6.007e+00  4.576e+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:  8.404e-01  1.555e-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.185e+00  2.487e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.21
Ra Dec: 122.861 1.776
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 4.31e-08 +/- 3.28e-08
Energy Flux (Fixed Index): 2.55e-05 +/- 1.95e-05

TS (Fixed Index): 3.21
Ra Dec: 122.861 1.776
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.02e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/306263/likelihoodResults_351820801_352080001_4FGL_J0811.4+0146_daily_bin434.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) = 5521.18232747
delta logL = 0.00763024868957

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5521.1816507
delta logL = 0.00830702075655

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8894       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0990       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1798       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84195       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=   5521.182     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      204 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.8884        118.29        .41369E-02    .50317E-03
   2  alpha         2.0992        2.9175        .41841        .28562E-04
   3  Normalizat    1.1794        .13573        .63093E-01    .34908E-03
   4  Prefactor     .84223        .56586E-01    .44261E-01   -.10255E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.88844
  alpha      = 2.09922
  Normalizat = 1.17941
  Prefactor  = 0.842233
 **********
 **   18 **HESSE 
 **********

 FCN=   5521.182     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.8884        4.6756        .13061E-03   -1.5223    
   2  alpha         2.0992        .73982        .14653E-01   -.16101    
   3  Normalizat    1.1794        .23112        .27908E-03   -.87241    
   4  Prefactor     .84223        .14746        .20876E-03   -.98190    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.66841e-10
Minuit parameter uncertainties:
  1  4.67594
  2  0.751376
  3  0.231318
  4  0.147534
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/306263': 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) = 5521.18164883
delta logL = 0.00830889222198

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  5.888e+00  4.676e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.099e+00  7.514e-01  0.000e+00  5.000e+00 ( 1.000e+00)
274         beta:  6.882e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
275           Eb:  9.156e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  8.422e-01  1.475e-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.179e+00  2.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.22
Ra Dec: 122.861 1.776
Photon Index (Free Index): 2.10 +/- 0.75
Photon Flux (Free Index): 4.73e-08 +/- 4.81e-08
Energy Flux (Free Index): 2.38e-05 +/- 2.24e-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/306263/cmap_HighResolution_351820801_352080001_4FGL_J0811.4+0146_daily_bin434.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.02e-05', comment='SUCCESS', photon_flux='4.31e-08', energy_flux2='2.38e-05', photon_flux_error='3.28e-08', dlogl='8.31e-03', energy_flux='2.55e-05', photon_flux2='4.73e-08', job_status='DONE', time_completed='2021-08-29 12:24:52.147973', photon_index_error2='0.75', photon_index2='2.10', ts='3.21', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='2.24e-05', EG='1.18', time_epoch_completed='1630265092.15', return_code='0', job_id='306263', GAL2='0.84', EG2='1.18', return_code2='0', energy_flux_error='1.95e-05', photon_flux_error2='4.81e-08', ts2='3.22', photon_index='2.01' WHERE bin_id='434' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:24:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 306263: <4FGL_J0811.4+0146_daily_bin434> in cluster <slac> Done

Job <4FGL_J0811.4+0146_daily_bin434> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 12:10:32 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:10:34 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:10:34 2021
Terminated at Sun Aug 29 12:24:52 2021
Results reported at Sun Aug 29 12:24:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin434 122.861 1.7756 351820801 352080001 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 :                                   623.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             274.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            860 sec.

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

