/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 166 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 = 7422
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2335.4-0128_daily_bin158
RA = 353.869, Dec = -1.476
tmin = 280281601, tmax = 280540801
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='28992', job_status='RUN', time_executed='2021-09-30 00:09:08.640877', time_epoch_executed='1632985748.64' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='158'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/28992

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/28992/ft1_4FGL_J2335.4-0128_daily_bin158.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/28992/ft2_4FGL_J2335.4-0128_daily_bin158.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/28992/ft1_4FGL_J2335.4-0128_daily_bin158.fits outfile=/scratch/kocevski/28992/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin158.fits ra=353.869 dec=-1.476 rad=12.0 tmin=280281601.0 tmax=280540801.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 4.30
user 4.05
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/28992/ft1_filtered_4FGL_J2335.4-0128_daily_bin158.fits" evtable="EVENTS" scfile=/scratch/kocevski/28992/ft2_4FGL_J2335.4-0128_daily_bin158.fits sctable="SC_DATA" outfile=/scratch/kocevski/28992/ltcube_280281601_280540801_4FGL_J2335.4-0128_daily_bin158.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/28992/ft2_4FGL_J2335.4-0128_daily_bin158.fits
.....................!
real 11.61
user 11.29
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/28992/ft1_filtered_4FGL_J2335.4-0128_daily_bin158.fits evtable="EVENTS" scfile=/scratch/kocevski/28992/ft2_4FGL_J2335.4-0128_daily_bin158.fits sctable="SC_DATA" expcube=/scratch/kocevski/28992/ltcube_280281601_280540801_4FGL_J2335.4-0128_daily_bin158.fits outfile=/scratch/kocevski/28992/expmap_280281601_280540801_4FGL_J2335.4-0128_daily_bin158.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/28992/ltcube_280281601_280540801_4FGL_J2335.4-0128_daily_bin158.fits
.....................!
real 192.28
user 187.26
sys 4.65

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/28992/ft1_filtered_4FGL_J2335.4-0128_daily_bin158.fits scfile=/scratch/kocevski/28992/ft2_4FGL_J2335.4-0128_daily_bin158.fits outfile=/scratch/kocevski/28992/cmap_280281601_280540801_4FGL_J2335.4-0128_daily_bin158.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/28992/ft1_filtered_4FGL_J2335.4-0128_daily_bin158.fits scfile=/scratch/kocevski/28992/ft2_4FGL_J2335.4-0128_daily_bin158.fits outfile=/scratch/kocevski/28992/cmap_HighResolution_280281601_280540801_4FGL_J2335.4-0128_daily_bin158.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/28992/ft1_filtered_4FGL_J2335.4-0128_daily_bin158.fits evtable="EVENTS" scfile=/scratch/kocevski/28992/ft2_4FGL_J2335.4-0128_daily_bin158.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/28992/Model_4FGL_J2335.4-0128_daily_bin158.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/28992/ft1_filtered_4FGL_J2335.4-0128_daily_bin158.fits.....................!
real 56.64
user 55.26
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.250       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.142       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11769E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .34365       1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.358       1.0000         .10000E-03   10000.    
     7 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.7700       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .19214E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.277       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .77451E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.508       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    11.377       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10300E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10352E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    70.472       1.0000         .10000E-03   10000.    
    21 'norm      '    22.171       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .52098E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    104.12       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.0480       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3655       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .62024       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=   5201.966     FROM MIGRAD    STATUS=CONVERGED   1393 CALLS     4986 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.254        10.030        .12515E-03   -.43785E-04
   2  Prefactor     .10000E-03    43.953        .18142E-02** at limit **
   3  Prefactor     12.151        16.750        .11496E-03   -.91080E-04
   4  Prefactor     .10000E-03    15.383        .36285E-03** at limit **
   5  norm          .34237        6.3643        .18242E-02   -.27318E-03
   6  Prefactor     31.388        21.237        .71552E-04   -.10706E-03
   7  norm          .10000E-03    2.3079        .10626E-02** at limit **
   8  norm          1.7791        29.995        .31477E-03    .16434E-04
   9  Prefactor     .10012E-03    47.155        .13258    ** at limit **
  10  Prefactor     .10000E-03    6.7967        .18142E-02** at limit **
  11  Prefactor     10.635        133.69        .12499E-03    .13602E-03
  12  Prefactor     .26665E-03    24.862        .54242E-01** at limit **
  13  norm          .10000E-03    .25252        .34962E-03** at limit **
  14  norm          .10000E-03    3.3554        .12816E-02** at limit **
  15  Prefactor     14.507        13.715        .10516E-03   -.53840E-04
  16  Prefactor     .10000E-03    26.977        .18142E-02** at limit **
  17  norm          11.376        10.266        .11877E-03   -.13592E-04
  18  Prefactor     .10000E-03    53.322        .18142E-02** at limit **
  19  Prefactor     .10000E-03    11.548        .18142E-02** at limit **
  20  Prefactor     70.481        33.275        .47819E-04   -.12453E-03
  21  norm          22.163        22.527        .85067E-04   -.31540E-03
  22  Prefactor     .10000E-03    15.491        .18142E-02** at limit **
  23  Prefactor     .10001E-03    18.243        .21132E-02** at limit **
  24  Prefactor     104.18        55.687        .39407E-04   -.10259E-03
  25  Prefactor     .10000E-03    15.314        .18142E-02** at limit **
  26  Prefactor     1.0104        154.94        .57683E-02    .17977E-03
  27  Prefactor     .10000E-03    2.2181        .10471E-02** at limit **
  28  Normalizat    1.3651        .25967        .24401E-03   -.23062E-04
  29  Prefactor     .62037        .16691        .24512E-03    .43876E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.2538
  Prefactor  = 0.0001
  Prefactor  = 12.151
  Prefactor  = 0.0001
  norm       = 0.342367
  Prefactor  = 31.3877
  norm       = 0.0001
  norm       = 1.77907
  Prefactor  = 0.000100118
  Prefactor  = 0.0001
  Prefactor  = 10.6353
  Prefactor  = 0.000266646
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 14.5067
  Prefactor  = 0.0001
  norm       = 11.3763
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 70.4807
  norm       = 22.1632
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 104.175
  Prefactor  = 0.0001
  Prefactor  = 1.01042
  Prefactor  = 0.0001
  Normalizat = 1.36505
  Prefactor  = 0.620374
 **********
 **   18 **HESSE 
 **********

 FCN=   5201.966     FROM HESSE     STATUS=OK           547 CALLS     5533 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.254        10.029        .50060E-05   -1.5067    
   2  Prefactor     .10000E-03    43.954        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.151        16.649        .45984E-05   -1.5011    
   4  Prefactor     .10000E-03    15.384        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .34237        6.2512        .72970E-04   -1.5591    
   6  Prefactor     31.388        21.236        .14310E-04   -1.4587    
   7  norm          .10000E-03    2.3083        .21253E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.7791        29.871        .12591E-04   -1.5441    
   9  Prefactor     .10012E-03    47.528        .13174       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.7970        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.635        118.89        .24998E-04   -1.5056    
  12  Prefactor     .26665E-03    17.484        .63391E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .25253        .69924E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.3560        .25633E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.507        13.711        .42062E-05   -1.4946    
  16  Prefactor     .10000E-03    26.979        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          11.376        10.264        .47509E-05   -1.5033    
  18  Prefactor     .10000E-03    53.323        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.552        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     70.481        33.263        .95638E-05   -1.4027    
  21  norm          22.163        22.488        .17013E-04   -1.4766    
  22  Prefactor     .10000E-03    15.491        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    18.364        .42263E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     104.18        55.668        .78815E-05   -1.3663    
  25  Prefactor     .10000E-03    15.317        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.0104        150.33        .23073E-03   -1.5507    
  27  Prefactor     .10000E-03    2.2182        .20942E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3651        .25658        .97606E-05   -.81645    
  29  Prefactor     .62037        .16691        .98047E-05   -1.0674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86284e-09
