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


Performing analysis on: 4FGL_J1016.0+0512_daily_bin355
RA = 154.009, Dec = 5.2089
tmin = 331344001, tmax = 331603201
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='772452', job_status='RUN', time_executed='2021-09-01 15:52:59.701042', time_epoch_executed='1630536779.7' WHERE source_name='4FGL J1016.0+0512' and cadence='daily' and bin_id='355'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/772452

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/772452/ft1_4FGL_J1016.0+0512_daily_bin355.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/772452/ft2_4FGL_J1016.0+0512_daily_bin355.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/772452/ft1_4FGL_J1016.0+0512_daily_bin355.fits outfile=/scratch/kocevski/772452/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin355.fits ra=154.009 dec=5.2089 rad=12.0 tmin=331344001.0 tmax=331603201.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.58
user 3.09
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/772452/ft2_4FGL_J1016.0+0512_daily_bin355.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/772452/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin355.fits evtable="EVENTS" outfile="/scratch/kocevski/772452/ft1_filtered_4FGL_J1016.0+0512_daily_bin355.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.60
user 0.35
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/772452/ft1_filtered_4FGL_J1016.0+0512_daily_bin355.fits evtable="EVENTS" scfile=/scratch/kocevski/772452/ft2_4FGL_J1016.0+0512_daily_bin355.fits sctable="SC_DATA" expcube=/scratch/kocevski/772452/ltcube_331344001_331603201_4FGL_J1016.0+0512_daily_bin355.fits outfile=/scratch/kocevski/772452/expmap_331344001_331603201_4FGL_J1016.0+0512_daily_bin355.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/772452/ltcube_331344001_331603201_4FGL_J1016.0+0512_daily_bin355.fits
.....................!
real 191.07
user 186.13
sys 4.02

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/772452/ft1_filtered_4FGL_J1016.0+0512_daily_bin355.fits scfile=/scratch/kocevski/772452/ft2_4FGL_J1016.0+0512_daily_bin355.fits outfile=/scratch/kocevski/772452/cmap_331344001_331603201_4FGL_J1016.0+0512_daily_bin355.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.60
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/772452/ft1_filtered_4FGL_J1016.0+0512_daily_bin355.fits scfile=/scratch/kocevski/772452/ft2_4FGL_J1016.0+0512_daily_bin355.fits outfile=/scratch/kocevski/772452/cmap_HighResolution_331344001_331603201_4FGL_J1016.0+0512_daily_bin355.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.62
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .13556E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.807       1.0000         .10000E-03   10000.    
     4 'Prefactor '    47.210       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.100       1.0000         .10000E-03   10000.    
     6 'norm      '    .10119E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.884       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .56633       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .22744E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10359E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.4161       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0142       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.760       1.0000         .10000E-03   10000.    
    15 'norm      '    2.2784       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.7444       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .60628       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=   6320.569     FROM MIGRAD    STATUS=CONVERGED    679 CALLS     2088 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5262        .14098E-02** at limit **
   2  norm          .10000E-03    3.5113        .84619E-03** at limit **
   3  Prefactor     13.820        16.517        .10779E-03    .78784E-04
   4  Prefactor     47.208        50.198        .58357E-04    .23183E-04
   5  Prefactor     22.099        35.939        .85203E-04    .47635E-04
   6  norm          .10000E-03    8.2768        .18142E-02** at limit **
   7  Prefactor     22.843        19.399        .83734E-04   -.78892E-03
   8  Prefactor     .53044        108.91        .17872        .57592E-04
   9  Prefactor     .10043E-03    124.31        .18592    ** at limit **
  10  Prefactor     .10000E-03    15.448        .18142E-02** at limit **
  11  norm          2.4157        1.7019        .83012E-04   -.42236E-03
  12  Prefactor     .10000E-03    9.8785        .36285E-03** at limit **
  13  Prefactor     3.0134        3.4423        .14864E-03    .27787E-03
  14  Prefactor     10.764        11.991        .12214E-03   -.23083E-04
  15  norm          2.2779        .81011        .40557E-04   -.17155E-02
  16  Prefactor     .10000E-03    7.8700        .18142E-02** at limit **
  17  Normalizat    1.7448        .25808        .24327E-03   -.21030E-05
  18  Prefactor     .60577        .18963        .30330E-03    .21380E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100004
  norm       = 0.000100005
  Prefactor  = 13.8198
  Prefactor  = 47.2075
  Prefactor  = 22.0988
  norm       = 0.0001
  Prefactor  = 22.8432
  Prefactor  = 0.530443
  Prefactor  = 0.000100432
  Prefactor  = 0.0001
  norm       = 2.41575
  Prefactor  = 0.0001
  Prefactor  = 3.01341
  Prefactor  = 10.7641
  norm       = 2.27788
  Prefactor  = 0.0001
  Normalizat = 1.74484
  Prefactor  = 0.605769
 **********
 **   18 **HESSE 
 **********

 FCN=   6320.569     FROM HESSE     STATUS=OK           246 CALLS     2334 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5300        .28195E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.5502        .16924E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.820        16.528        .43117E-05   -1.4964    
   4  Prefactor     47.208        50.243        .23343E-05   -1.4333    
   5  Prefactor     22.099        35.960        .34081E-05   -1.4767    
   6  norm          .10000E-03    8.2769        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     22.843        19.616        .16747E-04   -1.4752    
   8  Prefactor     .53044        119.16        .17056       -1.5562    
   9  Prefactor     .10043E-03    145.18        .17133       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.448        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.4157        1.7018        .33205E-05   -1.5397    
  12  Prefactor     .10000E-03    9.8791        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.0134        3.4418        .59456E-05   -1.5361    
  14  Prefactor     10.764        11.990        .48856E-05   -1.5052    
  15  norm          2.2779        .81007        .81114E-05   -1.5406    
  16  Prefactor     .10000E-03    7.8719        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.7448        .25837        .97308E-05   -.71112    
  18  Prefactor     .60577        .18980        .12132E-04   -1.0734    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.66695e-09
