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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin693
RA = 353.869, Dec = -1.476
tmin = 418953601, tmax = 419212801
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='31686', job_status='RUN', time_executed='2021-09-30 00:17:20.422595', time_epoch_executed='1632986240.42' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='693'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31686

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31686/ft1_4FGL_J2335.4-0128_daily_bin693.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31686/ft2_4FGL_J2335.4-0128_daily_bin693.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31686/ft1_4FGL_J2335.4-0128_daily_bin693.fits outfile=/scratch/kocevski/31686/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin693.fits ra=353.869 dec=-1.476 rad=12.0 tmin=418953601.0 tmax=419212801.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.52
user 5.24
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31686/ft1_filtered_4FGL_J2335.4-0128_daily_bin693.fits" evtable="EVENTS" scfile=/scratch/kocevski/31686/ft2_4FGL_J2335.4-0128_daily_bin693.fits sctable="SC_DATA" outfile=/scratch/kocevski/31686/ltcube_418953601_419212801_4FGL_J2335.4-0128_daily_bin693.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/31686/ft2_4FGL_J2335.4-0128_daily_bin693.fits
.....................!
real 11.91
user 11.52
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31686/ft1_filtered_4FGL_J2335.4-0128_daily_bin693.fits evtable="EVENTS" scfile=/scratch/kocevski/31686/ft2_4FGL_J2335.4-0128_daily_bin693.fits sctable="SC_DATA" expcube=/scratch/kocevski/31686/ltcube_418953601_419212801_4FGL_J2335.4-0128_daily_bin693.fits outfile=/scratch/kocevski/31686/expmap_418953601_419212801_4FGL_J2335.4-0128_daily_bin693.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/31686/ltcube_418953601_419212801_4FGL_J2335.4-0128_daily_bin693.fits
.....................!
real 189.54
user 185.00
sys 4.20

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/31686/ft1_filtered_4FGL_J2335.4-0128_daily_bin693.fits scfile=/scratch/kocevski/31686/ft2_4FGL_J2335.4-0128_daily_bin693.fits outfile=/scratch/kocevski/31686/cmap_418953601_419212801_4FGL_J2335.4-0128_daily_bin693.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/31686/ft1_filtered_4FGL_J2335.4-0128_daily_bin693.fits scfile=/scratch/kocevski/31686/ft2_4FGL_J2335.4-0128_daily_bin693.fits outfile=/scratch/kocevski/31686/cmap_HighResolution_418953601_419212801_4FGL_J2335.4-0128_daily_bin693.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.59
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/31686/ft1_filtered_4FGL_J2335.4-0128_daily_bin693.fits evtable="EVENTS" scfile=/scratch/kocevski/31686/ft2_4FGL_J2335.4-0128_daily_bin693.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31686/Model_4FGL_J2335.4-0128_daily_bin693.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/31686/ft1_filtered_4FGL_J2335.4-0128_daily_bin693.fits.....................!
real 32.87
user 31.57
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.544       1.0000         .10000E-03   10000.    
     2 'Prefactor '    34.384       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.5518       1.0000         .10000E-03   10000.    
     6 'Prefactor '    33.205       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.815       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.2839       1.0000         .10000E-03   10000.    
    16 'Prefactor '    82.419       1.0000         .10000E-03   10000.    
    17 'norm      '    9.0350       1.0000         .10000E-03   10000.    
    18 'Prefactor '    229.73       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.3846       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10651E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .23394E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.1461       1.0000         .10000E-03   10000.    
    24 'Prefactor '    111.05       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .52023       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .99402       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=   2569.394     FROM MIGRAD    STATUS=CONVERGED    732 CALLS     3667 TOTAL
                     EDM=   .78E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.544        11.568       -.11095E-06   -.38842E-05
   2  Prefactor     34.419        68.603        .31758E-05    .62282E-04
   3  Prefactor     .10000E-03    7.2690       -.93326E-09** at limit **
   4  Prefactor     .10000E-03    6.5421        .14390E-06** at limit **
   5  norm          3.5518        3.0426        .42367E-07   -.69106E-05
   6  Prefactor     33.201        24.224       -.53908E-07    .17379E-05
   7  norm          .10000E-03    2.6843        .71367E-07** at limit **
   8  norm          .10000E-03    40.048        .14577E-06** at limit **
   9  Prefactor     .10000E-03    98.291       -.74400E-06** at limit **
  10  Prefactor     .10000E-03    21.802        .57483E-07** at limit **
  11  Prefactor     22.799        59.161       -.18192E-06   -.12881E-04
  12  Prefactor     .10000E-03    20.213       -.42529E-06** at limit **
  13  norm          .10000E-03    .62221       -.11635E-07** at limit **
  14  norm          .10000E-03    2.8199       -.24826E-07** at limit **
  15  Prefactor     7.2853        16.504        .21922E-05   -.10970E-03
  16  Prefactor     82.448        105.13        .28030E-05    .57189E-04
  17  norm          9.0357        15.767        .12491E-05   -.11110E-03
  18  Prefactor     229.72        309.20       -.13895E-05   -.99386E-05
  19  Prefactor     7.3836        27.270       -.25261E-06   -.19376E-04
  20  Prefactor     .10000E-03    34.262       -.25393E-06** at limit **
  21  norm          .10000E-03    99.228        .32145E-06** at limit **
  22  Prefactor     .10000E-03    464.92       -.37564E-07** at limit **
  23  Prefactor     7.1480        11.334        .31815E-06   -.35244E-04
  24  Prefactor     111.05        69.490       -.38261E-06   -.15189E-04
  25  Prefactor     .10000E-03    11.333       -.38283E-07** at limit **
  26  Prefactor     .10000E-03    18.073        .59663E-08** at limit **
  27  Prefactor     .10000E-03    3.3296        .22692E-07** at limit **
  28  Normalizat    .52017        .28118       -.75337E-06   -.10526E-04
  29  Prefactor     .99405        .19868       -.34977E-06    .75180E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.5437
  Prefactor  = 34.4189
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.55181
  Prefactor  = 33.2007
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.7989
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.2853
  Prefactor  = 82.4481
  norm       = 9.03572
  Prefactor  = 229.716
  Prefactor  = 7.38357
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.14797
  Prefactor  = 111.047
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.52017
  Prefactor  = 0.994048
 **********
 **   18 **HESSE 
 **********

 FCN=   2569.394     FROM HESSE     STATUS=OK           541 CALLS     4208 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.544        11.581        .11310E-03   -1.4999    
   2  Prefactor     34.419        70.667        .68340E-04   -1.4534    
   3  Prefactor     .10000E-03    7.2734        .13347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.5836        .12651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.5518        3.0449        .78381E-04   -1.5331    
   6  Prefactor     33.201        24.225        .69539E-04   -1.4555    
   7  norm          .10000E-03    2.7001        .81034E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    40.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    98.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     22.799        58.969        .83859E-04   -1.4753    
  12  Prefactor     .10000E-03    20.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .63622        .77889E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.8217        .83115E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.2853        16.693        .74309E-03   -1.5168    
  16  Prefactor     82.448        108.07        .44244E-04   -1.3889    
  17  norm          9.0357        15.791        .66670E-03   -1.5107    
  18  Prefactor     229.72        309.46        .13350E-03   -1.2665    
  19  Prefactor     7.3836        26.754        .14759E-03   -1.5164    
  20  Prefactor     .10000E-03    34.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    99.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    470.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.1480        11.139        .15006E-03   -1.5173    
  24  Prefactor     111.05        69.530        .38171E-04   -1.3596    
  25  Prefactor     .10000E-03    11.340        .16668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    18.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    3.3360        .90326E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .52017        .31975        .33120E-03   -1.1149    
  29  Prefactor     .99405        .22823        .18444E-03   -.92928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80484e-10
