aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 155 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin1748
RA = 353.869, Dec = -1.476
tmin = 692409601, tmax = 692668801
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='900347', job_status='RUN', time_executed='2022-12-14 01:33:09.814449', time_epoch_executed='1671010389.81' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/900347

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/900347/ft1_4FGL_J2335.4-0128_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/900347/ft2_4FGL_J2335.4-0128_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/900347/ft1_4FGL_J2335.4-0128_daily_bin1748.fits outfile=/scratch/kocevski/900347/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin1748.fits ra=353.869 dec=-1.476 rad=12.0 tmin=692409601.0 tmax=692668801.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.57
user 3.34
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/900347/ft2_4FGL_J2335.4-0128_daily_bin1748.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/900347/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin1748.fits evtable="EVENTS" outfile="/scratch/kocevski/900347/ft1_filtered_4FGL_J2335.4-0128_daily_bin1748.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.33
sys 0.15

Number of photons that the gtmktime cut: 507

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/900347/ft1_filtered_4FGL_J2335.4-0128_daily_bin1748.fits" evtable="EVENTS" scfile=/scratch/kocevski/900347/ft2_4FGL_J2335.4-0128_daily_bin1748.fits sctable="SC_DATA" outfile=/scratch/kocevski/900347/ltcube_692409601_692668801_4FGL_J2335.4-0128_daily_bin1748.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/900347/ft2_4FGL_J2335.4-0128_daily_bin1748.fits
.....................!
real 12.09
user 11.68
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/900347/ft1_filtered_4FGL_J2335.4-0128_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/900347/ft2_4FGL_J2335.4-0128_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/900347/ltcube_692409601_692668801_4FGL_J2335.4-0128_daily_bin1748.fits outfile=/scratch/kocevski/900347/expmap_692409601_692668801_4FGL_J2335.4-0128_daily_bin1748.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/900347/ltcube_692409601_692668801_4FGL_J2335.4-0128_daily_bin1748.fits
.....................!
real 190.91
user 185.69
sys 4.81

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/900347/ft1_filtered_4FGL_J2335.4-0128_daily_bin1748.fits scfile=/scratch/kocevski/900347/ft2_4FGL_J2335.4-0128_daily_bin1748.fits outfile=/scratch/kocevski/900347/cmap_692409601_692668801_4FGL_J2335.4-0128_daily_bin1748.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/900347/ft1_filtered_4FGL_J2335.4-0128_daily_bin1748.fits scfile=/scratch/kocevski/900347/ft2_4FGL_J2335.4-0128_daily_bin1748.fits outfile=/scratch/kocevski/900347/cmap_HighResolution_692409601_692668801_4FGL_J2335.4-0128_daily_bin1748.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=353.869 yref=-1.476 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/900347/ft1_filtered_4FGL_J2335.4-0128_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/900347/ft2_4FGL_J2335.4-0128_daily_bin1748.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/900347/Model_4FGL_J2335.4-0128_daily_bin1748.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/900347/ft1_filtered_4FGL_J2335.4-0128_daily_bin1748.fits.....................!
real 57.71
user 56.31
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/900347/ft1_filtered_4FGL_J2335.4-0128_daily_bin1748.fits', '/scratch/kocevski/900347/ft2_4FGL_J2335.4-0128_daily_bin1748.fits', expMap='/scratch/kocevski/900347/expmap_692409601_692668801_4FGL_J2335.4-0128_daily_bin1748.fits', expCube='/scratch/kocevski/900347/ltcube_692409601_692668801_4FGL_J2335.4-0128_daily_bin1748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/900347/Model_4FGL_J2335.4-0128_daily_bin1748.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  0.000e+00  1.000e+06 ( 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 -5.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/900347/ft1_filtered_4FGL_J2335.4-0128_daily_bin1748.fits
Spacecraft file(s): /scratch/kocevski/900347/ft2_4FGL_J2335.4-0128_daily_bin1748.fits
Exposure map: /scratch/kocevski/900347/expmap_692409601_692668801_4FGL_J2335.4-0128_daily_bin1748.fits
Exposure cube: /scratch/kocevski/900347/ltcube_692409601_692668801_4FGL_J2335.4-0128_daily_bin1748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/900347/Model_4FGL_J2335.4-0128_daily_bin1748.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) = 5614.38557836

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16495E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .71506E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .15040E-03   1.0000          .0000       .10000E+07
     4 'norm      '    2.3745       1.0000          .0000       .10000E+07
     5 'Prefactor '    .27824E-02   1.0000          .0000       .10000E+07
     6 'norm      '    24.685       1.0000          .0000       .10000E+07
     7 'norm      '    .12220E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .38399E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .71998E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .12017E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .94124E-04   1.0000          .0000       .10000E+07
    12 'norm      '    .48572       1.0000          .0000       .10000E+07
    13 'norm      '    .86586E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    13.088       1.0000          .0000       .10000E+07
    15 'Prefactor '    .79152E-01   1.0000          .0000       .10000E+07
    16 'norm      '    .16399E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    .52236E-02   1.0000          .0000       .10000E+07
    18 'norm      '    29.798       1.0000          .0000       .10000E+07
    19 'Prefactor '    .48583       1.0000          .0000       .10000E+07
    20 'Prefactor '    91.399       1.0000          .0000       .10000E+07
    21 'Prefactor '    19.500       1.0000          .0000       .10000E+07
    22 'Prefactor '    .41134E-04   1.0000          .0000       .10000E+07
    23 'Normalizat'    1.2271       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .89670       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=   5614.331     FROM MIGRAD    STATUS=CONVERGED    175 CALLS     2003 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        13.678       -.25449E-05** at limit **
   2  Prefactor     .50226E-06    117.89       -.21656E-04** at limit **
   3  Prefactor     .49960E-09    4.9452       -.47143E-06** at limit **
   4  norm          2.3913        3.5819       -.91773E-06    .14272E-02
   5  Prefactor     .56699E-06    106.89        .68651E-05** at limit **
   6  norm          24.570        6.9140       -.30697E-06    .55372E-02
   7  norm          .99920E-09    3.8660       -.35963E-06** at limit **
   8  Prefactor     .30348E-06    7.9143        .16567E-05** at limit **
   9  Prefactor     .15350E-05    11.551       -.34506E-05** at limit **
  10  Prefactor     .23093E-07    19.433       -.38717E-05** at limit **
  11  Prefactor     .64670E-07    3.9621        .10324E-05** at limit **
  12  norm          .48754        1.1651       -.30881E-06   -.12728E-02
  13  norm          .89262E-07    3.8786        .60607E-06** at limit **
  14  Prefactor     13.103        8.9744       -.69693E-07    .17899E-01
  15  Prefactor     .55511E-09    157.64       -.41698E-05** at limit **
  16  norm          .66613E-09    3.7146       -.14228E-05** at limit **
  17  Prefactor     .53185E-06    7.5337        .20203E-05** at limit **
  18  norm          30.182        20.795        .32941E-05   -.19097E-01
  19  Prefactor     .45478        4.8352        .35033E-07    .40796E-01
  20  Prefactor     94.116        51.917        .34330E-05   -.18267E-01
  21  Prefactor     19.597        4.2864       -.42445E-06   -.26006E-02
  22  Prefactor      .0000        2.3009        .46585E-06** at limit **
  23  Normalizat    1.2248        .28000       -.15661E-04    .27797E-04
  24  Prefactor     .89699        .19505       -.21162E-05   -.17143E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 5.02265e-07
  Prefactor  = 4.996e-10
  norm       = 2.39133
  Prefactor  = 5.66991e-07
  norm       = 24.5704
  norm       = 9.99201e-10
  Prefactor  = 3.03479e-07
  Prefactor  = 1.53505e-06
  Prefactor  = 2.30926e-08
  Prefactor  = 6.46705e-08
  norm       = 0.487541
  norm       = 8.92619e-08
  Prefactor  = 13.1035
  Prefactor  = 5.55112e-10
  norm       = 6.66134e-10
  Prefactor  = 5.31852e-07
  norm       = 30.1822
  Prefactor  = 0.454785
  Prefactor  = 94.1158
  Prefactor  = 19.5965
  Prefactor  = 0
  Normalizat = 1.22483
  Prefactor  = 0.896987
 **********
 **   18 **HESSE 
 **********

 FCN=   5614.331     FROM HESSE     STATUS=OK           457 CALLS     2460 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        6.7742        .70921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .50226E-06    17.712        .99028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .49960E-09    4.9521        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.3913        3.8681        .66459E-03   -1.5677    
   5  Prefactor     .56699E-06    107.60        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          24.570        6.9282        .20131E-03   -1.5609    
   7  norm          .99920E-09    3.8781        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .30348E-06    22.119        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .15350E-05    23.099        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .23093E-07    19.750        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .64670E-07    4.4160        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .48754        1.1986        .80159E-03   -1.5694    
  13  norm          .89262E-07    4.5058        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.103        9.0667        .27662E-03   -1.5636    
  15  Prefactor     .55511E-09    153.48        .14527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .66613E-09    3.7203        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .53185E-06    22.218        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          30.182        28.597        .18322E-03   -1.5598    
  19  Prefactor     .45478        5.6690        .52888E-02   -1.5694    
  20  Prefactor     94.116        52.776        .10461E-03   -1.5514    
  21  Prefactor     19.597        25.048        .22653E-03   -1.5619    
  22  Prefactor      .0000        2.3005        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2248        .23741        .62996E-01   -.85839    
  24  Prefactor     .89699        .16177        .44963E-01   -.96246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33549e-07
