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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin1333
RA = 353.869, Dec = -1.476
tmin = 584841601, tmax = 585100801
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='34634', job_status='RUN', time_executed='2021-09-30 00:28:54.162787', time_epoch_executed='1632986934.16' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='1333'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34634

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34634/ft1_4FGL_J2335.4-0128_daily_bin1333.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34634/ft2_4FGL_J2335.4-0128_daily_bin1333.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34634/ft1_4FGL_J2335.4-0128_daily_bin1333.fits outfile=/scratch/kocevski/34634/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin1333.fits ra=353.869 dec=-1.476 rad=12.0 tmin=584841601.0 tmax=585100801.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 2.89
user 2.67
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/34634/ft2_4FGL_J2335.4-0128_daily_bin1333.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/34634/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin1333.fits evtable="EVENTS" outfile="/scratch/kocevski/34634/ft1_filtered_4FGL_J2335.4-0128_daily_bin1333.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/34634/ft1_filtered_4FGL_J2335.4-0128_daily_bin1333.fits" evtable="EVENTS" scfile=/scratch/kocevski/34634/ft2_4FGL_J2335.4-0128_daily_bin1333.fits sctable="SC_DATA" outfile=/scratch/kocevski/34634/ltcube_584841601_585100801_4FGL_J2335.4-0128_daily_bin1333.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/34634/ft2_4FGL_J2335.4-0128_daily_bin1333.fits
.....................!
real 12.19
user 11.84
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34634/ft1_filtered_4FGL_J2335.4-0128_daily_bin1333.fits evtable="EVENTS" scfile=/scratch/kocevski/34634/ft2_4FGL_J2335.4-0128_daily_bin1333.fits sctable="SC_DATA" expcube=/scratch/kocevski/34634/ltcube_584841601_585100801_4FGL_J2335.4-0128_daily_bin1333.fits outfile=/scratch/kocevski/34634/expmap_584841601_585100801_4FGL_J2335.4-0128_daily_bin1333.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/34634/ltcube_584841601_585100801_4FGL_J2335.4-0128_daily_bin1333.fits
.....................!
real 189.54
user 184.97
sys 4.25

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/34634/ft1_filtered_4FGL_J2335.4-0128_daily_bin1333.fits scfile=/scratch/kocevski/34634/ft2_4FGL_J2335.4-0128_daily_bin1333.fits outfile=/scratch/kocevski/34634/cmap_584841601_585100801_4FGL_J2335.4-0128_daily_bin1333.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34634/ft1_filtered_4FGL_J2335.4-0128_daily_bin1333.fits scfile=/scratch/kocevski/34634/ft2_4FGL_J2335.4-0128_daily_bin1333.fits outfile=/scratch/kocevski/34634/cmap_HighResolution_584841601_585100801_4FGL_J2335.4-0128_daily_bin1333.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/34634/ft1_filtered_4FGL_J2335.4-0128_daily_bin1333.fits evtable="EVENTS" scfile=/scratch/kocevski/34634/ft2_4FGL_J2335.4-0128_daily_bin1333.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/34634/Model_4FGL_J2335.4-0128_daily_bin1333.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/34634/ft1_filtered_4FGL_J2335.4-0128_daily_bin1333.fits.....................!
real 63.06
user 61.79
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6774       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    60.607       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10319E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    35.899       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.029       1.0000         .10000E-03   10000.    
    11 'Prefactor '    35.963       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13411E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.2599       1.0000         .10000E-03   10000.    
    14 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.052       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    16.937       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14345E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .62031E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    85.630       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .17251E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.007       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10400E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    11.369       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10282E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    17.994       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .49535       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1134       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=   6619.184     FROM MIGRAD    STATUS=CONVERGED    733 CALLS     3729 TOTAL
                     EDM=   .52E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6763        5.7372       -.18627E-07   -.39043E-04
   2  Prefactor     .10000E-03    56.445        .24905E-05** at limit **
   3  Prefactor     60.597        19.165       -.81257E-07    .85524E-04
   4  Prefactor     .10000E-03    5.1464       -.23389E-07** at limit **
   5  norm          .10000E-03    1.2042       -.73010E-07** at limit **
   6  Prefactor     .10000E-03    4.6144       -.50531E-08** at limit **
   7  norm          .10000E-03    1.8109       -.96872E-07** at limit **
   8  norm          35.910        16.744       -.90430E-07    .37834E-05
   9  Prefactor     .10000E-03    48.626       -.25717E-05** at limit **
  10  Prefactor     10.031        11.276        .33654E-06   -.16449E-03
  11  Prefactor     35.963        45.629       -.37192E-07   -.31094E-04
  12  Prefactor     .10000E-03    7.1512       -.47933E-07** at limit **
  13  norm          1.2602        .79995        .67209E-07    .42973E-05
  14  norm          .10000E-03    1.5456       -.86616E-08** at limit **
  15  Prefactor     10.053        8.6191        .37270E-08   -.14719E-06
  16  Prefactor     .10000E-03    19.462       -.23352E-06** at limit **
  17  norm          16.939        9.3064       -.33196E-07    .47729E-05
  18  Prefactor     .10000E-03    200.52       -.75026E-05** at limit **
  19  Prefactor     .10006E-03    9.7562       -.36845E-05** at limit **
  20  Prefactor     .10000E-03    9.1630        .12214E-07** at limit **
  21  norm          85.566        33.175        .26153E-05    .93469E-04
  22  Prefactor     .10000E-03    151.93        .52514E-05** at limit **
  23  Prefactor     12.012        5.3558        .42432E-06    .89569E-04
  24  Prefactor     .10000E-03    23.456        .27963E-06** at limit **
  25  Prefactor     11.378        19.350       -.25895E-06   -.15156E-04
  26  Prefactor     .10000E-03    7.9806       -.74054E-07** at limit **
  27  Prefactor     17.997        7.8203       -.22972E-07   -.83842E-04
  28  Normalizat    .49532        .19759        .18290E-05   -.29406E-04
  29  Prefactor     1.1133        .13916       -.35728E-06    .50448E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.67627
  Prefactor  = 0.0001
  Prefactor  = 60.5974
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 35.9097
  Prefactor  = 0.0001
  Prefactor  = 10.0308
  Prefactor  = 35.9626
  Prefactor  = 0.0001
  norm       = 1.26017
  norm       = 0.0001
  Prefactor  = 10.0535
  Prefactor  = 0.0001
  norm       = 16.939
  Prefactor  = 0.0001
  Prefactor  = 0.000100062
  Prefactor  = 0.0001
  norm       = 85.5663
  Prefactor  = 0.0001
  Prefactor  = 12.0123
  Prefactor  = 0.0001
  Prefactor  = 11.3778
  Prefactor  = 0.0001
  Prefactor  = 17.9966
  Normalizat = 0.495317
  Prefactor  = 1.1133
 **********
 **   18 **HESSE 
 **********

 FCN=   6619.184     FROM HESSE     STATUS=OK           559 CALLS     4288 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6763        5.7346        .16858E-03   -1.5231    
   2  Prefactor     .10000E-03    56.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     60.597        18.374        .51539E-04   -1.4150    
   4  Prefactor     .10000E-03    5.2518        .35860E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.7719        .16315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.6196        .17066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.5361        .20930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          35.910        16.717        .66887E-04   -1.4509    
   9  Prefactor     .10000E-03    49.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.031        11.259        .63265E-03   -1.5074    
  11  Prefactor     35.963        45.422        .66828E-04   -1.4508    
  12  Prefactor     .10000E-03    7.1657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2602        .79328        .55647E-04   -1.5483    
  14  norm          .10000E-03    1.5480        .98741E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.053        8.6113        .12639E-03   -1.5074    
  16  Prefactor     .10000E-03    19.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          16.939        9.2930        .97319E-04   -1.4885    
  18  Prefactor     .10000E-03    201.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10006E-03    30.929        .62022E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.1786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          85.566        41.476        .43413E-04   -1.3855    
  22  Prefactor     .10000E-03    152.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.012        5.4191        .11013E-03   -1.5015    
  24  Prefactor     .10000E-03    23.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     11.378        19.312        .11881E-03   -1.5033    
  26  Prefactor     .10000E-03    8.0387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     17.997        7.8224        .94418E-04   -1.4859    
  28  Normalizat    .49532        .20968        .36480E-03   -1.1263    
  29  Prefactor     1.1133        .15146        .19360E-03   -.89042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3741e-10
