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


Performing analysis on: 4FGL_J1016.0+0512_daily_bin751
RA = 154.009, Dec = 5.2089
tmin = 433987201, tmax = 434246401
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='774287', job_status='RUN', time_executed='2021-09-01 15:59:55.950395', time_epoch_executed='1630537195.95' WHERE source_name='4FGL J1016.0+0512' and cadence='daily' and bin_id='751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/774287

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/774287/ft1_4FGL_J1016.0+0512_daily_bin751.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/774287/ft2_4FGL_J1016.0+0512_daily_bin751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/774287/ft1_4FGL_J1016.0+0512_daily_bin751.fits outfile=/scratch/kocevski/774287/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin751.fits ra=154.009 dec=5.2089 rad=12.0 tmin=433987201.0 tmax=434246401.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 6.22
user 5.92
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/774287/ft1_filtered_4FGL_J1016.0+0512_daily_bin751.fits" evtable="EVENTS" scfile=/scratch/kocevski/774287/ft2_4FGL_J1016.0+0512_daily_bin751.fits sctable="SC_DATA" outfile=/scratch/kocevski/774287/ltcube_433987201_434246401_4FGL_J1016.0+0512_daily_bin751.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/774287/ft2_4FGL_J1016.0+0512_daily_bin751.fits
.....................!
real 16.55
user 16.15
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/774287/ft1_filtered_4FGL_J1016.0+0512_daily_bin751.fits evtable="EVENTS" scfile=/scratch/kocevski/774287/ft2_4FGL_J1016.0+0512_daily_bin751.fits sctable="SC_DATA" expcube=/scratch/kocevski/774287/ltcube_433987201_434246401_4FGL_J1016.0+0512_daily_bin751.fits outfile=/scratch/kocevski/774287/expmap_433987201_434246401_4FGL_J1016.0+0512_daily_bin751.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/774287/ltcube_433987201_434246401_4FGL_J1016.0+0512_daily_bin751.fits
.....................!
real 191.37
user 185.94
sys 4.79

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/774287/ft1_filtered_4FGL_J1016.0+0512_daily_bin751.fits scfile=/scratch/kocevski/774287/ft2_4FGL_J1016.0+0512_daily_bin751.fits outfile=/scratch/kocevski/774287/cmap_433987201_434246401_4FGL_J1016.0+0512_daily_bin751.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/774287/ft1_filtered_4FGL_J1016.0+0512_daily_bin751.fits scfile=/scratch/kocevski/774287/ft2_4FGL_J1016.0+0512_daily_bin751.fits outfile=/scratch/kocevski/774287/cmap_HighResolution_433987201_434246401_4FGL_J1016.0+0512_daily_bin751.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9590       1.0000         .10000E-03   10000.    
     2 'norm      '    2.9227       1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.628       1.0000         .10000E-03   10000.    
     4 'Prefactor '    50.580       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10486E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .60879E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10360E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    72.551       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12125E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9182       1.0000         .10000E-03   10000.    
    11 'norm      '    1.2151       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4682       1.0000         .10000E-03   10000.    
    15 'norm      '    .89086       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0578       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .79339       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=   3435.116     FROM MIGRAD    STATUS=CONVERGED    361 CALLS     1738 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9591        1.8418       -.37627E-07   -.10560E-03
   2  norm          2.9228        .95375       -.11741E-07    .21001E-04
   3  Prefactor     32.617        21.170        .10170E-04   -.24593E-03
   4  Prefactor     50.629        46.086       -.25165E-05    .46745E-04
   5  Prefactor     .10000E-03    13.223       -.17533E-06** at limit **
   6  norm          .10006E-03    74.269       -.87542E-05** at limit **
   7  Prefactor     .10000E-03    14.380        .10694E-05** at limit **
   8  Prefactor     72.590        74.889        .27069E-04    .18674E-04
   9  Prefactor     .10026E-03    467.24       -.22876E-04** at limit **
  10  Prefactor     1.9215        68.862       -.55034E-04    .40460E-05
  11  norm          1.2152        1.7213        .18187E-06   -.13316E-03
  12  Prefactor     .10000E-03    4.4204        .67173E-07** at limit **
  13  Prefactor     .10000E-03    1.6003        .40710E-07** at limit **
  14  Prefactor     4.4630        8.9106       -.76399E-05    .11913E-03
  15  norm          .89096        .76493        .22746E-06    .16705E-03
  16  Prefactor     .10000E-03    6.5087        .22885E-06** at limit **
  17  Normalizat    1.0576        .24719       -.39741E-05    .31924E-03
  18  Prefactor     .79351        .19771        .30750E-05    .89612E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.95913
  norm       = 2.92282
  Prefactor  = 32.6174
  Prefactor  = 50.6287
  Prefactor  = 0.0001
  norm       = 0.00010006
  Prefactor  = 0.0001
  Prefactor  = 72.5897
  Prefactor  = 0.00010026
  Prefactor  = 1.92151
  norm       = 1.21519
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.46302
  norm       = 0.890964
  Prefactor  = 0.0001
  Normalizat = 1.05763
  Prefactor  = 0.793508
 **********
 **   18 **HESSE 
 **********

 FCN=   3435.116     FROM HESSE     STATUS=OK           242 CALLS     1980 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9591        1.8498        .51443E-04   -1.5310    
   2  norm          2.9228        .95512        .31369E-04   -1.5366    
   3  Prefactor     32.617        21.134        .70150E-04   -1.4565    
   4  Prefactor     50.629        46.085        .56389E-04   -1.4284    
   5  Prefactor     .10000E-03    13.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10006E-03    76.396        .42113E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     72.590        75.211        .47134E-04   -1.4002    
   9  Prefactor     .10026E-03    464.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.9215        68.827        .30005E-03   -1.5431    
  11  norm          1.2152        1.6904        .87448E-04   -1.5487    
  12  Prefactor     .10000E-03    4.4448        .12031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.6141        .72360E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.4630        8.9135        .19049E-03   -1.5285    
  15  norm          .89096        .74277        .45601E-03   -1.5519    
  16  Prefactor     .10000E-03    6.5211        .14591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.0576        .28227        .25038E-03   -.91124    
  18  Prefactor     .79351        .22536        .23814E-03   -.99968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10949e-09
