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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin917
RA = 353.869, Dec = -1.476
tmin = 477014401, tmax = 477273601
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='33047', job_status='RUN', time_executed='2021-09-30 00:23:30.707355', time_epoch_executed='1632986610.71' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='917'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/33047

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/33047/ft1_4FGL_J2335.4-0128_daily_bin917.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/33047/ft2_4FGL_J2335.4-0128_daily_bin917.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/33047/ft1_4FGL_J2335.4-0128_daily_bin917.fits outfile=/scratch/kocevski/33047/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin917.fits ra=353.869 dec=-1.476 rad=12.0 tmin=477014401.0 tmax=477273601.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.59
user 3.37
sys 0.19

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/33047/ft1_filtered_4FGL_J2335.4-0128_daily_bin917.fits" evtable="EVENTS" scfile=/scratch/kocevski/33047/ft2_4FGL_J2335.4-0128_daily_bin917.fits sctable="SC_DATA" outfile=/scratch/kocevski/33047/ltcube_477014401_477273601_4FGL_J2335.4-0128_daily_bin917.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/33047/ft2_4FGL_J2335.4-0128_daily_bin917.fits
.....................!
real 14.79
user 14.42
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/33047/ft1_filtered_4FGL_J2335.4-0128_daily_bin917.fits evtable="EVENTS" scfile=/scratch/kocevski/33047/ft2_4FGL_J2335.4-0128_daily_bin917.fits sctable="SC_DATA" expcube=/scratch/kocevski/33047/ltcube_477014401_477273601_4FGL_J2335.4-0128_daily_bin917.fits outfile=/scratch/kocevski/33047/expmap_477014401_477273601_4FGL_J2335.4-0128_daily_bin917.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/33047/ltcube_477014401_477273601_4FGL_J2335.4-0128_daily_bin917.fits
.....................!
real 189.24
user 184.71
sys 4.23

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/33047/ft1_filtered_4FGL_J2335.4-0128_daily_bin917.fits scfile=/scratch/kocevski/33047/ft2_4FGL_J2335.4-0128_daily_bin917.fits outfile=/scratch/kocevski/33047/cmap_477014401_477273601_4FGL_J2335.4-0128_daily_bin917.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/33047/ft1_filtered_4FGL_J2335.4-0128_daily_bin917.fits scfile=/scratch/kocevski/33047/ft2_4FGL_J2335.4-0128_daily_bin917.fits outfile=/scratch/kocevski/33047/cmap_HighResolution_477014401_477273601_4FGL_J2335.4-0128_daily_bin917.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/33047/ft1_filtered_4FGL_J2335.4-0128_daily_bin917.fits evtable="EVENTS" scfile=/scratch/kocevski/33047/ft2_4FGL_J2335.4-0128_daily_bin917.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/33047/Model_4FGL_J2335.4-0128_daily_bin917.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/33047/ft1_filtered_4FGL_J2335.4-0128_daily_bin917.fits.....................!
real 49.63
user 48.39
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.118       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.9262       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.542       1.0000         .10000E-03   10000.    
     5 'norm      '    6.0513       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    52.356       1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.999       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .34274       1.0000         .10000E-03   10000.    
    13 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13827E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    33.329       1.0000         .10000E-03   10000.    
    17 'norm      '    .10674E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.5964       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.1708       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.2022       1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.1140       1.0000         .10000E-03   10000.    
    26 'Prefactor '    34.514       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .75368       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .99207       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=   4580.021     FROM MIGRAD    STATUS=CONVERGED    736 CALLS     3820 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.029       -.15398E-05** at limit **
   2  Prefactor     30.178        66.792       -.64455E-05   -.14835E-03
   3  Prefactor     5.9264        12.813       -.62145E-07    .18033E-04
   4  Prefactor     10.545        7.5140        .63272E-06    .57314E-03
   5  norm          6.0517        3.2836        .53507E-08    .12479E-03
   6  Prefactor     .10000E-03    11.021       -.29254E-06** at limit **
   7  norm          .10000E-03    2.6940       -.73815E-08** at limit **
   8  norm          .10000E-03    7.1682       -.30032E-06** at limit **
   9  Prefactor     52.359        39.212       -.37192E-06   -.34113E-04
  10  Prefactor     20.996        24.269       -.47511E-07    .56065E-05
  11  Prefactor     .10002E-03    55.088       -.46312E-05** at limit **
  12  Prefactor     .37627        10.693        .36812E-05   -.56517E-04
  13  norm          .10000E-03    .55379       -.31121E-09** at limit **
  14  norm          .10000E-03    3.0465       -.36705E-07** at limit **
  15  Prefactor     .10000E-03    15.342        .45591E-06** at limit **
  16  Prefactor     33.340        65.254       -.16280E-07   -.81879E-04
  17  norm          .10001E-03    28.536       -.18604E-04** at limit **
  18  Prefactor     .10002E-03    99.043        .55540E-05** at limit **
  19  Prefactor     6.5965        18.255       -.33886E-05    .19404E-03
  20  Prefactor     .10000E-03    7.3753       -.14380E-07** at limit **
  21  norm          .10000E-03    20.295       -.19736E-06** at limit **
  22  Prefactor     .10000E-03    83.317       -.19833E-05** at limit **
  23  Prefactor     7.1711        8.0012        .10233E-05    .28570E-03
  24  Prefactor     1.1622        453.56        .12722E-04    .36267E-04
  25  Prefactor     6.1183        21.558       -.73704E-06   -.78275E-04
  26  Prefactor     34.519        24.039        .77174E-07    .36733E-04
  27  Prefactor     .10000E-03    2.3869       -.54246E-07** at limit **
  28  Normalizat    .75362        .22790       -.44796E-06    .91100E-04
  29  Prefactor     .99203        .15217        .86287E-06    .31826E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 30.1775
  Prefactor  = 5.92636
  Prefactor  = 10.5448
  norm       = 6.05166
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 52.3592
  Prefactor  = 20.9956
  Prefactor  = 0.000100016
  Prefactor  = 0.376269
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.34
  norm       = 0.000100005
  Prefactor  = 0.00010002
  Prefactor  = 6.59647
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 7.17108
  Prefactor  = 1.16222
  Prefactor  = 6.11834
  Prefactor  = 34.519
  Prefactor  = 0.0001
  Normalizat = 0.753621
  Prefactor  = 0.992031
 **********
 **   18 **HESSE 
 **********

 FCN=   4580.021     FROM HESSE     STATUS=OK           553 CALLS     4373 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.326        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     30.178        67.341        .73006E-04   -1.4609    
   3  Prefactor     5.9264        12.795        .16496E-03   -1.5221    
   4  Prefactor     10.545        7.1535        .12340E-03   -1.5058    
   5  norm          6.0517        3.2807        .84491E-04   -1.5216    
   6  Prefactor     .10000E-03    11.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.2209        .20354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.1916        .17699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     52.359        39.250        .55429E-04   -1.4260    
  10  Prefactor     20.996        24.277        .87405E-04   -1.4791    
  11  Prefactor     .10002E-03    55.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .37627        54.725        .39258E-02   -1.5585    
  13  norm          .10000E-03    1.0577        .96713E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.0532        .11523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.918        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     33.340        65.372        .69411E-04   -1.4553    
  17  norm          .10001E-03    28.833        .31876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10002E-03    100.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.5965        18.370        .78123E-03   -1.5194    
  20  Prefactor     .10000E-03    7.3808        .17949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    20.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    83.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.1711        7.9878        .14980E-03   -1.5172    
  24  Prefactor     1.1622        470.27        .41378E-02   -1.5492    
  25  Prefactor     6.1183        21.521        .16237E-03   -1.5213    
  26  Prefactor     34.519        24.082        .68212E-04   -1.4532    
  27  Prefactor     .10000E-03    2.3919        .10211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .75362        .26091        .29831E-03   -1.0181    
  29  Prefactor     .99203        .17763        .19609E-03   -.92996    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95214e-08
