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


Performing analysis on: 4FGL_J1016.0+0512_daily_bin433
RA = 154.009, Dec = 5.2089
tmin = 351561601, tmax = 351820801
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='772572', job_status='RUN', time_executed='2021-09-01 15:54:54.054198', time_epoch_executed='1630536894.05' WHERE source_name='4FGL J1016.0+0512' and cadence='daily' and bin_id='433'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/772572

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/772572/ft1_4FGL_J1016.0+0512_daily_bin433.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/772572/ft2_4FGL_J1016.0+0512_daily_bin433.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/772572/ft1_4FGL_J1016.0+0512_daily_bin433.fits outfile=/scratch/kocevski/772572/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin433.fits ra=154.009 dec=5.2089 rad=12.0 tmin=351561601.0 tmax=351820801.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 7.00
user 6.68
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/772572/ft1_filtered_4FGL_J1016.0+0512_daily_bin433.fits" evtable="EVENTS" scfile=/scratch/kocevski/772572/ft2_4FGL_J1016.0+0512_daily_bin433.fits sctable="SC_DATA" outfile=/scratch/kocevski/772572/ltcube_351561601_351820801_4FGL_J1016.0+0512_daily_bin433.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/772572/ft2_4FGL_J1016.0+0512_daily_bin433.fits
.....................!
real 13.96
user 13.55
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/772572/ft1_filtered_4FGL_J1016.0+0512_daily_bin433.fits evtable="EVENTS" scfile=/scratch/kocevski/772572/ft2_4FGL_J1016.0+0512_daily_bin433.fits sctable="SC_DATA" expcube=/scratch/kocevski/772572/ltcube_351561601_351820801_4FGL_J1016.0+0512_daily_bin433.fits outfile=/scratch/kocevski/772572/expmap_351561601_351820801_4FGL_J1016.0+0512_daily_bin433.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/772572/ltcube_351561601_351820801_4FGL_J1016.0+0512_daily_bin433.fits
.....................!
real 191.13
user 186.30
sys 4.21

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/772572/ft1_filtered_4FGL_J1016.0+0512_daily_bin433.fits scfile=/scratch/kocevski/772572/ft2_4FGL_J1016.0+0512_daily_bin433.fits outfile=/scratch/kocevski/772572/cmap_351561601_351820801_4FGL_J1016.0+0512_daily_bin433.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/772572/ft1_filtered_4FGL_J1016.0+0512_daily_bin433.fits scfile=/scratch/kocevski/772572/ft2_4FGL_J1016.0+0512_daily_bin433.fits outfile=/scratch/kocevski/772572/cmap_HighResolution_351561601_351820801_4FGL_J1016.0+0512_daily_bin433.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.58
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2351       1.0000         .10000E-03   10000.    
     2 'norm      '    3.1060       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11424E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    56.133       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .17665E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .43217E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10773E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.534       1.0000         .10000E-03   10000.    
    15 'norm      '    .77099       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.4247       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .67988       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=   4541.599     FROM MIGRAD    STATUS=CONVERGED    372 CALLS     1499 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2350        1.4430       -.24678E-07   -.22616E-03
   2  norm          3.1059        .97402       -.94674E-07   -.33931E-02
   3  Prefactor     .10000E-03    7.8603       -.24824E-06** at limit **
   4  Prefactor     .10000E-03    13.497       -.34810E-07** at limit **
   5  Prefactor     .10000E-03    29.288        .34781E-06** at limit **
   6  norm          56.113        27.009        .65381E-05    .82309E-04
   7  Prefactor     .10000E-03    20.295       -.98814E-06** at limit **
   8  Prefactor     .10002E-03    280.96       -.15683E-04** at limit **
   9  Prefactor     .10000E-03    41.955       -.97744E-06** at limit **
  10  Prefactor     .10000E-03    16.055       -.15603E-07** at limit **
  11  norm          .10000E-03    .58679       -.31829E-09** at limit **
  12  Prefactor     .10000E-03    2.3381        .12380E-07** at limit **
  13  Prefactor     .10000E-03    1.8009       -.22516E-07** at limit **
  14  Prefactor     14.532        8.4476        .86427E-07   -.20867E-04
  15  norm          .77099        .53303        .24301E-08   -.78390E-04
  16  Prefactor     .10000E-03    4.0914        .75073E-08** at limit **
  17  Normalizat    1.4251        .21894       -.19172E-06    .71435E-04
  18  Prefactor     .67953        .17925       -.39550E-06    .14247E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.23498
  norm       = 3.10587
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 56.1132
  Prefactor  = 0.000100001
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.5323
  norm       = 0.770985
  Prefactor  = 0.0001
  Normalizat = 1.42512
  Prefactor  = 0.679526
 **********
 **   18 **HESSE 
 **********

 FCN=   4541.599     FROM HESSE     STATUS=OK           236 CALLS     1735 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2350        1.4373        .62435E-04   -1.5409    
   2  norm          3.1059        .98697        .18014E-03   -1.5355    
   3  Prefactor     .10000E-03    7.8828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    29.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          56.113        26.765        .53541E-04   -1.4208    
   7  Prefactor     .10000E-03    20.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10002E-03    289.47        .19397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    42.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .59824        .50382E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.3459        .10063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.8242        .88252E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.532        8.4505        .10506E-03   -1.4945    
  15  norm          .77099        .52817        .39690E-04   -1.5532    
  16  Prefactor     .10000E-03    4.0995        .13307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.4251        .25969        .23449E-03   -.79905    
  18  Prefactor     .67953        .21189        .26919E-03   -1.0433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.71238e-10
