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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin924
RA = 353.869, Dec = -1.476
tmin = 478828801, tmax = 479088001
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='33058', job_status='RUN', time_executed='2021-09-30 00:22:33.435013', time_epoch_executed='1632986553.44' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='924'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/33058

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/33058/ft1_4FGL_J2335.4-0128_daily_bin924.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/33058/ft2_4FGL_J2335.4-0128_daily_bin924.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/33058/ft1_4FGL_J2335.4-0128_daily_bin924.fits outfile=/scratch/kocevski/33058/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin924.fits ra=353.869 dec=-1.476 rad=12.0 tmin=478828801.0 tmax=479088001.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.47
user 3.24
sys 0.20

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/33058/ft1_filtered_4FGL_J2335.4-0128_daily_bin924.fits evtable="EVENTS" scfile=/scratch/kocevski/33058/ft2_4FGL_J2335.4-0128_daily_bin924.fits sctable="SC_DATA" expcube=/scratch/kocevski/33058/ltcube_478828801_479088001_4FGL_J2335.4-0128_daily_bin924.fits outfile=/scratch/kocevski/33058/expmap_478828801_479088001_4FGL_J2335.4-0128_daily_bin924.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/33058/ltcube_478828801_479088001_4FGL_J2335.4-0128_daily_bin924.fits
.....................!
real 190.17
user 185.79
sys 4.07

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/33058/ft1_filtered_4FGL_J2335.4-0128_daily_bin924.fits scfile=/scratch/kocevski/33058/ft2_4FGL_J2335.4-0128_daily_bin924.fits outfile=/scratch/kocevski/33058/cmap_478828801_479088001_4FGL_J2335.4-0128_daily_bin924.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/33058/ft1_filtered_4FGL_J2335.4-0128_daily_bin924.fits scfile=/scratch/kocevski/33058/ft2_4FGL_J2335.4-0128_daily_bin924.fits outfile=/scratch/kocevski/33058/cmap_HighResolution_478828801_479088001_4FGL_J2335.4-0128_daily_bin924.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.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/33058/ft1_filtered_4FGL_J2335.4-0128_daily_bin924.fits evtable="EVENTS" scfile=/scratch/kocevski/33058/ft2_4FGL_J2335.4-0128_daily_bin924.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/33058/Model_4FGL_J2335.4-0128_daily_bin924.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/33058/ft1_filtered_4FGL_J2335.4-0128_daily_bin924.fits.....................!
real 67.27
user 65.92
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5691       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.609       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.5780       1.0000         .10000E-03   10000.    
     5 'norm      '    .40179       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.6534       1.0000         .10000E-03   10000.    
     7 'norm      '    .47980E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    17.279       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.043       1.0000         .10000E-03   10000.    
    11 'Prefactor '    50.758       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.047       1.0000         .10000E-03   10000.    
    13 'norm      '    .80472       1.0000         .10000E-03   10000.    
    14 'norm      '    4.1397       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.7380       1.0000         .10000E-03   10000.    
    18 'Prefactor '    84.758       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .21045E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10325E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.745       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .87590       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1094       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=   7179.578     FROM MIGRAD    STATUS=CONVERGED    730 CALLS     3729 TOTAL
                     EDM=   .35E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5691        5.7664       -.21174E-07    .49994E-05
   2  Prefactor     18.610        32.986       -.24253E-07    .17484E-05
   3  Prefactor     .10000E-03    11.385       -.20305E-06** at limit **
   4  Prefactor     6.5832        6.8808       -.22009E-07    .82982E-05
   5  norm          .40176        1.2925        .48529E-07    .28524E-04
   6  Prefactor     9.6577        16.540       -.15205E-07    .27358E-05
   7  norm          .10000E-03    2.1324       -.10500E-07** at limit **
   8  norm          17.279        15.062        .13162E-06    .75977E-05
   9  Prefactor     .10000E-03    20.185       -.16610E-06** at limit **
  10  Prefactor     11.043        12.353       -.65944E-08    .18315E-05
  11  Prefactor     50.975        111.22       -.95235E-05   -.68162E-06
  12  Prefactor     15.988        27.858        .32063E-05    .25403E-04
  13  norm          .80457        .66408        .28045E-07    .75584E-04
  14  norm          4.1513        9.5123        .20626E-06    .44827E-04
  15  Prefactor     .10000E-03    2.8569       -.19743E-07** at limit **
  16  Prefactor     .10000E-03    29.475       -.96652E-08** at limit **
  17  norm          7.7381        7.2354       -.14097E-07    .10424E-05
  18  Prefactor     84.722        121.09        .13789E-05    .36186E-05
  19  Prefactor     .10000E-03    3.3305       -.36986E-07** at limit **
  20  Prefactor     .10000E-03    11.886        .11805E-06** at limit **
  21  norm          .10002E-03    9.4382        .23392E-06** at limit **
  22  Prefactor     .10000E-03    21.462        .99953E-07** at limit **
  23  Prefactor     .10000E-03    1.5709       -.24333E-06** at limit **
  24  Prefactor     17.741        33.994        .23827E-06    .42040E-05
  25  Prefactor     .10000E-03    5.9236       -.37403E-07** at limit **
  26  Prefactor     .10000E-03    15.685       -.16115E-06** at limit **
  27  Prefactor     .10000E-03    1.5682       -.25569E-07** at limit **
  28  Normalizat    .87569        .19464       -.92841E-06    .52100E-04
  29  Prefactor     1.1096        .14127        .75216E-06    .55917E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.56914
  Prefactor  = 18.6102
  Prefactor  = 0.0001
  Prefactor  = 6.58321
  norm       = 0.401762
  Prefactor  = 9.65769
  norm       = 0.000100001
  norm       = 17.2794
  Prefactor  = 0.0001
  Prefactor  = 11.0432
  Prefactor  = 50.9747
  Prefactor  = 15.9885
  norm       = 0.804574
  norm       = 4.1513
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.73814
  Prefactor  = 84.7218
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 17.7414
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.875693
  Prefactor  = 1.10958
 **********
 **   18 **HESSE 
 **********

 FCN=   7179.578     FROM HESSE     STATUS=OK           563 CALLS     4292 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5691        5.7667        .13694E-03   -1.5122    
   2  Prefactor     18.610        32.962        .92846E-04   -1.4845    
   3  Prefactor     .10000E-03    11.687        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.5832        6.2000        .15647E-03   -1.5195    
   5  norm          .40176        1.2651        .16678E-03   -1.5581    
   6  Prefactor     9.6577        16.156        .12898E-03   -1.5086    
   7  norm          .10000E-03    20.958        .19884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.279        15.058        .48176E-03   -1.4876    
   9  Prefactor     .10000E-03    20.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.043        12.353        .12056E-03   -1.5043    
  11  Prefactor     50.975        111.93        .56290E-04   -1.4279    
  12  Prefactor     15.988        27.935        .99983E-04   -1.4908    
  13  norm          .80457        .65375        .60086E-04   -1.5529    
  14  norm          4.1513        9.5813        .99055E-03   -1.5300    
  15  Prefactor     .10000E-03    2.8602        .13985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    29.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.7381        7.2326        .14415E-03   -1.5152    
  18  Prefactor     84.722        120.41        .21817E-03   -1.3864    
  19  Prefactor     .10000E-03    3.3417        .15093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10002E-03    89.567        .49079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    21.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.3721        .19879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     17.741        34.010        .95078E-04   -1.4865    
  25  Prefactor     .10000E-03    5.9297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    16.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1.5739        .10361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .87569        .21935        .30346E-03   -.97320    
  29  Prefactor     1.1096        .16038        .20843E-03   -.89161    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4562e-10
