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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin808
RA = 353.869, Dec = -1.476
tmin = 448761601, tmax = 449020801
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='32876', job_status='RUN', time_executed='2021-09-30 00:22:29.418001', time_epoch_executed='1632986549.42' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='808'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32876

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32876/ft1_4FGL_J2335.4-0128_daily_bin808.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32876/ft2_4FGL_J2335.4-0128_daily_bin808.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32876/ft1_4FGL_J2335.4-0128_daily_bin808.fits outfile=/scratch/kocevski/32876/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin808.fits ra=353.869 dec=-1.476 rad=12.0 tmin=448761601.0 tmax=449020801.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 5.69
user 5.43
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/32876/ft2_4FGL_J2335.4-0128_daily_bin808.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/32876/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin808.fits evtable="EVENTS" outfile="/scratch/kocevski/32876/ft1_filtered_4FGL_J2335.4-0128_daily_bin808.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.48
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/32876/ft1_filtered_4FGL_J2335.4-0128_daily_bin808.fits" evtable="EVENTS" scfile=/scratch/kocevski/32876/ft2_4FGL_J2335.4-0128_daily_bin808.fits sctable="SC_DATA" outfile=/scratch/kocevski/32876/ltcube_448761601_449020801_4FGL_J2335.4-0128_daily_bin808.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/32876/ft2_4FGL_J2335.4-0128_daily_bin808.fits
.....................!
real 11.93
user 11.56
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32876/ft1_filtered_4FGL_J2335.4-0128_daily_bin808.fits evtable="EVENTS" scfile=/scratch/kocevski/32876/ft2_4FGL_J2335.4-0128_daily_bin808.fits sctable="SC_DATA" expcube=/scratch/kocevski/32876/ltcube_448761601_449020801_4FGL_J2335.4-0128_daily_bin808.fits outfile=/scratch/kocevski/32876/expmap_448761601_449020801_4FGL_J2335.4-0128_daily_bin808.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/32876/ltcube_448761601_449020801_4FGL_J2335.4-0128_daily_bin808.fits
.....................!
real 190.38
user 184.85
sys 5.22

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/32876/ft1_filtered_4FGL_J2335.4-0128_daily_bin808.fits scfile=/scratch/kocevski/32876/ft2_4FGL_J2335.4-0128_daily_bin808.fits outfile=/scratch/kocevski/32876/cmap_448761601_449020801_4FGL_J2335.4-0128_daily_bin808.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32876/ft1_filtered_4FGL_J2335.4-0128_daily_bin808.fits scfile=/scratch/kocevski/32876/ft2_4FGL_J2335.4-0128_daily_bin808.fits outfile=/scratch/kocevski/32876/cmap_HighResolution_448761601_449020801_4FGL_J2335.4-0128_daily_bin808.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.57
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/32876/ft1_filtered_4FGL_J2335.4-0128_daily_bin808.fits evtable="EVENTS" scfile=/scratch/kocevski/32876/ft2_4FGL_J2335.4-0128_daily_bin808.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/32876/Model_4FGL_J2335.4-0128_daily_bin808.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/32876/ft1_filtered_4FGL_J2335.4-0128_daily_bin808.fits.....................!
real 31.11
user 29.87
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.397       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    196.49       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.002       1.0000         .10000E-03   10000.    
     5 'norm      '    14.528       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    68.393       1.0000         .10000E-03   10000.    
     9 'Prefactor '    46.671       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.0498       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.415       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    31.472       1.0000         .10000E-03   10000.    
    18 'Prefactor '    191.89       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11623E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.7377       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    60.275       1.0000         .10000E-03   10000.    
    26 'Prefactor '    20.256       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .51054       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1229       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=   2189.779     FROM MIGRAD    STATUS=CONVERGED    688 CALLS     4182 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.393        34.758       -.40963E-06   -.42260E-04
   2  Prefactor     .10006E-03    72.650       -.10467E-04** at limit **
   3  Prefactor     196.49        83.764        .39122E-06    .52198E-04
   4  Prefactor     18.001        17.847       -.61723E-08    .58360E-04
   5  norm          14.527        11.242        .14441E-07    .11870E-04
   6  Prefactor     .10001E-03    24.192       -.41648E-05** at limit **
   7  norm          .10000E-03    8.6298        .55296E-07** at limit **
   8  norm          68.390        30.570        .68476E-07   -.72919E-04
   9  Prefactor     46.660        66.457       -.18967E-05   -.10023E-03
  10  Prefactor     4.0408        117.86       -.33365E-05   -.43754E-04
  11  Prefactor     .10002E-03    47.069        .54885E-05** at limit **
  12  Prefactor     .10000E-03    5.6549        .70108E-08** at limit **
  13  norm          .10000E-03    1.4949       -.15890E-06** at limit **
  14  norm          .10000E-03    2.9476       -.13922E-07** at limit **
  15  Prefactor     17.412        28.555       -.29187E-06   -.38740E-04
  16  Prefactor     .10000E-03    38.999        .99541E-06** at limit **
  17  norm          31.475        26.622        .35355E-06    .37790E-04
  18  Prefactor     191.88        440.28       -.13203E-04   -.12145E-04
  19  Prefactor     .10000E-03    20.956        .10592E-05** at limit **
  20  Prefactor     .10000E-03    20.928        .18594E-05** at limit **
  21  norm          .10001E-03    55.389        .38626E-05** at limit **
  22  Prefactor     .10000E-03    63.851        .50308E-06** at limit **
  23  Prefactor     3.7325        10.035        .87930E-05   -.55696E-03
  24  Prefactor     .10000E-03    33.917       -.28045E-05** at limit **
  25  Prefactor     60.288        63.099        .23586E-05    .16150E-03
  26  Prefactor     20.250        32.645       -.11690E-05   -.66334E-04
  27  Prefactor     .10000E-03    15.509       -.48918E-06** at limit **
  28  Normalizat    .51077        .42731       -.56157E-05   -.18468E-05
  29  Prefactor     1.1228        .30206        .14557E-05   -.15560E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.3928
  Prefactor  = 0.000100055
  Prefactor  = 196.493
  Prefactor  = 18.0014
  norm       = 14.527
  Prefactor  = 0.000100009
  norm       = 0.0001
  norm       = 68.3898
  Prefactor  = 46.66
  Prefactor  = 4.04081
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 17.4123
  Prefactor  = 0.000100001
  norm       = 31.4746
  Prefactor  = 191.878
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  norm       = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 3.73246
  Prefactor  = 0.000100004
  Prefactor  = 60.2882
  Prefactor  = 20.2504
  Prefactor  = 0.0001
  Normalizat = 0.510771
  Prefactor  = 1.12278
 **********
 **   18 **HESSE 
 **********

 FCN=   2189.779     FROM HESSE     STATUS=OK           537 CALLS     4719 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.393        34.694        .60170E-04   -1.4374    
   2  Prefactor     .10006E-03    76.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     196.49        83.687        .28820E-04   -1.2895    
   4  Prefactor     18.001        17.785        .94396E-04   -1.4859    
   5  norm          14.527        11.234        .10508E-03   -1.4945    
   6  Prefactor     .10001E-03    24.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    8.6407        .13392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          68.390        30.555        .48535E-04   -1.4052    
   9  Prefactor     46.660        66.680        .58692E-04   -1.4341    
  10  Prefactor     4.0408        119.69        .20037E-03   -1.5306    
  11  Prefactor     .10002E-03    48.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.6563        .10869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.5189        .10860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.9480        .78468E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.412        28.566        .95975E-04   -1.4873    
  16  Prefactor     .10000E-03    39.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          31.475        26.629        .71423E-04   -1.4585    
  18  Prefactor     191.88        434.15        .29157E-04   -1.2929    
  19  Prefactor     .10000E-03    21.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    21.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10001E-03    55.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    63.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.7325        10.358        .10443E-02   -1.5322    
  24  Prefactor     .10000E-03    34.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     60.288        63.354        .51680E-04   -1.4153    
  26  Prefactor     20.250        32.657        .88994E-04   -1.4808    
  27  Prefactor     .10000E-03    15.543        .17993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .51077        .44944        .44354E-03   -1.1192    
  29  Prefactor     1.1228        .32572        .22014E-03   -.88742    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00848e-09
