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


Performing analysis on: 4FGL_J2131.5-0916_daily_bin1143
RA = 322.891, Dec = -9.2684
tmin = 535593601, tmax = 535852801
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='550293', job_status='RUN', time_executed='2021-09-26 16:55:33.379797', time_epoch_executed='1632700533.38' WHERE source_name='4FGL J2131.5-0916' and cadence='daily' and bin_id='1143'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/550293

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/550293/ft1_4FGL_J2131.5-0916_daily_bin1143.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/550293/ft2_4FGL_J2131.5-0916_daily_bin1143.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/550293/ft1_4FGL_J2131.5-0916_daily_bin1143.fits outfile=/scratch/kocevski/550293/ft1_filteredMKT_4FGL_J2131.5-0916_daily_bin1143.fits ra=322.891 dec=-9.2684 rad=12.0 tmin=535593601.0 tmax=535852801.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 5.14
user 4.79
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/550293/ft1_filtered_4FGL_J2131.5-0916_daily_bin1143.fits" evtable="EVENTS" scfile=/scratch/kocevski/550293/ft2_4FGL_J2131.5-0916_daily_bin1143.fits sctable="SC_DATA" outfile=/scratch/kocevski/550293/ltcube_535593601_535852801_4FGL_J2131.5-0916_daily_bin1143.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/550293/ft2_4FGL_J2131.5-0916_daily_bin1143.fits
.....................!
real 13.66
user 13.30
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/550293/ft1_filtered_4FGL_J2131.5-0916_daily_bin1143.fits evtable="EVENTS" scfile=/scratch/kocevski/550293/ft2_4FGL_J2131.5-0916_daily_bin1143.fits sctable="SC_DATA" expcube=/scratch/kocevski/550293/ltcube_535593601_535852801_4FGL_J2131.5-0916_daily_bin1143.fits outfile=/scratch/kocevski/550293/expmap_535593601_535852801_4FGL_J2131.5-0916_daily_bin1143.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/550293/ltcube_535593601_535852801_4FGL_J2131.5-0916_daily_bin1143.fits
.....................!
real 191.41
user 185.92
sys 5.12

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/550293/ft1_filtered_4FGL_J2131.5-0916_daily_bin1143.fits scfile=/scratch/kocevski/550293/ft2_4FGL_J2131.5-0916_daily_bin1143.fits outfile=/scratch/kocevski/550293/cmap_535593601_535852801_4FGL_J2131.5-0916_daily_bin1143.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/550293/ft1_filtered_4FGL_J2131.5-0916_daily_bin1143.fits scfile=/scratch/kocevski/550293/ft2_4FGL_J2131.5-0916_daily_bin1143.fits outfile=/scratch/kocevski/550293/cmap_HighResolution_535593601_535852801_4FGL_J2131.5-0916_daily_bin1143.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/550293/ft1_filtered_4FGL_J2131.5-0916_daily_bin1143.fits evtable="EVENTS" scfile=/scratch/kocevski/550293/ft2_4FGL_J2131.5-0916_daily_bin1143.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/550293/Model_4FGL_J2131.5-0916_daily_bin1143.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/550293/ft1_filtered_4FGL_J2131.5-0916_daily_bin1143.fits.....................!
real 69.98
user 68.59
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .64010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.2906       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15138E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .64400       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.183       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2278       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11104E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12654E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    31.014       1.0000         .10000E-03   10000.    
    11 'Prefactor '    39.103       1.0000         .10000E-03   10000.    
    12 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.4307       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.6910       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .85006       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=   7045.745     FROM MIGRAD    STATUS=CONVERGED    359 CALLS     1744 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.7251       -.60953E-05** at limit **
   2  Prefactor     3.2851        14.561        .14423E-05    .88666E-04
   3  Prefactor     .10000E-03    38.767        .40106E-06** at limit **
   4  Prefactor     .56330        14.132       -.42342E-05    .35290E-03
   5  Prefactor     13.182        12.541       -.88461E-07    .11117E-03
   6  Prefactor     .10000E-03    12.687        .25758E-06** at limit **
   7  Prefactor     3.2276        3.0837       -.17237E-06   -.40793E-03
   8  Prefactor     .10000E-03    1.6071        .67418E-06** at limit **
   9  Prefactor     .10000E-03    39.191        .57475E-07** at limit **
  10  Prefactor     31.024        29.873        .50217E-06    .13361E-03
  11  Prefactor     39.093        21.353       -.17599E-07   -.38024E-03
  12  norm          .10000E-03    2.3669       -.99885E-07** at limit **
  13  Prefactor     .10000E-03    3.7766       -.13775E-06** at limit **
  14  Prefactor     .10000E-03    9.1837       -.52132E-06** at limit **
  15  Prefactor     .10000E-03    7.6509        .24041E-06** at limit **
  16  Prefactor     8.4215        10.750        .47775E-06    .14009E-03
  17  Normalizat    1.6908        .24484       -.11550E-05   -.61052E-03
  18  Prefactor     .85033        .12692       -.66219E-06   -.82732E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.28506
  Prefactor  = 0.0001
  Prefactor  = 0.563295
  Prefactor  = 13.1822
  Prefactor  = 0.0001
  Prefactor  = 3.22764
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.0239
  Prefactor  = 39.0933
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 8.42148
  Normalizat = 1.69077
  Prefactor  = 0.850328
 **********
 **   18 **HESSE 
 **********

 FCN=   7045.745     FROM HESSE     STATUS=OK           242 CALLS     1986 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.1073        .29800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.2851        14.780        .22320E-03   -1.5345    
   3  Prefactor     .10000E-03    38.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .56330        73.800        .49412E-02   -1.5558    
   5  Prefactor     13.182        12.679        .11032E-03   -1.4982    
   6  Prefactor     .10000E-03    12.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.2276        3.0960        .14068E-03   -1.5349    
   8  Prefactor     .10000E-03    3.0015        .20532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    39.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     31.024        29.923        .71947E-04   -1.4593    
  11  Prefactor     39.093        21.585        .64097E-04   -1.4457    
  12  norm          .10000E-03    2.3688        .12613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.8072        .15924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.2718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.6927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.4215        10.790        .13806E-03   -1.5127    
  17  Normalizat    1.6908        .29983        .29824E-03   -.72550    
  18  Prefactor     .85033        .15491        .21239E-03   -.97899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.23035e-09
