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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin851
RA = 353.869, Dec = -1.476
tmin = 459907201, tmax = 460166401
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='32945', job_status='RUN', time_executed='2021-09-30 00:22:11.380495', time_epoch_executed='1632986531.38' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='851'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32945

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32945/ft1_4FGL_J2335.4-0128_daily_bin851.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32945/ft2_4FGL_J2335.4-0128_daily_bin851.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32945/ft1_4FGL_J2335.4-0128_daily_bin851.fits outfile=/scratch/kocevski/32945/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin851.fits ra=353.869 dec=-1.476 rad=12.0 tmin=459907201.0 tmax=460166401.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.41
user 3.19
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/32945/ft1_filtered_4FGL_J2335.4-0128_daily_bin851.fits" evtable="EVENTS" scfile=/scratch/kocevski/32945/ft2_4FGL_J2335.4-0128_daily_bin851.fits sctable="SC_DATA" outfile=/scratch/kocevski/32945/ltcube_459907201_460166401_4FGL_J2335.4-0128_daily_bin851.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/32945/ft2_4FGL_J2335.4-0128_daily_bin851.fits
.....................!
real 14.22
user 13.81
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32945/ft1_filtered_4FGL_J2335.4-0128_daily_bin851.fits evtable="EVENTS" scfile=/scratch/kocevski/32945/ft2_4FGL_J2335.4-0128_daily_bin851.fits sctable="SC_DATA" expcube=/scratch/kocevski/32945/ltcube_459907201_460166401_4FGL_J2335.4-0128_daily_bin851.fits outfile=/scratch/kocevski/32945/expmap_459907201_460166401_4FGL_J2335.4-0128_daily_bin851.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/32945/ltcube_459907201_460166401_4FGL_J2335.4-0128_daily_bin851.fits
.....................!
real 191.38
user 186.41
sys 4.66

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/32945/ft1_filtered_4FGL_J2335.4-0128_daily_bin851.fits scfile=/scratch/kocevski/32945/ft2_4FGL_J2335.4-0128_daily_bin851.fits outfile=/scratch/kocevski/32945/cmap_459907201_460166401_4FGL_J2335.4-0128_daily_bin851.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/32945/ft1_filtered_4FGL_J2335.4-0128_daily_bin851.fits scfile=/scratch/kocevski/32945/ft2_4FGL_J2335.4-0128_daily_bin851.fits outfile=/scratch/kocevski/32945/cmap_HighResolution_459907201_460166401_4FGL_J2335.4-0128_daily_bin851.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/32945/ft1_filtered_4FGL_J2335.4-0128_daily_bin851.fits evtable="EVENTS" scfile=/scratch/kocevski/32945/ft2_4FGL_J2335.4-0128_daily_bin851.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/32945/Model_4FGL_J2335.4-0128_daily_bin851.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/32945/ft1_filtered_4FGL_J2335.4-0128_daily_bin851.fits.....................!
real 62.48
user 61.18
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.108       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.9856       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.5283       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.621       1.0000         .10000E-03   10000.    
    13 'norm      '    2.4675       1.0000         .10000E-03   10000.    
    14 'norm      '    .97879E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    32.769       1.0000         .10000E-03   10000.    
    17 'norm      '    15.259       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.750       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    16.607       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1805       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .69008       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=   6314.328     FROM MIGRAD    STATUS=CONVERGED    700 CALLS     3704 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0599       -.10139E-06** at limit **
   2  Prefactor     .10000E-03    20.532        .14159E-05** at limit **
   3  Prefactor     .10000E-03    16.154        .56185E-06** at limit **
   4  Prefactor     10.108        5.7375        .27288E-05   -.88431E-05
   5  norm          .10000E-03    .95385       -.48853E-07** at limit **
   6  Prefactor     .10000E-03    5.4085       -.14560E-06** at limit **
   7  norm          .10000E-03    1.5863       -.25840E-06** at limit **
   8  norm          2.9851        9.8550       -.83990E-06   -.16647E-03
   9  Prefactor     .10000E-03    46.698        .18574E-04** at limit **
  10  Prefactor     6.5270        14.955       -.14229E-06   -.60460E-04
  11  Prefactor     .10000E-03    40.838       -.55510E-06** at limit **
  12  Prefactor     10.610        11.785        .17951E-06    .61712E-03
  13  norm          2.4672        1.0454        .41617E-07    .90841E-03
  14  norm          .10340E-03    5.3554       -.19226E-05** at limit **
  15  Prefactor     .10000E-03    14.830       -.33198E-05** at limit **
  16  Prefactor     32.768        40.453       -.53868E-06    .19435E-06
  17  norm          15.260        9.7396       -.14399E-06    .60379E-04
  18  Prefactor     .10000E-03    63.235        .28064E-04** at limit **
  19  Prefactor     14.750        9.5789       -.11980E-06    .25478E-04
  20  Prefactor     .10000E-03    9.9775        .41761E-06** at limit **
  21  norm          .10000E-03    6.5682        .66720E-07** at limit **
  22  Prefactor     .10000E-03    35.155       -.19141E-04** at limit **
  23  Prefactor     .10000E-03    1.1259        .64110E-07** at limit **
  24  Prefactor     .10000E-03    13.052       -.49663E-06** at limit **
  25  Prefactor     .10000E-03    19.264        .40875E-05** at limit **
  26  Prefactor     .10000E-03    12.791        .86142E-06** at limit **
  27  Prefactor     16.607        9.5045       -.12347E-06   -.15954E-04
  28  Normalizat    1.1805        .18425       -.71302E-06    .20139E-03
  29  Prefactor     .69013        .12906        .12629E-06    .11545E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.108
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.98514
  Prefactor  = 0.0001
  Prefactor  = 6.52702
  Prefactor  = 0.0001
  Prefactor  = 10.61
  norm       = 2.46721
  norm       = 0.0001034
  Prefactor  = 0.0001
  Prefactor  = 32.7684
  norm       = 15.2605
  Prefactor  = 0.0001
  Prefactor  = 14.7499
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.6072
  Normalizat = 1.18045
  Prefactor  = 0.690125
 **********
 **   18 **HESSE 
 **********

 FCN=   6314.328     FROM HESSE     STATUS=OK           551 CALLS     4255 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0641        .13572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.108        5.7329        .12603E-03   -1.5072    
   5  norm          .10000E-03    .97682        .15147E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.4167        .18048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.6043        .97602E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.9851        9.8474        .23495E-03   -1.5362    
   9  Prefactor     .10000E-03    47.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.5270        14.958        .15707E-03   -1.5197    
  11  Prefactor     .10000E-03    40.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.610        11.806        .12294E-03   -1.5056    
  13  norm          2.4672        1.0453        .26032E-04   -1.5394    
  14  norm          .10340E-03    5.6727        .51534E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.105        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     32.768        40.455        .69999E-04   -1.4562    
  17  norm          15.260        9.7175        .10253E-03   -1.4926    
  18  Prefactor     .10000E-03    63.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.750        9.5881        .10429E-03   -1.4940    
  20  Prefactor     .10000E-03    10.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    6.5713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    35.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.1293        .82296E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    13.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    19.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    12.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     16.607        9.5421        .98283E-04   -1.4893    
  28  Normalizat    1.1805        .21631        .24957E-03   -.87209    
  29  Prefactor     .69013        .15063        .22748E-03   -1.0392    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44906e-09
