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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin553
RA = 353.869, Dec = -1.476
tmin = 382665601, tmax = 382924801
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='31464', job_status='RUN', time_executed='2021-09-30 00:17:29.076218', time_epoch_executed='1632986249.08' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='553'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31464

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31464/ft1_4FGL_J2335.4-0128_daily_bin553.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31464/ft2_4FGL_J2335.4-0128_daily_bin553.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31464/ft1_4FGL_J2335.4-0128_daily_bin553.fits outfile=/scratch/kocevski/31464/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin553.fits ra=353.869 dec=-1.476 rad=12.0 tmin=382665601.0 tmax=382924801.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.35
user 3.14
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/31464/ft2_4FGL_J2335.4-0128_daily_bin553.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/31464/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin553.fits evtable="EVENTS" outfile="/scratch/kocevski/31464/ft1_filtered_4FGL_J2335.4-0128_daily_bin553.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/31464/ft1_filtered_4FGL_J2335.4-0128_daily_bin553.fits" evtable="EVENTS" scfile=/scratch/kocevski/31464/ft2_4FGL_J2335.4-0128_daily_bin553.fits sctable="SC_DATA" outfile=/scratch/kocevski/31464/ltcube_382665601_382924801_4FGL_J2335.4-0128_daily_bin553.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/31464/ft2_4FGL_J2335.4-0128_daily_bin553.fits
.....................!
real 11.75
user 11.39
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31464/ft1_filtered_4FGL_J2335.4-0128_daily_bin553.fits evtable="EVENTS" scfile=/scratch/kocevski/31464/ft2_4FGL_J2335.4-0128_daily_bin553.fits sctable="SC_DATA" expcube=/scratch/kocevski/31464/ltcube_382665601_382924801_4FGL_J2335.4-0128_daily_bin553.fits outfile=/scratch/kocevski/31464/expmap_382665601_382924801_4FGL_J2335.4-0128_daily_bin553.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/31464/ltcube_382665601_382924801_4FGL_J2335.4-0128_daily_bin553.fits
.....................!
real 197.01
user 191.45
sys 5.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/31464/ft1_filtered_4FGL_J2335.4-0128_daily_bin553.fits scfile=/scratch/kocevski/31464/ft2_4FGL_J2335.4-0128_daily_bin553.fits outfile=/scratch/kocevski/31464/cmap_382665601_382924801_4FGL_J2335.4-0128_daily_bin553.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.54
user 0.36
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/31464/ft1_filtered_4FGL_J2335.4-0128_daily_bin553.fits evtable="EVENTS" scfile=/scratch/kocevski/31464/ft2_4FGL_J2335.4-0128_daily_bin553.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31464/Model_4FGL_J2335.4-0128_daily_bin553.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/31464/ft1_filtered_4FGL_J2335.4-0128_daily_bin553.fits.....................!
real 63.77
user 62.22
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3201       1.0000         .10000E-03   10000.    
     2 'Prefactor '    80.287       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10594E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14923E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .11281E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10362E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    14.711       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.6883       1.0000         .10000E-03   10000.    
    14 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .56182       1.0000         .10000E-03   10000.    
    16 'Prefactor '    128.31       1.0000         .10000E-03   10000.    
    17 'norm      '    4.4441       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .21681E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .77568       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.2645       1.0000         .10000E-03   10000.    
    21 'norm      '    47.283       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .94479       1.0000         .10000E-03   10000.    
    24 'Prefactor '    77.304       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .20286E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .70092       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0904       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=   6834.820     FROM MIGRAD    STATUS=CONVERGED    768 CALLS     3894 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3240        7.2922       -.16469E-05    .18307E-03
   2  Prefactor     80.280        54.288        .11746E-05    .10457E-03
   3  Prefactor     .10000E-03    14.313       -.30003E-06** at limit **
   4  Prefactor     .10000E-03    6.4377       -.23053E-05** at limit **
   5  norm          .10000E-03    1.0414       -.21721E-08** at limit **
   6  Prefactor     .10000E-03    10.155       -.16821E-06** at limit **
   7  norm          .10000E-03    1.7050       -.56136E-06** at limit **
   8  norm          14.710        13.419       -.34605E-06    .26449E-04
   9  Prefactor     .10000E-03    29.033       -.91188E-06** at limit **
  10  Prefactor     .10000E-03    17.419       -.36101E-06** at limit **
  11  Prefactor     .10000E-03    31.082       -.17643E-06** at limit **
  12  Prefactor     .10000E-03    1.9862       -.74225E-07** at limit **
  13  norm          2.6875        .95435        .26816E-08    .21891E-03
  14  norm          .10000E-03    2.5460       -.14273E-06** at limit **
  15  Prefactor     .56541        8.1138       -.91052E-06   -.44640E-04
  16  Prefactor     128.28        64.570        .11785E-05    .17276E-03
  17  norm          4.4475        5.6148        .23246E-06    .15750E-05
  18  Prefactor     .10000E-03    57.330       -.69172E-06** at limit **
  19  Prefactor     .89544        39.395        .47810E-05    .24235E-04
  20  Prefactor     6.2551        30.132        .17899E-05   -.39453E-04
  21  norm          47.091        34.450       -.80534E-07   -.86376E-05
  22  Prefactor     .10000E-03    17.756       -.35098E-06** at limit **
  23  Prefactor     .94762        2.7456       -.16236E-05    .24662E-04
  24  Prefactor     77.308        37.406        .17057E-06    .84839E-04
  25  Prefactor     .10000E-03    7.1953       -.17151E-06** at limit **
  26  Prefactor     .10000E-03    43.363       -.91567E-05** at limit **
  27  Prefactor     .10000E-03    1.9459       -.63588E-07** at limit **
  28  Normalizat    .70059        .18451        .56193E-06    .29258E-03
  29  Prefactor     1.0906        .13881        .67701E-06    .28587E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.324
  Prefactor  = 80.2798
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 14.7101
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.68754
  norm       = 0.0001
  Prefactor  = 0.565413
  Prefactor  = 128.278
  norm       = 4.44745
  Prefactor  = 0.0001
  Prefactor  = 0.895443
  Prefactor  = 6.25514
  norm       = 47.0913
  Prefactor  = 0.0001
  Prefactor  = 0.947622
  Prefactor  = 77.3078
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.700594
  Prefactor  = 1.09056
 **********
 **   18 **HESSE 
 **********

 FCN=   6834.820     FROM HESSE     STATUS=OK           555 CALLS     4449 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3240        7.2362        .26930E-03   -1.5403    
   2  Prefactor     80.280        53.391        .44822E-04   -1.3914    
   3  Prefactor     .10000E-03    14.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.085        .30966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.2544        .15966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.5983        .19600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          14.710        13.416        .10443E-03   -1.4941    
   9  Prefactor     .10000E-03    29.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    31.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.9925        .11379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.6875        .97973        .45538E-04   -1.5380    
  14  norm          .10000E-03    2.6635        .25763E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .56541        34.119        .41902E-02   -1.5558    
  16  Prefactor     128.28        65.316        .17771E-03   -1.3438    
  17  norm          4.4475        5.5989        .19102E-03   -1.5286    
  18  Prefactor     .10000E-03    57.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .89544        249.03        .46744E-02   -1.5519    
  20  Prefactor     6.2551        28.728        .16038E-03   -1.5208    
  21  norm          47.091        57.854        .58313E-04   -1.4334    
  22  Prefactor     .10000E-03    17.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .94762        2.7367        .21439E-03   -1.5513    
  24  Prefactor     77.308        37.490        .45672E-04   -1.3947    
  25  Prefactor     .10000E-03    7.2138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    55.265        .48177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1.9558        .11261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .70059        .21240        .31119E-03   -1.0387    
  29  Prefactor     1.0906        .16198        .19817E-03   -.89769    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71595e-08