Minuit parameter uncertainties:
  1  5.93056e-05
  2  13.9417
  3  0.000252323
  4  12.9103
  5  12.6819
  6  8.10402e-05
  7  3.09612
  8  5.23863e-05
  9  1.955e-06
  10  29.9378
  11  21.5895
  12  8.06669e-06
  13  1.00138e-05
  14  0.000155372
  15  9.64157e-05
  16  10.7927
  17  0.300151
  18  0.154987
Done.

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

Extracting fit parameters...

4FGL J2131.5-0916
   Spectrum: PowerLaw
287    Prefactor:  3.228e+00  3.096e+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:  8.503e-01  1.550e-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:  1.691e+00  3.002e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.21
Ra Dec: 322.891 -9.268
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 1.73e-08 +/- 1.66e-08
Energy Flux (Fixed Index): 1.23e-05 +/- 1.18e-05

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) = 7044.29214633
delta logL = 1.45265410548

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7044.28271855
delta logL = 1.46208188937

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8057       1.0000         .10000E-03   10000.    
     2 'Index     '    .90303       1.0000          .0000       10.000    
     3 'Normalizat'    1.6979       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85067       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=   7044.283     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      205 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8078        2.8045        .60715E-02   -.23635E-03
   2  Index         .90193        .46495        .30493       -.51093E-04
   3  Normalizat    1.6975        .23779        .67315E-01   -.96676E-05
   4  Prefactor     .85077        .12644        .44373E-01    .21202E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.80779
  Index      = 0.901932
  Normalizat = 1.69746
  Prefactor  = 0.85077
 **********
 **   18 **HESSE 
 **********

 FCN=   7044.283     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .84E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8078        4.0217        .13658E-03   -1.5373    
   2  Index         .90193        .66989        .13299E-02   -.96074    
   3  Normalizat    1.6975        .28828        .29775E-03   -.72371    
   4  Prefactor     .85077        .15337        .21234E-03   -.97883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.4098e-12
Minuit parameter uncertainties:
  1  4.02204
  2  0.676154
  3  0.288569
  4  0.153449
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/550293': 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) = 7044.28271268
delta logL = 1.46208775231

Extracting fit parameters...

4FGL J2131.5-0916
   Spectrum: PowerLaw
287    Prefactor:  2.808e+00  4.022e+00  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  9.019e-01  6.762e-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:  8.508e-01  1.534e-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:  1.697e+00  2.886e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.13
Ra Dec: 322.891 -9.268
Photon Index (Free Index): 0.90 +/- 0.68
Photon Flux (Free Index): 4.77e-09 +/- 5.47e-09
Energy Flux (Free Index): 8.66e-05 +/- 1.16e-04

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/550293/cmap_HighResolution_535593601_535852801_4FGL_J2131.5-0916_daily_bin1143.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.73e-08', energy_flux2='8.66e-05', photon_flux_error='1.66e-08', dlogl='1.46e+00', energy_flux='1.23e-05', photon_flux2='4.77e-09', job_status='DONE', time_completed='2021-09-26 17:05:17.676071', photon_index_error2='0.68', photon_index2='0.90', ts='7.21', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='1.16e-04', EG='1.69', time_epoch_completed='1632701117.68', return_code='0', job_id='550293', GAL2='0.85', EG2='1.70', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='5.47e-09', ts2='10.13', photon_index='1.99' WHERE bin_id='1143' AND source_name='4FGL J2131.5-0916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 17:05:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 550293: <4FGL_J2131.5-0916_daily_bin1143> in cluster <slac> Done

Job <4FGL_J2131.5-0916_daily_bin1143> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 16:50:35 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 16:53:01 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:53:01 2021
Terminated at Sun Sep 26 17:05:18 2021
Results reported at Sun Sep 26 17:05:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2131.5-0916_daily_bin1143 322.891 -9.2684 535593601 535852801 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 :                                   561.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             288.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            883 sec.

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

