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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin307
RA = 353.869, Dec = -1.476
tmin = 318902401, tmax = 319161601
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='30102', job_status='RUN', time_executed='2021-09-30 00:10:52.946851', time_epoch_executed='1632985852.95' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='307'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/30102

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/30102/ft1_4FGL_J2335.4-0128_daily_bin307.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/30102/ft2_4FGL_J2335.4-0128_daily_bin307.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/30102/ft1_4FGL_J2335.4-0128_daily_bin307.fits outfile=/scratch/kocevski/30102/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin307.fits ra=353.869 dec=-1.476 rad=12.0 tmin=318902401.0 tmax=319161601.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.41
user 3.20
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/30102/ft2_4FGL_J2335.4-0128_daily_bin307.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/30102/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin307.fits evtable="EVENTS" outfile="/scratch/kocevski/30102/ft1_filtered_4FGL_J2335.4-0128_daily_bin307.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/30102/ft1_filtered_4FGL_J2335.4-0128_daily_bin307.fits" evtable="EVENTS" scfile=/scratch/kocevski/30102/ft2_4FGL_J2335.4-0128_daily_bin307.fits sctable="SC_DATA" outfile=/scratch/kocevski/30102/ltcube_318902401_319161601_4FGL_J2335.4-0128_daily_bin307.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/30102/ft2_4FGL_J2335.4-0128_daily_bin307.fits
.....................!
real 11.68
user 11.33
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/30102/ft1_filtered_4FGL_J2335.4-0128_daily_bin307.fits evtable="EVENTS" scfile=/scratch/kocevski/30102/ft2_4FGL_J2335.4-0128_daily_bin307.fits sctable="SC_DATA" expcube=/scratch/kocevski/30102/ltcube_318902401_319161601_4FGL_J2335.4-0128_daily_bin307.fits outfile=/scratch/kocevski/30102/expmap_318902401_319161601_4FGL_J2335.4-0128_daily_bin307.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/30102/ltcube_318902401_319161601_4FGL_J2335.4-0128_daily_bin307.fits
.....................!
real 190.79
user 185.84
sys 4.64

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/30102/ft1_filtered_4FGL_J2335.4-0128_daily_bin307.fits scfile=/scratch/kocevski/30102/ft2_4FGL_J2335.4-0128_daily_bin307.fits outfile=/scratch/kocevski/30102/cmap_318902401_319161601_4FGL_J2335.4-0128_daily_bin307.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/30102/ft1_filtered_4FGL_J2335.4-0128_daily_bin307.fits scfile=/scratch/kocevski/30102/ft2_4FGL_J2335.4-0128_daily_bin307.fits outfile=/scratch/kocevski/30102/cmap_HighResolution_318902401_319161601_4FGL_J2335.4-0128_daily_bin307.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/30102/ft1_filtered_4FGL_J2335.4-0128_daily_bin307.fits evtable="EVENTS" scfile=/scratch/kocevski/30102/ft2_4FGL_J2335.4-0128_daily_bin307.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/30102/Model_4FGL_J2335.4-0128_daily_bin307.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/30102/ft1_filtered_4FGL_J2335.4-0128_daily_bin307.fits.....................!
real 60.35
user 59.04
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.724       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9057       1.0000         .10000E-03   10000.    
     5 'norm      '    .70667       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.6116       1.0000         .10000E-03   10000.    
     8 'norm      '    4.1498       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.645       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .19628       1.0000         .10000E-03   10000.    
    14 'norm      '    1.3983       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10141E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    66.769       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.7334       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .68478       1.0000         .10000E-03   10000.    
    21 'norm      '    31.024       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10475E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.4353       1.0000         .10000E-03   10000.    
    26 'Prefactor '    11.453       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.2050       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .77270       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .95236       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=   6401.266     FROM MIGRAD    STATUS=CONVERGED    742 CALLS     3864 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.722        10.371        .58596E-07    .10965E-03
   2  Prefactor     .10000E-03    24.165       -.14731E-06** at limit **
   3  Prefactor     .10000E-03    2.8127       -.37047E-08** at limit **
   4  Prefactor     1.9050        5.2179       -.87526E-07    .89462E-04
   5  norm          .70649        1.5451       -.45923E-06   -.69758E-03
   6  Prefactor     .10000E-03    3.8077       -.20411E-07** at limit **
   7  norm          1.6111        3.0996        .78637E-07    .18838E-03
   8  norm          4.1447        8.4255       -.34441E-06   -.61014E-04
   9  Prefactor     .10000E-03    9.6606       -.10211E-06** at limit **
  10  Prefactor     .10000E-03    7.7482       -.25231E-06** at limit **
  11  Prefactor     22.627        32.061       -.24215E-06   -.41661E-04
  12  Prefactor     .10000E-03    5.7516       -.59762E-06** at limit **
  13  norm          .19447        .75075       -.13629E-05   -.11362E-02
  14  norm          1.3980        3.2150       -.25412E-06   -.18713E-03
  15  Prefactor     .10000E-03    4.4976       -.13477E-06** at limit **
  16  Prefactor     .10000E-03    20.618       -.87569E-07** at limit **
  17  norm          .10000E-03    10.263       -.33605E-06** at limit **
  18  Prefactor     67.485        210.74       -.55893E-05   -.46276E-04
  19  Prefactor     4.7374        13.459       -.76828E-06   -.36551E-04
  20  Prefactor     .53753        30.507        .59887E-05   -.40910E-03
  21  norm          31.002        24.983        .74743E-06   -.56681E-04
  22  Prefactor     .10000E-03    25.338       -.23247E-06** at limit **
  23  Prefactor     .10000E-03    3.4746        .54696E-06** at limit **
  24  Prefactor     .10000E-03    47.341       -.73039E-06** at limit **
  25  Prefactor     4.4372        15.872       -.65573E-07    .38792E-05
  26  Prefactor     11.451        9.8762        .47464E-07    .65572E-04
  27  Prefactor     2.2018        7.0126       -.38798E-06    .67217E-05
  28  Normalizat    .77290        .17057        .45279E-06   -.76007E-04
  29  Prefactor     .95238        .12264        .58892E-06   -.12161E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.7217
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.90498
  norm       = 0.706489
  Prefactor  = 0.0001
  norm       = 1.6111
  norm       = 4.14474
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.6265
  Prefactor  = 0.0001
  norm       = 0.194471
  norm       = 1.39797
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 67.4847
  Prefactor  = 4.73743
  Prefactor  = 0.537531
  norm       = 31.0024
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 4.43715
  Prefactor  = 11.4507
  Prefactor  = 2.20177
  Normalizat = 0.772896
  Prefactor  = 0.952376
 **********
 **   18 **HESSE 
 **********

 FCN=   6401.266     FROM HESSE     STATUS=OK           559 CALLS     4423 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.722        10.329        .95134E-04   -1.4866    
   2  Prefactor     .10000E-03    24.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.8144        .13103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.9050        5.0260        .23397E-03   -1.5432    
   5  norm          .70649        1.4512        .14363E-02   -1.5540    
   6  Prefactor     .10000E-03    3.8115        .15246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.6111        2.9744        .15170E-03   -1.5454    
   8  norm          4.1447        8.4257        .19786E-03   -1.5301    
   9  Prefactor     .10000E-03    9.6672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.7778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     22.627        31.966        .84172E-04   -1.4756    
  12  Prefactor     .10000E-03    5.8023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .19447        .77317        .93099E-03   -1.5620    
  14  norm          1.3980        3.1548        .20706E-03   -1.5471    
  15  Prefactor     .10000E-03    4.5224        .16566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    20.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    10.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     67.485        216.08        .24559E-03   -1.4063    
  19  Prefactor     4.7374        13.526        .92473E-03   -1.5273    
  20  Prefactor     .53753        208.83        .61948E-02   -1.5561    
  21  norm          31.002        24.986        .71935E-04   -1.4594    
  22  Prefactor     .10000E-03    25.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.6166        .29101E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    48.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.4372        15.860        .19121E-03   -1.5287    
  26  Prefactor     11.451        9.8774        .11838E-03   -1.5031    
  27  Prefactor     2.2018        7.0147        .27705E-03   -1.5411    
  28  Normalizat    .77290        .19929        .27361E-03   -1.0108    
  29  Prefactor     .95238        .14458        .19037E-03   -.94334    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30494e-08