Minuit parameter uncertainties:
  1  7.2389
  2  53.4224
  3  4.14857e-06
  4  5.29045e-05
  5  0.000229404
  6  1.40812e-07
  7  6.10602e-05
  8  13.4186
  9  0.00015842
  10  0.000109305
  11  1.46793e-05
  12  1.17721e-06
  13  0.979731
  14  1.84678e-06
  15  8.78887
  16  65.3528
  17  5.59959
  18  0.000187535
  19  29.991
  20  26.8311
  21  57.9232
  22  3.71714e-05
  23  2.73706
  24  37.5017
  25  8.87224e-06
  26  0.000447485
  27  4.94675e-07
  28  0.212653
  29  0.162051
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  4.709e+01  5.792e+01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.505e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
453         beta:  3.100e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
454           Eb:  1.202e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  1.091e+00  1.621e-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:  7.006e-01  2.127e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.57
Ra Dec: 353.869 -1.476
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 5.81e-08 +/- 7.14e-08
Energy Flux (Fixed Index): 2.41e-05 +/- 2.96e-05

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) = 6834.58366138
delta logL = 0.236377934976

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6834.49996393
delta logL = 0.3200753787

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    59.049       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0126       1.0000          .0000       5.0000    
     3 'Normalizat'    .71746       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0851       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=   6834.500     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      248 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          58.999        667.00        .13053E-02   -.55020E-04
   2  alpha         2.0112        2.7652        .42186        .35192E-04
   3  Normalizat    .71818        .15387        .69589E-01   -.28860E-04
   4  Prefactor     1.0847        .68549E-01    .38184E-01   -.19560E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 58.9993
  alpha      = 2.0112
  Normalizat = 0.71818
  Prefactor  = 1.08468
 **********
 **   18 **HESSE 
 **********

 FCN=   6834.500     FROM HESSE     STATUS=OK            29 CALLS      277 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          58.999        31.400        .52210E-04   -1.4170    
   2  alpha         2.0112        .62431        .15171E-01   -.19679    
   3  Normalizat    .71818        .19916        .30796E-03   -1.0318    
   4  Prefactor     1.0847        .15590        .19875E-03   -.89958    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.81388e-11
