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


Performing analysis on: 4FGL_J1016.0+0512_daily_bin193
RA = 154.009, Dec = 5.2089
tmin = 289353601, tmax = 289612801
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='769639', job_status='RUN', time_executed='2021-09-01 15:45:18.113388', time_epoch_executed='1630536318.11' WHERE source_name='4FGL J1016.0+0512' and cadence='daily' and bin_id='193'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/769639

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/769639/ft1_4FGL_J1016.0+0512_daily_bin193.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/769639/ft2_4FGL_J1016.0+0512_daily_bin193.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/769639/ft1_4FGL_J1016.0+0512_daily_bin193.fits outfile=/scratch/kocevski/769639/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin193.fits ra=154.009 dec=5.2089 rad=12.0 tmin=289353601.0 tmax=289612801.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.59
user 3.30
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/769639/ft1_filtered_4FGL_J1016.0+0512_daily_bin193.fits evtable="EVENTS" scfile=/scratch/kocevski/769639/ft2_4FGL_J1016.0+0512_daily_bin193.fits sctable="SC_DATA" expcube=/scratch/kocevski/769639/ltcube_289353601_289612801_4FGL_J1016.0+0512_daily_bin193.fits outfile=/scratch/kocevski/769639/expmap_289353601_289612801_4FGL_J1016.0+0512_daily_bin193.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/769639/ltcube_289353601_289612801_4FGL_J1016.0+0512_daily_bin193.fits
.....................!
real 193.19
user 187.86
sys 4.37

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/769639/ft1_filtered_4FGL_J1016.0+0512_daily_bin193.fits scfile=/scratch/kocevski/769639/ft2_4FGL_J1016.0+0512_daily_bin193.fits outfile=/scratch/kocevski/769639/cmap_289353601_289612801_4FGL_J1016.0+0512_daily_bin193.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.57
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/769639/ft1_filtered_4FGL_J1016.0+0512_daily_bin193.fits scfile=/scratch/kocevski/769639/ft2_4FGL_J1016.0+0512_daily_bin193.fits outfile=/scratch/kocevski/769639/cmap_HighResolution_289353601_289612801_4FGL_J1016.0+0512_daily_bin193.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.41
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4665       1.0000         .10000E-03   10000.    
     2 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5098       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.2400       1.0000         .10000E-03   10000.    
     6 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.790       1.0000         .10000E-03   10000.    
     8 'Prefactor '    80.399       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.200       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.5131       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4456       1.0000         .10000E-03   10000.    
    15 'norm      '    1.0950       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1641       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .89186       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=   6472.817     FROM MIGRAD    STATUS=CONVERGED    369 CALLS     1781 TOTAL
                     EDM=   .85E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4667        1.3382        .45631E-07   -.66808E-05
   2  norm          .10000E-03    .27513        .49686E-08** at limit **
   3  Prefactor     2.5095        12.991        .95495E-06    .54991E-05
   4  Prefactor     .10000E-03    49.139        .79775E-06** at limit **
   5  Prefactor     4.2559        43.110       -.41685E-05    .84131E-05
   6  norm          .10000E-03    13.080        .14025E-06** at limit **
   7  Prefactor     23.795        18.524       -.66874E-06   -.36994E-04
   8  Prefactor     80.417        63.340       -.21487E-05   -.49165E-05
   9  Prefactor     10.180        160.20        .83249E-05   -.43898E-06
  10  Prefactor     .10000E-03    9.6186       -.24915E-06** at limit **
  11  norm          .10000E-03    .53189        .12809E-07** at limit **
  12  Prefactor     .10000E-03    1.9104        .69973E-07** at limit **
  13  Prefactor     3.5133        2.7673        .16588E-06   -.10772E-05
  14  Prefactor     4.4462        7.7644        .20295E-05   -.63446E-05
  15  norm          1.0950        .56640       -.30277E-07   -.17181E-04
  16  Prefactor     .10000E-03    6.1004        .63120E-07** at limit **
  17  Normalizat    1.1639        .18866       -.95431E-06    .35686E-04
  18  Prefactor     .89198        .14934        .82159E-06    .27667E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.46667
  norm       = 0.0001
  Prefactor  = 2.50955
  Prefactor  = 0.0001
  Prefactor  = 4.25586
  norm       = 0.0001
  Prefactor  = 23.7954
  Prefactor  = 80.4167
  Prefactor  = 10.1801
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.51328
  Prefactor  = 4.44624
  norm       = 1.09499
  Prefactor  = 0.0001
  Normalizat = 1.16394
  Prefactor  = 0.891984
 **********
 **   18 **HESSE 
 **********

 FCN=   6472.817     FROM HESSE     STATUS=OK           250 CALLS     2031 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4667        1.3220        .84289E-04   -1.5466    
   2  norm          .10000E-03    .59954        .81254E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.5095        12.847        .25792E-03   -1.5391    
   4  Prefactor     .10000E-03    49.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.2559        42.904        .19569E-03   -1.5295    
   6  norm          .10000E-03    13.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.795        18.397        .82126E-04   -1.4732    
   8  Prefactor     80.417        63.476        .44792E-04   -1.3912    
   9  Prefactor     10.180        158.76        .12546E-03   -1.5070    
  10  Prefactor     .10000E-03    9.6335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.5011        .11395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.9180        .10859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.5133        2.7546        .56555E-03   -1.5333    
  14  Prefactor     4.4462        7.7802        .95492E-03   -1.5286    
  15  norm          1.0950        .56037        .41773E-04   -1.5499    
  16  Prefactor     .10000E-03    6.1384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.1639        .21976        .25274E-03   -.87724    
  18  Prefactor     .89198        .17492        .23477E-03   -.96422    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.95664e-11