Minuit parameter uncertainties:
  1  1.01128e-05
  2  0.00596534
  3  9.9928e-05
  4  3.86815
  5  0.015622
  6  6.92816
  7  0.000123375
  8  0.00518198
  9  0.0119093
  10  0.00135014
  11  0.00106858
  12  1.1986
  13  0.0012682
  14  9.06674
  15  0.000595488
  16  9.99585e-05
  17  0.00687502
  18  28.5975
  19  3.21134
  20  52.776
  21  25.0479
  22  1.1161e-05
  23  0.237616
  24  0.161853
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  3.018e+01  2.860e+01  0.000e+00  1.000e+06 ( 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 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
454           Eb:  1.202e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

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

EG_v02
   Spectrum: FileFunction
529   Normalization:  1.225e+00  2.376e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.84
Ra Dec: 353.869 -1.476
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 3.72e-08 +/- 3.53e-08
Energy Flux (Fixed Index): 1.54e-05 +/- 1.46e-05

TS (Fixed Index): 2.84
Ra Dec: 353.869 -1.476
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.82e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/900347/likelihoodResults_692409601_692668801_4FGL_J2335.4-0128_daily_bin1748.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) = 5614.31632099
delta logL = 0.0145797800196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5614.31294758
delta logL = 0.0179531830381

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    32.629       1.0000          .0000       .10000E+07
     2 'alpha     '    2.3430       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2297       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89557       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=   5614.313     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      282 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          32.632        31.493        .70035E-05    .28083E-03
   2  alpha         2.3429        .86296        .18105E-01    .10386E-03
   3  Normalizat    1.2301        .26788        .27816E-03   -.88732E-04
   4  Prefactor     .89531        .19373        .23088E-03   -.69135E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 32.6323
  alpha      = 2.34286
  Normalizat = 1.23005
  Prefactor  = 0.895312
 **********
 **   18 **HESSE 
 **********

 FCN=   5614.313     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          32.632        31.060        .28014E-06   -1.5594    
   2  alpha         2.3429        .85111        .36210E-02   -.62899E-01
   3  Normalizat    1.2301        .26807        .11126E-04   -.85679    
   4  Prefactor     .89531        .19394        .92351E-05   -.96305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48037e-11
