/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 0 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 = 7527
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1016.0+0512_daily_bin537
RA = 154.009, Dec = 5.2089
tmin = 378518401, tmax = 378777601
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='775696', job_status='RUN', time_executed='2021-09-01 16:00:33.093526', time_epoch_executed='1630537233.09' WHERE source_name='4FGL J1016.0+0512' and cadence='daily' and bin_id='537'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/775696

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/775696/ft1_4FGL_J1016.0+0512_daily_bin537.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/775696/ft2_4FGL_J1016.0+0512_daily_bin537.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/775696/ft1_4FGL_J1016.0+0512_daily_bin537.fits outfile=/scratch/kocevski/775696/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin537.fits ra=154.009 dec=5.2089 rad=12.0 tmin=378518401.0 tmax=378777601.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.45
user 3.21
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/775696/ft1_filtered_4FGL_J1016.0+0512_daily_bin537.fits" evtable="EVENTS" scfile=/scratch/kocevski/775696/ft2_4FGL_J1016.0+0512_daily_bin537.fits sctable="SC_DATA" outfile=/scratch/kocevski/775696/ltcube_378518401_378777601_4FGL_J1016.0+0512_daily_bin537.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/775696/ft2_4FGL_J1016.0+0512_daily_bin537.fits
.....................!
real 15.13
user 14.75
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/775696/ft1_filtered_4FGL_J1016.0+0512_daily_bin537.fits evtable="EVENTS" scfile=/scratch/kocevski/775696/ft2_4FGL_J1016.0+0512_daily_bin537.fits sctable="SC_DATA" expcube=/scratch/kocevski/775696/ltcube_378518401_378777601_4FGL_J1016.0+0512_daily_bin537.fits outfile=/scratch/kocevski/775696/expmap_378518401_378777601_4FGL_J1016.0+0512_daily_bin537.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/775696/ltcube_378518401_378777601_4FGL_J1016.0+0512_daily_bin537.fits
.....................!
real 191.44
user 186.81
sys 4.18

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/775696/ft1_filtered_4FGL_J1016.0+0512_daily_bin537.fits scfile=/scratch/kocevski/775696/ft2_4FGL_J1016.0+0512_daily_bin537.fits outfile=/scratch/kocevski/775696/cmap_378518401_378777601_4FGL_J1016.0+0512_daily_bin537.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=154.009 yref=5.2089 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.41
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3364       1.0000         .10000E-03   10000.    
     2 'norm      '    17.060       1.0000         .10000E-03   10000.    
     3 'Prefactor '    55.290       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.149       1.0000         .10000E-03   10000.    
     6 'norm      '    7.1757       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .83681       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.9643       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10911E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.0089       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .85717       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1858       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .92625       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=   6791.967     FROM MIGRAD    STATUS=CONVERGED    368 CALLS     1787 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3368        1.5350        .26212E-06   -.22746E-04
   2  norm          17.060        1.6501        .23283E-07   -.19953E-03
   3  Prefactor     55.281        21.815       -.32598E-06   -.16147E-03
   4  Prefactor     .10000E-03    22.560        .19551E-05** at limit **
   5  Prefactor     10.143        49.146        .76167E-06   -.20155E-04
   6  norm          7.1763        12.473       -.34455E-06   -.55388E-04
   7  Prefactor     .83346        9.5518        .65961E-05   -.39980E-04
   8  Prefactor     5.0168        162.50        .85315E-05    .36299E-04
   9  Prefactor     .10001E-03    78.774       -.35470E-05** at limit **
  10  Prefactor     .10000E-03    15.324        .59960E-06** at limit **
  11  norm          .10000E-03    .47292       -.24616E-07** at limit **
  12  Prefactor     .10000E-03    9.8327       -.38391E-06** at limit **
  13  Prefactor     7.0098        3.7310        .95963E-07   -.67200E-04
  14  Prefactor     .10000E-03    1.6682       -.25798E-07** at limit **
  15  norm          .85738        .58309       -.15923E-06    .35231E-03
  16  Prefactor     .10000E-03    19.212       -.31642E-05** at limit **
  17  Normalizat    1.1854        .22333       -.25242E-05    .33906E-04
  18  Prefactor     .92649        .17101        .13278E-05   -.14030E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.33676
  norm       = 17.0601
  Prefactor  = 55.2808
  Prefactor  = 0.000100001
  Prefactor  = 10.1433
  norm       = 7.17634
  Prefactor  = 0.833455
  Prefactor  = 5.01678
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.00977
  Prefactor  = 0.0001
  norm       = 0.857377
  Prefactor  = 0.0001
  Normalizat = 1.18544
  Prefactor  = 0.926493
 **********
 **   18 **HESSE 
 **********

 FCN=   6791.967     FROM HESSE     STATUS=OK           250 CALLS     2037 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3368        1.5217        .10176E-03   -1.5477    
   2  norm          17.060        1.6523        .31434E-04   -1.4882    
   3  Prefactor     55.281        21.928        .53946E-04   -1.4220    
   4  Prefactor     .10000E-03    22.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.143        49.413        .12578E-03   -1.5071    
   6  norm          7.1763        12.457        .14974E-03   -1.5172    
   7  Prefactor     .83346        9.9243        .49532E-03   -1.5525    
   8  Prefactor     5.0168        167.60        .18050E-03   -1.5260    
   9  Prefactor     .10001E-03    81.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .80953        .10996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.123        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.0098        3.7444        .11019E-03   -1.5178    
  14  Prefactor     .10000E-03    1.6699        .10394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .85738        .56224        .49714E-03   -1.5523    
  16  Prefactor     .10000E-03    19.627        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.1854        .26022        .29518E-03   -.87054    
  18  Prefactor     .92649        .19961        .27295E-03   -.95221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.88164e-10
