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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin692
RA = 353.869, Dec = -1.476
tmin = 418694401, tmax = 418953601
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='31684', job_status='RUN', time_executed='2021-09-30 00:19:09.873039', time_epoch_executed='1632986349.87' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='692'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31684

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31684/ft1_4FGL_J2335.4-0128_daily_bin692.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31684/ft2_4FGL_J2335.4-0128_daily_bin692.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31684/ft1_4FGL_J2335.4-0128_daily_bin692.fits outfile=/scratch/kocevski/31684/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin692.fits ra=353.869 dec=-1.476 rad=12.0 tmin=418694401.0 tmax=418953601.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 5.15
user 4.89
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31684/ft1_filtered_4FGL_J2335.4-0128_daily_bin692.fits" evtable="EVENTS" scfile=/scratch/kocevski/31684/ft2_4FGL_J2335.4-0128_daily_bin692.fits sctable="SC_DATA" outfile=/scratch/kocevski/31684/ltcube_418694401_418953601_4FGL_J2335.4-0128_daily_bin692.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/31684/ft2_4FGL_J2335.4-0128_daily_bin692.fits
.....................!
real 12.02
user 11.61
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31684/ft1_filtered_4FGL_J2335.4-0128_daily_bin692.fits evtable="EVENTS" scfile=/scratch/kocevski/31684/ft2_4FGL_J2335.4-0128_daily_bin692.fits sctable="SC_DATA" expcube=/scratch/kocevski/31684/ltcube_418694401_418953601_4FGL_J2335.4-0128_daily_bin692.fits outfile=/scratch/kocevski/31684/expmap_418694401_418953601_4FGL_J2335.4-0128_daily_bin692.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/31684/ltcube_418694401_418953601_4FGL_J2335.4-0128_daily_bin692.fits
.....................!
real 190.12
user 184.30
sys 5.51

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/31684/ft1_filtered_4FGL_J2335.4-0128_daily_bin692.fits scfile=/scratch/kocevski/31684/ft2_4FGL_J2335.4-0128_daily_bin692.fits outfile=/scratch/kocevski/31684/cmap_418694401_418953601_4FGL_J2335.4-0128_daily_bin692.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31684/ft1_filtered_4FGL_J2335.4-0128_daily_bin692.fits scfile=/scratch/kocevski/31684/ft2_4FGL_J2335.4-0128_daily_bin692.fits outfile=/scratch/kocevski/31684/cmap_HighResolution_418694401_418953601_4FGL_J2335.4-0128_daily_bin692.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.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/31684/ft1_filtered_4FGL_J2335.4-0128_daily_bin692.fits evtable="EVENTS" scfile=/scratch/kocevski/31684/ft2_4FGL_J2335.4-0128_daily_bin692.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31684/Model_4FGL_J2335.4-0128_daily_bin692.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/31684/ft1_filtered_4FGL_J2335.4-0128_daily_bin692.fits.....................!
real 35.72
user 34.43
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    107.13       1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.629       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    12.522       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.424       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    75.072       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.9966       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    99.647       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.4035       1.0000         .10000E-03   10000.    
    20 'Prefactor '    58.104       1.0000         .10000E-03   10000.    
    21 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    32.033       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .48358       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.7197       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    34.348       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .11067       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3726       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=   2824.489     FROM MIGRAD    STATUS=CONVERGED   1271 CALLS     4838 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.4295        .12090E-02** at limit **
   2  Prefactor     107.14        105.30        .38855E-04   -.33063E-05
   3  Prefactor     21.626        27.572        .86125E-04   -.40920E-05
   4  Prefactor     .10000E-03    18.539        .36285E-03** at limit **
   5  norm          12.523        5.9588        .77761E-04   -.11915E-04
   6  Prefactor     18.448        31.414        .93310E-04   -.56046E-05
   7  norm          .10000E-03    3.5844        .97759E-03** at limit **
   8  norm          .10000E-03    12.856        .18142E-02** at limit **
   9  Prefactor     .10000E-03    227.17        .18142E-02** at limit **
  10  Prefactor     75.080        50.352        .46341E-04   -.23085E-04
  11  Prefactor     .10000E-03    29.349        .18142E-02** at limit **
  12  Prefactor     .10000E-03    4.2880        .10745E-02** at limit **
  13  norm          1.9965        1.5909        .56699E-04   -.55140E-04
  14  norm          .10000E-03    2.5617        .83054E-03** at limit **
  15  Prefactor     .10000E-03    6.9632        .13686E-02** at limit **
  16  Prefactor     99.610        118.61        .20136E-03   -.62951E-05
  17  norm          .10000E-03    4.6583        .11197E-02** at limit **
  18  Prefactor     .10000E-03    137.32        .18142E-02** at limit **
  19  Prefactor     7.4014        38.913        .14740E-03   -.53218E-05
  20  Prefactor     58.107        41.310        .52631E-04   -.19959E-04
  21  norm          .10000E-03    118.28        .18142E-02** at limit **
  22  Prefactor     32.030        67.175        .70797E-04   -.52189E-05
  23  Prefactor     .47930        76.569        .23886E-02   -.18077E-03
  24  Prefactor     9.7163        85.270        .12854E-03   -.55722E-05
  25  Prefactor     .10000E-03    75.866        .18142E-02** at limit **
  26  Prefactor     34.348        26.690        .68376E-04   -.24425E-04
  27  Prefactor     .10000E-03    3.3159        .94445E-03** at limit **
  28  Normalizat    .11084        .34420        .76586E-02   -.12768E-04
  29  Prefactor     1.3725        .25599        .18332E-03   -.60745E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 107.145
  Prefactor  = 21.6262
  Prefactor  = 0.0001
  norm       = 12.5228
  Prefactor  = 18.448
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 75.0796
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.99648
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 99.6102
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.40138
  Prefactor  = 58.1071
  norm       = 0.0001
  Prefactor  = 32.0303
  Prefactor  = 0.479301
  Prefactor  = 9.71631
  Prefactor  = 0.0001
  Prefactor  = 34.3481
  Prefactor  = 0.0001
  Normalizat = 0.110843
  Prefactor  = 1.37249
 **********
 **   18 **HESSE 
 **********

 FCN=   2824.489     FROM HESSE     STATUS=OK           527 CALLS     5365 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.4296        .24180E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     107.14        105.25        .77709E-05   -1.3634    
   3  Prefactor     21.626        27.564        .34450E-05   -1.4778    
   4  Prefactor     .10000E-03    18.540        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          12.523        5.9507        .31104E-05   -1.5000    
   6  Prefactor     18.448        31.361        .37324E-05   -1.4849    
   7  norm          .10000E-03    3.5846        .19552E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    12.857        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    227.24        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     75.080        50.313        .92683E-05   -1.3973    
  11  Prefactor     .10000E-03    29.349        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.2881        .21490E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.9965        1.5908        .22679E-05   -1.5425    
  14  norm          .10000E-03    2.5617        .16611E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.9634        .27373E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     99.610        118.22        .80545E-05   -1.3709    
  17  norm          .10000E-03    4.6584        .22393E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    137.32        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.4014        34.079        .58961E-05   -1.5164    
  20  Prefactor     58.107        41.277        .10526E-04   -1.4182    
  21  norm          .10000E-03    118.30        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     32.030        67.146        .28319E-05   -1.4575    
  23  Prefactor     .47930        65.181        .95546E-04   -1.5570    
  24  Prefactor     9.7163        85.241        .51414E-05   -1.5084    
  25  Prefactor     .10000E-03    75.887        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     34.348        26.636        .13675E-04   -1.4535    
  27  Prefactor     .10000E-03    3.3160        .18889E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .11084        .32532        .30634E-03   -1.3695    
  29  Prefactor     1.3725        .24468        .73327E-05   -.81176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04586e-09
