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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin894
RA = 353.869, Dec = -1.476
tmin = 471052801, tmax = 471312001
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='33013', job_status='RUN', time_executed='2021-09-30 00:24:21.828133', time_epoch_executed='1632986661.83' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='894'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/33013

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/33013/ft1_4FGL_J2335.4-0128_daily_bin894.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/33013/ft2_4FGL_J2335.4-0128_daily_bin894.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/33013/ft1_4FGL_J2335.4-0128_daily_bin894.fits outfile=/scratch/kocevski/33013/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin894.fits ra=353.869 dec=-1.476 rad=12.0 tmin=471052801.0 tmax=471312001.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 4.03
user 3.76
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/33013/ft2_4FGL_J2335.4-0128_daily_bin894.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/33013/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin894.fits evtable="EVENTS" outfile="/scratch/kocevski/33013/ft1_filtered_4FGL_J2335.4-0128_daily_bin894.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/33013/ft1_filtered_4FGL_J2335.4-0128_daily_bin894.fits" evtable="EVENTS" scfile=/scratch/kocevski/33013/ft2_4FGL_J2335.4-0128_daily_bin894.fits sctable="SC_DATA" outfile=/scratch/kocevski/33013/ltcube_471052801_471312001_4FGL_J2335.4-0128_daily_bin894.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/33013/ft2_4FGL_J2335.4-0128_daily_bin894.fits
.....................!
real 13.37
user 12.99
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/33013/ft1_filtered_4FGL_J2335.4-0128_daily_bin894.fits evtable="EVENTS" scfile=/scratch/kocevski/33013/ft2_4FGL_J2335.4-0128_daily_bin894.fits sctable="SC_DATA" expcube=/scratch/kocevski/33013/ltcube_471052801_471312001_4FGL_J2335.4-0128_daily_bin894.fits outfile=/scratch/kocevski/33013/expmap_471052801_471312001_4FGL_J2335.4-0128_daily_bin894.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/33013/ltcube_471052801_471312001_4FGL_J2335.4-0128_daily_bin894.fits
.....................!
real 192.83
user 187.28
sys 5.23

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/33013/ft1_filtered_4FGL_J2335.4-0128_daily_bin894.fits scfile=/scratch/kocevski/33013/ft2_4FGL_J2335.4-0128_daily_bin894.fits outfile=/scratch/kocevski/33013/cmap_471052801_471312001_4FGL_J2335.4-0128_daily_bin894.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/33013/ft1_filtered_4FGL_J2335.4-0128_daily_bin894.fits scfile=/scratch/kocevski/33013/ft2_4FGL_J2335.4-0128_daily_bin894.fits outfile=/scratch/kocevski/33013/cmap_HighResolution_471052801_471312001_4FGL_J2335.4-0128_daily_bin894.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.57
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.613       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.420       1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.354       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .71446       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10306E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.9672       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10282E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.6176       1.0000         .10000E-03   10000.    
    13 'norm      '    4.8846       1.0000         .10000E-03   10000.    
    14 'norm      '    3.8558       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    44.705       1.0000         .10000E-03   10000.    
    17 'norm      '    25.710       1.0000         .10000E-03   10000.    
    18 'Prefactor '    234.05       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.3354       1.0000         .10000E-03   10000.    
    20 'Prefactor '    44.264       1.0000         .10000E-03   10000.    
    21 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11838E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    21.425       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.3379       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .52301       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1286       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=   6006.963     FROM MIGRAD    STATUS=CONVERGED    745 CALLS     3723 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.617        10.424        .33400E-05   -.38601E-04
   2  Prefactor     10.422        31.638       -.22998E-05   -.71685E-05
   3  Prefactor     24.312        20.532        .42903E-05    .15464E-03
   4  Prefactor     .10000E-03    2.5645        .10384E-06** at limit **
   5  norm          .10000E-03    2.5461       -.47971E-06** at limit **
   6  Prefactor     .10000E-03    5.2100       -.58304E-07** at limit **
   7  norm          .10000E-03    1.8900        .38121E-07** at limit **
   8  norm          .81651        10.780       -.66182E-06   -.83880E-04
   9  Prefactor     .10000E-03    36.526       -.13621E-04** at limit **
  10  Prefactor     6.9681        18.072       -.88715E-06   -.49529E-04
  11  Prefactor     .10000E-03    28.422        .30885E-05** at limit **
  12  Prefactor     6.6192        6.6532       -.40960E-05   -.11592E-03
  13  norm          4.8849        1.4301        .55890E-07   -.70204E-03
  14  norm          3.8562        3.9579        .10579E-05    .16567E-04
  15  Prefactor     .10000E-03    8.6404        .41337E-06** at limit **
  16  Prefactor     44.783        72.156        .50259E-04   -.15012E-04
  17  norm          25.714        13.630       -.29742E-06   -.14687E-04
  18  Prefactor     234.00        180.30       -.33365E-04   -.26666E-04
  19  Prefactor     4.3420        11.426       -.65375E-07   -.41872E-03
  20  Prefactor     44.261        37.376        .12125E-05   -.79254E-05
  21  norm          .10000E-03    32.381        .16650E-04** at limit **
  22  Prefactor     .10009E-03    39.437        .33120E-05** at limit **
  23  Prefactor     .10000E-03    2.2448        .15024E-06** at limit **
  24  Prefactor     .10000E-03    14.260        .37746E-06** at limit **
  25  Prefactor     21.432        20.414       -.15050E-05   -.69126E-05
  26  Prefactor     .10000E-03    26.773       -.71176E-05** at limit **
  27  Prefactor     6.3418        5.9541       -.26758E-06   -.72822E-04
  28  Normalizat    .52256        .20993       -.32055E-05   -.40394E-04
  29  Prefactor     1.1287        .14917       -.12815E-05    .10065E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.6168
  Prefactor  = 10.4218
  Prefactor  = 24.3123
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.816509
  Prefactor  = 0.0001
  Prefactor  = 6.96813
  Prefactor  = 0.0001
  Prefactor  = 6.61917
  norm       = 4.88487
  norm       = 3.85621
  Prefactor  = 0.0001
  Prefactor  = 44.7826
  norm       = 25.7135
  Prefactor  = 233.997
  Prefactor  = 4.34198
  Prefactor  = 44.2607
  norm       = 0.0001
  Prefactor  = 0.000100092
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.4322
  Prefactor  = 0.0001
  Prefactor  = 6.34179
  Normalizat = 0.522556
  Prefactor  = 1.12866
 **********
 **   18 **HESSE 
 **********

 FCN=   6006.963     FROM HESSE     STATUS=OK           565 CALLS     4288 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.617        10.404        .11279E-03   -1.4997    
   2  Prefactor     10.422        31.612        .12413E-03   -1.5062    
   3  Prefactor     24.312        19.566        .81171E-04   -1.4721    
   4  Prefactor     .10000E-03    2.5745        .12117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.2119        .22270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.2140        .17278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.9182        .10398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .81651        44.936        .46708E-02   -1.5527    
   9  Prefactor     .10000E-03    36.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.9681        18.054        .15199E-03   -1.5180    
  11  Prefactor     .10000E-03    28.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.6192        6.6502        .15599E-03   -1.5193    
  13  norm          4.8849        1.4265        .46238E-04   -1.5266    
  14  norm          3.8562        3.9540        .14945E-03   -1.5315    
  15  Prefactor     .10000E-03    8.6680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     44.783        72.025        .59963E-04   -1.4369    
  17  norm          25.714        13.614        .79005E-04   -1.4693    
  18  Prefactor     234.00        179.92        .13229E-03   -1.2637    
  19  Prefactor     4.3420        11.313        .19346E-03   -1.5291    
  20  Prefactor     44.261        37.341        .60260E-04   -1.4376    
  21  norm          .10000E-03    32.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10009E-03    38.942        .15175       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.2613        .11312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    14.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     21.432        20.406        .86534E-04   -1.4782    
  26  Prefactor     .10000E-03    27.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     6.3418        5.9512        .15944E-03   -1.5204    
  28  Normalizat    .52256        .22357        .36553E-03   -1.1138    
  29  Prefactor     1.1287        .16441        .19467E-03   -.88556    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18303e-08
