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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin208
RA = 122.861, Dec = 1.7756
tmin = 293241601, tmax = 293500801
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='303170', job_status='RUN', time_executed='2021-08-29 12:04:14.180439', time_epoch_executed='1630263854.18' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='208'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/303170

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/303170/ft1_4FGL_J0811.4+0146_daily_bin208.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/303170/ft2_4FGL_J0811.4+0146_daily_bin208.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/303170/ft1_4FGL_J0811.4+0146_daily_bin208.fits outfile=/scratch/kocevski/303170/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin208.fits ra=122.861 dec=1.7756 rad=12.0 tmin=293241601.0 tmax=293500801.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.28
user 2.51
sys 0.67

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/303170/ft2_4FGL_J0811.4+0146_daily_bin208.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/303170/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin208.fits evtable="EVENTS" outfile="/scratch/kocevski/303170/ft1_filtered_4FGL_J0811.4+0146_daily_bin208.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.92
user 0.26
sys 0.61

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/303170/ft1_filtered_4FGL_J0811.4+0146_daily_bin208.fits" evtable="EVENTS" scfile=/scratch/kocevski/303170/ft2_4FGL_J0811.4+0146_daily_bin208.fits sctable="SC_DATA" outfile=/scratch/kocevski/303170/ltcube_293241601_293500801_4FGL_J0811.4+0146_daily_bin208.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/303170/ft2_4FGL_J0811.4+0146_daily_bin208.fits
.....................!
real 9.21
user 8.39
sys 0.80

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/303170/ft1_filtered_4FGL_J0811.4+0146_daily_bin208.fits evtable="EVENTS" scfile=/scratch/kocevski/303170/ft2_4FGL_J0811.4+0146_daily_bin208.fits sctable="SC_DATA" expcube=/scratch/kocevski/303170/ltcube_293241601_293500801_4FGL_J0811.4+0146_daily_bin208.fits outfile=/scratch/kocevski/303170/expmap_293241601_293500801_4FGL_J0811.4+0146_daily_bin208.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/303170/ltcube_293241601_293500801_4FGL_J0811.4+0146_daily_bin208.fits
.....................!
real 141.00
user 136.79
sys 3.87

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/303170/ft1_filtered_4FGL_J0811.4+0146_daily_bin208.fits scfile=/scratch/kocevski/303170/ft2_4FGL_J0811.4+0146_daily_bin208.fits outfile=/scratch/kocevski/303170/cmap_293241601_293500801_4FGL_J0811.4+0146_daily_bin208.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.44
user 0.29
sys 0.59

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/303170/ft1_filtered_4FGL_J0811.4+0146_daily_bin208.fits scfile=/scratch/kocevski/303170/ft2_4FGL_J0811.4+0146_daily_bin208.fits outfile=/scratch/kocevski/303170/cmap_HighResolution_293241601_293500801_4FGL_J0811.4+0146_daily_bin208.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.01
user 0.30
sys 0.60

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20569E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.803       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.0612       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.2560       1.0000         .10000E-03   10000.    
     6 'norm      '    11.741       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10131E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .28645E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.371       1.0000         .10000E-03   10000.    
    13 'norm      '    2.6156       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.1789       1.0000         .10000E-03   10000.    
    16 'norm      '    6.9832       1.0000         .10000E-03   10000.    
    17 'norm      '    4.3656       1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.970       1.0000         .10000E-03   10000.    
    19 'norm      '    18.325       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.855       1.0000         .10000E-03   10000.    
    21 'norm      '    1.4161       1.0000         .10000E-03   10000.    
    22 'norm      '    1.6308       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .74916       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0747       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8095.716     FROM MIGRAD    STATUS=CONVERGED    958 CALLS     3153 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.526        .16271    ** at limit **
   2  Prefactor     11.803        8.7977        .58301E-03   -.13494E-04
   3  Prefactor     .10000E-03    39.515        .18142E-02** at limit **
   4  norm          3.0609        1.6938        .82909E-04   -.45799E-04
   5  Prefactor     6.2473        22.513        .16049E-03    .63753E-06
   6  norm          11.742        10.556        .11691E-03    .13614E-05
   7  Prefactor     .10000E-03    5.0230        .36285E-03** at limit **
   8  norm          .10000E-03    17.199        .18142E-02** at limit **
   9  Prefactor     .10000E-03    7.4472        .18142E-02** at limit **
  10  Prefactor     .10000E-03    846.23        .19878E-02** at limit **
  11  Prefactor     .10000E-03    1.5032        .10769E-02** at limit **
  12  Prefactor     16.373        20.532        .98987E-04    .11485E-06
  13  norm          2.6159        7.1443        .12610E-02    .19140E-04
  14  norm          .10000E-03    1.0645        .13430E-02** at limit **
  15  norm          4.1790        1.1759        .49522E-04    .22957E-03
  16  norm          6.9879        12.345        .15181E-03   -.14977E-06
  17  norm          4.3658        4.1884        .17059E-03    .81969E-05
  18  Prefactor     19.933        32.248        .89629E-04   -.15221E-05
  19  norm          18.326        16.358        .93561E-04    .29163E-05
  20  Prefactor     12.857        12.595        .11172E-03   -.91584E-06
  21  norm          1.4163        .90221        .65700E-04   -.74407E-05
  22  norm          1.6314        5.6626        .33113E-03    .10471E-04
  23  Normalizat    .74929        .19550        .33286E-03    .38595E-05
  24  Prefactor     1.0746        .12880        .18830E-03    .49509E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 11.8032
  Prefactor  = 0.0001
  norm       = 3.0609
  Prefactor  = 6.2473
  norm       = 11.7419
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.3733
  norm       = 2.61591
  norm       = 0.0001
  norm       = 4.17898
  norm       = 6.98788
  norm       = 4.3658
  Prefactor  = 19.9332
  norm       = 18.3262
  Prefactor  = 12.8567
  norm       = 1.41634
  norm       = 1.63137
  Normalizat = 0.749287
  Prefactor  = 1.07459
 **********
 **   18 **HESSE 
 **********

 FCN=   8095.716     FROM HESSE     STATUS=OK           385 CALLS     3538 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.666        .16224       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.803        8.7975        .23321E-04   -1.5021    
   3  Prefactor     .10000E-03    39.525        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.0609        1.6937        .33163E-05   -1.5358    
   5  Prefactor     6.2473        22.512        .64197E-05   -1.5208    
   6  norm          11.742        10.556        .46764E-05   -1.5023    
   7  Prefactor     .10000E-03    5.0233        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    17.202        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.4487        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    846.65        .39756E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.5032        .21539E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.373        20.532        .39595E-05   -1.4898    
  13  norm          2.6159        7.1397        .50440E-04   -1.5384    
  14  norm          .10000E-03    1.0666        .26861E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.1790        1.1759        .19809E-05   -1.5299    
  16  norm          6.9879        12.343        .60725E-05   -1.5179    
  17  norm          4.3658        4.1878        .68238E-05   -1.5290    
  18  Prefactor     19.933        32.240        .35852E-05   -1.4815    
  19  norm          18.326        16.357        .37424E-05   -1.4852    
  20  Prefactor     12.857        12.595        .44688E-05   -1.4991    
  21  norm          1.4163        .90217        .26280E-05   -1.5470    
  22  norm          1.6314        5.6615        .13245E-04   -1.5453    
  23  Normalizat    .74929        .19556        .13314E-04   -1.0198    
  24  Prefactor     1.0746        .12888        .37659E-04   -.90283    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36898e-10
