/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 8 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7627
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2335.4-0128_daily_bin1504
RA = 353.869, Dec = -1.476
tmin = 629164801, tmax = 629424001
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='35480', job_status='RUN', time_executed='2021-09-30 00:30:40.292369', time_epoch_executed='1632987040.29' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='1504'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/35480

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/35480/ft1_4FGL_J2335.4-0128_daily_bin1504.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/35480/ft2_4FGL_J2335.4-0128_daily_bin1504.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/35480/ft1_4FGL_J2335.4-0128_daily_bin1504.fits outfile=/scratch/kocevski/35480/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin1504.fits ra=353.869 dec=-1.476 rad=12.0 tmin=629164801.0 tmax=629424001.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.60
user 3.37
sys 0.22

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/35480/ft1_filtered_4FGL_J2335.4-0128_daily_bin1504.fits" evtable="EVENTS" scfile=/scratch/kocevski/35480/ft2_4FGL_J2335.4-0128_daily_bin1504.fits sctable="SC_DATA" outfile=/scratch/kocevski/35480/ltcube_629164801_629424001_4FGL_J2335.4-0128_daily_bin1504.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/35480/ft2_4FGL_J2335.4-0128_daily_bin1504.fits
.....................!
real 12.34
user 11.99
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/35480/ft1_filtered_4FGL_J2335.4-0128_daily_bin1504.fits evtable="EVENTS" scfile=/scratch/kocevski/35480/ft2_4FGL_J2335.4-0128_daily_bin1504.fits sctable="SC_DATA" expcube=/scratch/kocevski/35480/ltcube_629164801_629424001_4FGL_J2335.4-0128_daily_bin1504.fits outfile=/scratch/kocevski/35480/expmap_629164801_629424001_4FGL_J2335.4-0128_daily_bin1504.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/35480/ltcube_629164801_629424001_4FGL_J2335.4-0128_daily_bin1504.fits
.....................!
real 190.37
user 185.00
sys 5.02

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/35480/ft1_filtered_4FGL_J2335.4-0128_daily_bin1504.fits scfile=/scratch/kocevski/35480/ft2_4FGL_J2335.4-0128_daily_bin1504.fits outfile=/scratch/kocevski/35480/cmap_629164801_629424001_4FGL_J2335.4-0128_daily_bin1504.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.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/35480/ft1_filtered_4FGL_J2335.4-0128_daily_bin1504.fits evtable="EVENTS" scfile=/scratch/kocevski/35480/ft2_4FGL_J2335.4-0128_daily_bin1504.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/35480/Model_4FGL_J2335.4-0128_daily_bin1504.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/35480/ft1_filtered_4FGL_J2335.4-0128_daily_bin1504.fits.....................!
real 61.24
user 59.89
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.935       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.1841       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.2112       1.0000         .10000E-03   10000.    
     5 'norm      '    2.4324       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    76.033       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.684       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11047E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1112       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.867       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10291E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .58281E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    20.882       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .56446       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .37237E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0561       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .85259       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=   6176.480     FROM MIGRAD    STATUS=CONVERGED   1301 CALLS     4281 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.935        9.9938        .57978E-03   -.27762E-03
   2  Prefactor     6.1850        21.740        .80716E-03   -.12644E-03
   3  Prefactor     .10000E-03    4.8778        .16938E-02** at limit **
   4  Prefactor     6.2118        4.9851        .15176E-03   -.78957E-04
   5  norm          2.4326        2.1764        .10586E-03   -.20491E-03
   6  Prefactor     .10000E-03    6.9346        .18142E-02** at limit **
   7  norm          .10000E-03    1.9368        .10581E-02** at limit **
   8  norm          76.031        19.586        .46050E-04   -.27650E-04
   9  Prefactor     13.724        36.190        .10828E-03    .38848E-05
  10  Prefactor     .10000E-03    10.114        .18142E-02** at limit **
  11  Prefactor     .10000E-03    86.361        .18142E-02** at limit **
  12  Prefactor     .10000E-03    3.3831        .14094E-02** at limit **
  13  norm          1.1111        .88539        .64741E-03    .18724E-03
  14  norm          .10000E-03    2.6352        .12420E-02** at limit **
  15  Prefactor     20.868        13.803        .87682E-04   -.18632E-03
  16  Prefactor     .10000E-03    24.960        .18142E-02** at limit **
  17  norm          .10000E-03    15.339        .18142E-02** at limit **
  18  Prefactor     .10000E-03    105.15        .18142E-02** at limit **
  19  Prefactor     .10000E-03    5.1185        .17330E-02** at limit **
  20  Prefactor     .10004E-03    31.549        .97925E-01** at limit **
  21  norm          20.878        23.436        .87650E-04    .63944E-04
  22  Prefactor     .10000E-03    46.429        .18142E-02** at limit **
  23  Prefactor     .56884        8.8300        .26738E-02    .87915E-03
  24  Prefactor     .10000E-03    12.540        .18142E-02** at limit **
  25  Prefactor     .10000E-03    13.330        .18142E-02** at limit **
  26  Prefactor     .10002E-03    115.90        .53180E-02** at limit **
  27  Prefactor     .10000E-03    3.6269        .14565E-02** at limit **
  28  Normalizat    1.0562        .22236        .27362E-03   -.28060E-03
  29  Prefactor     .85258        .16007        .21966E-03   -.36610E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.9348
  Prefactor  = 6.18499
  Prefactor  = 0.0001
  Prefactor  = 6.21179
  norm       = 2.43262
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 76.0313
  Prefactor  = 13.7243
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.11106
  norm       = 0.0001
  Prefactor  = 20.8682
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100038
  norm       = 20.8775
  Prefactor  = 0.0001
  Prefactor  = 0.568842
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  Normalizat = 1.05617
  Prefactor  = 0.85258
 **********
 **   18 **HESSE 
 **********

 FCN=   6176.480     FROM HESSE     STATUS=OK           537 CALLS     4818 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.935        9.9924        .23191E-04   -1.5017    
   2  Prefactor     6.1850        21.738        .32287E-04   -1.5211    
   3  Prefactor     .10000E-03    4.8781        .33876E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.2118        4.9847        .60705E-05   -1.5209    
   5  norm          2.4326        2.1762        .42343E-05   -1.5396    
   6  Prefactor     .10000E-03    6.9355        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.9372        .21162E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          76.031        19.584        .92099E-05   -1.3962    
   9  Prefactor     13.724        36.173        .43311E-05   -1.4967    
  10  Prefactor     .10000E-03    10.115        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    86.388        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.3834        .28188E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1111        .88458        .25896E-04   -1.5497    
  14  norm          .10000E-03    2.6355        .24841E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     20.868        13.797        .35073E-05   -1.4794    
  16  Prefactor     .10000E-03    24.960        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    15.350        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    105.15        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.1187        .34660E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10004E-03    28.086        .10536       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          20.878        22.949        .35060E-05   -1.4794    
  22  Prefactor     .10000E-03    46.433        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .56884        8.4146        .10695E-03   -1.5557    
  24  Prefactor     .10000E-03    12.540        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    13.332        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10002E-03    118.94        .21272E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    3.6275        .29130E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0562        .22200        .54724E-04   -.91172    
  29  Prefactor     .85258        .16014        .43933E-04   -.97818    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36734e-09
