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


Performing analysis on: 4FGL_J1016.0+0512_daily_bin188
RA = 154.009, Dec = 5.2089
tmin = 288057601, tmax = 288316801
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='769634', job_status='RUN', time_executed='2021-09-01 15:46:22.985519', time_epoch_executed='1630536382.99' WHERE source_name='4FGL J1016.0+0512' and cadence='daily' and bin_id='188'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/769634

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/769634/ft1_4FGL_J1016.0+0512_daily_bin188.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/769634/ft2_4FGL_J1016.0+0512_daily_bin188.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/769634/ft1_4FGL_J1016.0+0512_daily_bin188.fits outfile=/scratch/kocevski/769634/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin188.fits ra=154.009 dec=5.2089 rad=12.0 tmin=288057601.0 tmax=288316801.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.01
user 2.76
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/769634/ft1_filtered_4FGL_J1016.0+0512_daily_bin188.fits" evtable="EVENTS" scfile=/scratch/kocevski/769634/ft2_4FGL_J1016.0+0512_daily_bin188.fits sctable="SC_DATA" outfile=/scratch/kocevski/769634/ltcube_288057601_288316801_4FGL_J1016.0+0512_daily_bin188.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/769634/ft2_4FGL_J1016.0+0512_daily_bin188.fits
.....................!
real 11.54
user 11.18
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/769634/ft1_filtered_4FGL_J1016.0+0512_daily_bin188.fits evtable="EVENTS" scfile=/scratch/kocevski/769634/ft2_4FGL_J1016.0+0512_daily_bin188.fits sctable="SC_DATA" expcube=/scratch/kocevski/769634/ltcube_288057601_288316801_4FGL_J1016.0+0512_daily_bin188.fits outfile=/scratch/kocevski/769634/expmap_288057601_288316801_4FGL_J1016.0+0512_daily_bin188.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/769634/ltcube_288057601_288316801_4FGL_J1016.0+0512_daily_bin188.fits
.....................!
real 157.55
user 152.64
sys 4.34

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/769634/ft1_filtered_4FGL_J1016.0+0512_daily_bin188.fits scfile=/scratch/kocevski/769634/ft2_4FGL_J1016.0+0512_daily_bin188.fits outfile=/scratch/kocevski/769634/cmap_288057601_288316801_4FGL_J1016.0+0512_daily_bin188.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.48
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/769634/ft1_filtered_4FGL_J1016.0+0512_daily_bin188.fits scfile=/scratch/kocevski/769634/ft2_4FGL_J1016.0+0512_daily_bin188.fits outfile=/scratch/kocevski/769634/cmap_HighResolution_288057601_288316801_4FGL_J1016.0+0512_daily_bin188.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.49
user 0.32
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .73869E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.8598       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .87193E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    45.986       1.0000         .10000E-03   10000.    
     6 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.139       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.5422       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10435E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10952E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.3420       1.0000         .10000E-03   10000.    
    15 'norm      '    .45877       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.7185       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0181       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .88377       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=   5464.855     FROM MIGRAD    STATUS=CONVERGED    396 CALLS     1855 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10014E-03    .59028       -.11844E-06** at limit **
   2  norm          .10000E-03    .20223       -.38756E-07** at limit **
   3  Prefactor     3.8559        10.263        .15335E-05   -.11445E-03
   4  Prefactor     .10003E-03    99.156       -.71566E-04** at limit **
   5  Prefactor     45.806        40.094       -.65034E-05    .27658E-03
   6  norm          .10000E-03    7.6227        .21446E-06** at limit **
   7  Prefactor     13.137        11.696        .15255E-05   -.13198E-04
   8  Prefactor     6.5343        176.47       -.35221E-04   -.19900E-04
   9  Prefactor     .10000E-03    98.960        .20961E-04** at limit **
  10  Prefactor     .10000E-03    19.904       -.32085E-06** at limit **
  11  norm          .10000E-03    .56843       -.74553E-07** at limit **
  12  Prefactor     .10000E-03    5.7872       -.35266E-06** at limit **
  13  Prefactor     .10000E-03    1.2231       -.13660E-06** at limit **
  14  Prefactor     6.3429        7.9308       -.15560E-07   -.15022E-03
  15  norm          .45893        .41507        .17240E-06   -.42172E-03
  16  Prefactor     4.7164        7.9288       -.14933E-05   -.21235E-03
  17  Normalizat    1.0180        .18952        .28385E-05    .39879E-03
  18  Prefactor     .88379        .14579        .69384E-06    .59420E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100143
  norm       = 0.0001
  Prefactor  = 3.85587
  Prefactor  = 0.000100034
  Prefactor  = 45.8061
  norm       = 0.0001
  Prefactor  = 13.137
  Prefactor  = 6.53434
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 6.34295
  norm       = 0.458934
  Prefactor  = 4.71636
  Normalizat = 1.01803
  Prefactor  = 0.883789
 **********
 **   18 **HESSE 
 **********

 FCN=   5464.855     FROM HESSE     STATUS=OK           250 CALLS     2105 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10014E-03    24.391        .10721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .26573        .64462E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.8559        10.185        .20540E-03   -1.5315    
   4  Prefactor     .10003E-03    98.459        .41700E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     45.806        39.799        .59126E-04   -1.4353    
   6  norm          .10000E-03    7.6262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.137        11.611        .11050E-03   -1.4983    
   8  Prefactor     6.5343        179.23        .15690E-03   -1.5197    
   9  Prefactor     .10000E-03    99.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .82706        .10723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    39.873        .33632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.2344        .79745E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.3429        7.9071        .15939E-03   -1.5204    
  15  norm          .45893        .42713        .40080E-04   -1.5572    
  16  Prefactor     4.7164        8.0247        .18524E-03   -1.5274    
  17  Normalizat    1.0180        .21728        .24418E-03   -.92429    
  18  Prefactor     .88379        .17015        .21505E-03   -.96710    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.66582e-09