Minuit parameter uncertainties:
  1  1.32201
  2  6.88599e-07
  3  11.3598
  4  0.000245357
  5  27.0503
  6  1.97025e-05
  7  18.4018
  8  63.53
  9  80.659
  10  3.26044e-05
  11  2.19711e-06
  12  1.24447e-06
  13  2.75469
  14  7.78198
  15  0.560375
  16  6.01545e-06
  17  0.219933
  18  0.175029
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  2.380e+01  1.840e+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.920e-01  1.750e-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.164e+00  2.199e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.03
Ra Dec: 154.009 5.209
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 7.73e-08 +/- 5.97e-08
Energy Flux (Fixed Index): 3.33e-05 +/- 2.57e-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) = 6472.78513059
delta logL = 0.0319762070485

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6472.77680579
delta logL = 0.0403010011105

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.690       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1182       1.0000          .0000       10.000    
     3 'Normalizat'    1.1703       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88839       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=   6472.777     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      267 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.690        16.880        .77543E-04    .72010E-03
   2  Index         2.1182        .37506        .48745E-02    .24546E-03
   3  Normalizat    1.1704        .21228        .25218E-03   -.39582E-04
   4  Prefactor     .88832        .17487        .23520E-03   -.13998E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.6896
  Index      = 2.11822
  Normalizat = 1.17037
  Prefactor  = 0.888323
 **********
 **   18 **HESSE 
 **********

 FCN=   6472.777     FROM HESSE     STATUS=OK            25 CALLS      292 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.690        16.424        .15509E-04   -1.4674    
   2  Index         2.1182        .36484        .19498E-03   -.61426    
   3  Normalizat    1.1704        .21242        .10087E-04   -.87523    
   4  Prefactor     .88832        .17500        .94082E-05   -.96550    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.50337e-10
Minuit parameter uncertainties:
  1  16.4273
  2  0.365331
  3  0.212575
  4  0.175109
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/769639': 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) = 6472.77680571
delta logL = 0.0403010900272

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  2.669e+01  1.643e+01  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  2.118e+00  3.653e-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.883e-01  1.751e-01  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  1.170e+00  2.126e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.19
Ra Dec: 154.009 5.209
Photon Index (Free Index): 2.12 +/- 0.37
Photon Flux (Free Index): 7.14e-08 +/- 4.21e-08
Energy Flux (Free Index): 3.77e-05 +/- 2.58e-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/769639/cmap_HighResolution_289353601_289612801_4FGL_J1016.0+0512_daily_bin193.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.73e-08', energy_flux2='3.77e-05', photon_flux_error='5.97e-08', dlogl='4.03e-02', energy_flux='3.33e-05', photon_flux2='7.14e-08', job_status='DONE', time_completed='2021-09-01 15:54:00.369318', photon_index_error2='0.37', photon_index2='2.12', ts='8.03', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='2.58e-05', EG='1.16', time_epoch_completed='1630536840.37', return_code='0', job_id='769639', GAL2='0.89', EG2='1.17', return_code2='0', energy_flux_error='2.57e-05', photon_flux_error2='4.21e-08', ts2='8.19', photon_index='2.22' WHERE bin_id='193' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 15:54:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 769639: <4FGL_J1016.0+0512_daily_bin193> in cluster <slac> Done

Job <4FGL_J1016.0+0512_daily_bin193> 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) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 15:42:44 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:44 2021
Terminated at Wed Sep  1 15:54:00 2021
Results reported at Wed Sep  1 15:54:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1016.0+0512_daily_bin193 154.009 5.2089 289353601 289612801 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 :                                   520.58 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             273.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            782 sec.

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

