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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin197
RA = 122.861, Dec = 1.7756
tmin = 290390401, tmax = 290649601
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='303154', job_status='RUN', time_executed='2021-08-29 12:04:33.787511', time_epoch_executed='1630263873.79' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='197'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/303154

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/303154/ft1_4FGL_J0811.4+0146_daily_bin197.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/303154/ft2_4FGL_J0811.4+0146_daily_bin197.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/303154/ft1_4FGL_J0811.4+0146_daily_bin197.fits outfile=/scratch/kocevski/303154/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin197.fits ra=122.861 dec=1.7756 rad=12.0 tmin=290390401.0 tmax=290649601.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.64
user 3.20
sys 0.42

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/303154/ft2_4FGL_J0811.4+0146_daily_bin197.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/303154/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin197.fits evtable="EVENTS" outfile="/scratch/kocevski/303154/ft1_filtered_4FGL_J0811.4+0146_daily_bin197.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.76
user 0.34
sys 0.35

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/303154/ft1_filtered_4FGL_J0811.4+0146_daily_bin197.fits" evtable="EVENTS" scfile=/scratch/kocevski/303154/ft2_4FGL_J0811.4+0146_daily_bin197.fits sctable="SC_DATA" outfile=/scratch/kocevski/303154/ltcube_290390401_290649601_4FGL_J0811.4+0146_daily_bin197.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/303154/ft2_4FGL_J0811.4+0146_daily_bin197.fits
.....................!
real 11.98
user 11.37
sys 0.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/303154/ft1_filtered_4FGL_J0811.4+0146_daily_bin197.fits evtable="EVENTS" scfile=/scratch/kocevski/303154/ft2_4FGL_J0811.4+0146_daily_bin197.fits sctable="SC_DATA" expcube=/scratch/kocevski/303154/ltcube_290390401_290649601_4FGL_J0811.4+0146_daily_bin197.fits outfile=/scratch/kocevski/303154/expmap_290390401_290649601_4FGL_J0811.4+0146_daily_bin197.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/303154/ltcube_290390401_290649601_4FGL_J0811.4+0146_daily_bin197.fits
.....................!
real 190.61
user 185.64
sys 4.59

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/303154/ft1_filtered_4FGL_J0811.4+0146_daily_bin197.fits scfile=/scratch/kocevski/303154/ft2_4FGL_J0811.4+0146_daily_bin197.fits outfile=/scratch/kocevski/303154/cmap_290390401_290649601_4FGL_J0811.4+0146_daily_bin197.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.36
sys 0.36

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.209       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.740       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.1951       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.5239       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.1133       1.0000         .10000E-03   10000.    
     8 'norm      '    21.347       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.240       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.218       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.4919       1.0000         .10000E-03   10000.    
    15 'norm      '    1.4497       1.0000         .10000E-03   10000.    
    16 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.6326       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .35220E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4737       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .76568       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=   7395.453     FROM MIGRAD    STATUS=CONVERGED    545 CALLS     2685 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.209        39.806        .85834E-07   -.51224E-05
   2  Prefactor     12.739        10.850        .11321E-06   -.32269E-04
   3  Prefactor     .10000E-03    15.545        .10640E-05** at limit **
   4  norm          2.1952        1.6528        .46822E-07   -.12838E-03
   5  Prefactor     .10000E-03    24.226        .19925E-05** at limit **
   6  norm          4.5230        13.179        .51672E-05   -.44555E-03
   7  Prefactor     5.1139        4.1155        .72131E-07   -.67579E-04
   8  norm          21.348        20.898        .21423E-07   -.19182E-04
   9  Prefactor     15.242        14.063       -.29865E-07   -.38711E-04
  10  Prefactor     .10000E-03    90.372       -.12363E-05** at limit **
  11  Prefactor     .10000E-03    3.4989        .28449E-07** at limit **
  12  Prefactor     22.230        34.660        .32716E-05    .22267E-03
  13  norm          .10000E-03    3.1792        .51528E-07** at limit **
  14  norm          1.4920        1.4190        .42603E-08   -.69457E-04
  15  norm          1.4498        .78388        .76183E-08   -.12446E-04
  16  norm          .10000E-03    12.720       -.11059E-05** at limit **
  17  norm          3.6326        3.9234        .26057E-06    .18679E-04
  18  Prefactor     .10000E-03    14.777        .18513E-05** at limit **
  19  norm          .10001E-03    17.443       -.43475E-05** at limit **
  20  Prefactor     .10000E-03    5.9639       -.90649E-07** at limit **
  21  norm          .39777E-01    .47112       -.24655E-08    .13441E-03
  22  norm          .10000E-03    2.1879       -.54914E-07** at limit **
  23  Normalizat    1.4734        .19452       -.49305E-06   -.22460E-04
  24  Prefactor     .76575        .11921       -.46293E-06   -.70369E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.2094
  Prefactor  = 12.7395
  Prefactor  = 0.0001
  norm       = 2.19523
  Prefactor  = 0.000100002
  norm       = 4.52299
  Prefactor  = 5.11386
  norm       = 21.3477
  Prefactor  = 15.2416
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 22.23
  norm       = 0.0001
  norm       = 1.49199
  norm       = 1.44975
  norm       = 0.000100001
  norm       = 3.63262
  Prefactor  = 0.000100001
  norm       = 0.000100006
  Prefactor  = 0.0001
  norm       = 0.0397766
  norm       = 0.0001
  Normalizat = 1.47345
  Prefactor  = 0.765754
 **********
 **   18 **HESSE 
 **********

 FCN=   7395.453     FROM HESSE     STATUS=OK           399 CALLS     3084 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.209        39.838        .54478E-04   -1.4234    
   2  Prefactor     12.739        10.899        .11223E-03   -1.4994    
   3  Prefactor     .10000E-03    15.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.1952        1.6539        .91412E-04   -1.5412    
   5  Prefactor     .10000E-03    24.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.5230        14.559        .94640E-03   -1.5283    
   7  Prefactor     5.1139        4.1135        .14989E-03   -1.5256    
   8  norm          21.348        20.897        .86692E-04   -1.4784    
   9  Prefactor     15.242        14.065        .10260E-03   -1.4927    
  10  Prefactor     .10000E-03    90.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.5311        .15707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.230        35.881        .84976E-04   -1.4765    
  13  norm          .10000E-03    3.1858        .14974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.4920        1.4143        .97015E-04   -1.5464    
  15  norm          1.4498        .78232        .54230E-04   -1.5467    
  16  norm          .10000E-03    12.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.6326        3.9134        .16963E-03   -1.5327    
  18  Prefactor     .10000E-03    15.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10001E-03    18.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.9758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .39777E-01    6.6192        .11103E-02   -1.5668    
  22  norm          .10000E-03    2.1905        .12422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4734        .22561        .27243E-03   -.78527    
  24  Prefactor     .76575        .13772        .22302E-03   -1.0100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91035e-09
