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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin774
RA = 122.861, Dec = 1.7756
tmin = 439948801, tmax = 440208001
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='309345', job_status='RUN', time_executed='2021-08-29 12:23:56.301408', time_epoch_executed='1630265036.3' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/309345

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/309345/ft1_4FGL_J0811.4+0146_daily_bin774.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/309345/ft2_4FGL_J0811.4+0146_daily_bin774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/309345/ft1_4FGL_J0811.4+0146_daily_bin774.fits outfile=/scratch/kocevski/309345/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin774.fits ra=122.861 dec=1.7756 rad=12.0 tmin=439948801.0 tmax=440208001.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.30
user 3.13
sys 1.12

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/309345/ft1_filtered_4FGL_J0811.4+0146_daily_bin774.fits" evtable="EVENTS" scfile=/scratch/kocevski/309345/ft2_4FGL_J0811.4+0146_daily_bin774.fits sctable="SC_DATA" outfile=/scratch/kocevski/309345/ltcube_439948801_440208001_4FGL_J0811.4+0146_daily_bin774.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/309345/ft2_4FGL_J0811.4+0146_daily_bin774.fits
.....................!
real 12.86
user 11.32
sys 1.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/309345/ft1_filtered_4FGL_J0811.4+0146_daily_bin774.fits evtable="EVENTS" scfile=/scratch/kocevski/309345/ft2_4FGL_J0811.4+0146_daily_bin774.fits sctable="SC_DATA" expcube=/scratch/kocevski/309345/ltcube_439948801_440208001_4FGL_J0811.4+0146_daily_bin774.fits outfile=/scratch/kocevski/309345/expmap_439948801_440208001_4FGL_J0811.4+0146_daily_bin774.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/309345/ltcube_439948801_440208001_4FGL_J0811.4+0146_daily_bin774.fits
.....................!
real 192.90
user 185.24
sys 6.39

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/309345/ft1_filtered_4FGL_J0811.4+0146_daily_bin774.fits scfile=/scratch/kocevski/309345/ft2_4FGL_J0811.4+0146_daily_bin774.fits outfile=/scratch/kocevski/309345/cmap_439948801_440208001_4FGL_J0811.4+0146_daily_bin774.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.52
user 0.35
sys 1.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/309345/ft1_filtered_4FGL_J0811.4+0146_daily_bin774.fits scfile=/scratch/kocevski/309345/ft2_4FGL_J0811.4+0146_daily_bin774.fits outfile=/scratch/kocevski/309345/cmap_HighResolution_439948801_440208001_4FGL_J0811.4+0146_daily_bin774.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.50
user 0.38
sys 1.11

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.049       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.5301       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.910       1.0000         .10000E-03   10000.    
     4 'norm      '    25.683       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8739       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .59613       1.0000         .10000E-03   10000.    
     8 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.8561       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.1661       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.2752       1.0000         .10000E-03   10000.    
    16 'norm      '    8.6700       1.0000         .10000E-03   10000.    
    17 'norm      '    5.8808       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    16.347       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    11.244       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1333       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .86510       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=   8107.871     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2704 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.081        48.462        .23612E-05    .18078E-03
   2  Prefactor     5.5322        8.4304        .34124E-06   -.17865E-04
   3  Prefactor     16.907        39.905        .26983E-06   -.26801E-04
   4  norm          25.683        4.0091        .31557E-07   -.20733E-03
   5  Prefactor     1.8816        105.19        .40589E-05    .19127E-04
   6  norm          .10000E-03    7.3465        .17124E-06** at limit **
   7  Prefactor     .59581        5.3282        .41007E-05   -.12448E-03
   8  norm          .10000E-03    13.288        .36867E-07** at limit **
   9  Prefactor     2.8547        9.5811       -.25184E-06   -.12159E-03
  10  Prefactor     .10000E-03    54.684        .46670E-06** at limit **
  11  Prefactor     6.1659        7.4642        .24871E-05   -.72375E-04
  12  Prefactor     .10000E-03    56.548       -.85060E-06** at limit **
  13  norm          .10000E-03    5.5483       -.72517E-07** at limit **
  14  norm          .10000E-03    1.2195       -.68361E-07** at limit **
  15  norm          5.2755        1.5649        .37028E-07   -.79872E-04
  16  norm          8.6665        21.087        .10493E-08   -.15100E-04
  17  norm          5.8804        3.8994       -.46807E-08   -.51041E-04
  18  Prefactor     .10000E-03    13.273        .23060E-06** at limit **
  19  norm          16.350        22.534        .41614E-06    .24407E-04
  20  Prefactor     .10000E-03    12.366       -.66681E-06** at limit **
  21  norm          11.244        1.8917        .10680E-07   -.41240E-04
  22  norm          .10000E-03    6.5474       -.16767E-06** at limit **
  23  Normalizat    1.1337        .20797        .35248E-06   -.15254E-03
  24  Prefactor     .86487        .13345       -.15794E-05   -.53482E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.0811
  Prefactor  = 5.53225
  Prefactor  = 16.9071
  norm       = 25.6832
  Prefactor  = 1.88156
  norm       = 0.0001
  Prefactor  = 0.595814
  norm       = 0.0001
  Prefactor  = 2.85466
  Prefactor  = 0.000100001
  Prefactor  = 6.1659
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.27546
  norm       = 8.66648
  norm       = 5.88044
  Prefactor  = 0.0001
  norm       = 16.3501
  Prefactor  = 0.000100001
  norm       = 11.2439
  norm       = 0.0001
  Normalizat = 1.13368
  Prefactor  = 0.864873
 **********
 **   18 **HESSE 
 **********

 FCN=   8107.871     FROM HESSE     STATUS=OK           401 CALLS     3105 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.081        48.596        .81682E-04   -1.4726    
   2  Prefactor     5.5322        8.4458        .17085E-03   -1.5238    
   3  Prefactor     16.907        39.899        .97396E-04   -1.4885    
   4  norm          25.683        4.0082        .65942E-04   -1.4694    
   5  Prefactor     1.8816        106.42        .30420E-03   -1.5434    
   6  norm          .10000E-03    7.3670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .59581        5.3870        .39120E-03   -1.5554    
   8  norm          .10000E-03    13.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.8547        9.4826        .24056E-03   -1.5370    
  10  Prefactor     .10000E-03    54.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.1659        7.4872        .80836E-03   -1.5211    
  12  Prefactor     .10000E-03    56.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.5763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.2377        .96971E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.2755        1.5650        .58209E-04   -1.5249    
  16  norm          8.6665        21.082        .13613E-03   -1.5119    
  17  norm          5.8804        3.8981        .13922E-03   -1.5223    
  18  Prefactor     .10000E-03    13.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          16.350        22.554        .99062E-04   -1.4899    
  20  Prefactor     .10000E-03    12.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          11.244        1.8995        .48020E-04   -1.5037    
  22  norm          .10000E-03    6.6898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1337        .23754        .33453E-03   -.88678    
  24  Prefactor     .86487        .15159        .23702E-03   -.97380    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.78934e-10
