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


Performing analysis on: 4FGL_J2131.5-0916_daily_bin1253
RA = 322.891, Dec = -9.2684
tmin = 564105601, tmax = 564364801
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='551603', job_status='RUN', time_executed='2021-09-26 16:58:08.351815', time_epoch_executed='1632700688.35' WHERE source_name='4FGL J2131.5-0916' and cadence='daily' and bin_id='1253'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/551603

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/551603/ft1_4FGL_J2131.5-0916_daily_bin1253.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/551603/ft2_4FGL_J2131.5-0916_daily_bin1253.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/551603/ft1_4FGL_J2131.5-0916_daily_bin1253.fits outfile=/scratch/kocevski/551603/ft1_filteredMKT_4FGL_J2131.5-0916_daily_bin1253.fits ra=322.891 dec=-9.2684 rad=12.0 tmin=564105601.0 tmax=564364801.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.28
user 3.06
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/551603/ft1_filtered_4FGL_J2131.5-0916_daily_bin1253.fits" evtable="EVENTS" scfile=/scratch/kocevski/551603/ft2_4FGL_J2131.5-0916_daily_bin1253.fits sctable="SC_DATA" outfile=/scratch/kocevski/551603/ltcube_564105601_564364801_4FGL_J2131.5-0916_daily_bin1253.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/551603/ft2_4FGL_J2131.5-0916_daily_bin1253.fits
.....................!
real 12.96
user 12.59
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/551603/ft1_filtered_4FGL_J2131.5-0916_daily_bin1253.fits evtable="EVENTS" scfile=/scratch/kocevski/551603/ft2_4FGL_J2131.5-0916_daily_bin1253.fits sctable="SC_DATA" expcube=/scratch/kocevski/551603/ltcube_564105601_564364801_4FGL_J2131.5-0916_daily_bin1253.fits outfile=/scratch/kocevski/551603/expmap_564105601_564364801_4FGL_J2131.5-0916_daily_bin1253.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/551603/ltcube_564105601_564364801_4FGL_J2131.5-0916_daily_bin1253.fits
.....................!
real 190.39
user 185.75
sys 4.24

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/551603/ft1_filtered_4FGL_J2131.5-0916_daily_bin1253.fits scfile=/scratch/kocevski/551603/ft2_4FGL_J2131.5-0916_daily_bin1253.fits outfile=/scratch/kocevski/551603/cmap_564105601_564364801_4FGL_J2131.5-0916_daily_bin1253.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/551603/ft1_filtered_4FGL_J2131.5-0916_daily_bin1253.fits scfile=/scratch/kocevski/551603/ft2_4FGL_J2131.5-0916_daily_bin1253.fits outfile=/scratch/kocevski/551603/cmap_HighResolution_564105601_564364801_4FGL_J2131.5-0916_daily_bin1253.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/551603/ft1_filtered_4FGL_J2131.5-0916_daily_bin1253.fits evtable="EVENTS" scfile=/scratch/kocevski/551603/ft2_4FGL_J2131.5-0916_daily_bin1253.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/551603/Model_4FGL_J2131.5-0916_daily_bin1253.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/551603/ft1_filtered_4FGL_J2131.5-0916_daily_bin1253.fits.....................!
real 80.34
user 78.86
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1175       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.119       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .66592E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.182       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.446       1.0000         .10000E-03   10000.    
    12 'norm      '    4.7652       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.5867       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .76250       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1977       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=   8651.826     FROM MIGRAD    STATUS=CONVERGED    352 CALLS     1521 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1174        4.9505       -.15649E-05   -.32765E-03
   2  Prefactor     .10000E-03    10.342       -.12336E-05** at limit **
   3  Prefactor     .10000E-03    46.419       -.22163E-05** at limit **
   4  Prefactor     10.115        14.107       -.15336E-06   -.56418E-04
   5  Prefactor     .10000E-03    5.7174        .75707E-07** at limit **
   6  Prefactor     .10000E-03    12.195        .48372E-05** at limit **
   7  Prefactor     .10000E-03    3.3527        .24508E-06** at limit **
   8  Prefactor     .10040E-03    .65458        .36393E-06** at limit **
   9  Prefactor     29.175        25.790       -.38322E-05    .95043E-04
  10  Prefactor     .10000E-03    22.216       -.61749E-05** at limit **
  11  Prefactor     15.446        13.636       -.19163E-06   -.20031E-04
  12  norm          4.7650        4.7104       -.56757E-06    .28560E-03
  13  Prefactor     .10000E-03    1.5128        .27242E-06** at limit **
  14  Prefactor     .10000E-03    12.646       -.40027E-05** at limit **
  15  Prefactor     .10000E-03    3.5718        .42032E-06** at limit **
  16  Prefactor     1.5823        13.750       -.28701E-05   -.32884E-03
  17  Normalizat    .76239        .20355        .26367E-05   -.11160E-03
  18  Prefactor     1.1978        .11124       -.21630E-06    .26513E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.1174
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1152
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100405
  Prefactor  = 29.1747
  Prefactor  = 0.000100001
  Prefactor  = 15.4464
  norm       = 4.76504
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.58226
  Normalizat = 0.762391
  Prefactor  = 1.19781
 **********
 **   18 **HESSE 
 **********

 FCN=   8651.826     FROM HESSE     STATUS=OK           252 CALLS     1773 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1174        5.1021        .19866E-03   -1.5302    
   2  Prefactor     .10000E-03    10.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    46.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.115        14.105        .12597E-03   -1.5072    
   5  Prefactor     .10000E-03    5.7308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.3993        .16619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10040E-03    1.5204        .26277E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     29.175        25.670        .74165E-04   -1.4627    
  10  Prefactor     .10000E-03    21.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.446        13.654        .10191E-03   -1.4922    
  12  norm          4.7650        4.6971        .18431E-03   -1.5271    
  13  Prefactor     .10000E-03    1.5166        .11166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.843        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.5725        .17165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.5823        15.336        .33698E-03   -1.5456    
  17  Normalizat    .76239        .23254        .36769E-03   -1.0148    
  18  Prefactor     1.1978        .12826        .17010E-03   -.86399    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91538e-09
