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


Performing analysis on: 4FGL_J1016.0+0512_daily_bin250
RA = 154.009, Dec = 5.2089
tmin = 304128001, tmax = 304387201
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='771106', job_status='RUN', time_executed='2021-09-01 15:47:39.218825', time_epoch_executed='1630536459.22' WHERE source_name='4FGL J1016.0+0512' and cadence='daily' and bin_id='250'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/771106

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/771106/ft1_4FGL_J1016.0+0512_daily_bin250.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/771106/ft2_4FGL_J1016.0+0512_daily_bin250.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/771106/ft1_4FGL_J1016.0+0512_daily_bin250.fits outfile=/scratch/kocevski/771106/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin250.fits ra=154.009 dec=5.2089 rad=12.0 tmin=304128001.0 tmax=304387201.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 3.43
user 3.20
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/771106/ft2_4FGL_J1016.0+0512_daily_bin250.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/771106/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin250.fits evtable="EVENTS" outfile="/scratch/kocevski/771106/ft1_filtered_4FGL_J1016.0+0512_daily_bin250.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/771106/ft1_filtered_4FGL_J1016.0+0512_daily_bin250.fits" evtable="EVENTS" scfile=/scratch/kocevski/771106/ft2_4FGL_J1016.0+0512_daily_bin250.fits sctable="SC_DATA" outfile=/scratch/kocevski/771106/ltcube_304128001_304387201_4FGL_J1016.0+0512_daily_bin250.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/771106/ft2_4FGL_J1016.0+0512_daily_bin250.fits
.....................!
real 14.85
user 14.42
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/771106/ft1_filtered_4FGL_J1016.0+0512_daily_bin250.fits evtable="EVENTS" scfile=/scratch/kocevski/771106/ft2_4FGL_J1016.0+0512_daily_bin250.fits sctable="SC_DATA" expcube=/scratch/kocevski/771106/ltcube_304128001_304387201_4FGL_J1016.0+0512_daily_bin250.fits outfile=/scratch/kocevski/771106/expmap_304128001_304387201_4FGL_J1016.0+0512_daily_bin250.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/771106/ltcube_304128001_304387201_4FGL_J1016.0+0512_daily_bin250.fits
.....................!
real 192.93
user 187.63
sys 3.95

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/771106/ft1_filtered_4FGL_J1016.0+0512_daily_bin250.fits scfile=/scratch/kocevski/771106/ft2_4FGL_J1016.0+0512_daily_bin250.fits outfile=/scratch/kocevski/771106/cmap_304128001_304387201_4FGL_J1016.0+0512_daily_bin250.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.58
user 0.42
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/771106/ft1_filtered_4FGL_J1016.0+0512_daily_bin250.fits scfile=/scratch/kocevski/771106/ft2_4FGL_J1016.0+0512_daily_bin250.fits outfile=/scratch/kocevski/771106/cmap_HighResolution_304128001_304387201_4FGL_J1016.0+0512_daily_bin250.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.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .35872E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    1.2504       1.0000         .10000E-03   10000.    
     3 'Prefactor '    41.199       1.0000         .10000E-03   10000.    
     4 'Prefactor '    98.122       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.960       1.0000         .10000E-03   10000.    
     6 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    40.642       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11154E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .58325       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0158       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.5596       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=   6565.895     FROM MIGRAD    STATUS=CONVERGED    354 CALLS     1734 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .39217E-01    .65004       -.43118E-06    .57120E-03
   2  norm          1.2506        .90438       -.96859E-07   -.94597E-03
   3  Prefactor     41.203        19.826        .25563E-05    .18093E-04
   4  Prefactor     98.134        67.721        .12268E-04    .85207E-05
   5  Prefactor     22.947        39.990       -.23281E-04   -.77762E-05
   6  norm          .10000E-03    8.9810       -.12767E-05** at limit **
   7  Prefactor     .10000E-03    3.1647       -.52713E-06** at limit **
   8  Prefactor     40.648        57.698        .84930E-05   -.10573E-04
   9  Prefactor     .10000E-03    19.516        .12510E-04** at limit **
  10  Prefactor     .10000E-03    7.2079        .26390E-06** at limit **
  11  norm          .10000E-03    .60601        .10049E-06** at limit **
  12  Prefactor     .10000E-03    2.4941       -.54818E-07** at limit **
  13  Prefactor     .10000E-03    2.7030        .16528E-05** at limit **
  14  Prefactor     .10000E-03    2.7383       -.16835E-05** at limit **
  15  norm          .58162        .57749        .17046E-06    .22564E-02
  16  Prefactor     .10000E-03    20.539       -.11964E-04** at limit **
  17  Normalizat    1.0155        .22278       -.13799E-05    .14820E-03
  18  Prefactor     1.5596        .18808        .13585E-06    .12904E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.039217
  norm       = 1.25062
  Prefactor  = 41.2027
  Prefactor  = 98.1345
  Prefactor  = 22.9466
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.648
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.581615
  Prefactor  = 0.0001
  Normalizat = 1.01554
  Prefactor  = 1.55963
 **********
 **   18 **HESSE 
 **********

 FCN=   6565.895     FROM HESSE     STATUS=OK           246 CALLS     1980 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .39217E-01    5.2575        .12456E-02   -1.5668    
   2  norm          1.2506        .88924        .61434E-04   -1.5484    
   3  Prefactor     41.203        19.830        .62452E-04   -1.4423    
   4  Prefactor     98.134        67.715        .40581E-04   -1.3723    
   5  Prefactor     22.947        40.052        .83595E-04   -1.4750    
   6  norm          .10000E-03    8.9943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.1684        .14080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     40.648        57.668        .62877E-04   -1.4432    
   9  Prefactor     .10000E-03    19.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.2196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .61664        .61546E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.4998        .12496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.8080        .25970E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.7458        .13093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .58162        .54032        .58882E-03   -1.5555    
  16  Prefactor     .10000E-03    21.032        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.0155        .26041        .33000E-03   -.92512    
  18  Prefactor     1.5596        .22242        .23786E-03   -.75883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43189e-09