Minuit parameter uncertainties:
  1  48.6756
  2  8.44758
  3  39.9624
  4  4.00823
  5  28.3529
  6  5.24378e-05
  7  3.58322
  8  8.76037e-05
  9  9.48755
  10  0.000390297
  11  7.48836
  12  0.000483026
  13  5.43352e-06
  14  2.42758e-06
  15  1.56497
  16  21.1003
  17  3.8983
  18  8.92171e-05
  19  22.5653
  20  0.000190254
  21  1.89955
  22  2.15311e-05
  23  0.23777
  24  0.151665
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  5.880e+00  3.898e+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.649e-01  1.517e-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.134e+00  2.378e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.39
Ra Dec: 122.861 1.776
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 4.22e-08 +/- 2.80e-08
Energy Flux (Fixed Index): 2.50e-05 +/- 1.66e-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) = 8106.84526339
delta logL = 1.02592627163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8106.8296736
delta logL = 1.04151606639

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2304       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0558       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0196       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90412       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=   8106.830     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      243 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2304        27.688        .48978E-02    .12767E-03
   2  alpha         3.0558        3.9061        .27911        .10556E-03
   3  Normalizat    1.0196        .96067E-01    .78955E-01    .58215E-04
   4  Prefactor     .90411        .48053E-01    .45057E-01    .41606E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.23042
  alpha      = 3.05578
  Normalizat = 1.01962
  Prefactor  = 0.904114
 **********
 **   18 **HESSE 
 **********

 FCN=   8106.830     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2304        4.0364        .81846E-04   -1.5297    
   2  alpha         3.0558        .74454        .10429E-01    .22418    
   3  Normalizat    1.0196        .24228        .34947E-03   -.92376    
   4  Prefactor     .90411        .14586        .23215E-03   -.95998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53746e-10
Minuit parameter uncertainties:
  1  4.03666
  2  0.756632
  3  0.242541
  4  0.145921
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/309345': 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) = 8106.8296736
delta logL = 1.0415160669

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  4.230e+00  4.037e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  3.056e+00  7.566e-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:  9.041e-01  1.459e-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.020e+00  2.425e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.67
Ra Dec: 122.861 1.776
Photon Index (Free Index): 3.06 +/- 0.76
Photon Flux (Free Index): 1.44e-07 +/- 9.38e-08
Energy Flux (Free Index): 2.95e-05 +/- 1.43e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/309345/cmap_HighResolution_439948801_440208001_4FGL_J0811.4+0146_daily_bin774.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.22e-08', energy_flux2='2.95e-05', photon_flux_error='2.80e-08', dlogl='1.04e+00', energy_flux='2.50e-05', photon_flux2='1.44e-07', job_status='DONE', time_completed='2021-08-29 12:35:31.703318', photon_index_error2='0.76', photon_index2='3.06', ts='6.39', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='1.43e-05', EG='1.13', time_epoch_completed='1630265731.7', return_code='0', job_id='309345', GAL2='0.90', EG2='1.02', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='9.38e-08', ts2='8.67', photon_index='2.01' WHERE bin_id='774' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:35:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 309345: <4FGL_J0811.4+0146_daily_bin774> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin774 122.861 1.7756 439948801 440208001 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 :                                   704.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             300.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            914 sec.

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

