/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 105 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_bin135
RA = 353.869, Dec = -1.476
tmin = 274320001, tmax = 274579201
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='28958', job_status='RUN', time_executed='2021-09-30 00:08:04.536923', time_epoch_executed='1632985684.54' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='135'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/28958

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/28958/ft1_4FGL_J2335.4-0128_daily_bin135.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/28958/ft2_4FGL_J2335.4-0128_daily_bin135.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/28958/ft1_4FGL_J2335.4-0128_daily_bin135.fits outfile=/scratch/kocevski/28958/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin135.fits ra=353.869 dec=-1.476 rad=12.0 tmin=274320001.0 tmax=274579201.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.60
user 3.38
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/28958/ft1_filtered_4FGL_J2335.4-0128_daily_bin135.fits" evtable="EVENTS" scfile=/scratch/kocevski/28958/ft2_4FGL_J2335.4-0128_daily_bin135.fits sctable="SC_DATA" outfile=/scratch/kocevski/28958/ltcube_274320001_274579201_4FGL_J2335.4-0128_daily_bin135.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/28958/ft2_4FGL_J2335.4-0128_daily_bin135.fits
.....................!
real 12.07
user 11.53
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/28958/ft1_filtered_4FGL_J2335.4-0128_daily_bin135.fits evtable="EVENTS" scfile=/scratch/kocevski/28958/ft2_4FGL_J2335.4-0128_daily_bin135.fits sctable="SC_DATA" expcube=/scratch/kocevski/28958/ltcube_274320001_274579201_4FGL_J2335.4-0128_daily_bin135.fits outfile=/scratch/kocevski/28958/expmap_274320001_274579201_4FGL_J2335.4-0128_daily_bin135.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/28958/ltcube_274320001_274579201_4FGL_J2335.4-0128_daily_bin135.fits
.....................!
real 190.57
user 186.03
sys 3.98

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/28958/ft1_filtered_4FGL_J2335.4-0128_daily_bin135.fits scfile=/scratch/kocevski/28958/ft2_4FGL_J2335.4-0128_daily_bin135.fits outfile=/scratch/kocevski/28958/cmap_274320001_274579201_4FGL_J2335.4-0128_daily_bin135.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/28958/ft1_filtered_4FGL_J2335.4-0128_daily_bin135.fits scfile=/scratch/kocevski/28958/ft2_4FGL_J2335.4-0128_daily_bin135.fits outfile=/scratch/kocevski/28958/cmap_HighResolution_274320001_274579201_4FGL_J2335.4-0128_daily_bin135.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/28958/ft1_filtered_4FGL_J2335.4-0128_daily_bin135.fits evtable="EVENTS" scfile=/scratch/kocevski/28958/ft2_4FGL_J2335.4-0128_daily_bin135.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/28958/Model_4FGL_J2335.4-0128_daily_bin135.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/28958/ft1_filtered_4FGL_J2335.4-0128_daily_bin135.fits.....................!
real 49.70
user 48.43
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.250       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .66502       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.8415       1.0000         .10000E-03   10000.    
     8 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.016       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.527       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.796       1.0000         .10000E-03   10000.    
    13 'norm      '    .19029       1.0000         .10000E-03   10000.    
    14 'norm      '    1.9786       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0107       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .55440E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    64.520       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.2967       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    9.3029       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    38.078       1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.7715       1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.7736       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .90162       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0114       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=   4781.807     FROM MIGRAD    STATUS=CONVERGED    696 CALLS     3692 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.419        .44086E-07** at limit **
   2  Prefactor     29.261        64.637       -.95622E-06    .37379E-04
   3  Prefactor     .10000E-03    18.931        .52122E-06** at limit **
   4  Prefactor     .10000E-03    7.4262        .24605E-06** at limit **
   5  norm          .66608        3.4851        .20697E-06   -.15810E-03
   6  Prefactor     .10000E-03    19.730        .57069E-06** at limit **
   7  norm          7.8422        5.8288        .10352E-06    .93880E-04
   8  norm          .10000E-03    9.0195       -.18000E-06** at limit **
   9  Prefactor     26.019        42.756       -.12673E-06    .30843E-04
  10  Prefactor     11.532        23.118       -.17544E-06    .46911E-04
  11  Prefactor     .10000E-03    34.441        .22581E-06** at limit **
  12  Prefactor     11.798        10.164       -.18608E-05    .50418E-04
  13  norm          .19095        .77205       -.84784E-06   -.13110E-02
  14  norm          1.9774        6.0863        .91019E-05   -.68383E-04
  15  Prefactor     3.0070        7.1070        .39066E-05    .28512E-04
  16  Prefactor     .10000E-03    29.258       -.14127E-05** at limit **
  17  norm          .10000E-03    6.6232        .10362E-06** at limit **
  18  Prefactor     64.508        160.14        .20679E-05    .10785E-04
  19  Prefactor     7.2900        16.531        .31452E-05    .86718E-04
  20  Prefactor     .10000E-03    9.2102        .36715E-07** at limit **
  21  norm          9.3316        29.550       -.55119E-05    .83156E-04
  22  Prefactor     .10000E-03    21.254       -.97040E-07** at limit **
  23  Prefactor     .10000E-03    1.7906        .23675E-07** at limit **
  24  Prefactor     38.094        45.826       -.15647E-05    .88718E-04
  25  Prefactor     9.7830        29.992       -.96111E-06    .60282E-04
  26  Prefactor     9.7781        20.879        .18133E-07    .54562E-04
  27  Prefactor     .10000E-03    5.7619       -.21539E-06** at limit **
  28  Normalizat    .90150        .23667        .30201E-06    .19002E-03
  29  Prefactor     1.0114        .16108       -.50542E-06    .26641E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 29.261
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.666079
  Prefactor  = 0.0001
  norm       = 7.84216
  norm       = 0.0001
  Prefactor  = 26.019
  Prefactor  = 11.532
  Prefactor  = 0.0001
  Prefactor  = 11.7977
  norm       = 0.190949
  norm       = 1.97741
  Prefactor  = 3.00704
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 64.5079
  Prefactor  = 7.29002
  Prefactor  = 0.0001
  norm       = 9.33157
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.0941
  Prefactor  = 9.78305
  Prefactor  = 9.77808
  Prefactor  = 0.0001
  Normalizat = 0.901496
  Prefactor  = 1.0114
 **********
 **   18 **HESSE 
 **********

 FCN=   4781.807     FROM HESSE     STATUS=OK           551 CALLS     4243 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     29.261        64.530        .74079E-04   -1.4626    
   3  Prefactor     .10000E-03    19.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.4470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .66608        3.4912        .23703E-03   -1.5545    
   6  Prefactor     .10000E-03    19.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.8422        5.7960        .13308E-03   -1.5148    
   8  norm          .10000E-03    9.0654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     26.019        42.760        .78540E-04   -1.4687    
  10  Prefactor     11.532        23.109        .11800E-03   -1.5029    
  11  Prefactor     .10000E-03    34.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.798        10.163        .11664E-03   -1.5021    
  13  norm          .19095        .75510        .11385E-03   -1.5621    
  14  norm          1.9774        6.0863        .13662E-02   -1.5427    
  15  Prefactor     3.0070        6.9986        .11696E-02   -1.5361    
  16  Prefactor     .10000E-03    29.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    17.764        .33993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     64.508        159.83        .49961E-04   -1.4100    
  19  Prefactor     7.2900        16.618        .14849E-03   -1.5168    
  20  Prefactor     .10000E-03    9.2180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          9.3316        29.636        .13140E-03   -1.5097    
  22  Prefactor     .10000E-03    21.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.7959        .90273E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     38.094        45.867        .64952E-04   -1.4473    
  25  Prefactor     9.7830        29.945        .12819E-03   -1.5082    
  26  Prefactor     9.7781        20.949        .12818E-03   -1.5082    
  27  Prefactor     .10000E-03    5.8611        .16208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .90150        .27828        .28905E-03   -.96408    
  29  Prefactor     1.0114        .19079        .20385E-03   -.92351    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.65625e-10
