/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 198 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 = 7350
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2335.4-0128_daily_bin398
RA = 353.869, Dec = -1.476
tmin = 342489601, tmax = 342748801
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='30238', job_status='RUN', time_executed='2021-09-30 00:14:13.387435', time_epoch_executed='1632986053.39' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='398'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/30238

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/30238/ft1_4FGL_J2335.4-0128_daily_bin398.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/30238/ft2_4FGL_J2335.4-0128_daily_bin398.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/30238/ft1_4FGL_J2335.4-0128_daily_bin398.fits outfile=/scratch/kocevski/30238/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin398.fits ra=353.869 dec=-1.476 rad=12.0 tmin=342489601.0 tmax=342748801.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.45
user 3.26
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/30238/ft2_4FGL_J2335.4-0128_daily_bin398.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/30238/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin398.fits evtable="EVENTS" outfile="/scratch/kocevski/30238/ft1_filtered_4FGL_J2335.4-0128_daily_bin398.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/30238/ft1_filtered_4FGL_J2335.4-0128_daily_bin398.fits" evtable="EVENTS" scfile=/scratch/kocevski/30238/ft2_4FGL_J2335.4-0128_daily_bin398.fits sctable="SC_DATA" outfile=/scratch/kocevski/30238/ltcube_342489601_342748801_4FGL_J2335.4-0128_daily_bin398.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/30238/ft2_4FGL_J2335.4-0128_daily_bin398.fits
.....................!
real 11.76
user 11.42
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/30238/ft1_filtered_4FGL_J2335.4-0128_daily_bin398.fits evtable="EVENTS" scfile=/scratch/kocevski/30238/ft2_4FGL_J2335.4-0128_daily_bin398.fits sctable="SC_DATA" expcube=/scratch/kocevski/30238/ltcube_342489601_342748801_4FGL_J2335.4-0128_daily_bin398.fits outfile=/scratch/kocevski/30238/expmap_342489601_342748801_4FGL_J2335.4-0128_daily_bin398.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/30238/ltcube_342489601_342748801_4FGL_J2335.4-0128_daily_bin398.fits
.....................!
real 189.33
user 184.58
sys 4.39

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/30238/ft1_filtered_4FGL_J2335.4-0128_daily_bin398.fits scfile=/scratch/kocevski/30238/ft2_4FGL_J2335.4-0128_daily_bin398.fits outfile=/scratch/kocevski/30238/cmap_342489601_342748801_4FGL_J2335.4-0128_daily_bin398.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/30238/ft1_filtered_4FGL_J2335.4-0128_daily_bin398.fits scfile=/scratch/kocevski/30238/ft2_4FGL_J2335.4-0128_daily_bin398.fits outfile=/scratch/kocevski/30238/cmap_HighResolution_342489601_342748801_4FGL_J2335.4-0128_daily_bin398.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.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/30238/ft1_filtered_4FGL_J2335.4-0128_daily_bin398.fits evtable="EVENTS" scfile=/scratch/kocevski/30238/ft2_4FGL_J2335.4-0128_daily_bin398.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/30238/Model_4FGL_J2335.4-0128_daily_bin398.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/30238/ft1_filtered_4FGL_J2335.4-0128_daily_bin398.fits.....................!
real 61.78
user 60.43
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.1823       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .73841E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .16317E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.3325       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    37.547       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10356E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.5373       1.0000         .10000E-03   10000.    
    14 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.6257       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    33.700       1.0000         .10000E-03   10000.    
    21 'norm      '    14.643       1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.909       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.7405       1.0000         .10000E-03   10000.    
    24 'Prefactor '    22.054       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10702E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.826       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1713       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .84153       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=   6127.588     FROM MIGRAD    STATUS=CONVERGED    764 CALLS     3725 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5128        .74952E-07** at limit **
   2  Prefactor     .10000E-03    17.587        .14692E-06** at limit **
   3  Prefactor     .10000E-03    23.242        .50755E-06** at limit **
   4  Prefactor     .10000E-03    1.7429        .88800E-07** at limit **
   5  norm          2.1823        2.7999        .30452E-06    .19384E-03
   6  Prefactor     .10029E-03    11.766        .25290E-05** at limit **
   7  norm          .10000E-03    1.2368        .10239E-06** at limit **
   8  norm          .10000E-03    29.963        .14038E-05** at limit **
   9  Prefactor     4.3297        17.918        .48797E-06   -.25412E-04
  10  Prefactor     .10000E-03    7.6547        .17515E-06** at limit **
  11  Prefactor     37.587        49.381       -.12886E-05   -.32216E-04
  12  Prefactor     .10000E-03    4.3327       -.25301E-05** at limit **
  13  norm          2.5372        1.0555        .14258E-07    .41454E-04
  14  norm          .10000E-03    3.0988       -.99280E-06** at limit **
  15  Prefactor     .10000E-03    4.6278       -.44775E-06** at limit **
  16  Prefactor     .10000E-03    16.894        .16344E-06** at limit **
  17  norm          .10000E-03    3.6083       -.55421E-06** at limit **
  18  Prefactor     3.2253        1215.9        .12377E-05    .30900E-05
  19  Prefactor     .10000E-03    9.1844        .35953E-05** at limit **
  20  Prefactor     33.702        29.311       -.31790E-06   -.88815E-04
  21  norm          14.635        24.098       -.25518E-06   -.78534E-05
  22  Prefactor     17.927        68.724       -.20410E-05   -.16971E-04
  23  Prefactor     2.7408        3.7284        .34057E-06    .88410E-04
  24  Prefactor     22.018        36.948       -.69312E-06   -.31468E-04
  25  Prefactor     .10000E-03    22.378       -.13387E-06** at limit **
  26  Prefactor     12.828        12.338       -.35225E-06   -.51708E-04
  27  Prefactor     .10000E-03    4.0289        .23253E-06** at limit **
  28  Normalizat    1.1709        .22019        .48571E-05   -.24534E-03
  29  Prefactor     .84179        .15236       -.41468E-05   -.10321E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.18234
  Prefactor  = 0.000100289
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.32966
  Prefactor  = 0.0001
  Prefactor  = 37.5869
  Prefactor  = 0.000100001
  norm       = 2.53718
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.22529
  Prefactor  = 0.000100001
  Prefactor  = 33.7021
  norm       = 14.6348
  Prefactor  = 17.9268
  Prefactor  = 2.74084
  Prefactor  = 22.0175
  Prefactor  = 0.0001
  Prefactor  = 12.8276
  Prefactor  = 0.0001
  Normalizat = 1.17091
  Prefactor  = 0.841793
 **********
 **   18 **HESSE 
 **********

 FCN=   6127.588     FROM HESSE     STATUS=OK           551 CALLS     4276 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5155        .12118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.7459        .10090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.1823        2.7991        .14163E-03   -1.5413    
   6  Prefactor     .10029E-03    59.346        .47930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.2421        .84964E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    31.256        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.3297        17.932        .19353E-03   -1.5292    
  10  Prefactor     .10000E-03    7.6782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     37.587        49.348        .65407E-04   -1.4481    
  12  Prefactor     .10000E-03    4.4671        .16114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.5372        1.0540        .25639E-04   -1.5389    
  14  norm          .10000E-03    3.1530        .13474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.6501        .16442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.6197        .14526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.2253        1180.1        .25168E-03   -1.5349    
  19  Prefactor     .10000E-03    9.4839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     33.702        29.314        .69028E-04   -1.4546    
  21  norm          14.635        23.950        .10467E-03   -1.4943    
  22  Prefactor     17.927        68.754        .94641E-04   -1.4861    
  23  Prefactor     2.7408        3.7069        .15650E-03   -1.5377    
  24  Prefactor     22.018        36.960        .85293E-04   -1.4769    
  25  Prefactor     .10000E-03    22.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     12.828        12.342        .11185E-03   -1.4992    
  27  Prefactor     .10000E-03    4.0516        .15339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1709        .23476        .26296E-03   -.87507    
  29  Prefactor     .84179        .16246        .22041E-03   -.98206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21181e-09
