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


Performing analysis on: 4FGL_J0014.3-0500_daily_bin1767
RA = 3.5864, Dec = -5.012
tmin = 697334401, tmax = 697593601
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='58807', job_status='RUN', time_executed='2023-02-09 00:08:56.209186', time_epoch_executed='1675930136.21' WHERE source_name='4FGL J0014.3-0500' and cadence='daily' and bin_id='1767'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/58807

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/58807/ft1_4FGL_J0014.3-0500_daily_bin1767.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/58807/ft2_4FGL_J0014.3-0500_daily_bin1767.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/58807/ft1_4FGL_J0014.3-0500_daily_bin1767.fits outfile=/scratch/kocevski/58807/ft1_filteredMKT_4FGL_J0014.3-0500_daily_bin1767.fits ra=3.5864 dec=-5.012 rad=12.0 tmin=697334401.0 tmax=697593601.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.70
user 3.39
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/58807/ft2_4FGL_J0014.3-0500_daily_bin1767.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/58807/ft2_4FGL_J0014.3-0500_daily_bin1767.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/58807/ft1_filteredMKT_4FGL_J0014.3-0500_daily_bin1767.fits evtable="EVENTS" outfile="/scratch/kocevski/58807/ft1_filtered_4FGL_J0014.3-0500_daily_bin1767.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.52
user 0.35
sys 0.15

Number of photons that the gtmktime cut: 429

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/58807/ft1_filtered_4FGL_J0014.3-0500_daily_bin1767.fits" evtable="EVENTS" scfile=/scratch/kocevski/58807/ft2_4FGL_J0014.3-0500_daily_bin1767.fits sctable="SC_DATA" outfile=/scratch/kocevski/58807/ltcube_697334401_697593601_4FGL_J0014.3-0500_daily_bin1767.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/58807/ft2_4FGL_J0014.3-0500_daily_bin1767.fits
.....................!
real 15.34
user 14.84
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/58807/ft1_filtered_4FGL_J0014.3-0500_daily_bin1767.fits evtable="EVENTS" scfile=/scratch/kocevski/58807/ft2_4FGL_J0014.3-0500_daily_bin1767.fits sctable="SC_DATA" expcube=/scratch/kocevski/58807/ltcube_697334401_697593601_4FGL_J0014.3-0500_daily_bin1767.fits outfile=/scratch/kocevski/58807/expmap_697334401_697593601_4FGL_J0014.3-0500_daily_bin1767.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/58807/ltcube_697334401_697593601_4FGL_J0014.3-0500_daily_bin1767.fits
.....................!
real 193.18
user 187.51
sys 5.13

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

Setting source of interest to:
4FGL J0014.3-0500 @ 3.5864 -5.012

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/58807/ft1_filtered_4FGL_J0014.3-0500_daily_bin1767.fits scfile=/scratch/kocevski/58807/ft2_4FGL_J0014.3-0500_daily_bin1767.fits outfile=/scratch/kocevski/58807/cmap_697334401_697593601_4FGL_J0014.3-0500_daily_bin1767.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=3.5864 yref=-5.012 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/58807/ft1_filtered_4FGL_J0014.3-0500_daily_bin1767.fits scfile=/scratch/kocevski/58807/ft2_4FGL_J0014.3-0500_daily_bin1767.fits outfile=/scratch/kocevski/58807/cmap_HighResolution_697334401_697593601_4FGL_J0014.3-0500_daily_bin1767.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=3.5864 yref=-5.012 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.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/58807/ft1_filtered_4FGL_J0014.3-0500_daily_bin1767.fits evtable="EVENTS" scfile=/scratch/kocevski/58807/ft2_4FGL_J0014.3-0500_daily_bin1767.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/58807/Model_4FGL_J0014.3-0500_daily_bin1767.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/58807/ft1_filtered_4FGL_J0014.3-0500_daily_bin1767.fits.....................!
real 49.34
user 47.32
sys 1.38

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/58807/ft1_filtered_4FGL_J0014.3-0500_daily_bin1767.fits', '/scratch/kocevski/58807/ft2_4FGL_J0014.3-0500_daily_bin1767.fits', expMap='/scratch/kocevski/58807/expmap_697334401_697593601_4FGL_J0014.3-0500_daily_bin1767.fits', expCube='/scratch/kocevski/58807/ltcube_697334401_697593601_4FGL_J0014.3-0500_daily_bin1767.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/58807/Model_4FGL_J0014.3-0500_daily_bin1767.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0014.3-0500'

4FGL J0014.3-0500
   Spectrum: PowerLaw
