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


Performing analysis on: 4FGL_J0816.3+5739_daily_bin216
RA = 124.1, Dec = 57.6616
tmin = 295315201, tmax = 295574401
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='353008', job_status='RUN', time_executed='2021-08-29 14:26:14.658854', time_epoch_executed='1630272374.66' WHERE source_name='4FGL J0816.3+5739' and cadence='daily' and bin_id='216'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/353008

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/353008/ft1_4FGL_J0816.3+5739_daily_bin216.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/353008/ft2_4FGL_J0816.3+5739_daily_bin216.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/353008/ft1_4FGL_J0816.3+5739_daily_bin216.fits outfile=/scratch/kocevski/353008/ft1_filteredMKT_4FGL_J0816.3+5739_daily_bin216.fits ra=124.1 dec=57.6616 rad=12.0 tmin=295315201.0 tmax=295574401.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 2.68
user 2.17
sys 0.45

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/353008/ft2_4FGL_J0816.3+5739_daily_bin216.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/353008/ft2_4FGL_J0816.3+5739_daily_bin216.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/353008/ft1_filteredMKT_4FGL_J0816.3+5739_daily_bin216.fits evtable="EVENTS" outfile="/scratch/kocevski/353008/ft1_filtered_4FGL_J0816.3+5739_daily_bin216.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.82
user 0.33
sys 0.45

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/353008/ft1_filtered_4FGL_J0816.3+5739_daily_bin216.fits" evtable="EVENTS" scfile=/scratch/kocevski/353008/ft2_4FGL_J0816.3+5739_daily_bin216.fits sctable="SC_DATA" outfile=/scratch/kocevski/353008/ltcube_295315201_295574401_4FGL_J0816.3+5739_daily_bin216.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/353008/ft2_4FGL_J0816.3+5739_daily_bin216.fits
.....................!
real 13.02
user 12.26
sys 0.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/353008/ft1_filtered_4FGL_J0816.3+5739_daily_bin216.fits evtable="EVENTS" scfile=/scratch/kocevski/353008/ft2_4FGL_J0816.3+5739_daily_bin216.fits sctable="SC_DATA" expcube=/scratch/kocevski/353008/ltcube_295315201_295574401_4FGL_J0816.3+5739_daily_bin216.fits outfile=/scratch/kocevski/353008/expmap_295315201_295574401_4FGL_J0816.3+5739_daily_bin216.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/353008/ltcube_295315201_295574401_4FGL_J0816.3+5739_daily_bin216.fits
.....................!
real 191.28
user 185.13
sys 5.66

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 231 point sources and 0 extended sources

Setting source of interest to:
4FGL J0816.3+5739 @ 124.1 57.6616

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/353008/ft1_filtered_4FGL_J0816.3+5739_daily_bin216.fits scfile=/scratch/kocevski/353008/ft2_4FGL_J0816.3+5739_daily_bin216.fits outfile=/scratch/kocevski/353008/cmap_295315201_295574401_4FGL_J0816.3+5739_daily_bin216.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=124.1 yref=57.6616 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.84
user 0.38
sys 0.43

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/353008/ft1_filtered_4FGL_J0816.3+5739_daily_bin216.fits scfile=/scratch/kocevski/353008/ft2_4FGL_J0816.3+5739_daily_bin216.fits outfile=/scratch/kocevski/353008/cmap_HighResolution_295315201_295574401_4FGL_J0816.3+5739_daily_bin216.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=124.1 yref=57.6616 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.84
user 0.38
sys 0.45

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/353008/ft1_filtered_4FGL_J0816.3+5739_daily_bin216.fits evtable="EVENTS" scfile=/scratch/kocevski/353008/ft2_4FGL_J0816.3+5739_daily_bin216.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/353008/Model_4FGL_J0816.3+5739_daily_bin216.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/353008/ft1_filtered_4FGL_J0816.3+5739_daily_bin216.fits....................!
real 71.42
user 69.39
sys 1.67

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/353008/ft1_filtered_4FGL_J0816.3+5739_daily_bin216.fits', '/scratch/kocevski/353008/ft2_4FGL_J0816.3+5739_daily_bin216.fits', expMap='/scratch/kocevski/353008/expmap_295315201_295574401_4FGL_J0816.3+5739_daily_bin216.fits', expCube='/scratch/kocevski/353008/ltcube_295315201_295574401_4FGL_J0816.3+5739_daily_bin216.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/353008/Model_4FGL_J0816.3+5739_daily_bin216.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0816.3+5739'