Minuit parameter uncertainties:
  1  0.0037355
  2  3.46894e-06
  3  10.1891
  4  0.00367199
  5  39.8219
  6  5.01223e-06
  7  11.6133
  8  68.6724
  9  0.000339
  10  1.72719e-05
  11  4.60397e-06
  12  0.000417302
  13  1.44984e-06
  14  7.90841
  15  0.427132
  16  8.02655
  17  0.217469
  18  0.17025
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  1.314e+01  1.161e+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:  8.838e-01  1.703e-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.018e+00  2.175e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.27
Ra Dec: 154.009 5.209
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 4.27e-08 +/- 3.77e-08
Energy Flux (Fixed Index): 1.84e-05 +/- 1.62e-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) = 5464.79193131
delta logL = 0.0634090564999

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5464.78473511
delta logL = 0.0706052607957

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.7561       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5918       1.0000          .0000       10.000    
     3 'Normalizat'    .98840       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89874       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=   5464.785     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      280 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7563        16.491        .12829E-03    .20620E-03
   2  Index         2.5918        1.2573        .54984E-02    .62380E-04
   3  Normalizat    .98838        .23082        .24736E-03   -.13696E-04
   4  Prefactor     .89876        .17740        .21344E-03    .27311E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.75633
  Index      = 2.5918
  Normalizat = 0.988375
  Prefactor  = 0.898758
 **********
 **   18 **HESSE 
 **********

 FCN=   5464.785     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7563        13.317        .51318E-05   -1.5083    
   2  Index         2.5918        1.0158        .21994E-03   -.50252    
   3  Normalizat    .98838        .22280        .98944E-05   -.93421    
   4  Prefactor     .89876        .17413        .42688E-04   -.96185    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95594e-10
Minuit parameter uncertainties:
  1  13.3213
  2  1.02509
  3  0.223008
  4  0.174236
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/769634': 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) = 5464.7847351
delta logL = 0.070605269796

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  9.756e+00  1.332e+01  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  2.592e+00  1.025e+00  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.988e-01  1.742e-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:  9.884e-01  2.230e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.44
Ra Dec: 154.009 5.209
Photon Index (Free Index): 2.59 +/- 1.03
Photon Flux (Free Index): 6.57e-08 +/- 8.07e-08
Energy Flux (Free Index): 1.74e-05 +/- 1.30e-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/769634/cmap_HighResolution_288057601_288316801_4FGL_J1016.0+0512_daily_bin188.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.27e-08', energy_flux2='1.74e-05', photon_flux_error='3.77e-08', dlogl='7.06e-02', energy_flux='1.84e-05', photon_flux2='6.57e-08', job_status='DONE', time_completed='2021-09-01 15:53:04.118318', photon_index_error2='1.03', photon_index2='2.59', ts='4.27', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.30e-05', EG='1.02', time_epoch_completed='1630536784.12', return_code='0', job_id='769634', GAL2='0.90', EG2='0.99', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='8.07e-08', ts2='4.44', photon_index='2.22' WHERE bin_id='188' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 15:53:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 769634: <4FGL_J1016.0+0512_daily_bin188> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1016.0+0512_daily_bin188 154.009 5.2089 288057601 288316801 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 :                                   398.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             204.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   626 sec.
    Turnaround time :                            726 sec.

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