Minuit parameter uncertainties:
  1  5.76711
  2  32.9947
  3  3.57132e-07
  4  6.2006
  5  1.26514
  6  16.163
  7  0.000294076
  8  15.0613
  9  2.341e-06
  10  12.356
  11  112.398
  12  27.9573
  13  0.653754
  14  9.58481
  15  5.26901e-07
  16  6.17875e-06
  17  7.23346
  18  120.762
  19  1.97266e-06
  20  3.52874e-06
  21  0.00247262
  22  4.80579e-07
  23  0.000127855
  24  34.0472
  25  1.02727e-06
  26  5.31908e-06
  27  2.37762e-07
  28  0.219578
  29  0.160455
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  2.473e-03  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.110e+00  1.605e-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.757e-01  2.196e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/33058/likelihoodResults_478828801_479088001_4FGL_J2335.4-0128_daily_bin924.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): 102
logL (Free Index) = 7179.57824738
delta logL = -5.18936085427e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7179.57824737
delta logL = -5.18878587172e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96357E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5048       1.0000          .0000       5.0000    
     3 'Normalizat'    .87570       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1096       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7179.578     FROM MIGRAD    STATUS=FAILED       115 CALLS      272 TOTAL
                     EDM=   .72E-02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .49025E-03    9909.9        .62043E-02** at limit **
   2  alpha         2.0053        3.8725        .50000       -.61826E-05
   3  Normalizat    .87569        .19509        .30347E-03    .57429E-04
   4  Prefactor     1.1096        .24104        .20843E-03   -.68474E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7179.577     FROM SIMPLEX   STATUS=PROGRESS     133 CALLS      405 TOTAL
                     EDM=   .56E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0673        9909.9        .97461E-03   -.54812E-02
   2  alpha         2.0053        3.8725        .35624E-04   -.61826E-05
   3  Normalizat    .87563        .19509        .47119E-05    .57429E-04
   4  Prefactor     1.1095        .24104        .16675E-05   -.68474E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7179.577     FROM MIGRAD    STATUS=FAILED        96 CALLS      501 TOTAL
                     EDM=   .73E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1108        266.43        .99269E-04    .59553E-05
   2  alpha         2.0540        2.8773        .94639E-01    .11040E-03
   3  Normalizat    .87636        .20732        .24278E-05   -.58066E-04
   4  Prefactor     1.1085        .16158        .83373E-05   -.34635E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.11084
  alpha      = 2.054
  Normalizat = 0.876356
  Prefactor  = 1.1085
 **********
 **   18 **HESSE 
 **********

 FCN=   7179.577     FROM HESSE     STATUS=OK            25 CALLS      526 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1108        93.763        .39707E-05   -1.5497    
   2  alpha         2.0540        3.5232        .18928E-01   -.17936    
   3  Normalizat    .87636        .20623        .48556E-06   -.97296    
   4  Prefactor     1.1085        .15963        .16675E-05   -.89195    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01587e-11
Minuit parameter uncertainties:
  1  20.4436
  2  3.61433
  3  0.206415
  4  0.159696
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/33058': 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): 1
logL (Free Index) = 7179.57658022
delta logL = 0.00161526229112

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.111e+00  2.044e+01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.054e+00  3.614e+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.109e+00  1.597e-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.764e-01  2.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/33058/cmap_HighResolution_478828801_479088001_4FGL_J2335.4-0128_daily_bin924.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.19e-05', job_status='DONE', photon_flux_upper_limit='5.28e-08', time_completed='2021-09-30 00:36:47.473732', job_id='33058', GAL2='1.11', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1632987407.47', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.62e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='924' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:36:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 33058: <4FGL_J2335.4-0128_daily_bin924> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin924> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 00:20:41 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:20:43 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:43 2021
Terminated at Thu Sep 30 00:36:48 2021
Results reported at Thu Sep 30 00:36:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin924 353.869 -1.476 478828801 479088001 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 :                                   852.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             306.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   964 sec.
    Turnaround time :                            967 sec.

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

