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


Performing analysis on: 4FGL_J1016.0+0512_daily_bin684
RA = 154.009, Dec = 5.2089
tmin = 416620801, tmax = 416880001
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='774186', job_status='RUN', time_executed='2021-09-01 15:56:25.601498', time_epoch_executed='1630536985.6' WHERE source_name='4FGL J1016.0+0512' and cadence='daily' and bin_id='684'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/774186

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/774186/ft1_4FGL_J1016.0+0512_daily_bin684.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/774186/ft2_4FGL_J1016.0+0512_daily_bin684.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/774186/ft1_4FGL_J1016.0+0512_daily_bin684.fits outfile=/scratch/kocevski/774186/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin684.fits ra=154.009 dec=5.2089 rad=12.0 tmin=416620801.0 tmax=416880001.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 5.25
user 4.98
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/774186/ft2_4FGL_J1016.0+0512_daily_bin684.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/774186/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin684.fits evtable="EVENTS" outfile="/scratch/kocevski/774186/ft1_filtered_4FGL_J1016.0+0512_daily_bin684.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.58
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/774186/ft1_filtered_4FGL_J1016.0+0512_daily_bin684.fits" evtable="EVENTS" scfile=/scratch/kocevski/774186/ft2_4FGL_J1016.0+0512_daily_bin684.fits sctable="SC_DATA" outfile=/scratch/kocevski/774186/ltcube_416620801_416880001_4FGL_J1016.0+0512_daily_bin684.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/774186/ft2_4FGL_J1016.0+0512_daily_bin684.fits
.....................!
real 16.49
user 16.10
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/774186/ft1_filtered_4FGL_J1016.0+0512_daily_bin684.fits evtable="EVENTS" scfile=/scratch/kocevski/774186/ft2_4FGL_J1016.0+0512_daily_bin684.fits sctable="SC_DATA" expcube=/scratch/kocevski/774186/ltcube_416620801_416880001_4FGL_J1016.0+0512_daily_bin684.fits outfile=/scratch/kocevski/774186/expmap_416620801_416880001_4FGL_J1016.0+0512_daily_bin684.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/774186/ltcube_416620801_416880001_4FGL_J1016.0+0512_daily_bin684.fits
.....................!
real 191.47
user 186.09
sys 4.50

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/774186/ft1_filtered_4FGL_J1016.0+0512_daily_bin684.fits scfile=/scratch/kocevski/774186/ft2_4FGL_J1016.0+0512_daily_bin684.fits outfile=/scratch/kocevski/774186/cmap_416620801_416880001_4FGL_J1016.0+0512_daily_bin684.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/774186/ft1_filtered_4FGL_J1016.0+0512_daily_bin684.fits scfile=/scratch/kocevski/774186/ft2_4FGL_J1016.0+0512_daily_bin684.fits outfile=/scratch/kocevski/774186/cmap_HighResolution_416620801_416880001_4FGL_J1016.0+0512_daily_bin684.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.60
user 0.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/774186/ft1_filtered_4FGL_J1016.0+0512_daily_bin684.fits', '/scratch/kocevski/774186/ft2_4FGL_J1016.0+0512_daily_bin684.fits', expMap='/scratch/kocevski/774186/expmap_416620801_416880001_4FGL_J1016.0+0512_daily_bin684.fits', expCube='/scratch/kocevski/774186/ltcube_416620801_416880001_4FGL_J1016.0+0512_daily_bin684.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/774186/Model_4FGL_J1016.0+0512_daily_bin684.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/774186/ft1_filtered_4FGL_J1016.0+0512_daily_bin684.fits
Spacecraft file(s): /scratch/kocevski/774186/ft2_4FGL_J1016.0+0512_daily_bin684.fits
Exposure map: /scratch/kocevski/774186/expmap_416620801_416880001_4FGL_J1016.0+0512_daily_bin684.fits
Exposure cube: /scratch/kocevski/774186/ltcube_416620801_416880001_4FGL_J1016.0+0512_daily_bin684.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/774186/Model_4FGL_J1016.0+0512_daily_bin684.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) = 4846.72577208

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15207E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    2.8021       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.382       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4133       1.0000         .10000E-03   10000.    
     6 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.283       1.0000         .10000E-03   10000.    
     8 'Prefactor '    57.254       1.0000         .10000E-03   10000.    
     9 'Prefactor '    56.377       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10476E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.7221       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .20574E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.8204       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.426       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .77913       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1191       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=   4846.684     FROM MIGRAD    STATUS=CONVERGED    383 CALLS     1851 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .68624        .43163E-07** at limit **
   2  norm          2.8017        .93191        .16147E-07   -.67927E-04
   3  Prefactor     12.380        18.543        .14510E-06   -.83056E-05
   4  Prefactor     .10000E-03    73.828       -.41797E-06** at limit **
   5  Prefactor     4.4107        17.202        .71861E-05   -.25060E-04
   6  norm          .10000E-03    10.743        .37206E-06** at limit **
   7  Prefactor     14.275        19.030        .20707E-07   -.36663E-04
   8  Prefactor     57.257        52.773        .16663E-07   -.34829E-05
   9  Prefactor     56.493        80.155        .28866E-06    .53995E-04
  10  Prefactor     .10000E-03    18.141        .29276E-05** at limit **
  11  norm          2.7219        1.6892        .19422E-07   -.36441E-04
  12  Prefactor     .10000E-03    6.7974       -.13556E-06** at limit **
  13  Prefactor     .10037E-03    2.3841        .26603E-06** at limit **
  14  Prefactor     4.8415        11.910        .24742E-06    .88811E-05
  15  norm          .10000E-03    .37284       -.27997E-06** at limit **
  16  Prefactor     27.408        16.876        .49991E-06    .28307E-03
  17  Normalizat    .77926        .22485       -.10479E-05   -.13644E-04
  18  Prefactor     1.1192        .17993        .17086E-06   -.47286E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.8017
  Prefactor  = 12.38
  Prefactor  = 0.0001
  Prefactor  = 4.4107
  norm       = 0.0001
  Prefactor  = 14.2752
  Prefactor  = 57.2572
  Prefactor  = 56.4926
  Prefactor  = 0.0001
  norm       = 2.7219
  Prefactor  = 0.0001
  Prefactor  = 0.000100367
  Prefactor  = 4.84146
  norm       = 0.0001
  Prefactor  = 27.4079
  Normalizat = 0.779259
  Prefactor  = 1.11921
 **********
 **   18 **HESSE 
 **********

 FCN=   4846.684     FROM HESSE     STATUS=OK           258 CALLS     2109 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.275        .10999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.8017        .93124        .36664E-04   -1.5373    
   3  Prefactor     12.380        18.509        .11384E-03   -1.5004    
   4  Prefactor     .10000E-03    74.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.4107        17.066        .95849E-03   -1.5288    
   6  norm          .10000E-03    10.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.275        18.988        .10598E-03   -1.4952    
   8  Prefactor     57.257        52.802        .53017E-04   -1.4193    
   9  Prefactor     56.493        79.994        .26713E-03   -1.4203    
  10  Prefactor     .10000E-03    18.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.7219        1.6838        .68167E-04   -1.5378    
  12  Prefactor     .10000E-03    6.8937        .17712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10037E-03    7.0422        .33042E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.8415        11.808        .18323E-03   -1.5268    
  15  norm          .10000E-03    .43151        .77319E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     27.408        16.015        .76498E-04   -1.4660    
  17  Normalizat    .77926        .25555        .30459E-03   -1.0084    
  18  Prefactor     1.1192        .20691        .21824E-03   -.88855    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14396e-10
