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


Performing analysis on: 4FGL_J2131.5-0916_daily_bin1691
RA = 322.891, Dec = -9.2684
tmin = 677635201, tmax = 677894401
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='310963', job_status='RUN', time_executed='2022-06-26 01:13:54.527132', time_epoch_executed='1656231234.53' WHERE source_name='4FGL J2131.5-0916' and cadence='daily' and bin_id='1691'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/310963

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/310963/ft1_4FGL_J2131.5-0916_daily_bin1691.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/310963/ft2_4FGL_J2131.5-0916_daily_bin1691.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/310963/ft1_4FGL_J2131.5-0916_daily_bin1691.fits outfile=/scratch/kocevski/310963/ft1_filteredMKT_4FGL_J2131.5-0916_daily_bin1691.fits ra=322.891 dec=-9.2684 rad=12.0 tmin=677635201.0 tmax=677894401.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.41
user 2.21
sys 0.19

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

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

Number of photons that the gtmktime cut: 696

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/310963/ft1_filtered_4FGL_J2131.5-0916_daily_bin1691.fits" evtable="EVENTS" scfile=/scratch/kocevski/310963/ft2_4FGL_J2131.5-0916_daily_bin1691.fits sctable="SC_DATA" outfile=/scratch/kocevski/310963/ltcube_677635201_677894401_4FGL_J2131.5-0916_daily_bin1691.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/310963/ft2_4FGL_J2131.5-0916_daily_bin1691.fits
.....................!
real 15.36
user 14.95
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/310963/ft1_filtered_4FGL_J2131.5-0916_daily_bin1691.fits evtable="EVENTS" scfile=/scratch/kocevski/310963/ft2_4FGL_J2131.5-0916_daily_bin1691.fits sctable="SC_DATA" expcube=/scratch/kocevski/310963/ltcube_677635201_677894401_4FGL_J2131.5-0916_daily_bin1691.fits outfile=/scratch/kocevski/310963/expmap_677635201_677894401_4FGL_J2131.5-0916_daily_bin1691.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/310963/ltcube_677635201_677894401_4FGL_J2131.5-0916_daily_bin1691.fits
.....................!
real 192.71
user 186.07
sys 6.26

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/310963/ft1_filtered_4FGL_J2131.5-0916_daily_bin1691.fits scfile=/scratch/kocevski/310963/ft2_4FGL_J2131.5-0916_daily_bin1691.fits outfile=/scratch/kocevski/310963/cmap_677635201_677894401_4FGL_J2131.5-0916_daily_bin1691.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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/310963/ft1_filtered_4FGL_J2131.5-0916_daily_bin1691.fits scfile=/scratch/kocevski/310963/ft2_4FGL_J2131.5-0916_daily_bin1691.fits outfile=/scratch/kocevski/310963/cmap_HighResolution_677635201_677894401_4FGL_J2131.5-0916_daily_bin1691.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.58
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/310963/ft1_filtered_4FGL_J2131.5-0916_daily_bin1691.fits evtable="EVENTS" scfile=/scratch/kocevski/310963/ft2_4FGL_J2131.5-0916_daily_bin1691.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/310963/Model_4FGL_J2131.5-0916_daily_bin1691.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/310963/ft1_filtered_4FGL_J2131.5-0916_daily_bin1691.fits.....................!
real 74.16
user 72.63
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/310963/ft1_filtered_4FGL_J2131.5-0916_daily_bin1691.fits', '/scratch/kocevski/310963/ft2_4FGL_J2131.5-0916_daily_bin1691.fits', expMap='/scratch/kocevski/310963/expmap_677635201_677894401_4FGL_J2131.5-0916_daily_bin1691.fits', expCube='/scratch/kocevski/310963/ltcube_677635201_677894401_4FGL_J2131.5-0916_daily_bin1691.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/310963/Model_4FGL_J2131.5-0916_daily_bin1691.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/310963/ft1_filtered_4FGL_J2131.5-0916_daily_bin1691.fits
Spacecraft file(s): /scratch/kocevski/310963/ft2_4FGL_J2131.5-0916_daily_bin1691.fits
Exposure map: /scratch/kocevski/310963/expmap_677635201_677894401_4FGL_J2131.5-0916_daily_bin1691.fits
Exposure cube: /scratch/kocevski/310963/ltcube_677635201_677894401_4FGL_J2131.5-0916_daily_bin1691.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/310963/Model_4FGL_J2131.5-0916_daily_bin1691.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) = 7815.83928011

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12434E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.689       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.740       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.355       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    50.445       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.6595       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.558       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.509       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.778       1.0000         .10000E-03   10000.    
    16 'Prefactor '    34.129       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .81717       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1049       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=   7815.833     FROM MIGRAD    STATUS=CONVERGED    340 CALLS     1702 TOTAL
                     EDM=   .10E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8734       -.12180E-07** at limit **
   2  Prefactor     .10000E-03    5.0209       -.20462E-06** at limit **
   3  Prefactor     19.670        49.986       -.39782E-04    .24872E-05
   4  Prefactor     16.740        14.576       -.38216E-06    .42218E-05
   5  Prefactor     .10000E-03    4.3852        .15881E-06** at limit **
   6  Prefactor     14.354        24.376        .59421E-06    .10329E-04
   7  Prefactor     .10000E-03    1.6638        .30661E-07** at limit **
   8  Prefactor     .10000E-03    .67147        .81946E-08** at limit **
   9  Prefactor     50.443        29.618       -.15305E-05    .23715E-04
  10  Prefactor     .10000E-03    13.833        .58291E-07** at limit **
  11  Prefactor     8.6591        20.688       -.10083E-05   -.14191E-04
  12  norm          .10000E-03    2.5900        .14038E-07** at limit **
  13  Prefactor     13.558        7.4761        .51061E-07   -.22617E-04
  14  Prefactor     13.509        11.652       -.77315E-06   -.37176E-04
  15  Prefactor     13.775        22.265       -.49746E-05   -.88655E-05
  16  Prefactor     34.128        16.866       -.11571E-05    .17544E-04
  17  Normalizat    .81722        .23714        .40525E-05   -.17221E-05
  18  Prefactor     1.1048        .12075        .70655E-06    .43853E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.6704
  Prefactor  = 16.74
  Prefactor  = 0.0001
  Prefactor  = 14.3544
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.4433
  Prefactor  = 0.0001
  Prefactor  = 8.65912
  norm       = 0.0001
  Prefactor  = 13.5579
  Prefactor  = 13.5091
  Prefactor  = 13.7753
  Prefactor  = 34.1278
  Normalizat = 0.817224
  Prefactor  = 1.10482
 **********
 **   18 **HESSE 
 **********

 FCN=   7815.833     FROM HESSE     STATUS=OK           250 CALLS     1952 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.8630        .23530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.0319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     19.670        50.035        .90264E-04   -1.4821    
   4  Prefactor     16.740        14.585        .97890E-04   -1.4889    
   5  Prefactor     .10000E-03    4.3888        .18079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.354        24.348        .10572E-03   -1.4950    
   7  Prefactor     .10000E-03    1.6729        .11135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .67852        .70586E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     50.443        29.685        .56464E-04   -1.4286    
  10  Prefactor     .10000E-03    13.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.6591        20.680        .13622E-03   -1.5119    
  12  norm          .10000E-03    2.5939        .13894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.558        7.4772        .10878E-03   -1.4971    
  14  Prefactor     13.509        11.652        .10898E-03   -1.4973    
  15  Prefactor     13.775        22.209        .10791E-03   -1.4965    
  16  Prefactor     34.128        16.918        .68594E-04   -1.4539    
  17  Normalizat    .81722        .27574        .37779E-03   -.99433    
  18  Prefactor     1.1048        .14151        .17963E-03   -.89313    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62476e-11
