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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin1677
RA = 353.869, Dec = -1.476
tmin = 674006401, tmax = 674265601
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='171984', job_status='RUN', time_executed='2022-05-15 01:14:34.440593', time_epoch_executed='1652602474.44' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='1677'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/171984

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/171984/ft1_4FGL_J2335.4-0128_daily_bin1677.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/171984/ft2_4FGL_J2335.4-0128_daily_bin1677.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/171984/ft1_4FGL_J2335.4-0128_daily_bin1677.fits outfile=/scratch/kocevski/171984/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin1677.fits ra=353.869 dec=-1.476 rad=12.0 tmin=674006401.0 tmax=674265601.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.62
user 4.35
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/171984/ft2_4FGL_J2335.4-0128_daily_bin1677.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/171984/ft2_4FGL_J2335.4-0128_daily_bin1677.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/171984/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin1677.fits evtable="EVENTS" outfile="/scratch/kocevski/171984/ft1_filtered_4FGL_J2335.4-0128_daily_bin1677.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: 483

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/171984/ft1_filtered_4FGL_J2335.4-0128_daily_bin1677.fits" evtable="EVENTS" scfile=/scratch/kocevski/171984/ft2_4FGL_J2335.4-0128_daily_bin1677.fits sctable="SC_DATA" outfile=/scratch/kocevski/171984/ltcube_674006401_674265601_4FGL_J2335.4-0128_daily_bin1677.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/171984/ft2_4FGL_J2335.4-0128_daily_bin1677.fits
.....................!
real 14.24
user 13.88
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/171984/ft1_filtered_4FGL_J2335.4-0128_daily_bin1677.fits evtable="EVENTS" scfile=/scratch/kocevski/171984/ft2_4FGL_J2335.4-0128_daily_bin1677.fits sctable="SC_DATA" expcube=/scratch/kocevski/171984/ltcube_674006401_674265601_4FGL_J2335.4-0128_daily_bin1677.fits outfile=/scratch/kocevski/171984/expmap_674006401_674265601_4FGL_J2335.4-0128_daily_bin1677.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/171984/ltcube_674006401_674265601_4FGL_J2335.4-0128_daily_bin1677.fits
.....................!
real 193.04
user 186.86
sys 5.61

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

