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


Performing analysis on: 4FGL_J2131.5-0916_daily_bin1075
RA = 322.891, Dec = -9.2684
tmin = 517968001, tmax = 518227201
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='550191', job_status='RUN', time_executed='2021-09-26 16:56:06.895287', time_epoch_executed='1632700566.9' WHERE source_name='4FGL J2131.5-0916' and cadence='daily' and bin_id='1075'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/550191

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/550191/ft1_4FGL_J2131.5-0916_daily_bin1075.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/550191/ft2_4FGL_J2131.5-0916_daily_bin1075.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/550191/ft1_4FGL_J2131.5-0916_daily_bin1075.fits outfile=/scratch/kocevski/550191/ft1_filteredMKT_4FGL_J2131.5-0916_daily_bin1075.fits ra=322.891 dec=-9.2684 rad=12.0 tmin=517968001.0 tmax=518227201.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.84
user 3.55
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/550191/ft1_filtered_4FGL_J2131.5-0916_daily_bin1075.fits" evtable="EVENTS" scfile=/scratch/kocevski/550191/ft2_4FGL_J2131.5-0916_daily_bin1075.fits sctable="SC_DATA" outfile=/scratch/kocevski/550191/ltcube_517968001_518227201_4FGL_J2131.5-0916_daily_bin1075.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/550191/ft2_4FGL_J2131.5-0916_daily_bin1075.fits
.....................!
real 17.21
user 16.80
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/550191/ft1_filtered_4FGL_J2131.5-0916_daily_bin1075.fits evtable="EVENTS" scfile=/scratch/kocevski/550191/ft2_4FGL_J2131.5-0916_daily_bin1075.fits sctable="SC_DATA" expcube=/scratch/kocevski/550191/ltcube_517968001_518227201_4FGL_J2131.5-0916_daily_bin1075.fits outfile=/scratch/kocevski/550191/expmap_517968001_518227201_4FGL_J2131.5-0916_daily_bin1075.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/550191/ltcube_517968001_518227201_4FGL_J2131.5-0916_daily_bin1075.fits
.....................!
real 192.21
user 185.95
sys 5.36

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/550191/ft1_filtered_4FGL_J2131.5-0916_daily_bin1075.fits scfile=/scratch/kocevski/550191/ft2_4FGL_J2131.5-0916_daily_bin1075.fits outfile=/scratch/kocevski/550191/cmap_517968001_518227201_4FGL_J2131.5-0916_daily_bin1075.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.54
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/550191/ft1_filtered_4FGL_J2131.5-0916_daily_bin1075.fits scfile=/scratch/kocevski/550191/ft2_4FGL_J2131.5-0916_daily_bin1075.fits outfile=/scratch/kocevski/550191/cmap_HighResolution_517968001_518227201_4FGL_J2131.5-0916_daily_bin1075.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/550191/ft1_filtered_4FGL_J2131.5-0916_daily_bin1075.fits evtable="EVENTS" scfile=/scratch/kocevski/550191/ft2_4FGL_J2131.5-0916_daily_bin1075.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/550191/Model_4FGL_J2131.5-0916_daily_bin1075.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/550191/ft1_filtered_4FGL_J2131.5-0916_daily_bin1075.fits.....................!
real 63.74
user 62.05
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10586E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.179       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.1793       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .56826E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4956       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.6681       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    58.205       1.0000         .10000E-03   10000.    
    12 'norm      '    5.8128       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4808       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.722       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.5495       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .54913       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.2544       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=   6773.080     FROM MIGRAD    STATUS=CONVERGED    372 CALLS     1541 TOTAL
                     EDM=   .21E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7195       -.57348E-07** at limit **
   2  Prefactor     .10000E-03    10.973        .11169E-06** at limit **
   3  Prefactor     .10000E-03    13.690        .93408E-06** at limit **
   4  Prefactor     11.170        12.932        .90027E-06   -.69896E-05
   5  Prefactor     8.1800        12.900        .10858E-06   -.12283E-04
   6  Prefactor     .10000E-03    12.801       -.59366E-06** at limit **
   7  Prefactor     .11353        4.2518        .14167E-06   -.12378E-03
   8  Prefactor     1.4955        1.3914        .11869E-06    .15837E-03
   9  Prefactor     6.6563        37.269       -.47349E-05   -.36053E-05
  10  Prefactor     .10000E-03    12.945       -.43586E-06** at limit **
  11  Prefactor     58.206        21.837       -.13890E-06   -.37273E-05
  12  norm          5.8131        5.3913       -.24008E-06    .14874E-05
  13  Prefactor     4.4807        6.8701        .17928E-05   -.86568E-05
  14  Prefactor     .10000E-03    5.2845        .31130E-07** at limit **
  15  Prefactor     25.728        22.160       -.99106E-06   -.12986E-05
  16  Prefactor     8.5539        13.051       -.33352E-06    .11192E-06
  17  Normalizat    .54927        .26144       -.64693E-07    .17013E-04
  18  Prefactor     1.2541        .13835        .11407E-06    .76209E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1703
  Prefactor  = 8.17999
  Prefactor  = 0.0001
  Prefactor  = 0.113529
  Prefactor  = 1.4955
  Prefactor  = 6.65633
  Prefactor  = 0.0001
  Prefactor  = 58.2059
  norm       = 5.81311
  Prefactor  = 4.48067
  Prefactor  = 0.0001
  Prefactor  = 25.7284
  Prefactor  = 8.55388
  Normalizat = 0.549269
  Prefactor  = 1.25407
 **********
 **   18 **HESSE 
 **********

 FCN=   6773.080     FROM HESSE     STATUS=OK           254 CALLS     1795 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.0237        .30652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.170        12.905        .11982E-03   -1.5039    
   5  Prefactor     8.1800        12.868        .14018E-03   -1.5136    
   6  Prefactor     .10000E-03    12.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11353        40.387        .32475E-02   -1.5641    
   8  Prefactor     1.4955        1.3978        .89906E-04   -1.5463    
   9  Prefactor     6.6563        37.244        .15540E-03   -1.5192    
  10  Prefactor     .10000E-03    12.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     58.206        21.820        .52585E-04   -1.4181    
  12  norm          5.8131        5.3942        .16658E-03   -1.5226    
  13  Prefactor     4.4807        6.8779        .95107E-03   -1.5285    
  14  Prefactor     .10000E-03    5.3357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.728        22.137        .78985E-04   -1.4693    
  16  Prefactor     8.5539        13.031        .13710E-03   -1.5123    
  17  Normalizat    .54927        .28040        .43750E-03   -1.1018    
  18  Prefactor     1.2541        .15111        .16889E-03   -.84683    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.88978e-08
