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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin520
RA = 122.861, Dec = 1.7756
tmin = 374112001, tmax = 374371201
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='306401', job_status='RUN', time_executed='2021-08-29 12:13:00.484759', time_epoch_executed='1630264380.48' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='520'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/306401

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/306401/ft1_4FGL_J0811.4+0146_daily_bin520.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/306401/ft2_4FGL_J0811.4+0146_daily_bin520.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/306401/ft1_4FGL_J0811.4+0146_daily_bin520.fits outfile=/scratch/kocevski/306401/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin520.fits ra=122.861 dec=1.7756 rad=12.0 tmin=374112001.0 tmax=374371201.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.23
user 3.20
sys 0.80

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/306401/ft1_filtered_4FGL_J0811.4+0146_daily_bin520.fits" evtable="EVENTS" scfile=/scratch/kocevski/306401/ft2_4FGL_J0811.4+0146_daily_bin520.fits sctable="SC_DATA" outfile=/scratch/kocevski/306401/ltcube_374112001_374371201_4FGL_J0811.4+0146_daily_bin520.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/306401/ft2_4FGL_J0811.4+0146_daily_bin520.fits
.....................!
real 12.92
user 11.80
sys 1.00

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/306401/ft1_filtered_4FGL_J0811.4+0146_daily_bin520.fits evtable="EVENTS" scfile=/scratch/kocevski/306401/ft2_4FGL_J0811.4+0146_daily_bin520.fits sctable="SC_DATA" expcube=/scratch/kocevski/306401/ltcube_374112001_374371201_4FGL_J0811.4+0146_daily_bin520.fits outfile=/scratch/kocevski/306401/expmap_374112001_374371201_4FGL_J0811.4+0146_daily_bin520.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/306401/ltcube_374112001_374371201_4FGL_J0811.4+0146_daily_bin520.fits
.....................!
real 195.07
user 189.14
sys 5.51

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/306401/ft1_filtered_4FGL_J0811.4+0146_daily_bin520.fits scfile=/scratch/kocevski/306401/ft2_4FGL_J0811.4+0146_daily_bin520.fits outfile=/scratch/kocevski/306401/cmap_374112001_374371201_4FGL_J0811.4+0146_daily_bin520.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.21
user 0.37
sys 0.73

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/306401/ft1_filtered_4FGL_J0811.4+0146_daily_bin520.fits scfile=/scratch/kocevski/306401/ft2_4FGL_J0811.4+0146_daily_bin520.fits outfile=/scratch/kocevski/306401/cmap_HighResolution_374112001_374371201_4FGL_J0811.4+0146_daily_bin520.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.15
user 0.37
sys 0.71

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.800       1.0000         .10000E-03   10000.    
     4 'norm      '    2.8331       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    8.6208       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.321       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.9346       1.0000         .10000E-03   10000.    
    12 'Prefactor '    40.430       1.0000         .10000E-03   10000.    
    13 'norm      '    .92870       1.0000         .10000E-03   10000.    
    14 'norm      '    1.7412       1.0000         .10000E-03   10000.    
    15 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    14.919       1.0000         .10000E-03   10000.    
    17 'norm      '    1.5812       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    29.001       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.8686       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1185       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84408       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=   6342.583     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     2713 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.076       -.34269E-06** at limit **
   2  Prefactor     .10000E-03    5.1045        .10684E-06** at limit **
   3  Prefactor     26.800        25.456       -.45605E-08   -.20382E-04
   4  norm          2.8333        1.8534        .96933E-07    .12756E-03
   5  Prefactor     .10000E-03    16.090        .25636E-06** at limit **
   6  norm          8.6237        11.728        .21268E-06    .47917E-05
   7  Prefactor     .10000E-03    2.3730        .72563E-07** at limit **
   8  norm          .10000E-03    5.2508       -.73497E-07** at limit **
   9  Prefactor     20.317        12.308       -.46746E-07   -.28779E-04
  10  Prefactor     .10000E-03    58.181        .44689E-07** at limit **
  11  Prefactor     5.9298        9.1431       -.97615E-07   -.42776E-04
  12  Prefactor     40.402        34.606       -.15868E-05   -.40300E-03
  13  norm          .92343        20.113        .72012E-05   -.22158E-03
  14  norm          1.7415        1.8138        .61368E-07    .16294E-04
  15  norm          .10000E-03    .39635        .21831E-07** at limit **
  16  norm          14.901        17.806        .15937E-06   -.24042E-04
  17  norm          1.5787        3.4535        .10255E-05    .57349E-03
  18  Prefactor     .10000E-03    20.416       -.19987E-06** at limit **
  19  norm          28.999        33.878        .19988E-06   -.40297E-04
  20  Prefactor     .10000E-03    5.3633        .62458E-07** at limit **
  21  norm          2.8681        1.2254       -.11164E-07   -.50798E-04
  22  norm          .10000E-03    3.9717        .93402E-07** at limit **
  23  Normalizat    1.1190        .19422        .15908E-05   -.13202E-03
  24  Prefactor     .84379        .12150       -.15727E-05   -.33085E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.8005
  norm       = 2.83332
  Prefactor  = 0.0001
  norm       = 8.62375
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.3175
  Prefactor  = 0.0001
  Prefactor  = 5.92982
  Prefactor  = 40.4018
  norm       = 0.923435
  norm       = 1.74153
  norm       = 0.0001
  norm       = 14.9012
  norm       = 1.57871
  Prefactor  = 0.0001
  norm       = 28.9991
  Prefactor  = 0.0001
  norm       = 2.86806
  norm       = 0.0001
  Normalizat = 1.11897
  Prefactor  = 0.84379
 **********
 **   18 **HESSE 
 **********

 FCN=   6342.583     FROM HESSE     STATUS=OK           401 CALLS     3114 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.1315        .17575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.800        25.450        .77384E-04   -1.4672    
   4  norm          2.8333        1.8501        .83322E-04   -1.5371    
   5  Prefactor     .10000E-03    16.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.6237        11.748        .13652E-03   -1.5121    
   7  Prefactor     .10000E-03    2.4200        .11969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.2540        .17824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.317        12.329        .88851E-04   -1.4806    
  10  Prefactor     .10000E-03    58.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.9298        9.0449        .16484E-03   -1.5221    
  12  Prefactor     40.402        35.932        .63041E-04   -1.4436    
  13  norm          .92343        21.973        .42417E-02   -1.5516    
  14  norm          1.7415        1.7974        .10477E-03   -1.5444    
  15  norm          .10000E-03    .52175        .96792E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          14.901        17.819        .10369E-03   -1.4936    
  17  norm          1.5787        3.5590        .21690E-03   -1.5457    
  18  Prefactor     .10000E-03    20.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          28.999        33.878        .74396E-04   -1.4630    
  20  Prefactor     .10000E-03    5.3775        .18012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.8681        1.2280        .54724E-04   -1.5369    
  22  norm          .10000E-03    4.0062        .15499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1190        .22104        .28143E-03   -.89145    
  24  Prefactor     .84379        .13835        .20398E-03   -.98134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16496e-09
