/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 103 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 = 7478
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1016.0+0512_daily_bin113
RA = 154.009, Dec = 5.2089
tmin = 268617601, tmax = 268876801
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='769534', job_status='RUN', time_executed='2021-09-01 15:43:44.505556', time_epoch_executed='1630536224.51' WHERE source_name='4FGL J1016.0+0512' and cadence='daily' and bin_id='113'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/769534

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/769534/ft1_4FGL_J1016.0+0512_daily_bin113.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/769534/ft2_4FGL_J1016.0+0512_daily_bin113.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/769534/ft1_4FGL_J1016.0+0512_daily_bin113.fits outfile=/scratch/kocevski/769534/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin113.fits ra=154.009 dec=5.2089 rad=12.0 tmin=268617601.0 tmax=268876801.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.59
user 1.34
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/769534/ft2_4FGL_J1016.0+0512_daily_bin113.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/769534/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin113.fits evtable="EVENTS" outfile="/scratch/kocevski/769534/ft1_filtered_4FGL_J1016.0+0512_daily_bin113.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.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/769534/ft1_filtered_4FGL_J1016.0+0512_daily_bin113.fits" evtable="EVENTS" scfile=/scratch/kocevski/769534/ft2_4FGL_J1016.0+0512_daily_bin113.fits sctable="SC_DATA" outfile=/scratch/kocevski/769534/ltcube_268617601_268876801_4FGL_J1016.0+0512_daily_bin113.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/769534/ft2_4FGL_J1016.0+0512_daily_bin113.fits
.....................!
real 13.48
user 13.10
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/769534/ft1_filtered_4FGL_J1016.0+0512_daily_bin113.fits evtable="EVENTS" scfile=/scratch/kocevski/769534/ft2_4FGL_J1016.0+0512_daily_bin113.fits sctable="SC_DATA" expcube=/scratch/kocevski/769534/ltcube_268617601_268876801_4FGL_J1016.0+0512_daily_bin113.fits outfile=/scratch/kocevski/769534/expmap_268617601_268876801_4FGL_J1016.0+0512_daily_bin113.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/769534/ltcube_268617601_268876801_4FGL_J1016.0+0512_daily_bin113.fits
.....................!
real 190.94
user 185.41
sys 5.00

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/769534/ft1_filtered_4FGL_J1016.0+0512_daily_bin113.fits scfile=/scratch/kocevski/769534/ft2_4FGL_J1016.0+0512_daily_bin113.fits outfile=/scratch/kocevski/769534/cmap_268617601_268876801_4FGL_J1016.0+0512_daily_bin113.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/769534/ft1_filtered_4FGL_J1016.0+0512_daily_bin113.fits scfile=/scratch/kocevski/769534/ft2_4FGL_J1016.0+0512_daily_bin113.fits outfile=/scratch/kocevski/769534/cmap_HighResolution_268617601_268876801_4FGL_J1016.0+0512_daily_bin113.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.0423       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13459E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .14161E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.992       1.0000         .10000E-03   10000.    
     8 'Prefactor '    47.396       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .26006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11124E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .40334       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.4475       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .78352       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.7682       1.0000         .10000E-03   10000.    
    15 'norm      '    .58193       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.5214       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .82398       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0645       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5997.985     FROM MIGRAD    STATUS=CONVERGED     91 CALLS     1496 TOTAL
                     EDM=   .66E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.2815        .60575E-06** at limit **
   2  norm          1.0426        .66872       -.58657E-08   -.45684E-03
   3  Prefactor     .10000E-03    8.4519        .23908E-05** at limit **
   4  Prefactor     .10000E-03    9.1180       -.21202E-05** at limit **
   5  Prefactor     .10000E-03    13.912        .46988E-05** at limit **
   6  norm          .10000E-03    17.202       -.16675E-05** at limit **
   7  Prefactor     27.989        12.047       -.66485E-05    .60423E-03
   8  Prefactor     47.707        48.314        .39352E-05    .42919E-04
   9  Prefactor     .10009E-03    1.3082        .17797E-05** at limit **
  10  Prefactor     .10000E-03    6.3109        .13903E-05** at limit **
  11  norm          .40359        1.2932        .18384E-05   -.95094E-05
  12  Prefactor     4.4516        5.4461       -.12617E-04   -.41554E-03
  13  Prefactor     .78191        2.8893       -.61832E-07    .34982E-04
  14  Prefactor     5.7962        1.9460        .17730E-05   -.16642E-02
  15  norm          .58196        .45222       -.62384E-07    .48021E-04
  16  Prefactor     5.5166        1.0171        .21154E-06    .44540E-03
  17  Normalizat    .82371        .21241        .42236E-05   -.22161E-04
  18  Prefactor     1.0646        .17489       -.70521E-06    .39206E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.04261
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 27.9885
  Prefactor  = 47.7067
  Prefactor  = 0.000100092
  Prefactor  = 0.0001
  norm       = 0.403591
  Prefactor  = 4.45163
  Prefactor  = 0.781909
  Prefactor  = 5.79624
  norm       = 0.581958
  Prefactor  = 5.51657
  Normalizat = 0.82371
  Prefactor  = 1.06456
 **********
 **   18 **HESSE 
 **********

 FCN=   5997.985     FROM HESSE     STATUS=OK           286 CALLS     1782 TOTAL
                     EDM=   .69E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .51462        .20700E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0426        .68589        .10744E-01   -1.5504    
   3  Prefactor     .10000E-03    8.4036        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.2961        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.892        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    17.222        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     27.989        12.217        .18931E-02   -1.4649    
   8  Prefactor     47.707        48.237        .14561E-02   -1.4325    
   9  Prefactor     .10009E-03    26.381        .10724E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.3061        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .40359        1.2965        .10870E-01   -1.5581    
  12  Prefactor     4.4516        5.6018        .47736E-02   -1.5286    
  13  Prefactor     .78191        2.9494        .12378E-01   -1.5531    
  14  Prefactor     5.7962        6.9669        .41808E-02   -1.5226    
  15  norm          .58196        .48705        .10047E-01   -1.5555    
  16  Prefactor     5.5166        5.4617        .42747E-02   -1.5238    
  17  Normalizat    .82371        .18784        .43922E-01   -.99195    
  18  Prefactor     1.0646        .15258        .39125E-01   -.90608    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.88172e-08
