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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin245
RA = 353.869, Dec = -1.476
tmin = 302832001, tmax = 303091201
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='30006', job_status='RUN', time_executed='2021-09-30 00:14:18.684112', time_epoch_executed='1632986058.68' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='245'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/30006

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/30006/ft1_4FGL_J2335.4-0128_daily_bin245.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/30006/ft2_4FGL_J2335.4-0128_daily_bin245.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/30006/ft1_4FGL_J2335.4-0128_daily_bin245.fits outfile=/scratch/kocevski/30006/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin245.fits ra=353.869 dec=-1.476 rad=12.0 tmin=302832001.0 tmax=303091201.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.50
user 3.27
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/30006/ft1_filtered_4FGL_J2335.4-0128_daily_bin245.fits" evtable="EVENTS" scfile=/scratch/kocevski/30006/ft2_4FGL_J2335.4-0128_daily_bin245.fits sctable="SC_DATA" outfile=/scratch/kocevski/30006/ltcube_302832001_303091201_4FGL_J2335.4-0128_daily_bin245.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/30006/ft2_4FGL_J2335.4-0128_daily_bin245.fits
.....................!
real 11.74
user 11.39
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/30006/ft1_filtered_4FGL_J2335.4-0128_daily_bin245.fits evtable="EVENTS" scfile=/scratch/kocevski/30006/ft2_4FGL_J2335.4-0128_daily_bin245.fits sctable="SC_DATA" expcube=/scratch/kocevski/30006/ltcube_302832001_303091201_4FGL_J2335.4-0128_daily_bin245.fits outfile=/scratch/kocevski/30006/expmap_302832001_303091201_4FGL_J2335.4-0128_daily_bin245.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/30006/ltcube_302832001_303091201_4FGL_J2335.4-0128_daily_bin245.fits
.....................!
real 190.18
user 185.04
sys 4.83

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/30006/ft1_filtered_4FGL_J2335.4-0128_daily_bin245.fits scfile=/scratch/kocevski/30006/ft2_4FGL_J2335.4-0128_daily_bin245.fits outfile=/scratch/kocevski/30006/cmap_302832001_303091201_4FGL_J2335.4-0128_daily_bin245.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/30006/ft1_filtered_4FGL_J2335.4-0128_daily_bin245.fits scfile=/scratch/kocevski/30006/ft2_4FGL_J2335.4-0128_daily_bin245.fits outfile=/scratch/kocevski/30006/cmap_HighResolution_302832001_303091201_4FGL_J2335.4-0128_daily_bin245.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .86157       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10169E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.4800       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.017       1.0000         .10000E-03   10000.    
    13 'norm      '    2.2482       1.0000         .10000E-03   10000.    
    14 'norm      '    .32295E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.9520       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11093E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.4873       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .54425E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10454E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.9121       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    38.471       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.5873       1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.1182       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0603       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .84856       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=   4689.189     FROM MIGRAD    STATUS=CONVERGED    772 CALLS     3804 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.801       -.24184E-05** at limit **
   2  Prefactor     .10000E-03    18.214       -.15873E-05** at limit **
   3  Prefactor     .10000E-03    9.3413       -.20440E-07** at limit **
   4  Prefactor     .10000E-03    3.8515        .11216E-07** at limit **
   5  norm          .86158        2.2082       -.51736E-06   -.82300E-03
   6  Prefactor     .10000E-03    22.487       -.10055E-04** at limit **
   7  norm          .10000E-03    3.7026        .78891E-07** at limit **
   8  norm          8.4799        11.582       -.21560E-05   -.11431E-02
   9  Prefactor     .10000E-03    20.888        .96905E-05** at limit **
  10  Prefactor     .10000E-03    6.0071       -.34336E-07** at limit **
  11  Prefactor     .10000E-03    73.268       -.13067E-05** at limit **
  12  Prefactor     11.010        11.546       -.11245E-05   -.23819E-03
  13  norm          2.2473        1.3084        .10798E-08   -.35530E-03
  14  norm          .10016E-03    5.2783        .11360E-05** at limit **
  15  Prefactor     8.9512        8.2313        .39657E-06   -.85662E-05
  16  Prefactor     .10000E-03    191.84        .13485E-05** at limit **
  17  norm          5.4857        7.4591        .18702E-06   -.13322E-03
  18  Prefactor     .10000E-03    1674.5       -.11796E-04** at limit **
  19  Prefactor     .10000E-03    16.863       -.10329E-05** at limit **
  20  Prefactor     .10000E-03    42.082       -.35026E-05** at limit **
  21  norm          .10000E-03    9.3034        .61837E-07** at limit **
  22  Prefactor     .10000E-03    24.569        .41125E-05** at limit **
  23  Prefactor     2.9104        4.7958       -.45061E-06   -.40391E-03
  24  Prefactor     .10000E-03    16.908        .21519E-05** at limit **
  25  Prefactor     38.471        28.407       -.48679E-06   -.10034E-03
  26  Prefactor     2.5878        7.6350        .33626E-05   -.32742E-03
  27  Prefactor     6.1235        11.328       -.98725E-06   -.31228E-04
  28  Normalizat    1.0601        .22382        .10369E-05   -.14952E-04
  29  Prefactor     .84865        .15131       -.76647E-07    .35018E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.86158
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 8.47994
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.0102
  norm       = 2.24728
  norm       = 0.00010016
  Prefactor  = 8.95117
  Prefactor  = 0.0001
  norm       = 5.48573
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.91039
  Prefactor  = 0.0001
  Prefactor  = 38.4705
  Prefactor  = 2.58777
  Prefactor  = 6.12352
  Normalizat = 1.06006
  Prefactor  = 0.848652
 **********
 **   18 **HESSE 
 **********

 FCN=   4689.189     FROM HESSE     STATUS=OK           557 CALLS     4361 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.3702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.8915        .13118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .86158        2.1837        .15814E-03   -1.5522    
   6  Prefactor     .10000E-03    21.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.8584        .25707E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.4799        12.712        .68830E-03   -1.5125    
   9  Prefactor     .10000E-03    20.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.0112        .16392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    73.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.010        11.595        .12071E-03   -1.5044    
  13  norm          2.2473        1.3025        .56182E-04   -1.5408    
  14  norm          .10016E-03    4.9894        .49008E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.9512        8.2207        .13396E-03   -1.5110    
  16  Prefactor     .10000E-03    193.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.4857        7.4414        .17153E-03   -1.5239    
  18  Prefactor     .10000E-03    1703.4        .18583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    42.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    9.3077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    24.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.9104        4.8190        .18020E-03   -1.5367    
  24  Prefactor     .10000E-03    16.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     38.471        28.560        .32310E-03   -1.4467    
  26  Prefactor     2.5878        7.4176        .25369E-03   -1.5386    
  27  Prefactor     6.1235        11.469        .16231E-03   -1.5213    
  28  Normalizat    1.0601        .26551        .26479E-03   -.91045    
  29  Prefactor     .84865        .17834        .21223E-03   -.97959    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86071e-09
