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


Performing analysis on: 4FGL_J2131.5-0916_daily_bin1686
RA = 322.891, Dec = -9.2684
tmin = 676339201, tmax = 676598401
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='520527', job_status='RUN', time_executed='2022-06-11 00:43:32.572733', time_epoch_executed='1654933412.57' WHERE source_name='4FGL J2131.5-0916' and cadence='daily' and bin_id='1686'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/520527

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/520527/ft1_4FGL_J2131.5-0916_daily_bin1686.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/520527/ft2_4FGL_J2131.5-0916_daily_bin1686.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/520527/ft1_4FGL_J2131.5-0916_daily_bin1686.fits outfile=/scratch/kocevski/520527/ft1_filteredMKT_4FGL_J2131.5-0916_daily_bin1686.fits ra=322.891 dec=-9.2684 rad=12.0 tmin=676339201.0 tmax=676598401.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 2.83
user 2.58
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/520527/ft2_4FGL_J2131.5-0916_daily_bin1686.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/520527/ft2_4FGL_J2131.5-0916_daily_bin1686.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/520527/ft1_filteredMKT_4FGL_J2131.5-0916_daily_bin1686.fits evtable="EVENTS" outfile="/scratch/kocevski/520527/ft1_filtered_4FGL_J2131.5-0916_daily_bin1686.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.34
sys 0.17

Number of photons that the gtmktime cut: 704

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/520527/ft1_filtered_4FGL_J2131.5-0916_daily_bin1686.fits" evtable="EVENTS" scfile=/scratch/kocevski/520527/ft2_4FGL_J2131.5-0916_daily_bin1686.fits sctable="SC_DATA" outfile=/scratch/kocevski/520527/ltcube_676339201_676598401_4FGL_J2131.5-0916_daily_bin1686.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/520527/ft2_4FGL_J2131.5-0916_daily_bin1686.fits
.....................!
real 15.96
user 15.57
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/520527/ft1_filtered_4FGL_J2131.5-0916_daily_bin1686.fits evtable="EVENTS" scfile=/scratch/kocevski/520527/ft2_4FGL_J2131.5-0916_daily_bin1686.fits sctable="SC_DATA" expcube=/scratch/kocevski/520527/ltcube_676339201_676598401_4FGL_J2131.5-0916_daily_bin1686.fits outfile=/scratch/kocevski/520527/expmap_676339201_676598401_4FGL_J2131.5-0916_daily_bin1686.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/520527/ltcube_676339201_676598401_4FGL_J2131.5-0916_daily_bin1686.fits
.....................!
real 191.45
user 186.14
sys 4.70

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

Setting source of interest to:
4FGL J2131.5-0916 @ 322.891 -9.2684

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/520527/ft1_filtered_4FGL_J2131.5-0916_daily_bin1686.fits scfile=/scratch/kocevski/520527/ft2_4FGL_J2131.5-0916_daily_bin1686.fits outfile=/scratch/kocevski/520527/cmap_676339201_676598401_4FGL_J2131.5-0916_daily_bin1686.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=322.891 yref=-9.2684 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/520527/ft1_filtered_4FGL_J2131.5-0916_daily_bin1686.fits scfile=/scratch/kocevski/520527/ft2_4FGL_J2131.5-0916_daily_bin1686.fits outfile=/scratch/kocevski/520527/cmap_HighResolution_676339201_676598401_4FGL_J2131.5-0916_daily_bin1686.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=322.891 yref=-9.2684 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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/520527/ft1_filtered_4FGL_J2131.5-0916_daily_bin1686.fits evtable="EVENTS" scfile=/scratch/kocevski/520527/ft2_4FGL_J2131.5-0916_daily_bin1686.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/520527/Model_4FGL_J2131.5-0916_daily_bin1686.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/520527/ft1_filtered_4FGL_J2131.5-0916_daily_bin1686.fits.....................!
real 70.91
user 69.48
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/520527/ft1_filtered_4FGL_J2131.5-0916_daily_bin1686.fits', '/scratch/kocevski/520527/ft2_4FGL_J2131.5-0916_daily_bin1686.fits', expMap='/scratch/kocevski/520527/expmap_676339201_676598401_4FGL_J2131.5-0916_daily_bin1686.fits', expCube='/scratch/kocevski/520527/ltcube_676339201_676598401_4FGL_J2131.5-0916_daily_bin1686.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/520527/Model_4FGL_J2131.5-0916_daily_bin1686.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2131.5-0916'

