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


Performing analysis on: 4FGL_J2331.3-1558_daily_bin1682
RA = 352.839, Dec = -15.9777
tmin = 675302401, tmax = 675561601
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='901326', job_status='RUN', time_executed='2022-05-30 01:13:29.441929', time_epoch_executed='1653898409.44' WHERE source_name='4FGL J2331.3-1558' and cadence='daily' and bin_id='1682'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/901326

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/901326/ft1_4FGL_J2331.3-1558_daily_bin1682.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/901326/ft2_4FGL_J2331.3-1558_daily_bin1682.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/901326/ft1_4FGL_J2331.3-1558_daily_bin1682.fits outfile=/scratch/kocevski/901326/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin1682.fits ra=352.839 dec=-15.9777 rad=12.0 tmin=675302401.0 tmax=675561601.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.26
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/901326/ft2_4FGL_J2331.3-1558_daily_bin1682.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/901326/ft2_4FGL_J2331.3-1558_daily_bin1682.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/901326/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin1682.fits evtable="EVENTS" outfile="/scratch/kocevski/901326/ft1_filtered_4FGL_J2331.3-1558_daily_bin1682.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.52
user 0.32
sys 0.18

Number of photons that the gtmktime cut: 680

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/901326/ft1_filtered_4FGL_J2331.3-1558_daily_bin1682.fits" evtable="EVENTS" scfile=/scratch/kocevski/901326/ft2_4FGL_J2331.3-1558_daily_bin1682.fits sctable="SC_DATA" outfile=/scratch/kocevski/901326/ltcube_675302401_675561601_4FGL_J2331.3-1558_daily_bin1682.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/901326/ft2_4FGL_J2331.3-1558_daily_bin1682.fits
.....................!
real 13.58
user 13.18
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/901326/ft1_filtered_4FGL_J2331.3-1558_daily_bin1682.fits evtable="EVENTS" scfile=/scratch/kocevski/901326/ft2_4FGL_J2331.3-1558_daily_bin1682.fits sctable="SC_DATA" expcube=/scratch/kocevski/901326/ltcube_675302401_675561601_4FGL_J2331.3-1558_daily_bin1682.fits outfile=/scratch/kocevski/901326/expmap_675302401_675561601_4FGL_J2331.3-1558_daily_bin1682.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/901326/ltcube_675302401_675561601_4FGL_J2331.3-1558_daily_bin1682.fits
.....................!
real 191.45
user 184.98
sys 5.83

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 164 point sources and 0 extended sources

