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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin796
RA = 353.869, Dec = -1.476
tmin = 445651201, tmax = 445910401
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='32854', job_status='RUN', time_executed='2021-09-30 00:23:30.699454', time_epoch_executed='1632986610.7' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='796'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32854

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32854/ft1_4FGL_J2335.4-0128_daily_bin796.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32854/ft2_4FGL_J2335.4-0128_daily_bin796.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32854/ft1_4FGL_J2335.4-0128_daily_bin796.fits outfile=/scratch/kocevski/32854/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin796.fits ra=353.869 dec=-1.476 rad=12.0 tmin=445651201.0 tmax=445910401.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.49
user 3.28
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/32854/ft2_4FGL_J2335.4-0128_daily_bin796.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/32854/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin796.fits evtable="EVENTS" outfile="/scratch/kocevski/32854/ft1_filtered_4FGL_J2335.4-0128_daily_bin796.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/32854/ft1_filtered_4FGL_J2335.4-0128_daily_bin796.fits" evtable="EVENTS" scfile=/scratch/kocevski/32854/ft2_4FGL_J2335.4-0128_daily_bin796.fits sctable="SC_DATA" outfile=/scratch/kocevski/32854/ltcube_445651201_445910401_4FGL_J2335.4-0128_daily_bin796.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/32854/ft2_4FGL_J2335.4-0128_daily_bin796.fits
.....................!
real 14.61
user 14.23
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32854/ft1_filtered_4FGL_J2335.4-0128_daily_bin796.fits evtable="EVENTS" scfile=/scratch/kocevski/32854/ft2_4FGL_J2335.4-0128_daily_bin796.fits sctable="SC_DATA" expcube=/scratch/kocevski/32854/ltcube_445651201_445910401_4FGL_J2335.4-0128_daily_bin796.fits outfile=/scratch/kocevski/32854/expmap_445651201_445910401_4FGL_J2335.4-0128_daily_bin796.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/32854/ltcube_445651201_445910401_4FGL_J2335.4-0128_daily_bin796.fits
.....................!
real 190.77
user 185.32
sys 5.14

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/32854/ft1_filtered_4FGL_J2335.4-0128_daily_bin796.fits scfile=/scratch/kocevski/32854/ft2_4FGL_J2335.4-0128_daily_bin796.fits outfile=/scratch/kocevski/32854/cmap_445651201_445910401_4FGL_J2335.4-0128_daily_bin796.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32854/ft1_filtered_4FGL_J2335.4-0128_daily_bin796.fits scfile=/scratch/kocevski/32854/ft2_4FGL_J2335.4-0128_daily_bin796.fits outfile=/scratch/kocevski/32854/cmap_HighResolution_445651201_445910401_4FGL_J2335.4-0128_daily_bin796.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.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6979       1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.702       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.590       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2256       1.0000         .10000E-03   10000.    
     5 'norm      '    .16687E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.6797       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    42.460       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11485E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.6720       1.0000         .10000E-03   10000.    
    14 'norm      '    9.8083       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    14.871       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .27176E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10418E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10109E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10440E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.354       1.0000         .10000E-03   10000.    
    24 'Prefactor '    38.604       1.0000         .10000E-03   10000.    
    25 'Prefactor '    20.914       1.0000         .10000E-03   10000.    
    26 'Prefactor '    16.637       1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.8003       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .54969       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3003       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5580.469     FROM MIGRAD    STATUS=CONVERGED     92 CALLS     3054 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6980        1.0159        .10569E-06    .33573E-03
   2  Prefactor     30.696        1.5165       -.10146E-05    .11898E-02
   3  Prefactor     14.616        11.883       -.17486E-04   -.82250E-03
   4  Prefactor     2.2280        1.2225        .10320E-05    .22922E-03
   5  norm          .10000E-03    2.4372        .35125E-07** at limit **
   6  Prefactor     .10000E-03    6.9823        .11767E-05** at limit **
   7  norm          .10000E-03    3.1218       -.92111E-07** at limit **
   8  norm          1.6805        1.1066        .67428E-06    .25552E-03
   9  Prefactor     .10012E-03    8.4405       -.69378E-05** at limit **
  10  Prefactor     42.464        1.4234       -.81987E-06    .11562E-02
  11  Prefactor     .17431E-03    114.25       -.61492E-04** at limit **
  12  Prefactor     .10018E-03    9.2859       -.36167E-05** at limit **
  13  norm          1.6713        1.0854        .20236E-06    .27638E-03
  14  norm          9.7959        1.1961       -.96177E-06   -.79386E-03
  15  Prefactor     .10017E-03    7.3229        .52650E-05** at limit **
  16  Prefactor     .10001E-03    29.738       -.69720E-05** at limit **
  17  norm          14.867        1.1641       -.72675E-06    .56909E-04
  18  Prefactor     .10158E-03    3.2028        .93024E-05** at limit **
  19  Prefactor     .10001E-03    7.0211       -.54111E-05** at limit **
  20  Prefactor     .10039E-03    7.1580        .99667E-05** at limit **
  21  norm          .10004E-03    17.711        .38110E-05** at limit **
  22  Prefactor     .12629E-03    120.42        .20761E-04** at limit **
  23  Prefactor     10.347        5.3554       -.67103E-05   -.96602E-02
  24  Prefactor     38.609        1.1822        .13615E-06   -.27015E-04
  25  Prefactor     20.924        1.7996       -.14709E-05    .11211E-02
  26  Prefactor     16.641        1.3638       -.12507E-05   -.86203E-03
  27  Prefactor     6.8013        1.0761       -.57593E-06    .27691E-03
  28  Normalizat    .54953        .24449        .97991E-05   -.12734E-03
  29  Prefactor     1.3003        .18434       -.93337E-06   -.19822E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.69804
  Prefactor  = 30.6965
  Prefactor  = 14.6162
  Prefactor  = 2.22804
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 1.68051
  Prefactor  = 0.000100116
  Prefactor  = 42.4644
  Prefactor  = 0.000174313
  Prefactor  = 0.000100183
  norm       = 1.67131
  norm       = 9.79587
  Prefactor  = 0.000100168
  Prefactor  = 0.000100015
  norm       = 14.8674
  Prefactor  = 0.000101577
  Prefactor  = 0.000100008
  Prefactor  = 0.000100388
  norm       = 0.000100041
  Prefactor  = 0.000126294
  Prefactor  = 10.3471
  Prefactor  = 38.6094
  Prefactor  = 20.9239
  Prefactor  = 16.6411
  Prefactor  = 6.80131
  Normalizat = 0.549525
  Prefactor  = 1.3003
 **********
 **   18 **HESSE 
 **********

 FCN=   5580.469     FROM HESSE     STATUS=OK           611 CALLS     3665 TOTAL
                     EDM=   .57E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6980        8.6244        .42069E-02   -1.5231    
   2  Prefactor     30.696        57.834        .18078E-02   -1.4599    
   3  Prefactor     14.616        16.322        .26214E-02   -1.4943    
   4  Prefactor     2.2280        7.4435        .68901E-02   -1.5409    
   5  norm          .10000E-03    2.3451        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.9851        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.1067        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.6805        6.6120        .81263E-02   -1.5449    
   9  Prefactor     .10012E-03    9.1468        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     42.464        20.798        .15380E-02   -1.4404    
  11  Prefactor     .17431E-03    251.42        .90712E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10018E-03    10.756        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.6713        1.0970        .81496E-03   -1.5449    
  14  norm          9.7959        7.7365        .31988E-02   -1.5082    
  15  Prefactor     .10017E-03    13.748        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    29.984        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          14.867        10.337        .25966E-02   -1.4937    
  18  Prefactor     .10158E-03    225.81        .10715E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    13.355        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10039E-03    9.6544        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10004E-03    18.137        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .12629E-03    183.26        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     10.347        5.9098        .31130E-02   -1.5065    
  24  Prefactor     38.609        34.765        .16127E-02   -1.4464    
  25  Prefactor     20.924        25.521        .21896E-02   -1.4793    
  26  Prefactor     16.641        14.559        .24548E-02   -1.4892    
  27  Prefactor     6.8013        9.2795        .38466E-02   -1.5186    
  28  Normalizat    .54953        .24136        .87212E-01   -1.1017    
  29  Prefactor     1.3003        .17212        .32605E-01   -.83298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.73647e-07
