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


Performing analysis on: 4FGL_J1016.0+0512_daily_bin234
RA = 154.009, Dec = 5.2089
tmin = 299980801, tmax = 300240001
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='771083', job_status='RUN', time_executed='2021-09-01 15:47:59.483730', time_epoch_executed='1630536479.48' WHERE source_name='4FGL J1016.0+0512' and cadence='daily' and bin_id='234'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/771083

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/771083/ft1_4FGL_J1016.0+0512_daily_bin234.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/771083/ft2_4FGL_J1016.0+0512_daily_bin234.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/771083/ft1_4FGL_J1016.0+0512_daily_bin234.fits outfile=/scratch/kocevski/771083/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin234.fits ra=154.009 dec=5.2089 rad=12.0 tmin=299980801.0 tmax=300240001.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.49
user 3.24
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/771083/ft2_4FGL_J1016.0+0512_daily_bin234.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/771083/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin234.fits evtable="EVENTS" outfile="/scratch/kocevski/771083/ft1_filtered_4FGL_J1016.0+0512_daily_bin234.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.34
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/771083/ft1_filtered_4FGL_J1016.0+0512_daily_bin234.fits evtable="EVENTS" scfile=/scratch/kocevski/771083/ft2_4FGL_J1016.0+0512_daily_bin234.fits sctable="SC_DATA" expcube=/scratch/kocevski/771083/ltcube_299980801_300240001_4FGL_J1016.0+0512_daily_bin234.fits outfile=/scratch/kocevski/771083/expmap_299980801_300240001_4FGL_J1016.0+0512_daily_bin234.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/771083/ltcube_299980801_300240001_4FGL_J1016.0+0512_daily_bin234.fits
.....................!
real 193.44
user 187.49
sys 5.06

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/771083/ft1_filtered_4FGL_J1016.0+0512_daily_bin234.fits scfile=/scratch/kocevski/771083/ft2_4FGL_J1016.0+0512_daily_bin234.fits outfile=/scratch/kocevski/771083/cmap_299980801_300240001_4FGL_J1016.0+0512_daily_bin234.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/771083/ft1_filtered_4FGL_J1016.0+0512_daily_bin234.fits scfile=/scratch/kocevski/771083/ft2_4FGL_J1016.0+0512_daily_bin234.fits outfile=/scratch/kocevski/771083/cmap_HighResolution_299980801_300240001_4FGL_J1016.0+0512_daily_bin234.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.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/771083/ft1_filtered_4FGL_J1016.0+0512_daily_bin234.fits', '/scratch/kocevski/771083/ft2_4FGL_J1016.0+0512_daily_bin234.fits', expMap='/scratch/kocevski/771083/expmap_299980801_300240001_4FGL_J1016.0+0512_daily_bin234.fits', expCube='/scratch/kocevski/771083/ltcube_299980801_300240001_4FGL_J1016.0+0512_daily_bin234.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/771083/Model_4FGL_J1016.0+0512_daily_bin234.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/771083/ft1_filtered_4FGL_J1016.0+0512_daily_bin234.fits
Spacecraft file(s): /scratch/kocevski/771083/ft2_4FGL_J1016.0+0512_daily_bin234.fits
Exposure map: /scratch/kocevski/771083/expmap_299980801_300240001_4FGL_J1016.0+0512_daily_bin234.fits
Exposure cube: /scratch/kocevski/771083/ltcube_299980801_300240001_4FGL_J1016.0+0512_daily_bin234.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/771083/Model_4FGL_J1016.0+0512_daily_bin234.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6012.86069644

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3331       1.0000         .10000E-03   10000.    
     2 'norm      '    5.0038       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12853E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.636       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10254E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .27572E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.1847       1.0000         .10000E-03   10000.    
    11 'norm      '    1.6964       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.2085       1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.561       1.0000         .10000E-03   10000.    
    15 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0891       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1452       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=   6012.734     FROM MIGRAD    STATUS=CONVERGED    647 CALLS     2096 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3325        1.3634        .88190E-04    .69161E-03
   2  norm          5.0038        1.0664        .35252E-04    .24348E-03
   3  Prefactor     .10023E-03    12.197        .74414E-01** at limit **
   4  Prefactor     19.575        47.245        .90387E-04    .11320E-04
   5  Prefactor     .10000E-03    20.810        .18142E-02** at limit **
   6  norm          .10025E-03    64.929        .49244E-02** at limit **
   7  Prefactor     .10000E-03    6.2198        .18142E-02** at limit **
   8  Prefactor     .10000E-03    118.79        .18142E-02** at limit **
   9  Prefactor     .10000E-03    20.387        .18142E-02** at limit **
  10  Prefactor     7.1913        10.570        .14965E-03   -.16257E-04
  11  norm          1.6966        1.4877        .85568E-04    .41599E-03
  12  Prefactor     .10000E-03    11.320        .36285E-03** at limit **
  13  Prefactor     5.2079        3.8787        .12321E-03    .10704E-03
  14  Prefactor     27.559        11.866        .76310E-04   -.15345E-04
  15  norm          .10000E-03    .45758        .71260E-03** at limit **
  16  Prefactor     .10000E-03    6.5229        .18142E-02** at limit **
  17  Normalizat    1.0893        .25041        .29056E-03    .94411E-04
  18  Prefactor     1.1452        .20805        .24386E-03    .51770E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.33254
  norm       = 5.00377
  Prefactor  = 0.000100231
  Prefactor  = 19.5746
  Prefactor  = 0.0001
  norm       = 0.000100248
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 7.19125
  norm       = 1.69658
  Prefactor  = 0.0001
  Prefactor  = 5.20791
  Prefactor  = 27.5588
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.08927
  Prefactor  = 1.14525
 **********
 **   18 **HESSE 
 **********

 FCN=   6012.734     FROM HESSE     STATUS=OK           236 CALLS     2332 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3325        1.3633        .35276E-05   -1.5477    
   2  norm          5.0038        1.0664        .14101E-05   -1.5261    
   3  Prefactor     .10023E-03    11.473        .77787E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.575        47.246        .36155E-05   -1.4823    
   5  Prefactor     .10000E-03    20.811        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10025E-03    66.267        .98487E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.2208        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    118.83        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.387        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.1913        10.569        .59860E-05   -1.5172    
  11  norm          1.6966        1.4877        .34227E-05   -1.5447    
  12  Prefactor     .10000E-03    11.320        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.2079        3.8785        .49283E-05   -1.5252    
  14  Prefactor     27.559        11.865        .30524E-05   -1.4658    
  15  norm          .10000E-03    .45848        .14252E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.5259        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.0893        .25065        .11623E-04   -.90097    
  18  Prefactor     1.1452        .20824        .48773E-04   -.88033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.69396e-09