Setting source of interest to:
4FGL J2331.3-1558 @ 352.839 -15.9777

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/901326/ft1_filtered_4FGL_J2331.3-1558_daily_bin1682.fits scfile=/scratch/kocevski/901326/ft2_4FGL_J2331.3-1558_daily_bin1682.fits outfile=/scratch/kocevski/901326/cmap_675302401_675561601_4FGL_J2331.3-1558_daily_bin1682.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=352.839 yref=-15.9777 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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/901326/ft1_filtered_4FGL_J2331.3-1558_daily_bin1682.fits scfile=/scratch/kocevski/901326/ft2_4FGL_J2331.3-1558_daily_bin1682.fits outfile=/scratch/kocevski/901326/cmap_HighResolution_675302401_675561601_4FGL_J2331.3-1558_daily_bin1682.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=352.839 yref=-15.9777 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.55
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/901326/ft1_filtered_4FGL_J2331.3-1558_daily_bin1682.fits evtable="EVENTS" scfile=/scratch/kocevski/901326/ft2_4FGL_J2331.3-1558_daily_bin1682.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/901326/Model_4FGL_J2331.3-1558_daily_bin1682.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/901326/ft1_filtered_4FGL_J2331.3-1558_daily_bin1682.fits....................!
real 57.88
user 56.46
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/901326/ft1_filtered_4FGL_J2331.3-1558_daily_bin1682.fits', '/scratch/kocevski/901326/ft2_4FGL_J2331.3-1558_daily_bin1682.fits', expMap='/scratch/kocevski/901326/expmap_675302401_675561601_4FGL_J2331.3-1558_daily_bin1682.fits', expCube='/scratch/kocevski/901326/ltcube_675302401_675561601_4FGL_J2331.3-1558_daily_bin1682.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/901326/Model_4FGL_J2331.3-1558_daily_bin1682.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2331.3-1558'

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  2.463e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
426        Index:  2.542e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/901326/ft1_filtered_4FGL_J2331.3-1558_daily_bin1682.fits
Spacecraft file(s): /scratch/kocevski/901326/ft2_4FGL_J2331.3-1558_daily_bin1682.fits
Exposure map: /scratch/kocevski/901326/expmap_675302401_675561601_4FGL_J2331.3-1558_daily_bin1682.fits
Exposure cube: /scratch/kocevski/901326/ltcube_675302401_675561601_4FGL_J2331.3-1558_daily_bin1682.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/901326/Model_4FGL_J2331.3-1558_daily_bin1682.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) = 7434.76707758

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.760       1.0000         .10000E-03   10000.    
     4 'norm      '    .10172E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.833       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.0702       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .54977E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10379E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.706       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.1916       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    17.556       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.6543       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .95481       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .88674       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7434.758     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2386 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4193        .64418E-08** at limit **
   2  norm          .10000E-03    12.612       -.26898E-05** at limit **
   3  Prefactor     36.770        12.431        .13948E-05    .16970E-03
   4  norm          .10000E-03    .38592       -.16048E-06** at limit **
   5  Prefactor     .10000E-03    10.211       -.18983E-05** at limit **
   6  Prefactor     .10000E-03    3.0916        .23430E-07** at limit **
   7  Prefactor     21.834        10.870        .28122E-07   -.10789E-04
   8  Prefactor     .10000E-03    18.535       -.62564E-05** at limit **
   9  Prefactor     .10000E-03    10.620        .29062E-05** at limit **
  10  Prefactor     5.0714        4.5978       -.27092E-06    .89310E-04
  11  norm          .10000E-03    2.1739        .49198E-07** at limit **
  12  norm          .58915E-01    1.1344        .22968E-07   -.72374E-04
  13  Prefactor     .10000E-03    53.607        .43743E-05** at limit **
  14  Prefactor     22.702        16.568       -.31746E-06   -.79094E-04
  15  Prefactor     7.1798        21.721       -.18070E-05   -.33009E-04
  16  Prefactor     .10000E-03    16.929        .74325E-05** at limit **
  17  Prefactor     .10000E-03    83.762       -.45918E-05** at limit **
  18  norm          .10000E-03    .11826       -.28415E-07** at limit **
  19  norm          17.556        4.5418        .66432E-06   -.32190E-04
  20  Prefactor     1.6548        4.3728        .16023E-05   -.97506E-03
  21  Normalizat    .95472        .15448       -.59430E-06   -.18721E-04
  22  Prefactor     .88678        .14109       -.17678E-06   -.45725E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 36.77
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.8341
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.07136
  norm       = 0.0001
  norm       = 0.0589151
  Prefactor  = 0.0001
  Prefactor  = 22.7017
  Prefactor  = 7.17985
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 17.5557
  Prefactor  = 1.65476
  Normalizat = 0.954721
  Prefactor  = 0.886775
 **********
 **   18 **HESSE 
 **********

 FCN=   7434.758     FROM HESSE     STATUS=OK           340 CALLS     2726 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4258        .13097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    12.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     36.770        12.336        .66101E-04   -1.4494    
   4  norm          .10000E-03    .39460        .10350E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.1102        .14806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.834        10.871        .85721E-04   -1.4773    
   8  Prefactor     .10000E-03    18.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.0714        4.5954        .17068E-03   -1.5258    
  11  norm          .10000E-03    2.1984        .12405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .58915E-01    19.337        .16920E-02   -1.5659    
  13  Prefactor     .10000E-03    53.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.702        16.630        .84059E-04   -1.4755    
  15  Prefactor     7.1798        21.853        .14958E-03   -1.5172    
  16  Prefactor     .10000E-03    16.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    84.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .12285        .57609E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          17.556        4.5303        .88645E-04   -1.4870    
  20  Prefactor     1.6548        4.1996        .27093E-03   -1.5451    
  21  Normalizat    .95472        .18012        .24051E-03   -.94563    
  22  Prefactor     .88678        .16472        .23649E-03   -.96605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0396e-08
Minuit parameter uncertainties:
  1  1.89286e-06
  2  1.69155e-06
  3  12.3373
  4  9.58534e-06
  5  4.45863e-05
  6  1.54136e-06
  7  10.8722
  8  2.24173e-05
  9  2.04657e-06
  10  4.59568
  11  4.37267e-06
  12  2.13359
  13  1.58425e-05
  14  16.6335
  15  21.8772
  16  1.33604e-06
  17  8.4339e-05
  18  1.38605e-06
  19  4.53039
  20  4.20038
  21  0.180234
  22  0.164817