Minuit parameter uncertainties:
  1  0.000467472
  2  67.5117
  3  12.8012
  4  7.15412
  5  3.28079
  6  1.58623e-05
  7  4.96462e-06
  8  5.07708e-05
  9  39.2693
  10  24.2889
  11  0.0018743
  12  9.08276
  13  6.28719e-06
  14  1.08862e-05
  15  1.37243e-05
  16  65.5128
  17  0.000779542
  18  0.00284704
  19  18.3852
  20  1.66127e-05
  21  1.09308e-05
  22  0.000975379
  23  7.98903
  24  47.1324
  25  21.5483
  26  24.089
  27  3.97703e-06
  28  0.261341
  29  0.177732
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.093e-05  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:  9.920e-01  1.777e-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.536e-01  2.613e-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: 7.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.12e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/33047/likelihoodResults_477014401_477273601_4FGL_J2335.4-0128_daily_bin917.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) = 4580.02135995
delta logL = -0.000234285642364

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4580.02112577
delta logL = -1.09020220407e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4799       1.0000          .0000       5.0000    
     3 'Normalizat'    .75366       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99204       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=   4580.021     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      194 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    22.437        .90712E-02** at limit **
   2  alpha         2.4981        3.5893        .41153       -.47322E-05
   3  Normalizat    .75362        .20091        .67420E-01    .30782E-04
   4  Prefactor     .99203        .15073        .46167E-01    .20378E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.4981
  Normalizat = 0.753623
  Prefactor  = 0.992029
 **********
 **   18 **HESSE 
 **********

 FCN=   4580.021     FROM HESSE     STATUS=OK            33 CALLS      227 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    20.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4981        3.5543        .50000       -.76117E-03
   3  Normalizat    .75362        .23218        .29831E-03   -1.0181    
   4  Prefactor     .99203        .17447        .19609E-03   -.92996    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12292e-11
Minuit parameter uncertainties:
  1  0.000135544
  2  2.5109
  3  0.232488
  4  0.174567
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/33047': 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) = 4580.02112568
delta logL = -1.27047314891e-08

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.355e-04  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.498e+00  2.511e+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:  9.920e-01  1.746e-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.536e-01  2.325e-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/33047/cmap_HighResolution_477014401_477273601_4FGL_J2335.4-0128_daily_bin917.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.12e-05', job_status='DONE', photon_flux_upper_limit='7.52e-08', time_completed='2021-09-30 00:34:30.023021', job_id='33047', GAL2='0.99', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1632987270.02', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='-1.27e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='917' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:34:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 33047: <4FGL_J2335.4-0128_daily_bin917> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin917 353.869 -1.476 477014401 477273601 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 :                                   655.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             277.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            830 sec.

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