Minuit parameter uncertainties:
  1  9.99379
  2  21.7662
  3  7.36654e-06
  4  4.98502
  5  2.17629
  6  7.67177e-06
  7  6.95553e-06
  8  19.5858
  9  36.2307
  10  6.25315e-06
  11  0.000353793
  12  1.03396e-05
  13  0.884588
  14  1.33313e-05
  15  13.7987
  16  4.59717e-05
  17  4.5883e-05
  18  0.000126226
  19  5.50539e-05
  20  0.00206461
  21  22.9584
  22  0.000101846
  23  4.376
  24  2.75134e-05
  25  4.25895e-05
  26  0.00296889
  27  7.06135e-06
  28  0.222195
  29  0.160231
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  2.088e+01  2.296e+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.526e-01  1.602e-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.056e+00  2.222e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.89
Ra Dec: 353.869 -1.476
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 2.57e-08 +/- 2.83e-08
Energy Flux (Fixed Index): 1.07e-05 +/- 1.18e-05

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

Saving results to:
/scratch/kocevski/35480/likelihoodResults_629164801_629424001_4FGL_J2335.4-0128_daily_bin1504.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) = 6176.4778842
delta logL = 0.0022764872956

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6176.4769294
delta logL = 0.00323129052686

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.945       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5856       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0544       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85308       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=   6176.477     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      266 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.944        23.711        .89684E-04    .22924E-03
   2  alpha         2.5858        1.0166        .18346E-01    .27036E-04
   3  Normalizat    1.0542        .21689        .27385E-03   -.84025E-04
   4  Prefactor     .85323        .15810        .21959E-03   -.13855E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 19.9443
  alpha      = 2.58579
  Normalizat = 1.05416
  Prefactor  = 0.853227
 **********
 **   18 **HESSE 
 **********

 FCN=   6176.477     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.944        22.704        .17937E-04   -1.4814    
   2  alpha         2.5858        .97514        .73384E-03    .34323E-01
   3  Normalizat    1.0542        .21685        .10954E-04   -.91238    
   4  Prefactor     .85323        .15817        .87834E-05   -.97795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28269e-10
Minuit parameter uncertainties:
  1  22.7136
  2  1.00177
  3  0.217033
  4  0.158256
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/35480': 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) = 6176.47692895
delta logL = 0.00323174448476

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.994e+01  2.271e+01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.586e+00  1.002e+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.532e-01  1.583e-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.054e+00  2.170e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.89
Ra Dec: 353.869 -1.476
Photon Index (Free Index): 2.59 +/- 1.00
Photon Flux (Free Index): 2.77e-08 +/- 3.59e-08
Energy Flux (Free Index): 1.07e-05 +/- 1.03e-05

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/35480/cmap_HighResolution_629164801_629424001_4FGL_J2335.4-0128_daily_bin1504.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.62e-05', comment='SUCCESS', photon_flux='2.57e-08', energy_flux2='1.07e-05', photon_flux_error='2.83e-08', dlogl='3.23e-03', energy_flux='1.07e-05', photon_flux2='2.77e-08', job_status='DONE', time_completed='2021-09-30 00:43:50.718865', photon_index_error2='1.00', photon_index2='2.59', ts='1.89', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='8.71e-08', energy_flux_error2='1.03e-05', EG='1.06', time_epoch_completed='1632987830.72', return_code='0', job_id='35480', GAL2='0.85', EG2='1.05', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='3.59e-08', ts2='1.89', photon_index='2.50' WHERE bin_id='1504' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:43:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 35480: <4FGL_J2335.4-0128_daily_bin1504> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin1504> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 30 00:30:22 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:30:24 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:30:24 2021
Terminated at Thu Sep 30 00:43:51 2021
Results reported at Thu Sep 30 00:43:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin1504 353.869 -1.476 629164801 629424001 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 :                                   786.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             372.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            809 sec.

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