Minuit parameter uncertainties:
  1  5.10265
  2  3.68041e-05
  3  0.000190026
  4  14.1099
  5  1.17546e-05
  6  0.000203119
  7  1.5785e-05
  8  0.00156907
  9  25.6801
  10  0.000323086
  11  13.6568
  12  4.69748
  13  5.63637e-06
  14  0.000191106
  15  9.21227e-06
  16  9.85497
  17  0.232839
  18  0.128297
Done.

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

Extracting fit parameters...

4FGL J2131.5-0916
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  1.578e-05  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.198e+00  1.283e-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.624e-01  2.328e-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: 5.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/551603/likelihoodResults_564105601_564364801_4FGL_J2131.5-0916_daily_bin1253.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) = 8651.82711991
delta logL = -0.00140174032822

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8651.82571823
delta logL = -5.31417754246e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9927       1.0000          .0000       10.000    
     3 'Normalizat'    .76239       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1978       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=   8651.826     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      203 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .52438        .90712E-02** at limit **
   2  Index         1.9966        7.5398        .50000       -.92638E-05
   3  Normalizat    .76239        .18871E-02    .83035E-01    .95430E-05
   4  Prefactor     1.1978        .10752E-02    .34682E-01   -.59736E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.99659
  Normalizat = 0.762393
  Prefactor  = 1.19781
 **********
 **   18 **HESSE 
 **********

 FCN=   8651.826     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      236 TOTAL
                     EDM=   .35E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.796        .16626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9966        5.8523        .50000       -.64435    
   3  Normalizat    .76239        .13203E-01    .36769E-03   -1.0148    
   4  Prefactor     1.1978        .75405E-02    .17010E-03   -.86399    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.53522e-07
Minuit parameter uncertainties:
  1  5.13399e-06
  2  256.243
  3  0.0132027
  4  0.00754054
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/551603': 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) = 8651.82571816
delta logL = 1.79043126991e-08

Extracting fit parameters...

4FGL J2131.5-0916
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  5.134e-06  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  1.997e+00  2.562e+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.198e+00  7.541e-03  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.624e-01  1.320e-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/551603/cmap_HighResolution_564105601_564364801_4FGL_J2131.5-0916_daily_bin1253.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.29e-03', job_status='DONE', photon_flux_upper_limit='5.72e-08', time_completed='2021-09-26 17:08:51.448351', job_id='551603', GAL2='1.20', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1632701331.45', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='1.79e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1253' AND source_name='4FGL J2131.5-0916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 17:08:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 551603: <4FGL_J2131.5-0916_daily_bin1253> in cluster <slac> Done

Job <4FGL_J2131.5-0916_daily_bin1253> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 16:55:19 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 16:55:55 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:55:55 2021
Terminated at Sun Sep 26 17:08:51 2021
Results reported at Sun Sep 26 17:08:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2131.5-0916_daily_bin1253 322.891 -9.2684 564105601 564364801 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 :                                   635.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            812 sec.

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