Minuit parameter uncertainties:
  1  0.907075
  2  0.889247
  3  19.8328
  4  67.7688
  5  40.0992
  6  5.54122e-05
  7  1.2629e-05
  8  57.7475
  9  4.93403e-05
  10  2.25193e-05
  11  3.30365e-06
  12  1.08568e-06
  13  1.08224e-05
  14  1.18594e-06
  15  0.540322
  16  0.000161113
  17  0.260734
  18  0.222556
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  1.263e-05  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.560e+00  2.226e-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:  1.016e+00  2.607e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.009 5.209
Photon Flux Upper Limit: 5.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/771106/likelihoodResults_304128001_304387201_4FGL_J1016.0+0512_daily_bin250.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): 102
logL (Free Index) = 6565.89684037
delta logL = -0.00146357452195

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6565.8953779
delta logL = -1.10006385512e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2018       1.0000          .0000       10.000    
     3 'Normalizat'    1.0159       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5593       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6565.895     FROM MIGRAD    STATUS=FAILED        86 CALLS      241 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10194E-03    41.158        .14356E-02** at limit **
   2  Index         2.1335        7.3935        .50000        .48520E-04
   3  Normalizat    1.0155        .19639E-01    .33000E-03    .54466E-04
   4  Prefactor     1.5596        .17112E-01    .23786E-03    .61285E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6565.895     FROM SIMPLEX   STATUS=UNCHANGED    130 CALLS      371 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10194E-03    41.158        .31316E-03** at limit **
   2  Index         2.1335        7.3935        .40714E-03    .48520E-04
   3  Normalizat    1.0155        .19639E-01    .23568E-05    .54466E-04
   4  Prefactor     1.5596        .17112E-01    .89652E-06    .61285E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6565.895     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      418 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.383        .28712E-02** at limit **
   2  Index         1.6892        8.1312        .50000        .80126E-07
   3  Normalizat    1.0155        .19817E-01    .13200E-04   -.80407E-03
   4  Prefactor     1.5596        .17267E-01    .47571E-04   -.11060E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.68918
  Normalizat = 1.01553
  Prefactor  = 1.55963
 **********
 **   18 **HESSE 
 **********

 FCN=   6565.895     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      447 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    229.25        .57424E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6892        9.1548        .50000       -.72370    
   3  Normalizat    1.0155        .44699E-01    .26400E-05   -.92512    
   4  Prefactor     1.5596        .38947E-01    .95142E-05   -.75883    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.54715e-10
Minuit parameter uncertainties:
  1  0.000142002
  2  744.655
  3  0.0447006
  4  0.0389475
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/771106': 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): 102
logL (Free Index) = 6565.89537316
delta logL = 3.63780782209e-06

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  1.420e-04  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  1.689e+00  7.447e+02  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.560e+00  3.895e-02  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:  1.016e+00  4.470e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.009 5.209

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/771106/cmap_HighResolution_304128001_304387201_4FGL_J1016.0+0512_daily_bin250.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.21e-03', job_status='DONE', photon_flux_upper_limit='5.52e-08', time_completed='2021-09-01 15:57:08.890467', job_id='771106', GAL2='1.56', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630537028.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.56', dlogl='3.64e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='250' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 15:57:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 771106: <4FGL_J1016.0+0512_daily_bin250> in cluster <slac> Done

Job <4FGL_J1016.0+0512_daily_bin250> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 15:45:29 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 15:45:44 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:45:44 2021
Terminated at Wed Sep  1 15:57:09 2021
Results reported at Wed Sep  1 15:57:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1016.0+0512_daily_bin250 154.009 5.2089 304128001 304387201 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 :                                   565.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             264.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   685 sec.
    Turnaround time :                            700 sec.

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