Minuit parameter uncertainties:
  1  39.8578
  2  10.9012
  3  0.000168929
  4  1.65394
  5  0.000395285
  6  14.5708
  7  4.11371
  8  20.904
  9  14.0685
  10  0.000458777
  11  3.86039e-06
  12  35.9159
  13  3.02314e-06
  14  1.4143
  15  0.782325
  16  0.000235567
  17  3.91363
  18  0.00026949
  19  0.000673906
  20  6.11101e-06
  21  1.02506
  22  1.94561e-06
  23  0.225765
  24  0.13778
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  3.633e+00  3.914e+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.658e-01  1.378e-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.473e+00  2.258e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.17
Ra Dec: 122.861 1.776
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 2.61e-08 +/- 2.81e-08
Energy Flux (Fixed Index): 1.54e-05 +/- 1.66e-05

TS (Fixed Index): 1.17
Ra Dec: 122.861 1.776
Photon Flux Upper Limit: 9.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.35e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/303154/likelihoodResults_290390401_290649601_4FGL_J0811.4+0146_daily_bin197.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) = 7395.3961685
delta logL = 0.0570331975396

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7395.39464884
delta logL = 0.0585528565189

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4766       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2555       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4645       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76850       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=   7395.395     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      212 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4796        114.02        .54218E-02    .49560E-03
   2  alpha         2.2564        2.9285        .41403        .22661E-04
   3  Normalizat    1.4644        .94112E-01    .61754E-01    .29806E-04
   4  Prefactor     .76853        .45422E-01    .43306E-01   -.84304E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.47955
  alpha      = 2.25637
  Normalizat = 1.46444
  Prefactor  = 0.768534
 **********
 **   18 **HESSE 
 **********

 FCN=   7395.395     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4796        3.8446        .15674E-03   -1.5335    
   2  alpha         2.2564        .76598        .18884E-01   -.97607E-01
   3  Normalizat    1.4644        .21366        .27311E-03   -.78782    
   4  Prefactor     .76853        .13035        .22264E-03   -1.0090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.265e-11
Minuit parameter uncertainties:
  1  3.84485
  2  0.778632
  3  0.213791
  4  0.130399
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/303154': 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) = 7395.39464738
delta logL = 0.0585543221787

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  3.480e+00  3.845e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.256e+00  7.786e-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.685e-01  1.304e-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.464e+00  2.138e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.29
Ra Dec: 122.861 1.776
Photon Index (Free Index): 2.26 +/- 0.78
Photon Flux (Free Index): 3.44e-08 +/- 4.11e-08
Energy Flux (Free Index): 1.36e-05 +/- 1.50e-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/303154/cmap_HighResolution_290390401_290649601_4FGL_J0811.4+0146_daily_bin197.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.35e-05', comment='SUCCESS', photon_flux='2.61e-08', energy_flux2='1.36e-05', photon_flux_error='2.81e-08', dlogl='5.86e-02', energy_flux='1.54e-05', photon_flux2='3.44e-08', job_status='DONE', time_completed='2021-08-29 12:16:07.681816', photon_index_error2='0.78', photon_index2='2.26', ts='1.17', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='9.02e-08', energy_flux_error2='1.50e-05', EG='1.47', time_epoch_completed='1630264567.68', return_code='0', job_id='303154', GAL2='0.77', EG2='1.46', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='4.11e-08', ts2='1.29', photon_index='2.01' WHERE bin_id='197' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:16:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 303154: <4FGL_J0811.4+0146_daily_bin197> in cluster <slac> Done

Job <4FGL_J0811.4+0146_daily_bin197> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 29 12:00:38 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:00:40 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:00:40 2021
Terminated at Sun Aug 29 12:16:08 2021
Results reported at Sun Aug 29 12:16:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin197 122.861 1.7756 290390401 290649601 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 :                                   697.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             271.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            930 sec.

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

