aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 208 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 = 17352
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1016.0+0512_weekly_bin714
RA = 154.009, Dec = 5.2089
tmin = 670809601, tmax = 671414401
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='424171', job_status='RUN', time_executed='2022-04-12 01:14:01.315314', time_epoch_executed='1649751241.32' WHERE source_name='4FGL J1016.0+0512' and cadence='weekly' and bin_id='714'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/424171

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/424171/ft1_4FGL_J1016.0+0512_weekly_bin714.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/424171/ft2_4FGL_J1016.0+0512_weekly_bin714.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/424171/ft1_4FGL_J1016.0+0512_weekly_bin714.fits outfile=/scratch/kocevski/424171/ft1_filteredMKT_4FGL_J1016.0+0512_weekly_bin714.fits ra=154.009 dec=5.2089 rad=12.0 tmin=670809601.0 tmax=671414401.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 11.62
user 11.28
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/424171/ft2_4FGL_J1016.0+0512_weekly_bin714.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/424171/ft1_filteredMKT_4FGL_J1016.0+0512_weekly_bin714.fits evtable="EVENTS" outfile="/scratch/kocevski/424171/ft1_filtered_4FGL_J1016.0+0512_weekly_bin714.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.54
user 0.37
sys 0.16

Number of photons that the gtmktime cut: 1098

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/424171/ft1_filtered_4FGL_J1016.0+0512_weekly_bin714.fits" evtable="EVENTS" scfile=/scratch/kocevski/424171/ft2_4FGL_J1016.0+0512_weekly_bin714.fits sctable="SC_DATA" outfile=/scratch/kocevski/424171/ltcube_670809601_671414401_4FGL_J1016.0+0512_weekly_bin714.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/424171/ft2_4FGL_J1016.0+0512_weekly_bin714.fits
.....................!
real 25.90
user 25.51
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/424171/ft1_filtered_4FGL_J1016.0+0512_weekly_bin714.fits evtable="EVENTS" scfile=/scratch/kocevski/424171/ft2_4FGL_J1016.0+0512_weekly_bin714.fits sctable="SC_DATA" expcube=/scratch/kocevski/424171/ltcube_670809601_671414401_4FGL_J1016.0+0512_weekly_bin714.fits outfile=/scratch/kocevski/424171/expmap_670809601_671414401_4FGL_J1016.0+0512_weekly_bin714.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/424171/ltcube_670809601_671414401_4FGL_J1016.0+0512_weekly_bin714.fits
.....................!
real 190.82
user 184.97
sys 5.47

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/424171/ft1_filtered_4FGL_J1016.0+0512_weekly_bin714.fits scfile=/scratch/kocevski/424171/ft2_4FGL_J1016.0+0512_weekly_bin714.fits outfile=/scratch/kocevski/424171/cmap_670809601_671414401_4FGL_J1016.0+0512_weekly_bin714.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/424171/ft1_filtered_4FGL_J1016.0+0512_weekly_bin714.fits scfile=/scratch/kocevski/424171/ft2_4FGL_J1016.0+0512_weekly_bin714.fits outfile=/scratch/kocevski/424171/cmap_HighResolution_670809601_671414401_4FGL_J1016.0+0512_weekly_bin714.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.57
user 0.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .63123       1.0000         .10000E-03   10000.    
     2 'norm      '    .30419       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.0670       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13468E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10550E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.208       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12431E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.462       1.0000         .10000E-03   10000.    
    11 'norm      '    3.2339       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.9088       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.4627       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0546       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0461       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1001       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=   12071.41     FROM MIGRAD    STATUS=CONVERGED    360 CALLS     1513 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .63173        .88172       -.41085E-06   -.26118E-02
   2  norm          .30405        .41733       -.27913E-06   -.38205E-02
   3  Prefactor     5.0697        4.8947        .37844E-06    .21500E-04
   4  Prefactor     .10000E-03    6.4597       -.99992E-08** at limit **
   5  Prefactor     .10000E-03    103.51        .62026E-05** at limit **
   6  norm          .10000E-03    3.0145        .49150E-07** at limit **
   7  Prefactor     .10000E-03    2.9566        .43730E-07** at limit **
   8  Prefactor     33.189        29.317       -.11786E-04    .36971E-03
   9  Prefactor     .10000E-03    25.034        .15105E-06** at limit **
  10  Prefactor     11.470        10.317        .16554E-05   -.77508E-04
  11  norm          3.2339        1.1301       -.37807E-07   -.22634E-03
  12  Prefactor     .10000E-03    4.8816       -.85157E-07** at limit **
  13  Prefactor     3.9100        2.0039       -.37672E-07   -.30607E-03
  14  Prefactor     .10000E-03    2.1595       -.28380E-08** at limit **
  15  norm          1.4627        .45153        .86285E-08   -.17801E-03
  16  Prefactor     3.0547        4.6990       -.58703E-06   -.64506E-03
  17  Normalizat    1.0457        .13827        .16731E-05   -.78629E-05
  18  Prefactor     1.1003        .11551       -.19143E-06    .21543E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.631731
  norm       = 0.304046
  Prefactor  = 5.06969
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.1888
  Prefactor  = 0.0001
  Prefactor  = 11.4703
  norm       = 3.23393
  Prefactor  = 0.0001
  Prefactor  = 3.91003
  Prefactor  = 0.0001
  norm       = 1.46268
  Prefactor  = 3.05467
  Normalizat = 1.04566
  Prefactor  = 1.10034
 **********
 **   18 **HESSE 
 **********

 FCN=   12071.41     FROM HESSE     STATUS=OK           244 CALLS     1757 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .63173        .88643        .11613E-03   -1.5549    
   2  norm          .30405        .41323        .79997E-04   -1.5598    
   3  Prefactor     5.0697        4.8928        .17863E-03   -1.5258    
   4  Prefactor     .10000E-03    6.4622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    106.90        .41107E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.0254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.9701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     33.189        28.561        .69536E-04   -1.4555    
   9  Prefactor     .10000E-03    25.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.470        10.260        .11833E-03   -1.5030    
  11  norm          3.2339        1.1281        .66382E-04   -1.5348    
  12  Prefactor     .10000E-03    5.0361        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.9100        2.0027        .10675E-03   -1.5312    
  14  Prefactor     .10000E-03    2.1957        .15758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.4627        .45495        .37860E-04   -1.5466    
  16  Prefactor     3.0547        4.7733        .23212E-03   -1.5358    
  17  Normalizat    1.0457        .15993        .26792E-03   -.91516    
  18  Prefactor     1.1003        .13455        .22735E-03   -.89456    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53548e-09
