/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 4 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_bin1412
RA = 322.891, Dec = -9.2684
tmin = 605318401, tmax = 605577601
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='551843', job_status='RUN', time_executed='2021-09-26 16:57:24.249591', time_epoch_executed='1632700644.25' WHERE source_name='4FGL J2131.5-0916' and cadence='daily' and bin_id='1412'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/551843

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/551843/ft1_4FGL_J2131.5-0916_daily_bin1412.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/551843/ft2_4FGL_J2131.5-0916_daily_bin1412.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/551843/ft1_4FGL_J2131.5-0916_daily_bin1412.fits outfile=/scratch/kocevski/551843/ft1_filteredMKT_4FGL_J2131.5-0916_daily_bin1412.fits ra=322.891 dec=-9.2684 rad=12.0 tmin=605318401.0 tmax=605577601.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.62
user 5.34
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/551843/ft1_filtered_4FGL_J2131.5-0916_daily_bin1412.fits" evtable="EVENTS" scfile=/scratch/kocevski/551843/ft2_4FGL_J2131.5-0916_daily_bin1412.fits sctable="SC_DATA" outfile=/scratch/kocevski/551843/ltcube_605318401_605577601_4FGL_J2131.5-0916_daily_bin1412.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/551843/ft2_4FGL_J2131.5-0916_daily_bin1412.fits
.....................!
real 15.31
user 14.75
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/551843/ft1_filtered_4FGL_J2131.5-0916_daily_bin1412.fits evtable="EVENTS" scfile=/scratch/kocevski/551843/ft2_4FGL_J2131.5-0916_daily_bin1412.fits sctable="SC_DATA" expcube=/scratch/kocevski/551843/ltcube_605318401_605577601_4FGL_J2131.5-0916_daily_bin1412.fits outfile=/scratch/kocevski/551843/expmap_605318401_605577601_4FGL_J2131.5-0916_daily_bin1412.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/551843/ltcube_605318401_605577601_4FGL_J2131.5-0916_daily_bin1412.fits
.....................!
real 194.87
user 188.10
sys 5.49

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/551843/ft1_filtered_4FGL_J2131.5-0916_daily_bin1412.fits scfile=/scratch/kocevski/551843/ft2_4FGL_J2131.5-0916_daily_bin1412.fits outfile=/scratch/kocevski/551843/cmap_605318401_605577601_4FGL_J2131.5-0916_daily_bin1412.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/551843/ft1_filtered_4FGL_J2131.5-0916_daily_bin1412.fits scfile=/scratch/kocevski/551843/ft2_4FGL_J2131.5-0916_daily_bin1412.fits outfile=/scratch/kocevski/551843/cmap_HighResolution_605318401_605577601_4FGL_J2131.5-0916_daily_bin1412.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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/551843/ft1_filtered_4FGL_J2131.5-0916_daily_bin1412.fits evtable="EVENTS" scfile=/scratch/kocevski/551843/ft2_4FGL_J2131.5-0916_daily_bin1412.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/551843/Model_4FGL_J2131.5-0916_daily_bin1412.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/551843/ft1_filtered_4FGL_J2131.5-0916_daily_bin1412.fits.....................!
real 55.20
user 53.81
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26541       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.9698       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.143       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10520E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.313       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.955       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .23177       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.576       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10569E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.3445       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.6301       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.755       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.5689       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .77801       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=   4989.156     FROM MIGRAD    STATUS=CONVERGED    376 CALLS     1773 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28050        3.9979       -.27620E-05    .18644E-03
   2  Prefactor     3.9597        26.666        .19627E-04    .15230E-04
   3  Prefactor     .10000E-03    30.648       -.25484E-05** at limit **
   4  Prefactor     12.148        31.515       -.30212E-04   -.13715E-04
   5  Prefactor     .10000E-03    15.365        .26441E-06** at limit **
   6  Prefactor     16.203        40.284        .66211E-04   -.10953E-03
   7  Prefactor     10.957        12.449        .35718E-05    .54404E-04
   8  Prefactor     .25060        2.1202        .21060E-05    .61179E-03
   9  Prefactor     .10000E-03    10.575        .20915E-07** at limit **
  10  Prefactor     29.384        60.605       -.13421E-03   -.16207E-03
  11  Prefactor     .10000E-03    23.445        .20840E-05** at limit **
  12  norm          2.3451        6.5346        .36821E-05   -.32060E-03
  13  Prefactor     .10000E-03    2.8904        .47036E-07** at limit **
  14  Prefactor     7.6305        11.964       -.77376E-06   -.67393E-04
  15  Prefactor     18.749        29.107       -.12792E-04    .79874E-06
  16  Prefactor     .10000E-03    5.7830        .36530E-07** at limit **
  17  Normalizat    1.5685        .27972        .76151E-05   -.26563E-03
  18  Prefactor     .77824        .14134        .51139E-06    .19967E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.280504
  Prefactor  = 3.95971
  Prefactor  = 0.0001
  Prefactor  = 12.1484
  Prefactor  = 0.000100001
  Prefactor  = 16.203
  Prefactor  = 10.9571
  Prefactor  = 0.250596
  Prefactor  = 0.0001
  Prefactor  = 29.3844
  Prefactor  = 0.0001
  norm       = 2.3451
  Prefactor  = 0.0001
  Prefactor  = 7.63054
  Prefactor  = 18.7494
  Prefactor  = 0.0001
  Normalizat = 1.56854
  Prefactor  = 0.778242
 **********
 **   18 **HESSE 
 **********

 FCN=   4989.156     FROM HESSE     STATUS=OK           246 CALLS     2019 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28050        37.349        .26852E-02   -1.5602    
   2  Prefactor     3.9597        26.516        .20244E-03   -1.5310    
   3  Prefactor     .10000E-03    30.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.148        31.475        .11496E-03   -1.5011    
   5  Prefactor     .10000E-03    15.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.203        40.472        .99164E-04   -1.4903    
   7  Prefactor     10.957        12.433        .12104E-03   -1.5046    
   8  Prefactor     .25060        7.7064        .17308E-02   -1.5608    
   9  Prefactor     .10000E-03    10.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     29.384        60.438        .73671E-04   -1.4623    
  11  Prefactor     .10000E-03    23.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.3451        6.5027        .26774E-03   -1.5402    
  13  Prefactor     .10000E-03    2.8972        .11725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.6305        11.962        .14518E-03   -1.5155    
  15  Prefactor     18.749        29.214        .92484E-04   -1.4842    
  16  Prefactor     .10000E-03    5.7881        .16589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.5685        .33807        .29040E-03   -.75870    
  18  Prefactor     .77824        .17168        .20569E-03   -1.0054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78675e-09
