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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin168
RA = 353.869, Dec = -1.476
tmin = 282873601, tmax = 283132801
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='29884', job_status='RUN', time_executed='2021-09-30 00:13:35.693545', time_epoch_executed='1632986015.69' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/29884

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/29884/ft1_4FGL_J2335.4-0128_daily_bin168.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/29884/ft2_4FGL_J2335.4-0128_daily_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/29884/ft1_4FGL_J2335.4-0128_daily_bin168.fits outfile=/scratch/kocevski/29884/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin168.fits ra=353.869 dec=-1.476 rad=12.0 tmin=282873601.0 tmax=283132801.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.25
user 3.04
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/29884/ft1_filtered_4FGL_J2335.4-0128_daily_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/29884/ft2_4FGL_J2335.4-0128_daily_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/29884/ltcube_282873601_283132801_4FGL_J2335.4-0128_daily_bin168.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/29884/ft2_4FGL_J2335.4-0128_daily_bin168.fits
.....................!
real 11.79
user 11.44
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/29884/ft1_filtered_4FGL_J2335.4-0128_daily_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/29884/ft2_4FGL_J2335.4-0128_daily_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/29884/ltcube_282873601_283132801_4FGL_J2335.4-0128_daily_bin168.fits outfile=/scratch/kocevski/29884/expmap_282873601_283132801_4FGL_J2335.4-0128_daily_bin168.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/29884/ltcube_282873601_283132801_4FGL_J2335.4-0128_daily_bin168.fits
.....................!
real 190.73
user 185.38
sys 5.01

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/29884/ft1_filtered_4FGL_J2335.4-0128_daily_bin168.fits scfile=/scratch/kocevski/29884/ft2_4FGL_J2335.4-0128_daily_bin168.fits outfile=/scratch/kocevski/29884/cmap_282873601_283132801_4FGL_J2335.4-0128_daily_bin168.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/29884/ft1_filtered_4FGL_J2335.4-0128_daily_bin168.fits scfile=/scratch/kocevski/29884/ft2_4FGL_J2335.4-0128_daily_bin168.fits outfile=/scratch/kocevski/29884/cmap_HighResolution_282873601_283132801_4FGL_J2335.4-0128_daily_bin168.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/29884/ft1_filtered_4FGL_J2335.4-0128_daily_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/29884/ft2_4FGL_J2335.4-0128_daily_bin168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/29884/Model_4FGL_J2335.4-0128_daily_bin168.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/29884/ft1_filtered_4FGL_J2335.4-0128_daily_bin168.fits.....................!
real 57.17
user 55.83
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17777E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.7154       1.0000         .10000E-03   10000.    
     5 'norm      '    .86788       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .16706E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.6980       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11883E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.3719       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.8818       1.0000         .10000E-03   10000.    
    16 'Prefactor '    48.434       1.0000         .10000E-03   10000.    
    17 'norm      '    19.489       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.4171       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.4619       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11060E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10969E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0125       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .86750       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=   5761.590     FROM MIGRAD    STATUS=CONVERGED    761 CALLS     3266 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.8842        .56340E-06** at limit **
   2  Prefactor     .10000E-03    19.610        .18109E-07** at limit **
   3  Prefactor     .10000E-03    5.4117       -.50901E-07** at limit **
   4  Prefactor     6.7160        6.1879       -.21926E-06   -.16093E-03
   5  norm          .86754        1.2949        .79561E-06    .17257E-02
   6  Prefactor     .10000E-03    9.7577        .61815E-07** at limit **
   7  norm          .10000E-03    4.0001        .13079E-06** at limit **
   8  norm          .10047E-03    46.915       -.67553E-05** at limit **
   9  Prefactor     5.6934        38.655       -.40426E-05   -.92071E-04
  10  Prefactor     .10000E-03    5.6432       -.82260E-08** at limit **
  11  Prefactor     .10003E-03    258.55        .27838E-05** at limit **
  12  Prefactor     .10000E-03    7.9042        .14564E-06** at limit **
  13  norm          .10000E-03    .45390        .83030E-08** at limit **
  14  norm          1.3743        5.1146       -.57279E-06   -.13606E-03
  15  Prefactor     1.8808        10.667       -.84445E-06   -.78415E-04
  16  Prefactor     48.484        43.770        .54370E-07   -.70565E-04
  17  norm          19.488        10.519        .10947E-06    .53790E-04
  18  Prefactor     .10001E-03    137.67        .21657E-06** at limit **
  19  Prefactor     .10000E-03    4.0088       -.47080E-08** at limit **
  20  Prefactor     .10000E-03    7.7536        .26342E-07** at limit **
  21  norm          .10000E-03    7.0206        .29627E-08** at limit **
  22  Prefactor     .10000E-03    19.862        .19110E-07** at limit **
  23  Prefactor     7.4160        4.3843       -.46257E-07   -.25369E-04
  24  Prefactor     4.4227        75.626       -.56526E-06    .17560E-05
  25  Prefactor     .10000E-03    11.882        .11658E-06** at limit **
  26  Prefactor     .10000E-03    20.750        .47289E-07** at limit **
  27  Prefactor     .10003E-03    8.1477       -.70931E-06** at limit **
  28  Normalizat    1.0127        .19216       -.64764E-06    .79506E-04
  29  Prefactor     .86743        .13649        .36987E-06    .93640E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.71597
  norm       = 0.867541
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.00010047
  Prefactor  = 5.69338
  Prefactor  = 0.0001
  Prefactor  = 0.000100026
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.37429
  Prefactor  = 1.88081
  Prefactor  = 48.4837
  norm       = 19.4885
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.41603
  Prefactor  = 4.42266
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100026
  Normalizat = 1.01273
  Prefactor  = 0.867433
 **********
 **   18 **HESSE 
 **********

 FCN=   5761.590     FROM HESSE     STATUS=OK           557 CALLS     3823 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    53.941        .36246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.4214        .17247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.7160        6.1147        .15484E-03   -1.5190    
   5  norm          .86754        1.3126        .12854E-02   -1.5522    
   6  Prefactor     .10000E-03    9.7908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.0802        .29281E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10047E-03    88.915        .43985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.6934        39.210        .84137E-03   -1.5231    
  10  Prefactor     .10000E-03    5.6489        .17611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10003E-03    269.96        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.9870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .77478        .96752E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.3743        5.0864        .31506E-03   -1.5474    
  15  Prefactor     1.8808        10.603        .30345E-03   -1.5434    
  16  Prefactor     48.484        43.881        .28809E-03   -1.4314    
  17  norm          19.488        10.431        .90727E-04   -1.4825    
  18  Prefactor     .10001E-03    140.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.0171        .14836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.7709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    7.0284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    19.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.4160        4.3766        .11581E-03   -1.5163    
  24  Prefactor     4.4227        75.436        .19063E-03   -1.5287    
  25  Prefactor     .10000E-03    11.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    21.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10003E-03    10.948        .29694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0127        .21941        .26059E-03   -.92605    
  29  Prefactor     .86743        .15908        .20536E-03   -.97289    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.50224e-09