Minuit parameter uncertainties:
  1  2.39429e-06
  2  105.438
  3  27.5805
  4  3.06751e-05
  5  5.951
  6  31.389
  7  3.12989e-06
  8  1.06611e-05
  9  0.000205984
  10  50.3418
  11  5.89636e-06
  12  1.10847e-06
  13  1.59082
  14  3.95423e-07
  15  4.75278e-06
  16  118.5
  17  2.52883e-06
  18  5.92958e-05
  19  31.7935
  20  41.297
  21  0.000301196
  22  67.3045
  23  11.1901
  24  57.668
  25  0.000115951
  26  26.6456
  27  1.28352e-06
  28  0.331373
  29  0.244891
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  3.012e-04  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:  1.372e+00  2.449e-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.108e-01  3.314e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 353.869 -1.476
Photon Flux Upper Limit: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.36e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/31684/likelihoodResults_418694401_418953601_4FGL_J2335.4-0128_daily_bin692.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) = 2824.48953071
delta logL = -4.01697352572e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2824.4895307
delta logL = -4.01658721785e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96353E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5048       1.0000          .0000       5.0000    
     3 'Normalizat'    .11084       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3725       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=   2824.489     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      199 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    127.71        .90713E-02** at limit **
   2  alpha         2.4471        2.0985        .41152        .26282E-05
   3  Normalizat    .11084        8.7115        .18124        .69692E-04
   4  Prefactor     1.3725        1.8201        .31453E-01    .12935E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  alpha      = 2.44708
  Normalizat = 0.110843
  Prefactor  = 1.37249
 **********
 **   18 **HESSE 
 **********

 FCN=   2824.489     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    130.22        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4471        3.5396        .16461       -.21168E-01
   3  Normalizat    .11084        .29788        .76588E-02   -1.3695    
   4  Prefactor     1.3725        .24065        .18332E-03   -.81176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.57204e-11
Minuit parameter uncertainties:
  1  0.00107903
  2  2.4999
  3  0.302484
  4  0.240846
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31684': 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) = 2824.48949048
delta logL = 5.87501745031e-08

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.079e-03  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.447e+00  2.500e+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:  1.372e+00  2.408e-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.108e-01  3.025e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/31684/cmap_HighResolution_418694401_418953601_4FGL_J2335.4-0128_daily_bin692.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.36e-05', job_status='DONE', photon_flux_upper_limit='1.29e-07', time_completed='2021-09-30 00:28:37.550946', job_id='31684', GAL2='1.37', fit_tolerance='1e-08', EG2='0.11', EG='0.11', time_epoch_completed='1632986917.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='5.88e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='692' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:28:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 31684: <4FGL_J2335.4-0128_daily_bin692> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin692> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep 30 00:15:57 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:15:59 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:15:59 2021
Terminated at Thu Sep 30 00:28:38 2021
Results reported at Thu Sep 30 00:28:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin692 353.869 -1.476 418694401 418953601 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 :                                   566.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             263.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            761 sec.

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

