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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin234
RA = 122.861, Dec = 1.7756
tmin = 299980801, tmax = 300240001
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='303209', job_status='RUN', time_executed='2021-08-29 12:04:30.388302', time_epoch_executed='1630263870.39' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='234'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/303209

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/303209/ft1_4FGL_J0811.4+0146_daily_bin234.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/303209/ft2_4FGL_J0811.4+0146_daily_bin234.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/303209/ft1_4FGL_J0811.4+0146_daily_bin234.fits outfile=/scratch/kocevski/303209/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin234.fits ra=122.861 dec=1.7756 rad=12.0 tmin=299980801.0 tmax=300240001.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 7.53
user 3.18
sys 4.30

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/303209/ft2_4FGL_J0811.4+0146_daily_bin234.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/303209/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin234.fits evtable="EVENTS" outfile="/scratch/kocevski/303209/ft1_filtered_4FGL_J0811.4+0146_daily_bin234.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 4.64
user 0.31
sys 4.31

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/303209/ft1_filtered_4FGL_J0811.4+0146_daily_bin234.fits" evtable="EVENTS" scfile=/scratch/kocevski/303209/ft2_4FGL_J0811.4+0146_daily_bin234.fits sctable="SC_DATA" outfile=/scratch/kocevski/303209/ltcube_299980801_300240001_4FGL_J0811.4+0146_daily_bin234.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/303209/ft2_4FGL_J0811.4+0146_daily_bin234.fits
.....................!
real 16.30
user 11.23
sys 5.02

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/303209/ft1_filtered_4FGL_J0811.4+0146_daily_bin234.fits evtable="EVENTS" scfile=/scratch/kocevski/303209/ft2_4FGL_J0811.4+0146_daily_bin234.fits sctable="SC_DATA" expcube=/scratch/kocevski/303209/ltcube_299980801_300240001_4FGL_J0811.4+0146_daily_bin234.fits outfile=/scratch/kocevski/303209/expmap_299980801_300240001_4FGL_J0811.4+0146_daily_bin234.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/303209/ltcube_299980801_300240001_4FGL_J0811.4+0146_daily_bin234.fits
.....................!
real 196.23
user 185.47
sys 10.42

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/303209/ft1_filtered_4FGL_J0811.4+0146_daily_bin234.fits scfile=/scratch/kocevski/303209/ft2_4FGL_J0811.4+0146_daily_bin234.fits outfile=/scratch/kocevski/303209/cmap_299980801_300240001_4FGL_J0811.4+0146_daily_bin234.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 4.62
user 0.37
sys 4.22

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/303209/ft1_filtered_4FGL_J0811.4+0146_daily_bin234.fits scfile=/scratch/kocevski/303209/ft2_4FGL_J0811.4+0146_daily_bin234.fits outfile=/scratch/kocevski/303209/cmap_HighResolution_299980801_300240001_4FGL_J0811.4+0146_daily_bin234.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 4.64
user 0.37
sys 4.24

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.502       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.601       1.0000         .10000E-03   10000.    
     4 'norm      '    3.8754       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.6220       1.0000         .10000E-03   10000.    
     6 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.0881       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.537       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.1951       1.0000         .10000E-03   10000.    
    14 'norm      '    4.2846       1.0000         .10000E-03   10000.    
    15 'norm      '    .70629       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.4008       1.0000         .10000E-03   10000.    
    18 'Prefactor '    42.668       1.0000         .10000E-03   10000.    
    19 'norm      '    13.148       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .48484       1.0000         .10000E-03   10000.    
    21 'norm      '    3.7170       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .91378       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0390       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=   6304.256     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2698 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.496        60.725       -.90060E-06   -.52321E-04
   2  Prefactor     .10000E-03    8.0483        .79078E-06** at limit **
   3  Prefactor     32.592        42.210       -.12055E-05   -.14205E-03
   4  norm          3.8752        2.2210        .12025E-06   -.90447E-05
   5  Prefactor     9.6119        30.169       -.11174E-05   -.41228E-04
   6  norm          .10000E-03    18.689        .16787E-07** at limit **
   7  Prefactor     4.0871        3.9690        .10039E-06   -.16321E-03
   8  norm          .10000E-03    6.4827        .52905E-08** at limit **
   9  Prefactor     13.538        11.043        .14983E-06    .37748E-04
  10  Prefactor     .10000E-03    80.224       -.18230E-05** at limit **
  11  Prefactor     .10000E-03    3.3447       -.13867E-06** at limit **
  12  Prefactor     .10000E-03    7.9884       -.78110E-06** at limit **
  13  norm          4.1925        9.8565        .74845E-05   -.25060E-03
  14  norm          4.2842        2.8491        .36631E-07   -.50135E-04
  15  norm          .70610        .80691        .35407E-07    .10396E-03
  16  norm          .10000E-03    7.2196        .58276E-06** at limit **
  17  norm          4.4002        3.6359       -.11901E-06   -.10553E-03
  18  Prefactor     42.711        44.348        .73409E-05    .51379E-03
  19  norm          13.148        17.788        .22817E-06    .22917E-04
  20  Prefactor     .34476        12.582        .20664E-06   -.57132E-04
  21  norm          3.7168        1.3137        .33125E-07   -.12946E-03
  22  norm          .10000E-03    2.2416        .71077E-08** at limit **
  23  Normalizat    .91415        .22374       -.63115E-05    .74853E-04
  24  Prefactor     1.0389        .13662        .16318E-05   -.28942E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.4961
  Prefactor  = 0.0001
  Prefactor  = 32.5918
  norm       = 3.87521
  Prefactor  = 9.61192
  norm       = 0.0001
  Prefactor  = 4.08714
  norm       = 0.0001
  Prefactor  = 13.5376
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.19247
  norm       = 4.28422
  norm       = 0.706095
  norm       = 0.0001
  norm       = 4.40017
  Prefactor  = 42.7113
  norm       = 13.1481
  Prefactor  = 0.344758
  norm       = 3.71679
  norm       = 0.0001
  Normalizat = 0.914151
  Prefactor  = 1.03888
 **********
 **   18 **HESSE 
 **********

 FCN=   6304.256     FROM HESSE     STATUS=OK           399 CALLS     3097 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.496        60.899        .59438E-04   -1.4358    
   2  Prefactor     .10000E-03    8.1391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     32.592        42.424        .70178E-04   -1.4566    
   4  norm          3.8752        2.2198        .84468E-04   -1.5314    
   5  Prefactor     9.6119        30.248        .12919E-03   -1.5088    
   6  norm          .10000E-03    18.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.0871        3.9709        .15004E-03   -1.5304    
   8  norm          .10000E-03    6.4882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.538        11.041        .10886E-03   -1.4972    
  10  Prefactor     .10000E-03    80.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.3512        .14181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.0171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.1925        10.256        .98380E-03   -1.5298    
  14  norm          4.2842        2.8390        .10454E-03   -1.5294    
  15  norm          .70610        .77030        .73278E-03   -1.5540    
  16  norm          .10000E-03    7.2184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.4002        3.6339        .13317E-03   -1.5288    
  18  Prefactor     42.711        47.515        .61372E-04   -1.4400    
  19  norm          13.148        17.796        .11047E-03   -1.4983    
  20  Prefactor     .34476        205.99        .51712E-02   -1.5591    
  21  norm          3.7168        1.3161        .51888E-04   -1.5322    
  22  norm          .10000E-03    2.2449        .11609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .91415        .24948        .33341E-03   -.95965    
  24  Prefactor     1.0389        .15402        .20153E-03   -.91445    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20447e-09
