/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 40 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 = 7404
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1016.0+0512_daily_bin104
RA = 154.009, Dec = 5.2089
tmin = 266284801, tmax = 266544001
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='769520', job_status='RUN', time_executed='2021-09-01 15:43:17.463710', time_epoch_executed='1630536197.46' WHERE source_name='4FGL J1016.0+0512' and cadence='daily' and bin_id='104'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/769520

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/769520/ft1_4FGL_J1016.0+0512_daily_bin104.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/769520/ft2_4FGL_J1016.0+0512_daily_bin104.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/769520/ft1_4FGL_J1016.0+0512_daily_bin104.fits outfile=/scratch/kocevski/769520/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin104.fits ra=154.009 dec=5.2089 rad=12.0 tmin=266284801.0 tmax=266544001.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.47
user 1.22
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/769520/ft1_filtered_4FGL_J1016.0+0512_daily_bin104.fits evtable="EVENTS" scfile=/scratch/kocevski/769520/ft2_4FGL_J1016.0+0512_daily_bin104.fits sctable="SC_DATA" expcube=/scratch/kocevski/769520/ltcube_266284801_266544001_4FGL_J1016.0+0512_daily_bin104.fits outfile=/scratch/kocevski/769520/expmap_266284801_266544001_4FGL_J1016.0+0512_daily_bin104.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/769520/ltcube_266284801_266544001_4FGL_J1016.0+0512_daily_bin104.fits
.....................!
real 193.04
user 187.24
sys 5.12

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/769520/ft1_filtered_4FGL_J1016.0+0512_daily_bin104.fits scfile=/scratch/kocevski/769520/ft2_4FGL_J1016.0+0512_daily_bin104.fits outfile=/scratch/kocevski/769520/cmap_266284801_266544001_4FGL_J1016.0+0512_daily_bin104.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/769520/ft1_filtered_4FGL_J1016.0+0512_daily_bin104.fits scfile=/scratch/kocevski/769520/ft2_4FGL_J1016.0+0512_daily_bin104.fits outfile=/scratch/kocevski/769520/cmap_HighResolution_266284801_266544001_4FGL_J1016.0+0512_daily_bin104.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .47543       1.0000         .10000E-03   10000.    
     2 'norm      '    1.0272       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10320E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10497E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.764       1.0000         .10000E-03   10000.    
     6 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.971       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.075       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15401E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .13758       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .71695E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3185       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.5739       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2502       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .95711       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0624       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=   8795.786     FROM MIGRAD    STATUS=CONVERGED    389 CALLS     2365 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .47551        .80307       -.33583E-06   -.21834E-02
   2  norm          1.0273        .56744       -.74019E-07   -.88018E-03
   3  Prefactor     .10000E-03    5.2050        .14100E-07** at limit **
   4  Prefactor     .10000E-03    25.144       -.14942E-05** at limit **
   5  Prefactor     22.799        29.564       -.47054E-06    .17290E-04
   6  norm          .10000E-03    7.0966       -.67189E-07** at limit **
   7  Prefactor     18.974        9.7524        .63669E-06   -.23258E-04
   8  Prefactor     .10000E-03    15.560        .61526E-06** at limit **
   9  Prefactor     9.9988        30.043       -.59864E-05    .13200E-03
  10  Prefactor     .10000E-03    8.2953        .51850E-06** at limit **
  11  norm          .13371        .54201       -.29303E-06    .12607E-04
  12  Prefactor     .10003E-03    2.1542        .67705E-07** at limit **
  13  Prefactor     2.3187        2.0155       -.50239E-07   -.20616E-03
  14  Prefactor     .10000E-03    3.3214        .25397E-06** at limit **
  15  norm          1.5743        .62603        .85564E-06    .61784E-03
  16  Prefactor     1.2414        9.6125       -.19981E-04    .54440E-04
  17  Normalizat    .95695        .15792        .13007E-05    .44200E-03
  18  Prefactor     1.0625        .13073        .50976E-07    .57716E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.475514
  norm       = 1.02726
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.7987
  norm       = 0.0001
  Prefactor  = 18.9736
  Prefactor  = 0.0001
  Prefactor  = 9.99884
  Prefactor  = 0.0001
  norm       = 0.133706
  Prefactor  = 0.00010003
  Prefactor  = 2.31873
  Prefactor  = 0.0001
  norm       = 1.57427
  Prefactor  = 1.24137
  Normalizat = 0.956954
  Prefactor  = 1.06248
 **********
 **   18 **HESSE 
 **********

 FCN=   8795.786     FROM HESSE     STATUS=OK           252 CALLS     2617 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .47551        .76451        .10398E-02   -1.5570    
   2  norm          1.0273        .55324        .49318E-04   -1.5505    
   3  Prefactor     .10000E-03    5.2334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    25.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     22.799        29.528        .83954E-04   -1.4753    
   6  norm          .10000E-03    7.1394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.974        9.7302        .91955E-04   -1.4837    
   8  Prefactor     .10000E-03    15.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.9988        29.903        .12624E-03   -1.5075    
  10  Prefactor     .10000E-03    8.3357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .13371        2.7215        .12802E-02   -1.5635    
  12  Prefactor     .10003E-03    41.358        .26079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.3187        2.0066        .11919E-03   -1.5403    
  14  Prefactor     .10000E-03    3.3824        .16684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.5743        .64165        .38128E-04   -1.5457    
  16  Prefactor     1.2414        11.780        .39998E-03   -1.5485    
  17  Normalizat    .95695        .17918        .26413E-03   -.94487    
  18  Prefactor     1.0625        .15169        .21729E-03   -.90675    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74793e-09
