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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin1040
RA = 353.869, Dec = -1.476
tmin = 508896001, tmax = 509155201
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='33233', job_status='RUN', time_executed='2021-09-30 00:23:09.110895', time_epoch_executed='1632986589.11' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='1040'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/33233

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/33233/ft1_4FGL_J2335.4-0128_daily_bin1040.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/33233/ft2_4FGL_J2335.4-0128_daily_bin1040.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/33233/ft1_4FGL_J2335.4-0128_daily_bin1040.fits outfile=/scratch/kocevski/33233/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin1040.fits ra=353.869 dec=-1.476 rad=12.0 tmin=508896001.0 tmax=509155201.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.68
user 3.45
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/33233/ft2_4FGL_J2335.4-0128_daily_bin1040.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/33233/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin1040.fits evtable="EVENTS" outfile="/scratch/kocevski/33233/ft1_filtered_4FGL_J2335.4-0128_daily_bin1040.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/33233/ft1_filtered_4FGL_J2335.4-0128_daily_bin1040.fits" evtable="EVENTS" scfile=/scratch/kocevski/33233/ft2_4FGL_J2335.4-0128_daily_bin1040.fits sctable="SC_DATA" outfile=/scratch/kocevski/33233/ltcube_508896001_509155201_4FGL_J2335.4-0128_daily_bin1040.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/33233/ft2_4FGL_J2335.4-0128_daily_bin1040.fits
.....................!
real 11.73
user 11.32
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/33233/ft1_filtered_4FGL_J2335.4-0128_daily_bin1040.fits evtable="EVENTS" scfile=/scratch/kocevski/33233/ft2_4FGL_J2335.4-0128_daily_bin1040.fits sctable="SC_DATA" expcube=/scratch/kocevski/33233/ltcube_508896001_509155201_4FGL_J2335.4-0128_daily_bin1040.fits outfile=/scratch/kocevski/33233/expmap_508896001_509155201_4FGL_J2335.4-0128_daily_bin1040.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/33233/ltcube_508896001_509155201_4FGL_J2335.4-0128_daily_bin1040.fits
.....................!
real 190.84
user 185.98
sys 4.55

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/33233/ft1_filtered_4FGL_J2335.4-0128_daily_bin1040.fits scfile=/scratch/kocevski/33233/ft2_4FGL_J2335.4-0128_daily_bin1040.fits outfile=/scratch/kocevski/33233/cmap_508896001_509155201_4FGL_J2335.4-0128_daily_bin1040.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=353.869 yref=-1.476 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/33233/ft1_filtered_4FGL_J2335.4-0128_daily_bin1040.fits scfile=/scratch/kocevski/33233/ft2_4FGL_J2335.4-0128_daily_bin1040.fits outfile=/scratch/kocevski/33233/cmap_HighResolution_508896001_509155201_4FGL_J2335.4-0128_daily_bin1040.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/33233/ft1_filtered_4FGL_J2335.4-0128_daily_bin1040.fits evtable="EVENTS" scfile=/scratch/kocevski/33233/ft2_4FGL_J2335.4-0128_daily_bin1040.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/33233/Model_4FGL_J2335.4-0128_daily_bin1040.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/33233/ft1_filtered_4FGL_J2335.4-0128_daily_bin1040.fits.....................!
real 50.35
user 49.09
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.681       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13241E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11573E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .47813E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .87821       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.0244       1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.871       1.0000         .10000E-03   10000.    
    11 'Prefactor '    77.825       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.9289       1.0000         .10000E-03   10000.    
    14 'norm      '    5.4841       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    32.522       1.0000         .10000E-03   10000.    
    17 'norm      '    7.4881       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.225       1.0000         .10000E-03   10000.    
    21 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    34.269       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11386E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.7093       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .50719       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2089       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=   4838.593     FROM MIGRAD    STATUS=CONVERGED    745 CALLS     3911 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.682        14.314       -.63523E-06   -.97521E-04
   2  Prefactor     .10001E-03    98.122        .20470E-04** at limit **
   3  Prefactor     .10234E-03    10.717       -.23571E-05** at limit **
   4  Prefactor     .10000E-03    4.1927        .14449E-06** at limit **
   5  norm          .13022E-03    1.2586       -.25098E-06** at limit **
   6  Prefactor     .10000E-03    9.5000       -.96343E-07** at limit **
   7  norm          .10000E-03    1.5758        .17067E-07** at limit **
   8  norm          .86608        12.016       -.97201E-07   -.46710E-04
   9  Prefactor     5.0112        19.673        .48743E-06    .31583E-05
  10  Prefactor     29.865        26.949       -.54130E-06   -.10366E-04
  11  Prefactor     77.789        65.437       -.14338E-05   -.16117E-03
  12  Prefactor     .10005E-03    10.321       -.13843E-05** at limit **
  13  norm          1.9288        1.1919        .83498E-07    .11097E-03
  14  norm          5.4835        5.7186        .13450E-05    .83002E-04
  15  Prefactor     .10000E-03    3.4980       -.17210E-08** at limit **
  16  Prefactor     32.519        71.576       -.10440E-05   -.40186E-05
  17  norm          7.4875        7.6075        .60445E-06   -.18992E-03
  18  Prefactor     .10000E-03    64.991        .13818E-05** at limit **
  19  Prefactor     .10000E-03    5.5162        .18682E-07** at limit **
  20  Prefactor     10.222        19.928        .56600E-06   -.34671E-04
  21  norm          .10000E-03    13.906        .17765E-06** at limit **
  22  Prefactor     .10000E-03    20.234       -.42649E-06** at limit **
  23  Prefactor     .10000E-03    3.9194        .76847E-07** at limit **
  24  Prefactor     34.260        34.974       -.18829E-05   -.12260E-04
  25  Prefactor     .10000E-03    54.517       -.89111E-05** at limit **
  26  Prefactor     .10000E-03    4.9771        .31639E-07** at limit **
  27  Prefactor     5.7093        9.6795        .30641E-05   -.37893E-03
  28  Normalizat    .50706        .22947        .14318E-05    .20811E-03
  29  Prefactor     1.2090        .16738       -.12365E-06    .36983E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.6816
  Prefactor  = 0.000100012
  Prefactor  = 0.000102335
  Prefactor  = 0.000100001
  norm       = 0.000130223
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.866076
  Prefactor  = 5.01115
  Prefactor  = 29.8652
  Prefactor  = 77.7892
  Prefactor  = 0.000100053
  norm       = 1.92884
  norm       = 5.4835
  Prefactor  = 0.0001
  Prefactor  = 32.5192
  norm       = 7.48752
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2221
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.26
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 5.70925
  Normalizat = 0.507059
  Prefactor  = 1.20902
 **********
 **   18 **HESSE 
 **********

 FCN=   4838.593     FROM HESSE     STATUS=OK           573 CALLS     4484 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.682        14.319        .86022E-04   -1.4776    
   2  Prefactor     .10001E-03    100.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10234E-03    12.690        .74505E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.7322        .27374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .13022E-03    3.2087        .26933E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.5264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.5854        .85162E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .86608        40.387        .45360E-02   -1.5522    
   9  Prefactor     5.0112        19.662        .17940E-03   -1.5260    
  10  Prefactor     29.865        26.935        .73308E-04   -1.4614    
  11  Prefactor     77.789        64.228        .45520E-04   -1.3942    
  12  Prefactor     .10005E-03    37.730        .36776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.9288        1.1807        .56441E-04   -1.5430    
  14  norm          5.4835        5.6785        .15980E-03   -1.5240    
  15  Prefactor     .10000E-03    3.5037        .12703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     32.519        71.580        .70264E-04   -1.4567    
  17  norm          7.4875        7.6319        .73280E-03   -1.5161    
  18  Prefactor     .10000E-03    64.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.5369        .15949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.222        19.927        .62654E-03   -1.5068    
  21  norm          .10000E-03    13.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    20.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.0640        .26848E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     34.260        35.009        .68454E-04   -1.4537    
  25  Prefactor     .10000E-03    55.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    4.9830        .15155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     5.7093        10.052        .84052E-03   -1.5230    
  28  Normalizat    .50706        .24816        .35913E-03   -1.1209    
  29  Prefactor     1.2090        .18537        .18671E-03   -.86054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10021e-08
