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


Performing analysis on: 4FGL_J1016.0+0512_daily_bin172
RA = 154.009, Dec = 5.2089
tmin = 283910401, tmax = 284169601
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='769618', job_status='RUN', time_executed='2021-09-01 15:44:57.541198', time_epoch_executed='1630536297.54' WHERE source_name='4FGL J1016.0+0512' and cadence='daily' and bin_id='172'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/769618

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/769618/ft1_4FGL_J1016.0+0512_daily_bin172.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/769618/ft2_4FGL_J1016.0+0512_daily_bin172.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/769618/ft1_4FGL_J1016.0+0512_daily_bin172.fits outfile=/scratch/kocevski/769618/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin172.fits ra=154.009 dec=5.2089 rad=12.0 tmin=283910401.0 tmax=284169601.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.96
user 3.34
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/769618/ft2_4FGL_J1016.0+0512_daily_bin172.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/769618/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin172.fits evtable="EVENTS" outfile="/scratch/kocevski/769618/ft1_filtered_4FGL_J1016.0+0512_daily_bin172.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 2.70
user 0.32
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/769618/ft1_filtered_4FGL_J1016.0+0512_daily_bin172.fits evtable="EVENTS" scfile=/scratch/kocevski/769618/ft2_4FGL_J1016.0+0512_daily_bin172.fits sctable="SC_DATA" expcube=/scratch/kocevski/769618/ltcube_283910401_284169601_4FGL_J1016.0+0512_daily_bin172.fits outfile=/scratch/kocevski/769618/expmap_283910401_284169601_4FGL_J1016.0+0512_daily_bin172.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/769618/ltcube_283910401_284169601_4FGL_J1016.0+0512_daily_bin172.fits
.....................!
real 193.24
user 186.08
sys 5.14

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/769618/ft1_filtered_4FGL_J1016.0+0512_daily_bin172.fits scfile=/scratch/kocevski/769618/ft2_4FGL_J1016.0+0512_daily_bin172.fits outfile=/scratch/kocevski/769618/cmap_283910401_284169601_4FGL_J1016.0+0512_daily_bin172.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/769618/ft1_filtered_4FGL_J1016.0+0512_daily_bin172.fits scfile=/scratch/kocevski/769618/ft2_4FGL_J1016.0+0512_daily_bin172.fits outfile=/scratch/kocevski/769618/cmap_HighResolution_283910401_284169601_4FGL_J1016.0+0512_daily_bin172.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1597       1.0000         .10000E-03   10000.    
     2 'norm      '    .60814       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.019       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.3525       1.0000         .10000E-03   10000.    
     6 'norm      '    .12488E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10983E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.795       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12225E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.8636       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1111       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.957       1.0000         .10000E-03   10000.    
    15 'norm      '    .51142       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .21507E-02   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2028       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .62525       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=   5899.172     FROM MIGRAD    STATUS=CONVERGED    378 CALLS     1757 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1599        1.1766       -.61296E-08    .10403E-04
   2  norm          .60801        .49182        .89259E-07    .18519E-03
   3  Prefactor     12.023        12.849       -.47051E-07    .47207E-04
   4  Prefactor     .10000E-03    18.034        .10615E-05** at limit **
   5  Prefactor     2.2427        116.29       -.21131E-05   -.60561E-05
   6  norm          .10000E-03    11.016       -.12610E-05** at limit **
   7  Prefactor     .10000E-03    3.2925       -.84130E-06** at limit **
   8  Prefactor     29.654        51.588       -.44729E-06   -.45761E-04
   9  Prefactor     .10000E-03    15.011       -.11198E-05** at limit **
  10  Prefactor     .10000E-03    6.9167       -.82892E-06** at limit **
  11  norm          1.8638        1.1319       -.10914E-06   -.34968E-03
  12  Prefactor     1.1079        5.8401        .38534E-05    .56444E-04
  13  Prefactor     .10000E-03    1.3445       -.11605E-06** at limit **
  14  Prefactor     10.958        8.1398       -.67302E-07    .12478E-03
  15  norm          .51108        .44147       -.99502E-09    .78354E-03
  16  Prefactor     .10009E-03    8.0960       -.63656E-06** at limit **
  17  Normalizat    1.2023        .18042        .12313E-05   -.92836E-04
  18  Prefactor     .62566        .13824       -.18000E-05    .39580E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.15992
  norm       = 0.608007
  Prefactor  = 12.0229
  Prefactor  = 0.0001
  Prefactor  = 2.24271
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.6538
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.86378
  Prefactor  = 1.10794
  Prefactor  = 0.0001
  Prefactor  = 10.9576
  norm       = 0.511078
  Prefactor  = 0.000100086
  Normalizat = 1.20229
  Prefactor  = 0.62566
 **********
 **   18 **HESSE 
 **********

 FCN=   5899.172     FROM HESSE     STATUS=OK           250 CALLS     2007 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1599        1.1773        .59061E-04   -1.5414    
   2  norm          .60801        .47505        .46204E-03   -1.5552    
   3  Prefactor     12.023        12.833        .11555E-03   -1.5014    
   4  Prefactor     .10000E-03    18.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.2427        115.45        .26724E-03   -1.5408    
   6  norm          .10000E-03    11.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.2985        .13604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     29.654        51.676        .73400E-04   -1.4618    
   9  Prefactor     .10000E-03    15.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.9447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.8638        1.1278        .61046E-04   -1.5435    
  12  Prefactor     1.1079        6.0332        .34860E-03   -1.5497    
  13  Prefactor     .10000E-03    1.3675        .86816E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.958        8.0720        .12103E-03   -1.5046    
  15  norm          .51108        .40587        .41910E-04   -1.5565    
  16  Prefactor     .10009E-03    58.958        .37612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2023        .20676        .22163E-03   -.86532    
  18  Prefactor     .62566        .15697        .24103E-03   -1.0652    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48796e-09