Minuit parameter uncertainties:
  1  34.7099
  2  0.00410493
  3  83.738
  4  17.7899
  5  11.236
  6  0.000927664
  7  1.1817e-05
  8  30.5624
  9  66.7864
  10  44.0806
  11  0.0017151
  12  2.44236e-08
  13  1.18404e-05
  14  1.19148e-06
  15  28.5884
  16  0.000288015
  17  26.639
  18  441.749
  19  0.000214167
  20  0.00038125
  21  0.00128776
  22  0.000181433
  23  10.3627
  24  0.000776353
  25  63.4246
  26  32.6856
  27  6.0034e-05
  28  0.452685
  29  0.326303
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.288e-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.123e+00  3.263e-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:  5.108e-01  4.527e-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: 1.98e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.22e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/32876/likelihoodResults_448761601_449020801_4FGL_J2335.4-0128_daily_bin808.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) = 2189.77956627
delta logL = -8.49870612001e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2189.77948166
delta logL = -3.82768575946e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5687       1.0000          .0000       5.0000    
     3 'Normalizat'    .51077       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1228       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=   2189.779     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      291 TOTAL
                     EDM=   .69E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    192.98        .18142E-01** at limit **
   2  alpha         2.9818        2.9996        .50000        .10118E-07
   3  Normalizat    .51077        .16980E-01    .44354E-03   -.31386E-04
   4  Prefactor     1.1228        .12247E-01    .22014E-03   -.28172E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.98176
  Normalizat = 0.510769
  Prefactor  = 1.12278
 **********
 **   18 **HESSE 
 **********

 FCN=   2189.779     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      320 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7140.9        .70893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.9818        3.9472        .50000        .19392    
   3  Normalizat    .51077        .94878E-01    .17742E-04   -1.1192    
   4  Prefactor     1.1228        .68448E-01    .44027E-04   -.88742    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.72786e-10
Minuit parameter uncertainties:
  1  0.00124146
  2  5598.79
  3  0.0949079
  4  0.0684532
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32876': 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): 102
logL (Free Index) = 2189.7794812
delta logL = 8.27035364637e-08

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.241e-03  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.982e+00  5.599e+03  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.123e+00  6.845e-02  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:  5.108e-01  9.491e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/32876/cmap_HighResolution_448761601_449020801_4FGL_J2335.4-0128_daily_bin808.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.22e-05', job_status='DONE', photon_flux_upper_limit='1.98e-07', time_completed='2021-09-30 00:30:39.302703', job_id='32876', GAL2='1.12', fit_tolerance='1e-08', EG2='0.51', EG='0.51', time_epoch_completed='1632987039.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='8.27e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='808' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:30:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 32876: <4FGL_J2335.4-0128_daily_bin808> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin808 353.869 -1.476 448761601 449020801 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 :                                   487.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   610 sec.
    Turnaround time :                            613 sec.

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

