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 72 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 = 7444
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0017.5-0514_daily_bin1696
RA = 4.3949, Dec = -5.2347
tmin = 678931201, tmax = 679190401
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='784961', job_status='RUN', time_executed='2022-07-11 00:06:13.880682', time_epoch_executed='1657523173.88' WHERE source_name='4FGL J0017.5-0514' and cadence='daily' and bin_id='1696'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/784961

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/784961/ft1_4FGL_J0017.5-0514_daily_bin1696.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/784961/ft2_4FGL_J0017.5-0514_daily_bin1696.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/784961/ft1_4FGL_J0017.5-0514_daily_bin1696.fits outfile=/scratch/kocevski/784961/ft1_filteredMKT_4FGL_J0017.5-0514_daily_bin1696.fits ra=4.3949 dec=-5.2347 rad=12.0 tmin=678931201.0 tmax=679190401.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 5.01
user 3.30
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/784961/ft2_4FGL_J0017.5-0514_daily_bin1696.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/784961/ft2_4FGL_J0017.5-0514_daily_bin1696.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/784961/ft1_filteredMKT_4FGL_J0017.5-0514_daily_bin1696.fits evtable="EVENTS" outfile="/scratch/kocevski/784961/ft1_filtered_4FGL_J0017.5-0514_daily_bin1696.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.56
user 0.31
sys 0.18

Number of photons that the gtmktime cut: 532

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/784961/ft1_filtered_4FGL_J0017.5-0514_daily_bin1696.fits" evtable="EVENTS" scfile=/scratch/kocevski/784961/ft2_4FGL_J0017.5-0514_daily_bin1696.fits sctable="SC_DATA" outfile=/scratch/kocevski/784961/ltcube_678931201_679190401_4FGL_J0017.5-0514_daily_bin1696.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/784961/ft2_4FGL_J0017.5-0514_daily_bin1696.fits
.....................!
real 16.33
user 15.70
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/784961/ft1_filtered_4FGL_J0017.5-0514_daily_bin1696.fits evtable="EVENTS" scfile=/scratch/kocevski/784961/ft2_4FGL_J0017.5-0514_daily_bin1696.fits sctable="SC_DATA" expcube=/scratch/kocevski/784961/ltcube_678931201_679190401_4FGL_J0017.5-0514_daily_bin1696.fits outfile=/scratch/kocevski/784961/expmap_678931201_679190401_4FGL_J0017.5-0514_daily_bin1696.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/784961/ltcube_678931201_679190401_4FGL_J0017.5-0514_daily_bin1696.fits
.....................!
real 195.71
user 187.04
sys 5.17

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 169 point sources and 0 extended sources

Setting source of interest to:
4FGL J0017.5-0514 @ 4.3949 -5.2347

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/784961/ft1_filtered_4FGL_J0017.5-0514_daily_bin1696.fits scfile=/scratch/kocevski/784961/ft2_4FGL_J0017.5-0514_daily_bin1696.fits outfile=/scratch/kocevski/784961/cmap_678931201_679190401_4FGL_J0017.5-0514_daily_bin1696.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=4.3949 yref=-5.2347 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 1.26
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/784961/ft1_filtered_4FGL_J0017.5-0514_daily_bin1696.fits scfile=/scratch/kocevski/784961/ft2_4FGL_J0017.5-0514_daily_bin1696.fits outfile=/scratch/kocevski/784961/cmap_HighResolution_678931201_679190401_4FGL_J0017.5-0514_daily_bin1696.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=4.3949 yref=-5.2347 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.66
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/784961/ft1_filtered_4FGL_J0017.5-0514_daily_bin1696.fits evtable="EVENTS" scfile=/scratch/kocevski/784961/ft2_4FGL_J0017.5-0514_daily_bin1696.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/784961/Model_4FGL_J0017.5-0514_daily_bin1696.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/784961/ft1_filtered_4FGL_J0017.5-0514_daily_bin1696.fits.....................!
real 63.50
user 55.32
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/784961/ft1_filtered_4FGL_J0017.5-0514_daily_bin1696.fits', '/scratch/kocevski/784961/ft2_4FGL_J0017.5-0514_daily_bin1696.fits', expMap='/scratch/kocevski/784961/expmap_678931201_679190401_4FGL_J0017.5-0514_daily_bin1696.fits', expCube='/scratch/kocevski/784961/ltcube_678931201_679190401_4FGL_J0017.5-0514_daily_bin1696.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/784961/Model_4FGL_J0017.5-0514_daily_bin1696.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0017.5-0514'

4FGL J0017.5-0514
   Spectrum: LogParabola
