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


Performing analysis on: 4FGL_J1016.0+0512_daily_bin37
RA = 154.009, Dec = 5.2089
tmin = 248918401, tmax = 249177601
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='769412', job_status='RUN', time_executed='2021-09-01 15:43:04.772456', time_epoch_executed='1630536184.77' WHERE source_name='4FGL J1016.0+0512' and cadence='daily' and bin_id='37'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/769412

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/769412/ft1_4FGL_J1016.0+0512_daily_bin37.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/769412/ft2_4FGL_J1016.0+0512_daily_bin37.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/769412/ft1_4FGL_J1016.0+0512_daily_bin37.fits outfile=/scratch/kocevski/769412/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin37.fits ra=154.009 dec=5.2089 rad=12.0 tmin=248918401.0 tmax=249177601.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 1.94
user 1.75
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/769412/ft2_4FGL_J1016.0+0512_daily_bin37.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/769412/ft2_4FGL_J1016.0+0512_daily_bin37.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/769412/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin37.fits evtable="EVENTS" outfile="/scratch/kocevski/769412/ft1_filtered_4FGL_J1016.0+0512_daily_bin37.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/769412/ft1_filtered_4FGL_J1016.0+0512_daily_bin37.fits" evtable="EVENTS" scfile=/scratch/kocevski/769412/ft2_4FGL_J1016.0+0512_daily_bin37.fits sctable="SC_DATA" outfile=/scratch/kocevski/769412/ltcube_248918401_249177601_4FGL_J1016.0+0512_daily_bin37.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/769412/ft2_4FGL_J1016.0+0512_daily_bin37.fits
.....................!
real 12.79
user 12.40
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/769412/ft1_filtered_4FGL_J1016.0+0512_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/769412/ft2_4FGL_J1016.0+0512_daily_bin37.fits sctable="SC_DATA" expcube=/scratch/kocevski/769412/ltcube_248918401_249177601_4FGL_J1016.0+0512_daily_bin37.fits outfile=/scratch/kocevski/769412/expmap_248918401_249177601_4FGL_J1016.0+0512_daily_bin37.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/769412/ltcube_248918401_249177601_4FGL_J1016.0+0512_daily_bin37.fits
.....................!
real 191.27
user 185.73
sys 5.14

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