Minuit parameter uncertainties:
  1  9.91685e-05
  2  64.6848
  3  4.41201e-05
  4  4.88498e-05
  5  3.04992
  6  1.08995e-05
  7  5.79637
  8  7.08299e-05
  9  42.8104
  10  23.1265
  11  0.000118668
  12  10.1649
  13  0.755138
  14  6.08818
  15  7.00051
  16  1.81376e-05
  17  0.000281382
  18  160.912
  19  16.6284
  20  1.74186e-05
  21  29.6831
  22  3.86979e-05
  23  3.07783e-07
  24  45.9094
  25  29.9915
  26  20.9647
  27  2.65027e-05
  28  0.278722
  29  0.190915
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  9.332e+00  2.968e+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.011e+00  1.909e-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:  9.015e-01  2.787e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/28958/likelihoodResults_274320001_274579201_4FGL_J2335.4-0128_daily_bin135.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) = 4781.76985428
delta logL = 0.0376338153437

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4781.75690114
delta logL = 0.0505869586368

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2664       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1328       1.0000          .0000       5.0000    
     3 'Normalizat'    .89077       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0156       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4781.757     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      262 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2497        25.890        .80178E-03   -.40198E-04
   2  alpha         3.1350        3.8285        .24261E-01    .11423E-03
   3  Normalizat    .89057        .25602        .29060E-03   -.14553E-04
   4  Prefactor     1.0157        .18840        .20344E-03   -.43030E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.24966
  alpha      = 3.13501
  Normalizat = 0.890573
  Prefactor  = 1.01566
 **********
 **   18 **HESSE 
 **********

 FCN=   4781.757     FROM HESSE     STATUS=OK            27 CALLS      289 TOTAL
                     EDM=   .92E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2497        18.377        .32071E-04   -1.5208    
   2  alpha         3.1350        1.8413        .48522E-02    .25682    
   3  Normalizat    .89057        .25360        .11624E-04   -.96792    
   4  Prefactor     1.0157        .18738        .81375E-05   -.92209    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.18696e-12
Minuit parameter uncertainties:
  1  18.3935
  2  2.093
  3  0.25394
  4  0.187501
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/28958': 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) = 4781.75690024
delta logL = 0.0505878568629

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  6.250e+00  1.839e+01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  3.135e+00  2.093e+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.016e+00  1.875e-01  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  8.906e-01  2.539e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.28
Ra Dec: 353.869 -1.476

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/28958/cmap_HighResolution_274320001_274579201_4FGL_J2335.4-0128_daily_bin135.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.38e-05', job_status='DONE', photon_flux_upper_limit='8.13e-08', time_completed='2021-09-30 00:18:57.990947', job_id='28958', GAL2='1.02', fit_tolerance='1e-08', EG2='0.89', EG='0.90', time_epoch_completed='1632986337.99', return_code2='0', ts='0.28', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='5.06e-02', ts2='0.39', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='135' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:18:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 28958: <4FGL_J2335.4-0128_daily_bin135> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin135 353.869 -1.476 274320001 274579201 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 :                                   650.34 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             289.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            769 sec.

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

