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


Performing analysis on: 4FGL_J1016.0+0512_daily_bin854
RA = 154.009, Dec = 5.2089
tmin = 460684801, tmax = 460944001
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='774441', job_status='RUN', time_executed='2021-09-01 16:00:17.183168', time_epoch_executed='1630537217.18' WHERE source_name='4FGL J1016.0+0512' and cadence='daily' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/774441

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/774441/ft1_4FGL_J1016.0+0512_daily_bin854.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/774441/ft2_4FGL_J1016.0+0512_daily_bin854.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/774441/ft1_4FGL_J1016.0+0512_daily_bin854.fits outfile=/scratch/kocevski/774441/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin854.fits ra=154.009 dec=5.2089 rad=12.0 tmin=460684801.0 tmax=460944001.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.42
user 3.14
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/774441/ft2_4FGL_J1016.0+0512_daily_bin854.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/774441/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin854.fits evtable="EVENTS" outfile="/scratch/kocevski/774441/ft1_filtered_4FGL_J1016.0+0512_daily_bin854.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/774441/ft1_filtered_4FGL_J1016.0+0512_daily_bin854.fits" evtable="EVENTS" scfile=/scratch/kocevski/774441/ft2_4FGL_J1016.0+0512_daily_bin854.fits sctable="SC_DATA" outfile=/scratch/kocevski/774441/ltcube_460684801_460944001_4FGL_J1016.0+0512_daily_bin854.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/774441/ft2_4FGL_J1016.0+0512_daily_bin854.fits
.....................!
real 16.75
user 16.31
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/774441/ft1_filtered_4FGL_J1016.0+0512_daily_bin854.fits evtable="EVENTS" scfile=/scratch/kocevski/774441/ft2_4FGL_J1016.0+0512_daily_bin854.fits sctable="SC_DATA" expcube=/scratch/kocevski/774441/ltcube_460684801_460944001_4FGL_J1016.0+0512_daily_bin854.fits outfile=/scratch/kocevski/774441/expmap_460684801_460944001_4FGL_J1016.0+0512_daily_bin854.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/774441/ltcube_460684801_460944001_4FGL_J1016.0+0512_daily_bin854.fits
.....................!
real 192.69
user 186.77
sys 5.15

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/774441/ft1_filtered_4FGL_J1016.0+0512_daily_bin854.fits scfile=/scratch/kocevski/774441/ft2_4FGL_J1016.0+0512_daily_bin854.fits outfile=/scratch/kocevski/774441/cmap_460684801_460944001_4FGL_J1016.0+0512_daily_bin854.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 1.25
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/774441/ft1_filtered_4FGL_J1016.0+0512_daily_bin854.fits scfile=/scratch/kocevski/774441/ft2_4FGL_J1016.0+0512_daily_bin854.fits outfile=/scratch/kocevski/774441/cmap_HighResolution_460684801_460944001_4FGL_J1016.0+0512_daily_bin854.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.69
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5213       1.0000         .10000E-03   10000.    
     2 'norm      '    .54984E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .22117E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10449E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .28182E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11910E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11555E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14499E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12361E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.6796       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10364E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12308E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    3.0468       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .19835E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .86170       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.3670       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=   5636.718     FROM MIGRAD    STATUS=CONVERGED    392 CALLS     1536 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5213        1.4507        .53858E-02    .48032E-04
   2  norm          .53764E-01    .37007        .24201E-01    .11916E-02
   3  Prefactor     .10000E-03    9.5038        .90712E-02** at limit **
   4  Prefactor     .10012E-03    29.002        .90712E-02** at limit **
   5  Prefactor     .10002E-03    25.007        .90712E-02** at limit **
   6  norm          .10000E-03    9.1630        .10708E-01** at limit **
   7  Prefactor     .10000E-03    3.8758        .90712E-02** at limit **
   8  Prefactor     .10005E-03    32.233        .90712E-02** at limit **
   9  Prefactor     .10000E-03    16.459        .90712E-02** at limit **
  10  Prefactor     .10000E-03    5.5952        .90712E-02** at limit **
  11  norm          2.6790        2.0953        .62233E-02    .40324E-03
  12  Prefactor     .10000E-03    3.0137        .90712E-02** at limit **
  13  Prefactor     .10000E-03    1.3398        .90712E-02** at limit **
  14  Prefactor     .10000E-03    6.4919        .68125E-01** at limit **
  15  norm          3.0471        .95003        .58109E-02    .11624E-03
  16  Prefactor     .10000E-03    5.6591        .90712E-02** at limit **
  17  Normalizat    .86187        .20862        .69239E-01    .15334E-04
  18  Prefactor     1.3670        .17994        .49595E-01   -.35883E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.52132
  norm       = 0.0537644
  Prefactor  = 0.0001
  Prefactor  = 0.000100116
  Prefactor  = 0.000100019
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100048
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.67905
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.04707
  Prefactor  = 0.0001
  Normalizat = 0.861872
  Prefactor  = 1.36701
 **********
 **   18 **HESSE 
 **********

 FCN=   5636.718     FROM HESSE     STATUS=OK           250 CALLS     1786 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5213        1.4514        .55868E-04   -1.5333    
   2  norm          .53764E-01    1.6870        .85872E-03   -1.5662    
   3  Prefactor     .10000E-03    9.5519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10012E-03    29.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10002E-03    25.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    9.2046        .21416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.8819        .14434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10005E-03    32.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.5973        .17345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.6790        2.0874        .90560E-04   -1.5381    
  12  Prefactor     .10000E-03    3.0255        .12726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.3522        .84804E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.7379        .55495E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.0471        .94916        .39092E-04   -1.5359    
  16  Prefactor     .10000E-03    5.6733        .17430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .86187        .24672        .30634E-03   -.97813    
  18  Prefactor     1.3670        .21462        .21924E-03   -.81336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15711e-08
