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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin326
RA = 122.861, Dec = 1.7756
tmin = 323827201, tmax = 324086401
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='304650', job_status='RUN', time_executed='2021-08-29 12:09:41.918349', time_epoch_executed='1630264181.92' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='326'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/304650

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/304650/ft1_4FGL_J0811.4+0146_daily_bin326.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/304650/ft2_4FGL_J0811.4+0146_daily_bin326.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/304650/ft1_4FGL_J0811.4+0146_daily_bin326.fits outfile=/scratch/kocevski/304650/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin326.fits ra=122.861 dec=1.7756 rad=12.0 tmin=323827201.0 tmax=324086401.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.26
user 3.10
sys 1.07

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/304650/ft1_filtered_4FGL_J0811.4+0146_daily_bin326.fits" evtable="EVENTS" scfile=/scratch/kocevski/304650/ft2_4FGL_J0811.4+0146_daily_bin326.fits sctable="SC_DATA" outfile=/scratch/kocevski/304650/ltcube_323827201_324086401_4FGL_J0811.4+0146_daily_bin326.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/304650/ft2_4FGL_J0811.4+0146_daily_bin326.fits
.....................!
real 13.10
user 11.69
sys 1.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/304650/ft1_filtered_4FGL_J0811.4+0146_daily_bin326.fits evtable="EVENTS" scfile=/scratch/kocevski/304650/ft2_4FGL_J0811.4+0146_daily_bin326.fits sctable="SC_DATA" expcube=/scratch/kocevski/304650/ltcube_323827201_324086401_4FGL_J0811.4+0146_daily_bin326.fits outfile=/scratch/kocevski/304650/expmap_323827201_324086401_4FGL_J0811.4+0146_daily_bin326.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/304650/ltcube_323827201_324086401_4FGL_J0811.4+0146_daily_bin326.fits
.....................!
real 192.74
user 185.77
sys 6.32

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/304650/ft1_filtered_4FGL_J0811.4+0146_daily_bin326.fits scfile=/scratch/kocevski/304650/ft2_4FGL_J0811.4+0146_daily_bin326.fits outfile=/scratch/kocevski/304650/cmap_323827201_324086401_4FGL_J0811.4+0146_daily_bin326.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.39
user 0.37
sys 1.00

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/304650/ft1_filtered_4FGL_J0811.4+0146_daily_bin326.fits scfile=/scratch/kocevski/304650/ft2_4FGL_J0811.4+0146_daily_bin326.fits outfile=/scratch/kocevski/304650/cmap_HighResolution_323827201_324086401_4FGL_J0811.4+0146_daily_bin326.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.51
user 0.38
sys 1.00

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    48.514       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.3206       1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.248       1.0000         .10000E-03   10000.    
     6 'norm      '    .89223E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2250       1.0000         .10000E-03   10000.    
     8 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.117       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10514E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    16.581       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.0512       1.0000         .10000E-03   10000.    
    16 'norm      '    .10168E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.081       1.0000         .10000E-03   10000.    
    18 'Prefactor '    52.973       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .76259       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0679       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94138       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=   5885.202     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2762 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.514        40.055        .14393E-02    .99431E-04
   2  Prefactor     .10000E-03    2.9314        .90712E-02** at limit **
   3  Prefactor     .10003E-03    12.874        .90712E-02** at limit **
   4  norm          7.3205        2.5519        .37060E-02    .87795E-04
   5  Prefactor     21.248        24.128        .21723E-02   -.12658E-03
   6  norm          .10000E-03    9.1747        .10418    ** at limit **
   7  Prefactor     3.2233        4.4610        .56393E-02    .38177E-03
   8  norm          .10000E-03    5.9625        .90712E-02** at limit **
   9  Prefactor     13.116        11.840        .27649E-02    .60858E-04
  10  Prefactor     .10000E-03    227.54        .90712E-02** at limit **
  11  Prefactor     .10000E-03    8.0293        .90712E-02** at limit **
  12  Prefactor     .10003E-03    13.549        .90712E-02** at limit **
  13  norm          16.582        13.378        .24590E-02    .40832E-03
  14  norm          .10000E-03    1.3397        .32492E-01** at limit **
  15  norm          2.0512        1.1559        .72157E-02    .16186E-03
  16  norm          .10001E-03    18.644        .90712E-02** at limit **
  17  norm          10.081        4.4898        .31550E-02    .45671E-03
  18  Prefactor     52.962        36.889        .13777E-02    .85063E-03
  19  norm          .10000E-03    18.406        .90712E-02** at limit **
  20  Prefactor     .10000E-03    10.030        .90712E-02** at limit **
  21  norm          .76256        1.0758        .12300E-01    .11333E-02
  22  norm          .10000E-03    2.6226        .90712E-02** at limit **
  23  Normalizat    1.0678        .21558        .67887E-01    .50950E-05
  24  Prefactor     .94149        .13552        .45530E-01   -.69029E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.5137
  Prefactor  = 0.0001
  Prefactor  = 0.00010003
  norm       = 7.32052
  Prefactor  = 21.2478
  norm       = 0.000100003
  Prefactor  = 3.22328
  norm       = 0.0001
  Prefactor  = 13.1164
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100031
  norm       = 16.5818
  norm       = 0.0001
  norm       = 2.05116
  norm       = 0.000100008
  norm       = 10.0807
  Prefactor  = 52.9619
  norm       = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.762555
  norm       = 0.0001
  Normalizat = 1.06777
  Prefactor  = 0.941492
 **********
 **   18 **HESSE 
 **********

 FCN=   5885.202     FROM HESSE     STATUS=OK           395 CALLS     3157 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.514        40.067        .57571E-04   -1.4314    
   2  Prefactor     .10000E-03    2.9332        .12827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10003E-03    12.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.3205        2.5517        .68780E-04   -1.5167    
   5  Prefactor     21.248        24.143        .86892E-04   -1.4786    
   6  norm          .10000E-03    38.117        .45167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.2233        4.4491        .18041E-03   -1.5349    
   8  norm          .10000E-03    5.9634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.116        11.837        .11060E-03   -1.4983    
  10  Prefactor     .10000E-03    227.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.1486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10003E-03    13.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          16.582        13.382        .98360E-04   -1.4893    
  14  norm          .10000E-03    3.1041        .17192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.0512        1.1501        .59564E-04   -1.5422    
  16  norm          .10001E-03    18.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.081        4.4902        .10502E-03   -1.5073    
  18  Prefactor     52.962        37.108        .55107E-04   -1.4251    
  19  norm          .10000E-03    18.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .76256        1.0479        .88821E-04   -1.5533    
  22  norm          .10000E-03    2.6263        .12132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0678        .24850        .30034E-03   -.90793    
  24  Prefactor     .94149        .15608        .20732E-03   -.94706    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.57691e-09
