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


Performing analysis on: 4FGL_J1016.0+0512_daily_bin121
RA = 154.009, Dec = 5.2089
tmin = 270691201, tmax = 270950401
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='769546', job_status='RUN', time_executed='2021-09-01 15:45:41.191769', time_epoch_executed='1630536341.19' WHERE source_name='4FGL J1016.0+0512' and cadence='daily' and bin_id='121'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/769546

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/769546/ft1_4FGL_J1016.0+0512_daily_bin121.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/769546/ft2_4FGL_J1016.0+0512_daily_bin121.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/769546/ft1_4FGL_J1016.0+0512_daily_bin121.fits outfile=/scratch/kocevski/769546/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin121.fits ra=154.009 dec=5.2089 rad=12.0 tmin=270691201.0 tmax=270950401.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.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/769546/ft2_4FGL_J1016.0+0512_daily_bin121.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/769546/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin121.fits evtable="EVENTS" outfile="/scratch/kocevski/769546/ft1_filtered_4FGL_J1016.0+0512_daily_bin121.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.52
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/769546/ft1_filtered_4FGL_J1016.0+0512_daily_bin121.fits" evtable="EVENTS" scfile=/scratch/kocevski/769546/ft2_4FGL_J1016.0+0512_daily_bin121.fits sctable="SC_DATA" outfile=/scratch/kocevski/769546/ltcube_270691201_270950401_4FGL_J1016.0+0512_daily_bin121.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/769546/ft2_4FGL_J1016.0+0512_daily_bin121.fits
.....................!
real 19.28
user 18.86
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/769546/ft1_filtered_4FGL_J1016.0+0512_daily_bin121.fits evtable="EVENTS" scfile=/scratch/kocevski/769546/ft2_4FGL_J1016.0+0512_daily_bin121.fits sctable="SC_DATA" expcube=/scratch/kocevski/769546/ltcube_270691201_270950401_4FGL_J1016.0+0512_daily_bin121.fits outfile=/scratch/kocevski/769546/expmap_270691201_270950401_4FGL_J1016.0+0512_daily_bin121.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/769546/ltcube_270691201_270950401_4FGL_J1016.0+0512_daily_bin121.fits
.....................!
real 194.56
user 189.60
sys 4.48

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/769546/ft1_filtered_4FGL_J1016.0+0512_daily_bin121.fits scfile=/scratch/kocevski/769546/ft2_4FGL_J1016.0+0512_daily_bin121.fits outfile=/scratch/kocevski/769546/cmap_270691201_270950401_4FGL_J1016.0+0512_daily_bin121.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/769546/ft1_filtered_4FGL_J1016.0+0512_daily_bin121.fits scfile=/scratch/kocevski/769546/ft2_4FGL_J1016.0+0512_daily_bin121.fits outfile=/scratch/kocevski/769546/cmap_HighResolution_270691201_270950401_4FGL_J1016.0+0512_daily_bin121.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/769546/ft1_filtered_4FGL_J1016.0+0512_daily_bin121.fits evtable="EVENTS" scfile=/scratch/kocevski/769546/ft2_4FGL_J1016.0+0512_daily_bin121.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/769546/Model_4FGL_J1016.0+0512_daily_bin121.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/769546/ft1_filtered_4FGL_J1016.0+0512_daily_bin121.fits.....................!
real 80.74
user 78.73
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4848       1.0000         .10000E-03   10000.    
     2 'norm      '    1.5416       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2233       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    12.820       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.541       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.8265       1.0000         .10000E-03   10000.    
     9 'Prefactor '    99.522       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .98854       1.0000         .10000E-03   10000.    
    11 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .99242E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.5949       1.0000         .10000E-03   10000.    
    15 'norm      '    1.0005       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .71278       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.4368       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=   8849.314     FROM MIGRAD    STATUS=CONVERGED    357 CALLS     2023 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4848        1.0946       -.16117E-06    .55000E-04
   2  norm          1.5416        .67695       -.23055E-06   -.67956E-03
   3  Prefactor     3.2231        7.6359       -.12033E-05    .67477E-04
   4  Prefactor     .10000E-03    38.784       -.15991E-05** at limit **
   5  Prefactor     .10000E-03    13.668       -.66095E-06** at limit **
   6  norm          12.820        11.307        .11577E-05    .26212E-03
   7  Prefactor     19.541        12.718        .16630E-05    .65908E-03
   8  Prefactor     5.7774        172.41       -.18821E-03   -.18649E-04
   9  Prefactor     99.545        76.625        .25655E-04    .34923E-03
  10  Prefactor     .96354        11.747       -.89114E-07    .17925E-03
  11  norm          .10000E-03    .36317       -.16203E-06** at limit **
  12  Prefactor     .10000E-03    1.8268       -.94296E-07** at limit **
  13  Prefactor     .99987E-01    1.0314       -.41956E-06    .44203E-03
  14  Prefactor     8.5954        5.9660       -.16043E-06    .90938E-04
  15  norm          1.0005        .44907       -.49711E-07   -.22087E-03
  16  Prefactor     .10000E-03    2.1410       -.16097E-07** at limit **
  17  Normalizat    .71262        .17611        .10120E-04    .15172E-03
  18  Prefactor     1.4369        .14509       -.25755E-05    .94938E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.48481
  norm       = 1.54165
  Prefactor  = 3.22312
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.82
  Prefactor  = 19.5414
  Prefactor  = 5.77743
  Prefactor  = 99.5452
  Prefactor  = 0.96354
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0999868
  Prefactor  = 8.59538
  norm       = 1.00048
  Prefactor  = 0.0001
  Normalizat = 0.712619
  Prefactor  = 1.43691
 **********
 **   18 **HESSE 
 **********

 FCN=   8849.314     FROM HESSE     STATUS=OK           250 CALLS     2273 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4848        1.0950        .35207E-04   -1.5464    
   2  norm          1.5416        .66979        .48033E-04   -1.5460    
   3  Prefactor     3.2231        7.5881        .22564E-03   -1.5349    
   4  Prefactor     .10000E-03    39.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          12.820        11.298        .11187E-03   -1.4992    
   7  Prefactor     19.541        12.964        .90605E-04   -1.4824    
   8  Prefactor     5.7774        182.17        .16638E-03   -1.5227    
   9  Prefactor     99.545        111.61        .40298E-04   -1.3709    
  10  Prefactor     .96354        119.82        .50953E-02   -1.5512    
  11  norm          .10000E-03    .62048        .11016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.8381        .12414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .99987E-01    6.2570        .18116E-02   -1.5645    
  14  Prefactor     8.5954        5.9370        .13673E-03   -1.5122    
  15  norm          1.0005        .44570        .40883E-04   -1.5508    
  16  Prefactor     .10000E-03    2.1466        .13437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .71262        .20257        .33266E-03   -1.0340    
  18  Prefactor     1.4369        .16957        .21422E-03   -.79322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43749e-09