Minuit parameter uncertainties:
  1  1.45146
  2  0.601786
  3  2.78012e-06
  4  0.00366615
  5  0.00136629
  6  2.99571e-05
  7  9.71992e-07
  8  0.00248223
  9  7.19609e-05
  10  8.27274e-06
  11  2.08746
  12  4.18885e-07
  13  6.39051e-08
  14  0.000124371
  15  0.94917
  16  8.46164e-06
  17  0.247044
  18  0.21476
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  9.720e-07  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.367e+00  2.148e-01  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  8.619e-01  2.470e-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: 6.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/774441/likelihoodResults_460684801_460944001_4FGL_J1016.0+0512_daily_bin854.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) = 5636.71949234
delta logL = -0.00121783972463

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5636.71827428
delta logL = 2.20667971007e-07

Fit tolerance = 1e-08

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

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

 FCN=   5636.718     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      245 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10155E-03    47.738        .14689E-02** at limit **
   2  Index         2.1391        5.1907        .50000        .36872E-04
   3  Normalizat    .86187        .17850E-01    .30634E-03   -.22823E-04
   4  Prefactor     1.3670        .15752E-01    .21924E-03    .10008E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101546
  Index      = 2.13908
  Normalizat = 0.861871
  Prefactor  = 1.36701
 **********
 **   18 **HESSE 
 **********

 FCN=   5636.718     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .74E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10155E-03    197.27        .29378E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1391        5.0768        .50000       -.60917    
   3  Normalizat    .86187        .37962E-01    .12254E-04   -.97813    
   4  Prefactor     1.3670        .33498E-01    .87698E-05   -.81336    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.4064e-08
Minuit parameter uncertainties:
  1  0.0350477
  2  489.383
  3  0.0379635
  4  0.0334987
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/774441': 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) = 5636.71827384
delta logL = 6.55449184706e-07

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  1.015e-04  3.505e-02  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  2.139e+00  4.894e+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.367e+00  3.350e-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:  8.619e-01  3.796e-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/774441/cmap_HighResolution_460684801_460944001_4FGL_J1016.0+0512_daily_bin854.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.72e-03', job_status='DONE', photon_flux_upper_limit='6.19e-08', time_completed='2021-09-01 16:08:49.982330', job_id='774441', GAL2='1.37', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1630537729.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='6.55e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='854' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:08:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 774441: <4FGL_J1016.0+0512_daily_bin854> in cluster <slac> Done

Job <4FGL_J1016.0+0512_daily_bin854> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 15:55:59 2021
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 15:57:03 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:57:03 2021
Terminated at Wed Sep  1 16:08:50 2021
Results reported at Wed Sep  1 16:08:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1016.0+0512_daily_bin854 154.009 5.2089 460684801 460944001 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 :                                   511.07 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             260.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   707 sec.
    Turnaround time :                            771 sec.

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