4FGL J0816.3+5739
   Spectrum: PowerLaw
339    Prefactor:  5.498e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
340        Index:  2.085e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
341        Scale:  1.529e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/353008/ft1_filtered_4FGL_J0816.3+5739_daily_bin216.fits
Spacecraft file(s): /scratch/kocevski/353008/ft2_4FGL_J0816.3+5739_daily_bin216.fits
Exposure map: /scratch/kocevski/353008/expmap_295315201_295574401_4FGL_J0816.3+5739_daily_bin216.fits
Exposure cube: /scratch/kocevski/353008/ltcube_295315201_295574401_4FGL_J0816.3+5739_daily_bin216.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/353008/Model_4FGL_J0816.3+5739_daily_bin216.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) = 7051.89470081

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.495       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1803       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.935       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .26818       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.3441       1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.583       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.5162       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0135       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.534       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.6654       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.6319       1.0000         .10000E-03   10000.    
    21 'norm      '    .11303E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.7075       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.1876       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.621       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .54501       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .52320       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    8.9901       1.0000         .10000E-03   10000.    
    30 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .58385       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .98712       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7440E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7051.857     FROM MIGRAD    STATUS=CONVERGED    857 CALLS     3774 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.4828        .26843E-07** at limit **
   2  Prefactor     12.493        13.549        .15142E-07   -.19064E-04
   3  Prefactor     .10000E-03    5.4564       -.61473E-06** at limit **
   4  Prefactor     6.1785        11.952        .41844E-07   -.22719E-04
   5  Prefactor     11.947        21.995        .83515E-06    .14758E-03
   6  Prefactor     .10000E-03    67.811        .45002E-06** at limit **
   7  norm          .26835        .46456        .21272E-06    .10417E-02
   8  Prefactor     .10000E-03    17.581       -.10048E-05** at limit **
   9  norm          4.3457        2.7534        .23920E-08    .30701E-04
  10  Prefactor     24.588        23.171        .32931E-06    .80741E-04
  11  norm          .10000E-03    1.1118        .84302E-07** at limit **
  12  Prefactor     .10000E-03    5.2560        .45439E-06** at limit **
  13  norm          2.5160        3.0019        .16844E-06   -.42323E-04
  14  norm          .10000E-03    .53906       -.35637E-08** at limit **
  15  Prefactor     2.0140        1.2821       -.25077E-08   -.76848E-04
  16  Prefactor     11.535        7.2714       -.27231E-07   -.42704E-04
  17  Prefactor     4.6662        3.7335       -.90183E-07   -.16544E-03
  18  Prefactor     .10000E-03    2.2123       -.31381E-07** at limit **
  19  Prefactor     .10000E-03    10.209        .15760E-05** at limit **
  20  norm          5.6296        4.7234        .45240E-06    .85924E-03
  21  norm          .10001E-03    5.0776       -.19679E-05** at limit **
  22  Prefactor     6.7075        9.1929        .23767E-05   -.23124E-03
  23  Prefactor     4.1877        7.1761        .32151E-06   -.53931E-04
  24  Prefactor     10.585        21.123       -.19942E-05   -.16411E-03
  25  Prefactor     .10000E-03    24.510        .91909E-06** at limit **
  26  norm          .54524        .53943        .20876E-07   -.34569E-04
  27  Prefactor     .52786        2.6955        .30720E-06   -.16103E-03
  28  Prefactor     .10000E-03    5.3808       -.13633E-06** at limit **
  29  Prefactor     8.9901        9.3540        .37502E-07   -.30481E-04
  30  norm          .10000E-03    6.3301        .55153E-06** at limit **
  31  Normalizat    .58355        .16042       -.38029E-07    .99395E-04
  32  Prefactor     .98733        .11578       -.43471E-06    .21022E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 12.4931
  Prefactor  = 0.0001
  Prefactor  = 6.17851
  Prefactor  = 11.9475
  Prefactor  = 0.0001
  norm       = 0.268351
  Prefactor  = 0.000100002
  norm       = 4.34572
  Prefactor  = 24.5876
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.51601
  norm       = 0.0001
  Prefactor  = 2.014
  Prefactor  = 11.5351
  Prefactor  = 4.66618
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 5.62959
  norm       = 0.000100014
  Prefactor  = 6.70752
  Prefactor  = 4.18769
  Prefactor  = 10.5853
  Prefactor  = 0.000100001
  norm       = 0.545243
  Prefactor  = 0.527857
  Prefactor  = 0.0001
  Prefactor  = 8.99009
  norm       = 0.0001
  Normalizat = 0.583548
  Prefactor  = 0.987331
 **********
 **   18 **HESSE 
 **********

 FCN=   7051.857     FROM HESSE     STATUS=OK           667 CALLS     4441 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.4841        .15306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.493        13.560        .11332E-03   -1.5001    
   3  Prefactor     .10000E-03    5.5487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.1785        11.927        .16148E-03   -1.5211    
   5  Prefactor     11.947        22.084        .11596E-03   -1.5017    
   6  Prefactor     .10000E-03    67.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .26835        .39316        .75041E-03   -1.5604    
   8  Prefactor     .10000E-03    18.380        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.3457        2.7479        .10659E-03   -1.5291    
  10  Prefactor     24.588        23.098        .80792E-04   -1.4716    
  11  norm          .10000E-03    1.7521        .16887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.3002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.5160        2.9830        .15249E-03   -1.5391    
  14  norm          .10000E-03    .54503        .60085E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.0140        1.2763        .71053E-04   -1.5424    
  16  Prefactor     11.535        7.2692        .11796E-03   -1.5029    
  17  Prefactor     4.6662        3.7336        .13912E-03   -1.5276    
  18  Prefactor     .10000E-03    2.2197        .12196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.6296        4.7754        .16324E-03   -1.5233    
  21  norm          .10001E-03    9.4237        .31360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.7075        9.7035        .77466E-03   -1.5190    
  23  Prefactor     4.1877        7.1595        .19694E-03   -1.5299    
  24  Prefactor     10.585        20.895        .12294E-03   -1.5057    
  25  Prefactor     .10000E-03    24.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .54524        .51054        .58553E-03   -1.5560    
  27  Prefactor     .52786        9.8068        .25300E-02   -1.5563    
  28  Prefactor     .10000E-03    5.3892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     8.9901        9.3409        .13367E-03   -1.5108    
  30  norm          .10000E-03    6.4205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .58355        .18249        .29920E-03   -1.0869    
  32  Prefactor     .98733        .13303        .18355E-03   -.93153    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14513e-08