Minuit parameter uncertainties:
  1  0.000150086
  2  0.000253226
  3  16.5336
  4  50.2884
  5  35.9953
  6  8.8175e-05
  7  19.6219
  8  15.9314
  9  0.0158806
  10  2.25085e-05
  11  1.70185
  12  6.6353e-05
  13  3.44205
  14  11.9926
  15  0.810071
  16  7.43402e-05
  17  0.258574
  18  0.189998
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  2.284e+01  1.962e+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.058e-01  1.900e-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.745e+00  2.586e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.22
Ra Dec: 154.009 5.209
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 7.42e-08 +/- 6.37e-08
Energy Flux (Fixed Index): 3.19e-05 +/- 2.74e-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) = 6318.65482136
delta logL = 1.91423473795

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6318.63656098
delta logL = 1.93249512251

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9386       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2531       1.0000          .0000       10.000    
     3 'Normalizat'    1.6092       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67326       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6318.637     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      296 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9386        13.654        .42016E-03   -.20697E-03
   2  Index         3.2531        .95939        .30052E-02    .31827E-04
   3  Normalizat    1.6092        .25853        .25041E-03   -.63559E-07
   4  Prefactor     .67324        .19587        .28872E-03    .39376E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.93863
  Index      = 3.25315
  Normalizat = 1.60916
  Prefactor  = 0.673242
 **********
 **   18 **HESSE 
 **********

 FCN=   6318.637     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9386        8.0123        .16806E-04   -1.5181    
   2  Index         3.2531        .56466        .12021E-03   -.35690    
   3  Normalizat    1.6092        .25501        .50083E-04   -.74755    
   4  Prefactor     .67324        .19354        .11549E-04   -1.0459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.33242e-11
Minuit parameter uncertainties:
  1  8.01357
  2  0.566037
  3  0.255218
  4  0.193732
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/772452': 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) = 6318.63656091
delta logL = 1.93249518949

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  6.939e+00  8.014e+00  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  3.253e+00  5.660e-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:  6.732e-01  1.937e-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.609e+00  2.552e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.44
Ra Dec: 154.009 5.209
Photon Index (Free Index): 3.25 +/- 0.57
Photon Flux (Free Index): 1.96e-07 +/- 9.45e-08
Energy Flux (Free Index): 3.52e-05 +/- 1.54e-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/772452/cmap_HighResolution_331344001_331603201_4FGL_J1016.0+0512_daily_bin355.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.42e-08', energy_flux2='3.52e-05', photon_flux_error='6.37e-08', dlogl='1.93e+00', energy_flux='3.19e-05', photon_flux2='1.96e-07', job_status='DONE', time_completed='2021-09-01 16:01:52.098330', photon_index_error2='0.57', photon_index2='3.25', ts='4.22', fit_tolerance='1e-08', GAL='0.61', photon_index_error='0.00', energy_flux_error2='1.54e-05', EG='1.74', time_epoch_completed='1630537312.1', return_code='0', job_id='772452', GAL2='0.67', EG2='1.61', return_code2='0', energy_flux_error='2.74e-05', photon_flux_error2='9.45e-08', ts2='8.44', photon_index='2.22' WHERE bin_id='355' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:01:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 772452: <4FGL_J1016.0+0512_daily_bin355> in cluster <slac> Done

Job <4FGL_J1016.0+0512_daily_bin355> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 15:50:26 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 15:50:56 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:50:56 2021
Terminated at Wed Sep  1 16:01:52 2021
Results reported at Wed Sep  1 16:01:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1016.0+0512_daily_bin355 154.009 5.2089 331344001 331603201 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 :                                   530.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             292.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   656 sec.
    Turnaround time :                            686 sec.

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