4FGL J2131.5-0916
   Spectrum: PowerLaw
287    Prefactor:  1.196e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  1.989e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  2.343e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/520527/ft1_filtered_4FGL_J2131.5-0916_daily_bin1686.fits
Spacecraft file(s): /scratch/kocevski/520527/ft2_4FGL_J2131.5-0916_daily_bin1686.fits
Exposure map: /scratch/kocevski/520527/expmap_676339201_676598401_4FGL_J2131.5-0916_daily_bin1686.fits
Exposure cube: /scratch/kocevski/520527/ltcube_676339201_676598401_4FGL_J2131.5-0916_daily_bin1686.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/520527/Model_4FGL_J2131.5-0916_daily_bin1686.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) = 7634.15473212

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3276       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.874       1.0000         .10000E-03   10000.    
     3 'Prefactor '    56.072       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12090E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.233       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7835       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .18375E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    51.736       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.072       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.7568       1.0000         .10000E-03   10000.    
    12 'norm      '    2.5975       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    35.925       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .78892       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0875       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7634.153     FROM MIGRAD    STATUS=CONVERGED    375 CALLS     2113 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3352        4.9676       -.21682E-05   -.11263E-02
   2  Prefactor     16.872        16.709       -.79882E-06    .83270E-04
   3  Prefactor     56.060        61.947       -.80167E-05    .15934E-03
   4  Prefactor     .10000E-03    14.479        .33948E-07** at limit **
   5  Prefactor     .10000E-03    5.1807        .92960E-07** at limit **
   6  Prefactor     25.201        36.359        .14698E-04    .70890E-04
   7  Prefactor     1.7836        2.0699        .44921E-07    .17957E-03
   8  Prefactor     .10000E-03    1.1014       -.11541E-05** at limit **
   9  Prefactor     51.714        35.668        .50847E-05    .12876E-03
  10  Prefactor     10.000        38.905       -.21504E-04    .22743E-03
  11  Prefactor     7.7580        12.322        .11573E-05   -.13334E-03
  12  norm          2.5974        3.3860       -.52309E-07    .49065E-05
  13  Prefactor     .10000E-03    3.5966        .15796E-07** at limit **
  14  Prefactor     .10000E-03    7.1202        .16283E-07** at limit **
  15  Prefactor     .10000E-03    3.9411       -.31542E-07** at limit **
  16  Prefactor     35.927        12.151        .68593E-06   -.17629E-03
  17  Normalizat    .78877        .21463       -.18469E-05    .32024E-03
  18  Prefactor     1.0876        .11750        .83565E-06    .39083E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.33525
  Prefactor  = 16.8721
  Prefactor  = 56.0597
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.2009
  Prefactor  = 1.78361
  Prefactor  = 0.000100003
  Prefactor  = 51.7144
  Prefactor  = 10.0005
  Prefactor  = 7.75795
  norm       = 2.59744
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.927
  Normalizat = 0.788769
  Prefactor  = 1.08756
 **********
 **   18 **HESSE 
 **********

 FCN=   7634.153     FROM HESSE     STATUS=OK           246 CALLS     2359 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3352        5.1760        .37595E-03   -1.5477    
   2  Prefactor     16.872        16.691        .97501E-04   -1.4886    
   3  Prefactor     56.060        61.495        .53571E-04   -1.4209    
   4  Prefactor     .10000E-03    14.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    42.976        .38202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     25.201        35.627        .79746E-04   -1.4704    
   7  Prefactor     1.7836        2.0695        .13204E-03   -1.5441    
   8  Prefactor     .10000E-03    9.6907        .16296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     51.714        35.186        .55758E-04   -1.4268    
  10  Prefactor     10.000        37.616        .12626E-03   -1.5075    
  11  Prefactor     7.7580        12.313        .14398E-03   -1.5151    
  12  norm          2.5974        3.3784        .17899E-03   -1.5386    
  13  Prefactor     .10000E-03    3.6718        .16164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.2114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.9452        .16939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     35.927        12.153        .66863E-04   -1.4508    
  17  Normalizat    .78877        .24884        .35090E-03   -1.0049    
  18  Prefactor     1.0876        .13831        .17500E-03   -.89865    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98521e-09
