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


Performing analysis on: 4FGL_J2131.5-0916_daily_bin1603
RA = 322.891, Dec = -9.2684
tmin = 654825601, tmax = 655084801
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='917319', job_status='RUN', time_executed='2021-10-05 00:17:39.685230', time_epoch_executed='1633418259.69' WHERE source_name='4FGL J2131.5-0916' and cadence='daily' and bin_id='1603'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917319

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917319/ft1_4FGL_J2131.5-0916_daily_bin1603.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917319/ft2_4FGL_J2131.5-0916_daily_bin1603.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917319/ft1_4FGL_J2131.5-0916_daily_bin1603.fits outfile=/scratch/kocevski/917319/ft1_filteredMKT_4FGL_J2131.5-0916_daily_bin1603.fits ra=322.891 dec=-9.2684 rad=12.0 tmin=654825601.0 tmax=655084801.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.00
user 2.77
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/917319/ft2_4FGL_J2131.5-0916_daily_bin1603.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/917319/ft1_filteredMKT_4FGL_J2131.5-0916_daily_bin1603.fits evtable="EVENTS" outfile="/scratch/kocevski/917319/ft1_filtered_4FGL_J2131.5-0916_daily_bin1603.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/917319/ft1_filtered_4FGL_J2131.5-0916_daily_bin1603.fits" evtable="EVENTS" scfile=/scratch/kocevski/917319/ft2_4FGL_J2131.5-0916_daily_bin1603.fits sctable="SC_DATA" outfile=/scratch/kocevski/917319/ltcube_654825601_655084801_4FGL_J2131.5-0916_daily_bin1603.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/917319/ft2_4FGL_J2131.5-0916_daily_bin1603.fits
.....................!
real 12.10
user 11.74
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917319/ft1_filtered_4FGL_J2131.5-0916_daily_bin1603.fits evtable="EVENTS" scfile=/scratch/kocevski/917319/ft2_4FGL_J2131.5-0916_daily_bin1603.fits sctable="SC_DATA" expcube=/scratch/kocevski/917319/ltcube_654825601_655084801_4FGL_J2131.5-0916_daily_bin1603.fits outfile=/scratch/kocevski/917319/expmap_654825601_655084801_4FGL_J2131.5-0916_daily_bin1603.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/917319/ltcube_654825601_655084801_4FGL_J2131.5-0916_daily_bin1603.fits
.....................!
real 190.49
user 185.17
sys 5.01

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/917319/ft1_filtered_4FGL_J2131.5-0916_daily_bin1603.fits scfile=/scratch/kocevski/917319/ft2_4FGL_J2131.5-0916_daily_bin1603.fits outfile=/scratch/kocevski/917319/cmap_654825601_655084801_4FGL_J2131.5-0916_daily_bin1603.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.53
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/917319/ft1_filtered_4FGL_J2131.5-0916_daily_bin1603.fits scfile=/scratch/kocevski/917319/ft2_4FGL_J2131.5-0916_daily_bin1603.fits outfile=/scratch/kocevski/917319/cmap_HighResolution_654825601_655084801_4FGL_J2131.5-0916_daily_bin1603.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.54
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/917319/ft1_filtered_4FGL_J2131.5-0916_daily_bin1603.fits evtable="EVENTS" scfile=/scratch/kocevski/917319/ft2_4FGL_J2131.5-0916_daily_bin1603.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/917319/Model_4FGL_J2131.5-0916_daily_bin1603.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/917319/ft1_filtered_4FGL_J2131.5-0916_daily_bin1603.fits.....................!
real 65.76
user 64.43
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12459E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10547E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.960       1.0000         .10000E-03   10000.    
     6 'Prefactor '    88.336       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.6151       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11555E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.534       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.697       1.0000         .10000E-03   10000.    
    12 'norm      '    4.3077       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.432       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.917       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0588       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .90491       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=   6857.072     FROM MIGRAD    STATUS=CONVERGED    341 CALLS     1719 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    3.5545       -.20072E-05** at limit **
   2  Prefactor     .10000E-03    11.133       -.54499E-06** at limit **
   3  Prefactor     .10000E-03    57.806       -.25035E-06** at limit **
   4  Prefactor     .10000E-03    13.843        .43124E-05** at limit **
   5  Prefactor     10.959        11.678       -.29889E-06   -.70592E-04
   6  Prefactor     88.321        53.808       -.13281E-04    .13000E-04
   7  Prefactor     2.6150        7.3411       -.12712E-05   -.43486E-03
   8  Prefactor     .10000E-03    1.3243        .42721E-06** at limit **
   9  Prefactor     32.533        37.191       -.65436E-06    .24769E-05
  10  Prefactor     .10000E-03    13.289       -.41504E-05** at limit **
  11  Prefactor     13.692        16.083       -.18590E-05   -.67695E-03
  12  norm          4.3089        7.2269       -.21559E-06   -.22043E-03
  13  Prefactor     12.431        7.6399       -.25133E-06   -.78506E-04
  14  Prefactor     15.918        16.214       -.24443E-06   -.10462E-04
  15  Prefactor     .10000E-03    8.3309        .48143E-05** at limit **
  16  Prefactor     .10000E-03    6.4808        .39145E-07** at limit **
  17  Normalizat    1.0592        .22654        .30347E-05    .75598E-04
  18  Prefactor     .90469        .11669        .28256E-06    .39084E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.959
  Prefactor  = 88.321
  Prefactor  = 2.61495
  Prefactor  = 0.0001
  Prefactor  = 32.533
  Prefactor  = 0.0001
  Prefactor  = 13.6924
  norm       = 4.30894
  Prefactor  = 12.4307
  Prefactor  = 15.9181
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.0592
  Prefactor  = 0.904686
 **********
 **   18 **HESSE 
 **********

 FCN=   6857.072     FROM HESSE     STATUS=OK           244 CALLS     1963 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    8.0965        .29723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    57.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.959        11.698        .12102E-03   -1.5046    
   6  Prefactor     88.321        53.474        .42749E-04   -1.3826    
   7  Prefactor     2.6150        7.3969        .25223E-03   -1.5385    
   8  Prefactor     .10000E-03    1.3533        .93305E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     32.533        37.185        .70251E-04   -1.4567    
  10  Prefactor     .10000E-03    13.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.692        16.478        .54113E-03   -1.4968    
  12  norm          4.3089        7.2234        .19410E-03   -1.5293    
  13  Prefactor     12.431        7.6631        .11361E-03   -1.5003    
  14  Prefactor     15.918        16.215        .10039E-03   -1.4910    
  15  Prefactor     .10000E-03    8.3097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.5023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.0592        .27947        .31739E-03   -.91073    
  18  Prefactor     .90469        .14415        .18290E-03   -.95978    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67371e-09
