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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin143
RA = 122.861, Dec = 1.7756
tmin = 276393601, tmax = 276652801
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='303077', job_status='RUN', time_executed='2021-08-29 12:04:45.999996', time_epoch_executed='1630263886.0' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='143'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/303077

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/303077/ft1_4FGL_J0811.4+0146_daily_bin143.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/303077/ft2_4FGL_J0811.4+0146_daily_bin143.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/303077/ft1_4FGL_J0811.4+0146_daily_bin143.fits outfile=/scratch/kocevski/303077/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin143.fits ra=122.861 dec=1.7756 rad=12.0 tmin=276393601.0 tmax=276652801.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 8.78
user 3.31
sys 5.39

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/303077/ft1_filtered_4FGL_J0811.4+0146_daily_bin143.fits" evtable="EVENTS" scfile=/scratch/kocevski/303077/ft2_4FGL_J0811.4+0146_daily_bin143.fits sctable="SC_DATA" outfile=/scratch/kocevski/303077/ltcube_276393601_276652801_4FGL_J0811.4+0146_daily_bin143.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/303077/ft2_4FGL_J0811.4+0146_daily_bin143.fits
.....................!
real 17.78
user 11.56
sys 6.08

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/303077/ft1_filtered_4FGL_J0811.4+0146_daily_bin143.fits evtable="EVENTS" scfile=/scratch/kocevski/303077/ft2_4FGL_J0811.4+0146_daily_bin143.fits sctable="SC_DATA" expcube=/scratch/kocevski/303077/ltcube_276393601_276652801_4FGL_J0811.4+0146_daily_bin143.fits outfile=/scratch/kocevski/303077/expmap_276393601_276652801_4FGL_J0811.4+0146_daily_bin143.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/303077/ltcube_276393601_276652801_4FGL_J0811.4+0146_daily_bin143.fits
.....................!
real 199.01
user 187.53
sys 11.06

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/303077/ft1_filtered_4FGL_J0811.4+0146_daily_bin143.fits scfile=/scratch/kocevski/303077/ft2_4FGL_J0811.4+0146_daily_bin143.fits outfile=/scratch/kocevski/303077/cmap_276393601_276652801_4FGL_J0811.4+0146_daily_bin143.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 5.62
user 0.38
sys 5.21

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/303077/ft1_filtered_4FGL_J0811.4+0146_daily_bin143.fits scfile=/scratch/kocevski/303077/ft2_4FGL_J0811.4+0146_daily_bin143.fits outfile=/scratch/kocevski/303077/cmap_HighResolution_276393601_276652801_4FGL_J0811.4+0146_daily_bin143.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 5.64
user 0.38
sys 5.23

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.0588       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.5286       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    53.912       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.0596       1.0000         .10000E-03   10000.    
    16 'norm      '    .11815E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.9875       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    37.097       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.3127       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2819       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90159       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=   6818.653     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2695 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    46.566        .10288E-04** at limit **
   2  Prefactor     .10000E-03    13.738       -.61879E-05** at limit **
   3  Prefactor     .10000E-03    11.137        .35207E-05** at limit **
   4  norm          2.0589        1.7603       -.12789E-06   -.47262E-03
   5  Prefactor     .10000E-03    20.209        .11403E-04** at limit **
   6  norm          .10000E-03    25.970       -.12724E-04** at limit **
   7  Prefactor     8.5297        5.5281        .77581E-07   -.11565E-03
   8  norm          .10000E-03    5.3451       -.83307E-06** at limit **
   9  Prefactor     .10000E-03    4.8671       -.95253E-06** at limit **
  10  Prefactor     .10000E-03    87.954       -.82484E-05** at limit **
  11  Prefactor     .10000E-03    4.2698       -.11573E-06** at limit **
  12  Prefactor     53.915        37.563        .17085E-05   -.25857E-04
  13  norm          .10000E-03    4.5979        .65345E-06** at limit **
  14  norm          .10000E-03    1.4995       -.63539E-07** at limit **
  15  norm          2.0595        1.2454       -.49524E-07   -.18871E-03
  16  norm          .10000E-03    15.247        .75083E-07** at limit **
  17  norm          2.9889        4.4712       -.15325E-05   -.53375E-03
  18  Prefactor     .10000E-03    9.4442       -.11026E-05** at limit **
  19  norm          37.097        30.328       -.15541E-06    .53518E-05
  20  Prefactor     .10000E-03    5.2482        .12211E-05** at limit **
  21  norm          .10000E-03    .43005        .30000E-07** at limit **
  22  norm          8.3140        8.2608       -.16802E-05   -.17870E-02
  23  Normalizat    1.2815        .20421        .26112E-06    .50281E-04
  24  Prefactor     .90177        .12328        .35096E-06    .14015E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.05893
  Prefactor  = 0.000100002
  norm       = 0.000100003
  Prefactor  = 8.52968
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 53.9146
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.05951
  norm       = 0.0001
  norm       = 2.98889
  Prefactor  = 0.0001
  norm       = 37.097
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.314
  Normalizat = 1.28149
  Prefactor  = 0.90177
 **********
 **   18 **HESSE 
 **********

 FCN=   6818.653     FROM HESSE     STATUS=OK           391 CALLS     3086 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    46.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.0589        1.7535        .96620E-04   -1.5421    
   5  Prefactor     .10000E-03    19.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    25.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.5297        5.5428        .13726E-03   -1.5124    
   8  norm          .10000E-03    5.3471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.8705        .17784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    87.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.3036        .16662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     53.915        37.668        .54627E-04   -1.4238    
  13  norm          .10000E-03    4.6129        .17287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.5343        .19720E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.0595        1.2425        .67976E-04   -1.5421    
  16  norm          .10000E-03    15.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.9889        4.5261        .20569E-03   -1.5362    
  18  Prefactor     .10000E-03    9.4447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          37.097        30.326        .65802E-04   -1.4489    
  20  Prefactor     .10000E-03    5.2476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .71622        .10489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.3140        8.8896        .69524E-03   -1.5131    
  23  Normalizat    1.2815        .23562        .29229E-03   -.84121    
  24  Prefactor     .90177        .14245        .20936E-03   -.96079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7114e-09
