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


Performing analysis on: 4FGL_J1016.0+0512_daily_bin233
RA = 154.009, Dec = 5.2089
tmin = 299721601, tmax = 299980801
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='771082', job_status='RUN', time_executed='2021-09-01 15:47:53.425719', time_epoch_executed='1630536473.43' WHERE source_name='4FGL J1016.0+0512' and cadence='daily' and bin_id='233'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/771082

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/771082/ft1_4FGL_J1016.0+0512_daily_bin233.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/771082/ft2_4FGL_J1016.0+0512_daily_bin233.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/771082/ft1_4FGL_J1016.0+0512_daily_bin233.fits outfile=/scratch/kocevski/771082/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin233.fits ra=154.009 dec=5.2089 rad=12.0 tmin=299721601.0 tmax=299980801.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.38
user 3.15
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/771082/ft1_filtered_4FGL_J1016.0+0512_daily_bin233.fits" evtable="EVENTS" scfile=/scratch/kocevski/771082/ft2_4FGL_J1016.0+0512_daily_bin233.fits sctable="SC_DATA" outfile=/scratch/kocevski/771082/ltcube_299721601_299980801_4FGL_J1016.0+0512_daily_bin233.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/771082/ft2_4FGL_J1016.0+0512_daily_bin233.fits
.....................!
real 14.15
user 13.74
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/771082/ft1_filtered_4FGL_J1016.0+0512_daily_bin233.fits evtable="EVENTS" scfile=/scratch/kocevski/771082/ft2_4FGL_J1016.0+0512_daily_bin233.fits sctable="SC_DATA" expcube=/scratch/kocevski/771082/ltcube_299721601_299980801_4FGL_J1016.0+0512_daily_bin233.fits outfile=/scratch/kocevski/771082/expmap_299721601_299980801_4FGL_J1016.0+0512_daily_bin233.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/771082/ltcube_299721601_299980801_4FGL_J1016.0+0512_daily_bin233.fits
.....................!
real 192.03
user 186.33
sys 5.20

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/771082/ft1_filtered_4FGL_J1016.0+0512_daily_bin233.fits scfile=/scratch/kocevski/771082/ft2_4FGL_J1016.0+0512_daily_bin233.fits outfile=/scratch/kocevski/771082/cmap_299721601_299980801_4FGL_J1016.0+0512_daily_bin233.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/771082/ft1_filtered_4FGL_J1016.0+0512_daily_bin233.fits scfile=/scratch/kocevski/771082/ft2_4FGL_J1016.0+0512_daily_bin233.fits outfile=/scratch/kocevski/771082/cmap_HighResolution_299721601_299980801_4FGL_J1016.0+0512_daily_bin233.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=154.009 yref=5.2089 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .99939       1.0000         .10000E-03   10000.    
     2 'norm      '    2.9674       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13068E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .21826E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    40.126       1.0000         .10000E-03   10000.    
     6 'norm      '    .11020E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .24657E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10583E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    47.318       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18080E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.7592       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11614E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1926       1.0000         .10000E-03   10000.    
    15 'norm      '    .16700       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .35217E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1473       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0004       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=   5683.234     FROM MIGRAD    STATUS=CONVERGED    393 CALLS     1787 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .99947        1.2949        .23789E-06   -.79975E-04
   2  norm          2.9672        .92592        .69813E-08    .21179E-04
   3  Prefactor     .10000E-03    12.591        .21724E-07** at limit **
   4  Prefactor     .10000E-03    31.049       -.95921E-06** at limit **
   5  Prefactor     39.960        42.208       -.11265E-06   -.51842E-04
   6  norm          .10000E-03    4.6927       -.10283E-07** at limit **
   7  Prefactor     .10000E-03    2.3019       -.45685E-07** at limit **
   8  Prefactor     .10000E-03    16.581       -.86427E-07** at limit **
   9  Prefactor     47.553        34.607       -.79755E-07   -.24189E-04
  10  Prefactor     .10000E-03    7.3172       -.48118E-06** at limit **
  11  norm          .10000E-03    .74173        .64616E-07** at limit **
  12  Prefactor     6.7817        9.5087        .91847E-07   -.14149E-04
  13  Prefactor     .10000E-03    2.5780        .45067E-07** at limit **
  14  Prefactor     1.1906        5.5203        .15314E-05   -.21414E-03
  15  norm          .16695        .34250        .32247E-06    .85153E-03
  16  Prefactor     .10000E-03    5.2354       -.80145E-06** at limit **
  17  Normalizat    1.1471        .19963       -.74939E-07   -.39540E-04
  18  Prefactor     1.0005        .16520       -.45414E-06    .34735E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.999473
  norm       = 2.96718
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.9601
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.553
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.78174
  Prefactor  = 0.0001
  Prefactor  = 1.19056
  norm       = 0.166954
  Prefactor  = 0.000100002
  Normalizat = 1.14712
  Prefactor  = 1.00054
 **********
 **   18 **HESSE 
 **********

 FCN=   5683.234     FROM HESSE     STATUS=OK           250 CALLS     2037 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .99947        1.1922        .92475E-03   -1.5508    
   2  norm          2.9672        .92515        .38465E-04   -1.5363    
   3  Prefactor     .10000E-03    13.001        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    30.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     39.960        42.227        .63278E-04   -1.4443    
   6  norm          .10000E-03    4.6972        .15949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.3024        .11169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     47.553        34.600        .29145E-03   -1.4328    
  10  Prefactor     .10000E-03    7.2803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.1409        .12495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.7817        9.4548        .15433E-03   -1.5187    
  13  Prefactor     .10000E-03    2.6785        .23589E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.1906        4.9747        .32559E-03   -1.5490    
  15  norm          .16695        .32775        .65145E-03   -1.5626    
  16  Prefactor     .10000E-03    11.966        .32162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.1471        .23377        .26067E-03   -.88253    
  18  Prefactor     1.0005        .19300        .23409E-03   -.92711    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57698e-09