Minuit parameter uncertainties:
  1  10.33
  2  2.71203e-05
  3  3.43067e-08
  4  5.02707
  5  1.45129
  6  2.4173e-06
  7  2.97463
  8  8.42815
  9  1.93046e-05
  10  3.76313e-05
  11  31.9905
  12  6.57863e-05
  13  0.773208
  14  3.15515
  15  2.8267e-05
  16  3.55166e-05
  17  0.000118293
  18  218.671
  19  13.5345
  20  21.2631
  21  24.9942
  22  4.23451e-05
  23  0.000102271
  24  0.00035996
  25  15.8745
  26  9.8788
  27  7.01733
  28  0.199476
  29  0.144638
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  3.100e+01  2.499e+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:  9.524e-01  1.446e-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.729e-01  1.995e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.16
Ra Dec: 353.869 -1.476
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 3.82e-08 +/- 3.08e-08
Energy Flux (Fixed Index): 1.59e-05 +/- 1.28e-05

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) = 6400.8917319
delta logL = 0.37412812738

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6400.88444785
delta logL = 0.381412183677

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    37.635       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7753       1.0000          .0000       5.0000    
     3 'Normalizat'    .78921       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94851       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=   6400.884     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      287 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          37.635        27.947        .65331E-04    .23544E-03
   2  alpha         1.7754        .84635        .22827E-01    .40391E-04
   3  Normalizat    .78921        .18320        .27093E-03   -.45696E-04
   4  Prefactor     .94851        .14124        .19083E-03   -.56954E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 37.6348
  alpha      = 1.77537
  Normalizat = 0.789208
  Prefactor  = 0.948507
 **********
 **   18 **HESSE 
 **********

 FCN=   6400.884     FROM HESSE     STATUS=OK            23 CALLS      310 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          37.635        28.111        .13066E-04   -1.4480    
   2  alpha         1.7754        .85106        .91310E-03   -.29407    
   3  Normalizat    .78921        .18332        .10837E-04   -1.0047    
   4  Prefactor     .94851        .14136        .76332E-05   -.94466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99399e-10