Minuit parameter uncertainties:
  1  1.45193e-06
  2  0.68589
  3  1.88042e-05
  4  0.000168947
  5  5.6402e-06
  6  0.000191349
  7  12.2182
  8  48.276
  9  0.00312329
  10  2.43672e-05
  11  1.29663
  12  5.60243
  13  2.94998
  14  6.96787
  15  0.487052
  16  5.46219
  17  0.187993
  18  0.152646
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  2.799e+01  1.222e+01  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  2.223e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  1.065e+00  1.526e-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.237e-01  1.880e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.06
Ra Dec: 154.009 5.209
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 9.09e-08 +/- 3.97e-08
Energy Flux (Fixed Index): 3.91e-05 +/- 1.71e-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) = 5997.97344322
delta logL = 0.0116617802059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5997.96534363
delta logL = 0.0197613750233

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.782       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1456       1.0000          .0000       10.000    
     3 'Normalizat'    .83228       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0604       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=   5997.965     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      200 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.782        222.40        .18354E-02    .73817E-03
   2  Index         2.1456        3.0161        .12914        .10199E-03
   3  Normalizat    .83229        .15355        .44030E-01    .17731E-04
   4  Prefactor     1.0604        .73334E-01    .39337E-01    .34251E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.7819
  Index      = 2.14559
  Normalizat = 0.832287
  Prefactor  = 1.06038
 **********
 **   18 **HESSE 
 **********

 FCN=   5997.965     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.782        15.832        .73416E-04   -1.4616    
   2  Index         2.1456        .40096        .47618E-02   -.60758    
   3  Normalizat    .83229        .20738        .27201E-03   -.98882    
   4  Prefactor     1.0604        .17505        .20951E-03   -.90743    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.19834e-10
Minuit parameter uncertainties:
  1  15.834
  2  0.401603
  3  0.207582
  4  0.175147
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/769534': 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) = 5997.96534362
delta logL = 0.0197613762793

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  2.978e+01  1.583e+01  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  2.146e+00  4.016e-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.060e+00  1.751e-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.323e-01  2.076e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.10
Ra Dec: 154.009 5.209
Photon Index (Free Index): 2.15 +/- 0.40
Photon Flux (Free Index): 8.38e-08 +/- 5.09e-08
Energy Flux (Free Index): 4.18e-05 +/- 2.42e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/769534/cmap_HighResolution_268617601_268876801_4FGL_J1016.0+0512_daily_bin113.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.09e-08', energy_flux2='4.18e-05', photon_flux_error='3.97e-08', dlogl='1.98e-02', energy_flux='3.91e-05', photon_flux2='8.38e-08', job_status='DONE', time_completed='2021-09-01 15:51:30.239059', photon_index_error2='0.40', photon_index2='2.15', ts='18.06', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='2.42e-05', EG='0.82', time_epoch_completed='1630536690.24', return_code='0', job_id='769534', GAL2='1.06', EG2='0.83', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='5.09e-08', ts2='18.10', photon_index='2.22' WHERE bin_id='113' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 15:51:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 769534: <4FGL_J1016.0+0512_daily_bin113> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1016.0+0512_daily_bin113 154.009 5.2089 268617601 268876801 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 :                                   465.34 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             329.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   576 sec.
    Turnaround time :                            643 sec.

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