Minuit parameter uncertainties:
  1  31.4086
  2  0.631267
  3  0.199357
  4  0.15596
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31464': 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) = 6834.49995271
delta logL = 0.320086598624

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  5.900e+01  3.141e+01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.011e+00  6.313e-01  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.085e+00  1.560e-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:  7.182e-01  1.994e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.28
Ra Dec: 353.869 -1.476
Photon Index (Free Index): 2.01 +/- 0.63
Photon Flux (Free Index): 3.86e-08 +/- 2.93e-08
Energy Flux (Free Index): 2.64e-05 +/- 1.43e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/31464/cmap_HighResolution_382665601_382924801_4FGL_J2335.4-0128_daily_bin553.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.81e-08', energy_flux2='2.64e-05', photon_flux_error='7.14e-08', dlogl='3.20e-01', energy_flux='2.41e-05', photon_flux2='3.86e-08', job_status='DONE', time_completed='2021-09-30 00:29:41.788600', photon_index_error2='0.63', photon_index2='2.01', ts='9.57', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='1.43e-05', EG='0.70', time_epoch_completed='1632986981.79', return_code='0', job_id='31464', GAL2='1.08', EG2='0.72', return_code2='0', energy_flux_error='2.96e-05', photon_flux_error2='2.93e-08', ts2='10.28', photon_index='2.50' WHERE bin_id='553' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:29:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 31464: <4FGL_J2335.4-0128_daily_bin553> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin553 353.869 -1.476 382665601 382924801 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 :                                   732.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            846 sec.

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