Minuit parameter uncertainties:
  1  14.3215
  2  0.00217741
  3  0.0108904
  4  0.00016612
  5  0.0196964
  6  1.57239e-05
  7  3.17722e-06
  8  11.8363
  9  19.6873
  10  26.9463
  11  64.2853
  12  0.00281912
  13  1.18069
  14  5.67907
  15  3.73338e-06
  16  71.7701
  17  7.63286
  18  0.000118932
  19  3.68827e-06
  20  19.9402
  21  1.08218e-06
  22  2.7542e-05
  23  1.22253e-05
  24  35.0301
  25  0.000709801
  26  9.43413e-07
  27  10.055
  28  0.248702
  29  0.185474
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.082e-06  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.209e+00  1.855e-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.071e-01  2.487e-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.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.77e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/33233/likelihoodResults_508896001_509155201_4FGL_J2335.4-0128_daily_bin1040.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) = 4838.59337493
delta logL = -0.000342016041941

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4838.59303289
delta logL = 2.43026079261e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10163E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4809       1.0000          .0000       5.0000    
     3 'Normalizat'    .50707       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2090       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 TERMINATED WITHOUT CONVERGENCE.

 FCN=   4838.593     FROM MIGRAD    STATUS=FAILED        77 CALLS      222 TOTAL
                     EDM=   .30E-02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    126.27         .0000    ** at limit **
   2  alpha         1.8429        1.5635         .0000        .12927E-04
   3  Normalizat    .50706        5.2431         .0000       -.61157E-04
   4  Prefactor     1.2090        6.8193         .0000       -.12597E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4838.593     FROM SIMPLEX   STATUS=UNCHANGED    201 CALLS      423 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    126.27        .11706E-02** at limit **
   2  alpha         1.8429        1.5635        .60502E-07    .12927E-04
   3  Normalizat    .50706        5.2431        .21630E-06   -.61157E-04
   4  Prefactor     1.2090        6.8193        .76791E-07   -.12597E-03
                               ERR DEF=  .500    
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4838.593     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      462 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    77.763        .18142E-01** at limit **
   2  alpha         1.8429        3.4213        .16461        .12928E-04
   3  Normalizat    .50706        .23090        .35912E-03   -.61098E-04
   4  Prefactor     1.2090        .18110        .18671E-03   -.12606E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.84291
  Normalizat = 0.507058
  Prefactor  = 1.20902
 **********
 **   18 **HESSE 
 **********

 FCN=   4838.593     FROM HESSE     STATUS=OK            23 CALLS      485 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    48.892        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8429        3.3640        .65845E-02   -.26596    
   3  Normalizat    .50706        .23100        .14365E-04   -1.1209    
   4  Prefactor     1.2090        .18117        .37342E-04   -.86054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79459e-10
Minuit parameter uncertainties:
  1  3.46146e-06
  2  2.41337
  3  0.231439
  4  0.181265
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/33233': 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) = 4838.59303032
delta logL = 2.58694399236e-06

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  3.461e-06  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  1.843e+00  2.413e+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.209e+00  1.813e-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.071e-01  2.314e-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/33233/cmap_HighResolution_508896001_509155201_4FGL_J2335.4-0128_daily_bin1040.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.77e-05', job_status='DONE', photon_flux_upper_limit='6.67e-08', time_completed='2021-09-30 00:34:37.764327', job_id='33233', GAL2='1.21', fit_tolerance='1e-08', EG2='0.51', EG='0.51', time_epoch_completed='1632987277.76', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='2.59e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='1040' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:34:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 33233: <4FGL_J2335.4-0128_daily_bin1040> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin1040 353.869 -1.476 508896001 509155201 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 :                                   687.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            823 sec.

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