Minuit parameter uncertainties:
  1  6.47646
  2  20.5065
  3  0.00017047
  4  31.518
  5  0.00024979
  6  40.5405
  7  12.4356
  8  2.77919
  9  2.54492e-05
  10  60.5642
  11  9.27644e-05
  12  6.50469
  13  7.63974e-06
  14  11.9662
  15  29.2365
  16  7.18175e-06
  17  0.33856
  18  0.171801
Done.

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

Extracting fit parameters...

4FGL J2131.5-0916
   Spectrum: PowerLaw
287    Prefactor:  1.096e+01  1.244e+01  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:  7.782e-01  1.718e-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.569e+00  3.386e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.01
Ra Dec: 322.891 -9.268
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 5.87e-08 +/- 6.66e-08
Energy Flux (Fixed Index): 4.17e-05 +/- 4.73e-05

TS (Fixed Index): 1.01
Ra Dec: 322.891 -9.268
Photon Flux Upper Limit: 1.90e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.42e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/551843/likelihoodResults_605318401_605577601_4FGL_J2131.5-0916_daily_bin1412.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) = 4987.42865921
delta logL = 1.72749447953

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4987.42448075
delta logL = 1.73167293253

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6644       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0611       1.0000          .0000       10.000    
     3 'Normalizat'    1.4172       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82227       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=   4987.424     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      232 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6584        23.271        .62424E-02    .32762E-03
   2  Index         3.0620        2.0001        .67268E-01    .17288E-03
   3  Normalizat    1.4171        .10231        .68225E-01   -.35783E-05
   4  Prefactor     .82234        .51461E-01    .44006E-01   -.66633E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.65843
  Index      = 3.06201
  Normalizat = 1.41711
  Prefactor  = 0.822336
 **********
 **   18 **HESSE 
 **********

 FCN=   4987.424     FROM HESSE     STATUS=OK            33 CALLS      265 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6584        9.4640        .58419E-04   -1.5382    
   2  Index         3.0620        1.3672        .27109E-02   -.39802    
   3  Normalizat    1.4171        .34137        .30183E-03   -.80135    
   4  Prefactor     .82234        .17594        .20023E-03   -.98910    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.79776e-08
Minuit parameter uncertainties:
  1  9.46936
  2  1.38813
  3  0.341917
  4  0.176058
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/551843': 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) = 4987.42447961
delta logL = 1.73167407074

Extracting fit parameters...

4FGL J2131.5-0916
   Spectrum: PowerLaw
287    Prefactor:  2.658e+00  9.469e+00  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  3.062e+00  1.388e+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:  8.223e-01  1.761e-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.417e+00  3.419e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.65
Ra Dec: 322.891 -9.268
Photon Index (Free Index): 3.06 +/- 1.39
Photon Flux (Free Index): 2.02e-07 +/- 1.17e-07
Energy Flux (Free Index): 3.91e-05 +/- 2.77e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/551843/cmap_HighResolution_605318401_605577601_4FGL_J2131.5-0916_daily_bin1412.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.42e-02', comment='SUCCESS', photon_flux='5.87e-08', energy_flux2='3.91e-05', photon_flux_error='6.66e-08', dlogl='1.73e+00', energy_flux='4.17e-05', photon_flux2='2.02e-07', job_status='DONE', time_completed='2021-09-26 17:09:11.290717', photon_index_error2='1.39', photon_index2='3.06', ts='1.01', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='1.90e-07', energy_flux_error2='2.77e-05', EG='1.57', time_epoch_completed='1632701351.29', return_code='0', job_id='551843', GAL2='0.82', EG2='1.42', return_code2='0', energy_flux_error='4.73e-05', photon_flux_error2='1.17e-07', ts2='4.65', photon_index='1.99' WHERE bin_id='1412' AND source_name='4FGL J2131.5-0916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 17:09:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0028>
Subject: Job 551843: <4FGL_J2131.5-0916_daily_bin1412> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2131.5-0916_daily_bin1412 322.891 -9.2684 605318401 605577601 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 :                                   538.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             302.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            812 sec.

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

