/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 114 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 = 7627
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2335.4-0128_daily_bin860
RA = 353.869, Dec = -1.476
tmin = 462240001, tmax = 462499201
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='32960', job_status='RUN', time_executed='2021-09-30 00:22:39.457618', time_epoch_executed='1632986559.46' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='860'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32960

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32960/ft1_4FGL_J2335.4-0128_daily_bin860.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32960/ft2_4FGL_J2335.4-0128_daily_bin860.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32960/ft1_4FGL_J2335.4-0128_daily_bin860.fits outfile=/scratch/kocevski/32960/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin860.fits ra=353.869 dec=-1.476 rad=12.0 tmin=462240001.0 tmax=462499201.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.68
user 3.48
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/32960/ft2_4FGL_J2335.4-0128_daily_bin860.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/32960/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin860.fits evtable="EVENTS" outfile="/scratch/kocevski/32960/ft1_filtered_4FGL_J2335.4-0128_daily_bin860.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/32960/ft1_filtered_4FGL_J2335.4-0128_daily_bin860.fits" evtable="EVENTS" scfile=/scratch/kocevski/32960/ft2_4FGL_J2335.4-0128_daily_bin860.fits sctable="SC_DATA" outfile=/scratch/kocevski/32960/ltcube_462240001_462499201_4FGL_J2335.4-0128_daily_bin860.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/32960/ft2_4FGL_J2335.4-0128_daily_bin860.fits
.....................!
real 11.81
user 11.47
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32960/ft1_filtered_4FGL_J2335.4-0128_daily_bin860.fits evtable="EVENTS" scfile=/scratch/kocevski/32960/ft2_4FGL_J2335.4-0128_daily_bin860.fits sctable="SC_DATA" expcube=/scratch/kocevski/32960/ltcube_462240001_462499201_4FGL_J2335.4-0128_daily_bin860.fits outfile=/scratch/kocevski/32960/expmap_462240001_462499201_4FGL_J2335.4-0128_daily_bin860.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/32960/ltcube_462240001_462499201_4FGL_J2335.4-0128_daily_bin860.fits
.....................!
real 191.93
user 186.55
sys 4.94

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/32960/ft1_filtered_4FGL_J2335.4-0128_daily_bin860.fits scfile=/scratch/kocevski/32960/ft2_4FGL_J2335.4-0128_daily_bin860.fits outfile=/scratch/kocevski/32960/cmap_462240001_462499201_4FGL_J2335.4-0128_daily_bin860.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32960/ft1_filtered_4FGL_J2335.4-0128_daily_bin860.fits scfile=/scratch/kocevski/32960/ft2_4FGL_J2335.4-0128_daily_bin860.fits outfile=/scratch/kocevski/32960/cmap_HighResolution_462240001_462499201_4FGL_J2335.4-0128_daily_bin860.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/32960/ft1_filtered_4FGL_J2335.4-0128_daily_bin860.fits evtable="EVENTS" scfile=/scratch/kocevski/32960/ft2_4FGL_J2335.4-0128_daily_bin860.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/32960/Model_4FGL_J2335.4-0128_daily_bin860.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/32960/ft1_filtered_4FGL_J2335.4-0128_daily_bin860.fits.....................!
real 61.23
user 59.85
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/32960/ft1_filtered_4FGL_J2335.4-0128_daily_bin860.fits', '/scratch/kocevski/32960/ft2_4FGL_J2335.4-0128_daily_bin860.fits', expMap='/scratch/kocevski/32960/expmap_462240001_462499201_4FGL_J2335.4-0128_daily_bin860.fits', expCube='/scratch/kocevski/32960/ltcube_462240001_462499201_4FGL_J2335.4-0128_daily_bin860.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/32960/Model_4FGL_J2335.4-0128_daily_bin860.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/32960/ft1_filtered_4FGL_J2335.4-0128_daily_bin860.fits
Spacecraft file(s): /scratch/kocevski/32960/ft2_4FGL_J2335.4-0128_daily_bin860.fits
Exposure map: /scratch/kocevski/32960/expmap_462240001_462499201_4FGL_J2335.4-0128_daily_bin860.fits
Exposure cube: /scratch/kocevski/32960/ltcube_462240001_462499201_4FGL_J2335.4-0128_daily_bin860.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/32960/Model_4FGL_J2335.4-0128_daily_bin860.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) = 6136.48394468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8112       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.189       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1271       1.0000         .10000E-03   10000.    
     5 'norm      '    3.8495       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .22599E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .53264E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    36.107       1.0000         .10000E-03   10000.    
     9 'Prefactor '    45.157       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.788       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.562       1.0000         .10000E-03   10000.    
    13 'norm      '    4.7421       1.0000         .10000E-03   10000.    
    14 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13977E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    32.421       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.162       1.0000         .10000E-03   10000.    
    21 'norm      '    2.7050       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .65731E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    30.319       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.2967       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0534       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .88581       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=   6136.440     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     4668 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8133        7.9033        .85124E-06   -.41871E-04
   2  Prefactor     19.979        53.307        .30262E-06   -.27720E-04
   3  Prefactor     .10000E-03    44.426       -.23567E-05** at limit **
   4  Prefactor     4.1345        9.0203       -.90821E-06   -.20306E-03
   5  norm          3.8508        3.7693        .31996E-06    .15007E-03
   6  Prefactor     .10000E-03    63.427        .22501E-05** at limit **
   7  norm          .10011E-03    3.8617        .89404E-07** at limit **
   8  norm          36.105        17.022        .97593E-07   -.12038E-04
   9  Prefactor     45.152        38.059        .21745E-06   -.88715E-05
  10  Prefactor     .10000E-03    10.777        .45197E-07** at limit **
  11  Prefactor     25.761        76.521        .40447E-05   -.38298E-05
  12  Prefactor     11.562        11.975       -.74719E-06   -.18661E-04
  13  norm          4.7414        1.4125       -.29144E-07   -.25617E-03
  14  norm          .10000E-03    3.1714        .38480E-07** at limit **
  15  Prefactor     .10000E-03    37.238        .11329E-05** at limit **
  16  Prefactor     .10000E-03    56.642        .78430E-06** at limit **
  17  norm          32.417        13.831       -.42469E-07   -.97908E-04
  18  Prefactor     .10000E-03    74.098       -.39178E-06** at limit **
  19  Prefactor     .10000E-03    8.8529        .34215E-06** at limit **
  20  Prefactor     14.155        31.169       -.99734E-07   -.21535E-04
  21  norm          2.6899        19.638        .43043E-05   -.74785E-04
  22  Prefactor     .10000E-03    77.490       -.26185E-05** at limit **
  23  Prefactor     .10000E-03    2.3031       -.16152E-06** at limit **
  24  Prefactor     .10000E-03    31.981        .33888E-07** at limit **
  25  Prefactor     30.313        26.127       -.32108E-09   -.85319E-05
  26  Prefactor     .10000E-03    7.4216        .30733E-07** at limit **
  27  Prefactor     8.2957        10.526        .89051E-07   -.48537E-04
  28  Normalizat    1.0537        .22508       -.19696E-06   -.88049E-04
  29  Prefactor     .88571        .15102       -.62126E-06   -.12615E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.81332
  Prefactor  = 19.9794
  Prefactor  = 0.0001
  Prefactor  = 4.13453
  norm       = 3.85082
  Prefactor  = 0.0001
  norm       = 0.000100112
  norm       = 36.1046
  Prefactor  = 45.1523
  Prefactor  = 0.0001
  Prefactor  = 25.7605
  Prefactor  = 11.5616
  norm       = 4.74144
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 32.4174
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.1552
  norm       = 2.68986
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 30.3129
  Prefactor  = 0.0001
  Prefactor  = 8.29573
  Normalizat = 1.05369
  Prefactor  = 0.885713
 **********
 **   18 **HESSE 
 **********

 FCN=   6136.440     FROM HESSE     STATUS=OK           561 CALLS     5229 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8133        7.8206        .16660E-03   -1.5226    
   2  Prefactor     19.979        53.061        .89142E-04   -1.4814    
   3  Prefactor     .10000E-03    44.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.1345        7.7448        .19842E-03   -1.5301    
   5  norm          3.8508        3.7673        .13889E-03   -1.5315    
   6  Prefactor     .10000E-03    64.611        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10011E-03    64.452        .23487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          36.105        17.023        .66695E-04   -1.4505    
   9  Prefactor     45.152        38.065        .59663E-04   -1.4363    
  10  Prefactor     .10000E-03    10.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.761        76.377        .78885E-04   -1.4692    
  12  Prefactor     11.562        11.887        .11781E-03   -1.5028    
  13  norm          4.7414        1.4080        .48032E-04   -1.5272    
  14  norm          .10000E-03    3.1988        .13610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    38.431        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    56.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          32.417        13.789        .70372E-04   -1.4569    
  18  Prefactor     .10000E-03    74.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.9359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.155        31.160        .10643E-03   -1.4955    
  21  norm          2.6899        19.650        .12384E-02   -1.5380    
  22  Prefactor     .10000E-03    77.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    19.544        .22087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    32.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     30.313        26.142        .72765E-04   -1.4606    
  26  Prefactor     .10000E-03    7.4466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     8.2957        10.574        .13918E-03   -1.5132    
  28  Normalizat    1.0537        .26173        .29698E-03   -.91253    
  29  Prefactor     .88571        .17541        .23111E-03   -.96642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07371e-09
