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


Performing analysis on: 4FGL_J0017.5-0514_daily_bin1693
RA = 4.3949, Dec = -5.2347
tmin = 678153601, tmax = 678412801
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='538848', job_status='RUN', time_executed='2022-07-02 00:09:33.193090', time_epoch_executed='1656745773.19' WHERE source_name='4FGL J0017.5-0514' and cadence='daily' and bin_id='1693'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/538848

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/538848/ft1_4FGL_J0017.5-0514_daily_bin1693.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/538848/ft2_4FGL_J0017.5-0514_daily_bin1693.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/538848/ft1_4FGL_J0017.5-0514_daily_bin1693.fits outfile=/scratch/kocevski/538848/ft1_filteredMKT_4FGL_J0017.5-0514_daily_bin1693.fits ra=4.3949 dec=-5.2347 rad=12.0 tmin=678153601.0 tmax=678412801.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 4.20
user 3.90
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/538848/ft2_4FGL_J0017.5-0514_daily_bin1693.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/538848/ft1_filteredMKT_4FGL_J0017.5-0514_daily_bin1693.fits evtable="EVENTS" outfile="/scratch/kocevski/538848/ft1_filtered_4FGL_J0017.5-0514_daily_bin1693.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.51
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 484

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/538848/ft1_filtered_4FGL_J0017.5-0514_daily_bin1693.fits" evtable="EVENTS" scfile=/scratch/kocevski/538848/ft2_4FGL_J0017.5-0514_daily_bin1693.fits sctable="SC_DATA" outfile=/scratch/kocevski/538848/ltcube_678153601_678412801_4FGL_J0017.5-0514_daily_bin1693.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/538848/ft2_4FGL_J0017.5-0514_daily_bin1693.fits
.....................!
real 14.88
user 14.46
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/538848/ft1_filtered_4FGL_J0017.5-0514_daily_bin1693.fits evtable="EVENTS" scfile=/scratch/kocevski/538848/ft2_4FGL_J0017.5-0514_daily_bin1693.fits sctable="SC_DATA" expcube=/scratch/kocevski/538848/ltcube_678153601_678412801_4FGL_J0017.5-0514_daily_bin1693.fits outfile=/scratch/kocevski/538848/expmap_678153601_678412801_4FGL_J0017.5-0514_daily_bin1693.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/538848/ltcube_678153601_678412801_4FGL_J0017.5-0514_daily_bin1693.fits
.....................!
real 192.56
user 186.40
sys 5.57

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/538848/ft1_filtered_4FGL_J0017.5-0514_daily_bin1693.fits scfile=/scratch/kocevski/538848/ft2_4FGL_J0017.5-0514_daily_bin1693.fits outfile=/scratch/kocevski/538848/cmap_678153601_678412801_4FGL_J0017.5-0514_daily_bin1693.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 0.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/538848/ft1_filtered_4FGL_J0017.5-0514_daily_bin1693.fits scfile=/scratch/kocevski/538848/ft2_4FGL_J0017.5-0514_daily_bin1693.fits outfile=/scratch/kocevski/538848/cmap_HighResolution_678153601_678412801_4FGL_J0017.5-0514_daily_bin1693.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/538848/ft1_filtered_4FGL_J0017.5-0514_daily_bin1693.fits evtable="EVENTS" scfile=/scratch/kocevski/538848/ft2_4FGL_J0017.5-0514_daily_bin1693.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/538848/Model_4FGL_J0017.5-0514_daily_bin1693.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/538848/ft1_filtered_4FGL_J0017.5-0514_daily_bin1693.fits.....................!
real 55.55
user 52.98
sys 1.37

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/538848/ft1_filtered_4FGL_J0017.5-0514_daily_bin1693.fits', '/scratch/kocevski/538848/ft2_4FGL_J0017.5-0514_daily_bin1693.fits', expMap='/scratch/kocevski/538848/expmap_678153601_678412801_4FGL_J0017.5-0514_daily_bin1693.fits', expCube='/scratch/kocevski/538848/ltcube_678153601_678412801_4FGL_J0017.5-0514_daily_bin1693.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/538848/Model_4FGL_J0017.5-0514_daily_bin1693.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/538848/ft1_filtered_4FGL_J0017.5-0514_daily_bin1693.fits
Spacecraft file(s): /scratch/kocevski/538848/ft2_4FGL_J0017.5-0514_daily_bin1693.fits
Exposure map: /scratch/kocevski/538848/expmap_678153601_678412801_4FGL_J0017.5-0514_daily_bin1693.fits
Exposure cube: /scratch/kocevski/538848/ltcube_678153601_678412801_4FGL_J0017.5-0514_daily_bin1693.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/538848/Model_4FGL_J0017.5-0514_daily_bin1693.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) = 5334.05828713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6951       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.0390       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .19508E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.022       1.0000         .10000E-03   10000.    
     8 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.546       1.0000         .10000E-03   10000.    
    11 'norm      '    13.105       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8743       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.5245       1.0000         .10000E-03   10000.    
    15 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.881       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.5994       1.0000         .10000E-03   10000.    
    21 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.3178       1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.399       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .79028       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1825       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=   5334.013     FROM MIGRAD    STATUS=CONVERGED    686 CALLS     3311 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6925        9.2353        .75698E-05   -.45463E-03
   2  Prefactor     .10000E-03    18.059       -.18472E-05** at limit **
   3  Prefactor     7.0361        14.416        .19123E-05    .72620E-04
   4  Prefactor     .10000E-03    4.6196       -.85715E-07** at limit **
   5  norm          .10000E-03    1.4324        .10744E-06** at limit **
   6  Prefactor     .10000E-03    6.9860       -.13786E-06** at limit **
   7  norm          11.022        4.7809       -.24340E-06   -.78589E-04
   8  norm          .10000E-03    2.4762        .15887E-06** at limit **
   9  Prefactor     .10000E-03    5.4341        .12873E-06** at limit **
  10  Prefactor     12.315        70.460       -.94018E-05   -.30391E-04
  11  norm          13.104        9.4070        .13827E-07   -.13745E-04
  12  Prefactor     3.8740        2.8416        .64297E-07   -.20336E-04
  13  Prefactor     .10000E-03    1.5384        .82846E-07** at limit **
  14  norm          5.5245        4.6502       -.17610E-06   -.10464E-03
  15  norm          .10000E-03    4.2246        .13783E-06** at limit **
  16  Prefactor     .10000E-03    15.919        .35005E-05** at limit **
  17  Prefactor     19.870        34.369        .23726E-05    .18657E-04
  18  Prefactor     .10000E-03    13.923       -.90426E-06** at limit **
  19  Prefactor     .10000E-03    133.27        .37069E-05** at limit **
  20  Prefactor     1.5867        32.825       -.10765E-04   -.17653E-03
  21  norm          .10000E-03    25.076        .10161E-06** at limit **
  22  Prefactor     .10000E-03    17.877       -.16923E-05** at limit **
  23  Prefactor     5.3207        6.0573        .12295E-05    .70525E-03
  24  Prefactor     16.397        14.785       -.41402E-06   -.30239E-05
  25  Prefactor     .10000E-03    3.0563       -.96526E-07** at limit **
  26  Normalizat    .79035        .20962       -.82249E-06    .20276E-04
  27  Prefactor     1.1825        .18286       -.80229E-06    .49789E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.69254
  Prefactor  = 0.0001
  Prefactor  = 7.0361
  Prefactor  = 0.0001
  norm       = 0.000100005
  Prefactor  = 0.0001
  norm       = 11.0217
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.3152
  norm       = 13.104
  Prefactor  = 3.87404
  Prefactor  = 0.0001
  norm       = 5.52452
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.8703
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.58669
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.32071
  Prefactor  = 16.3968
  Prefactor  = 0.0001
  Normalizat = 0.790349
  Prefactor  = 1.18252
 **********
 **   18 **HESSE 
 **********

 FCN=   5334.013     FROM HESSE     STATUS=OK           488 CALLS     3799 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6925        9.7615        .10505E-02   -1.5324    
   2  Prefactor     .10000E-03    18.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.0361        13.699        .15120E-03   -1.5177    
   4  Prefactor     .10000E-03    4.6380        .15280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    7.9561        .15788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.9969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.022        4.7710        .98611E-04   -1.5044    
   8  norm          .10000E-03    5.0022        .22362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.4562        .16624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.315        71.216        .11309E-03   -1.5006    
  11  norm          13.104        9.3953        .11065E-03   -1.4984    
  12  Prefactor     3.8740        2.8426        .10164E-03   -1.5314    
  13  Prefactor     .10000E-03    1.5861        .17685E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.5245        4.6491        .13698E-03   -1.5238    
  15  norm          .10000E-03    4.3007        .14652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.870        34.351        .89827E-04   -1.4816    
  18  Prefactor     .10000E-03    13.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    133.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.5867        36.485        .33526E-03   -1.5456    
  21  norm          .10000E-03    25.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    17.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.3207        6.0808        .14860E-03   -1.5247    
  24  Prefactor     16.397        14.789        .98903E-04   -1.4898    
  25  Prefactor     .10000E-03    3.0814        .12467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .79035        .24655        .30065E-03   -1.0043    
  27  Prefactor     1.1825        .21672        .22529E-03   -.86871    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55967e-09
