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 205 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7444
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2335.4-0128_daily_bin1696
RA = 353.869, Dec = -1.476
tmin = 678931201, tmax = 679190401
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='794196', job_status='RUN', time_executed='2022-07-11 00:39:05.253510', time_epoch_executed='1657525145.25' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='1696'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/794196

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/794196/ft1_4FGL_J2335.4-0128_daily_bin1696.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/794196/ft2_4FGL_J2335.4-0128_daily_bin1696.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/794196/ft1_4FGL_J2335.4-0128_daily_bin1696.fits outfile=/scratch/kocevski/794196/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin1696.fits ra=353.869 dec=-1.476 rad=12.0 tmin=678931201.0 tmax=679190401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.54
user 3.33
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/794196/ft2_4FGL_J2335.4-0128_daily_bin1696.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/794196/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin1696.fits evtable="EVENTS" outfile="/scratch/kocevski/794196/ft1_filtered_4FGL_J2335.4-0128_daily_bin1696.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.46
user 0.32
sys 0.13

Number of photons that the gtmktime cut: 526

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/794196/ft1_filtered_4FGL_J2335.4-0128_daily_bin1696.fits" evtable="EVENTS" scfile=/scratch/kocevski/794196/ft2_4FGL_J2335.4-0128_daily_bin1696.fits sctable="SC_DATA" outfile=/scratch/kocevski/794196/ltcube_678931201_679190401_4FGL_J2335.4-0128_daily_bin1696.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/794196/ft2_4FGL_J2335.4-0128_daily_bin1696.fits
.....................!
real 12.01
user 11.67
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/794196/ft1_filtered_4FGL_J2335.4-0128_daily_bin1696.fits evtable="EVENTS" scfile=/scratch/kocevski/794196/ft2_4FGL_J2335.4-0128_daily_bin1696.fits sctable="SC_DATA" expcube=/scratch/kocevski/794196/ltcube_678931201_679190401_4FGL_J2335.4-0128_daily_bin1696.fits outfile=/scratch/kocevski/794196/expmap_678931201_679190401_4FGL_J2335.4-0128_daily_bin1696.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/794196/ltcube_678931201_679190401_4FGL_J2335.4-0128_daily_bin1696.fits
.....................!
real 189.68
user 184.48
sys 4.88

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/794196/ft1_filtered_4FGL_J2335.4-0128_daily_bin1696.fits scfile=/scratch/kocevski/794196/ft2_4FGL_J2335.4-0128_daily_bin1696.fits outfile=/scratch/kocevski/794196/cmap_678931201_679190401_4FGL_J2335.4-0128_daily_bin1696.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/794196/ft1_filtered_4FGL_J2335.4-0128_daily_bin1696.fits scfile=/scratch/kocevski/794196/ft2_4FGL_J2335.4-0128_daily_bin1696.fits outfile=/scratch/kocevski/794196/cmap_HighResolution_678931201_679190401_4FGL_J2335.4-0128_daily_bin1696.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=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.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/794196/ft1_filtered_4FGL_J2335.4-0128_daily_bin1696.fits evtable="EVENTS" scfile=/scratch/kocevski/794196/ft2_4FGL_J2335.4-0128_daily_bin1696.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/794196/Model_4FGL_J2335.4-0128_daily_bin1696.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/794196/ft1_filtered_4FGL_J2335.4-0128_daily_bin1696.fits.....................!
real 58.09
user 56.73
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/794196/ft1_filtered_4FGL_J2335.4-0128_daily_bin1696.fits', '/scratch/kocevski/794196/ft2_4FGL_J2335.4-0128_daily_bin1696.fits', expMap='/scratch/kocevski/794196/expmap_678931201_679190401_4FGL_J2335.4-0128_daily_bin1696.fits', expCube='/scratch/kocevski/794196/ltcube_678931201_679190401_4FGL_J2335.4-0128_daily_bin1696.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/794196/Model_4FGL_J2335.4-0128_daily_bin1696.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/794196/ft1_filtered_4FGL_J2335.4-0128_daily_bin1696.fits
Spacecraft file(s): /scratch/kocevski/794196/ft2_4FGL_J2335.4-0128_daily_bin1696.fits
Exposure map: /scratch/kocevski/794196/expmap_678931201_679190401_4FGL_J2335.4-0128_daily_bin1696.fits
Exposure cube: /scratch/kocevski/794196/ltcube_678931201_679190401_4FGL_J2335.4-0128_daily_bin1696.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/794196/Model_4FGL_J2335.4-0128_daily_bin1696.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14022E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    40.027       1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.919       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.4898       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.804       1.0000         .10000E-03   10000.    
     7 'norm      '    .10188E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    32.938       1.0000         .10000E-03   10000.    
     9 'Prefactor '    65.761       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    93.022       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10519E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7563       1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.255       1.0000         .10000E-03   10000.    
    17 'norm      '    12.319       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.0193       1.0000         .10000E-03   10000.    
    20 'Prefactor '    30.786       1.0000         .10000E-03   10000.    
    21 'norm      '    12.869       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .89943E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .45897       1.0000         .10000E-03   10000.    
    25 'Prefactor '    19.046       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .99864       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .60624       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .95556       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=   5853.625     FROM MIGRAD    STATUS=CONVERGED    717 CALLS     3722 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.759       -.18678E-05** at limit **
   2  Prefactor     39.991        51.440       -.38856E-06   -.10461E-03
   3  Prefactor     37.921        15.757        .27155E-07   -.35549E-04
   4  Prefactor     3.4973        6.5358       -.25027E-07   -.17773E-03
   5  norm          .10000E-03    .62008        .50825E-07** at limit **
   6  Prefactor     25.811        20.373       -.24347E-06   -.13475E-03
   7  norm          .10000E-03    5.1148        .21058E-05** at limit **
   8  norm          32.938        16.906        .77893E-07   -.14211E-04
   9  Prefactor     65.755        38.091       -.39619E-07   -.32849E-04
  10  Prefactor     .10000E-03    8.4087       -.48402E-07** at limit **
  11  Prefactor     93.029        52.957        .18650E-06    .15907E-04
  12  Prefactor     .10000E-03    4.2342        .27727E-06** at limit **
  13  norm          .10000E-03    .30775       -.64132E-08** at limit **
  14  norm          .10000E-03    1.4564        .70593E-07** at limit **
  15  Prefactor     1.7548        6.9072        .16461E-05    .22414E-04
  16  Prefactor     22.247        52.735       -.30306E-06   -.38081E-04
  17  norm          12.320        9.1033       -.12470E-06   -.51070E-04
  18  Prefactor     .10000E-03    54.051       -.24893E-08** at limit **
  19  Prefactor     5.0246        9.6814        .22084E-06   -.67943E-04
  20  Prefactor     30.784        27.579       -.34191E-06   -.53917E-04
  21  norm          12.893        22.017       -.18161E-06   -.20176E-04
  22  Prefactor     .10000E-03    68.845        .36665E-06** at limit **
  23  Prefactor     .10000E-03    1.8077        .63113E-07** at limit **
  24  Prefactor     .51417        18.071        .19867E-05   -.25876E-03
  25  Prefactor     19.044        21.280        .50147E-07   -.53260E-04
  26  Prefactor     .10000E-03    5.8900        .16718E-07** at limit **
  27  Prefactor     .99963        3.7431        .14826E-05    .10606E-03
  28  Normalizat    .60607        .18940       -.86928E-06   -.13848E-03
  29  Prefactor     .95573        .13311        .19418E-06   -.21557E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 39.9914
  Prefactor  = 37.9205
  Prefactor  = 3.49731
  norm       = 0.0001
  Prefactor  = 25.8108
  norm       = 0.0001
  norm       = 32.9385
  Prefactor  = 65.7552
  Prefactor  = 0.0001
  Prefactor  = 93.029
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.75479
  Prefactor  = 22.2468
  norm       = 12.3202
  Prefactor  = 0.0001
  Prefactor  = 5.0246
  Prefactor  = 30.7835
  norm       = 12.8926
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.514167
  Prefactor  = 19.0436
  Prefactor  = 0.0001
  Prefactor  = 0.999635
  Normalizat = 0.606074
  Prefactor  = 0.955727
 **********
 **   18 **HESSE 
 **********

 FCN=   5853.625     FROM HESSE     STATUS=OK           555 CALLS     4277 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.949        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     39.991        51.147        .63356E-04   -1.4442    
   3  Prefactor     37.921        15.756        .65087E-04   -1.4476    
   4  Prefactor     3.4973        6.4181        .21644E-03   -1.5334    
   5  norm          .10000E-03    .62434        .58798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     25.811        20.303        .78860E-04   -1.4691    
   7  norm          .10000E-03    5.1969        .33250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          32.938        16.910        .69820E-04   -1.4559    
   9  Prefactor     65.755        38.096        .49490E-04   -1.4084    
  10  Prefactor     .10000E-03    8.4209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     93.029        53.171        .41668E-04   -1.3776    
  12  Prefactor     .10000E-03    4.2396        .15351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .31838        .82683E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.4588        .90147E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.7548        6.8449        .31626E-03   -1.5443    
  16  Prefactor     22.247        52.677        .84906E-04   -1.4764    
  17  norm          12.320        9.0687        .11413E-03   -1.5006    
  18  Prefactor     .10000E-03    54.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.0246        9.6373        .17949E-03   -1.5260    
  20  Prefactor     30.784        27.490        .72212E-04   -1.4598    
  21  norm          12.893        21.569        .11166E-03   -1.4990    
  22  Prefactor     .10000E-03    69.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.744        .18844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .51417        112.08        .57341E-02   -1.5565    
  25  Prefactor     19.044        21.258        .91775E-04   -1.4835    
  26  Prefactor     .10000E-03    5.9027        .18133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .99963        3.7115        .27908E-03   -1.5508    
  28  Normalizat    .60607        .21337        .31142E-03   -1.0773    
  29  Prefactor     .95573        .15370        .19044E-03   -.94220    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25251e-09