Minuit parameter uncertainties:
  1  5.73514
  2  3.13885e-05
  3  18.3755
  4  1.80832e-05
  5  2.96025e-05
  6  3.96942e-06
  7  3.4097e-05
  8  16.7193
  9  1.98108e-05
  10  11.261
  11  45.4659
  12  1.3001e-05
  13  0.793288
  14  1.98064e-06
  15  8.61241
  16  9.30625e-06
  17  9.29376
  18  0.000601635
  19  0.00277462
  20  4.31742e-06
  21  41.49
  22  0.000361822
  23  5.41931
  24  2.06758e-06
  25  19.3225
  26  1.29642e-05
  27  7.82283
  28  0.210017
  29  0.151514
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  8.557e+01  4.149e+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.113e+00  1.515e-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:  4.953e-01  2.100e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.85
Ra Dec: 353.869 -1.476
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 1.05e-07 +/- 5.11e-08
Energy Flux (Fixed Index): 4.38e-05 +/- 2.12e-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) = 6619.09243273
delta logL = 0.0913802029399

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6619.08958994
delta logL = 0.0942229919183

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    73.859       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6809       1.0000          .0000       5.0000    
     3 'Normalizat'    .48362       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1177       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=   6619.090     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      286 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          73.876        39.686        .46718E-04    .32122E-04
   2  alpha         2.6812        .42269        .78790E-02    .12529E-04
   3  Normalizat    .48343        .19299        .36883E-03   -.23180E-04
   4  Prefactor     1.1178        .14899        .19319E-03    .71192E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 73.8762
  alpha      = 2.68123
  Normalizat = 0.483431
  Prefactor  = 1.11778
 **********
 **   18 **HESSE 
 **********

 FCN=   6619.090     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          73.876        37.998        .93435E-05   -1.3987    
   2  alpha         2.6812        .40465        .31516E-03    .72556E-01
   3  Normalizat    .48343        .19284        .14753E-04   -1.1319    
   4  Prefactor     1.1178        .14897        .38639E-04   -.88900    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88978e-11