Setting source of interest to:
4FGL J1016.0+0512 @ 154.009 5.2089

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/769412/ft1_filtered_4FGL_J1016.0+0512_daily_bin37.fits scfile=/scratch/kocevski/769412/ft2_4FGL_J1016.0+0512_daily_bin37.fits outfile=/scratch/kocevski/769412/cmap_248918401_249177601_4FGL_J1016.0+0512_daily_bin37.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=154.009 yref=5.2089 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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/769412/ft1_filtered_4FGL_J1016.0+0512_daily_bin37.fits scfile=/scratch/kocevski/769412/ft2_4FGL_J1016.0+0512_daily_bin37.fits outfile=/scratch/kocevski/769412/cmap_HighResolution_248918401_249177601_4FGL_J1016.0+0512_daily_bin37.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=154.009 yref=5.2089 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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/769412/ft1_filtered_4FGL_J1016.0+0512_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/769412/ft2_4FGL_J1016.0+0512_daily_bin37.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/769412/Model_4FGL_J1016.0+0512_daily_bin37.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/769412/ft1_filtered_4FGL_J1016.0+0512_daily_bin37.fits.....................!
real 68.42
user 67.04
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/769412/ft1_filtered_4FGL_J1016.0+0512_daily_bin37.fits', '/scratch/kocevski/769412/ft2_4FGL_J1016.0+0512_daily_bin37.fits', expMap='/scratch/kocevski/769412/expmap_248918401_249177601_4FGL_J1016.0+0512_daily_bin37.fits', expCube='/scratch/kocevski/769412/ltcube_248918401_249177601_4FGL_J1016.0+0512_daily_bin37.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/769412/Model_4FGL_J1016.0+0512_daily_bin37.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1016.0+0512'

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  6.181e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  2.223e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/769412/ft1_filtered_4FGL_J1016.0+0512_daily_bin37.fits
Spacecraft file(s): /scratch/kocevski/769412/ft2_4FGL_J1016.0+0512_daily_bin37.fits
Exposure map: /scratch/kocevski/769412/expmap_248918401_249177601_4FGL_J1016.0+0512_daily_bin37.fits
Exposure cube: /scratch/kocevski/769412/ltcube_248918401_249177601_4FGL_J1016.0+0512_daily_bin37.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/769412/Model_4FGL_J1016.0+0512_daily_bin37.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6857.57609139

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19830       1.0000         .10000E-03   10000.    
     2 'norm      '    3.4333       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .65014       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.536       1.0000         .10000E-03   10000.    
     6 'norm      '    9.2346       1.0000         .10000E-03   10000.    
     7 'Prefactor '    54.688       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .51222       1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.382       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.1143       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.3693       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.715       1.0000         .10000E-03   10000.    
    15 'norm      '    1.0805       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.697       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .77876       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0778       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6857.392     FROM MIGRAD    STATUS=CONVERGED    421 CALLS     1376 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19740        .57944       -.37003E-07   -.41987E-03
   2  norm          3.4319        .80244       -.24502E-08   -.95323E-04
   3  Prefactor     .93833        9.5530        .11401E-05   -.24107E-03
   4  Prefactor     .10000E-03    15.577        .39185E-07** at limit **
   5  Prefactor     27.707        27.885       -.42879E-05   -.51073E-04
   6  norm          8.9595        20.885       -.29034E-05   -.12106E-03
   7  Prefactor     54.215        17.230        .22970E-06   -.19667E-03
   8  Prefactor     .10000E-03    140.94        .57889E-06** at limit **
   9  Prefactor     25.907        41.439        .37541E-06   -.21999E-04
  10  Prefactor     .10000E-03    5.5219       -.44409E-08** at limit **
  11  norm          .10000E-03    .50697       -.13525E-07** at limit **
  12  Prefactor     5.0353        2.9106        .20988E-06   -.12622E-02
  13  Prefactor     9.3688        4.5236       -.32942E-07   -.60340E-04
  14  Prefactor     20.747        12.358       -.73274E-07   -.13678E-04
  15  norm          1.0891        .70824       -.48130E-08   -.75673E-04
  16  Prefactor     16.360        12.325       -.57136E-08   -.12381E-03
  17  Normalizat    .78016        .19324        .32840E-06   -.82321E-04
  18  Prefactor     1.0775        .15615        .11580E-06   -.80808E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.197399
  norm       = 3.43195
  Prefactor  = 0.938332
  Prefactor  = 0.0001
  Prefactor  = 27.7068
  norm       = 8.95951
  Prefactor  = 54.2145
  Prefactor  = 0.0001
  Prefactor  = 25.9068
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.03526
  Prefactor  = 9.36883
  Prefactor  = 20.7474
  norm       = 1.08906
  Prefactor  = 16.36
  Normalizat = 0.780156
  Prefactor  = 1.07746
 **********
 **   18 **HESSE 
 **********

 FCN=   6857.392     FROM HESSE     STATUS=OK           256 CALLS     1632 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19740        .64753        .10429E-02   -1.5619    
   2  norm          3.4319        .80384        .34002E-04   -1.5337    
   3  Prefactor     .93833        72.602        .41207E-02   -1.5514    
   4  Prefactor     .10000E-03    15.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     27.707        27.758        .76346E-04   -1.4655    
   6  norm          8.9595        24.849        .13188E-03   -1.5109    
   7  Prefactor     54.215        17.108        .54240E-04   -1.4234    
   8  Prefactor     .10000E-03    142.86        .22641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.907        41.435        .79512E-04   -1.4690    
  10  Prefactor     .10000E-03    5.5227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .53149        .11504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.0353        6.7820        .88891E-03   -1.5259    
  13  Prefactor     9.3688        4.5282        .11144E-03   -1.5096    
  14  Prefactor     20.747        12.339        .88003E-04   -1.4797    
  15  norm          1.0891        .70456        .48826E-04   -1.5499    
  16  Prefactor     16.360        12.572        .49009E-03   -1.4899    
  17  Normalizat    .78016        .22227        .31041E-03   -1.0081    
  18  Prefactor     1.0775        .18001        .22747E-03   -.90190    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45924e-08