Minuit parameter uncertainties:
  1  2.22546e-05
  2  9.68587e-06
  3  50.1419
  4  14.5878
  5  7.80726e-06
  6  24.3648
  7  4.32916e-06
  8  3.15066e-06
  9  29.6941
  10  1.46039e-05
  11  20.6966
  12  1.66047e-07
  13  7.47771
  14  11.6538
  15  22.2224
  16  16.9208
  17  0.276215
  18  0.141563
Done.

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

Extracting fit parameters...

4FGL J2131.5-0916
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  4.329e-06  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.105e+00  1.416e-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:  8.172e-01  2.762e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/310963/likelihoodResults_677635201_677894401_4FGL_J2131.5-0916_daily_bin1691.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) = 7815.83537876
delta logL = -0.0028206677398

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7815.83255858
delta logL = -4.88110345032e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10459E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9620       1.0000          .0000       10.000    
     3 'Normalizat'    .81719       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1049       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.

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

 FCN=   7815.833     FROM MIGRAD    STATUS=FAILED        93 CALLS      244 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10689E-03    1.1778        .11462E-01** at limit **
   2  Index         1.7208        9.1394        .50000        .57946E-04
   3  Normalizat    .81722        .39745E-02    .37778E-03   -.94372E-04
   4  Prefactor     1.1048        .21813E-02    .17963E-03   -.17278E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7815.833     FROM SIMPLEX   STATUS=PROGRESS      82 CALLS      326 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10259E-03    1.1778        .27424E-03** at limit **
   2  Index         1.5643        9.1394        .58948E-01    .57946E-04
   3  Normalizat    .81717        .39745E-02    .26713E-04   -.94372E-04
   4  Prefactor     1.1048        .21813E-02    .12426E-04   -.17278E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7815.833     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      361 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10074E-03    1.7568        .12524E-01** at limit **
   2  Index         1.6060        5.2731        .50000        .25669E-04
   3  Normalizat    .81717        .47300E-02    .15111E-04   -.18858E-01
   4  Prefactor     1.1048        .25960E-02    .35927E-04   -.39469E-01
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100739
  Index      = 1.60597
  Normalizat = 0.817172
  Prefactor  = 1.1048
 **********
 **   18 **HESSE 
 **********

 FCN=   7815.833     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      390 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10074E-03    64.294        .12856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6060        8.6031        .50000       -.74614    
   3  Normalizat    .81717        .29403E-01    .30223E-05   -.99435    
   4  Prefactor     1.1048        .16136E-01    .71854E-05   -.89313    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.03273e-07
