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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin957
RA = 353.869, Dec = -1.476
tmin = 487382401, tmax = 487641601
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='33107', job_status='RUN', time_executed='2021-09-30 00:23:42.130408', time_epoch_executed='1632986622.13' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='957'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/33107

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/33107/ft1_4FGL_J2335.4-0128_daily_bin957.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/33107/ft2_4FGL_J2335.4-0128_daily_bin957.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/33107/ft1_4FGL_J2335.4-0128_daily_bin957.fits outfile=/scratch/kocevski/33107/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin957.fits ra=353.869 dec=-1.476 rad=12.0 tmin=487382401.0 tmax=487641601.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.86
user 3.62
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/33107/ft1_filtered_4FGL_J2335.4-0128_daily_bin957.fits" evtable="EVENTS" scfile=/scratch/kocevski/33107/ft2_4FGL_J2335.4-0128_daily_bin957.fits sctable="SC_DATA" outfile=/scratch/kocevski/33107/ltcube_487382401_487641601_4FGL_J2335.4-0128_daily_bin957.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/33107/ft2_4FGL_J2335.4-0128_daily_bin957.fits
.....................!
real 11.84
user 11.49
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/33107/ft1_filtered_4FGL_J2335.4-0128_daily_bin957.fits evtable="EVENTS" scfile=/scratch/kocevski/33107/ft2_4FGL_J2335.4-0128_daily_bin957.fits sctable="SC_DATA" expcube=/scratch/kocevski/33107/ltcube_487382401_487641601_4FGL_J2335.4-0128_daily_bin957.fits outfile=/scratch/kocevski/33107/expmap_487382401_487641601_4FGL_J2335.4-0128_daily_bin957.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/33107/ltcube_487382401_487641601_4FGL_J2335.4-0128_daily_bin957.fits
.....................!
real 188.84
user 184.70
sys 3.76

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/33107/ft1_filtered_4FGL_J2335.4-0128_daily_bin957.fits scfile=/scratch/kocevski/33107/ft2_4FGL_J2335.4-0128_daily_bin957.fits outfile=/scratch/kocevski/33107/cmap_487382401_487641601_4FGL_J2335.4-0128_daily_bin957.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/33107/ft1_filtered_4FGL_J2335.4-0128_daily_bin957.fits scfile=/scratch/kocevski/33107/ft2_4FGL_J2335.4-0128_daily_bin957.fits outfile=/scratch/kocevski/33107/cmap_HighResolution_487382401_487641601_4FGL_J2335.4-0128_daily_bin957.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.56
user 0.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/33107/ft1_filtered_4FGL_J2335.4-0128_daily_bin957.fits evtable="EVENTS" scfile=/scratch/kocevski/33107/ft2_4FGL_J2335.4-0128_daily_bin957.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/33107/Model_4FGL_J2335.4-0128_daily_bin957.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/33107/ft1_filtered_4FGL_J2335.4-0128_daily_bin957.fits.....................!
real 62.83
user 61.44
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    62.223       1.0000         .10000E-03   10000.    
     3 'Prefactor '    63.782       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.651       1.0000         .10000E-03   10000.    
     5 'norm      '    .27818       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0191       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    15.403       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.643       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.2058       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .47394       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.0671       1.0000         .10000E-03   10000.    
    18 'Prefactor '    260.95       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .76278       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    15.023       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .17284E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    31.353       1.0000         .10000E-03   10000.    
    25 'Prefactor '    18.661       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .49084       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2296       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6760.300     FROM MIGRAD    STATUS=CONVERGED    723 CALLS     3716 TOTAL
                     EDM=   .35E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8986         .0000    ** at limit **
   2  Prefactor     62.220        47.700         .0000        .19989E-02
   3  Prefactor     63.787        21.037         .0000       -.43100E-03
   4  Prefactor     11.650        6.7394         .0000       -.12454E-02
   5  norm          .27897        1.8936         .0000        .12559E-02
   6  Prefactor     3.0198        11.092         .0000        .36342E-02
   7  norm          .10000E-03    1.7967         .0000    ** at limit **
   8  norm          15.404        11.885         .0000        .19015E-03
   9  Prefactor     17.643        32.895         .0000        .20442E-03
  10  Prefactor     4.2063        21.953         .0000        .20198E-03
  11  Prefactor     .10033E-03    64.712         .0000    ** at limit **
  12  Prefactor     .10000E-03    4.5855         .0000    ** at limit **
  13  norm          .47247        .84437         .0000        .16608E-02
  14  norm          .10000E-03    1.6043         .0000    ** at limit **
  15  Prefactor     .10000E-03    5.4704         .0000    ** at limit **
  16  Prefactor     .10001E-03    30.739         .0000    ** at limit **
  17  norm          6.0661        9.0413         .0000        .35768E-03
  18  Prefactor     260.95        208.62         .0000       -.12955E-02
  19  Prefactor     .78000        35.319         .0000        .23111E-01
  20  Prefactor     .10000E-03    6.7862         .0000    ** at limit **
  21  norm          14.985        27.119         .0000        .34983E-02
  22  Prefactor     .10000E-03    17.333         .0000    ** at limit **
  23  Prefactor     .10000E-03    1.8917         .0000    ** at limit **
  24  Prefactor     31.344        34.727         .0000        .42328E-02
  25  Prefactor     18.660        15.035         .0000       -.10559E-03
  26  Prefactor     .10000E-03    5.5117         .0000    ** at limit **
  27  Prefactor     .10000E-03    3.2655         .0000    ** at limit **
  28  Normalizat    .49092        .19231         .0000        .67396E-04
  29  Prefactor     1.2296        .14319         .0000        .12335E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 62.2202
  Prefactor  = 63.7867
  Prefactor  = 11.6501
  norm       = 0.278975
  Prefactor  = 3.01983
  norm       = 0.0001
  norm       = 15.4038
  Prefactor  = 17.6431
  Prefactor  = 4.20634
  Prefactor  = 0.000100327
  Prefactor  = 0.0001
  norm       = 0.472467
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100011
  norm       = 6.06608
  Prefactor  = 260.952
  Prefactor  = 0.779998
  Prefactor  = 0.0001
  norm       = 14.9853
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 31.3436
  Prefactor  = 18.6603
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.49092
  Prefactor  = 1.22959
 **********
 **   18 **HESSE 
 **********

 FCN=   6760.300     FROM HESSE     STATUS=OK           555 CALLS     4271 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8997        .11063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     62.220        47.641        .50869E-04   -1.4129    
   3  Prefactor     63.787        20.842        .50247E-04   -1.4109    
   4  Prefactor     11.650        6.6861        .11737E-03   -1.5025    
   5  norm          .27897        3.8918        .20190E-02   -1.5602    
   6  Prefactor     3.0198        11.043        .11678E-02   -1.5360    
   7  norm          .10000E-03    1.8087        .10718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          15.404        11.872        .10205E-03   -1.4923    
   9  Prefactor     17.643        32.935        .95353E-04   -1.4868    
  10  Prefactor     4.2063        21.891        .19650E-03   -1.5298    
  11  Prefactor     .10033E-03    64.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.6219        .17186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .47247        .76902        .91596E-03   -1.5571    
  14  norm          .10000E-03    1.6088        .10168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.5182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    30.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.0661        9.0264        .16300E-03   -1.5215    
  18  Prefactor     260.95        206.66        .12546E-03   -1.2463    
  19  Prefactor     .78000        12.190        .65180E-01   -1.5531    
  20  Prefactor     .10000E-03    6.7965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          14.985        23.464        .10333E-03   -1.4934    
  22  Prefactor     .10000E-03    17.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    13.156        .20446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     31.344        34.744        .71558E-04   -1.4588    
  25  Prefactor     18.660        15.029        .92715E-04   -1.4844    
  26  Prefactor     .10000E-03    5.5266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    3.3040        .14503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .49092        .20368        .36760E-03   -1.1284    
  29  Prefactor     1.2296        .15659        .18805E-03   -.85425    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35345e-07
