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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin919
RA = 353.869, Dec = -1.476
tmin = 477532801, tmax = 477792001
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='33050', job_status='RUN', time_executed='2021-09-30 00:23:48.233771', time_epoch_executed='1632986628.23' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='919'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/33050

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/33050/ft1_4FGL_J2335.4-0128_daily_bin919.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/33050/ft2_4FGL_J2335.4-0128_daily_bin919.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/33050/ft1_4FGL_J2335.4-0128_daily_bin919.fits outfile=/scratch/kocevski/33050/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin919.fits ra=353.869 dec=-1.476 rad=12.0 tmin=477532801.0 tmax=477792001.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.59
user 3.38
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/33050/ft1_filtered_4FGL_J2335.4-0128_daily_bin919.fits" evtable="EVENTS" scfile=/scratch/kocevski/33050/ft2_4FGL_J2335.4-0128_daily_bin919.fits sctable="SC_DATA" outfile=/scratch/kocevski/33050/ltcube_477532801_477792001_4FGL_J2335.4-0128_daily_bin919.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/33050/ft2_4FGL_J2335.4-0128_daily_bin919.fits
.....................!
real 15.16
user 14.79
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/33050/ft1_filtered_4FGL_J2335.4-0128_daily_bin919.fits evtable="EVENTS" scfile=/scratch/kocevski/33050/ft2_4FGL_J2335.4-0128_daily_bin919.fits sctable="SC_DATA" expcube=/scratch/kocevski/33050/ltcube_477532801_477792001_4FGL_J2335.4-0128_daily_bin919.fits outfile=/scratch/kocevski/33050/expmap_477532801_477792001_4FGL_J2335.4-0128_daily_bin919.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/33050/ltcube_477532801_477792001_4FGL_J2335.4-0128_daily_bin919.fits
.....................!
real 190.44
user 185.50
sys 4.63

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/33050/ft1_filtered_4FGL_J2335.4-0128_daily_bin919.fits scfile=/scratch/kocevski/33050/ft2_4FGL_J2335.4-0128_daily_bin919.fits outfile=/scratch/kocevski/33050/cmap_477532801_477792001_4FGL_J2335.4-0128_daily_bin919.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/33050/ft1_filtered_4FGL_J2335.4-0128_daily_bin919.fits scfile=/scratch/kocevski/33050/ft2_4FGL_J2335.4-0128_daily_bin919.fits outfile=/scratch/kocevski/33050/cmap_HighResolution_477532801_477792001_4FGL_J2335.4-0128_daily_bin919.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    41.815       1.0000         .10000E-03   10000.    
     3 'Prefactor '    44.678       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .11084E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.931       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    58.322       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.950       1.0000         .10000E-03   10000.    
    11 'Prefactor '    144.14       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11563E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.3273       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.8404       1.0000         .10000E-03   10000.    
    16 'Prefactor '    35.100       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.6712       1.0000         .10000E-03   10000.    
    20 'Prefactor '    45.404       1.0000         .10000E-03   10000.    
    21 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    53.036       1.0000         .10000E-03   10000.    
    26 'Prefactor '    21.714       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .16516E-02   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .87218       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .93446       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=   4989.771     FROM MIGRAD    STATUS=CONVERGED   1270 CALLS     4282 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.5165        .17586E-02** at limit **
   2  Prefactor     41.809        56.086        .61992E-04   -.42950E-04
   3  Prefactor     44.670        20.594        .59981E-04   -.19219E-03
   4  Prefactor     .10000E-03    1.6881        .89594E-03** at limit **
   5  norm          .10000E-03    2.7794        .16459E-02** at limit **
   6  Prefactor     15.937        16.108        .10034E-03   -.51890E-04
   7  norm          .10000E-03    1.0708        .71326E-03** at limit **
   8  norm          .10000E-03    7.8236        .18142E-02** at limit **
   9  Prefactor     58.319        47.859        .52533E-04   -.30687E-04
  10  Prefactor     17.951        26.488        .94533E-04   -.30787E-04
  11  Prefactor     144.19        84.659        .16780E-03   -.69716E-04
  12  Prefactor     .10000E-03    12.834        .18142E-02** at limit **
  13  norm          1.3277        1.1525        .19071E-03   -.39762E-03
  14  norm          .10000E-03    5.9051        .16640E-02** at limit **
  15  Prefactor     3.8394        9.8806        .20594E-03   -.28706E-05
  16  Prefactor     35.088        51.526        .67642E-04   -.36270E-04
  17  norm          .10000E-03    4.6727        .14885E-02** at limit **
  18  Prefactor     .10000E-03    87.817        .18142E-02** at limit **
  19  Prefactor     9.6733        12.191        .12886E-03   -.18969E-04
  20  Prefactor     45.406        28.420        .59502E-04   -.34010E-04
  21  norm          .10000E-03    29.137        .18142E-02** at limit **
  22  Prefactor     .10000E-03    22.276        .18142E-02** at limit **
  23  Prefactor     .10000E-03    2.4172        .10645E-02** at limit **
  24  Prefactor     .10000E-03    15.764        .18142E-02** at limit **
  25  Prefactor     53.037        31.453        .55074E-04   -.55322E-04
  26  Prefactor     21.718        16.324        .85956E-04   -.53698E-04
  27  Prefactor     .10000E-03    12.140        .59077E-01** at limit **
  28  Normalizat    .87157        .28508        .30472E-03   -.38915E-03
  29  Prefactor     .93490        .18671        .21519E-03   -.24965E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 41.8095
  Prefactor  = 44.6699
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.9366
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 58.3194
  Prefactor  = 17.9511
  Prefactor  = 144.194
  Prefactor  = 0.0001
  norm       = 1.32768
  norm       = 0.0001
  Prefactor  = 3.83944
  Prefactor  = 35.0882
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.67333
  Prefactor  = 45.4059
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.0373
  Prefactor  = 21.7178
  Prefactor  = 0.000100001
  Normalizat = 0.87157
  Prefactor  = 0.934903
 **********
 **   18 **HESSE 
 **********

 FCN=   4989.771     FROM HESSE     STATUS=OK           533 CALLS     4815 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.5169        .35173E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     41.809        56.087        .12398E-04   -1.4414    
   3  Prefactor     44.670        20.592        .11996E-04   -1.4370    
   4  Prefactor     .10000E-03    1.6881        .17919E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.7889        .32918E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.937        16.108        .20069E-04   -1.4909    
   7  norm          .10000E-03    1.0708        .14265E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.8246        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     58.319        47.859        .10507E-04   -1.4179    
  10  Prefactor     17.951        26.487        .37813E-05   -1.4860    
  11  Prefactor     144.19        84.637        .67120E-05   -1.3301    
  12  Prefactor     .10000E-03    12.836        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.3277        1.1522        .76283E-05   -1.5478    
  14  norm          .10000E-03    5.9076        .33279E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.8394        9.8791        .82376E-05   -1.5316    
  16  Prefactor     35.088        51.524        .13528E-04   -1.4523    
  17  norm          .10000E-03    4.6731        .29770E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    87.817        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.6733        12.187        .51544E-05   -1.5086    
  20  Prefactor     45.406        28.412        .23801E-05   -1.4359    
  21  norm          .10000E-03    29.137        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    22.276        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.4174        .21291E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    15.765        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     53.037        31.450        .22030E-05   -1.4250    
  26  Prefactor     21.718        16.323        .34382E-05   -1.4776    
  27  Prefactor     .10000E-03    11.100        .62628E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .87157        .28519        .60944E-04   -.97466    
  29  Prefactor     .93490        .18685        .43039E-04   -.94932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.33455e-10