72          norm:  2.149e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
73         alpha:  2.594e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
74          beta:  1.051e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
75            Eb:  8.308e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/784961/ft1_filtered_4FGL_J0017.5-0514_daily_bin1696.fits
Spacecraft file(s): /scratch/kocevski/784961/ft2_4FGL_J0017.5-0514_daily_bin1696.fits
Exposure map: /scratch/kocevski/784961/expmap_678931201_679190401_4FGL_J0017.5-0514_daily_bin1696.fits
Exposure cube: /scratch/kocevski/784961/ltcube_678931201_679190401_4FGL_J0017.5-0514_daily_bin1696.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/784961/Model_4FGL_J0017.5-0514_daily_bin1696.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) = 5971.89834819

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.771       1.0000         .10000E-03   10000.    
     3 'Prefactor '    34.234       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4755       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.490       1.0000         .10000E-03   10000.    
     7 'norm      '    .10470E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.7823       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10608E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.2486       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.6006       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5801       1.0000         .10000E-03   10000.    
    14 'norm      '    .11651E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.8980       1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.135       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.125       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.9879       1.0000         .10000E-03   10000.    
    21 'norm      '    10.868       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.0956       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .99833       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .78211       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5971.897     FROM MIGRAD    STATUS=CONVERGED    667 CALLS     3299 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.6146       -.19312E-06** at limit **
   2  Prefactor     27.769        46.475       -.16993E-05    .87207E-05
   3  Prefactor     34.235        14.885        .11615E-07    .74216E-04
   4  Prefactor     2.4823        5.6130        .73496E-07    .27263E-03
   5  norm          .10000E-03    .55432        .77491E-08** at limit **
   6  Prefactor     23.501        17.005        .49872E-06    .57797E-03
   7  norm          .10000E-03    3.5597       -.20641E-05** at limit **
   8  norm          6.7823        4.1736       -.87040E-06   -.99963E-03
   9  Prefactor     .10000E-03    2.5921       -.34699E-07** at limit **
  10  Prefactor     .10000E-03    122.08       -.18044E-05** at limit **
  11  norm          8.2496        8.7021       -.14736E-06    .69548E-04
  12  Prefactor     5.6006        2.8180       -.73258E-08    .58563E-04
  13  Prefactor     1.5801        2.6745        .14203E-06   -.35496E-04
  14  norm          .10000E-03    1.7165       -.40616E-07** at limit **
  15  norm          6.8976        5.0331       -.17788E-06   -.10671E-03
  16  Prefactor     23.136        20.014       -.12083E-06    .59466E-05
  17  Prefactor     17.128        19.681       -.21560E-06   -.18743E-04
  18  Prefactor     .10000E-03    11.356        .21716E-06** at limit **
  19  Prefactor     .10000E-03    56.789        .77922E-06** at limit **
  20  Prefactor     2.9876        8.3007        .14904E-05    .10123E-03
  21  norm          10.870        19.893       -.49593E-06   -.42713E-04
  22  Prefactor     .10000E-03    28.577       -.27033E-06** at limit **
  23  Prefactor     .10000E-03    2.4176        .76075E-06** at limit **
  24  Prefactor     .10000E-03    4.6605       -.18544E-06** at limit **
  25  Prefactor     1.0959        3.9007        .76014E-06   -.72440E-04
  26  Normalizat    .99834        .17982        .76750E-06    .32096E-03
  27  Prefactor     .78209        .15365       -.40093E-08    .31029E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 27.769
  Prefactor  = 34.2348
  Prefactor  = 2.48225
  norm       = 0.0001
  Prefactor  = 23.5006
  norm       = 0.000100004
  norm       = 6.78233
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 8.24956
  Prefactor  = 5.60061
  Prefactor  = 1.5801
  norm       = 0.0001
  norm       = 6.89762
  Prefactor  = 23.1365
  Prefactor  = 17.1279
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.98758
  norm       = 10.8704
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 1.09591
  Normalizat = 0.998336
  Prefactor  = 0.782092
 **********
 **   18 **HESSE 
 **********

 FCN=   5971.897     FROM HESSE     STATUS=OK           488 CALLS     3787 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.7050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     27.769        46.430        .76022E-04   -1.4654    
   3  Prefactor     34.235        14.882        .68489E-04   -1.4537    
   4  Prefactor     2.4823        5.9717        .25833E-03   -1.5393    
   5  norm          .10000E-03    .55719        .56150E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     23.501        16.847        .82647E-04   -1.4738    
   7  norm          .10000E-03    5.2275        .24251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.7823        4.3677        .12580E-03   -1.5187    
   9  Prefactor     .10000E-03    2.5954        .12149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    125.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.2496        8.7032        .13959E-03   -1.5133    
  12  Prefactor     5.6006        2.8180        .89024E-04   -1.5235    
  13  Prefactor     1.5801        2.6470        .15500E-03   -1.5457    
  14  norm          .10000E-03    3.9132        .19588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.8976        5.0187        .14043E-03   -1.5183    
  16  Prefactor     23.136        20.019        .83278E-04   -1.4746    
  17  Prefactor     17.128        19.634        .96783E-04   -1.4880    
  18  Prefactor     .10000E-03    11.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    56.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.9876        8.2821        .23486E-03   -1.5362    
  21  norm          10.870        19.545        .12153E-03   -1.5048    
  22  Prefactor     .10000E-03    28.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.8794        .21718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.6715        .16300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.0959        3.8877        .28031E-03   -1.5499    
  26  Normalizat    .99834        .20732        .24838E-03   -.93086    
  27  Prefactor     .78209        .17727        .24142E-03   -1.0039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97863e-09