Minuit parameter uncertainties:
  1  7.32647e-08
  2  8.04033e-06
  3  3.92692e-05
  4  6.73491e-07
  5  2.79926
  6  0.00829176
  7  1.16918e-06
  8  0.000189286
  9  17.6317
  10  1.09199e-05
  11  49.4012
  12  0.000109451
  13  1.05398
  14  3.3084e-05
  15  1.49251e-05
  16  1.00462e-05
  17  2.11155e-05
  18  125.972
  19  0.000219342
  20  29.3266
  21  23.966
  22  69.0605
  23  3.70717
  24  36.9988
  25  4.08688e-05
  26  12.3443
  27  1.33485e-06
  28  0.234975
  29  0.162554
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.463e+01  2.397e+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:  8.418e-01  1.626e-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:  1.171e+00  2.350e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/30238/likelihoodResults_342489601_342748801_4FGL_J2335.4-0128_daily_bin398.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) = 6127.58464739
delta logL = 0.00308999838307

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6127.58361242
delta logL = 0.00412497095658

Fit tolerance = 1e-08

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

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

 FCN=   6127.584     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      192 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.785        29.143        .25202E-02   -.10424E-02
   2  alpha         2.4026        1.1922        .41191E-01    .16748E-04
   3  Normalizat    1.1724        .18774        .59425E-01    .82172E-05
   4  Prefactor     .84108        .13669        .44250E-01    .10287E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 15.7854
  alpha      = 2.40257
  Normalizat = 1.17241
  Prefactor  = 0.841085
 **********
 **   18 **HESSE 
 **********

 FCN=   6127.584     FROM HESSE     STATUS=OK            29 CALLS      221 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.785        26.287        .10081E-03   -1.4913    
   2  alpha         2.4026        1.0852        .16476E-02   -.38980E-01
   3  Normalizat    1.1724        .21972        .26281E-03   -.87460    
   4  Prefactor     .84108        .16005        .22049E-03   -.98231    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.9253e-09
Minuit parameter uncertainties:
  1  26.3066
  2  1.12256
  3  0.219893
  4  0.160137
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/30238': 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) = 6127.58361239
delta logL = 0.00412499834238

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.579e+01  2.631e+01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.403e+00  1.123e+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:  8.411e-01  1.601e-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:  1.172e+00  2.199e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.56
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/30238/cmap_HighResolution_342489601_342748801_4FGL_J2335.4-0128_daily_bin398.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.47e-05', job_status='DONE', photon_flux_upper_limit='8.36e-08', time_completed='2021-09-30 00:26:42.588935', job_id='30238', GAL2='0.84', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1632986802.59', return_code2='0', ts='0.56', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='4.12e-03', ts2='0.57', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='398' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:26:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 30238: <4FGL_J2335.4-0128_daily_bin398> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin398> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 00:10:44 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:10:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 00:10:47 2021
Terminated at Thu Sep 30 00:26:43 2021
Results reported at Thu Sep 30 00:26:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin398 353.869 -1.476 342489601 342748801 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 :                                   747.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            959 sec.

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