Minuit parameter uncertainties:
  1  1.43733
  2  0.986979
  3  7.38986e-05
  4  1.0487e-06
  5  8.08703e-06
  6  26.771
  7  0.00034455
  8  0.004437
  9  0.000147752
  10  6.53931e-05
  11  2.40646e-07
  12  5.29286e-07
  13  7.43399e-07
  14  8.45122
  15  0.528174
  16  4.18665e-07
  17  0.259928
  18  0.212142
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  3.445e-04  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.795e-01  2.121e-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.425e+00  2.599e-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: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/772572/likelihoodResults_351561601_351820801_4FGL_J1016.0+0512_daily_bin433.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) = 4541.59943031
delta logL = -0.000228780933867

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4541.59920137
delta logL = 1.64456650964e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3138       1.0000          .0000       10.000    
     3 'Normalizat'    1.4251       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67953       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.

 FCN=   4541.599     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      251 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    269.10        .90712E-02** at limit **
   2  Index         2.3360        8.3288        .50000       -.85852E-05
   3  Normalizat    1.4251        .19678E-01    .53036E-01    .97991E-04
   4  Prefactor     .67953        .16316E-01    .60857E-01    .76051E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.336
  Normalizat = 1.42512
  Prefactor  = 0.679527
 **********
 **   18 **HESSE 
 **********

 FCN=   4541.599     FROM HESSE     STATUS=OK            31 CALLS      282 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    113.64        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3360        5.4832        .50000       -.56191    
   3  Normalizat    1.4251        .25418        .23449E-03   -.79905    
   4  Prefactor     .67953        .21048        .26919E-03   -1.0433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02459e-10
Minuit parameter uncertainties:
  1  0.000973857
  2  9.44954
  3  0.254409
  4  0.21073
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/772572': 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) = 4541.5992013
delta logL = 2.3034044716e-07

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  9.739e-04  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  2.336e+00  9.450e+00  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.795e-01  2.107e-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.425e+00  2.544e-01  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/772572/cmap_HighResolution_351561601_351820801_4FGL_J1016.0+0512_daily_bin433.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.68e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-01 16:03:04.320045', job_id='772572', GAL2='0.68', fit_tolerance='1e-08', EG2='1.43', EG='1.43', time_epoch_completed='1630537384.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='2.30e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='433' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:03:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 772572: <4FGL_J1016.0+0512_daily_bin433> in cluster <slac> Done

Job <4FGL_J1016.0+0512_daily_bin433> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 15:50:35 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 15:51: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:51:59 2021
Terminated at Wed Sep  1 16:03:05 2021
Results reported at Wed Sep  1 16:03:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1016.0+0512_daily_bin433 154.009 5.2089 351561601 351820801 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 :                                   488.00 sec.
    Max Memory :                                 1029 MB
    Average Memory :                             263.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   665 sec.
    Turnaround time :                            750 sec.

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