Minuit parameter uncertainties:
  1  3.13559e-06
  2  13.5632
  3  0.000102669
  4  11.9318
  5  22.0995
  6  0.000239842
  7  0.393161
  8  0.00033292
  9  2.74796
  10  23.1066
  11  3.47137e-06
  12  7.25902e-05
  13  2.98317
  14  1.74226e-07
  15  1.27629
  16  7.26979
  17  3.73381
  18  4.11859e-06
  19  0.000358973
  20  4.77571
  21  0.000729042
  22  9.70576
  23  7.16091
  24  20.9097
  25  0.000360506
  26  0.510546
  27  4.55085
  28  2.12877e-05
  29  9.3424
  30  9.54062e-05
  31  0.182681
  32  0.133078
Done.

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

Extracting fit parameters...

4FGL J0816.3+5739
   Spectrum: PowerLaw
339    Prefactor:  1.154e+01  7.270e+00  1.000e-04  1.000e+04 ( 1.000e-13)
340        Index:  2.085e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
341        Scale:  1.529e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
741    Prefactor:  9.873e-01  1.331e-01  0.000e+00  1.000e+01 ( 1.000e+00)
742        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
743        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
740   Normalization:  5.835e-01  1.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.93
Ra Dec: 124.100 57.662
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 3.13e-08 +/- 1.97e-08
Energy Flux (Fixed Index): 1.78e-05 +/- 1.12e-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) = 7050.87013118
delta logL = 0.986448669159

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7050.81219445
delta logL = 1.04438539202

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.236       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4381       1.0000          .0000       10.000    
     3 'Normalizat'    .59938       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98199       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7440E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7050.812     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      215 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.236        10.213        .26539E-02    .17872E-03
   2  Index         1.4381        .38862        .20493       -.68903E-04
   3  Normalizat    .59939        .14401        .66750E-01    .16425E-03
   4  Prefactor     .98199        .11314        .46042E-01   -.53515E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.2358
  Index      = 1.43813
  Normalizat = 0.599388
  Prefactor  = 0.98199
 **********
 **   18 **HESSE 
 **********

 FCN=   7050.812     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.236        9.5964        .10616E-03   -1.4953    
   2  Index         1.4381        .40344        .81715E-02   -.79288    
   3  Normalizat    .59939        .16341        .29540E-03   -1.0801    
   4  Prefactor     .98199        .12894        .18401E-03   -.93332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58102e-10