62     Prefactor:  1.466e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
63         Index:  2.370e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
64         Scale:  1.747e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/58807/ft1_filtered_4FGL_J0014.3-0500_daily_bin1767.fits
Spacecraft file(s): /scratch/kocevski/58807/ft2_4FGL_J0014.3-0500_daily_bin1767.fits
Exposure map: /scratch/kocevski/58807/expmap_697334401_697593601_4FGL_J0014.3-0500_daily_bin1767.fits
Exposure cube: /scratch/kocevski/58807/ltcube_697334401_697593601_4FGL_J0014.3-0500_daily_bin1767.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/58807/Model_4FGL_J0014.3-0500_daily_bin1767.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) = 4984.3854916

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6089       1.0000          .0000       .10000E+07
     2 'Prefactor '    .29896E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    16.122       1.0000          .0000       .10000E+07
     4 'norm      '    .73663E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    .15922E-01   1.0000          .0000       .10000E+07
     6 'norm      '    8.6899       1.0000          .0000       .10000E+07
     7 'norm      '    .12603E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .21468E-01   1.0000          .0000       .10000E+07
     9 'norm      '    16.718       1.0000          .0000       .10000E+07
    10 'Prefactor '    4.3045       1.0000          .0000       .10000E+07
    11 'Prefactor '    .20561E-06   1.0000          .0000       .10000E+07
    12 'norm      '    .67568E-06   1.0000          .0000       .10000E+07
    13 'norm      '    .97819E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    .45687E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    104.44       1.0000          .0000       .10000E+07
    16 'norm      '    11.868       1.0000          .0000       .10000E+07
    17 'Prefactor '    4.0699       1.0000          .0000       .10000E+07
    18 'Prefactor '    57.315       1.0000          .0000       .10000E+07
    19 'Prefactor '    .62509E-03   1.0000          .0000       .10000E+07
    20 'Normalizat'    .47817       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0194       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4984.299     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     1678 TOTAL
                     EDM=   .59E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6061        6.2741        .26566E-07   -.64520E-03
   2  Prefactor      .0000        6.7398        .18017E-06** at limit **
   3  Prefactor     16.123        12.029        .20039E-06    .24262E-02
   4  norm           .0000        .82155       -.95303E-09** at limit **
   5  Prefactor     .44409E-09    21.000       -.14268E-06** at limit **
   6  norm          8.6892        7.2502       -.11681E-06   -.13935E-02
   7  norm           .0000        2.7690        .94447E-07** at limit **
   8  Prefactor      .0000        16.394       -.15161E-07** at limit **
   9  norm          16.727        5.3417       -.22580E-07   -.14707E-02
  10  Prefactor     4.3060        3.0108       -.12455E-06    .13612E-02
  11  Prefactor      .0000        1.9857        .15102E-06** at limit **
  12  norm           .0000        .96648        .88493E-07** at limit **
  13  norm           .0000        2.3087       -.27420E-06** at limit **
  14  Prefactor     .27756E-09    42.722        .29804E-06** at limit **
  15  Prefactor     104.30        10.324        .12460E-07    .93261E-01
  16  norm          13.299        43.848        .34901E-06    .26207E-02
  17  Prefactor     3.9443        8.4363       -.19112E-06   -.30211E-04
  18  Prefactor     56.953        50.293       -.22360E-06    .13493E-01
  19  Prefactor      .0000        4.5758       -.16508E-06** at limit **
  20  Normalizat    .47917        .21527        .52077E-05   -.35781E-04
  21  Prefactor     1.0183        .18754       -.73180E-06   -.46608E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.60606
  Prefactor  = 0
  Prefactor  = 16.1227
  norm       = 0
  Prefactor  = 4.44089e-10
  norm       = 8.68923
  norm       = 0
  Prefactor  = 0
  norm       = 16.7267
  Prefactor  = 4.30603
  Prefactor  = 0
  norm       = 0
  norm       = 0
  Prefactor  = 2.77556e-10
  Prefactor  = 104.3
  norm       = 13.2989
  Prefactor  = 3.94427
  Prefactor  = 56.9531
  Prefactor  = 0
  Normalizat = 0.479173
  Prefactor  = 1.01834
 **********
 **   18 **HESSE 
 **********

 FCN=   4984.299     FROM HESSE     STATUS=OK           375 CALLS     2053 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6061        8.1743        .36332E-03   -1.5653    
   2  Prefactor      .0000        6.7349        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.123        11.940        .24917E-03   -1.5628    
   4  norm           .0000        .82002        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .44409E-09    10.628        .12317E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.6892        7.4754        .33980E-03   -1.5649    
   7  norm           .0000        2.7622        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        7.7604        .64078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          16.727        9.8100        .24469E-03   -1.5626    
  10  Prefactor     4.3060        3.0150        .48532E-03   -1.5666    
  11  Prefactor      .0000        1.9736        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        .96576        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        2.3052        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .27756E-09    17.930        .11956E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     104.30        36.743        .97859E-04   -1.5504    
  16  norm          13.299        45.403        .29053E-03   -1.5635    
  17  Prefactor     3.9443        8.7777        .49953E-03   -1.5668    
  18  Prefactor     56.953        52.479        .13210E-03   -1.5557    
  19  Prefactor      .0000        4.5725        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .47917        .19361        .73642E-01   -1.1339    
  21  Prefactor     1.0183        .16495        .42202E-01   -.92121    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.79434e-07