Setting source of interest to:
4FGL J2335.4-0128 @ 353.869 -1.476

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/171984/ft1_filtered_4FGL_J2335.4-0128_daily_bin1677.fits scfile=/scratch/kocevski/171984/ft2_4FGL_J2335.4-0128_daily_bin1677.fits outfile=/scratch/kocevski/171984/cmap_674006401_674265601_4FGL_J2335.4-0128_daily_bin1677.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=353.869 yref=-1.476 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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/171984/ft1_filtered_4FGL_J2335.4-0128_daily_bin1677.fits scfile=/scratch/kocevski/171984/ft2_4FGL_J2335.4-0128_daily_bin1677.fits outfile=/scratch/kocevski/171984/cmap_HighResolution_674006401_674265601_4FGL_J2335.4-0128_daily_bin1677.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=353.869 yref=-1.476 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/171984/ft1_filtered_4FGL_J2335.4-0128_daily_bin1677.fits evtable="EVENTS" scfile=/scratch/kocevski/171984/ft2_4FGL_J2335.4-0128_daily_bin1677.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/171984/Model_4FGL_J2335.4-0128_daily_bin1677.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/171984/ft1_filtered_4FGL_J2335.4-0128_daily_bin1677.fits.....................!
real 55.81
user 54.27
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/171984/ft1_filtered_4FGL_J2335.4-0128_daily_bin1677.fits', '/scratch/kocevski/171984/ft2_4FGL_J2335.4-0128_daily_bin1677.fits', expMap='/scratch/kocevski/171984/expmap_674006401_674265601_4FGL_J2335.4-0128_daily_bin1677.fits', expCube='/scratch/kocevski/171984/ltcube_674006401_674265601_4FGL_J2335.4-0128_daily_bin1677.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/171984/Model_4FGL_J2335.4-0128_daily_bin1677.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2335.4-0128'

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  4.347e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.505e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
453         beta:  3.100e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
454           Eb:  1.202e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/171984/ft1_filtered_4FGL_J2335.4-0128_daily_bin1677.fits
Spacecraft file(s): /scratch/kocevski/171984/ft2_4FGL_J2335.4-0128_daily_bin1677.fits
Exposure map: /scratch/kocevski/171984/expmap_674006401_674265601_4FGL_J2335.4-0128_daily_bin1677.fits
Exposure cube: /scratch/kocevski/171984/ltcube_674006401_674265601_4FGL_J2335.4-0128_daily_bin1677.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/171984/Model_4FGL_J2335.4-0128_daily_bin1677.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) = 5370.47403501

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10647E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .78699       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .23409E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10208       1.0000         .10000E-03   10000.    
     8 'norm      '    41.060       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.282       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10400E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11061       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2783       1.0000         .10000E-03   10000.    
    14 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.2924       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.6444       1.0000         .10000E-03   10000.    
    17 'norm      '    1.5480       1.0000         .10000E-03   10000.    
    18 'Prefactor '    108.51       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10403E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.593       1.0000         .10000E-03   10000.    
    21 'norm      '    43.417       1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.091       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11620E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    41.972       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .12144E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11462E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4013       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .55581       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5370.436     FROM MIGRAD    STATUS=CONVERGED    763 CALLS     3831 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8646        .40772E-07** at limit **
   2  Prefactor     .10000E-03    12.073       -.39158E-08** at limit **
   3  Prefactor     .10005E-03    11.735       -.13203E-05** at limit **
   4  Prefactor     .10000E-03    2.7281        .38712E-07** at limit **
   5  norm          .78892        2.1095       -.15375E-07    .72477E-04
   6  Prefactor     .10022E-03    9.1392        .11400E-05** at limit **
   7  norm          .10660        2.7584        .10720E-05   -.10771E-02
   8  norm          41.070        18.187        .26515E-07    .39316E-04
   9  Prefactor     .10000E-03    22.270        .78841E-06** at limit **
  10  Prefactor     33.286        22.796        .18093E-06    .41827E-04
  11  Prefactor     .10000E-03    50.477        .10023E-06** at limit **
  12  Prefactor     .11700        5.7567        .27453E-06   -.90952E-04
  13  norm          1.2784        .86778        .75488E-07    .73278E-03
  14  norm          .10000E-03    2.1556        .11977E-06** at limit **
  15  Prefactor     4.2921        8.4116        .55690E-07    .17444E-04
  16  Prefactor     7.6630        68.028        .66475E-06    .26584E-04
  17  norm          1.5498        6.8617        .34166E-06    .57568E-03
  18  Prefactor     108.38        173.61        .56588E-05    .76225E-04
  19  Prefactor     .10024E-03    11.606       -.22640E-05** at limit **
  20  Prefactor     22.598        27.267        .34986E-07    .21617E-04
  21  norm          43.372        26.098        .21894E-05    .62510E-03
  22  Prefactor     20.080        38.038        .75151E-07    .20746E-04
  23  Prefactor     .10000E-03    3.0871       -.44838E-06** at limit **
  24  Prefactor     41.998        46.449       -.81938E-07    .90124E-04
  25  Prefactor     .10000E-03    20.264       -.61274E-06** at limit **
  26  Prefactor     .10000E-03    25.122       -.85480E-06** at limit **
  27  Prefactor     .10000E-03    4.2114        .70204E-07** at limit **
  28  Normalizat    1.4008        .20787        .25735E-06    .28889E-03
  29  Prefactor     .55596        .14300       -.52219E-06    .22379E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100045
  Prefactor  = 0.0001
  norm       = 0.78892
  Prefactor  = 0.000100216
  norm       = 0.106595
  norm       = 41.0702
  Prefactor  = 0.0001
  Prefactor  = 33.286
  Prefactor  = 0.0001
  Prefactor  = 0.116996
  norm       = 1.27836
  norm       = 0.0001
  Prefactor  = 4.29208
  Prefactor  = 7.66304
  norm       = 1.54979
  Prefactor  = 108.377
  Prefactor  = 0.000100245
  Prefactor  = 22.5976
  norm       = 43.3721
  Prefactor  = 20.0799
  Prefactor  = 0.0001
  Prefactor  = 41.9979
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.40083
  Prefactor  = 0.555961
 **********
 **   18 **HESSE 
 **********

 FCN=   5370.436     FROM HESSE     STATUS=OK           571 CALLS     4402 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.8777        .14069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10005E-03    55.011        .42946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.7452        .11802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .78892        1.9768        .16218E-02   -1.5530    
   6  Prefactor     .10022E-03    72.083        .40233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10660        13.809        .18396E-02   -1.5643    
   8  norm          41.070        18.193        .62557E-04   -1.4425    
   9  Prefactor     .10000E-03    22.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     33.286        22.778        .69459E-04   -1.4553    
  11  Prefactor     .10000E-03    50.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .11700        59.042        .33695E-02   -1.5640    
  13  norm          1.2784        .86435        .53600E-04   -1.5482    
  14  norm          .10000E-03    2.1604        .10494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.2921        8.4121        .19445E-03   -1.5294    
  16  Prefactor     7.6630        67.955        .14504E-03   -1.5154    
  17  norm          1.5498        7.4002        .17121E-02   -1.5459    
  18  Prefactor     108.38        174.63        .19305E-03   -1.3622    
  19  Prefactor     .10024E-03    20.121        .63434E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     22.598        27.266        .84270E-04   -1.4757    
  21  norm          43.372        31.178        .60842E-04   -1.4390    
  22  Prefactor     20.080        38.057        .89358E-04   -1.4811    
  23  Prefactor     .10000E-03    18.530        .22804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     41.998        46.527        .61876E-04   -1.4411    
  25  Prefactor     .10000E-03    20.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    25.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    4.2381        .14682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.4008        .23834        .23749E-03   -.80605    
  29  Prefactor     .55596        .16355        .25336E-03   -1.0947    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.69453e-08