Minuit parameter uncertainties:
  1  8.31179e-05
  2  0.931244
  3  18.5179
  4  9.7273e-05
  5  17.085
  6  3.7804e-06
  7  18.996
  8  52.8454
  9  80.1465
  10  2.78737e-05
  11  1.68384
  12  7.16724e-07
  13  0.00321748
  14  11.8138
  15  1.3313e-07
  16  16.0179
  17  0.255942
  18  0.207058
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  1.428e+01  1.900e+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.119e+00  2.071e-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.793e-01  2.559e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.25
Ra Dec: 154.009 5.209
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 4.64e-08 +/- 6.17e-08
Energy Flux (Fixed Index): 2.00e-05 +/- 2.66e-05

TS (Fixed Index): 1.25
Ra Dec: 154.009 5.209
Photon Flux Upper Limit: 1.53e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.17e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/774186/likelihoodResults_416620801_416880001_4FGL_J1016.0+0512_daily_bin684.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) = 4846.62871043
delta logL = 0.055774895246

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4846.62685188
delta logL = 0.057633447308

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.854       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4873       1.0000          .0000       10.000    
     3 'Normalizat'    .76445       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1272       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=   4846.627     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      241 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.871        323.53        .30402E-02    .91942E-04
   2  Index         2.4864        6.2359        .11736        .11874E-03
   3  Normalizat    .76461        .94499E-01    .69406E-01    .41244E-04
   4  Prefactor     1.1270        .66743E-01    .36635E-01   -.56289E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.8712
  Index      = 2.48638
  Normalizat = 0.764607
  Prefactor  = 1.12703
 **********
 **   18 **HESSE 
 **********

 FCN=   4846.627     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.871        18.568        .12161E-03   -1.5048    
   2  Index         2.4864        .92610        .65428E-02   -.52675    
   3  Normalizat    .76461        .24943        .30712E-03   -1.0140    
   4  Prefactor     1.1270        .20816        .21756E-03   -.88607    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80589e-11