Minuit parameter uncertainties:
  1  9.13565e-06
  2  1.79766e-05
  3  2.9774e-06
  4  12.9085
  5  12.8719
  6  1.18538e-05
  7  4.28357
  8  1.39784
  9  31.5203
  10  1.68573e-06
  11  21.8232
  12  5.3946
  13  6.87912
  14  3.32607e-06
  15  22.1439
  16  13.0357
  17  0.281125
  18  0.151161
Done.

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

Extracting fit parameters...

4FGL J2131.5-0916
   Spectrum: PowerLaw
287    Prefactor:  1.135e-01  4.284e+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.254e+00  1.512e-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:  5.493e-01  2.811e-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: 7.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/550191/likelihoodResults_517968001_518227201_4FGL_J2131.5-0916_daily_bin1075.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) = 6773.07949201
delta logL = 0.000682386941662

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6773.07946177
delta logL = 0.000712625886081

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11354       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1592       1.0000          .0000       10.000    
     3 'Normalizat'    .54930       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2540       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=   6773.079     FROM MIGRAD    STATUS=CONVERGED     74 CALLS      249 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16929        2.7020        .67430E-01    .44552E-03
   2  Index         2.1467        .46654        .50000        .96886E-05
   3  Normalizat    .54905        .60638E-02    .98740E-01    .17480E-04
   4  Prefactor     1.2539        .34338E-02    .33465E-01   -.77323E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.169285
  Index      = 2.14674
  Normalizat = 0.549054
  Prefactor  = 1.25392
 **********
 **   18 **HESSE 
 **********

 FCN=   6773.079     FROM HESSE     STATUS=OK            35 CALLS      284 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16929        28.805        .23961E-02   -1.5626    
   2  Index         2.1467        6.0628        .82988E-02   -.60730    
   3  Normalizat    .54905        .26084        .43759E-03   -1.1019    
   4  Prefactor     1.2539        .14891        .16889E-03   -.84688    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72403e-08
Minuit parameter uncertainties:
  1  4.41734
  2  4.33451
  3  0.26142
  4  0.148955
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/550191': 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) = 6773.07934085
delta logL = 0.000833544553643

Extracting fit parameters...

4FGL J2131.5-0916
   Spectrum: PowerLaw
287    Prefactor:  1.693e-01  4.417e+00  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.147e+00  4.335e+00  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.254e+00  1.490e-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:  5.491e-01  2.614e-01  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 -2.355e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.614e-03 [aplpy.core]
Saving /scratch/kocevski/550191/cmap_HighResolution_517968001_518227201_4FGL_J2131.5-0916_daily_bin1075.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.41e-03', job_status='DONE', photon_flux_upper_limit='7.22e-08', time_completed='2021-09-26 17:06:00.890518', job_id='550191', GAL2='1.25', fit_tolerance='1e-08', EG2='0.55', EG='0.55', time_epoch_completed='1632701160.89', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='8.34e-04', ts2='0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1075' AND source_name='4FGL J2131.5-0916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 17:06:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 550191: <4FGL_J2131.5-0916_daily_bin1075> in cluster <slac> Done

Job <4FGL_J2131.5-0916_daily_bin1075> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 16:50:27 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 16:52:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 16:52:25 2021
Terminated at Sun Sep 26 17:06:01 2021
Results reported at Sun Sep 26 17:06:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2131.5-0916_daily_bin1075 322.891 -9.2684 517968001 518227201 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 :                                   572.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            934 sec.

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