Minuit parameter uncertainties:
  1  0.88645
  2  0.413238
  3  4.89315
  4  2.33803e-06
  5  0.00111859
  6  8.39881e-06
  7  7.76551e-06
  8  28.5727
  9  2.9358e-05
  10  10.262
  11  1.12812
  12  1.69544e-05
  13  2.00276
  14  2.73595e-06
  15  0.454955
  16  4.77386
  17  0.160005
  18  0.134589
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  7.766e-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.100e+00  1.346e-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.046e+00  1.600e-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: 3.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/424171/likelihoodResults_670809601_671414401_4FGL_J1016.0+0512_weekly_bin714.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) = 12071.4159448
delta logL = -0.00160390153906

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12071.4143407
delta logL = 1.31078195409e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2082       1.0000          .0000       10.000    
     3 'Normalizat'    1.0457       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1003       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=   12071.41     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      240 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10079E-03    30.912        .18142E-02** at limit **
   2  Index         2.1611        5.9510        .50000        .33703E-04
   3  Normalizat    1.0457        .10875E-01    .26792E-03    .31401E-05
   4  Prefactor     1.1003        .94916E-02    .22735E-03    .17802E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100794
  Index      = 2.16113
  Normalizat = 1.04566
  Prefactor  = 1.10034
 **********
 **   18 **HESSE 
 **********

 FCN=   12071.41     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10079E-03    139.92        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1611        6.3490        .50000       -.60380    
   3  Normalizat    1.0457        .24160E-01    .10717E-04   -.91516    
   4  Prefactor     1.1003        .21083E-01    .90939E-05   -.89456    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.87128e-08
Minuit parameter uncertainties:
  1  0.0211262
  2  437.269
  3  0.02416
  4  0.0210827
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/424171': 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) = 12071.4143404
delta logL = 4.48997525382e-07

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  1.008e-04  2.113e-02  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  2.161e+00  4.373e+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.100e+00  2.108e-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.046e+00  2.416e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/424171/cmap_HighResolution_670809601_671414401_4FGL_J1016.0+0512_weekly_bin714.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.97e-03', job_status='DONE', photon_flux_upper_limit='3.89e-08', time_completed='2022-04-12 01:26:52.709315', job_id='424171', GAL2='1.10', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1649752012.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='4.49e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='714' AND source_name='4FGL J1016.0+0512' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 12 01:26:52 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 424171: <4FGL_J1016.0+0512_weekly_bin714> in cluster <slac> Done

Job <4FGL_J1016.0+0512_weekly_bin714> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Apr 12 01:10:22 2022
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 12 01:10:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 12 01:10:22 2022
Terminated at Tue Apr 12 01:26:53 2022
Results reported at Tue Apr 12 01:26:53 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1016.0+0512_weekly_bin714 154.009 5.2089 670809601 671414401 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 :                                   772.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             299.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            991 sec.

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