Minuit parameter uncertainties:
  1  8.62629
  2  57.9403
  3  16.3272
  4  7.44657
  5  5.83206e-06
  6  0.000132459
  7  7.00403e-05
  8  6.61486
  9  0.00205998
  10  20.8018
  11  0.274537
  12  0.00280564
  13  1.09706
  14  7.73724
  15  0.00304333
  16  0.00133317
  17  10.338
  18  0.0378818
  19  0.000648156
  20  0.00387394
  21  0.00172007
  22  0.13926
  23  5.9101
  24  34.7836
  25  25.5345
  26  14.5617
  27  9.28144
  28  0.241824
  29  0.172191
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.720e-03  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.300e+00  1.722e-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.495e-01  2.418e-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: 7.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.02e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/32854/likelihoodResults_445651201_445910401_4FGL_J2335.4-0128_daily_bin796.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) = 5580.46968961
delta logL = -0.000262185506472

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5580.46943024
delta logL = -2.81927441392e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5103       1.0000          .0000       5.0000    
     3 'Normalizat'    .54953       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3003       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=   5580.469     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      292 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    91.254        .18142E-01** at limit **
   2  alpha         2.5677        3.5026        .50000        .29922E-07
   3  Normalizat    .54953        .12078E-01    .38635E-03    .25312E-03
   4  Prefactor     1.3003        .92743E-02    .19859E-03    .49855E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  alpha      = 2.56774
  Normalizat = 0.549527
  Prefactor  = 1.3003
 **********
 **   18 **HESSE 
 **********

 FCN=   5580.469     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      321 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    583.40        .30946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5677        2.8845        .50000        .27100E-01
   3  Normalizat    .54953        .31568E-01    .15454E-04   -1.1017    
   4  Prefactor     1.3003        .24240E-01    .39719E-04   -.83298    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.36564e-10
Minuit parameter uncertainties:
  1  0.00211313
  2  2621.48
  3  0.0315693
  4  0.0242406
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32854': 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): 102
logL (Free Index) = 5580.46942742
delta logL = 5.78711478738e-09

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  2.113e-03  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.568e+00  2.621e+03  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.300e+00  2.424e-02  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.495e-01  3.157e-02  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/32854/cmap_HighResolution_445651201_445910401_4FGL_J2335.4-0128_daily_bin796.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.02e-05', job_status='DONE', photon_flux_upper_limit='7.26e-08', time_completed='2021-09-30 00:34:52.709169', job_id='32854', GAL2='1.30', fit_tolerance='1e-08', EG2='0.55', EG='0.55', time_epoch_completed='1632987292.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.30', dlogl='5.79e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='796' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:34:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 32854: <4FGL_J2335.4-0128_daily_bin796> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin796> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 00:20:25 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:20:27 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:27 2021
Terminated at Thu Sep 30 00:34:55 2021
Results reported at Thu Sep 30 00:34:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin796 353.869 -1.476 445651201 445910401 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 :                                   679.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             258.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            870 sec.

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

