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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin458
RA = 353.869, Dec = -1.476
tmin = 358041601, tmax = 358300801
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='31316', job_status='RUN', time_executed='2021-09-30 00:18:35.270927', time_epoch_executed='1632986315.27' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='458'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31316

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31316/ft1_4FGL_J2335.4-0128_daily_bin458.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31316/ft2_4FGL_J2335.4-0128_daily_bin458.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31316/ft1_4FGL_J2335.4-0128_daily_bin458.fits outfile=/scratch/kocevski/31316/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin458.fits ra=353.869 dec=-1.476 rad=12.0 tmin=358041601.0 tmax=358300801.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.26
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/31316/ft2_4FGL_J2335.4-0128_daily_bin458.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/31316/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin458.fits evtable="EVENTS" outfile="/scratch/kocevski/31316/ft1_filtered_4FGL_J2335.4-0128_daily_bin458.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.50
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31316/ft1_filtered_4FGL_J2335.4-0128_daily_bin458.fits" evtable="EVENTS" scfile=/scratch/kocevski/31316/ft2_4FGL_J2335.4-0128_daily_bin458.fits sctable="SC_DATA" outfile=/scratch/kocevski/31316/ltcube_358041601_358300801_4FGL_J2335.4-0128_daily_bin458.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/31316/ft2_4FGL_J2335.4-0128_daily_bin458.fits
.....................!
real 12.02
user 11.60
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31316/ft1_filtered_4FGL_J2335.4-0128_daily_bin458.fits evtable="EVENTS" scfile=/scratch/kocevski/31316/ft2_4FGL_J2335.4-0128_daily_bin458.fits sctable="SC_DATA" expcube=/scratch/kocevski/31316/ltcube_358041601_358300801_4FGL_J2335.4-0128_daily_bin458.fits outfile=/scratch/kocevski/31316/expmap_358041601_358300801_4FGL_J2335.4-0128_daily_bin458.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/31316/ltcube_358041601_358300801_4FGL_J2335.4-0128_daily_bin458.fits
.....................!
real 192.84
user 186.42
sys 6.04

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/31316/ft1_filtered_4FGL_J2335.4-0128_daily_bin458.fits scfile=/scratch/kocevski/31316/ft2_4FGL_J2335.4-0128_daily_bin458.fits outfile=/scratch/kocevski/31316/cmap_358041601_358300801_4FGL_J2335.4-0128_daily_bin458.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.54
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31316/ft1_filtered_4FGL_J2335.4-0128_daily_bin458.fits scfile=/scratch/kocevski/31316/ft2_4FGL_J2335.4-0128_daily_bin458.fits outfile=/scratch/kocevski/31316/cmap_HighResolution_358041601_358300801_4FGL_J2335.4-0128_daily_bin458.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.58
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/31316/ft1_filtered_4FGL_J2335.4-0128_daily_bin458.fits evtable="EVENTS" scfile=/scratch/kocevski/31316/ft2_4FGL_J2335.4-0128_daily_bin458.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31316/Model_4FGL_J2335.4-0128_daily_bin458.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/31316/ft1_filtered_4FGL_J2335.4-0128_daily_bin458.fits.....................!
real 52.96
user 51.47
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10275E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .27694E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    10.683       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.7324       1.0000         .10000E-03   10000.    
     8 'norm      '    20.640       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.905       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12657E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.4403       1.0000         .10000E-03   10000.    
    14 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.6200       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .16496E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    172.19       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11440       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.5488       1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.9555       1.0000         .10000E-03   10000.    
    24 'Prefactor '    52.016       1.0000         .10000E-03   10000.    
    25 'Prefactor '    39.359       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .78413       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .90844       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=   5209.896     FROM MIGRAD    STATUS=CONVERGED    759 CALLS     3898 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.514       -.38396E-07** at limit **
   2  Prefactor     .10000E-03    18.052       -.42896E-06** at limit **
   3  Prefactor     .10000E-03    16.119       -.30372E-06** at limit **
   4  Prefactor     .10001E-03    5.8380        .34243E-06** at limit **
   5  norm          10.682        3.8183        .40698E-06   -.21741E-03
   6  Prefactor     .10000E-03    4.5418       -.24594E-07** at limit **
   7  norm          2.7441        3.8239        .10013E-05   -.24973E-03
   8  norm          20.637        15.912        .10568E-05    .47862E-04
   9  Prefactor     .10000E-03    12.243        .30738E-06** at limit **
  10  Prefactor     .10000E-03    7.8854       -.83485E-07** at limit **
  11  Prefactor     26.903        41.275       -.14378E-05   -.61093E-04
  12  Prefactor     .10000E-03    10.065       -.18033E-05** at limit **
  13  norm          2.4404        1.1213       -.47313E-06   -.52267E-03
  14  norm          .10000E-03    2.3636       -.10274E-07** at limit **
  15  Prefactor     2.6243        8.4395        .85917E-06    .32988E-04
  16  Prefactor     .10000E-03    15.694        .21516E-06** at limit **
  17  norm          .10000E-03    6.3730       -.79433E-06** at limit **
  18  Prefactor     172.51        222.78        .20625E-04    .21290E-03
  19  Prefactor     .13700E-03    9.1333        .14340E-05** at limit **
  20  Prefactor     2.5491        12.571        .16790E-04   -.14204E-03
  21  norm          .10000E-03    24.333        .70709E-06** at limit **
  22  Prefactor     .10000E-03    21.324        .54766E-06** at limit **
  23  Prefactor     4.9637        4.5209       -.24374E-05   -.45427E-03
  24  Prefactor     52.007        44.087        .31264E-05    .25346E-03
  25  Prefactor     39.358        25.873       -.33549E-06   -.51442E-04
  26  Prefactor     .10000E-03    37.424       -.48393E-07** at limit **
  27  Prefactor     .10000E-03    9.2766        .52595E-06** at limit **
  28  Normalizat    .78423        .20067       -.36030E-05   -.14546E-03
  29  Prefactor     .90843        .14122       -.74799E-06   -.24126E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 10.682
  Prefactor  = 0.0001
  norm       = 2.74412
  norm       = 20.6372
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.9033
  Prefactor  = 0.0001
  norm       = 2.44043
  norm       = 0.0001
  Prefactor  = 2.62434
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 172.511
  Prefactor  = 0.000137003
  Prefactor  = 2.54914
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.96374
  Prefactor  = 52.0065
  Prefactor  = 39.3576
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.784233
  Prefactor  = 0.90843
 **********
 **   18 **HESSE 
 **********

 FCN=   5209.896     FROM HESSE     STATUS=OK           555 CALLS     4453 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.027        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    10.640        .29374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          10.682        3.8247        .39964E-03   -1.5054    
   6  Prefactor     .10000E-03    4.5424        .15023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.7441        3.3355        .14014E-03   -1.5377    
   8  norm          20.637        15.925        .88163E-04   -1.4799    
   9  Prefactor     .10000E-03    12.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.9018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     26.903        41.143        .77233E-04   -1.4670    
  12  Prefactor     .10000E-03    10.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.4404        1.1213        .48350E-04   -1.5396    
  14  norm          .10000E-03    2.3779        .10832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.6243        8.0135        .25197E-03   -1.5384    
  16  Prefactor     .10000E-03    15.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    19.672        .33386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     172.51        234.47        .15375E-03   -1.3073    
  19  Prefactor     .13700E-03    18.875        .59937E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.5491        12.827        .12788E-02   -1.5389    
  21  norm          .10000E-03    24.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    21.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.9637        4.5842        .13230E-03   -1.5262    
  24  Prefactor     52.007        44.540        .55609E-04   -1.4264    
  25  Prefactor     39.358        25.880        .63889E-04   -1.4452    
  26  Prefactor     .10000E-03    39.014        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    9.5465        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .78423        .23146        .28888E-03   -1.0066    
  29  Prefactor     .90843        .16407        .20081E-03   -.95847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18642e-09