Minuit parameter uncertainties:
  1  28.1214
  2  0.870107
  3  0.18346
  4  0.141419
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/30102': 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) = 6400.88444784
delta logL = 0.381412187088

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  3.763e+01  2.812e+01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  1.775e+00  8.701e-01  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.485e-01  1.414e-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.892e-01  1.835e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.96
Ra Dec: 353.869 -1.476
Photon Index (Free Index): 1.78 +/- 0.87
Photon Flux (Free Index): 1.95e-08 +/- 2.26e-08
Energy Flux (Free Index): 1.78e-05 +/- 1.36e-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/30102/cmap_HighResolution_318902401_319161601_4FGL_J2335.4-0128_daily_bin307.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.82e-08', energy_flux2='1.78e-05', photon_flux_error='3.08e-08', dlogl='3.81e-01', energy_flux='1.59e-05', photon_flux2='1.95e-08', job_status='DONE', time_completed='2021-09-30 00:22:32.561983', photon_index_error2='0.87', photon_index2='1.78', ts='7.16', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.36e-05', EG='0.77', time_epoch_completed='1632986552.56', return_code='0', job_id='30102', GAL2='0.95', EG2='0.79', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='2.26e-08', ts2='7.96', photon_index='2.50' WHERE bin_id='307' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:22:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 30102: <4FGL_J2335.4-0128_daily_bin307> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin307 353.869 -1.476 318902401 319161601 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 :                                   694.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            720 sec.

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