Minuit parameter uncertainties:
  1  0.000141984
  2  2.03018e-05
  3  25.4599
  4  1.8501
  5  8.5598e-05
  6  11.751
  7  5.49725e-06
  8  1.63674e-05
  9  12.3303
  10  2.38394e-05
  11  9.047
  12  35.9512
  13  9.01228
  14  1.79741
  15  3.90678e-07
  16  17.8254
  17  3.55943
  18  1.61068e-05
  19  33.9003
  20  9.60009e-06
  21  1.22798
  22  9.30704e-06
  23  0.221221
  24  0.138404
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  1.579e+00  3.559e+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:  8.438e-01  1.384e-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.119e+00  2.212e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/306401/likelihoodResults_374112001_374371201_4FGL_J0811.4+0146_daily_bin520.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) = 6342.58239109
delta logL = 0.00013360318917

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6342.58238445
delta logL = 0.000140243180795

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5840       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9845       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1193       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84367       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6342.582     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      269 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5856        3.6044        .21748E-03    .33122E-04
   2  alpha         1.9851        1.1701        .30926E-01   -.11686E-05
   3  Normalizat    1.1192        .20771        .28140E-03   -.80800E-07
   4  Prefactor     .84369        .13320        .20399E-03   -.27866E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.58558
  alpha      = 1.98512
  Normalizat = 1.11924
  Prefactor  = 0.843691
 **********
 **   18 **HESSE 
 **********

 FCN=   6342.582     FROM HESSE     STATUS=OK            27 CALLS      296 TOTAL
                     EDM=   .29E-15    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5856        3.5607        .43495E-04   -1.5456    
   2  alpha         1.9851        1.1576        .12370E-02   -.20743    
   3  Normalizat    1.1192        .20781        .11256E-04   -.89137    
   4  Prefactor     .84369        .13325        .81597E-05   -.98137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9212e-16
Minuit parameter uncertainties:
  1  3.56114
  2  1.20584
  3  0.207966
  4  0.133304
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/306401': 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) = 6342.58238416
delta logL = 0.000140531401485

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  8.437e-01  1.333e-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.119e+00  2.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/306401/cmap_HighResolution_374112001_374371201_4FGL_J0811.4+0146_daily_bin520.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.57e-05', job_status='DONE', photon_flux_upper_limit='7.72e-08', time_completed='2021-08-29 12:24:06.388315', job_id='306401', GAL2='0.84', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1630265046.39', return_code2='0', ts='0.24', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.41e-04', ts2='0.24', photon_index_error='0.00', photon_index='2.01' WHERE bin_id='520' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:24:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 306401: <4FGL_J0811.4+0146_daily_bin520> in cluster <slac> Done

Job <4FGL_J0811.4+0146_daily_bin520> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 12:10:44 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:10:46 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:10:46 2021
Terminated at Sun Aug 29 12:24:07 2021
Results reported at Sun Aug 29 12:24:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin520 122.861 1.7756 374112001 374371201 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 :                                   671.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            803 sec.

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

