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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin580
RA = 353.869, Dec = -1.476
tmin = 389664001, tmax = 389923201
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='31507', job_status='RUN', time_executed='2021-09-30 00:15:58.752918', time_epoch_executed='1632986158.75' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='580'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31507

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31507/ft1_4FGL_J2335.4-0128_daily_bin580.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31507/ft2_4FGL_J2335.4-0128_daily_bin580.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31507/ft1_4FGL_J2335.4-0128_daily_bin580.fits outfile=/scratch/kocevski/31507/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin580.fits ra=353.869 dec=-1.476 rad=12.0 tmin=389664001.0 tmax=389923201.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 4.84
user 4.58
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/31507/ft2_4FGL_J2335.4-0128_daily_bin580.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/31507/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin580.fits evtable="EVENTS" outfile="/scratch/kocevski/31507/ft1_filtered_4FGL_J2335.4-0128_daily_bin580.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31507/ft1_filtered_4FGL_J2335.4-0128_daily_bin580.fits" evtable="EVENTS" scfile=/scratch/kocevski/31507/ft2_4FGL_J2335.4-0128_daily_bin580.fits sctable="SC_DATA" outfile=/scratch/kocevski/31507/ltcube_389664001_389923201_4FGL_J2335.4-0128_daily_bin580.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/31507/ft2_4FGL_J2335.4-0128_daily_bin580.fits
.....................!
real 11.84
user 11.51
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31507/ft1_filtered_4FGL_J2335.4-0128_daily_bin580.fits evtable="EVENTS" scfile=/scratch/kocevski/31507/ft2_4FGL_J2335.4-0128_daily_bin580.fits sctable="SC_DATA" expcube=/scratch/kocevski/31507/ltcube_389664001_389923201_4FGL_J2335.4-0128_daily_bin580.fits outfile=/scratch/kocevski/31507/expmap_389664001_389923201_4FGL_J2335.4-0128_daily_bin580.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/31507/ltcube_389664001_389923201_4FGL_J2335.4-0128_daily_bin580.fits
.....................!
real 190.16
user 184.99
sys 4.83

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/31507/ft1_filtered_4FGL_J2335.4-0128_daily_bin580.fits scfile=/scratch/kocevski/31507/ft2_4FGL_J2335.4-0128_daily_bin580.fits outfile=/scratch/kocevski/31507/cmap_389664001_389923201_4FGL_J2335.4-0128_daily_bin580.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31507/ft1_filtered_4FGL_J2335.4-0128_daily_bin580.fits scfile=/scratch/kocevski/31507/ft2_4FGL_J2335.4-0128_daily_bin580.fits outfile=/scratch/kocevski/31507/cmap_HighResolution_389664001_389923201_4FGL_J2335.4-0128_daily_bin580.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.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/31507/ft1_filtered_4FGL_J2335.4-0128_daily_bin580.fits evtable="EVENTS" scfile=/scratch/kocevski/31507/ft2_4FGL_J2335.4-0128_daily_bin580.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31507/Model_4FGL_J2335.4-0128_daily_bin580.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/31507/ft1_filtered_4FGL_J2335.4-0128_daily_bin580.fits....................!
real 56.03
user 54.80
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6517       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10643E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .63293       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.6743       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .37618E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .11807E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    18.403       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    37.173       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.6847       1.0000         .10000E-03   10000.    
    14 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.962       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    16.986       1.0000         .10000E-03   10000.    
    18 'Prefactor '    192.01       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10654E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .18385E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    58.059       1.0000         .10000E-03   10000.    
    25 'Prefactor '    31.225       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    16.756       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .76818       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .85249       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=   5438.270     FROM MIGRAD    STATUS=CONVERGED    739 CALLS     3729 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6541        10.645       -.12552E-05    .16248E-03
   2  Prefactor     .10000E-03    49.805        .69075E-06** at limit **
   3  Prefactor     .70325        11.864        .13014E-05   -.38495E-04
   4  Prefactor     .10000E-03    2.2439        .64582E-07** at limit **
   5  norm          8.6728        3.2577       -.37268E-08   -.61938E-03
   6  Prefactor     .10020E-03    18.627       -.17314E-05** at limit **
   7  norm          .10000E-03    2.5181        .44153E-06** at limit **
   8  norm          18.410        14.502        .53916E-06   -.14185E-04
   9  Prefactor     .10000E-03    12.098        .95412E-07** at limit **
  10  Prefactor     37.181        24.081        .47615E-06   -.88045E-05
  11  Prefactor     .10000E-03    17.035        .20474E-06** at limit **
  12  Prefactor     .10000E-03    2.8804        .13867E-06** at limit **
  13  norm          7.6845        1.7620       -.30953E-06    .47613E-03
  14  norm          .10000E-03    4.1410        .39784E-06** at limit **
  15  Prefactor     19.959        12.428        .26465E-06   -.65345E-05
  16  Prefactor     .10000E-03    31.690        .14009E-06** at limit **
  17  norm          16.983        10.502        .18519E-06   -.28709E-05
  18  Prefactor     191.38        239.51        .45935E-06    .17708E-04
  19  Prefactor     .10000E-03    7.7305        .51304E-06** at limit **
  20  Prefactor     .10000E-03    86.739        .10142E-05** at limit **
  21  norm          .10000E-03    45.491        .72566E-06** at limit **
  22  Prefactor     .10000E-03    84.956        .14753E-06** at limit **
  23  Prefactor     .10000E-03    5.6644       -.53898E-05** at limit **
  24  Prefactor     58.053        39.552       -.64798E-06   -.18075E-05
  25  Prefactor     31.228        26.972        .67354E-06   -.27469E-04
  26  Prefactor     .10000E-03    4.3204        .67141E-07** at limit **
  27  Prefactor     16.764        11.319        .44587E-06   -.79705E-04
  28  Normalizat    .76766        .21969       -.34686E-05   -.12257E-03
  29  Prefactor     .85267        .14613       -.47948E-06   -.33423E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.6541
  Prefactor  = 0.0001
  Prefactor  = 0.70325
  Prefactor  = 0.0001
  norm       = 8.67281
  Prefactor  = 0.000100204
  norm       = 0.000100001
  norm       = 18.4103
  Prefactor  = 0.0001
  Prefactor  = 37.1812
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.68448
  norm       = 0.0001
  Prefactor  = 19.9589
  Prefactor  = 0.0001
  norm       = 16.9831
  Prefactor  = 191.385
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 58.0526
  Prefactor  = 31.228
  Prefactor  = 0.0001
  Prefactor  = 16.7645
  Normalizat = 0.767657
  Prefactor  = 0.85267
 **********
 **   18 **HESSE 
 **********

 FCN=   5438.270     FROM HESSE     STATUS=OK           553 CALLS     4282 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6541        10.586        .84486E-03   -1.5232    
   2  Prefactor     .10000E-03    50.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .70325        58.198        .46427E-02   -1.5540    
   4  Prefactor     .10000E-03    2.2511        .10778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.6728        3.2550        .75070E-04   -1.5119    
   6  Prefactor     .10020E-03    113.41        .56499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    6.1377        .21539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          18.410        14.517        .93364E-04   -1.4850    
   9  Prefactor     .10000E-03    12.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     37.181        24.096        .65735E-04   -1.4488    
  11  Prefactor     .10000E-03    17.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.8864        .12226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.6845        1.7582        .42659E-04   -1.5153    
  14  norm          .10000E-03    4.2400        .14674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.959        12.421        .89646E-04   -1.4814    
  16  Prefactor     .10000E-03    31.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          16.983        10.494        .97179E-04   -1.4884    
  18  Prefactor     191.38        240.20        .14574E-03   -1.2932    
  19  Prefactor     .10000E-03    7.7758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    88.717        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    46.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    85.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.6598        .23485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     58.053        39.616        .52651E-04   -1.4183    
  25  Prefactor     31.228        26.998        .71704E-04   -1.4590    
  26  Prefactor     .10000E-03    4.3272        .14971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     16.764        11.372        .97843E-04   -1.4889    
  28  Normalizat    .76766        .25071        .30744E-03   -1.0128    
  29  Prefactor     .85267        .16968        .21395E-03   -.97815    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.37683e-08