Minuit parameter uncertainties:
  1  9.76575
  2  7.53022e-05
  3  13.7049
  4  8.37537e-06
  5  0.000397278
  6  2.50654e-07
  7  4.77114
  8  7.57044e-06
  9  7.53404e-07
  10  59.3367
  11  9.39638
  12  2.84265
  13  2.88456e-06
  14  4.64944
  15  7.9867e-06
  16  0.000107459
  17  34.3856
  18  1.93955e-05
  19  0.000450647
  20  15.2272
  21  0.000383536
  22  5.27429e-05
  23  6.08146
  24  14.7918
  25  9.09211e-06
  26  0.246904
  27  0.216886
Done.

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

Extracting fit parameters...

4FGL J0017.5-0514
   Spectrum: LogParabola
72          norm:  1.102e+01  4.771e+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

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  1.183e+00  2.169e-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:  7.903e-01  2.469e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.85
Ra Dec: 4.395 -5.235
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 1.29e-07 +/- 5.58e-08
Energy Flux (Fixed Index): 3.59e-05 +/- 1.55e-05

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) = 5332.91433466
delta logL = 1.09910670254

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5332.90865894
delta logL = 1.10478242373

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3248       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2717       1.0000          .0000       5.0000    
     3 'Normalizat'    .73458       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2166       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.

 FCN=   5332.909     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      240 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3212        31.551        .43542E-02    .10144E-03
   2  alpha         3.2727        3.8911        .15562        .47848E-04
   3  Normalizat    .73448        .10370        .70149E-01   -.11808E-04
   4  Prefactor     1.2165        .92642E-01    .50313E-01   -.45212E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.32116
  alpha      = 3.27272
  Normalizat = 0.734483
  Prefactor  = 1.21652
 **********
 **   18 **HESSE 
 **********

 FCN=   5332.909     FROM HESSE     STATUS=OK            29 CALLS      269 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3212        4.2836        .60737E-04   -1.5247    
   2  alpha         3.2727        .49813        .67337E-03    .31423    
   3  Normalizat    .73448        .24415        .31044E-03   -1.0255    
   4  Prefactor     1.2165        .21731        .22242E-03   -.85825    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38836e-12
