/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 52 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 = 7631
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2335.4-0128_daily_bin934
RA = 353.869, Dec = -1.476
tmin = 481420801, tmax = 481680001
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='33073', job_status='RUN', time_executed='2021-09-30 00:21:50.869951', time_epoch_executed='1632986510.87' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='934'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/33073

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/33073/ft1_4FGL_J2335.4-0128_daily_bin934.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/33073/ft2_4FGL_J2335.4-0128_daily_bin934.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/33073/ft1_4FGL_J2335.4-0128_daily_bin934.fits outfile=/scratch/kocevski/33073/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin934.fits ra=353.869 dec=-1.476 rad=12.0 tmin=481420801.0 tmax=481680001.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.70
user 3.48
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/33073/ft2_4FGL_J2335.4-0128_daily_bin934.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/33073/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin934.fits evtable="EVENTS" outfile="/scratch/kocevski/33073/ft1_filtered_4FGL_J2335.4-0128_daily_bin934.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.52
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/33073/ft1_filtered_4FGL_J2335.4-0128_daily_bin934.fits evtable="EVENTS" scfile=/scratch/kocevski/33073/ft2_4FGL_J2335.4-0128_daily_bin934.fits sctable="SC_DATA" expcube=/scratch/kocevski/33073/ltcube_481420801_481680001_4FGL_J2335.4-0128_daily_bin934.fits outfile=/scratch/kocevski/33073/expmap_481420801_481680001_4FGL_J2335.4-0128_daily_bin934.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/33073/ltcube_481420801_481680001_4FGL_J2335.4-0128_daily_bin934.fits
.....................!
real 190.47
user 185.01
sys 5.10

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/33073/ft1_filtered_4FGL_J2335.4-0128_daily_bin934.fits scfile=/scratch/kocevski/33073/ft2_4FGL_J2335.4-0128_daily_bin934.fits outfile=/scratch/kocevski/33073/cmap_481420801_481680001_4FGL_J2335.4-0128_daily_bin934.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/33073/ft1_filtered_4FGL_J2335.4-0128_daily_bin934.fits scfile=/scratch/kocevski/33073/ft2_4FGL_J2335.4-0128_daily_bin934.fits outfile=/scratch/kocevski/33073/cmap_HighResolution_481420801_481680001_4FGL_J2335.4-0128_daily_bin934.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/33073/ft1_filtered_4FGL_J2335.4-0128_daily_bin934.fits evtable="EVENTS" scfile=/scratch/kocevski/33073/ft2_4FGL_J2335.4-0128_daily_bin934.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/33073/Model_4FGL_J2335.4-0128_daily_bin934.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/33073/ft1_filtered_4FGL_J2335.4-0128_daily_bin934.fits.....................!
real 56.30
user 55.00
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.369       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.2272       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .20128       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    43.960       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.0087       1.0000         .10000E-03   10000.    
    13 'norm      '    1.1963       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .52258E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.939       1.0000         .10000E-03   10000.    
    17 'norm      '    16.051       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10428E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.4946       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.0603       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.3657       1.0000         .10000E-03   10000.    
    26 'Prefactor '    21.798       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.6651       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2372       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .89870       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=   5491.741     FROM MIGRAD    STATUS=CONVERGED    724 CALLS     3741 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.8138       -.18836E-06** at limit **
   2  Prefactor     .10000E-03    37.165        .62485E-05** at limit **
   3  Prefactor     10.367        18.029        .13392E-05    .17871E-04
   4  Prefactor     .10000E-03    5.2499       -.34286E-07** at limit **
   5  norm          5.2277        3.6246       -.96293E-07   -.46889E-04
   6  Prefactor     .10000E-03    9.2124        .35232E-06** at limit **
   7  norm          .19747        2.1189        .81101E-07   -.16928E-03
   8  norm          .10000E-03    10.540       -.16305E-05** at limit **
   9  Prefactor     43.957        42.510       -.84002E-06    .78746E-05
  10  Prefactor     .10000E-03    11.426        .17527E-05** at limit **
  11  Prefactor     .10000E-03    20.093       -.14229E-05** at limit **
  12  Prefactor     9.0085        7.2506       -.39761E-07    .62848E-05
  13  norm          1.1961        .86238       -.17518E-07   -.15343E-04
  14  norm          .10000E-03    1.8500        .89912E-08** at limit **
  15  Prefactor     .10003E-03    6.6332       -.12609E-05** at limit **
  16  Prefactor     30.939        31.871        .12665E-07    .42212E-05
  17  norm          16.048        10.343        .10640E-06    .29284E-03
  18  Prefactor     .10000E-03    232.91       -.22467E-05** at limit **
  19  Prefactor     9.4919        9.2389        .15141E-07    .91496E-05
  20  Prefactor     .10000E-03    32.646       -.85065E-05** at limit **
  21  norm          .10000E-03    12.401       -.38561E-07** at limit **
  22  Prefactor     .10000E-03    24.448        .36228E-05** at limit **
  23  Prefactor     9.0557        6.1181        .20335E-06    .84271E-05
  24  Prefactor     .10000E-03    20.598        .63064E-06** at limit **
  25  Prefactor     3.3643        27.262        .15689E-05    .63152E-05
  26  Prefactor     21.802        26.705       -.16406E-05   -.28471E-04
  27  Prefactor     3.6649        4.3243        .61212E-06   -.10434E-02
  28  Normalizat    1.2372        .22746        .11966E-06    .86690E-04
  29  Prefactor     .89870        .15559       -.53148E-07    .13746E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3671
  Prefactor  = 0.0001
  norm       = 5.22774
  Prefactor  = 0.0001
  norm       = 0.197467
  norm       = 0.0001
  Prefactor  = 43.9573
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.00851
  norm       = 1.19607
  norm       = 0.0001
  Prefactor  = 0.000100025
  Prefactor  = 30.9389
  norm       = 16.0478
  Prefactor  = 0.0001
  Prefactor  = 9.49187
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.05572
  Prefactor  = 0.0001
  Prefactor  = 3.36434
  Prefactor  = 21.8018
  Prefactor  = 3.66493
  Normalizat = 1.23722
  Prefactor  = 0.898703
 **********
 **   18 **HESSE 
 **********

 FCN=   5491.741     FROM HESSE     STATUS=OK           555 CALLS     4296 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.8639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    37.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.367        18.021        .12443E-03   -1.5064    
   4  Prefactor     .10000E-03    5.3085        .16536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.2277        3.6267        .10721E-03   -1.5251    
   6  Prefactor     .10000E-03    9.2319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .19747        10.771        .20758E-02   -1.5619    
   8  norm          .10000E-03    10.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     43.957        42.615        .60466E-04   -1.4381    
  10  Prefactor     .10000E-03    11.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.0085        7.2575        .13354E-03   -1.5108    
  13  norm          1.1961        .86613        .56106E-04   -1.5489    
  14  norm          .10000E-03    1.8528        .98425E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10003E-03    20.867        .35600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.939        31.881        .72034E-04   -1.4595    
  17  norm          16.048        10.186        .99969E-04   -1.4907    
  18  Prefactor     .10000E-03    233.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.4919        9.2321        .13006E-03   -1.5092    
  20  Prefactor     .10000E-03    33.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    12.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    24.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.0557        6.1232        .13315E-03   -1.5106    
  24  Prefactor     .10000E-03    20.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.3643        27.302        .22058E-03   -1.5341    
  26  Prefactor     21.802        26.911        .85792E-04   -1.4774    
  27  Prefactor     3.6649        9.3812        .10549E-02   -1.5325    
  28  Normalizat    1.2372        .27300        .27659E-03   -.85460    
  29  Prefactor     .89870        .18289        .22955E-03   -.96186    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91776e-09
