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


Performing analysis on: 4FGL_J1016.0+0512_daily_bin126
RA = 154.009, Dec = 5.2089
tmin = 271987201, tmax = 272246401
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='769554', job_status='RUN', time_executed='2021-09-01 15:44:14.857218', time_epoch_executed='1630536254.86' WHERE source_name='4FGL J1016.0+0512' and cadence='daily' and bin_id='126'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/769554

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/769554/ft1_4FGL_J1016.0+0512_daily_bin126.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/769554/ft2_4FGL_J1016.0+0512_daily_bin126.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/769554/ft1_4FGL_J1016.0+0512_daily_bin126.fits outfile=/scratch/kocevski/769554/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin126.fits ra=154.009 dec=5.2089 rad=12.0 tmin=271987201.0 tmax=272246401.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 1.63
user 1.44
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/769554/ft1_filtered_4FGL_J1016.0+0512_daily_bin126.fits" evtable="EVENTS" scfile=/scratch/kocevski/769554/ft2_4FGL_J1016.0+0512_daily_bin126.fits sctable="SC_DATA" outfile=/scratch/kocevski/769554/ltcube_271987201_272246401_4FGL_J1016.0+0512_daily_bin126.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/769554/ft2_4FGL_J1016.0+0512_daily_bin126.fits
.....................!
real 13.66
user 13.25
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/769554/ft1_filtered_4FGL_J1016.0+0512_daily_bin126.fits evtable="EVENTS" scfile=/scratch/kocevski/769554/ft2_4FGL_J1016.0+0512_daily_bin126.fits sctable="SC_DATA" expcube=/scratch/kocevski/769554/ltcube_271987201_272246401_4FGL_J1016.0+0512_daily_bin126.fits outfile=/scratch/kocevski/769554/expmap_271987201_272246401_4FGL_J1016.0+0512_daily_bin126.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/769554/ltcube_271987201_272246401_4FGL_J1016.0+0512_daily_bin126.fits
.....................!
real 192.91
user 187.36
sys 4.94

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/769554/ft1_filtered_4FGL_J1016.0+0512_daily_bin126.fits scfile=/scratch/kocevski/769554/ft2_4FGL_J1016.0+0512_daily_bin126.fits outfile=/scratch/kocevski/769554/cmap_271987201_272246401_4FGL_J1016.0+0512_daily_bin126.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.40
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/769554/ft1_filtered_4FGL_J1016.0+0512_daily_bin126.fits scfile=/scratch/kocevski/769554/ft2_4FGL_J1016.0+0512_daily_bin126.fits outfile=/scratch/kocevski/769554/cmap_HighResolution_271987201_272246401_4FGL_J1016.0+0512_daily_bin126.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4274       1.0000         .10000E-03   10000.    
     2 'norm      '    .70068       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.334       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .22796E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10115E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.1339       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10531E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    148.77       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.581       1.0000         .10000E-03   10000.    
    11 'norm      '    1.1252       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7036       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.1644       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1535       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.3111       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=   7617.480     FROM MIGRAD    STATUS=CONVERGED    376 CALLS     1836 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4274        1.4016       -.10470E-06   -.28578E-03
   2  norm          .70057        .61759       -.12705E-06   -.12633E-02
   3  Prefactor     12.335        13.368        .17281E-05   -.22002E-04
   4  Prefactor     .10359E-03    30.698       -.42700E-05** at limit **
   5  Prefactor     .10000E-03    13.393       -.12400E-05** at limit **
   6  norm          .10000E-03    9.0687       -.33952E-06** at limit **
   7  Prefactor     8.1340        12.093        .17735E-04    .15018E-03
   8  Prefactor     .10000E-03    39.888       -.57405E-06** at limit **
   9  Prefactor     148.78        107.37       -.12521E-05    .36859E-04
  10  Prefactor     11.599        27.855       -.41797E-04   -.73261E-04
  11  norm          1.1249        1.2435        .23349E-07   -.10342E-03
  12  Prefactor     .10000E-03    2.0855        .53216E-07** at limit **
  13  Prefactor     1.7033        2.4951       -.15363E-06   -.67541E-03
  14  Prefactor     .10000E-03    13.879        .11462E-05** at limit **
  15  norm          1.1645        .65088       -.33083E-07   -.42057E-03
  16  Prefactor     .10000E-03    6.3866        .18745E-07** at limit **
  17  Normalizat    1.1534        .20412        .83498E-06    .20566E-03
  18  Prefactor     1.3112        .16937        .54115E-06    .25777E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.42742
  norm       = 0.700568
  Prefactor  = 12.335
  Prefactor  = 0.000103588
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.13399
  Prefactor  = 0.0001
  Prefactor  = 148.777
  Prefactor  = 11.5989
  norm       = 1.12489
  Prefactor  = 0.0001
  Prefactor  = 1.70332
  Prefactor  = 0.0001
  norm       = 1.16449
  Prefactor  = 0.0001
  Normalizat = 1.15341
  Prefactor  = 1.3112
 **********
 **   18 **HESSE 
 **********

 FCN=   7617.480     FROM HESSE     STATUS=OK           258 CALLS     2094 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4274        1.4005        .74715E-04   -1.5396    
   2  norm          .70057        .59427        .60765E-03   -1.5541    
   3  Prefactor     12.335        13.354        .11406E-03   -1.5005    
   4  Prefactor     .10359E-03    30.447        .13723       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    9.0820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.1340        12.068        .14058E-03   -1.5137    
   8  Prefactor     .10000E-03    39.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     148.78        107.04        .16521E-03   -1.3262    
  10  Prefactor     11.599        27.861        .11772E-03   -1.5027    
  11  norm          1.1249        1.2220        .97837E-04   -1.5496    
  12  Prefactor     .10000E-03    2.0965        .12306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.7033        2.4751        .15996E-03   -1.5447    
  14  Prefactor     .10000E-03    14.367        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.1645        .64320        .50615E-04   -1.5492    
  16  Prefactor     .10000E-03    6.4149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.1534        .24606        .29991E-03   -.88055    
  18  Prefactor     1.3112        .20529        .24295E-03   -.82975    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37933e-09