Minuit parameter uncertainties:
  1  1.17735
  2  0.475049
  3  12.8355
  4  1.04127e-05
  5  32.2468
  6  9.146e-06
  7  5.62133e-06
  8  51.7543
  9  1.77204e-05
  10  5.68601e-06
  11  1.12783
  12  5.1714
  13  1.20628e-07
  14  8.07282
  15  0.405875
  16  0.00451022
  17  0.206902
  18  0.157082
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  5.621e-06  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.257e-01  1.571e-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.202e+00  2.069e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.009 5.209
Photon Flux Upper Limit: 5.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/769618/likelihoodResults_283910401_284169601_4FGL_J1016.0+0512_daily_bin172.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): 102
logL (Free Index) = 5899.17349577
delta logL = -0.00143674029641

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5899.17205897
delta logL = 6.47532942821e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2109       1.0000          .0000       10.000    
     3 'Normalizat'    1.2023       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62565       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5899.172     FROM MIGRAD    STATUS=FAILED        90 CALLS      241 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10115E-03    64.735        .13691E-02** at limit **
   2  Index         2.1457        5.2247        .50000        .26325E-04
   3  Normalizat    1.2023        .18978E-01    .22163E-03   -.57965E-05
   4  Prefactor     .62566        .15431E-01    .24104E-03   -.91502E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5899.172     FROM SIMPLEX   STATUS=UNCHANGED    136 CALLS      377 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10115E-03    64.735        .34385E-03** at limit **
   2  Index         2.1457        5.2247        .45665E-03    .26325E-04
   3  Normalizat    1.2023        .18978E-01    .40967E-05   -.57965E-05
   4  Prefactor     .62566        .15431E-01    .42216E-05   -.91502E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5899.172     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      421 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    66.915        .27383E-02** at limit **
   2  Index         1.8070        5.8894        .50000       -.72762E-06
   3  Normalizat    1.2023        .18547E-01    .88651E-05    .13645E-03
   4  Prefactor     .62566        .15081E-01    .96415E-05    .12994E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.80698
  Normalizat = 1.20229
  Prefactor  = 0.625659
 **********
 **   18 **HESSE 
 **********

 FCN=   5899.172     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      448 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    302.30        .54765E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8070        5.9017        .50000       -.69268    
   3  Normalizat    1.2023        .43131E-01    .17730E-05   -.86532    
   4  Prefactor     .62566        .35070E-01    .19283E-05   -1.0652    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.94607e-08
Minuit parameter uncertainties:
  1  0.000257926
  2  1091.43
  3  0.0431318
  4  0.0350708
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/769618': 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): 102
logL (Free Index) = 5899.1720574
delta logL = 1.6356134438e-06

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  2.579e-04  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  1.807e+00  1.091e+03  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:  6.257e-01  3.507e-02  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.202e+00  4.313e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.009 5.209

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/769618/cmap_HighResolution_283910401_284169601_4FGL_J1016.0+0512_daily_bin172.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.86e-03', job_status='DONE', photon_flux_upper_limit='5.06e-08', time_completed='2021-09-01 15:54:01.088129', job_id='769618', GAL2='0.63', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1630536841.09', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='1.64e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='172' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 15:54:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 769618: <4FGL_J1016.0+0512_daily_bin172> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1016.0+0512_daily_bin172 154.009 5.2089 283910401 284169601 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 :                                   535.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             294.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   693 sec.
    Turnaround time :                            787 sec.

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