Minuit parameter uncertainties:
  1  0.000684971
  2  2.7393e-05
  3  0.000174574
  4  2.15818e-05
  5  11.7001
  6  53.5028
  7  7.3995
  8  5.02109e-05
  9  37.2116
  10  3.55122e-05
  11  16.4839
  12  7.22482
  13  7.66368
  14  16.2191
  15  1.00454e-05
  16  1.13852e-05
  17  0.279857
  18  0.144211
Done.

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

Extracting fit parameters...

4FGL J2131.5-0916
   Spectrum: PowerLaw
287    Prefactor:  2.615e+00  7.400e+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.047e-01  1.442e-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.059e+00  2.799e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.14
Ra Dec: 322.891 -9.268
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/917319/likelihoodResults_654825601_655084801_4FGL_J2131.5-0916_daily_bin1603.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) = 6856.59785352
delta logL = 0.474524612898

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6856.56766714
delta logL = 0.504710993615

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6048       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8207       1.0000          .0000       10.000    
     3 'Normalizat'    1.0066       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91680       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=   6856.568     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      232 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6068        35.076        .83634E-02    .94998E-03
   2  Index         2.8208        2.7082        .94060E-01    .21888E-03
   3  Normalizat    1.0064        .60398E-01    .73325E-01   -.17062E-04
   4  Prefactor     .91686        .31911E-01    .45219E-01   -.54876E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.60675
  Index      = 2.82083
  Normalizat = 1.00642
  Prefactor  = 0.916864
 **********
 **   18 **HESSE 
 **********

 FCN=   6856.568     FROM HESSE     STATUS=OK            33 CALLS      265 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6068        8.5944        .99642E-04   -1.5454    
   2  Index         2.8208        1.7467        .54238E-02   -.45096    
   3  Normalizat    1.0064        .27333        .32443E-03   -.92816    
   4  Prefactor     .91686        .14577        .18169E-03   -.95554    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21914e-10
Minuit parameter uncertainties:
  1  7.43354
  2  1.79381
  3  0.273714
  4  0.145831
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917319': 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) = 6856.56766594
delta logL = 0.5047121884

Extracting fit parameters...

4FGL J2131.5-0916
   Spectrum: PowerLaw
287    Prefactor:  1.607e+00  7.434e+00  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.821e+00  1.794e+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.169e-01  1.458e-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.006e+00  2.737e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.18
Ra Dec: 322.891 -9.268
Photon Index (Free Index): 2.82 +/- 1.79
Photon Flux (Free Index): 6.46e-08 +/- 6.67e-08
Energy Flux (Free Index): 1.43e-05 +/- 2.04e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/917319/cmap_HighResolution_654825601_655084801_4FGL_J2131.5-0916_daily_bin1603.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.78e-03', comment='SUCCESS', energy_flux2='1.43e-05', dlogl='5.05e-01', photon_flux2='6.46e-08', job_status='DONE', time_completed='2021-10-05 00:27:07.381717', photon_index_error2='1.79', photon_index2='2.82', ts='0.14', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='2.04e-05', EG='1.06', time_epoch_completed='1633418827.38', return_code='0', job_id='917319', GAL2='0.92', EG2='1.01', return_code2='0', photon_flux_error2='6.67e-08', ts2='1.18', photon_index='1.99' WHERE bin_id='1603' AND source_name='4FGL J2131.5-0916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Oct  5 00:27:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 917319: <4FGL_J2131.5-0916_daily_bin1603> in cluster <slac> Done

Job <4FGL_J2131.5-0916_daily_bin1603> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Oct  5 00:15:21 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct  5 00:15:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct  5 00:15:22 2021
Terminated at Tue Oct  5 00:27:07 2021
Results reported at Tue Oct  5 00:27:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2131.5-0916_daily_bin1603 322.891 -9.2684 654825601 655084801 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 :                                   570.45 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             307.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            706 sec.

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