Minuit parameter uncertainties:
  1  2.46444e-06
  2  47.6703
  3  20.8443
  4  6.68656
  5  2.08374
  6  11.0507
  7  2.55219e-06
  8  11.8742
  9  32.9688
  10  19.2027
  11  0.00923167
  12  1.03637e-06
  13  0.769035
  14  1.98425e-06
  15  0.000109435
  16  0.00117509
  17  9.02847
  18  207.246
  19  6.16825
  20  6.80702e-05
  21  23.4787
  22  3.04637e-05
  23  0.000204888
  24  34.7667
  25  15.0317
  26  5.71494e-05
  27  4.04578e-07
  28  0.203986
  29  0.156648
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.499e+01  2.348e+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.230e+00  1.566e-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:  4.909e-01  2.040e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/33107/likelihoodResults_487382401_487641601_4FGL_J2335.4-0128_daily_bin957.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) = 6760.26936338
delta logL = 0.0303139035686

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6760.2670942
delta logL = 0.0325830769189

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.682       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2475       1.0000          .0000       5.0000    
     3 'Normalizat'    .49403       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2279       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=   6760.267     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      297 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.684        25.665        .92664E-04    .60117E-05
   2  alpha         2.2474        .99220        .22547E-01    .13816E-03
   3  Normalizat    .49431        .19373        .36641E-03   -.59728E-04
   4  Prefactor     1.2277        .15295        .18817E-03   -.48333E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 18.6837
  alpha      = 2.24737
  Normalizat = 0.494307
  Prefactor  = 1.22768
 **********
 **   18 **HESSE 
 **********

 FCN=   6760.267     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.684        24.837        .37066E-05   -1.4843    
   2  alpha         2.2474        .96218        .45095E-02   -.10122    
   3  Normalizat    .49431        .19376        .14656E-04   -1.1268    
   4  Prefactor     1.2277        .15300        .75268E-05   -.85484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40152e-11
Minuit parameter uncertainties:
  1  24.8509
  2  0.987956
  3  0.194022
  4  0.153051
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/33107': 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) = 6760.267093
delta logL = 0.0325842837146

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.868e+01  2.485e+01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.247e+00  9.880e-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.228e+00  1.531e-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:  4.943e-01  1.940e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.04
Ra Dec: 353.869 -1.476
Photon Index (Free Index): 2.25 +/- 0.99
Photon Flux (Free Index): 1.62e-08 +/- 2.14e-08
Energy Flux (Free Index): 8.58e-06 +/- 1.05e-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/33107/cmap_HighResolution_487382401_487641601_4FGL_J2335.4-0128_daily_bin957.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.02e-05', comment='SUCCESS', energy_flux2='8.58e-06', dlogl='3.26e-02', photon_flux2='1.62e-08', job_status='DONE', time_completed='2021-09-30 00:37:03.579151', photon_index_error2='0.99', photon_index2='2.25', ts='0.98', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', photon_flux_upper_limit='7.28e-08', energy_flux_error2='1.05e-05', EG='0.49', time_epoch_completed='1632987423.58', return_code='0', job_id='33107', GAL2='1.23', EG2='0.49', return_code2='0', photon_flux_error2='2.14e-08', ts2='1.04', photon_index='2.50' WHERE bin_id='957' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:37:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 33107: <4FGL_J2335.4-0128_daily_bin957> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin957 353.869 -1.476 487382401 487641601 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 :                                   799.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   976 sec.
    Turnaround time :                            979 sec.

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