Minuit parameter uncertainties:
  1  1.09506
  2  0.669792
  3  7.59033
  4  0.000201936
  5  4.89722e-05
  6  11.3002
  7  12.9658
  8  65.1
  9  111.846
  10  21.5325
  11  1.32452e-05
  12  1.27196e-05
  13  1.58131
  14  5.93736
  15  0.445703
  16  3.16073e-06
  17  0.202785
  18  0.169637
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  1.954e+01  1.297e+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.437e+00  1.696e-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:  7.126e-01  2.028e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.75
Ra Dec: 154.009 5.209
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 6.35e-08 +/- 4.21e-08
Energy Flux (Fixed Index): 2.73e-05 +/- 1.81e-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) = 8849.30047884
delta logL = 0.0135291806855

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8849.29517554
delta logL = 0.0188324858791

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.717       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1016       1.0000          .0000       10.000    
     3 'Normalizat'    .72426       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4311       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=   8849.295     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      272 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.718        13.328        .87999E-04   -.18345E-04
   2  Index         2.1024        .64076        .88484E-02    .40580E-03
   3  Normalizat    .72424        .19909        .33028E-03   -.48879E-04
   4  Prefactor     1.4311        .16964        .21462E-03   -.10749E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.7175
  Index      = 2.10237
  Normalizat = 0.724242
  Prefactor  = 1.43113
 **********
 **   18 **HESSE 
 **********

 FCN=   8849.295     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.718        13.008        .35200E-05   -1.4797    
   2  Index         2.1024        .62318        .17697E-02   -.61815    
   3  Normalizat    .72424        .19847        .13211E-04   -1.0294    
   4  Prefactor     1.4311        .16950        .42924E-04   -.79487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17506e-11
Minuit parameter uncertainties:
  1  13.0098
  2  0.625638
  3  0.198665
  4  0.169567
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/769546': 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) = 8849.29517446
delta logL = 0.018833561604

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  2.072e+01  1.301e+01  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  2.102e+00  6.256e-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.431e+00  1.696e-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:  7.242e-01  1.987e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.84
Ra Dec: 154.009 5.209
Photon Index (Free Index): 2.10 +/- 0.63
Photon Flux (Free Index): 5.39e-08 +/- 5.73e-08
Energy Flux (Free Index): 2.94e-05 +/- 2.18e-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/769546/cmap_HighResolution_270691201_270950401_4FGL_J1016.0+0512_daily_bin121.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.35e-08', energy_flux2='2.94e-05', photon_flux_error='4.21e-08', dlogl='1.88e-02', energy_flux='2.73e-05', photon_flux2='5.39e-08', job_status='DONE', time_completed='2021-09-01 15:55:49.507113', photon_index_error2='0.63', photon_index2='2.10', ts='11.75', fit_tolerance='1e-08', GAL='1.44', photon_index_error='0.00', energy_flux_error2='2.18e-05', EG='0.71', time_epoch_completed='1630536949.51', return_code='0', job_id='769546', GAL2='1.43', EG2='0.72', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='5.73e-08', ts2='11.84', photon_index='2.22' WHERE bin_id='121' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 15:55:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 769546: <4FGL_J1016.0+0512_daily_bin121> in cluster <slac> Done

Job <4FGL_J1016.0+0512_daily_bin121> 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) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 15:41:57 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:57 2021
Terminated at Wed Sep  1 15:55:50 2021
Results reported at Wed Sep  1 15:55:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1016.0+0512_daily_bin121 154.009 5.2089 270691201 270950401 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 :                                   607.06 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             244.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            902 sec.

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