Minuit parameter uncertainties:
  1  60.9821
  2  8.54911e-05
  3  42.4637
  4  2.21986
  5  30.2962
  6  3.15984e-06
  7  3.97117
  8  1.6886e-06
  9  11.0428
  10  0.000548015
  11  8.58405e-06
  12  9.26478e-05
  13  10.2607
  14  2.83914
  15  0.770306
  16  4.60662e-06
  17  3.63404
  18  47.5575
  19  17.8032
  20  16.9107
  21  1.31616
  22  3.80808e-06
  23  0.2498
  24  0.154086
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  4.400e+00  3.634e+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.039e+00  1.541e-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:  9.142e-01  2.498e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.08
Ra Dec: 122.861 1.776
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 3.16e-08 +/- 2.61e-08
Energy Flux (Fixed Index): 1.87e-05 +/- 1.54e-05

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

Saving results to:
/scratch/kocevski/303209/likelihoodResults_299980801_300240001_4FGL_J0811.4+0146_daily_bin234.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) = 6304.24912847
delta logL = 0.00714569278352

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6304.24902997
delta logL = 0.00724418740447

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4095       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9264       1.0000          .0000       5.0000    
     3 'Normalizat'    .91681       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0381       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=   6304.249     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      223 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4181        150.33        .47946E-02    .13179E-03
   2  alpha         1.9282        2.9012        .42612        .38587E-04
   3  Normalizat    .91655        .18495        .75254E-01   -.68922E-04
   4  Prefactor     1.0382        .89300E-01    .40660E-01    .11891E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.41811
  alpha      = 1.92818
  Normalizat = 0.916546
  Prefactor  = 1.03825
 **********
 **   18 **HESSE 
 **********

 FCN=   6304.249     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4181        3.6673        .13455E-03   -1.5288    
   2  alpha         1.9282        .63213        .16333E-01   -.23077    
   3  Normalizat    .91655        .22558        .33304E-03   -.95881    
   4  Prefactor     1.0382        .14490        .20158E-03   -.91465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65806e-10
Minuit parameter uncertainties:
  1  3.6675
  2  0.639462
  3  0.225814
  4  0.144954
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/303209': 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) = 6304.24902312
delta logL = 0.00725104030971

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  4.418e+00  3.667e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  1.928e+00  6.395e-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:  1.038e+00  1.450e-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:  9.165e-01  2.258e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.08
Ra Dec: 122.861 1.776
Photon Index (Free Index): 1.93 +/- 0.64
Photon Flux (Free Index): 2.90e-08 +/- 3.14e-08
Energy Flux (Free Index): 2.00e-05 +/- 2.05e-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/303209/cmap_HighResolution_299980801_300240001_4FGL_J0811.4+0146_daily_bin234.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.70e-05', comment='SUCCESS', photon_flux='3.16e-08', energy_flux2='2.00e-05', photon_flux_error='2.61e-08', dlogl='7.25e-03', energy_flux='1.87e-05', photon_flux2='2.90e-08', job_status='DONE', time_completed='2021-08-29 12:15:55.568992', photon_index_error2='0.64', photon_index2='1.93', ts='3.08', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='9.62e-08', energy_flux_error2='2.05e-05', EG='0.91', time_epoch_completed='1630264555.57', return_code='0', job_id='303209', GAL2='1.04', EG2='0.92', return_code2='0', energy_flux_error='1.54e-05', photon_flux_error2='3.14e-08', ts2='3.08', photon_index='2.01' WHERE bin_id='234' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:15:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 303209: <4FGL_J0811.4+0146_daily_bin234> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin234 122.861 1.7756 299980801 300240001 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 :                                   750.20 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             280.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            915 sec.

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