Minuit parameter uncertainties:
  1  0.647551
  2  0.80384
  3  16.5275
  4  2.38379e-05
  5  27.771
  6  24.8773
  7  17.1091
  8  0.000171055
  9  41.4808
  10  9.87733e-07
  11  4.58233e-08
  12  6.78299
  13  4.52834
  14  12.3404
  15  0.704566
  16  12.5744
  17  0.222524
  18  0.180109
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  5.421e+01  1.711e+01  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  2.223e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  1.077e+00  1.801e-01  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  7.802e-01  2.225e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 44.31
Ra Dec: 154.009 5.209
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 1.76e-07 +/- 5.55e-08
Energy Flux (Fixed Index): 7.58e-05 +/- 2.39e-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) = 6856.62622444
delta logL = 0.766068354657

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6856.62608632
delta logL = 0.766206479486

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6856.626     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      267 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     69.700        298.67        .12019E-02   -.16895E-03
   2  Index         1.9350        2.5213        .94120E-01   -.38037E-04
   3  Normalizat    .82503        .27902        .68496E-01   -.14928E-03
   4  Prefactor     1.0556        .15252        .39592E-01   -.24182E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 69.6997
  Index      = 1.93499
  Normalizat = 0.825034
  Prefactor  = 1.05561
 **********
 **   18 **HESSE 
 **********

 FCN=   6856.626     FROM HESSE     STATUS=OK            29 CALLS      296 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     69.700        22.827        .48076E-04   -1.4036    
   2  Index         1.9350        .23181        .38515E-02   -.65985    
   3  Normalizat    .82503        .21428        .30306E-03   -.99147    
   4  Prefactor     1.0556        .17963        .22965E-03   -.90898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.25035e-11
Minuit parameter uncertainties:
  1  22.8302
  2  0.231941
  3  0.214495
  4  0.179732
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/769412': 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) = 6856.62608536
delta logL = 0.766207442431

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  6.970e+01  2.283e+01  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  1.935e+00  2.319e-01  0.000e+00  1.000e+01 (-1.000e+00)
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  1.056e+00  1.797e-01  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  8.250e-01  2.145e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 45.81
Ra Dec: 154.009 5.209
Photon Index (Free Index): 1.93 +/- 0.23
Photon Flux (Free Index): 1.36e-07 +/- 5.28e-08
Energy Flux (Free Index): 1.11e-04 +/- 5.28e-05

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/769412/cmap_HighResolution_248918401_249177601_4FGL_J1016.0+0512_daily_bin37.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.76e-07', energy_flux2='1.11e-04', photon_flux_error='5.55e-08', dlogl='7.66e-01', energy_flux='7.58e-05', photon_flux2='1.36e-07', job_status='DONE', time_completed='2021-09-01 15:51:17.157502', photon_index_error2='0.23', photon_index2='1.93', ts='44.31', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='5.28e-05', EG='0.78', time_epoch_completed='1630536677.16', return_code='0', job_id='769412', GAL2='1.06', EG2='0.83', return_code2='0', energy_flux_error='2.39e-05', photon_flux_error2='5.28e-08', ts2='45.81', photon_index='2.22' WHERE bin_id='37' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 15:51:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 769412: <4FGL_J1016.0+0512_daily_bin37> in cluster <slac> Done

Job <4FGL_J1016.0+0512_daily_bin37> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 15:40:38 2021
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 15:41:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 15:41:15 2021
Terminated at Wed Sep  1 15:51:17 2021
Results reported at Wed Sep  1 15:51:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1016.0+0512_daily_bin37 154.009 5.2089 248918401 249177601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1016.0+0512 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   495.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             367.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   603 sec.
    Turnaround time :                            639 sec.

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