Minuit parameter uncertainties:
  1  6.75826e-05
  2  3.03098e-05
  3  1.36247e-05
  4  0.00062355
  5  3.82483
  6  2.36971e-06
  7  3.33574
  8  15.928
  9  4.17504e-05
  10  1.05167e-05
  11  41.1861
  12  8.73594e-05
  13  1.1213
  14  1.57507e-05
  15  8.01681
  16  1.86728e-05
  17  9.60152e-05
  18  235.756
  19  0.052873
  20  11.4403
  21  2.76916e-05
  22  9.4733e-05
  23  4.58457
  24  44.5686
  25  25.8872
  26  0.000295201
  27  0.000112063
  28  0.231749
  29  0.164159
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  9.084e-01  1.642e-01  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  7.842e-01  2.317e-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.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.70e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/31316/likelihoodResults_358041601_358300801_4FGL_J2335.4-0128_daily_bin458.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) = 5209.89615826
delta logL = -0.00019478655031

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5209.89596507
delta logL = -1.58995226229e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8124       1.0000          .0000       5.0000    
     3 'Normalizat'    .78423       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90843       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=   5209.896     FROM MIGRAD    STATUS=FAILED       101 CALLS      286 TOTAL
                     EDM=   .32E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11137E-03    735.16        .22797E-02** at limit **
   2  alpha         3.2269        3.2741        .50000        .20123E-05
   3  Normalizat    .78423        .26714E-01    .28888E-03   -.10960E-03
   4  Prefactor     .90843        .20003E-01    .20081E-03   -.10346E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5209.896     FROM SIMPLEX   STATUS=PROGRESS     136 CALLS      422 TOTAL
                     EDM=   .54E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10323E-03    735.16        .65400E-03** at limit **
   2  alpha         3.2267        3.2741        .10440E-03    .20123E-05
   3  Normalizat    .78423        .26714E-01    .18552E-05   -.10960E-03
   4  Prefactor     .90843        .20003E-01    .47192E-06   -.10346E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5209.896     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      470 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6755.0        .45594E-03** at limit **
   2  alpha         3.0116        3.3122        .50000        .67757E-08
   3  Normalizat    .78423        .73960E-01    .11555E-04   -.33254E-04
   4  Prefactor     .90843        .55378E-01    .40161E-04    .26099E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.01157
  Normalizat = 0.784232
  Prefactor  = 0.908432
 **********
 **   18 **HESSE 
 **********

 FCN=   5209.896     FROM HESSE     STATUS=OK            29 CALLS      499 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    36.988        .91187E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.0116        3.9751        .50000        .20608    
   3  Normalizat    .78423        .21565        .23111E-05   -1.0066    
   4  Prefactor     .90843        .16153        .80323E-05   -.95847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93272e-11
Minuit parameter uncertainties:
  1  1.8727e-05
  2  557.325
  3  0.215881
  4  0.161611
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31316': 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) = 5209.89596322
delta logL = 2.53275175055e-07

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.873e-05  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  3.012e+00  5.573e+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:  9.084e-01  1.616e-01  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  7.842e-01  2.159e-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/31316/cmap_HighResolution_358041601_358300801_4FGL_J2335.4-0128_daily_bin458.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.70e-05', job_status='DONE', photon_flux_upper_limit='6.51e-08', time_completed='2021-09-30 00:30:35.932575', job_id='31316', GAL2='0.91', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1632987035.93', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='2.53e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='458' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:30:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 31316: <4FGL_J2335.4-0128_daily_bin458> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin458> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep 30 00:15:23 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:15:25 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:15:25 2021
Terminated at Thu Sep 30 00:30:36 2021
Results reported at Thu Sep 30 00:30:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin458 353.869 -1.476 358041601 358300801 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 :                                   719.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             269.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            913 sec.

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

