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 235 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0016.2-0016_daily_bin1754
RA = 4.061, Dec = -0.2806
tmin = 693964801, tmax = 694224001
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='624366', job_status='RUN', time_executed='2023-01-01 00:09:23.808826', time_epoch_executed='1672560563.81' WHERE source_name='4FGL J0016.2-0016' and cadence='daily' and bin_id='1754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/624366

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/624366/ft1_4FGL_J0016.2-0016_daily_bin1754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/624366/ft2_4FGL_J0016.2-0016_daily_bin1754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/624366/ft1_4FGL_J0016.2-0016_daily_bin1754.fits outfile=/scratch/kocevski/624366/ft1_filteredMKT_4FGL_J0016.2-0016_daily_bin1754.fits ra=4.061 dec=-0.2806 rad=12.0 tmin=693964801.0 tmax=694224001.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.99
user 3.72
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/624366/ft2_4FGL_J0016.2-0016_daily_bin1754.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/624366/ft2_4FGL_J0016.2-0016_daily_bin1754.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/624366/ft1_filteredMKT_4FGL_J0016.2-0016_daily_bin1754.fits evtable="EVENTS" outfile="/scratch/kocevski/624366/ft1_filtered_4FGL_J0016.2-0016_daily_bin1754.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.34
sys 0.16

Number of photons that the gtmktime cut: 897

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/624366/ft1_filtered_4FGL_J0016.2-0016_daily_bin1754.fits" evtable="EVENTS" scfile=/scratch/kocevski/624366/ft2_4FGL_J0016.2-0016_daily_bin1754.fits sctable="SC_DATA" outfile=/scratch/kocevski/624366/ltcube_693964801_694224001_4FGL_J0016.2-0016_daily_bin1754.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/624366/ft2_4FGL_J0016.2-0016_daily_bin1754.fits
.....................!
real 13.88
user 13.34
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/624366/ft1_filtered_4FGL_J0016.2-0016_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/624366/ft2_4FGL_J0016.2-0016_daily_bin1754.fits sctable="SC_DATA" expcube=/scratch/kocevski/624366/ltcube_693964801_694224001_4FGL_J0016.2-0016_daily_bin1754.fits outfile=/scratch/kocevski/624366/expmap_693964801_694224001_4FGL_J0016.2-0016_daily_bin1754.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/624366/ltcube_693964801_694224001_4FGL_J0016.2-0016_daily_bin1754.fits
.....................!
real 195.28
user 189.61
sys 4.75

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

Setting source of interest to:
4FGL J0016.2-0016 @ 4.061 -0.2806

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/624366/ft1_filtered_4FGL_J0016.2-0016_daily_bin1754.fits scfile=/scratch/kocevski/624366/ft2_4FGL_J0016.2-0016_daily_bin1754.fits outfile=/scratch/kocevski/624366/cmap_693964801_694224001_4FGL_J0016.2-0016_daily_bin1754.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.061 yref=-0.2806 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.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/624366/ft1_filtered_4FGL_J0016.2-0016_daily_bin1754.fits scfile=/scratch/kocevski/624366/ft2_4FGL_J0016.2-0016_daily_bin1754.fits outfile=/scratch/kocevski/624366/cmap_HighResolution_693964801_694224001_4FGL_J0016.2-0016_daily_bin1754.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.061 yref=-0.2806 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.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/624366/ft1_filtered_4FGL_J0016.2-0016_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/624366/ft2_4FGL_J0016.2-0016_daily_bin1754.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/624366/Model_4FGL_J0016.2-0016_daily_bin1754.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/624366/ft1_filtered_4FGL_J0016.2-0016_daily_bin1754.fits.....................!
real 91.80
user 90.37
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/624366/ft1_filtered_4FGL_J0016.2-0016_daily_bin1754.fits', '/scratch/kocevski/624366/ft2_4FGL_J0016.2-0016_daily_bin1754.fits', expMap='/scratch/kocevski/624366/expmap_693964801_694224001_4FGL_J0016.2-0016_daily_bin1754.fits', expCube='/scratch/kocevski/624366/ltcube_693964801_694224001_4FGL_J0016.2-0016_daily_bin1754.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/624366/Model_4FGL_J0016.2-0016_daily_bin1754.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0016.2-0016'

4FGL J0016.2-0016
   Spectrum: LogParabola