Minuit parameter uncertainties:
  1  3.32323e-06
  2  5.22668e-05
  3  1.13712e-05
  4  5.73317
  5  2.98999e-06
  6  2.24647e-05
  7  3.74998e-05
  8  9.85279
  9  8.80196e-05
  10  14.9663
  11  5.63178e-05
  12  11.8089
  13  1.04532
  14  0.0087842
  15  5.74503e-05
  16  40.4887
  17  9.71851
  18  7.94391e-06
  19  9.58906
  20  6.73494e-06
  21  2.76755e-06
  22  3.55038e-05
  23  1.06603e-06
  24  4.81543e-06
  25  3.03166e-06
  26  1.84269e-05
  27  9.543
  28  0.21647
  29  0.150718
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  2.768e-06  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:  6.901e-01  1.507e-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.180e+00  2.165e-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: 4.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.71e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/32945/likelihoodResults_459907201_460166401_4FGL_J2335.4-0128_daily_bin851.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): 102
logL (Free Index) = 6314.32856595
delta logL = -0.000722251569641

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6314.32784376
delta logL = -5.92444848735e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4918       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1805       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69009       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=   6314.328     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      240 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    325.30        .18142E-01** at limit **
   2  alpha         1.7344        3.5832        .16461       -.84260E-08
   3  Normalizat    1.1805        .30771E-01    .24957E-03    .21774E-04
   4  Prefactor     .69013        .22131E-01    .22748E-03    .24988E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.73444
  Normalizat = 1.18045
  Prefactor  = 0.690126
 **********
 **   18 **HESSE 
 **********

 FCN=   6314.328     FROM HESSE     STATUS=OK            23 CALLS      263 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.1161        .22074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7344        4.0733        .65843E-02   -.31122    
   3  Normalizat    1.1805        .20623        .99829E-05   -.87209    
   4  Prefactor     .69013        .14834        .90992E-05   -1.0392    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39887e-10
Minuit parameter uncertainties:
  1  0.00018798
  2  459.812
  3  0.206375
  4  0.148426
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32945': 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) = 6314.32784227
delta logL = 1.43342731462e-06

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.880e-04  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  1.734e+00  4.598e+02  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:  6.901e-01  1.484e-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.180e+00  2.064e-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/32945/cmap_HighResolution_459907201_460166401_4FGL_J2335.4-0128_daily_bin851.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.71e-05', job_status='DONE', photon_flux_upper_limit='4.11e-08', time_completed='2021-09-30 00:35:01.148182', job_id='32945', GAL2='0.69', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1632987301.15', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='1.43e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='851' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:35:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 32945: <4FGL_J2335.4-0128_daily_bin851> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin851> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 00:20:32 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:20:34 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:34 2021
Terminated at Thu Sep 30 00:35:04 2021
Results reported at Thu Sep 30 00:35:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin851 353.869 -1.476 459907201 460166401 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 :                                   768.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            872 sec.

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

