/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 215 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 = 7473
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2131.5-0916_daily_bin269
RA = 322.891, Dec = -9.2684
tmin = 309052801, tmax = 309312001
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='546899', job_status='RUN', time_executed='2021-09-26 16:45:41.098824', time_epoch_executed='1632699941.1' WHERE source_name='4FGL J2131.5-0916' and cadence='daily' and bin_id='269'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/546899

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/546899/ft1_4FGL_J2131.5-0916_daily_bin269.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/546899/ft2_4FGL_J2131.5-0916_daily_bin269.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/546899/ft1_4FGL_J2131.5-0916_daily_bin269.fits outfile=/scratch/kocevski/546899/ft1_filteredMKT_4FGL_J2131.5-0916_daily_bin269.fits ra=322.891 dec=-9.2684 rad=12.0 tmin=309052801.0 tmax=309312001.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.75
user 3.23
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/546899/ft1_filtered_4FGL_J2131.5-0916_daily_bin269.fits" evtable="EVENTS" scfile=/scratch/kocevski/546899/ft2_4FGL_J2131.5-0916_daily_bin269.fits sctable="SC_DATA" outfile=/scratch/kocevski/546899/ltcube_309052801_309312001_4FGL_J2131.5-0916_daily_bin269.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/546899/ft2_4FGL_J2131.5-0916_daily_bin269.fits
.....................!
real 15.90
user 15.51
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/546899/ft1_filtered_4FGL_J2131.5-0916_daily_bin269.fits evtable="EVENTS" scfile=/scratch/kocevski/546899/ft2_4FGL_J2131.5-0916_daily_bin269.fits sctable="SC_DATA" expcube=/scratch/kocevski/546899/ltcube_309052801_309312001_4FGL_J2131.5-0916_daily_bin269.fits outfile=/scratch/kocevski/546899/expmap_309052801_309312001_4FGL_J2131.5-0916_daily_bin269.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/546899/ltcube_309052801_309312001_4FGL_J2131.5-0916_daily_bin269.fits
.....................!
real 191.98
user 187.12
sys 4.27

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/546899/ft1_filtered_4FGL_J2131.5-0916_daily_bin269.fits scfile=/scratch/kocevski/546899/ft2_4FGL_J2131.5-0916_daily_bin269.fits outfile=/scratch/kocevski/546899/cmap_309052801_309312001_4FGL_J2131.5-0916_daily_bin269.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.60
user 0.38
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/546899/ft1_filtered_4FGL_J2131.5-0916_daily_bin269.fits scfile=/scratch/kocevski/546899/ft2_4FGL_J2131.5-0916_daily_bin269.fits outfile=/scratch/kocevski/546899/cmap_HighResolution_309052801_309312001_4FGL_J2131.5-0916_daily_bin269.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=322.891 yref=-9.2684 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/546899/ft1_filtered_4FGL_J2131.5-0916_daily_bin269.fits evtable="EVENTS" scfile=/scratch/kocevski/546899/ft2_4FGL_J2131.5-0916_daily_bin269.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/546899/Model_4FGL_J2131.5-0916_daily_bin269.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/546899/ft1_filtered_4FGL_J2131.5-0916_daily_bin269.fits.....................!
real 83.48
user 82.07
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.230       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.4090       1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.598       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.6177       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7716       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .28486       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.980       1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.143       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.8053       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.930       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1148       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .90863       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=   8913.218     FROM MIGRAD    STATUS=CONVERGED    347 CALLS     1722 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.230        6.0151        .50662E-07   -.23146E-04
   2  Prefactor     9.4092        14.114        .12268E-06   -.20736E-04
   3  Prefactor     30.590        51.808       -.35812E-05   -.85896E-04
   4  Prefactor     .10000E-03    5.7161        .12619E-06** at limit **
   5  Prefactor     9.6177        8.2033        .53240E-07   -.13364E-04
   6  Prefactor     .10000E-03    10.405        .14600E-06** at limit **
   7  Prefactor     2.7716        2.6900        .21008E-08    .27435E-04
   8  Prefactor     .28439        1.1639        .10390E-05   -.53985E-03
   9  Prefactor     19.986        28.112        .15366E-05    .82535E-04
  10  Prefactor     25.146        27.399        .42201E-06    .36771E-04
  11  Prefactor     .10000E-03    14.762        .20989E-06** at limit **
  12  norm          .10000E-03    1.4865       -.15304E-06** at limit **
  13  Prefactor     7.8044        5.4983        .11554E-06   -.49341E-04
  14  Prefactor     .10000E-03    3.0776        .29746E-07** at limit **
  15  Prefactor     13.927        12.609       -.24118E-06   -.74211E-04
  16  Prefactor     .10000E-03    4.5775        .87358E-07** at limit **
  17  Normalizat    1.1148        .18384       -.46135E-06   -.74992E-04
  18  Prefactor     .90860        .10015       -.62968E-08   -.13753E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.2302
  Prefactor  = 9.40923
  Prefactor  = 30.5896
  Prefactor  = 0.0001
  Prefactor  = 9.61769
  Prefactor  = 0.0001
  Prefactor  = 2.77163
  Prefactor  = 0.284388
  Prefactor  = 19.9859
  Prefactor  = 25.1457
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.80438
  Prefactor  = 0.0001
  Prefactor  = 13.927
  Prefactor  = 0.0001
  Normalizat = 1.11479
  Prefactor  = 0.908602
 **********
 **   18 **HESSE 
 **********

 FCN=   8913.218     FROM HESSE     STATUS=OK           246 CALLS     1968 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.230        6.0213        .10618E-03   -1.4953    
   2  Prefactor     9.4092        14.120        .13065E-03   -1.5094    
   3  Prefactor     30.590        53.588        .72434E-04   -1.4601    
   4  Prefactor     .10000E-03    5.7332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.6177        8.2038        .12922E-03   -1.5088    
   6  Prefactor     .10000E-03    10.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.7716        2.6954        .14850E-03   -1.5375    
   8  Prefactor     .28439        1.3519        .20913E-03   -1.5601    
   9  Prefactor     19.986        29.135        .89606E-04   -1.4814    
  10  Prefactor     25.146        27.518        .79888E-04   -1.4705    
  11  Prefactor     .10000E-03    15.366        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.4900        .11251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.8044        5.5281        .14353E-03   -1.5149    
  14  Prefactor     .10000E-03    3.0851        .16174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.927        12.653        .10732E-03   -1.4961    
  16  Prefactor     .10000E-03    4.6206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.1148        .21997        .30045E-03   -.89278    
  18  Prefactor     .90860        .12007        .18485E-03   -.95841    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9426e-10
