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


Performing analysis on: 4FGL_J1016.0+0512_daily_bin219
RA = 154.009, Dec = 5.2089
tmin = 296092801, tmax = 296352001
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='769711', job_status='RUN', time_executed='2021-09-01 15:45:59.126409', time_epoch_executed='1630536359.13' WHERE source_name='4FGL J1016.0+0512' and cadence='daily' and bin_id='219'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/769711

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/769711/ft1_4FGL_J1016.0+0512_daily_bin219.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/769711/ft2_4FGL_J1016.0+0512_daily_bin219.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/769711/ft1_4FGL_J1016.0+0512_daily_bin219.fits outfile=/scratch/kocevski/769711/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin219.fits ra=154.009 dec=5.2089 rad=12.0 tmin=296092801.0 tmax=296352001.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 2.41
user 2.21
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/769711/ft1_filtered_4FGL_J1016.0+0512_daily_bin219.fits" evtable="EVENTS" scfile=/scratch/kocevski/769711/ft2_4FGL_J1016.0+0512_daily_bin219.fits sctable="SC_DATA" outfile=/scratch/kocevski/769711/ltcube_296092801_296352001_4FGL_J1016.0+0512_daily_bin219.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/769711/ft2_4FGL_J1016.0+0512_daily_bin219.fits
.....................!
real 14.38
user 13.99
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/769711/ft1_filtered_4FGL_J1016.0+0512_daily_bin219.fits evtable="EVENTS" scfile=/scratch/kocevski/769711/ft2_4FGL_J1016.0+0512_daily_bin219.fits sctable="SC_DATA" expcube=/scratch/kocevski/769711/ltcube_296092801_296352001_4FGL_J1016.0+0512_daily_bin219.fits outfile=/scratch/kocevski/769711/expmap_296092801_296352001_4FGL_J1016.0+0512_daily_bin219.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/769711/ltcube_296092801_296352001_4FGL_J1016.0+0512_daily_bin219.fits
.....................!
real 191.16
user 185.89
sys 4.89

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/769711/ft1_filtered_4FGL_J1016.0+0512_daily_bin219.fits scfile=/scratch/kocevski/769711/ft2_4FGL_J1016.0+0512_daily_bin219.fits outfile=/scratch/kocevski/769711/cmap_296092801_296352001_4FGL_J1016.0+0512_daily_bin219.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/769711/ft1_filtered_4FGL_J1016.0+0512_daily_bin219.fits scfile=/scratch/kocevski/769711/ft2_4FGL_J1016.0+0512_daily_bin219.fits outfile=/scratch/kocevski/769711/cmap_HighResolution_296092801_296352001_4FGL_J1016.0+0512_daily_bin219.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6176       1.0000         .10000E-03   10000.    
     2 'norm      '    .23540       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10769E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    8.7416       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.467       1.0000         .10000E-03   10000.    
     8 'Prefactor '    109.70       1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.342       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10249E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.7634       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.878       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.1414       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.3372       1.0000         .10000E-03   10000.    
    15 'norm      '    1.4700       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15350E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.4389       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .67592       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=   6008.912     FROM MIGRAD    STATUS=CONVERGED    362 CALLS     1766 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6173        1.3497       -.12376E-06   -.14589E-03
   2  norm          .23526        .41016       -.20932E-06   -.23719E-02
   3  Prefactor     .10000E-03    7.1261        .76647E-07** at limit **
   4  Prefactor     .10000E-03    14.502       -.98727E-07** at limit **
   5  Prefactor     .10000E-03    28.282       -.61101E-06** at limit **
   6  norm          8.7460        15.060       -.76820E-06   -.11210E-04
   7  Prefactor     19.475        18.540        .23574E-04   -.25822E-04
   8  Prefactor     109.71        84.026        .51680E-05    .20925E-04
   9  Prefactor     37.259        88.560       -.12342E-03   -.94815E-05
  10  Prefactor     .10002E-03    16.711        .31230E-05** at limit **
  11  norm          1.7633        1.7104        .13398E-06   -.37007E-03
  12  Prefactor     19.876        9.0509       -.22874E-06   -.18090E-05
  13  Prefactor     5.1412        4.0740        .45658E-06   -.96754E-04
  14  Prefactor     7.3350        10.787       -.10015E-05   -.11677E-03
  15  norm          1.4702        .77274       -.23910E-07   -.34898E-03
  16  Prefactor     .10001E-03    9.0388        .20073E-06** at limit **
  17  Normalizat    1.4393        .21343        .33307E-05   -.13614E-03
  18  Prefactor     .67568        .16053       -.99295E-06    .14500E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.61734
  norm       = 0.235264
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.74599
  Prefactor  = 19.4753
  Prefactor  = 109.706
  Prefactor  = 37.2595
  Prefactor  = 0.000100022
  norm       = 1.76329
  Prefactor  = 19.8765
  Prefactor  = 5.14117
  Prefactor  = 7.33495
  norm       = 1.47021
  Prefactor  = 0.000100007
  Normalizat = 1.43927
  Prefactor  = 0.675684
 **********
 **   18 **HESSE 
 **********

 FCN=   6008.912     FROM HESSE     STATUS=OK           252 CALLS     2018 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6173        1.3511        .61807E-04   -1.5384    
   2  norm          .23526        .37720        .62802E-03   -1.5611    
   3  Prefactor     .10000E-03    7.1363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.7460        15.034        .13557E-03   -1.5116    
   7  Prefactor     19.475        18.514        .90778E-04   -1.4825    
   8  Prefactor     109.71        84.824        .38402E-04   -1.3609    
   9  Prefactor     37.259        88.555        .65586E-04   -1.4486    
  10  Prefactor     .10002E-03    16.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.7633        1.6920        .93299E-04   -1.5442    
  12  Prefactor     19.876        9.0575        .89835E-04   -1.4816    
  13  Prefactor     5.1412        4.0649        .12749E-03   -1.5254    
  14  Prefactor     7.3350        10.669        .14807E-03   -1.5166    
  15  norm          1.4702        .68558        .42095E-04   -1.5465    
  16  Prefactor     .10001E-03    63.716        .39327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.4393        .25723        .24498E-03   -.79500    
  18  Prefactor     .67568        .19118        .27762E-03   -1.0449    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12594e-09
