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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin984
RA = 353.869, Dec = -1.476
tmin = 494380801, tmax = 494640001
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='33149', job_status='RUN', time_executed='2021-09-30 00:24:40.533510', time_epoch_executed='1632986680.53' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='984'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/33149

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/33149/ft1_4FGL_J2335.4-0128_daily_bin984.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/33149/ft2_4FGL_J2335.4-0128_daily_bin984.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/33149/ft1_4FGL_J2335.4-0128_daily_bin984.fits outfile=/scratch/kocevski/33149/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin984.fits ra=353.869 dec=-1.476 rad=12.0 tmin=494380801.0 tmax=494640001.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.63
user 3.40
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/33149/ft2_4FGL_J2335.4-0128_daily_bin984.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/33149/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin984.fits evtable="EVENTS" outfile="/scratch/kocevski/33149/ft1_filtered_4FGL_J2335.4-0128_daily_bin984.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/33149/ft1_filtered_4FGL_J2335.4-0128_daily_bin984.fits" evtable="EVENTS" scfile=/scratch/kocevski/33149/ft2_4FGL_J2335.4-0128_daily_bin984.fits sctable="SC_DATA" outfile=/scratch/kocevski/33149/ltcube_494380801_494640001_4FGL_J2335.4-0128_daily_bin984.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/33149/ft2_4FGL_J2335.4-0128_daily_bin984.fits
.....................!
real 12.00
user 11.63
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/33149/ft1_filtered_4FGL_J2335.4-0128_daily_bin984.fits evtable="EVENTS" scfile=/scratch/kocevski/33149/ft2_4FGL_J2335.4-0128_daily_bin984.fits sctable="SC_DATA" expcube=/scratch/kocevski/33149/ltcube_494380801_494640001_4FGL_J2335.4-0128_daily_bin984.fits outfile=/scratch/kocevski/33149/expmap_494380801_494640001_4FGL_J2335.4-0128_daily_bin984.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/33149/ltcube_494380801_494640001_4FGL_J2335.4-0128_daily_bin984.fits
.....................!
real 191.42
user 185.63
sys 5.46

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/33149/ft1_filtered_4FGL_J2335.4-0128_daily_bin984.fits scfile=/scratch/kocevski/33149/ft2_4FGL_J2335.4-0128_daily_bin984.fits outfile=/scratch/kocevski/33149/cmap_494380801_494640001_4FGL_J2335.4-0128_daily_bin984.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/33149/ft1_filtered_4FGL_J2335.4-0128_daily_bin984.fits scfile=/scratch/kocevski/33149/ft2_4FGL_J2335.4-0128_daily_bin984.fits outfile=/scratch/kocevski/33149/cmap_HighResolution_494380801_494640001_4FGL_J2335.4-0128_daily_bin984.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.5135       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.5364       1.0000         .10000E-03   10000.    
     8 'norm      '    10.557       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13466E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.081       1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.5806       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    34.059       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.619       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16194E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    19.630       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.2523       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.9025       1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.3671       1.0000         .10000E-03   10000.    
    27 'Prefactor '    12.826       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .66905       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2440       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=   5854.622     FROM MIGRAD    STATUS=CONVERGED    732 CALLS     3686 TOTAL
                     EDM=   .37E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1854       -.35233E-07** at limit **
   2  Prefactor     .10000E-03    22.209       -.21927E-06** at limit **
   3  Prefactor     .10000E-03    8.2484       -.73527E-07** at limit **
   4  Prefactor     .10000E-03    4.1811       -.15618E-06** at limit **
   5  norm          1.5148        2.9103        .56806E-06   -.19591E-04
   6  Prefactor     .10000E-03    9.6598       -.10658E-06** at limit **
   7  norm          1.5369        3.5248        .74129E-06   -.89299E-05
   8  norm          10.564        16.231        .26436E-05   -.49595E-04
   9  Prefactor     .10000E-03    104.59       -.53949E-06** at limit **
  10  Prefactor     .10000E-03    20.417        .14832E-06** at limit **
  11  Prefactor     .10000E-03    45.059        .64446E-06** at limit **
  12  Prefactor     11.083        16.009        .15283E-06    .57806E-04
  13  norm          .10000E-03    .44245        .27450E-06** at limit **
  14  norm          8.5822        10.805        .18796E-06    .84506E-04
  15  Prefactor     .10000E-03    9.1150       -.52125E-07** at limit **
  16  Prefactor     .10000E-03    36.333        .32277E-06** at limit **
  17  norm          34.039        14.261        .32589E-06   -.36978E-04
  18  Prefactor     .10000E-03    209.18        .68348E-08** at limit **
  19  Prefactor     20.643        20.965        .18382E-06   -.41015E-04
  20  Prefactor     .10000E-03    124.53        .15932E-05** at limit **
  21  norm          19.546        35.330       -.35304E-06   -.56574E-04
  22  Prefactor     .10000E-03    116.33        .11245E-05** at limit **
  23  Prefactor     .10000E-03    2.8702       -.81923E-07** at limit **
  24  Prefactor     1.1430        280.95        .56103E-05   -.66717E-05
  25  Prefactor     5.8803        33.898        .69122E-06   -.38517E-05
  26  Prefactor     5.3713        13.217        .31308E-06   -.17004E-04
  27  Prefactor     12.831        10.290        .27398E-06   -.31488E-04
  28  Normalizat    .66849        .24173       -.27706E-05   -.48405E-04
  29  Prefactor     1.2442        .16289        .43804E-06   -.15284E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.51477
  Prefactor  = 0.0001
  norm       = 1.53686
  norm       = 10.5638
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.0835
  norm       = 0.0001
  norm       = 8.58218
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 34.0385
  Prefactor  = 0.0001
  Prefactor  = 20.6433
  Prefactor  = 0.000100001
  norm       = 19.5459
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.14304
  Prefactor  = 5.88027
  Prefactor  = 5.37131
  Prefactor  = 12.8308
  Normalizat = 0.668487
  Prefactor  = 1.24421
 **********
 **   18 **HESSE 
 **********

 FCN=   5854.622     FROM HESSE     STATUS=OK           551 CALLS     4237 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1936        .15284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.2558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.2221        .15243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.5148        2.8953        .16972E-03   -1.5462    
   6  Prefactor     .10000E-03    9.6816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.5369        3.5081        .20867E-03   -1.5460    
   8  norm          10.564        16.237        .61656E-03   -1.5058    
   9  Prefactor     .10000E-03    106.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    45.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.083        15.919        .12035E-03   -1.5042    
  13  norm          .10000E-03    .45725        .98854E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.5822        10.707        .13685E-03   -1.5122    
  15  Prefactor     .10000E-03    9.1453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    36.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          34.039        14.227        .68665E-04   -1.4540    
  18  Prefactor     .10000E-03    209.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.643        20.986        .88207E-04   -1.4799    
  20  Prefactor     .10000E-03    129.54        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          19.546        35.379        .90400E-04   -1.4823    
  22  Prefactor     .10000E-03    116.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.8789        .12619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.1430        288.73        .39944E-02   -1.5494    
  25  Prefactor     5.8803        33.630        .16529E-03   -1.5223    
  26  Prefactor     5.3713        13.200        .17347E-03   -1.5244    
  27  Prefactor     12.831        10.316        .11185E-03   -1.4991    
  28  Normalizat    .66849        .26520        .35246E-03   -1.0515    
  29  Prefactor     1.2442        .18200        .19876E-03   -.84981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14417e-09