Minuit parameter uncertainties:
  1  8.17434
  2  1.52867e-05
  3  11.9402
  4  1.04546e-07
  5  0.000140502
  6  7.47538
  7  4.07488e-06
  8  1.2993e-06
  9  9.81004
  10  3.01499
  11  7.4435e-06
  12  2.67956e-06
  13  1.03787e-05
  14  0.000137478
  15  36.7431
  16  45.4045
  17  8.77775
  18  52.4797
  19  6.52601e-06
  20  0.193884
  21  0.165034
Done.

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

Extracting fit parameters...

4FGL J0014.3-0500
   Spectrum: PowerLaw
62     Prefactor:  1.612e+01  1.194e+01  0.000e+00  1.000e+06 ( 1.000e-13)
63         Index:  2.370e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
64         Scale:  1.747e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  1.018e+00  1.650e-01  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  4.792e-01  1.939e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.03
Ra Dec: 3.586 -5.012
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 1.03e-07 +/- 7.66e-08
Energy Flux (Fixed Index): 3.53e-05 +/- 2.62e-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) = 4984.29180852
delta logL = 0.00716851890502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4984.27768927
delta logL = 0.0212877695067

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.400       1.0000          .0000       .10000E+07
     2 'Index     '    2.2657       1.0000          .0000       10.000    
     3 'Normalizat'    .48887       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0126       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+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=   4984.278     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      240 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.403        15.324        .93287E-05   -.58351E-02
   2  Index         2.2656        .52826        .42036E-02   -.20231E-03
   3  Normalizat    .48891        .21381        .32309E-03    .42970E-03
   4  Prefactor     1.0126        .18650        .20332E-03    .10365E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.4033
  Index      = 2.26563
  Normalizat = 0.488906
  Prefactor  = 1.01258
 **********
 **   18 **HESSE 
 **********

 FCN=   4984.278     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.403        14.343        .37315E-06   -1.5622    
   2  Index         2.2656        .49395        .16814E-03   -.57863    
   3  Normalizat    .48891        .21321        .12924E-04   -1.1293    
   4  Prefactor     1.0126        .18627        .40665E-04   -.92311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54973e-09
Minuit parameter uncertainties:
  1  14.3434
  2  0.495104
  3  0.213567
  4  0.186387
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/58807': 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) = 4984.27768921
delta logL = 0.021287825477

Extracting fit parameters...

4FGL J0014.3-0500
   Spectrum: PowerLaw
62     Prefactor:  1.840e+01  1.434e+01  0.000e+00  1.000e+06 ( 1.000e-13)
63         Index:  2.266e+00  4.951e-01  0.000e+00  1.000e+01 (-1.000e+00)
64         Scale:  1.747e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  1.013e+00  1.864e-01  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  4.889e-01  2.136e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.28
Ra Dec: 3.586 -5.012
Photon Index (Free Index): 2.27 +/- 0.50
Photon Flux (Free Index): 9.49e-08 +/- 6.53e-08
Energy Flux (Free Index): 3.80e-05 +/- 2.45e-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/58807/cmap_HighResolution_697334401_697593601_4FGL_J0014.3-0500_daily_bin1767.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.03e-07', energy_flux2='3.80e-05', photon_flux_error='7.66e-08', dlogl='2.13e-02', energy_flux='3.53e-05', photon_flux2='9.49e-08', job_status='DONE', time_completed='2023-02-09 00:17:01.366515', photon_index_error2='0.50', photon_index2='2.27', ts='6.03', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='2.45e-05', EG='0.48', time_epoch_completed='1675930621.37', return_code='0', job_id='58807', GAL2='1.01', EG2='0.49', return_code2='0', energy_flux_error='2.62e-05', photon_flux_error2='6.53e-08', ts2='6.28', photon_index='2.37' WHERE bin_id='1767' AND source_name='4FGL J0014.3-0500' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Feb  9 00:17:01 PST 2023

------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 58808: <4FGL_J0014.3-0500_daily_bin1767> in cluster <slac> Done

Job <4FGL_J0014.3-0500_daily_bin1767> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Feb  9 00:05:30 2023
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Feb  9 00:06:37 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Feb  9 00:06:37 2023
Terminated at Thu Feb  9 00:15:17 2023
Results reported at Thu Feb  9 00:15:17 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0014.3-0500_daily_bin1767 3.5864 -5.012 697334401 697593601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0014.3-0500 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   486.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             376.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   518 sec.
    Turnaround time :                            587 sec.

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


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 58807: <4FGL_J0014.3-0500_daily_bin1767> in cluster <slac> Done

Job <4FGL_J0014.3-0500_daily_bin1767> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Feb  9 00:05:30 2023
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Feb  9 00:06:37 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Feb  9 00:06:37 2023
Terminated at Thu Feb  9 00:17:02 2023
Results reported at Thu Feb  9 00:17:02 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0014.3-0500_daily_bin1767 3.5864 -5.012 697334401 697593601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0014.3-0500 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   483.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   624 sec.
    Turnaround time :                            692 sec.

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