Minuit parameter uncertainties:
  1  8.70856e-07
  2  2.51631e-06
  3  0.00315617
  4  1.0043e-05
  5  1.97694
  6  0.00789954
  7  2.42593
  8  18.1951
  9  3.88624e-05
  10  22.7835
  11  2.36617e-05
  12  5.25946
  13  0.86436
  14  1.76407e-06
  15  8.41443
  16  45.7086
  17  6.77427
  18  175.468
  19  0.0044387
  20  27.2805
  21  31.1897
  22  38.1025
  23  6.94211e-05
  24  46.5669
  25  6.85283e-06
  26  1.35932e-05
  27  1.50733e-06
  28  0.238533
  29  0.163687
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  4.337e+01  3.119e+01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.505e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
453         beta:  3.100e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
454           Eb:  1.202e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  5.560e-01  1.637e-01  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  1.401e+00  2.385e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.37
Ra Dec: 353.869 -1.476
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 5.35e-08 +/- 3.84e-08
Energy Flux (Fixed Index): 2.22e-05 +/- 1.60e-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) = 5370.29056219
delta logL = 0.145411824205

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5370.28862277
delta logL = 0.147351240877

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    49.497       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0337       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4202       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55113       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+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=   5370.289     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      290 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          49.642        32.499        .57000E-04    .21605E-03
   2  alpha         2.0389        .89283        .18832E-01    .23773E-04
   3  Normalizat    1.4201        .22846        .23626E-03   -.13019E-03
   4  Prefactor     .55098        .16031        .25457E-03   -.11732E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 49.6425
  alpha      = 2.03894
  Normalizat = 1.42013
  Prefactor  = 0.550984
 **********
 **   18 **HESSE 
 **********

 FCN=   5370.289     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          49.642        32.406        .11400E-04   -1.4298    
   2  alpha         2.0389        .88969        .75328E-03   -.18549    
   3  Normalizat    1.4201        .22848        .47252E-04   -.80048    
   4  Prefactor     .55098        .16041        .10183E-04   -1.0969    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94674e-10
Minuit parameter uncertainties:
  1  32.4175
  2  0.910373
  3  0.228641
  4  0.160546
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/171984': 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) = 5370.28859397
delta logL = 0.147380041971

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  4.964e+01  3.242e+01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.039e+00  9.104e-01  0.000e+00  5.000e+00 ( 1.000e+00)
453         beta:  3.100e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
454           Eb:  1.202e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  5.510e-01  1.605e-01  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  1.420e+00  2.286e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.68
Ra Dec: 353.869 -1.476
Photon Index (Free Index): 2.04 +/- 0.91
Photon Flux (Free Index): 3.35e-08 +/- 3.93e-08
Energy Flux (Free Index): 2.22e-05 +/- 1.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/171984/cmap_HighResolution_674006401_674265601_4FGL_J2335.4-0128_daily_bin1677.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.35e-08', energy_flux2='2.22e-05', photon_flux_error='3.84e-08', dlogl='1.47e-01', energy_flux='2.22e-05', photon_flux2='3.35e-08', job_status='DONE', time_completed='2022-05-15 01:25:31.830206', photon_index_error2='0.91', photon_index2='2.04', ts='6.37', fit_tolerance='1e-08', GAL='0.56', photon_index_error='0.00', energy_flux_error2='1.45e-05', EG='1.40', time_epoch_completed='1652603131.83', return_code='0', job_id='171984', GAL2='0.55', EG2='1.42', return_code2='0', energy_flux_error='1.60e-05', photon_flux_error2='3.93e-08', ts2='6.68', photon_index='2.50' WHERE bin_id='1677' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun May 15 01:25:31 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 171984: <4FGL_J2335.4-0128_daily_bin1677> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin1677> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun May 15 01:10:25 2022
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun May 15 01:11:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun May 15 01:11:35 2022
Terminated at Sun May 15 01:25:32 2022
Results reported at Sun May 15 01:25:32 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin1677 353.869 -1.476 674006401 674265601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2335.4-0128 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   659.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             280.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            907 sec.

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