Minuit parameter uncertainties:
  1  3.77968e-06
  2  0.000185203
  3  18.0307
  4  2.00443e-06
  5  3.62684
  6  3.80953e-06
  7  2.91663
  8  2.38551e-05
  9  42.6449
  10  2.99129e-05
  11  3.27327e-05
  12  7.25824
  13  0.86614
  14  6.12578e-08
  15  0.00144952
  16  31.8983
  17  10.187
  18  0.000207558
  19  9.23348
  20  0.000191051
  21  4.96943e-06
  22  8.85316e-05
  23  6.12366
  24  1.32379e-05
  25  19.1796
  26  26.9263
  27  9.38499
  28  0.273313
  29  0.183014
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  4.969e-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.987e-01  1.830e-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.237e+00  2.733e-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: 6.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.69e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/33073/likelihoodResults_481420801_481680001_4FGL_J2335.4-0128_daily_bin934.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5491.74144556
delta logL = -0.000383598409826

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5491.74106196
delta logL = 8.35370883578e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4970       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89871       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=   5491.741     FROM MIGRAD    STATUS=FAILED       102 CALLS      251 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    903.31        .18142E-01** at limit **
   2  alpha         1.3678        2.9164        .16461        .56358E-07
   3  Normalizat    1.2372        .47675E-01    .27659E-03    .33458E-04
   4  Prefactor     .89870        .34527E-01    .22955E-03    .42494E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5491.741     FROM SIMPLEX   STATUS=UNCHANGED    187 CALLS      438 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    903.31        .65334E-03** at limit **
   2  alpha         1.3678        2.9164        .11465E-06    .56358E-07
   3  Normalizat    1.2372        .47675E-01    .76465E-08    .33458E-04
   4  Prefactor     .89870        .34527E-01    .50324E-08    .42494E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5491.741     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      466 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    15.076        .27926E-02** at limit **
   2  alpha         1.3577        3.1058        .65843E-02    .26590E-07
   3  Normalizat    1.2372        .24905        .11064E-04    .32882E-04
   4  Prefactor     .89870        .18040        .91819E-05    .41850E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.35771
  Normalizat = 1.23722
  Prefactor  = 0.898703
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    15.410        .55853E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3577        3.1774        .13169       -.47453    
   3  Normalizat    1.2372        .24938        .22127E-05   -.85460    
   4  Prefactor     .89870        .18060        .18364E-05   -.96186    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74773e-10
Minuit parameter uncertainties:
  1  0.000304106
  2  868.62
  3  0.24962
  4  0.180722
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/33073': 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) = 5491.74106128
delta logL = 6.79804543324e-07

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  3.041e-04  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  1.358e+00  8.686e+02  0.000e+00  5.000e+00 ( 1.000e+00)
453         beta:  3.100e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
454           Eb:  1.202e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  8.987e-01  1.807e-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.237e+00  2.496e-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/33073/cmap_HighResolution_481420801_481680001_4FGL_J2335.4-0128_daily_bin934.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.69e-05', job_status='DONE', photon_flux_upper_limit='6.48e-08', time_completed='2021-09-30 00:33:55.872894', job_id='33073', GAL2='0.90', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1632987235.87', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='6.80e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='934' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:33:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 33073: <4FGL_J2335.4-0128_daily_bin934> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin934> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 00:20:42 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:20:44 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:44 2021
Terminated at Thu Sep 30 00:33:56 2021
Results reported at Thu Sep 30 00:33:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin934 353.869 -1.476 481420801 481680001 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 :                                   721.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            794 sec.

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