Minuit parameter uncertainties:
  1  9.59745
  2  0.404331
  3  0.163538
  4  0.128976
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/353008': 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) = 7050.81219445
delta logL = 1.04438539284

Extracting fit parameters...

4FGL J0816.3+5739
   Spectrum: PowerLaw
339    Prefactor:  1.424e+01  9.597e+00  1.000e-04  1.000e+04 ( 1.000e-13)
340        Index:  1.438e+00  4.043e-01  0.000e+00  1.000e+01 (-1.000e+00)
341        Scale:  1.529e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
741    Prefactor:  9.820e-01  1.290e-01  0.000e+00  1.000e+01 ( 1.000e+00)
742        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
743        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
740   Normalization:  5.994e-01  1.635e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.02
Ra Dec: 124.100 57.662
Photon Index (Free Index): 1.44 +/- 0.40
Photon Flux (Free Index): 1.56e-08 +/- 1.28e-08
Energy Flux (Free Index): 6.07e-05 +/- 6.47e-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/353008/cmap_HighResolution_295315201_295574401_4FGL_J0816.3+5739_daily_bin216.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.13e-08', energy_flux2='6.07e-05', photon_flux_error='1.97e-08', dlogl='1.04e+00', energy_flux='1.78e-05', photon_flux2='1.56e-08', job_status='DONE', time_completed='2021-08-29 14:42:25.422096', photon_index_error2='0.40', photon_index2='1.44', ts='6.93', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='6.47e-05', EG='0.58', time_epoch_completed='1630273345.42', return_code='0', job_id='353008', GAL2='0.98', EG2='0.60', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='1.28e-08', ts2='9.02', photon_index='2.09' WHERE bin_id='216' AND source_name='4FGL J0816.3+5739' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 14:42:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 353008: <4FGL_J0816.3+5739_daily_bin216> in cluster <slac> Done

Job <4FGL_J0816.3+5739_daily_bin216> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 29 14:25:48 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 14:25:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 14:25:50 2021
Terminated at Sun Aug 29 14:42:27 2021
Results reported at Sun Aug 29 14:42:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0816.3+5739_daily_bin216 124.1 57.6616 295315201 295574401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0816.3+5739 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   968.33 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             311.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            999 sec.

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