Minuit parameter uncertainties:
  1  31.0599
  2  0.868549
  3  0.268373
  4  0.194085
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/900347': 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) = 5614.31294665
delta logL = 0.0179541204334

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
529   Normalization:  1.230e+00  2.684e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.88
Ra Dec: 353.869 -1.476
Photon Index (Free Index): 2.34 +/- 0.87
Photon Flux (Free Index): 3.21e-08 +/- 3.94e-08
Energy Flux (Free Index): 1.54e-05 +/- 1.38e-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/900347/cmap_HighResolution_692409601_692668801_4FGL_J2335.4-0128_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.82e-05', comment='SUCCESS', photon_flux='3.72e-08', energy_flux2='1.54e-05', photon_flux_error='3.53e-08', dlogl='1.80e-02', energy_flux='1.54e-05', photon_flux2='3.21e-08', job_status='DONE', time_completed='2022-12-14 01:42:53.976785', photon_index_error2='0.87', photon_index2='2.34', ts='2.84', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='1.38e-05', EG='1.22', time_epoch_completed='1671010973.98', return_code='0', job_id='900347', GAL2='0.90', EG2='1.23', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='3.94e-08', ts2='2.88', photon_index='2.50' WHERE bin_id='1748' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 01:42:54 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 900347: <4FGL_J2335.4-0128_daily_bin1748> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin1748> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec 14 01:30:19 2022
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 01:30:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 01:30:20 2022
Terminated at Wed Dec 14 01:42:54 2022
Results reported at Wed Dec 14 01:42:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin1748 353.869 -1.476 692409601 692668801 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 :                                   586.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             296.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   754 sec.
    Turnaround time :                            755 sec.

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