Minuit parameter uncertainties:
  1  1.3511
  2  0.377207
  3  6.16828e-06
  4  5.78643e-06
  5  2.90619e-05
  6  15.0409
  7  18.5191
  8  84.9178
  9  88.8695
  10  0.00122553
  11  1.69207
  12  9.05817
  13  4.06516
  14  10.6715
  15  0.685584
  16  0.00133815
  17  0.257467
  18  0.191366
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  1.948e+01  1.852e+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:  6.757e-01  1.914e-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.439e+00  2.575e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.90
Ra Dec: 154.009 5.209
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 6.33e-08 +/- 6.01e-08
Energy Flux (Fixed Index): 2.72e-05 +/- 2.59e-05

TS (Fixed Index): 3.90
Ra Dec: 154.009 5.209
Photon Flux Upper Limit: 1.60e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.22e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/769711/likelihoodResults_296092801_296352001_4FGL_J1016.0+0512_daily_bin219.txt

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) = 6008.43381048
delta logL = 0.478229112769

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6008.42503519
delta logL = 0.487004406873

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0185       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0442       1.0000          .0000       10.000    
     3 'Normalizat'    1.3609       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71964       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=   6008.425     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      295 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0217        55.084        .10617E-03    .87314E-03
   2  Index         3.0443        2.7126        .36701E-02    .19552E-03
   3  Normalizat    1.3610        .29065        .25021E-03   -.57889E-03
   4  Prefactor     .71970        .22199        .26980E-03   -.19598E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.0217
  Index      = 3.04433
  Normalizat = 1.36096
  Prefactor  = 0.719702
 **********
 **   18 **HESSE 
 **********

 FCN=   6008.425     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0217        12.065        .42468E-05   -1.5178    
   2  Index         3.0443        .88216        .14680E-03   -.40186    
   3  Normalizat    1.3610        .24494        .50042E-04   -.81764    
   4  Prefactor     .71970        .19331        .10792E-04   -1.0276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20801e-09
Minuit parameter uncertainties:
  1  12.0691
  2  0.887651
  3  0.245149
  4  0.193495
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/769711': 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) = 6008.42503354
delta logL = 0.487006054621

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  7.022e+00  1.207e+01  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  3.044e+00  8.877e-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:  7.197e-01  1.935e-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.361e+00  2.451e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.06
Ra Dec: 154.009 5.209
Photon Index (Free Index): 3.04 +/- 0.89
Photon Flux (Free Index): 1.25e-07 +/- 8.02e-08
Energy Flux (Free Index): 2.43e-05 +/- 1.37e-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/769711/cmap_HighResolution_296092801_296352001_4FGL_J1016.0+0512_daily_bin219.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-02', comment='SUCCESS', photon_flux='6.33e-08', energy_flux2='2.43e-05', photon_flux_error='6.01e-08', dlogl='4.87e-01', energy_flux='2.72e-05', photon_flux2='1.25e-07', job_status='DONE', time_completed='2021-09-01 15:54:57.424953', photon_index_error2='0.89', photon_index2='3.04', ts='3.90', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', photon_flux_upper_limit='1.60e-07', energy_flux_error2='1.37e-05', EG='1.44', time_epoch_completed='1630536897.43', return_code='0', job_id='769711', GAL2='0.72', EG2='1.36', return_code2='0', energy_flux_error='2.59e-05', photon_flux_error2='8.02e-08', ts2='5.06', photon_index='2.22' WHERE bin_id='219' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 15:54:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 769711: <4FGL_J1016.0+0512_daily_bin219> in cluster <slac> Done

Job <4FGL_J1016.0+0512_daily_bin219> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 15:41:11 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 15:43:00 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:43:00 2021
Terminated at Wed Sep  1 15:54:57 2021
Results reported at Wed Sep  1 15:54:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1016.0+0512_daily_bin219 154.009 5.2089 296092801 296352001 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 :                                   536.28 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             312.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            826 sec.

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

