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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin336
RA = 353.869, Dec = -1.476
tmin = 326419201, tmax = 326678401
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='30144', job_status='RUN', time_executed='2021-09-30 00:12:31.355146', time_epoch_executed='1632985951.36' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='336'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/30144

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/30144/ft1_4FGL_J2335.4-0128_daily_bin336.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/30144/ft2_4FGL_J2335.4-0128_daily_bin336.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/30144/ft1_4FGL_J2335.4-0128_daily_bin336.fits outfile=/scratch/kocevski/30144/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin336.fits ra=353.869 dec=-1.476 rad=12.0 tmin=326419201.0 tmax=326678401.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.40
user 3.17
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/30144/ft2_4FGL_J2335.4-0128_daily_bin336.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/30144/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin336.fits evtable="EVENTS" outfile="/scratch/kocevski/30144/ft1_filtered_4FGL_J2335.4-0128_daily_bin336.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/30144/ft1_filtered_4FGL_J2335.4-0128_daily_bin336.fits" evtable="EVENTS" scfile=/scratch/kocevski/30144/ft2_4FGL_J2335.4-0128_daily_bin336.fits sctable="SC_DATA" outfile=/scratch/kocevski/30144/ltcube_326419201_326678401_4FGL_J2335.4-0128_daily_bin336.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/30144/ft2_4FGL_J2335.4-0128_daily_bin336.fits
.....................!
real 11.80
user 11.47
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/30144/ft1_filtered_4FGL_J2335.4-0128_daily_bin336.fits evtable="EVENTS" scfile=/scratch/kocevski/30144/ft2_4FGL_J2335.4-0128_daily_bin336.fits sctable="SC_DATA" expcube=/scratch/kocevski/30144/ltcube_326419201_326678401_4FGL_J2335.4-0128_daily_bin336.fits outfile=/scratch/kocevski/30144/expmap_326419201_326678401_4FGL_J2335.4-0128_daily_bin336.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/30144/ltcube_326419201_326678401_4FGL_J2335.4-0128_daily_bin336.fits
.....................!
real 189.94
user 185.13
sys 4.41

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/30144/ft1_filtered_4FGL_J2335.4-0128_daily_bin336.fits scfile=/scratch/kocevski/30144/ft2_4FGL_J2335.4-0128_daily_bin336.fits outfile=/scratch/kocevski/30144/cmap_326419201_326678401_4FGL_J2335.4-0128_daily_bin336.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.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10116E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .12946E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.827       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15767E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.072       1.0000         .10000E-03   10000.    
    13 'norm      '    .70103       1.0000         .10000E-03   10000.    
    14 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .82395E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.3379       1.0000         .10000E-03   10000.    
    17 'norm      '    .23505E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    121.44       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.789       1.0000         .10000E-03   10000.    
    21 'norm      '    18.567       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.401       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    34.241       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.977       1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.7358       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .60631       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1826       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=   5662.343     FROM MIGRAD    STATUS=CONVERGED   1346 CALLS     4955 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.212        .36285E-03** at limit **
   2  Prefactor     .10000E-03    246.45        .36285E-03** at limit **
   3  Prefactor     .10000E-03    17.733        .18142E-02** at limit **
   4  Prefactor     .10000E-03    4.9297        .16155E-02** at limit **
   5  norm          .10229E-03    3.2129        .28268E-01** at limit **
   6  Prefactor     .10000E-03    28.365        .36285E-03** at limit **
   7  norm          .10000E-03    1.7535        .96715E-03** at limit **
   8  norm          .10000E-03    14.344        .36285E-03** at limit **
   9  Prefactor     34.806        36.976        .67906E-04    .35158E-04
  10  Prefactor     .10000E-03    4.8994        .16261E-02** at limit **
  11  Prefactor     .10007E-03    116.42        .15389    ** at limit **
  12  Prefactor     11.083        13.908        .12040E-03   -.42963E-04
  13  norm          .70067        .89572        .80104E-03    .13402E-02
  14  norm          .10000E-03    6.7215        .36285E-03** at limit **
  15  Prefactor     .10022E-03    36.505        .40595E-02** at limit **
  16  Prefactor     8.3357        33.952        .13884E-03   -.32754E-05
  17  norm          .10000E-03    13.832        .57512E-01** at limit **
  18  Prefactor     121.38        179.30        .18260E-03    .12514E-04
  19  Prefactor     .10000E-03    6.3099        .18142E-02** at limit **
  20  Prefactor     29.808        31.749        .73408E-04   -.11058E-03
  21  norm          18.569        17.199        .92950E-04   -.11429E-03
  22  Prefactor     13.397        69.407        .10942E-03   -.63380E-05
  23  Prefactor     .10000E-03    2.4611        .11453E-02** at limit **
  24  Prefactor     34.240        37.161        .68482E-04    .91305E-05
  25  Prefactor     .10000E-03    13.591        .18142E-02** at limit **
  26  Prefactor     10.975        18.249        .12092E-03    .91571E-04
  27  Prefactor     5.7357        6.7776        .16771E-03   -.52535E-04
  28  Normalizat    .60636        .24458        .33091E-03    .82453E-04
  29  Prefactor     1.1826        .17202        .18657E-03   -.29554E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000102288
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 34.8064
  Prefactor  = 0.0001
  Prefactor  = 0.000100067
  Prefactor  = 11.0826
  norm       = 0.700669
  norm       = 0.0001
  Prefactor  = 0.000100216
  Prefactor  = 8.33571
  norm       = 0.000100005
  Prefactor  = 121.379
  Prefactor  = 0.0001
  Prefactor  = 29.8082
  norm       = 18.5687
  Prefactor  = 13.3975
  Prefactor  = 0.0001
  Prefactor  = 34.2404
  Prefactor  = 0.0001
  Prefactor  = 10.975
  Prefactor  = 5.73567
  Normalizat = 0.60636
  Prefactor  = 1.18262
 **********
 **   18 **HESSE 
 **********

 FCN=   5662.343     FROM HESSE     STATUS=OK           555 CALLS     5510 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.213        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    246.46        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.740        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.9326        .32309E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10229E-03    2.4199        .34121E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    28.367        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.7537        .19343E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    14.345        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     34.806        36.984        .27162E-05   -1.4527    
  10  Prefactor     .10000E-03    4.8995        .32521E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10007E-03    124.60        .14832       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.083        13.965        .48160E-05   -1.5042    
  13  norm          .70067        .89456        .32041E-04   -1.5541    
  14  norm          .10000E-03    6.7218        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10022E-03    36.958        .81190E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.3357        33.963        .55534E-05   -1.5130    
  17  norm          .10000E-03    11.154        .66184E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     121.38        179.17        .73041E-05   -1.3500    
  19  Prefactor     .10000E-03    6.3106        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     29.808        31.738        .29363E-05   -1.4615    
  21  norm          18.569        17.198        .18590E-04   -1.4846    
  22  Prefactor     13.397        69.417        .43767E-05   -1.4976    
  23  Prefactor     .10000E-03    2.4615        .22905E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     34.240        37.156        .27393E-05   -1.4537    
  25  Prefactor     .10000E-03    13.593        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     10.975        18.251        .48369E-05   -1.5045    
  27  Prefactor     5.7357        6.7771        .67084E-05   -1.5229    
  28  Normalizat    .60636        .24469        .13237E-04   -1.0771    
  29  Prefactor     1.1826        .17216        .74626E-05   -.86868    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.9381e-09