Minuit parameter uncertainties:
  1  38.0107
  2  0.406443
  3  0.193111
  4  0.149024
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34634': 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) = 6619.08958798
delta logL = 0.0942249511845

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  7.388e+01  3.801e+01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.681e+00  4.064e-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:  1.118e+00  1.490e-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:  4.834e-01  1.931e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.25
Ra Dec: 353.869 -1.476
Photon Index (Free Index): 2.68 +/- 0.41
Photon Flux (Free Index): 1.19e-07 +/- 5.08e-08
Energy Flux (Free Index): 4.26e-05 +/- 1.50e-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/34634/cmap_HighResolution_584841601_585100801_4FGL_J2335.4-0128_daily_bin1333.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.05e-07', energy_flux2='4.26e-05', photon_flux_error='5.11e-08', dlogl='9.42e-02', energy_flux='4.38e-05', photon_flux2='1.19e-07', job_status='DONE', time_completed='2021-09-30 00:40:47.228203', photon_index_error2='0.41', photon_index2='2.68', ts='17.85', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='1.50e-05', EG='0.50', time_epoch_completed='1632987647.23', return_code='0', job_id='34634', GAL2='1.12', EG2='0.48', return_code2='0', energy_flux_error='2.12e-05', photon_flux_error2='5.08e-08', ts2='18.25', photon_index='2.50' WHERE bin_id='1333' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:40:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 34634: <4FGL_J2335.4-0128_daily_bin1333> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin1333> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 00:25:43 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:25:45 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:25:45 2021
Terminated at Thu Sep 30 00:40:48 2021
Results reported at Thu Sep 30 00:40:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin1333 353.869 -1.476 584841601 585100801 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 :                                   699.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             277.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            905 sec.

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