Minuit parameter uncertainties:
  1  6.10519e-05
  2  8.79845
  3  3.8293e-05
  4  1.69377
  5  22.5427
  6  10.5579
  7  1.27135e-05
  8  1.69356e-05
  9  7.81157e-06
  10  0.000464268
  11  9.98362e-07
  12  20.5407
  13  7.14207
  14  2.453e-05
  15  1.17589
  16  12.3479
  17  4.18805
  18  32.2678
  19  16.3614
  20  12.5975
  21  0.902181
  22  5.66333
  23  0.195742
  24  0.128915
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  4.366e+00  4.188e+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:  1.075e+00  1.289e-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:  7.493e-01  1.957e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.49
Ra Dec: 122.861 1.776
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 3.13e-08 +/- 3.00e-08
Energy Flux (Fixed Index): 1.86e-05 +/- 1.78e-05

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

Saving results to:
/scratch/kocevski/303170/likelihoodResults_293241601_293500801_4FGL_J0811.4+0146_daily_bin208.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) = 8092.47018731
delta logL = 3.24601998854

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8092.45798543
delta logL = 3.25822187534

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2546       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.7532       1.0000          .0000       5.0000    
     3 'Normalizat'    .61310       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1257       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=   8092.458     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      256 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2548        6.6905        .91245E-02    .67591E-03
   2  alpha         3.7531        3.8682        .21368        .80221E-04
   3  Normalizat    .61309        .61488E-01    .82184E-01    .42242E-04
   4  Prefactor     1.1257        .40320E-01    .36683E-01   -.22472E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.25479
  alpha      = 3.75313
  Normalizat = 0.61309
  Prefactor  = 1.1257
 **********
 **   18 **HESSE 
 **********

 FCN=   8092.458     FROM HESSE     STATUS=OK            33 CALLS      289 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2548        3.7203        .40917E-04   -1.5484    
   2  alpha         3.7531        1.5282        .91638E-02    .52505    
   3  Normalizat    .61309        .19271        .36400E-03   -1.0743    
   4  Prefactor     1.1257        .12591        .18415E-03   -.88649    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.39934e-08
Minuit parameter uncertainties:
  1  3.72101
  2  1.69694
  3  0.192923
  4  0.125938
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/303170': 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) = 8092.45798542
delta logL = 3.2582218852

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  1.255e+00  3.721e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  3.753e+00  1.697e+00  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:  1.126e+00  1.259e-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:  6.131e-01  1.929e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.65
Ra Dec: 122.861 1.776
Photon Index (Free Index): 3.75 +/- 1.70
Photon Flux (Free Index): 1.46e-07 +/- 6.74e-08
Energy Flux (Free Index): 2.38e-05 +/- 1.17e-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/303170/cmap_HighResolution_293241601_293500801_4FGL_J0811.4+0146_daily_bin208.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.63e-05', comment='SUCCESS', photon_flux='3.13e-08', energy_flux2='2.38e-05', photon_flux_error='3.00e-08', dlogl='3.26e+00', energy_flux='1.86e-05', photon_flux2='1.46e-07', job_status='DONE', time_completed='2021-08-29 12:14:00.519428', photon_index_error2='1.70', photon_index2='3.75', ts='1.49', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='9.50e-08', energy_flux_error2='1.17e-05', EG='0.75', time_epoch_completed='1630264440.52', return_code='0', job_id='303170', GAL2='1.13', EG2='0.61', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='6.74e-08', ts2='8.65', photon_index='2.01' WHERE bin_id='208' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:14:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 303170: <4FGL_J0811.4+0146_daily_bin208> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin208 122.861 1.7756 293241601 293500801 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 :                                   591.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             291.04 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.