Minuit parameter uncertainties:
  1  4.28385
  2  0.501851
  3  0.244513
  4  0.217469
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/538848': 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) = 5332.90865399
delta logL = 1.10478737444

Extracting fit parameters...

4FGL J0017.5-0514
   Spectrum: LogParabola
72          norm:  5.321e+00  4.284e+00  1.000e-04  1.000e+04 ( 1.000e-12)
73         alpha:  3.273e+00  5.019e-01  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:  1.217e+00  2.175e-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:  7.345e-01  2.445e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.24
Ra Dec: 4.395 -5.235
Photon Index (Free Index): 3.27 +/- 0.50
Photon Flux (Free Index): 1.76e-07 +/- 7.00e-08
Energy Flux (Free Index): 3.36e-05 +/- 1.32e-05

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/538848/cmap_HighResolution_678153601_678412801_4FGL_J0017.5-0514_daily_bin1693.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.29e-07', energy_flux2='3.36e-05', photon_flux_error='5.58e-08', dlogl='1.10e+00', energy_flux='3.59e-05', photon_flux2='1.76e-07', job_status='DONE', time_completed='2022-07-02 00:19:58.822404', photon_index_error2='0.50', photon_index2='3.27', ts='9.85', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='1.32e-05', EG='0.79', time_epoch_completed='1656746398.82', return_code='0', job_id='538848', GAL2='1.22', EG2='0.73', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='7.00e-08', ts2='12.24', photon_index='2.59' WHERE bin_id='1693' AND source_name='4FGL J0017.5-0514' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jul  2 00:19:58 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 538848: <4FGL_J0017.5-0514_daily_bin1693> in cluster <slac> Done

Job <4FGL_J0017.5-0514_daily_bin1693> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Jul  2 00:04:30 2022
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  2 00:08:43 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  2 00:08:43 2022
Terminated at Sat Jul  2 00:19:59 2022
Results reported at Sat Jul  2 00:19:59 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0017.5-0514_daily_bin1693 4.3949 -5.2347 678153601 678412801 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 :                                   626.57 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            929 sec.

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