Minuit parameter uncertainties:
  1  0.000138138
  2  0.000720148
  3  0.000142108
  4  7.28125e-05
  5  0.00470605
  6  0.000354605
  7  1.96683e-05
  8  0.000146706
  9  37.0085
  10  1.07622e-05
  11  0.00579627
  12  13.9695
  13  0.894575
  14  4.80766e-05
  15  0.00566055
  16  33.6842
  17  0.0004599
  18  179.979
  19  1.35926e-05
  20  31.7563
  21  17.2024
  22  61.104
  23  2.11458e-05
  24  37.1808
  25  9.96206e-05
  26  18.2601
  27  6.77801
  28  0.245126
  29  0.172246
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.857e+01  1.720e+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.183e+00  1.722e-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:  6.064e-01  2.451e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.60
Ra Dec: 353.869 -1.476
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 2.29e-08 +/- 2.12e-08
Energy Flux (Fixed Index): 9.50e-06 +/- 8.81e-06

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

Saving results to:
/scratch/kocevski/30144/likelihoodResults_326419201_326678401_4FGL_J2335.4-0128_daily_bin336.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) = 5662.32558698
delta logL = 0.0177679316448

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5662.31904545
delta logL = 0.0243094647258

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.438       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7375       1.0000          .0000       5.0000    
     3 'Normalizat'    .60055       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1844       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=   5662.319     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      243 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.433        19.178        .98787E-04    .79607E-03
   2  alpha         2.7372        1.0410        .17148E-01    .10191E-03
   3  Normalizat    .60056        .22053        .33237E-03   -.43296E-03
   4  Prefactor     1.1844        .16864        .18643E-03   -.93730E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 16.4333
  alpha      = 2.73723
  Normalizat = 0.600563
  Prefactor  = 1.18436
 **********
 **   18 **HESSE 
 **********

 FCN=   5662.319     FROM HESSE     STATUS=OK            25 CALLS      268 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.433        18.286        .19757E-04   -1.4897    
   2  alpha         2.7372        .99457        .68590E-03    .95036E-01
   3  Normalizat    .60056        .22039        .13295E-04   -1.0796    
   4  Prefactor     1.1844        .16868        .37285E-04   -.86814    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96864e-09
Minuit parameter uncertainties:
  1  18.292
  2  1.02315
  3  0.220709
  4  0.168755
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/30144': 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) = 5662.31904525
delta logL = 0.0243096688637

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.643e+01  1.829e+01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.737e+00  1.023e+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:  1.184e+00  1.688e-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:  6.006e-01  2.207e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.65
Ra Dec: 353.869 -1.476
Photon Index (Free Index): 2.74 +/- 1.02
Photon Flux (Free Index): 2.88e-08 +/- 3.74e-08
Energy Flux (Free Index): 9.92e-06 +/- 9.00e-06

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/30144/cmap_HighResolution_326419201_326678401_4FGL_J2335.4-0128_daily_bin336.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.27e-05', comment='SUCCESS', photon_flux='2.29e-08', energy_flux2='9.92e-06', photon_flux_error='2.12e-08', dlogl='2.43e-02', energy_flux='9.50e-06', photon_flux2='2.88e-08', job_status='DONE', time_completed='2021-09-30 00:25:37.497100', photon_index_error2='1.02', photon_index2='2.74', ts='2.60', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='7.88e-08', energy_flux_error2='9.00e-06', EG='0.61', time_epoch_completed='1632986737.5', return_code='0', job_id='30144', GAL2='1.18', EG2='0.60', return_code2='0', energy_flux_error='8.81e-06', photon_flux_error2='3.74e-08', ts2='2.65', photon_index='2.50' WHERE bin_id='336' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:25:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 30144: <4FGL_J2335.4-0128_daily_bin336> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin336> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 00:10:36 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:10:37 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:10:37 2021
Terminated at Thu Sep 30 00:25:38 2021
Results reported at Thu Sep 30 00:25:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin336 353.869 -1.476 326419201 326678401 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 :                                   783.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            902 sec.

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