Minuit parameter uncertainties:
  1  1.84988
  2  0.955122
  3  21.1387
  4  46.117
  5  1.31144e-05
  6  0.0042907
  7  0.000165363
  8  75.31
  9  0.0221715
  10  23.0283
  11  1.69047
  12  7.08763e-06
  13  2.14377e-05
  14  8.91619
  15  0.74278
  16  2.40471e-05
  17  0.282671
  18  0.225619
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  1.654e-04  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:  7.935e-01  2.256e-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.058e+00  2.827e-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: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/774287/likelihoodResults_433987201_434246401_4FGL_J1016.0+0512_daily_bin751.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) = 3435.11675157
delta logL = -0.000330964207478

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3435.11642064
delta logL = -3.39914549841e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2221       1.0000          .0000       10.000    
     3 'Normalizat'    1.0576       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79356       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=   3435.116     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.7997        .90712E-02** at limit **
   2  Index         2.2208        6.1103        .50000        .74747E-06
   3  Normalizat    1.0576        .49584E-02    .40075E-01    .98256E-05
   4  Prefactor     .79351        .41644E-02    .43633E-01    .10557E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.22081
  Normalizat = 1.05763
  Prefactor  = 0.793512
 **********
 **   18 **HESSE 
 **********

 FCN=   3435.116     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      235 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    130.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2208        6.0676        .50000       -.58937    
   3  Normalizat    1.0576        .18184E-01    .25038E-03   -.91124    
   4  Prefactor     .79351        .15269E-01    .23814E-03   -.99968    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.87025e-09
Minuit parameter uncertainties:
  1  3.62065e-05
  2  395.046
  3  0.018184
  4  0.015269
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/774287': 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) = 3435.1164206
delta logL = 7.33962224331e-10

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  3.621e-05  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  2.221e+00  3.950e+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:  7.935e-01  1.527e-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.058e+00  1.818e-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/774287/cmap_HighResolution_433987201_434246401_4FGL_J1016.0+0512_daily_bin751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.69e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-09-01 16:07:32.754619', job_id='774287', GAL2='0.79', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630537652.75', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='7.34e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='751' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:07:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 774287: <4FGL_J1016.0+0512_daily_bin751> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1016.0+0512_daily_bin751 154.009 5.2089 433987201 434246401 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 :                                   455.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   666 sec.
    Turnaround time :                            707 sec.

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