Minuit parameter uncertainties:
  1  7.82199
  2  53.1869
  3  4.86702e-05
  4  7.74665
  5  3.76756
  6  5.16459e-05
  7  0.00536822
  8  17.0249
  9  38.0859
  10  6.97738e-06
  11  76.6694
  12  11.8894
  13  1.40797
  14  3.284e-06
  15  6.37425e-08
  16  2.41465e-05
  17  13.79
  18  9.2095e-06
  19  3.59887e-06
  20  31.1962
  21  14.547
  22  6.27686e-05
  23  0.000437963
  24  2.63441e-05
  25  26.1518
  26  3.89125e-06
  27  10.5759
  28  0.26205
  29  0.17552
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  2.690e+00  1.455e+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:  8.857e-01  1.755e-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.054e+00  2.621e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/32960/likelihoodResults_462240001_462499201_4FGL_J2335.4-0128_daily_bin860.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) = 6136.42720626
delta logL = 0.0127689771325

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6136.42644479
delta logL = 0.0135304509195

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2952       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1484       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0496       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88661       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=   6136.426     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      272 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2973        50.968        .27092E-03    .92194E-04
   2  alpha         3.1523        3.5295        .61672E-01    .96769E-05
   3  Normalizat    1.0491        .24251        .29754E-03    .25367E-03
   4  Prefactor     .88689        .17238        .23096E-03    .38335E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.29731
  alpha      = 3.15225
  Normalizat = 1.04914
  Prefactor  = 0.886888
 **********
 **   18 **HESSE 
 **********

 FCN=   6136.426     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2973        16.392        .10837E-04   -1.5405    
   2  alpha         3.1523        4.0408        .24669E-02    .26396    
   3  Normalizat    1.0491        .23730        .11902E-04   -.91402    
   4  Prefactor     .88689        .17013        .46193E-04   -.96601    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49712e-10
Minuit parameter uncertainties:
  1  12.2775
  2  3.85265
  3  0.237537
  4  0.170233
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32960': 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) = 6136.42644224
delta logL = 0.0135329968043

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  2.297e+00  1.228e+01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  3.152e+00  3.853e+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:  8.869e-01  1.702e-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.049e+00  2.375e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
Ra Dec: 353.869 -1.476

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/32960/cmap_HighResolution_462240001_462499201_4FGL_J2335.4-0128_daily_bin860.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.65e-05', job_status='DONE', photon_flux_upper_limit='6.38e-08', time_completed='2021-09-30 00:36:10.554083', job_id='32960', GAL2='0.89', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1632987370.55', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.35e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='860' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:36:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 32960: <4FGL_J2335.4-0128_daily_bin860> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin860> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 00:20:33 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:20:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 00:20:35 2021
Terminated at Thu Sep 30 00:36:10 2021
Results reported at Thu Sep 30 00:36:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin860 353.869 -1.476 462240001 462499201 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 :                                   809.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            937 sec.

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