72          norm:  1.412e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
73         alpha:  2.614e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
74          beta:  1.848e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
75            Eb:  3.723e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/624366/ft1_filtered_4FGL_J0016.2-0016_daily_bin1754.fits
Spacecraft file(s): /scratch/kocevski/624366/ft2_4FGL_J0016.2-0016_daily_bin1754.fits
Exposure map: /scratch/kocevski/624366/expmap_693964801_694224001_4FGL_J0016.2-0016_daily_bin1754.fits
Exposure cube: /scratch/kocevski/624366/ltcube_693964801_694224001_4FGL_J0016.2-0016_daily_bin1754.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/624366/Model_4FGL_J0016.2-0016_daily_bin1754.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) = 9684.01875411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18119E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .58115E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .29605E-02   1.0000          .0000       .10000E+07
     4 'norm      '    .24296E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    11.740       1.0000          .0000       .10000E+07
     6 'norm      '    10.461       1.0000          .0000       .10000E+07
     7 'norm      '    .32803E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .11552E-04   1.0000          .0000       .10000E+07
     9 'norm      '    28.843       1.0000          .0000       .10000E+07
    10 'Prefactor '    9.4964       1.0000          .0000       .10000E+07
    11 'Prefactor '    .58325       1.0000          .0000       .10000E+07
    12 'norm      '    2.5321       1.0000          .0000       .10000E+07
    13 'Prefactor '    .22606E-02   1.0000          .0000       .10000E+07
    14 'norm      '    7.4048       1.0000          .0000       .10000E+07
    15 'Prefactor '    .19607E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .29647E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .18553E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    3.0056       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.2952       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .86205       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9683.993     FROM MIGRAD    STATUS=CONVERGED    113 CALLS     1210 TOTAL
                     EDM=   .77E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11879E-07    3.0543        .42592E-07** at limit **
   2  Prefactor     .27756E-09    3.9493        .33416E-06** at limit **
   3  Prefactor     .79381E-08    3.6273       -.12870E-06** at limit **
   4  norm          .55511E-10    3.1962        .11524E-06** at limit **
   5  Prefactor     11.712        1.2129       -.10405E-07    .24230E-02
   6  norm          10.473        3.6145       -.35251E-07   -.39359E-03
   7  norm           .0000        2.1065       -.12614E-06** at limit **
   8  Prefactor     .20484E-07    8.3595       -.10036E-07** at limit **
   9  norm          28.871        1.1332       -.44904E-08   -.36525E-03
  10  Prefactor     9.4924        3.2238       -.23690E-07    .51974E-03
  11  Prefactor     .58748        2.6361        .14654E-06    .88085E-04
  12  norm          2.5299        2.6742       -.42734E-07   -.95336E-04
  13  Prefactor     .15132E-06    3.5085       -.11232E-06** at limit **
  14  norm          7.4035        2.0875        .29925E-07   -.80975E-02
  15  Prefactor     .18874E-08    4.7293        .27097E-06** at limit **
  16  Prefactor     .49183E-07    5.8940       -.16371E-06** at limit **
  17  Prefactor     .20595E-07    2.9339        .62018E-07** at limit **
  18  Prefactor     3.0200        3.2883        .43553E-07    .23929E-03
  19  Normalizat    1.2950        .18686       -.14563E-05   -.10485E-04
  20  Prefactor     .86211        .14116        .24420E-05   -.17669E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.18794e-08
  Prefactor  = 2.77556e-10
  Prefactor  = 7.93809e-09
  norm       = 5.55112e-11
  Prefactor  = 11.7116
  norm       = 10.4725
  norm       = 0
  Prefactor  = 2.04836e-08
  norm       = 28.8712
  Prefactor  = 9.49244
  Prefactor  = 0.587484
  norm       = 2.52991
  Prefactor  = 1.51323e-07
  norm       = 7.40348
  Prefactor  = 1.88738e-09
  Prefactor  = 4.91829e-08
  Prefactor  = 2.05946e-08
  Prefactor  = 3.01995
  Normalizat = 1.29497
  Prefactor  = 0.862113
 **********
 **   18 **HESSE 
 **********

 FCN=   9683.993     FROM HESSE     STATUS=OK           331 CALLS     1541 TOTAL
                     EDM=   .36E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11879E-07    6.0001        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .27756E-09    3.9597        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .79381E-08    11.821        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .55511E-10    3.1293        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.712        13.609        .29212E-03   -1.5640    
   6  norm          10.473        3.9921        .30954E-03   -1.5643    
   7  norm           .0000        2.1023        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .20484E-07    9.5859        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          28.871        10.485        .18623E-03   -1.5600    
  10  Prefactor     9.4924        3.2150        .32496E-03   -1.5646    
  11  Prefactor     .58748        2.6411        .70742E-03   -1.5693    
  12  norm          2.5299        2.6956        .64160E-03   -1.5676    
  13  Prefactor     .15132E-06    10.718        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.4035        11.445        .36833E-03   -1.5654    
  15  Prefactor     .18874E-08    4.8309        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .49183E-07    11.603        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .20595E-07    5.7235        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.0200        3.2884        .58520E-03   -1.5673    
  19  Normalizat    1.2950        .16475        .61116E-01   -.83717    
  20  Prefactor     .86211        .12315        .44519E-01   -.97478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59857e-06
