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


Performing analysis on: 4FGL_J1016.0+0512_daily_bin115
RA = 154.009, Dec = 5.2089
tmin = 269136001, tmax = 269395201
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='769537', job_status='RUN', time_executed='2021-09-01 15:45:45.267738', time_epoch_executed='1630536345.27' WHERE source_name='4FGL J1016.0+0512' and cadence='daily' and bin_id='115'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/769537

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/769537/ft1_4FGL_J1016.0+0512_daily_bin115.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/769537/ft2_4FGL_J1016.0+0512_daily_bin115.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/769537/ft1_4FGL_J1016.0+0512_daily_bin115.fits outfile=/scratch/kocevski/769537/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin115.fits ra=154.009 dec=5.2089 rad=12.0 tmin=269136001.0 tmax=269395201.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.67
user 1.48
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/769537/ft1_filtered_4FGL_J1016.0+0512_daily_bin115.fits" evtable="EVENTS" scfile=/scratch/kocevski/769537/ft2_4FGL_J1016.0+0512_daily_bin115.fits sctable="SC_DATA" outfile=/scratch/kocevski/769537/ltcube_269136001_269395201_4FGL_J1016.0+0512_daily_bin115.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/769537/ft2_4FGL_J1016.0+0512_daily_bin115.fits
.....................!
real 12.90
user 12.57
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/769537/ft1_filtered_4FGL_J1016.0+0512_daily_bin115.fits evtable="EVENTS" scfile=/scratch/kocevski/769537/ft2_4FGL_J1016.0+0512_daily_bin115.fits sctable="SC_DATA" expcube=/scratch/kocevski/769537/ltcube_269136001_269395201_4FGL_J1016.0+0512_daily_bin115.fits outfile=/scratch/kocevski/769537/expmap_269136001_269395201_4FGL_J1016.0+0512_daily_bin115.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/769537/ltcube_269136001_269395201_4FGL_J1016.0+0512_daily_bin115.fits
.....................!
real 190.41
user 185.94
sys 4.04

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/769537/ft1_filtered_4FGL_J1016.0+0512_daily_bin115.fits scfile=/scratch/kocevski/769537/ft2_4FGL_J1016.0+0512_daily_bin115.fits outfile=/scratch/kocevski/769537/cmap_269136001_269395201_4FGL_J1016.0+0512_daily_bin115.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/769537/ft1_filtered_4FGL_J1016.0+0512_daily_bin115.fits scfile=/scratch/kocevski/769537/ft2_4FGL_J1016.0+0512_daily_bin115.fits outfile=/scratch/kocevski/769537/cmap_HighResolution_269136001_269395201_4FGL_J1016.0+0512_daily_bin115.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.57
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10304E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.8261       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.927       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10289E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.999       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .77659       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.3587       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.3949       1.0000         .10000E-03   10000.    
    15 'norm      '    1.5253       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.229       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2595       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .83531       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=   7711.090     FROM MIGRAD    STATUS=CONVERGED    355 CALLS     1732 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .84048       -.33077E-06** at limit **
   2  norm          1.8260        .63528        .34116E-07    .31420E-03
   3  Prefactor     .10000E-03    3.8070       -.13192E-06** at limit **
   4  Prefactor     29.899        35.310       -.32782E-04    .39132E-05
   5  Prefactor     .10000E-03    9.9180       -.49787E-05** at limit **
   6  norm          .10000E-03    9.0643        .11783E-04** at limit **
   7  Prefactor     13.998        9.0349       -.39460E-06   -.59413E-04
   8  Prefactor     .10000E-03    63.263       -.53435E-06** at limit **
   9  Prefactor     .10000E-03    21.188        .56599E-06** at limit **
  10  Prefactor     .10000E-03    8.7513       -.71856E-05** at limit **
  11  norm          .77518        .97613        .31354E-06    .10937E-02
  12  Prefactor     5.3593        5.4515        .21486E-05   -.17759E-03
  13  Prefactor     .10000E-03    .87681        .42461E-07** at limit **
  14  Prefactor     6.3953        7.3794       -.15397E-05   -.21375E-03
  15  norm          1.5260        .70162       -.13238E-06    .13935E-03
  16  Prefactor     16.221        10.521        .10243E-05   -.80694E-04
  17  Normalizat    1.2596        .17431        .23532E-05   -.18477E-05
  18  Prefactor     .83517        .14291        .67199E-06    .15336E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.82599
  Prefactor  = 0.0001
  Prefactor  = 29.8987
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.998
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.775184
  Prefactor  = 5.35931
  Prefactor  = 0.0001
  Prefactor  = 6.39526
  norm       = 1.52598
  Prefactor  = 16.2209
  Normalizat = 1.25959
  Prefactor  = 0.835171
 **********
 **   18 **HESSE 
 **********

 FCN=   7711.090     FROM HESSE     STATUS=OK           250 CALLS     1982 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.6374        .15322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.8260        .63163        .39383E-04   -1.5438    
   3  Prefactor     .10000E-03    3.8158        .16730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     29.899        35.330        .73238E-04   -1.4614    
   5  Prefactor     .10000E-03    9.9000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    9.1049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.998        9.0176        .10705E-03   -1.4960    
   8  Prefactor     .10000E-03    63.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.7735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .77518        .85708        .92557E-03   -1.5532    
  12  Prefactor     5.3593        5.4154        .17361E-03   -1.5245    
  13  Prefactor     .10000E-03    .88516        .80221E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.3953        7.3658        .15872E-03   -1.5202    
  15  norm          1.5260        .71713        .41417E-04   -1.5461    
  16  Prefactor     16.221        10.825        .99419E-04   -1.4902    
  17  Normalizat    1.2596        .20393        .24881E-03   -.84781    
  18  Prefactor     .83517        .16896        .24955E-03   -.98445    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.1111e-10