Minuit parameter uncertainties:
  1  10.0305
  2  3.67108e-05
  3  16.6558
  4  0.000173511
  5  2.92581
  6  21.2415
  7  1.52865e-05
  8  14.588
  9  0.0047379
  10  4.56301e-06
  11  71.2981
  12  0.107989
  13  1.08272e-07
  14  3.42917e-06
  15  13.7135
  16  2.7701e-05
  17  10.2654
  18  3.91288e-05
  19  7.99207e-05
  20  33.2718
  21  22.497
  22  1.87619e-06
  23  0.000739626
  24  55.6959
  25  4.90018e-05
  26  24.7111
  27  1.16364e-06
  28  0.256819
  29  0.167039
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  2.216e+01  2.250e+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:  6.204e-01  1.670e-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.365e+00  2.568e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.50
Ra Dec: 353.869 -1.476
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 2.73e-08 +/- 2.77e-08
Energy Flux (Fixed Index): 1.13e-05 +/- 1.15e-05

TS (Fixed Index): 1.50
Ra Dec: 353.869 -1.476
Photon Flux Upper Limit: 9.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.92e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/28992/likelihoodResults_280281601_280540801_4FGL_J2335.4-0128_daily_bin158.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) = 5201.90277966
delta logL = 0.0630312683415

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5201.85281187
delta logL = 0.112999056592

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.785       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1446       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3406       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63037       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=   5201.853     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      246 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.783        32.505        .10788E-03   -.22088E-03
   2  alpha         3.1448        1.6512        .15823E-01   -.28550E-04
   3  Normalizat    1.3406        .24136        .24581E-03   -.11789E-03
   4  Prefactor     .63038        .16610        .24331E-03   -.27465E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.7826
  alpha      = 3.14482
  Normalizat = 1.34056
  Prefactor  = 0.630377
 **********
 **   18 **HESSE 
 **********

 FCN=   5201.853     FROM HESSE     STATUS=OK            25 CALLS      271 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.783        24.357        .43152E-05   -1.4965    
   2  alpha         3.1448        1.2886        .63291E-03    .26088    
   3  Normalizat    1.3406        .23668        .49162E-04   -.82364    
   4  Prefactor     .63038        .16414        .97323E-05   -1.0632    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80703e-10
