/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 127 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 = 7375
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0811.4+0146_daily_bin971
RA = 122.861, Dec = 1.7756
tmin = 491011201, tmax = 491270401
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='309697', job_status='RUN', time_executed='2021-08-29 12:23:16.473754', time_epoch_executed='1630264996.47' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='971'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/309697

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/309697/ft1_4FGL_J0811.4+0146_daily_bin971.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/309697/ft2_4FGL_J0811.4+0146_daily_bin971.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/309697/ft1_4FGL_J0811.4+0146_daily_bin971.fits outfile=/scratch/kocevski/309697/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin971.fits ra=122.861 dec=1.7756 rad=12.0 tmin=491011201.0 tmax=491270401.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.71
user 3.40
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/309697/ft1_filtered_4FGL_J0811.4+0146_daily_bin971.fits" evtable="EVENTS" scfile=/scratch/kocevski/309697/ft2_4FGL_J0811.4+0146_daily_bin971.fits sctable="SC_DATA" outfile=/scratch/kocevski/309697/ltcube_491011201_491270401_4FGL_J0811.4+0146_daily_bin971.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/309697/ft2_4FGL_J0811.4+0146_daily_bin971.fits
.....................!
real 12.42
user 11.54
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/309697/ft1_filtered_4FGL_J0811.4+0146_daily_bin971.fits evtable="EVENTS" scfile=/scratch/kocevski/309697/ft2_4FGL_J0811.4+0146_daily_bin971.fits sctable="SC_DATA" expcube=/scratch/kocevski/309697/ltcube_491011201_491270401_4FGL_J0811.4+0146_daily_bin971.fits outfile=/scratch/kocevski/309697/expmap_491011201_491270401_4FGL_J0811.4+0146_daily_bin971.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/309697/ltcube_491011201_491270401_4FGL_J0811.4+0146_daily_bin971.fits
.....................!
real 192.33
user 185.10
sys 5.80

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/309697/ft1_filtered_4FGL_J0811.4+0146_daily_bin971.fits scfile=/scratch/kocevski/309697/ft2_4FGL_J0811.4+0146_daily_bin971.fits outfile=/scratch/kocevski/309697/cmap_491011201_491270401_4FGL_J0811.4+0146_daily_bin971.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=122.861 yref=1.7756 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.36
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/309697/ft1_filtered_4FGL_J0811.4+0146_daily_bin971.fits scfile=/scratch/kocevski/309697/ft2_4FGL_J0811.4+0146_daily_bin971.fits outfile=/scratch/kocevski/309697/cmap_HighResolution_491011201_491270401_4FGL_J0811.4+0146_daily_bin971.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=122.861 yref=1.7756 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.303       1.0000         .10000E-03   10000.    
     4 'norm      '    1.1768       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .54978       1.0000         .10000E-03   10000.    
     8 'norm      '    24.412       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.4479       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.932       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.6722       1.0000         .10000E-03   10000.    
    15 'norm      '    .62388       1.0000         .10000E-03   10000.    
    16 'norm      '    17.232       1.0000         .10000E-03   10000.    
    17 'norm      '    5.2997       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.734       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3221       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .79463       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=   7513.340     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2831 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.608       -.47586E-06** at limit **
   2  Prefactor     .10000E-03    7.8167        .98041E-07** at limit **
   3  Prefactor     21.302        30.785       -.19545E-06   -.16231E-04
   4  norm          1.1767        1.1050        .35466E-07   -.10333E-03
   5  Prefactor     .10000E-03    7.1154       -.15982E-07** at limit **
   6  norm          .10000E-03    3.2168        .39234E-08** at limit **
   7  Prefactor     .55939        2.7952       -.94742E-06    .10636E-05
   8  norm          24.410        18.045       -.13111E-05    .28104E-04
   9  Prefactor     4.4501        14.827        .79893E-05   -.42807E-03
  10  Prefactor     .10000E-03    65.439        .95807E-06** at limit **
  11  Prefactor     .10000E-03    1.7405        .10476E-07** at limit **
  12  Prefactor     22.941        31.619        .20789E-05    .20071E-03
  13  norm          .10000E-03    1.8447        .11421E-07** at limit **
  14  norm          2.6725        1.9366       -.43314E-07   -.73597E-04
  15  norm          .62368        .88846        .17892E-06   -.18925E-03
  16  norm          17.234        21.826        .30943E-06    .21986E-04
  17  norm          5.3002        3.3132       -.13390E-07    .58931E-05
  18  Prefactor     11.709        37.919       -.11781E-04   -.32822E-03
  19  norm          .10000E-03    10.695       -.31528E-07** at limit **
  20  Prefactor     .10000E-03    17.314       -.23390E-06** at limit **
  21  norm          .10000E-03    .38410        .99337E-08** at limit **
  22  norm          .10000E-03    4.2322        .53241E-07** at limit **
  23  Normalizat    1.3219        .18237        .11652E-05   -.32697E-04
  24  Prefactor     .79473        .11034       -.87800E-06    .16438E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.302
  norm       = 1.17674
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.559388
  norm       = 24.41
  Prefactor  = 4.45013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.941
  norm       = 0.0001
  norm       = 2.67249
  norm       = 0.62368
  norm       = 17.2338
  norm       = 5.30018
  Prefactor  = 11.7087
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.32186
  Prefactor  = 0.794731
 **********
 **   18 **HESSE 
 **********

 FCN=   7513.340     FROM HESSE     STATUS=OK           397 CALLS     3228 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.9804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.302        30.785        .86780E-04   -1.4785    
   4  norm          1.1767        1.0830        .85136E-04   -1.5491    
   5  Prefactor     .10000E-03    7.1184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.2177        .15183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .55939        10.443        .26006E-02   -1.5558    
   8  norm          24.410        18.159        .81073E-04   -1.4719    
   9  Prefactor     4.4501        16.244        .95467E-03   -1.5286    
  10  Prefactor     .10000E-03    65.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.7422        .11167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.941        31.967        .83646E-04   -1.4750    
  13  norm          .10000E-03    1.8463        .11497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.6725        1.9209        .97530E-04   -1.5381    
  15  norm          .62368        .80334        .91181E-03   -1.5550    
  16  norm          17.234        21.774        .96483E-04   -1.4877    
  17  norm          5.3002        3.3125        .12051E-03   -1.5247    
  18  Prefactor     11.709        41.018        .11695E-03   -1.5023    
  19  norm          .10000E-03    10.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .39871        .10470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.2600        .17410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3219        .20930        .26795E-03   -.82916    
  24  Prefactor     .79473        .12602        .20908E-03   -.99923    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.48556e-09