Minuit parameter uncertainties:
  1  4.55876e-05
  2  0.631635
  3  8.30546e-06
  4  35.3543
  5  0.000107258
  6  3.09171e-05
  7  9.01849
  8  0.000191699
  9  5.42367e-06
  10  6.09833e-06
  11  0.857094
  12  5.41587
  13  9.93176e-07
  14  7.36686
  15  0.717138
  16  10.8266
  17  0.204056
  18  0.169065
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  8.352e-01  1.691e-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.260e+00  2.041e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.06
Ra Dec: 154.009 5.209
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 4.55e-08 +/- 2.93e-08
Energy Flux (Fixed Index): 1.96e-05 +/- 1.26e-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) = 7710.87901892
delta logL = 0.211142619308

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7710.87853209
delta logL = 0.211629452363

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.982       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9574       1.0000          .0000       10.000    
     3 'Normalizat'    1.2713       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82723       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=   7710.879     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      269 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.962        302.99        .22982E-02    .28389E-04
   2  Index         1.9565        3.2052        .16929        .87119E-04
   3  Normalizat    1.2710        .91612E-01    .56047E-01   -.14409E-04
   4  Prefactor     .82754        .66453E-01    .44071E-01   -.64514E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.9623
  Index      = 1.9565
  Normalizat = 1.27099
  Prefactor  = 0.827536
 **********
 **   18 **HESSE 
 **********

 FCN=   7710.879     FROM HESSE     STATUS=OK            33 CALLS      302 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.962        13.447        .91928E-04   -1.4837    
   2  Index         1.9565        .39355        .62433E-02   -.65442    
   3  Normalizat    1.2710        .20105        .24784E-03   -.84436    
   4  Prefactor     .82754        .16845        .25051E-03   -.98721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.72587e-12
Minuit parameter uncertainties:
  1  13.4495
  2  0.3942
  3  0.201171
  4  0.16856
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/769537': 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) = 7710.87852345
delta logL = 0.211638094032

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  1.896e+01  1.345e+01  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  1.957e+00  3.942e-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:  8.275e-01  1.686e-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.271e+00  2.012e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.47
Ra Dec: 154.009 5.209
Photon Index (Free Index): 1.96 +/- 0.39
Photon Flux (Free Index): 3.84e-08 +/- 2.73e-08
Energy Flux (Free Index): 2.96e-05 +/- 2.77e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/769537/cmap_HighResolution_269136001_269395201_4FGL_J1016.0+0512_daily_bin115.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.55e-08', energy_flux2='2.96e-05', photon_flux_error='2.93e-08', dlogl='2.12e-01', energy_flux='1.96e-05', photon_flux2='3.84e-08', job_status='DONE', time_completed='2021-09-01 15:54:44.142842', photon_index_error2='0.39', photon_index2='1.96', ts='4.06', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='2.77e-05', EG='1.26', time_epoch_completed='1630536884.14', return_code='0', job_id='769537', GAL2='0.83', EG2='1.27', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='2.73e-08', ts2='4.47', photon_index='2.22' WHERE bin_id='115' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 15:54:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 769537: <4FGL_J1016.0+0512_daily_bin115> in cluster <slac> Done

Job <4FGL_J1016.0+0512_daily_bin115> 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) <bullet0091>, 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:54:45 2021
Results reported at Wed Sep  1 15:54:45 2021

Your job looked like:

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

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

