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


Performing analysis on: 4FGL_J1016.0+0512_daily_bin848
RA = 154.009, Dec = 5.2089
tmin = 459129601, tmax = 459388801
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='774432', job_status='RUN', time_executed='2021-09-01 15:59:16.725040', time_epoch_executed='1630537156.73' WHERE source_name='4FGL J1016.0+0512' and cadence='daily' and bin_id='848'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/774432

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/774432/ft1_4FGL_J1016.0+0512_daily_bin848.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/774432/ft2_4FGL_J1016.0+0512_daily_bin848.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/774432/ft1_4FGL_J1016.0+0512_daily_bin848.fits outfile=/scratch/kocevski/774432/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin848.fits ra=154.009 dec=5.2089 rad=12.0 tmin=459129601.0 tmax=459388801.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.90
user 3.65
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/774432/ft1_filtered_4FGL_J1016.0+0512_daily_bin848.fits evtable="EVENTS" scfile=/scratch/kocevski/774432/ft2_4FGL_J1016.0+0512_daily_bin848.fits sctable="SC_DATA" expcube=/scratch/kocevski/774432/ltcube_459129601_459388801_4FGL_J1016.0+0512_daily_bin848.fits outfile=/scratch/kocevski/774432/expmap_459129601_459388801_4FGL_J1016.0+0512_daily_bin848.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/774432/ltcube_459129601_459388801_4FGL_J1016.0+0512_daily_bin848.fits
.....................!
real 192.23
user 185.82
sys 5.22

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/774432/ft1_filtered_4FGL_J1016.0+0512_daily_bin848.fits scfile=/scratch/kocevski/774432/ft2_4FGL_J1016.0+0512_daily_bin848.fits outfile=/scratch/kocevski/774432/cmap_459129601_459388801_4FGL_J1016.0+0512_daily_bin848.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.58
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/774432/ft1_filtered_4FGL_J1016.0+0512_daily_bin848.fits scfile=/scratch/kocevski/774432/ft2_4FGL_J1016.0+0512_daily_bin848.fits outfile=/scratch/kocevski/774432/cmap_HighResolution_459129601_459388801_4FGL_J1016.0+0512_daily_bin848.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.59
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3652       1.0000         .10000E-03   10000.    
     2 'norm      '    .60477       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.6454       1.0000         .10000E-03   10000.    
     6 'norm      '    .10101E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10773E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12846E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    159.69       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.7744       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.468       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .53294       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .56711E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.6716       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.8424       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .74895       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1740       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=   6731.157     FROM MIGRAD    STATUS=CONVERGED    380 CALLS     1865 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3652        1.1940       -.54939E-07   -.22694E-03
   2  norm          .60442        .57007       -.13027E-06   -.15811E-02
   3  Prefactor     .10000E-03    5.4798        .12536E-07** at limit **
   4  Prefactor     .10000E-03    39.951       -.14048E-05** at limit **
   5  Prefactor     9.6590        21.035       -.58630E-06   -.35251E-05
   6  norm          .10000E-03    5.6156        .22621E-07** at limit **
   7  Prefactor     .10000E-03    8.0681        .48132E-05** at limit **
   8  Prefactor     .10001E-03    97.279       -.23090E-05** at limit **
   9  Prefactor     159.67        64.117       -.86501E-05   -.45339E-03
  10  Prefactor     .10000E-03    9.1096        .27493E-06** at limit **
  11  norm          2.7743        1.3025        .35996E-07   -.65156E-03
  12  Prefactor     10.467        6.0741       -.72537E-06    .25285E-03
  13  Prefactor     .53910        2.0787       -.38233E-06   -.34229E-03
  14  Prefactor     .10000E-03    7.1438        .96478E-06** at limit **
  15  norm          1.6719        .72171        .29074E-06   -.18277E-02
  16  Prefactor     7.8450        10.550       -.45867E-05    .68657E-03
  17  Normalizat    .74907        .18413        .17736E-05   -.50933E-03
  18  Prefactor     1.1739        .14917        .14581E-06   -.47372E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.36518
  norm       = 0.604415
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.65902
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 159.673
  Prefactor  = 0.0001
  norm       = 2.77427
  Prefactor  = 10.4675
  Prefactor  = 0.539103
  Prefactor  = 0.000100004
  norm       = 1.6719
  Prefactor  = 7.84502
  Normalizat = 0.749066
  Prefactor  = 1.1739
 **********
 **   18 **HESSE 
 **********

 FCN=   6731.157     FROM HESSE     STATUS=OK           260 CALLS     2125 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3652        1.1928        .61198E-04   -1.5400    
   2  norm          .60442        .54881        .55990E-03   -1.5552    
   3  Prefactor     .10000E-03    5.4945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    40.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.6590        21.029        .12903E-03   -1.5086    
   6  norm          .10000E-03    5.6199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    58.162        .40036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    97.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     159.67        63.615        .15955E-03   -1.3174    
  10  Prefactor     .10000E-03    9.1263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.7743        1.3006        .61502E-04   -1.5375    
  12  Prefactor     10.467        6.0560        .12384E-03   -1.5061    
  13  Prefactor     .53910        6.0057        .20548E-02   -1.5561    
  14  Prefactor     .10000E-03    8.3516        .56788E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.6719        .72827        .38898E-04   -1.5449    
  16  Prefactor     7.8450        10.456        .14318E-03   -1.5148    
  17  Normalizat    .74907        .20564        .30187E-03   -1.0199    
  18  Prefactor     1.1739        .16916        .21292E-03   -.87138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05145e-09
