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


Performing analysis on: 4FGL_J1016.0+0512_daily_bin125
RA = 154.009, Dec = 5.2089
tmin = 271728001, tmax = 271987201
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='769553', job_status='RUN', time_executed='2021-09-01 15:44:42.919229', time_epoch_executed='1630536282.92' WHERE source_name='4FGL J1016.0+0512' and cadence='daily' and bin_id='125'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/769553

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/769553/ft1_4FGL_J1016.0+0512_daily_bin125.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/769553/ft2_4FGL_J1016.0+0512_daily_bin125.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/769553/ft1_4FGL_J1016.0+0512_daily_bin125.fits outfile=/scratch/kocevski/769553/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin125.fits ra=154.009 dec=5.2089 rad=12.0 tmin=271728001.0 tmax=271987201.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.20
user 2.94
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/769553/ft1_filtered_4FGL_J1016.0+0512_daily_bin125.fits" evtable="EVENTS" scfile=/scratch/kocevski/769553/ft2_4FGL_J1016.0+0512_daily_bin125.fits sctable="SC_DATA" outfile=/scratch/kocevski/769553/ltcube_271728001_271987201_4FGL_J1016.0+0512_daily_bin125.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/769553/ft2_4FGL_J1016.0+0512_daily_bin125.fits
.....................!
real 16.97
user 16.62
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/769553/ft1_filtered_4FGL_J1016.0+0512_daily_bin125.fits evtable="EVENTS" scfile=/scratch/kocevski/769553/ft2_4FGL_J1016.0+0512_daily_bin125.fits sctable="SC_DATA" expcube=/scratch/kocevski/769553/ltcube_271728001_271987201_4FGL_J1016.0+0512_daily_bin125.fits outfile=/scratch/kocevski/769553/expmap_271728001_271987201_4FGL_J1016.0+0512_daily_bin125.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/769553/ltcube_271728001_271987201_4FGL_J1016.0+0512_daily_bin125.fits
.....................!
real 192.30
user 186.76
sys 4.98

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/769553/ft1_filtered_4FGL_J1016.0+0512_daily_bin125.fits scfile=/scratch/kocevski/769553/ft2_4FGL_J1016.0+0512_daily_bin125.fits outfile=/scratch/kocevski/769553/cmap_271728001_271987201_4FGL_J1016.0+0512_daily_bin125.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/769553/ft1_filtered_4FGL_J1016.0+0512_daily_bin125.fits scfile=/scratch/kocevski/769553/ft2_4FGL_J1016.0+0512_daily_bin125.fits outfile=/scratch/kocevski/769553/cmap_HighResolution_271728001_271987201_4FGL_J1016.0+0512_daily_bin125.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/769553/ft1_filtered_4FGL_J1016.0+0512_daily_bin125.fits evtable="EVENTS" scfile=/scratch/kocevski/769553/ft2_4FGL_J1016.0+0512_daily_bin125.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/769553/Model_4FGL_J1016.0+0512_daily_bin125.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/769553/ft1_filtered_4FGL_J1016.0+0512_daily_bin125.fits.....................!
real 69.65
user 68.26
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .80729       1.0000         .10000E-03   10000.    
     2 'norm      '    1.8367       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.827       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    44.606       1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.356       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10760E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .91990       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10755E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.2767       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0068       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.2580       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=   7202.423     FROM MIGRAD    STATUS=CONVERGED    399 CALLS     1797 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .80751        .99199        .98742E-07   -.41681E-05
   2  norm          1.8368        .75717        .13953E-08    .16151E-03
   3  Prefactor     14.827        10.559       -.20657E-06    .12495E-04
   4  Prefactor     .10000E-03    15.776        .63900E-07** at limit **
   5  Prefactor     .10000E-03    13.856        .94866E-08** at limit **
   6  norm          .10000E-03    5.3226       -.27445E-06** at limit **
   7  Prefactor     44.575        14.072        .17216E-05    .25275E-02
   8  Prefactor     30.397        54.535        .73311E-06    .14687E-03
   9  Prefactor     .14019E-03    126.74       -.15556E-04** at limit **
  10  Prefactor     .10000E-03    7.0151       -.11009E-06** at limit **
  11  norm          .92004        1.4261        .24717E-06    .13721E-03
  12  Prefactor     .10000E-03    2.9672        .22620E-07** at limit **
  13  Prefactor     .10000E-03    1.4484       -.29036E-07** at limit **
  14  Prefactor     .10000E-03    8.8153        .85357E-07** at limit **
  15  norm          1.2768        .67187        .12809E-07   -.26664E-04
  16  Prefactor     .10000E-03    9.7043        .20638E-07** at limit **
  17  Normalizat    1.0068        .19999        .10038E-05    .33958E-03
  18  Prefactor     1.2581        .16445       -.76279E-06    .49170E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.807506
  norm       = 1.83679
  Prefactor  = 14.8266
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 44.5748
  Prefactor  = 30.3968
  Prefactor  = 0.000140189
  Prefactor  = 0.0001
  norm       = 0.920036
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.27677
  Prefactor  = 0.0001
  Normalizat = 1.00678
  Prefactor  = 1.25805
 **********
 **   18 **HESSE 
 **********

 FCN=   7202.423     FROM HESSE     STATUS=OK           252 CALLS     2049 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .80751        .88323        .89540E-03   -1.5528    
   2  norm          1.8368        .75158        .44610E-04   -1.5437    
   3  Prefactor     14.827        10.548        .10402E-03   -1.4938    
   4  Prefactor     .10000E-03    15.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.3216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     44.575        17.237        .60029E-04   -1.4372    
   8  Prefactor     30.397        55.453        .72720E-04   -1.4605    
   9  Prefactor     .14019E-03    79.948        .17353       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.0194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .92004        1.3752        .11851E-03   -1.5516    
  12  Prefactor     .10000E-03    2.9871        .14270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.8561        .19600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.0063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.2768        .65852        .48407E-04   -1.5482    
  16  Prefactor     .10000E-03    9.7890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.0068        .23486        .29990E-03   -.92804    
  18  Prefactor     1.2581        .19583        .23189E-03   -.84563    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.88422e-09