Minuit parameter uncertainties:
  1  0.000135536
  2  8.10298e-06
  3  30.8074
  4  1.08306
  5  3.96813e-06
  6  1.46975e-07
  7  4.83456
  8  18.1632
  9  16.26
  10  0.000350701
  11  5.90691e-07
  12  31.9906
  13  6.71561e-07
  14  1.92096
  15  0.803358
  16  21.7837
  17  3.31265
  18  41.1175
  19  8.5427e-06
  20  0.000120954
  21  7.28262e-07
  22  2.91557e-06
  23  0.209434
  24  0.126061
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  5.300e+00  3.313e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.005e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
274         beta:  6.882e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
275           Eb:  9.156e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  7.947e-01  1.261e-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.322e+00  2.094e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.88
Ra Dec: 122.861 1.776
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 3.80e-08 +/- 2.38e-08
Energy Flux (Fixed Index): 2.25e-05 +/- 1.41e-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) = 7513.29843854
delta logL = 0.0413153882864

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7513.2977361
delta logL = 0.0420178276618

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4008       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8581       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3269       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79323       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=   7513.298     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4016        115.05        .43229E-02    .81059E-04
   2  alpha         1.8580        2.6261        .39770        .25258E-05
   3  Normalizat    1.3269        .18901        .60493E-01    .84511E-05
   4  Prefactor     .79321        .93574E-01    .43629E-01    .99436E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.40157
  alpha      = 1.85798
  Normalizat = 1.3269
  Prefactor  = 0.793206
 **********
 **   18 **HESSE 
 **********

 FCN=   7513.298     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .58E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4016        3.4185        .12385E-03   -1.5243    
   2  alpha         1.8580        .50204        .14401E-01   -.25972    
   3  Normalizat    1.3269        .19702        .26754E-03   -.82767    
   4  Prefactor     .79321        .12278        .20927E-03   -.99979    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.80792e-12
Minuit parameter uncertainties:
  1  3.41864
  2  0.505723
  3  0.197133
  4  0.12282
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/309697': 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) = 7513.29773599
delta logL = 0.0420179333814

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  5.402e+00  3.419e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  1.858e+00  5.057e-01  0.000e+00  5.000e+00 ( 1.000e+00)
274         beta:  6.882e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
275           Eb:  9.156e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  7.932e-01  1.228e-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.327e+00  1.971e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.96
Ra Dec: 122.861 1.776
Photon Index (Free Index): 1.86 +/- 0.51
Photon Flux (Free Index): 3.29e-08 +/- 2.68e-08
Energy Flux (Free Index): 2.63e-05 +/- 2.28e-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/309697/cmap_HighResolution_491011201_491270401_4FGL_J0811.4+0146_daily_bin971.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.80e-08', energy_flux2='2.63e-05', photon_flux_error='2.38e-08', dlogl='4.20e-02', energy_flux='2.25e-05', photon_flux2='3.29e-08', job_status='DONE', time_completed='2021-08-29 12:34:10.858618', photon_index_error2='0.51', photon_index2='1.86', ts='6.88', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='2.28e-05', EG='1.32', time_epoch_completed='1630265650.86', return_code='0', job_id='309697', GAL2='0.79', EG2='1.33', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='2.68e-08', ts2='6.96', photon_index='2.01' WHERE bin_id='971' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:34:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 309697: <4FGL_J0811.4+0146_daily_bin971> in cluster <slac> Done

Job <4FGL_J0811.4+0146_daily_bin971> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 12:20:46 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:20:48 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:20:48 2021
Terminated at Sun Aug 29 12:34:11 2021
Results reported at Sun Aug 29 12:34:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin971 122.861 1.7756 491011201 491270401 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 :                                   651.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             287.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            805 sec.

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

