/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 169 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 = 7427
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2131.5-0916_daily_bin125
RA = 322.891, Dec = -9.2684
tmin = 271728001, tmax = 271987201
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='546679', job_status='RUN', time_executed='2021-09-26 16:43:50.056226', time_epoch_executed='1632699830.06' WHERE source_name='4FGL J2131.5-0916' and cadence='daily' and bin_id='125'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/546679

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/546679/ft1_4FGL_J2131.5-0916_daily_bin125.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/546679/ft2_4FGL_J2131.5-0916_daily_bin125.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/546679/ft1_4FGL_J2131.5-0916_daily_bin125.fits outfile=/scratch/kocevski/546679/ft1_filteredMKT_4FGL_J2131.5-0916_daily_bin125.fits ra=322.891 dec=-9.2684 rad=12.0 tmin=271728001.0 tmax=271987201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.60
user 2.40
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/546679/ft2_4FGL_J2131.5-0916_daily_bin125.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/546679/ft1_filteredMKT_4FGL_J2131.5-0916_daily_bin125.fits evtable="EVENTS" outfile="/scratch/kocevski/546679/ft1_filtered_4FGL_J2131.5-0916_daily_bin125.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.46
user 0.29
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/546679/ft1_filtered_4FGL_J2131.5-0916_daily_bin125.fits" evtable="EVENTS" scfile=/scratch/kocevski/546679/ft2_4FGL_J2131.5-0916_daily_bin125.fits sctable="SC_DATA" outfile=/scratch/kocevski/546679/ltcube_271728001_271987201_4FGL_J2131.5-0916_daily_bin125.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/546679/ft2_4FGL_J2131.5-0916_daily_bin125.fits
.....................!
real 13.53
user 13.15
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/546679/ft1_filtered_4FGL_J2131.5-0916_daily_bin125.fits evtable="EVENTS" scfile=/scratch/kocevski/546679/ft2_4FGL_J2131.5-0916_daily_bin125.fits sctable="SC_DATA" expcube=/scratch/kocevski/546679/ltcube_271728001_271987201_4FGL_J2131.5-0916_daily_bin125.fits outfile=/scratch/kocevski/546679/expmap_271728001_271987201_4FGL_J2131.5-0916_daily_bin125.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/546679/ltcube_271728001_271987201_4FGL_J2131.5-0916_daily_bin125.fits
.....................!
real 158.22
user 152.23
sys 4.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/546679/ft1_filtered_4FGL_J2131.5-0916_daily_bin125.fits scfile=/scratch/kocevski/546679/ft2_4FGL_J2131.5-0916_daily_bin125.fits outfile=/scratch/kocevski/546679/cmap_271728001_271987201_4FGL_J2131.5-0916_daily_bin125.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.48
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/546679/ft1_filtered_4FGL_J2131.5-0916_daily_bin125.fits scfile=/scratch/kocevski/546679/ft2_4FGL_J2131.5-0916_daily_bin125.fits outfile=/scratch/kocevski/546679/cmap_HighResolution_271728001_271987201_4FGL_J2131.5-0916_daily_bin125.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.50
user 0.34
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/546679/ft1_filtered_4FGL_J2131.5-0916_daily_bin125.fits evtable="EVENTS" scfile=/scratch/kocevski/546679/ft2_4FGL_J2131.5-0916_daily_bin125.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/546679/Model_4FGL_J2131.5-0916_daily_bin125.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/546679/ft1_filtered_4FGL_J2131.5-0916_daily_bin125.fits....................!
real 57.24
user 55.69
sys 1.07

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.918       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.3766       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .44313       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .99253       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.791       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.386       1.0000         .10000E-03   10000.    
    12 'norm      '    3.5608       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7995       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.917       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .62806E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .92169       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .90405       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=   7266.362     FROM MIGRAD    STATUS=CONVERGED    356 CALLS     1737 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6487        .14585E-07** at limit **
   2  Prefactor     .10000E-03    8.1360        .19931E-07** at limit **
   3  Prefactor     11.914        40.388       -.26345E-05   -.10307E-03
   4  Prefactor     .10000E-03    12.495       -.25335E-06** at limit **
   5  Prefactor     2.3785        8.3799        .42481E-06   -.68494E-04
   6  Prefactor     .10000E-03    28.342       -.60347E-06** at limit **
   7  Prefactor     .44351        4.3318        .27580E-05   -.39648E-03
   8  Prefactor     .99446        1.7453        .24067E-06    .26888E-03
   9  Prefactor     .10000E-03    10.560        .29429E-06** at limit **
  10  Prefactor     29.781        31.739       -.40283E-05   -.50116E-03
  11  Prefactor     17.385        13.623       -.14864E-06   -.87642E-04
  12  norm          3.5608        4.1817       -.34696E-08    .70371E-05
  13  Prefactor     1.7998        3.7290        .38364E-06   -.20772E-03
  14  Prefactor     .10000E-03    12.369       -.17080E-06** at limit **
  15  Prefactor     12.916        11.874        .14203E-06   -.12140E-03
  16  Prefactor     .10015E-03    6.1734        .18727E-05** at limit **
  17  Normalizat    .92168        .19162        .10680E-06   -.24091E-03
  18  Prefactor     .90403        .10330       -.16713E-06   -.28527E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.9139
  Prefactor  = 0.0001
  Prefactor  = 2.3785
  Prefactor  = 0.0001
  Prefactor  = 0.443512
  Prefactor  = 0.994463
  Prefactor  = 0.0001
  Prefactor  = 29.7812
  Prefactor  = 17.385
  norm       = 3.56077
  Prefactor  = 1.79978
  Prefactor  = 0.0001
  Prefactor  = 12.9156
  Prefactor  = 0.000100152
  Normalizat = 0.92168
  Prefactor  = 0.904026
 **********
 **   18 **HESSE 
 **********

 FCN=   7266.362     FROM HESSE     STATUS=OK           248 CALLS     1985 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6655        .10688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.1927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.914        40.949        .11604E-03   -1.5017    
   4  Prefactor     .10000E-03    12.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.3785        8.3825        .26574E-03   -1.5400    
   6  Prefactor     .10000E-03    28.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .44351        5.3075        .37415E-03   -1.5575    
   8  Prefactor     .99446        1.5517        .14149E-02   -1.5509    
   9  Prefactor     .10000E-03    10.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     29.781        34.613        .73405E-04   -1.4616    
  11  Prefactor     17.385        13.665        .96056E-04   -1.4874    
  12  norm          3.5608        4.1799        .18427E-03   -1.5331    
  13  Prefactor     1.7998        3.7200        .22846E-03   -1.5440    
  14  Prefactor     .10000E-03    12.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.916        11.877        .55726E-03   -1.4989    
  16  Prefactor     .10015E-03    29.654        .37447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .92168        .23297        .30193E-03   -.95702    
  18  Prefactor     .90403        .12701        .16925E-03   -.96001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.52341e-09