Minuit parameter uncertainties:
  1  40.0894
  2  2.39367e-07
  3  0.00124776
  4  2.55174
  5  24.1544
  6  0.000660469
  7  4.44951
  8  1.24857e-06
  9  11.8393
  10  0.000139576
  11  2.5755e-05
  12  0.00130295
  13  13.3839
  14  4.11352e-08
  15  1.15015
  16  0.000784684
  17  4.49037
  18  37.124
  19  0.000510192
  20  0.000133918
  21  1.04793
  22  1.24811e-07
  23  0.248772
  24  0.156155
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  1.008e+01  4.490e+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:  9.415e-01  1.562e-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.068e+00  2.488e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.70
Ra Dec: 122.861 1.776
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 7.23e-08 +/- 3.22e-08
Energy Flux (Fixed Index): 4.29e-05 +/- 1.91e-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) = 5884.72282137
delta logL = 0.478957542257

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5884.68259857
delta logL = 0.519180340798

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.661       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6264       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0884       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93434       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=   5884.683     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      208 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.661        5.2241        .30677E-02   -.52949E-02
   2  alpha         1.6265        .34679        .25320        .50336E-05
   3  Normalizat    1.0884        .20283        .67349E-01    .88351E-04
   4  Prefactor     .93435        .13259        .45441E-01    .11199E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.661
  alpha      = 1.62651
  Normalizat = 1.08837
  Prefactor  = 0.93435
 **********
 **   18 **HESSE 
 **********

 FCN=   5884.683     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.661        4.9611        .11228E-03   -1.5055    
   2  alpha         1.6265        .35434        .10391E-01   -.35693    
   3  Normalizat    1.0884        .23200        .29795E-03   -.90126    
   4  Prefactor     .93435        .15188        .20806E-03   -.94951    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.39091e-09
Minuit parameter uncertainties:
  1  4.96128
  2  0.355702
  3  0.232215
  4  0.151953
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/304650': 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) = 5884.68259849
delta logL = 0.51918042471

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  1.066e+01  4.961e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  1.627e+00  3.557e-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.343e-01  1.520e-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.088e+00  2.322e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.73
Ra Dec: 122.861 1.776
Photon Index (Free Index): 1.63 +/- 0.36
Photon Flux (Free Index): 5.29e-08 +/- 2.99e-08
Energy Flux (Free Index): 7.37e-05 +/- 5.56e-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/304650/cmap_HighResolution_323827201_324086401_4FGL_J0811.4+0146_daily_bin326.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.23e-08', energy_flux2='7.37e-05', photon_flux_error='3.22e-08', dlogl='5.19e-01', energy_flux='4.29e-05', photon_flux2='5.29e-08', job_status='DONE', time_completed='2021-08-29 12:19:28.717708', photon_index_error2='0.36', photon_index2='1.63', ts='21.70', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='5.56e-05', EG='1.07', time_epoch_completed='1630264768.72', return_code='0', job_id='304650', GAL2='0.93', EG2='1.09', return_code2='0', energy_flux_error='1.91e-05', photon_flux_error2='2.99e-08', ts2='22.73', photon_index='2.01' WHERE bin_id='326' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:19:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0044>
Subject: Job 304650: <4FGL_J0811.4+0146_daily_bin326> in cluster <slac> Done

Job <4FGL_J0811.4+0146_daily_bin326> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 29 12:05:26 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:05:28 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:05:28 2021
Terminated at Sun Aug 29 12:19:29 2021
Results reported at Sun Aug 29 12:19:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin326 122.861 1.7756 323827201 324086401 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 :                                   597.14 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             215.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            843 sec.

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