Minuit parameter uncertainties:
  1  5.17773
  2  16.6953
  3  61.5649
  4  3.68817e-06
  5  0.000203385
  6  35.6573
  7  2.06956
  8  0.000330517
  9  35.2006
  10  37.7053
  11  12.3171
  12  3.37868
  13  3.86107e-06
  14  6.97359e-06
  15  2.37502e-06
  16  12.1535
  17  0.249203
  18  0.138358
Done.

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

Extracting fit parameters...

4FGL J2131.5-0916
   Spectrum: PowerLaw
287    Prefactor:  1.784e+00  2.070e+00  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  1.989e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  2.343e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  1.088e+00  1.384e-01  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  7.888e-01  2.492e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.17
Ra Dec: 322.891 -9.268
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 9.55e-09 +/- 1.11e-08
Energy Flux (Fixed Index): 6.79e-06 +/- 7.88e-06

TS (Fixed Index): 2.17
Ra Dec: 322.891 -9.268
Photon Flux Upper Limit: 4.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/520527/likelihoodResults_676339201_676598401_4FGL_J2131.5-0916_daily_bin1686.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) = 7632.85668516
delta logL = 1.29644090273

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7632.84271995
delta logL = 1.31040611185

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7632.843     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      202 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2165        2.3246        .69105E-02   -.35759E-03
   2  Index         .93373        .48981        .32895       -.34443E-04
   3  Normalizat    .79436        .20050        .78975E-01    .31383E-04
   4  Prefactor     1.0861        .11631        .38140E-01   -.35927E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.21654
  Index      = 0.933726
  Normalizat = 0.794364
  Prefactor  = 1.08612
 **********
 **   18 **HESSE 
 **********

 FCN=   7632.843     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2165        2.7838        .13086E-03   -1.5410    
   2  Index         .93373        .59764        .14169E-01   -.94972    
   3  Normalizat    .79436        .23450        .34962E-03   -1.0028    
   4  Prefactor     1.0861        .13638        .17506E-03   -.89912    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.76107e-10
Minuit parameter uncertainties:
  1  2.78392
  2  0.601922
  3  0.2348
  4  0.136427
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/520527': 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) = 7632.84271951
delta logL = 1.31040655278

Extracting fit parameters...

4FGL J2131.5-0916
   Spectrum: PowerLaw
287    Prefactor:  2.217e+00  2.784e+00  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  9.337e-01  6.019e-01  0.000e+00  1.000e+01 (-1.000e+00)
289        Scale:  2.343e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  1.086e+00  1.364e-01  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  7.944e-01  2.348e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.79
Ra Dec: 322.891 -9.268
Photon Index (Free Index): 0.93 +/- 0.60
Photon Flux (Free Index): 3.69e-09 +/- 4.06e-09
Energy Flux (Free Index): 6.24e-05 +/- 8.93e-05

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/520527/cmap_HighResolution_676339201_676598401_4FGL_J2131.5-0916_daily_bin1686.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.69e-03', comment='SUCCESS', photon_flux='9.55e-09', energy_flux2='6.24e-05', photon_flux_error='1.11e-08', dlogl='1.31e+00', energy_flux='6.79e-06', photon_flux2='3.69e-09', job_status='DONE', time_completed='2022-06-11 00:54:23.005677', photon_index_error2='0.60', photon_index2='0.93', ts='2.17', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='4.93e-08', energy_flux_error2='8.93e-05', EG='0.79', time_epoch_completed='1654934063.01', return_code='0', job_id='520527', GAL2='1.09', EG2='0.79', return_code2='0', energy_flux_error='7.88e-06', photon_flux_error2='4.06e-09', ts2='4.79', photon_index='1.99' WHERE bin_id='1686' AND source_name='4FGL J2131.5-0916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jun 11 00:54:23 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 520527: <4FGL_J2131.5-0916_daily_bin1686> in cluster <slac> Done

Job <4FGL_J2131.5-0916_daily_bin1686> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Jun 11 00:40:30 2022
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jun 11 00:43:00 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jun 11 00:43:00 2022
Terminated at Sat Jun 11 00:54:23 2022
Results reported at Sat Jun 11 00:54:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2131.5-0916_daily_bin1686 322.891 -9.2684 676339201 676598401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2131.5-0916 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   651.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             379.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   683 sec.
    Turnaround time :                            833 sec.

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