Minuit parameter uncertainties:
  1  0.883245
  2  0.751585
  3  10.5495
  4  7.76892e-06
  5  1.8426e-05
  6  1.2921e-05
  7  17.2387
  8  55.5471
  9  0.11352
  10  1.03405e-05
  11  1.37522
  12  4.72547e-06
  13  1.03473e-05
  14  1.49968e-05
  15  0.658523
  16  3.30846e-06
  17  0.235104
  18  0.19594
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  4.457e+01  1.724e+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.258e+00  1.959e-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.007e+00  2.351e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 35.36
Ra Dec: 154.009 5.209
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 1.45e-07 +/- 5.60e-08
Energy Flux (Fixed Index): 6.23e-05 +/- 2.41e-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) = 7201.22685024
delta logL = 1.19651025172

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7201.22633895
delta logL = 1.1970215376

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.450       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8199       1.0000          .0000       10.000    
     3 'Normalizat'    1.0621       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2305       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=   7201.226     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      253 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.528        50.489        .13009E-02   -.13590E-04
   2  Index         1.8211        .57435        .11690        .72698E-04
   3  Normalizat    1.0619        .19978        .66292E-01    .45831E-04
   4  Prefactor     1.2305        .16387        .52972E-01    .43872E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.5281
  Index      = 1.82111
  Normalizat = 1.06187
  Prefactor  = 1.23055
 **********
 **   18 **HESSE 
 **********

 FCN=   7201.226     FROM HESSE     STATUS=OK            33 CALLS      286 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.528        20.503        .26017E-03   -1.4163    
   2  Index         1.8211        .25354        .47201E-02   -.68902    
   3  Normalizat    1.0619        .22978        .29326E-03   -.90986    
   4  Prefactor     1.2305        .19476        .23421E-03   -.85396    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61959e-12
Minuit parameter uncertainties:
  1  20.505
  2  0.253727
  3  0.229994
  4  0.194872
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/769553': 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) = 7201.22631584
delta logL = 1.1970446506

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  5.953e+01  2.050e+01  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  1.821e+00  2.537e-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.231e+00  1.949e-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.062e+00  2.300e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 37.71
Ra Dec: 154.009 5.209
Photon Index (Free Index): 1.82 +/- 0.25
Photon Flux (Free Index): 9.72e-08 +/- 4.38e-08
Energy Flux (Free Index): 1.09e-04 +/- 6.11e-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/769553/cmap_HighResolution_271728001_271987201_4FGL_J1016.0+0512_daily_bin125.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.45e-07', energy_flux2='1.09e-04', photon_flux_error='5.60e-08', dlogl='1.20e+00', energy_flux='6.23e-05', photon_flux2='9.72e-08', job_status='DONE', time_completed='2021-09-01 15:53:51.374966', photon_index_error2='0.25', photon_index2='1.82', ts='35.36', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', energy_flux_error2='6.11e-05', EG='1.01', time_epoch_completed='1630536831.38', return_code='0', job_id='769553', GAL2='1.23', EG2='1.06', return_code2='0', energy_flux_error='2.41e-05', photon_flux_error2='4.38e-08', ts2='37.71', photon_index='2.22' WHERE bin_id='125' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 15:53:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0141>
Subject: Job 769553: <4FGL_J1016.0+0512_daily_bin125> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1016.0+0512_daily_bin125 154.009 5.2089 271728001 271987201 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 :                                   547.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             308.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            783 sec.

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