Minuit parameter uncertainties:
  1  0.000533401
  2  6.37995e-05
  3  0.000611887
  4  2.09065e-05
  5  13.6091
  6  3.99213
  7  7.35561e-06
  8  0.000886196
  9  10.4849
  10  3.21496
  11  2.49129
  12  2.69565
  13  0.0025472
  14  11.4452
  15  0.000191997
  16  0.00151097
  17  0.000686889
  18  3.28842
  19  0.164818
  20  0.123188
Done.

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

Extracting fit parameters...

4FGL J0016.2-0016
   Spectrum: LogParabola
72          norm:  5.551e-11  2.091e-05  0.000e+00  1.000e+06 ( 1.000e-11)
73         alpha:  2.614e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
74          beta:  1.848e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
75            Eb:  3.723e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  8.621e-01  1.232e-01  0.000e+00  1.000e+01 ( 1.000e+00)
543        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
544        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
541   Normalization:  1.295e+00  1.648e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 4.061 -0.281
Photon Flux Upper Limit: 7.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.88e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/624366/likelihoodResults_693964801_694224001_4FGL_J0016.2-0016_daily_bin1754.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) = 9684.21651189
delta logL = -0.223046180246

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9683.98393027
delta logL = 0.00953543698051

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .81303E-01   1.0000          .0000       .10000E+07
     2 'alpha     '    4.5191       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2860       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86615       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9683.984     FROM MIGRAD    STATUS=FAILED       108 CALLS      276 TOTAL
                     EDM=   .82E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .80716E-01    160.02        .11005E-03** at limit **
   2  alpha         4.5308        3.3121        .50000       -.24984E-05
   3  Normalizat    1.2860        .11963        .27113E-03   -.67928E-05
   4  Prefactor     .86618        .65165E-01    .25170E-03   -.77688E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9683.984     FROM SIMPLEX   STATUS=UNCHANGED     93 CALLS      369 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .80716E-01    160.02        .16150E-04** at limit **
   2  alpha         4.5308        3.3121        .51031E-02   -.24984E-05
   3  Normalizat    1.2860        .11963        .17503E-03   -.67928E-05
   4  Prefactor     .86618        .65165E-01    .86303E-04   -.77688E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9683.984     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      451 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .80715E-01    187.90        .44018E-05** at limit **
   2  alpha         4.5308        4.5782        .50000       -.22468E-05
   3  Normalizat    1.2860        .16659        .21690E-05   -.41931E-05
   4  Prefactor     .86618        .88580E-01    .20136E-05   -.67751E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0807147
  alpha      = 4.53081
  Normalizat = 1.28598
  Prefactor  = 0.866177
 **********
 **   18 **HESSE 
 **********

 FCN=   9683.984     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      480 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .80715E-01    189.35        .17607E-06   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         4.5308        4.7010        .50000        .94813    
   3  Normalizat    1.2860        .16570        .43381E-06   -.83986    
   4  Prefactor     .86618        .88702E-01    .40272E-06   -.97333    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.57754e-08
Minuit parameter uncertainties:
  1  7.8191
  2  85.6513
  3  0.165766
  4  0.0887168
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/624366': 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) = 9683.98392899
delta logL = 0.00953671562092

Extracting fit parameters...

4FGL J0016.2-0016
   Spectrum: LogParabola
72          norm:  8.071e-02  7.819e+00  0.000e+00  1.000e+06 ( 1.000e-11)
73         alpha:  4.531e+00  8.565e+01  0.000e+00  5.000e+00 ( 1.000e+00)
74          beta:  1.848e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
75            Eb:  3.723e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  8.662e-01  8.872e-02  0.000e+00  1.000e+01 ( 1.000e+00)
543        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
544        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
541   Normalization:  1.286e+00  1.658e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 4.061 -0.281

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/624366/cmap_HighResolution_693964801_694224001_4FGL_J0016.2-0016_daily_bin1754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.88e-05', job_status='DONE', photon_flux_upper_limit='7.85e-08', time_completed='2023-01-01 00:20:41.059629', job_id='624366', GAL2='0.87', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1672561241.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='9.54e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1754' AND source_name='4FGL J0016.2-0016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan  1 00:20:41 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 624366: <4FGL_J0016.2-0016_daily_bin1754> in cluster <slac> Done

Job <4FGL_J0016.2-0016_daily_bin1754> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Jan  1 00:04:34 2023
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan  1 00:05:20 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan  1 00:05:20 2023
Terminated at Sun Jan  1 00:20:41 2023
Results reported at Sun Jan  1 00:20:41 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0016.2-0016_daily_bin1754 4.061 -0.2806 693964801 694224001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0016.2-0016 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   678.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             266.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            967 sec.

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