Minuit parameter uncertainties:
  1  0.764524
  2  0.553247
  3  8.27392e-06
  4  0.000159113
  5  29.5467
  6  1.90077e-06
  7  9.73103
  8  5.82985e-05
  9  29.9478
  10  7.55426e-06
  11  1.20605
  12  0.0022447
  13  2.00671
  14  4.1636e-05
  15  0.64165
  16  7.64971
  17  0.179296
  18  0.151755
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  1.897e+01  9.731e+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

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  1.062e+00  1.518e-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:  9.570e-01  1.793e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.66
Ra Dec: 154.009 5.209
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 6.16e-08 +/- 3.16e-08
Energy Flux (Fixed Index): 2.65e-05 +/- 1.36e-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) = 8795.64434714
delta logL = 0.141728557404

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8795.64396659
delta logL = 0.142109107948

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.409       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0097       1.0000          .0000       10.000    
     3 'Normalizat'    .97332       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0539       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=   8795.644     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      259 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.390        232.96        .21154E-02    .10501E-04
   2  Index         2.0087        5.9972        .13412        .11897E-03
   3  Normalizat    .97342        .14287        .45832E-01    .24239E-04
   4  Prefactor     1.0539        .69313E-01    .39687E-01    .11228E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.3898
  Index      = 2.00874
  Normalizat = 0.97342
  Prefactor  = 1.05393
 **********
 **   18 **HESSE 
 **********

 FCN=   8795.644     FROM HESSE     STATUS=OK            33 CALLS      292 TOTAL
                     EDM=   .57E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.390        12.158        .84614E-04   -1.4761    
   2  Index         2.0087        .40197        .67704E-02   -.64132    
   3  Normalizat    .97342        .17640        .26217E-03   -.93926    
   4  Prefactor     1.0539        .15067        .21807E-03   -.90953    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.69601e-12
Minuit parameter uncertainties:
  1  12.1598
  2  0.402646
  3  0.176508
  4  0.150728
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/769520': 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) = 8795.64395934
delta logL = 0.142116351604

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  2.239e+01  1.216e+01  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  2.009e+00  4.026e-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.054e+00  1.507e-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:  9.734e-01  1.765e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.94
Ra Dec: 154.009 5.209
Photon Index (Free Index): 2.01 +/- 0.40
Photon Flux (Free Index): 4.94e-08 +/- 3.30e-08
Energy Flux (Free Index): 3.35e-05 +/- 2.41e-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/769520/cmap_HighResolution_266284801_266544001_4FGL_J1016.0+0512_daily_bin104.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.16e-08', energy_flux2='3.35e-05', photon_flux_error='3.16e-08', dlogl='1.42e-01', energy_flux='2.65e-05', photon_flux2='4.94e-08', job_status='DONE', time_completed='2021-09-01 15:53:56.378834', photon_index_error2='0.40', photon_index2='2.01', ts='11.66', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='2.41e-05', EG='0.96', time_epoch_completed='1630536836.38', return_code='0', job_id='769520', GAL2='1.05', EG2='0.97', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='3.30e-08', ts2='11.94', photon_index='2.22' WHERE bin_id='104' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 15:53:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 769520: <4FGL_J1016.0+0512_daily_bin104> in cluster <slac> Done

Job <4FGL_J1016.0+0512_daily_bin104> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 15:40:46 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 15:41:48 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:48 2021
Terminated at Wed Sep  1 15:53:57 2021
Results reported at Wed Sep  1 15:53:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1016.0+0512_daily_bin104 154.009 5.2089 266284801 266544001 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 :                                   638.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   728 sec.
    Turnaround time :                            791 sec.

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