Minuit parameter uncertainties:
  1  2.2115e-05
  2  56.1578
  3  20.5951
  4  3.6713e-06
  5  6.89275e-05
  6  16.1123
  7  2.46513e-06
  8  2.44452e-05
  9  47.8902
  10  26.5042
  11  84.7085
  12  0.000152739
  13  1.15227
  14  4.59031e-05
  15  9.88331
  16  51.5898
  17  2.09888e-06
  18  0.000217826
  19  12.1899
  20  28.4202
  21  9.55354e-06
  22  7.93146e-05
  23  3.87574e-06
  24  7.66437e-05
  25  31.4603
  26  16.3261
  27  0.00022443
  28  0.285687
  29  0.186974
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  9.554e-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:  9.349e-01  1.870e-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:  8.716e-01  2.857e-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: 7.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.94e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/33050/likelihoodResults_477532801_477792001_4FGL_J2335.4-0128_daily_bin919.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) = 4989.77155006
delta logL = -0.00016354811487

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4989.77138691
delta logL = -3.89498381992e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11917E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4928       1.0000          .0000       5.0000    
     3 'Normalizat'    .87161       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93491       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=   4989.771     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      193 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    29.578        .90712E-02** at limit **
   2  alpha         2.4854        3.5581        .41152        .13087E-05
   3  Normalizat    .87158        .21563        .68875E-01    .71176E-04
   4  Prefactor     .93490        .15823        .45448E-01    .79089E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.4854
  Normalizat = 0.871575
  Prefactor  = 0.934901
 **********
 **   18 **HESSE 
 **********

 FCN=   4989.771     FROM HESSE     STATUS=OK            33 CALLS      226 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    29.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4854        3.5495        .50000       -.58398E-02
   3  Normalizat    .87158        .24930        .30472E-03   -.97466    
   4  Prefactor     .93490        .18319        .21519E-03   -.94932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5897e-11
Minuit parameter uncertainties:
  1  0.000163639
  2  2.50391
  3  0.249627
  4  0.183309
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/33050': 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) = 4989.77138651
delta logL = 1.00017132354e-08

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.636e-04  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.485e+00  2.504e+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.349e-01  1.833e-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:  8.716e-01  2.496e-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/33050/cmap_HighResolution_477532801_477792001_4FGL_J2335.4-0128_daily_bin919.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.94e-05', job_status='DONE', photon_flux_upper_limit='7.09e-08', time_completed='2021-09-30 00:35:50.587807', job_id='33050', GAL2='0.93', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1632987350.59', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.00e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='919' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:35:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 33050: <4FGL_J2335.4-0128_daily_bin919> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin919 353.869 -1.476 477532801 477792001 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 :                                   720.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            911 sec.

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