Minuit parameter uncertainties:
  1  1.36335
  2  1.06642
  3  0.00325302
  4  47.3361
  5  2.01503e-05
  6  0.00811866
  7  2.62698e-05
  8  0.000660688
  9  0.000107105
  10  10.5722
  11  1.48771
  12  9.10619e-05
  13  3.87869
  14  11.8657
  15  1.44742e-06
  16  3.8601e-06
  17  0.250928
  18  0.208393
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  2.627e-05  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.145e+00  2.084e-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.089e+00  2.509e-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: 7.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/771083/likelihoodResults_299980801_300240001_4FGL_J1016.0+0512_daily_bin234.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) = 6012.73525514
delta logL = -0.00076527346846

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6012.73448985
delta logL = 1.81235009222e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2082       1.0000          .0000       10.000    
     3 'Normalizat'    1.0893       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1452       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6012.734     FROM MIGRAD    STATUS=FAILED        87 CALLS      243 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10230E-03    163.48        .18142E-01** at limit **
   2  Index         2.0321        8.2888        .20000E-01    .94016E-05
   3  Normalizat    1.0893        .26987E-01    .29056E-03   -.12653E-03
   4  Prefactor     1.1452        .23270E-01    .24386E-03   -.65267E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6012.734     FROM SIMPLEX   STATUS=UNCHANGED    132 CALLS      375 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10230E-03    163.48        .50508E-03** at limit **
   2  Index         2.0321        8.2888        .85150E-04    .94016E-05
   3  Normalizat    1.0893        .26987E-01    .11798E-05   -.12653E-03
   4  Prefactor     1.1452        .23270E-01    .91020E-06   -.65267E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6012.734     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      414 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.380        .19615E-02** at limit **
   2  Index         1.8732        5.9100        .40000E-01    .33538E-07
   3  Normalizat    1.0893        .24021        .11623E-04    .14555E-03
   4  Prefactor     1.1452        .20721        .97546E-05    .27878E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.87318
  Normalizat = 1.08928
  Prefactor  = 1.14524
 **********
 **   18 **HESSE 
 **********

 FCN=   6012.734     FROM HESSE     STATUS=OK            23 CALLS      437 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.9880        .39231E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8732        8.9941        .16000E-02   -.67560    
   3  Normalizat    1.0893        .24072        .23245E-05   -.90097    
   4  Prefactor     1.1452        .20762        .19509E-05   -.88033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19982e-10
Minuit parameter uncertainties:
  1  5.40688e-05
  2  259.978
  3  0.240958
  4  0.207767
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/771083': 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) = 6012.73448899
delta logL = 8.82312633621e-07

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  5.407e-05  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  1.873e+00  2.600e+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.145e+00  2.078e-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.089e+00  2.410e-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/771083/cmap_HighResolution_299980801_300240001_4FGL_J1016.0+0512_daily_bin234.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.48e-03', job_status='DONE', photon_flux_upper_limit='7.19e-08', time_completed='2021-09-01 15:57:27.992986', job_id='771083', GAL2='1.15', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630537047.99', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='8.82e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='234' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 15:57:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 771083: <4FGL_J1016.0+0512_daily_bin234> in cluster <slac> Done

Job <4FGL_J1016.0+0512_daily_bin234> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 15:45:28 2021
Job was executed on host(s) <bullet0050>, 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:57:28 2021
Results reported at Wed Sep  1 15:57:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1016.0+0512_daily_bin234 154.009 5.2089 299980801 300240001 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 :                                   566.08 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             243.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            720 sec.

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