Minuit parameter uncertainties:
  1  1.19222
  2  0.925157
  3  6.07485e-06
  4  0.000159757
  5  42.2585
  6  1.30985e-06
  7  2.31767e-06
  8  1.36867e-05
  9  34.6142
  10  3.89302e-05
  11  2.5859e-06
  12  9.45686
  13  9.12688e-06
  14  4.86779
  15  0.327751
  16  0.000273441
  17  0.233981
  18  0.19313
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  1.001e+00  1.931e-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.147e+00  2.340e-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: 4.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/771082/likelihoodResults_299721601_299980801_4FGL_J1016.0+0512_daily_bin233.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) = 5683.23555066
delta logL = -0.00199057752161

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5683.23355947
delta logL = 6.14289092482e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1960       1.0000          .0000       10.000    
     3 'Normalizat'    1.1472       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0005       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=   5683.234     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      241 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10321E-03    3.1679        .11535E-01** at limit **
   2  Index         2.1068        5.9871        .50000        .84190E-04
   3  Normalizat    1.1471        .55192E-02    .26067E-03   -.11012E-03
   4  Prefactor     1.0005        .46898E-02    .23409E-03   -.12413E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103205
  Index      = 2.10683
  Normalizat = 1.14712
  Prefactor  = 1.00054
 **********
 **   18 **HESSE 
 **********

 FCN=   5683.234     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10321E-03    35.889        .11920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1068        5.1756        .50000       -.61705    
   3  Normalizat    1.1471        .18823E-01    .10427E-04   -.88253    
   4  Prefactor     1.0005        .15994E-01    .93638E-05   -.92711    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.33867e-08
Minuit parameter uncertainties:
  1  0.0214642
  2  204.638
  3  0.0188227
  4  0.015994
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/771082': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5683.23355804
delta logL = 2.04317984753e-06

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  1.032e-04  2.146e-02  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  2.107e+00  2.046e+02  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.001e+00  1.599e-02  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  1.147e+00  1.882e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/771082/cmap_HighResolution_299721601_299980801_4FGL_J1016.0+0512_daily_bin233.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.25e-03', job_status='DONE', photon_flux_upper_limit='4.25e-08', time_completed='2021-09-01 15:56:37.735341', job_id='771082', GAL2='1.00', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1630536997.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='2.04e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='233' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 15:56:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 771082: <4FGL_J1016.0+0512_daily_bin233> in cluster <slac> Done

Job <4FGL_J1016.0+0512_daily_bin233> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 15:45:27 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 15:45:33 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:45:33 2021
Terminated at Wed Sep  1 15:56:38 2021
Results reported at Wed Sep  1 15:56:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1016.0+0512_daily_bin233 154.009 5.2089 299721601 299980801 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 :                                   523.23 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             252.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   665 sec.
    Turnaround time :                            671 sec.

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