Minuit parameter uncertainties:
  1  10.59
  2  0.000286347
  3  12.807
  4  9.30447e-06
  5  3.25508
  6  0.00964267
  7  0.000159274
  8  14.5193
  9  2.66204e-05
  10  24.1023
  11  5.17432e-05
  12  1.64456e-05
  13  1.75817
  14  5.47126e-05
  15  12.4226
  16  0.000103717
  17  10.4951
  18  241.45
  19  1.06386e-05
  20  0.000924633
  21  0.000199723
  22  0.000445211
  23  2.17303e-06
  24  39.6344
  25  27.0088
  26  1.32013e-05
  27  11.3735
  28  0.251091
  29  0.169783
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.997e-04  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:  8.527e-01  1.698e-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:  7.677e-01  2.511e-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: 6.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.86e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/31507/likelihoodResults_389664001_389923201_4FGL_J2335.4-0128_daily_bin580.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) = 5438.26986058
delta logL = -0.000103497942291

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5438.26975793
delta logL = -8.50762262417e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10285E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4443       1.0000          .0000       5.0000    
     3 'Normalizat'    .76766       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85267       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=   5438.269     FROM MIGRAD    STATUS=CONVERGED    154 CALLS      321 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23767E-01    16.572        .18142E-01   -.12958E-02
   2  alpha         5.0000        4.5395        .50000    ** at limit **
   3  Normalizat    .76408        .39025E-01    .30744E-03    .12932E-03
   4  Prefactor     .85411        .28368E-01    .21395E-03    .19033E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.023767
  alpha      = 5
  Normalizat = 0.764079
  Prefactor  = 0.854115
 **********
 **   18 **HESSE 
 **********

 FCN=   5438.269     FROM HESSE     STATUS=OK            33 CALLS      354 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .23767E-01    2.5222        .81645E-03   -1.5739    
   2  alpha         5.0000        2.5350        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .76408        .24566        .12297E-04   -1.0142    
   4  Prefactor     .85411        .17163        .42790E-04   -.97763    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14635e-10
Minuit parameter uncertainties:
  1  0.488662
  2  0.000878624
  3  0.246015
  4  0.171742
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31507': 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) = 5438.26862291
delta logL = 0.00113416451222

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  2.377e-02  4.887e-01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  5.000e+00  8.786e-04  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:  8.541e-01  1.717e-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:  7.641e-01  2.460e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/31507/cmap_HighResolution_389664001_389923201_4FGL_J2335.4-0128_daily_bin580.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.86e-05', job_status='DONE', photon_flux_upper_limit='6.90e-08', time_completed='2021-09-30 00:28:09.123115', job_id='31507', GAL2='0.85', fit_tolerance='1e-08', EG2='0.76', EG='0.77', time_epoch_completed='1632986889.12', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.13e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='580' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:28:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 31507: <4FGL_J2335.4-0128_daily_bin580> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin580> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep 30 00:15:40 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:15:42 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:15:42 2021
Terminated at Thu Sep 30 00:28:09 2021
Results reported at Thu Sep 30 00:28:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin580 353.869 -1.476 389664001 389923201 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 :                                   725.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             350.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   747 sec.
    Turnaround time :                            749 sec.

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