Minuit parameter uncertainties:
  1  1.67596e-06
  2  8.35192e-05
  3  7.1732e-06
  4  1.33588e-05
  5  2.89561
  6  1.00561e-05
  7  3.50858
  8  16.2438
  9  5.03761e-05
  10  6.59164e-05
  11  0.000210428
  12  15.9251
  13  9.37817e-07
  14  10.7097
  15  2.28641e-06
  16  0.000167505
  17  14.2281
  18  0.000323693
  19  20.9933
  20  0.000523036
  21  35.4173
  22  0.00026316
  23  4.39006e-06
  24  36.5114
  25  28.1489
  26  13.2075
  27  10.3174
  28  0.265705
  29  0.182088
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.955e+01  3.542e+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:  1.244e+00  1.821e-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:  6.685e-01  2.657e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.71
Ra Dec: 353.869 -1.476
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.23e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/33149/likelihoodResults_494380801_494640001_4FGL_J2335.4-0128_daily_bin984.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) = 5854.59460369
delta logL = 0.0278265880752

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5854.57490383
delta logL = 0.047526442595

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.677       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1469       1.0000          .0000       5.0000    
     3 'Normalizat'    .64465       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2540       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5854.575     FROM MIGRAD    STATUS=FAILED        92 CALLS      279 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.694        7139.9        .11250E-03   -.16835E-03
   2  alpha         3.1469        3.6289        .18467E-01   -.24502E-04
   3  Normalizat    .64461        1.5055        .35842E-03   -.42696E-03
   4  Prefactor     1.2539        .81572        .19807E-03    .10091E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5854.575     FROM SIMPLEX   STATUS=UNCHANGED    114 CALLS      393 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.694        7139.9        .15195E-03   -1.4995    
   2  alpha         3.1469        3.6289        .74144E-03    .26175    
   3  Normalizat    .64461        1.5055        .20739E-03   -1.0612    
   4  Prefactor     1.2539        .81572        .12333E-03   -.84688    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5854.575     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      425 TOTAL
                     EDM=   .79E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.694        36.329        .45001E-05   -.60632E-05
   2  alpha         3.1469        3.6959        .73867E-03   -.64641E-06
   3  Normalizat    .64464        .26235        .14337E-04   -.12687E-05
   4  Prefactor     1.2539        .18549        .39615E-04    .11479E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 12.6944
  alpha      = 3.14688
  Normalizat = 0.644636
  Prefactor  = 1.2539
 **********
 **   18 **HESSE 
 **********

 FCN=   5854.575     FROM HESSE     STATUS=OK            23 CALLS      448 TOTAL
                     EDM=   .94E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.694        35.866        .90002E-06   -1.4995    
   2  alpha         3.1469        3.6823        .29547E-04    .26173    
   3  Normalizat    .64464        .26175        .28674E-05   -1.0612    
   4  Prefactor     1.2539        .18535        .79230E-05   -.84689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.38441e-14
Minuit parameter uncertainties:
  1  35.9264
  2  2.46121
  3  0.262255
  4  0.185446
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/33149': 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) = 5854.57490297
delta logL = 0.0475273070406

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.269e+01  3.593e+01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  3.147e+00  2.461e+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:  1.254e+00  1.854e-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:  6.446e-01  2.623e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.71
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/33149/cmap_HighResolution_494380801_494640001_4FGL_J2335.4-0128_daily_bin984.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.23e-05', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-30 00:37:04.193325', job_id='33149', GAL2='1.25', fit_tolerance='1e-08', EG2='0.64', EG='0.67', time_epoch_completed='1632987424.19', return_code2='0', ts='0.71', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='4.75e-02', ts2='0.82', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='984' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:37:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 33149: <4FGL_J2335.4-0128_daily_bin984> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin984> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 00:20:49 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:20:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 00:20:50 2021
Terminated at Thu Sep 30 00:37:04 2021
Results reported at Thu Sep 30 00:37:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin984 353.869 -1.476 494380801 494640001 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 :                                   743.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             253.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   974 sec.
    Turnaround time :                            975 sec.

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