Minuit parameter uncertainties:
  1  3.80726e-05
  2  51.2029
  3  15.7577
  4  6.41936
  5  2.89498e-07
  6  20.3088
  7  2.19379e-05
  8  16.9121
  9  38.1105
  10  5.77407e-06
  11  53.1985
  12  2.77076e-06
  13  1.75798e-07
  14  6.96404e-07
  15  6.84797
  16  52.7876
  17  9.06973
  18  8.83669e-06
  19  9.64025
  20  27.5009
  21  21.5819
  22  0.000104446
  23  0.000135293
  24  15.2101
  25  21.2668
  26  3.03591e-06
  27  3.71232
  28  0.213658
  29  0.15377
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.289e+01  2.158e+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:  9.557e-01  1.538e-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:  6.061e-01  2.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.73
Ra Dec: 353.869 -1.476
Photon Flux Upper Limit: 7.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.01e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/794196/likelihoodResults_678931201_679190401_4FGL_J2335.4-0128_daily_bin1696.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5853.23532836
delta logL = 0.389242652042

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5853.19416714
delta logL = 0.430403876142

Fit tolerance = 1e-08

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

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

 FCN=   5853.194     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      207 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.847        24.422        .22476E-02    .18474E-02
   2  alpha         1.3744        1.1251        .48314E-01   -.14430E-03
   3  Normalizat    .61429        .17118        .69899E-01    .28758E-04
   4  Prefactor     .95264        .13027        .45672E-01    .25859E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 19.8473
  alpha      = 1.37443
  Normalizat = 0.614293
  Prefactor  = 0.952644
 **********
 **   18 **HESSE 
 **********

 FCN=   5853.194     FROM HESSE     STATUS=OK            29 CALLS      236 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.847        25.237        .89904E-04   -1.4817    
   2  alpha         1.3744        1.1596        .96627E-02   -.46702    
   3  Normalizat    .61429        .19591        .30938E-03   -1.0738    
   4  Prefactor     .95264        .14946        .19063E-03   -.94325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06512e-08