Minuit parameter uncertainties:
  1  0.0138049
  2  450.295
  3  0.0294036
  4  0.0161365
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/310963': 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) = 7815.83255109
delta logL = 6.9984826041e-06

Extracting fit parameters...

4FGL J2131.5-0916
   Spectrum: PowerLaw
287    Prefactor:  1.007e-04  1.380e-02  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  1.606e+00  4.503e+02  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.105e+00  1.614e-02  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:  8.172e-01  2.940e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 322.891 -9.268

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/310963/cmap_HighResolution_677635201_677894401_4FGL_J2131.5-0916_daily_bin1691.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.24e-03', job_status='DONE', photon_flux_upper_limit='4.33e-08', time_completed='2022-06-26 01:24:16.486518', job_id='310963', GAL2='1.10', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1656231856.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='7.00e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1691' AND source_name='4FGL J2131.5-0916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jun 26 01:24:16 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 310963: <4FGL_J2131.5-0916_daily_bin1691> in cluster <slac> Done

Job <4FGL_J2131.5-0916_daily_bin1691> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Jun 26 01:10:31 2022
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jun 26 01:12:58 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jun 26 01:12:58 2022
Terminated at Sun Jun 26 01:24:17 2022
Results reported at Sun Jun 26 01:24:17 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2131.5-0916_daily_bin1691 322.891 -9.2684 677635201 677894401 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 :                                   623.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             373.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   678 sec.
    Turnaround time :                            826 sec.

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