Minuit parameter uncertainties:
  1  0.000101097
  2  4.01434e-05
  3  4.13855e-06
  4  3.53228e-06
  5  2.1839
  6  0.000315437
  7  1.31358e-05
  8  12.7164
  9  0.000258212
  10  5.0329e-07
  11  0.000184167
  12  11.5971
  13  1.30253
  14  0.00178696
  15  8.22173
  16  0.000260818
  17  7.44266
  18  0.00446112
  19  6.57901e-05
  20  8.54874e-05
  21  4.72368e-06
  22  0.00011301
  23  4.81964
  24  5.4028e-05
  25  28.5702
  26  7.42022
  27  11.4728
  28  0.265843
  29  0.178464
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  4.724e-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.487e-01  1.785e-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.060e+00  2.658e-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: 5.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.25e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/30006/likelihoodResults_302832001_303091201_4FGL_J2335.4-0128_daily_bin245.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) = 4689.1890504
delta logL = -0.000510679347826

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4689.18853975
delta logL = -2.40888766712e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5044       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0600       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84867       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=   4689.189     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      200 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.5804        .90712E-02** at limit **
   2  alpha         2.5039        3.5641        .41152        .24634E-06
   3  Normalizat    1.0601        .20517        .59874E-01    .29656E-03
   4  Prefactor     .84865        .14965        .44347E-01    .37264E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.50389
  Normalizat = 1.06006
  Prefactor  = 0.848652
 **********
 **   18 **HESSE 
 **********

 FCN=   4689.189     FROM HESSE     STATUS=OK            29 CALLS      229 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.3059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5039        3.5539        .50000        .15568E-02
   3  Normalizat    1.0601        .23904        .26479E-03   -.91045    
   4  Prefactor     .84865        .17446        .21223E-03   -.97959    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65408e-10
Minuit parameter uncertainties:
  1  8.98165e-05
  2  2.50441
  3  0.239279
  4  0.174576
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/30006': 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) = 4689.18853972
delta logL = 1.63709046319e-11

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  8.982e-05  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.504e+00  2.504e+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.487e-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:  1.060e+00  2.393e-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/30006/cmap_HighResolution_302832001_303091201_4FGL_J2335.4-0128_daily_bin245.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.25e-05', job_status='DONE', photon_flux_upper_limit='5.41e-08', time_completed='2021-09-30 00:25:12.493602', job_id='30006', GAL2='0.85', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1632986712.49', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.64e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='245' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:25:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 30006: <4FGL_J2335.4-0128_daily_bin245> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin245> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 00:10:24 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:10:26 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:26 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_bin245 353.869 -1.476 302832001 303091201 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 :                                   653.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             253.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            889 sec.

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