Minuit parameter uncertainties:
  1  25.2505
  2  1.21937
  3  0.196129
  4  0.149522
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/794196': 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) = 5853.19416709
delta logL = 0.430403925439

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.985e+01  2.525e+01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  1.374e+00  1.219e+00  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:  9.526e-01  1.495e-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:  6.143e-01  1.961e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.58
Ra Dec: 353.869 -1.476
Photon Index (Free Index): 1.37 +/- 1.22
Photon Flux (Free Index): 7.92e-09 +/- 1.26e-08
Energy Flux (Free Index): 1.24e-05 +/- 1.56e-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/794196/cmap_HighResolution_678931201_679190401_4FGL_J2335.4-0128_daily_bin1696.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.01e-05', comment='SUCCESS', energy_flux2='1.24e-05', dlogl='4.30e-01', photon_flux2='7.92e-09', job_status='DONE', time_completed='2022-07-11 00:51:14.298780', photon_index_error2='1.22', photon_index2='1.37', ts='0.73', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='7.25e-08', energy_flux_error2='1.56e-05', EG='0.61', time_epoch_completed='1657525874.3', return_code='0', job_id='794196', GAL2='0.95', EG2='0.61', return_code2='0', photon_flux_error2='1.26e-08', ts2='1.58', photon_index='2.50' WHERE bin_id='1696' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 11 00:51:14 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 794196: <4FGL_J2335.4-0128_daily_bin1696> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin1696> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Jul 11 00:35:31 2022
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 11 00:35:32 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul 11 00:35:32 2022
Terminated at Mon Jul 11 00:51:14 2022
Results reported at Mon Jul 11 00:51:14 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin1696 353.869 -1.476 678931201 679190401 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 :                                   731.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            943 sec.

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