Done.

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

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  2.270e+01  1.663e+01  1.000e-04  1.000e+04 ( 1.000e-13)
426        Index:  2.542e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  8.868e-01  1.648e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  9.547e-01  1.802e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.96
Ra Dec: 352.839 -15.978
Photon Index (Fixed Index): 2.54 +/- 0.00
Photon Flux (Fixed Index): 5.19e-08 +/- 3.80e-08
Energy Flux (Fixed Index): 1.44e-05 +/- 1.05e-05

TS (Fixed Index): 2.96
Ra Dec: 352.839 -15.978
Photon Flux Upper Limit: 1.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/901326/likelihoodResults_675302401_675561601_4FGL_J2331.3-1558_daily_bin1682.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) = 7434.09469854
delta logL = 0.663028260598

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7434.07676857
delta logL = 0.68095823873

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.4093       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4025       1.0000          .0000       10.000    
     3 'Normalizat'    .90268       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91937       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7434.077     FROM MIGRAD    STATUS=FAILED       101 CALLS      298 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3929        41.919        .65707E-03   -.72825E-04
   2  Index         3.4037        2.4119        .43622E-02    .67546E-03
   3  Normalizat    .90291        .19278        .24635E-03   -.24181E-04
   4  Prefactor     .91930        .17737        .23267E-03   -.11336E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7434.077     FROM SIMPLEX   STATUS=UNCHANGED     78 CALLS      376 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3929        41.919        .19478E-03   -1.5128    
   2  Index         3.4037        2.4119        .89279E-03   -.32495    
   3  Normalizat    .90291        .19278        .15788E-03   -.96358    
   4  Prefactor     .91930        .17737        .16027E-03   -.95470    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7434.077     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      408 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3929        13.029        .26283E-04   -.72236E-04
   2  Index         3.4037        .87199        .87243E-03   -.13748E-04
   3  Normalizat    .90291        .18178        .98542E-05   -.17998E-04
   4  Prefactor     .91930        .16798        .93069E-05   -.85507E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.39291
  Index      = 3.40369
  Normalizat = 0.902906
  Prefactor  = 0.919301
 **********
 **   18 **HESSE 
 **********

 FCN=   7434.077     FROM HESSE     STATUS=OK            23 CALLS      431 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3929        12.174        .10513E-05   -1.5128    
   2  Index         3.4037        .81500        .34897E-04   -.32495    
   3  Normalizat    .90291        .18136        .19708E-05   -.96358    
   4  Prefactor     .91930        .16758        .18614E-05   -.95470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5283e-12
Minuit parameter uncertainties:
  1  12.1771
  2  0.819069
  3  0.181487
  4  0.167678
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/901326': 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) = 7434.07676489
delta logL = 0.680961912258

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  8.393e+00  1.218e+01  1.000e-04  1.000e+04 ( 1.000e-13)
426        Index:  3.404e+00  8.191e-01  0.000e+00  1.000e+01 (-1.000e+00)
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  9.193e-01  1.677e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  9.029e-01  1.815e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.50
Ra Dec: 352.839 -15.978
Photon Index (Free Index): 3.40 +/- 0.82
Photon Flux (Free Index): 8.99e-08 +/- 5.51e-08
Energy Flux (Free Index): 1.54e-05 +/- 8.83e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/901326/cmap_HighResolution_675302401_675561601_4FGL_J2331.3-1558_daily_bin1682.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.99e-03', comment='SUCCESS', photon_flux='5.19e-08', energy_flux2='1.54e-05', photon_flux_error='3.80e-08', dlogl='6.81e-01', energy_flux='1.44e-05', photon_flux2='8.99e-08', job_status='DONE', time_completed='2022-05-30 01:24:59.313099', photon_index_error2='0.82', photon_index2='3.40', ts='2.96', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='8.83e-06', EG='0.95', time_epoch_completed='1653899099.31', return_code='0', job_id='901326', GAL2='0.92', EG2='0.90', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='5.51e-08', ts2='4.50', photon_index='2.54' WHERE bin_id='1682' AND source_name='4FGL J2331.3-1558' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon May 30 01:24:59 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 901326: <4FGL_J2331.3-1558_daily_bin1682> in cluster <slac> Done

Job <4FGL_J2331.3-1558_daily_bin1682> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon May 30 01:10:20 2022
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon May 30 01:10:41 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon May 30 01:10:41 2022
Terminated at Mon May 30 01:25:00 2022
Results reported at Mon May 30 01:25:00 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.3-1558_daily_bin1682 352.839 -15.9777 675302401 675561601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2331.3-1558 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   691.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            880 sec.

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