Minuit parameter uncertainties:
  1  18.5778
  2  0.93334
  3  0.249807
  4  0.208308
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/774186': 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) = 4846.62685103
delta logL = 0.057634298988

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  1.087e+01  1.858e+01  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  2.486e+00  9.333e-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.127e+00  2.083e-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.646e-01  2.498e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.39
Ra Dec: 154.009 5.209
Photon Index (Free Index): 2.49 +/- 0.93
Photon Flux (Free Index): 5.90e-08 +/- 6.44e-08
Energy Flux (Free Index): 1.74e-05 +/- 1.98e-05

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/774186/cmap_HighResolution_416620801_416880001_4FGL_J1016.0+0512_daily_bin684.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', comment='SUCCESS', photon_flux='4.64e-08', energy_flux2='1.74e-05', photon_flux_error='6.17e-08', dlogl='5.76e-02', energy_flux='2.00e-05', photon_flux2='5.90e-08', job_status='DONE', time_completed='2021-09-01 16:04:55.262943', photon_index_error2='0.93', photon_index2='2.49', ts='1.25', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='1.53e-07', energy_flux_error2='1.98e-05', EG='0.78', time_epoch_completed='1630537495.26', return_code='0', job_id='774186', GAL2='1.13', EG2='0.76', return_code2='0', energy_flux_error='2.66e-05', photon_flux_error2='6.44e-08', ts2='1.39', photon_index='2.22' WHERE bin_id='684' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:04:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 774186: <4FGL_J1016.0+0512_daily_bin684> in cluster <slac> Done

Job <4FGL_J1016.0+0512_daily_bin684> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 15:55:39 2021
Job was executed on host(s) <bullet0179>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 15:56:06 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:56:06 2021
Terminated at Wed Sep  1 16:04:56 2021
Results reported at Wed Sep  1 16:04:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1016.0+0512_daily_bin684 154.009 5.2089 416620801 416880001 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 :                                   505.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             338.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   529 sec.
    Turnaround time :                            557 sec.

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