Minuit parameter uncertainties:
  1  11.5829
  2  70.8396
  3  1.14881e-06
  4  9.24754e-06
  5  3.04507
  6  24.232
  7  1.71908e-06
  8  5.69148e-05
  9  0.000211091
  10  4.88769e-06
  11  59.1207
  12  4.58716e-05
  13  3.21768e-07
  14  1.80835e-06
  15  16.7033
  16  108.329
  17  15.7979
  18  311.704
  19  26.7974
  20  5.4306e-05
  21  0.000161529
  22  0.000769689
  23  11.1425
  24  69.5812
  25  3.76285e-07
  26  5.19526e-08
  27  1.17324e-06
  28  0.320885
  29  0.228452
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.615e-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:  9.940e-01  2.285e-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:  5.202e-01  3.209e-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.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.43e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/31686/likelihoodResults_418953601_419212801_4FGL_J2335.4-0128_daily_bin693.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) = 2569.39412376
delta logL = -4.76790164612e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2569.39407641
delta logL = -3.20378603647e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14371E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4873       1.0000          .0000       5.0000    
     3 'Normalizat'    .52020       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99406       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=   2569.394     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      203 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10025E-03    460.03        .90712E-02** at limit **
   2  alpha         2.5939        3.7935        .41152       -.66263E-05
   3  Normalizat    .52017        .25551        .74800E-01    .22912E-04
   4  Prefactor     .99405        .19412        .46193E-01    .20107E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100245
  alpha      = 2.59392
  Normalizat = 0.520171
  Prefactor  = 0.994048
 **********
 **   18 **HESSE 
 **********

 FCN=   2569.394     FROM HESSE     STATUS=OK            29 CALLS      232 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10025E-03    169.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5939        3.5764        .16461        .37575E-01
   3  Normalizat    .52017        .28951        .33120E-03   -1.1149    
   4  Prefactor     .99405        .22060        .18444E-03   -.92928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3739e-09
Minuit parameter uncertainties:
  1  0.0129202
  2  2.51135
  3  0.290353
  4  0.220801
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31686': 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) = 2569.39407586
delta logL = 2.22178186959e-07

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.002e-04  1.292e-02  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.594e+00  2.511e+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.940e-01  2.208e-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:  5.202e-01  2.904e-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/31686/cmap_HighResolution_418953601_419212801_4FGL_J2335.4-0128_daily_bin693.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.43e-05', job_status='DONE', photon_flux_upper_limit='1.31e-07', time_completed='2021-09-30 00:25:38.571454', job_id='31686', GAL2='0.99', fit_tolerance='1e-08', EG2='0.52', EG='0.52', time_epoch_completed='1632986738.57', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.22e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='693' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:25:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 31686: <4FGL_J2335.4-0128_daily_bin693> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin693> 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) <bullet0242>, 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:25:39 2021
Results reported at Thu Sep 30 00:25:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin693 353.869 -1.476 418953601 419212801 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 :                                   496.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   579 sec.
    Turnaround time :                            582 sec.

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