Minuit parameter uncertainties:
  1  1.52174
  2  1.65226
  3  21.9317
  4  0.000247461
  5  44.8348
  6  12.461
  7  5.75288
  8  58.1702
  9  0.0020238
  10  9.54437e-05
  11  2.96779e-06
  12  2.51847e-05
  13  3.7445
  14  1.18691e-06
  15  0.562248
  16  4.65837e-05
  17  0.260508
  18  0.199764
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  8.335e-01  5.753e+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

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  9.265e-01  1.998e-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.185e+00  2.605e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/775696/likelihoodResults_378518401_378777601_4FGL_J1016.0+0512_daily_bin537.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) = 6791.96563228
delta logL = 0.00138499674176

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6791.96524685
delta logL = 0.00177042877021

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0212       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0887       1.0000          .0000       10.000    
     3 'Normalizat'    1.1858       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92618       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=   6791.965     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      254 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0191        12.289        .51063E-03   -.31148E-04
   2  Index         2.0847        2.1838        .10951E-01   -.16610E-04
   3  Normalizat    1.1858        .23654        .29515E-03   -.35229E-03
   4  Prefactor     .92622        .19718        .27298E-03   -.40592E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.01912
  Index      = 2.08471
  Normalizat = 1.18577
  Prefactor  = 0.926217
 **********
 **   18 **HESSE 
 **********

 FCN=   6791.965     FROM HESSE     STATUS=OK            23 CALLS      277 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0191        11.390        .20425E-04   -1.5506    
   2  Index         2.0847        2.1118        .43803E-03   -.62249    
   3  Normalizat    1.1858        .23673        .59029E-04   -.87044    
   4  Prefactor     .92622        .19732        .54596E-04   -.95231    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69691e-10
Minuit parameter uncertainties:
  1  6.81535
  2  2.22083
  3  0.236944
  4  0.197475
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/775696': 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) = 6791.9652448
delta logL = 0.00177248025102

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  1.019e+00  6.815e+00  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  2.085e+00  2.221e+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:  9.262e-01  1.975e-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.186e+00  2.369e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
Ra Dec: 154.009 5.209

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/775696/cmap_HighResolution_378518401_378777601_4FGL_J1016.0+0512_daily_bin537.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.29e-03', job_status='DONE', photon_flux_upper_limit='6.93e-08', time_completed='2021-09-01 16:10:26.685735', job_id='775696', GAL2='0.93', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1630537826.69', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.77e-03', ts2='0.03', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='537' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:10:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 775696: <4FGL_J1016.0+0512_daily_bin537> in cluster <slac> Done

Job <4FGL_J1016.0+0512_daily_bin537> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 16:00:22 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:00:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 16:00:24 2021
Terminated at Wed Sep  1 16:10:27 2021
Results reported at Wed Sep  1 16:10:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1016.0+0512_daily_bin537 154.009 5.2089 378518401 378777601 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 :                                   594.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             379.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   603 sec.
    Turnaround time :                            605 sec.

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