Minuit parameter uncertainties:
  1  0.000497066
  2  0.000180057
  3  8.02372e-05
  4  1.75358
  5  0.000349573
  6  0.000516426
  7  5.54313
  8  1.12814e-05
  9  1.10673e-05
  10  0.000498344
  11  1.97639e-07
  12  37.6843
  13  6.32396e-06
  14  4.94545e-08
  15  1.24254
  16  2.71148e-05
  17  4.5266
  18  1.8422e-05
  19  30.3384
  20  2.08564e-05
  21  2.11533e-06
  22  8.891
  23  0.235817
  24  0.142511
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  2.989e+00  4.527e+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.018e-01  1.425e-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.281e+00  2.358e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/303077/likelihoodResults_276393601_276652801_4FGL_J0811.4+0146_daily_bin143.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) = 6818.48899838
delta logL = 0.163938420704

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6818.48338137
delta logL = 0.169555422513

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6505       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4989       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2651       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90688       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=   6818.483     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      241 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6501        4.2870        .15404E-03   -.92846E-04
   2  alpha         2.4990        .95202        .17647E-01    .15086E-03
   3  Normalizat    1.2652        .22889        .29381E-03   -.31133E-03
   4  Prefactor     .90687        .13980        .20880E-03   -.48632E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.65013
  alpha      = 2.49899
  Normalizat = 1.26518
  Prefactor  = 0.906867
 **********
 **   18 **HESSE 
 **********

 FCN=   6818.483     FROM HESSE     STATUS=OK            25 CALLS      266 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6501        4.0183        .61615E-05   -1.5382    
   2  alpha         2.4990        .89475        .35294E-02   -.40298E-03
   3  Normalizat    1.2652        .22899        .58762E-04   -.84612    
   4  Prefactor     .90687        .13980        .41759E-04   -.95902    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61714e-10
Minuit parameter uncertainties:
  1  4.01868
  2  0.915047
  3  0.229177
  4  0.139851
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/303077': 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) = 6818.48338135
delta logL = 0.169555444882

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  2.650e+00  4.019e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.499e+00  9.150e-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.069e-01  1.399e-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.265e+00  2.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.54
Ra Dec: 122.861 1.776

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/303077/cmap_HighResolution_276393601_276652801_4FGL_J0811.4+0146_daily_bin143.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.64e-05', job_status='DONE', photon_flux_upper_limit='9.52e-08', time_completed='2021-08-29 12:17:05.401383', job_id='303077', GAL2='0.91', fit_tolerance='1e-08', EG2='1.27', EG='1.28', time_epoch_completed='1630264625.4', return_code2='0', ts='0.54', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.70e-01', ts2='0.88', photon_index_error='0.00', photon_index='2.01' WHERE bin_id='143' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:17:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 303077: <4FGL_J0811.4+0146_daily_bin143> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin143 122.861 1.7756 276393601 276652801 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 :                                   820.43 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             258.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            994 sec.

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