Minuit parameter uncertainties:
  1  9.62551e-06
  2  46.4906
  3  14.8838
  4  5.97309
  5  6.05255e-07
  6  16.8502
  7  0.000274683
  8  4.3679
  9  2.794e-07
  10  0.000764218
  11  8.70454
  12  2.81804
  13  2.64715
  14  1.1932e-06
  15  5.01902
  16  20.0251
  17  19.641
  18  2.21279e-05
  19  0.000179626
  20  8.28526
  21  19.5565
  22  6.20932e-05
  23  0.000225492
  24  1.47929e-05
  25  3.88862
  26  0.207484
  27  0.177395
Done.

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

Extracting fit parameters...

4FGL J0017.5-0514
   Spectrum: LogParabola
72          norm:  1.000e-04  2.747e-04  1.000e-04  1.000e+04 ( 1.000e-12)
73         alpha:  2.594e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
74          beta:  1.051e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
75            Eb:  8.308e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  7.821e-01  1.774e-01  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
549   Normalization:  9.983e-01  2.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 4.395 -5.235
Photon Flux Upper Limit: 9.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.66e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/784961/likelihoodResults_678931201_679190401_4FGL_J0017.5-0514_daily_bin1696.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5971.89811661
delta logL = -0.000913238194698

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5971.89720358
delta logL = -2.08357960219e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6001       1.0000          .0000       5.0000    
     3 'Normalizat'    .99831       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78217       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5530E+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=   5971.897     FROM MIGRAD    STATUS=FAILED        91 CALLS      248 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10071E-03    7.6083        .24213E-02** at limit **
   2  alpha         2.7696        3.8193        .16477       -.23663E-05
   3  Normalizat    .99834        .20069        .24838E-03    .14633E-03
   4  Prefactor     .78209        .17558        .24142E-03    .15686E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5971.897     FROM SIMPLEX   STATUS=UNCHANGED    115 CALLS      363 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10071E-03    7.6083        .37577E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7696        3.8193        .93639E-03    .10803    
   3  Normalizat    .99834        .20069        .93612E-04   -.93086    
   4  Prefactor     .78209        .17558        .86390E-04   -1.0039    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5971.897     FROM MIGRAD    STATUS=CONVERGED      7 CALLS      370 TOTAL
                     EDM=   .99E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.2977       -.12978E-05** at limit **
   2  alpha         2.9182        2.5968        .75971E-02   -.33710E-07
   3  Normalizat    .99833        .20078        .26041E-06   -.14124E-03
   4  Prefactor     .78209        .17558       -.82806E-08   -.12641E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.91823
  Normalizat = 0.998334
  Prefactor  = 0.782092
 **********
 **   18 **HESSE 
 **********

 FCN=   5971.897     FROM HESSE     STATUS=OK            27 CALLS      397 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.4829        .48427E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.9182        2.6497        .65909E-01    .16808    
   3  Normalizat    .99833        .20087        .99352E-05   -.93086    
   4  Prefactor     .78209        .17575        .96566E-05   -1.0039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57975e-10
Minuit parameter uncertainties:
  1  0.00011672
  2  426.413
  3  0.201022
  4  0.175877
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/784961': 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) = 5971.89720302
delta logL = 3.52693859895e-07

Extracting fit parameters...

4FGL J0017.5-0514
   Spectrum: LogParabola
72          norm:  1.000e-04  1.167e-04  1.000e-04  1.000e+04 ( 1.000e-12)
73         alpha:  2.918e+00  4.264e+02  0.000e+00  5.000e+00 ( 1.000e+00)
74          beta:  1.051e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
75            Eb:  8.308e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  7.821e-01  1.759e-01  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
549   Normalization:  9.983e-01  2.010e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 4.395 -5.235

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/784961/cmap_HighResolution_678931201_679190401_4FGL_J0017.5-0514_daily_bin1696.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.66e-05', job_status='DONE', photon_flux_upper_limit='9.56e-08', time_completed='2022-07-11 00:18:56.252153', job_id='784961', GAL2='0.78', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1657523936.25', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='3.53e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1696' AND source_name='4FGL J0017.5-0514' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 11 00:18:56 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 784961: <4FGL_J0017.5-0514_daily_bin1696> in cluster <slac> Done

Job <4FGL_J0017.5-0514_daily_bin1696> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Jul 11 00:04:36 2022
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 11 00:04:38 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul 11 00:04:38 2022
Terminated at Mon Jul 11 00:18:57 2022
Results reported at Mon Jul 11 00:18:57 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0017.5-0514_daily_bin1696 4.3949 -5.2347 678931201 679190401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0017.5-0514 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   724.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            861 sec.

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