Minuit parameter uncertainties:
  1  24.3749
  2  1.35925
  3  0.236872
  4  0.16427
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/28992': 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) = 5201.85281185
delta logL = 0.112999072845

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.378e+01  2.437e+01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  3.145e+00  1.359e+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:  6.304e-01  1.643e-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.341e+00  2.369e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.72
Ra Dec: 353.869 -1.476
Photon Index (Free Index): 3.14 +/- 1.36
Photon Flux (Free Index): 4.78e-08 +/- 6.03e-08
Energy Flux (Free Index): 1.26e-05 +/- 1.16e-05

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/28992/cmap_HighResolution_280281601_280540801_4FGL_J2335.4-0128_daily_bin158.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.92e-05', comment='SUCCESS', photon_flux='2.73e-08', energy_flux2='1.26e-05', photon_flux_error='2.77e-08', dlogl='1.13e-01', energy_flux='1.13e-05', photon_flux2='4.78e-08', job_status='DONE', time_completed='2021-09-30 00:22:09.816339', photon_index_error2='1.36', photon_index2='3.14', ts='1.50', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', photon_flux_upper_limit='9.44e-08', energy_flux_error2='1.16e-05', EG='1.37', time_epoch_completed='1632986529.82', return_code='0', job_id='28992', GAL2='0.63', EG2='1.34', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='6.03e-08', ts2='1.72', photon_index='2.50' WHERE bin_id='158' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:22:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 28992: <4FGL_J2335.4-0128_daily_bin158> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin158> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 00:06:11 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:06:13 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:06:13 2021
Terminated at Thu Sep 30 00:22:10 2021
Results reported at Thu Sep 30 00:22:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin158 353.869 -1.476 280281601 280540801 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 :                                   779.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             271.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            959 sec.

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