Minuit parameter uncertainties:
  1  1.19282
  2  0.548819
  3  1.08668e-05
  4  0.000207321
  5  21.0455
  6  1.57963e-05
  7  0.000253679
  8  0.00145872
  9  63.6423
  10  7.79274e-05
  11  1.30063
  12  6.05634
  13  3.59883
  14  0.000369731
  15  0.728276
  16  10.4588
  17  0.205857
  18  0.169237
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  2.537e-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:  1.174e+00  1.692e-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:  7.491e-01  2.059e-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: 8.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/774432/likelihoodResults_459129601_459388801_4FGL_J1016.0+0512_daily_bin848.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) = 6731.15748512
delta logL = -8.10740912129e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6731.1574851
delta logL = -8.10571327747e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96354E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2235       1.0000          .0000       10.000    
     3 'Normalizat'    .74906       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1739       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=   6730.739     FROM MIGRAD    STATUS=FAILED       216 CALLS      377 TOTAL
                     EDM=   .91E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .26245E-01    .19202E-03** at limit **
   2  Index         7.2505        7.9728        .63131E-02    .73009E-03
   3  Normalizat    .69391        .86371E-01    .31234E-03    .12347E-02
   4  Prefactor     1.2050        .74032E-01    .21049E-03    .15239E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6730.739     FROM SIMPLEX   STATUS=UNCHANGED    168 CALLS      545 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .26245E-01    .84896E-05** at limit **
   2  Index         7.2505        7.9728        .56651E-04    .73009E-03
   3  Normalizat    .69391        .86371E-01    .17869E-05    .12347E-02
   4  Prefactor     1.2050        .74032E-01    .11396E-05    .15239E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6730.739     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      587 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .16480E-01    .24404E-03** at limit **
   2  Index         7.2505        7.8854        .12626E-02   -.54924E-05
   3  Normalizat    .69390        .76969E-01    .62468E-04    .90159E-04
   4  Prefactor     1.2050        .66419E-01    .42098E-04   -.14378E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.25051
  Normalizat = 0.693904
  Prefactor  = 1.205
 **********
 **   18 **HESSE 
 **********

 FCN=   6730.739     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      620 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .20210E-01    .22211E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.2505        7.9461        .50505E-04    .46688    
   3  Normalizat    .69390        .82625E-01    .12494E-04   -1.0413    
   4  Prefactor     1.2050        .71277E-01    .84196E-05   -.86178    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.399e-11
Minuit parameter uncertainties:
  1  6.98064e-08
  2  5.72742
  3  0.0826395
  4  0.0712829
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/774432': 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) = 6730.73891452
delta logL = 0.418489528028

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  6.981e-08  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  7.251e+00  5.727e+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:  1.205e+00  7.128e-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:  6.939e-01  8.264e-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/774432/cmap_HighResolution_459129601_459388801_4FGL_J1016.0+0512_daily_bin848.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.18e-03', job_status='DONE', photon_flux_upper_limit='8.09e-08', time_completed='2021-09-01 16:09:15.710704', job_id='774432', GAL2='1.20', fit_tolerance='1e-08', EG2='0.69', EG='0.75', time_epoch_completed='1630537755.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='4.18e-01', ts2='0.91', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='848' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:09:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 774432: <4FGL_J1016.0+0512_daily_bin848> in cluster <slac> Done

Job <4FGL_J1016.0+0512_daily_bin848> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 15:55:58 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 15:57:00 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:57:00 2021
Terminated at Wed Sep  1 16:09:16 2021
Results reported at Wed Sep  1 16:09:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1016.0+0512_daily_bin848 154.009 5.2089 459129601 459388801 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 :                                   591.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             276.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            798 sec.

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