Minuit parameter uncertainties:
  1  10.4057
  2  31.6625
  3  19.5708
  4  3.76042e-06
  5  0.000158493
  6  1.99837e-06
  7  4.81913e-06
  8  12.1234
  9  8.10063e-05
  10  18.0679
  11  0.000213393
  12  6.65098
  13  1.42651
  14  3.95431
  15  3.34023e-06
  16  72.1653
  17  13.616
  18  180.349
  19  11.3186
  20  37.3603
  21  0.000106532
  22  0.00378455
  23  1.05072e-05
  24  5.07928e-05
  25  20.4128
  26  0.000113053
  27  5.95173
  28  0.223954
  29  0.164484
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.065e-04  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.129e+00  1.645e-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:  5.226e-01  2.240e-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.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.57e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/33013/likelihoodResults_471052801_471312001_4FGL_J2335.4-0128_daily_bin894.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) = 6006.96306609
delta logL = -0.000146058829159

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6006.96292015
delta logL = -1.18641764857e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10172E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5093       1.0000          .0000       5.0000    
     3 'Normalizat'    .52257       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1287       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6006.963     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      198 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    33.864        .90712E-02** at limit **
   2  alpha         2.4706        3.5484        .41152        .60657E-05
   3  Normalizat    .52256        .19086        .82522E-01    .37413E-04
   4  Prefactor     1.1287        .14619        .36586E-01   -.77743E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  alpha      = 2.47063
  Normalizat = 0.522558
  Prefactor  = 1.12866
 **********
 **   18 **HESSE 
 **********

 FCN=   6006.963     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    34.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4706        3.5451        .50000       -.11749E-01
   3  Normalizat    .52256        .20872        .36554E-03   -1.1138    
   4  Prefactor     1.1287        .16032        .19467E-03   -.88556    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17077e-10
Minuit parameter uncertainties:
  1  0.000614029
  2  2.49996
  3  0.209028
  4  0.160389
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/33013': 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) = 6006.96291994
delta logL = 8.27167241368e-08

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  6.140e-04  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.471e+00  2.500e+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.129e+00  1.604e-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:  5.226e-01  2.090e-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/33013/cmap_HighResolution_471052801_471312001_4FGL_J2335.4-0128_daily_bin894.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.57e-05', job_status='DONE', photon_flux_upper_limit='6.20e-08', time_completed='2021-09-30 00:36:48.955689', job_id='33013', GAL2='1.13', fit_tolerance='1e-08', EG2='0.52', EG='0.52', time_epoch_completed='1632987408.96', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='8.27e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='894' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:36:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 33013: <4FGL_J2335.4-0128_daily_bin894> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin894> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 00:20:38 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:20:39 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:39 2021
Terminated at Thu Sep 30 00:36:49 2021
Results reported at Thu Sep 30 00:36:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin894 353.869 -1.476 471052801 471312001 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 :                                   746.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            971 sec.

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