Minuit parameter uncertainties:
  1  5.79503e-07
  2  3.87209e-06
  3  41.046
  4  4.62614e-05
  5  8.38659
  6  9.88085e-05
  7  3.0685
  8  1.55179
  9  5.00657e-05
  10  34.6368
  11  13.6673
  12  4.18024
  13  3.72049
  14  2.80516e-05
  15  11.8795
  16  0.00425003
  17  0.233229
  18  0.127056
Done.

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

Extracting fit parameters...

4FGL J2131.5-0916
   Spectrum: PowerLaw
287    Prefactor:  4.435e-01  3.069e+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:  9.040e-01  1.271e-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:  9.217e-01  2.332e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/546679/likelihoodResults_271728001_271987201_4FGL_J2131.5-0916_daily_bin125.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) = 7266.3415433
delta logL = 0.0207743631017

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7266.32997299
delta logL = 0.0323446769435

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96055       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5569       1.0000          .0000       10.000    
     3 'Normalizat'    .92372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90270       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=   7266.330     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      233 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .95995        14.995        .70256E-01    .96894E-03
   2  Index         1.5568        .90890        .50000       -.22006E-06
   3  Normalizat    .92373        .10941E-01    .68179E-01    .20360E-04
   4  Prefactor     .90271        .61073E-02    .45039E-01    .28732E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.959952
  Index      = 1.55675
  Normalizat = 0.92373
  Prefactor  = 0.902708
 **********
 **   18 **HESSE 
 **********

 FCN=   7266.330     FROM HESSE     STATUS=OK            35 CALLS      268 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .95995        3.5796        .27673E-02   -1.5512    
   2  Index         1.5568        1.3838        .90513E-02   -.75962    
   3  Normalizat    .92373        .22493        .30162E-03   -.95631    
   4  Prefactor     .90271        .12606        .16935E-03   -.96047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01201e-08
Minuit parameter uncertainties:
  1  3.58039
  2  1.41982
  3  0.225164
  4  0.126097
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/546679': 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) = 7266.32997297
delta logL = 0.0323446993325

Extracting fit parameters...

4FGL J2131.5-0916
   Spectrum: PowerLaw
287    Prefactor:  9.600e-01  3.580e+00  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  1.557e+00  1.420e+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:  9.027e-01  1.261e-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:  9.237e-01  2.252e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/546679/cmap_HighResolution_271728001_271987201_4FGL_J2131.5-0916_daily_bin125.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.22e-03', job_status='DONE', photon_flux_upper_limit='5.63e-08', time_completed='2021-09-26 16:52:19.426442', job_id='546679', GAL2='0.90', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1632700339.43', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='3.23e-02', ts2='0.09', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='125' AND source_name='4FGL J2131.5-0916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 16:52:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 546679: <4FGL_J2131.5-0916_daily_bin125> in cluster <slac> Done

Job <4FGL_J2131.5-0916_daily_bin125> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 26 16:40:24 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 16:40:52 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:40:52 2021
Terminated at Sun Sep 26 16:52:20 2021
Results reported at Sun Sep 26 16:52:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2131.5-0916_daily_bin125 322.891 -9.2684 271728001 271987201 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 :                                   498.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             273.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   687 sec.
    Turnaround time :                            716 sec.

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