Minuit parameter uncertainties:
  1  6.02156
  2  14.1253
  3  53.6727
  4  8.17469e-06
  5  8.20472
  6  8.11225e-06
  7  2.69554
  8  1.23992
  9  29.1558
  10  27.5322
  11  3.38621e-05
  12  4.00272e-06
  13  5.52847
  14  7.17293e-08
  15  12.655
  16  7.30632e-06
  17  0.220151
  18  0.120107
Done.

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

Extracting fit parameters...

4FGL J2131.5-0916
   Spectrum: PowerLaw
287    Prefactor:  2.772e+00  2.696e+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.086e-01  1.201e-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.115e+00  2.202e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.22
Ra Dec: 322.891 -9.268
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 1.48e-08 +/- 1.44e-08
Energy Flux (Fixed Index): 1.05e-05 +/- 1.03e-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) = 8912.75771456
delta logL = 0.460342642156

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8912.75766007
delta logL = 0.460397134595

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9068       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4215       1.0000          .0000       10.000    
     3 'Normalizat'    1.1207       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90756       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8912.758     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      277 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9081        3.8607        .89438E-03    .57124E-04
   2  Index         1.4215        .56092        .10888E-01    .37842E-05
   3  Normalizat    1.1207        .20933        .29974E-03   -.21998E-05
   4  Prefactor     .90756        .11834        .18494E-03    .12294E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.90811
  Index      = 1.42148
  Normalizat = 1.12069
  Prefactor  = 0.907558
 **********
 **   18 **HESSE 
 **********

 FCN=   8912.758     FROM HESSE     STATUS=OK            27 CALLS      304 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9081        3.8759        .35775E-04   -1.5313    
   2  Index         1.4215        .56325        .43550E-03   -.79763    
   3  Normalizat    1.1207        .20951        .11990E-04   -.89090    
   4  Prefactor     .90756        .11845        .73977E-05   -.95878    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08669e-12
Minuit parameter uncertainties:
  1  3.87612
  2  0.565724
  3  0.209668
  4  0.11848
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/546899': 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) = 8912.75766001
delta logL = 0.460397192213

Extracting fit parameters...

4FGL J2131.5-0916
   Spectrum: PowerLaw
287    Prefactor:  3.908e+00  3.876e+00  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  1.421e+00  5.657e-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:  9.076e-01  1.185e-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.121e+00  2.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.14
Ra Dec: 322.891 -9.268
Photon Index (Free Index): 1.42 +/- 0.57
Photon Flux (Free Index): 7.76e-09 +/- 9.82e-09
Energy Flux (Free Index): 3.19e-05 +/- 4.69e-05

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/546899/cmap_HighResolution_309052801_309312001_4FGL_J2131.5-0916_daily_bin269.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.48e-08', energy_flux2='3.19e-05', photon_flux_error='1.44e-08', dlogl='4.60e-01', energy_flux='1.05e-05', photon_flux2='7.76e-09', job_status='DONE', time_completed='2021-09-26 16:56:15.896682', photon_index_error2='0.57', photon_index2='1.42', ts='4.22', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='4.69e-05', EG='1.11', time_epoch_completed='1632700575.9', return_code='0', job_id='546899', GAL2='0.91', EG2='1.12', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='9.82e-09', ts2='5.14', photon_index='1.99' WHERE bin_id='269' AND source_name='4FGL J2131.5-0916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 16:56:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 546899: <4FGL_J2131.5-0916_daily_bin269> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2131.5-0916_daily_bin269 322.891 -9.2684 309052801 309312001 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 :                                   626.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             272.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            937 sec.

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