Minuit parameter uncertainties:
  1  1.4005
  2  0.594273
  3  13.3577
  4  0.0209135
  5  3.42869e-06
  6  8.81657e-05
  7  12.0712
  8  0.00011747
  9  107.177
  10  27.8917
  11  1.22206
  12  2.7682e-07
  13  2.47523
  14  1.08044e-05
  15  0.643206
  16  3.0429e-06
  17  0.246308
  18  0.205416
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  8.134e+00  1.207e+01  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  2.223e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  1.311e+00  2.054e-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.153e+00  2.463e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.98
Ra Dec: 154.009 5.209
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/769554/likelihoodResults_271987201_272246401_4FGL_J1016.0+0512_daily_bin126.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) = 7617.43122611
delta logL = 0.0485184067493

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7617.42421765
delta logL = 0.05552685973

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.4346       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9618       1.0000          .0000       10.000    
     3 'Normalizat'    1.1614       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3072       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=   7617.424     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      245 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.4359        12.139        .13047E-03   -.90932E-03
   2  Index         1.9626        .76772        .10317E-01   -.29385E-03
   3  Normalizat    1.1612        .23802        .29909E-03    .28063E-03
   4  Prefactor     1.3074        .20387        .24327E-03    .36810E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.43587
  Index      = 1.96264
  Normalizat = 1.16121
  Prefactor  = 1.30739
 **********
 **   18 **HESSE 
 **********

 FCN=   7617.424     FROM HESSE     STATUS=OK            23 CALLS      268 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.4359        12.084        .26094E-04   -1.5094    
   2  Index         1.9626        .76417        .41268E-03   -.65287    
   3  Normalizat    1.1612        .23820        .11964E-04   -.87810    
   4  Prefactor     1.3074        .20405        .48654E-04   -.83088    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.56921e-09
Minuit parameter uncertainties:
  1  12.0866
  2  0.76896
  3  0.238421
  4  0.204177
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/769554': 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) = 7617.4242164
delta logL = 0.0555281163251

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  9.436e+00  1.209e+01  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  1.963e+00  7.690e-01  0.000e+00  1.000e+01 (-1.000e+00)
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  1.307e+00  2.042e-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.161e+00  2.384e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.11
Ra Dec: 154.009 5.209
Photon Index (Free Index): 1.96 +/- 0.77
Photon Flux (Free Index): 1.93e-08 +/- 3.35e-08
Energy Flux (Free Index): 1.46e-05 +/- 2.21e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/769554/cmap_HighResolution_271987201_272246401_4FGL_J1016.0+0512_daily_bin126.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.51e-03', comment='SUCCESS', energy_flux2='1.46e-05', dlogl='5.55e-02', photon_flux2='1.93e-08', job_status='DONE', time_completed='2021-09-01 15:54:04.905389', photon_index_error2='0.77', photon_index2='1.96', ts='0.98', fit_tolerance='1e-08', GAL='1.31', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='2.21e-05', EG='1.15', time_epoch_completed='1630536844.91', return_code='0', job_id='769554', GAL2='1.31', EG2='1.16', return_code2='0', photon_flux_error2='3.35e-08', ts2='1.11', photon_index='2.22' WHERE bin_id='126' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 15:54:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 769554: <4FGL_J1016.0+0512_daily_bin126> in cluster <slac> Done

Job <4FGL_J1016.0+0512_daily_bin126> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 15:40:49 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 15:41:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 15:41:59 2021
Terminated at Wed Sep  1 15:54:05 2021
Results reported at Wed Sep  1 15:54:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1016.0+0512_daily_bin126 154.009 5.2089 271987201 272246401 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 :                                   589.05 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             290.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   726 sec.
    Turnaround time :                            796 sec.

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