Minuit parameter uncertainties:
  1  0.000265589
  2  3.78991e-05
  3  1.11061e-05
  4  6.11531
  5  1.31269
  6  2.64919e-05
  7  1.74202e-05
  8  0.0129468
  9  29.9099
  10  3.48414e-06
  11  0.00532339
  12  2.30662e-05
  13  1.22519e-05
  14  5.08797
  15  8.93364
  16  43.9105
  17  10.4323
  18  0.00243217
  19  7.6982e-07
  20  3.78033e-05
  21  8.03091e-06
  22  3.9523e-05
  23  4.37679
  24  36.5848
  25  6.28006e-05
  26  0.000100068
  27  0.00107246
  28  0.219602
  29  0.159164
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  8.031e-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:  8.674e-01  1.592e-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.013e+00  2.196e-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: 4.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.73e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/29884/likelihoodResults_282873601_283132801_4FGL_J2335.4-0128_daily_bin168.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) = 5761.59080442
delta logL = -0.000676491802551

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5761.59012794
delta logL = -1.37715687742e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10152E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4851       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0128       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86741       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=   5761.590     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      240 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    339.88        .18142E-01** at limit **
   2  alpha         1.6326        2.7075        .16461       -.32460E-08
   3  Normalizat    1.0127        .28291E-01    .26058E-03    .10222E-03
   4  Prefactor     .86743        .20904E-01    .20536E-03    .13181E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.63262
  Normalizat = 1.01273
  Prefactor  = 0.867433
 **********
 **   18 **HESSE 
 **********

 FCN=   5761.590     FROM HESSE     STATUS=OK            23 CALLS      263 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.359        .23747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6326        3.1909        .65844E-02   -.35432    
   3  Normalizat    1.0127        .21220        .10423E-04   -.92605    
   4  Prefactor     .86743        .15684        .82144E-05   -.97289    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46484e-11
Minuit parameter uncertainties:
  1  9.4675e-06
  2  419.524
  3  0.212376
  4  0.156925
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/29884': 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) = 5761.59012566
delta logL = 2.2648337108e-06

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  9.467e-06  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  1.633e+00  4.195e+02  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.674e-01  1.569e-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.013e+00  2.124e-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/29884/cmap_HighResolution_282873601_283132801_4FGL_J2335.4-0128_daily_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.73e-05', job_status='DONE', photon_flux_upper_limit='4.18e-08', time_completed='2021-09-30 00:25:13.142078', job_id='29884', GAL2='0.87', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1632986713.14', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='2.26e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='168' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:25:13 PDT 2021


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

Job <4FGL_J2335.4-0128_daily_bin168> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 00:10:13 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:10:15 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:15 2021
Terminated at Thu Sep 30 00:25:13 2021
Results reported at Thu Sep 30 00:25:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin168 353.869 -1.476 282873601 283132801 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 :                                   696.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            900 sec.

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

