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


Performing analysis on: 4FGL_J2131.0-2746_daily_bin1154
RA = 322.753, Dec = -27.7727
tmin = 538444801, tmax = 538704001
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='542606', job_status='RUN', time_executed='2021-09-26 16:27:29.736606', time_epoch_executed='1632698849.74' WHERE source_name='4FGL J2131.0-2746' and cadence='daily' and bin_id='1154'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/542606

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/542606/ft1_4FGL_J2131.0-2746_daily_bin1154.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/542606/ft2_4FGL_J2131.0-2746_daily_bin1154.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/542606/ft1_4FGL_J2131.0-2746_daily_bin1154.fits outfile=/scratch/kocevski/542606/ft1_filteredMKT_4FGL_J2131.0-2746_daily_bin1154.fits ra=322.753 dec=-27.7727 rad=12.0 tmin=538444801.0 tmax=538704001.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.70
user 3.43
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/542606/ft2_4FGL_J2131.0-2746_daily_bin1154.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/542606/ft2_4FGL_J2131.0-2746_daily_bin1154.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/542606/ft1_filteredMKT_4FGL_J2131.0-2746_daily_bin1154.fits evtable="EVENTS" outfile="/scratch/kocevski/542606/ft1_filtered_4FGL_J2131.0-2746_daily_bin1154.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.55
user 0.38
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/542606/ft1_filtered_4FGL_J2131.0-2746_daily_bin1154.fits" evtable="EVENTS" scfile=/scratch/kocevski/542606/ft2_4FGL_J2131.0-2746_daily_bin1154.fits sctable="SC_DATA" outfile=/scratch/kocevski/542606/ltcube_538444801_538704001_4FGL_J2131.0-2746_daily_bin1154.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/542606/ft2_4FGL_J2131.0-2746_daily_bin1154.fits
.....................!
real 19.11
user 18.69
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/542606/ft1_filtered_4FGL_J2131.0-2746_daily_bin1154.fits evtable="EVENTS" scfile=/scratch/kocevski/542606/ft2_4FGL_J2131.0-2746_daily_bin1154.fits sctable="SC_DATA" expcube=/scratch/kocevski/542606/ltcube_538444801_538704001_4FGL_J2131.0-2746_daily_bin1154.fits outfile=/scratch/kocevski/542606/expmap_538444801_538704001_4FGL_J2131.0-2746_daily_bin1154.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/542606/ltcube_538444801_538704001_4FGL_J2131.0-2746_daily_bin1154.fits
.....................!
real 196.24
user 190.79
sys 4.93

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 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J2131.0-2746 @ 322.753 -27.7727

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/542606/ft1_filtered_4FGL_J2131.0-2746_daily_bin1154.fits scfile=/scratch/kocevski/542606/ft2_4FGL_J2131.0-2746_daily_bin1154.fits outfile=/scratch/kocevski/542606/cmap_538444801_538704001_4FGL_J2131.0-2746_daily_bin1154.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.753 yref=-27.7727 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.68
user 0.41
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/542606/ft1_filtered_4FGL_J2131.0-2746_daily_bin1154.fits scfile=/scratch/kocevski/542606/ft2_4FGL_J2131.0-2746_daily_bin1154.fits outfile=/scratch/kocevski/542606/cmap_HighResolution_538444801_538704001_4FGL_J2131.0-2746_daily_bin1154.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.753 yref=-27.7727 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.59
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/542606/ft1_filtered_4FGL_J2131.0-2746_daily_bin1154.fits evtable="EVENTS" scfile=/scratch/kocevski/542606/ft2_4FGL_J2131.0-2746_daily_bin1154.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/542606/Model_4FGL_J2131.0-2746_daily_bin1154.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/542606/ft1_filtered_4FGL_J2131.0-2746_daily_bin1154.fits.....................!
real 67.43
user 65.87
sys 1.38

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/542606/ft1_filtered_4FGL_J2131.0-2746_daily_bin1154.fits', '/scratch/kocevski/542606/ft2_4FGL_J2131.0-2746_daily_bin1154.fits', expMap='/scratch/kocevski/542606/expmap_538444801_538704001_4FGL_J2131.0-2746_daily_bin1154.fits', expCube='/scratch/kocevski/542606/ltcube_538444801_538704001_4FGL_J2131.0-2746_daily_bin1154.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/542606/Model_4FGL_J2131.0-2746_daily_bin1154.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2131.0-2746'

4FGL J2131.0-2746
   Spectrum: LogParabola
257         norm:  1.458e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
258        alpha:  1.622e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
259         beta:  1.212e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  2.442e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/542606/ft1_filtered_4FGL_J2131.0-2746_daily_bin1154.fits
Spacecraft file(s): /scratch/kocevski/542606/ft2_4FGL_J2131.0-2746_daily_bin1154.fits
Exposure map: /scratch/kocevski/542606/expmap_538444801_538704001_4FGL_J2131.0-2746_daily_bin1154.fits
Exposure cube: /scratch/kocevski/542606/ltcube_538444801_538704001_4FGL_J2131.0-2746_daily_bin1154.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/542606/Model_4FGL_J2131.0-2746_daily_bin1154.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) = 8013.3149156

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    43.265       1.0000         .10000E-03   10000.    
     3 'norm      '    17.453       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.2016       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.4744       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.3099       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6221       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.7198       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.331       1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.462       1.0000         .10000E-03   10000.    
    15 'norm      '    6.6362       1.0000         .10000E-03   10000.    
    16 'norm      '    1.1889       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.534       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .94923       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .94880       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8013.248     FROM MIGRAD    STATUS=CONVERGED    418 CALLS     2064 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3243       -.89006E-07** at limit **
   2  Prefactor     43.223        50.382       -.84263E-06   -.20122E-03
   3  norm          17.452        17.190        .14011E-07    .11790E-04
   4  Prefactor     7.1985        15.122        .62915E-06    .12894E-04
   5  Prefactor     .10000E-03    22.913        .37699E-07** at limit **
   6  Prefactor     .10000E-03    8.0691       -.51667E-06** at limit **
   7  norm          7.4738        6.3066        .52121E-06    .16273E-04
   8  Prefactor     2.3089        6.6551        .14203E-05    .20155E-04
   9  Prefactor     4.6228        5.3144        .47707E-05    .11999E-03
  10  Prefactor     .10000E-03    8.7546        .89775E-06** at limit **
  11  Prefactor     .10000E-03    3.4820       -.19371E-06** at limit **
  12  norm          1.7196        3.0440        .46369E-07   -.41763E-04
  13  Prefactor     18.304        22.164       -.57527E-06   -.59358E-04
  14  Prefactor     26.546        70.582        .28183E-05    .14995E-03
  15  norm          6.6358        4.4722        .29091E-06   -.22783E-04
  16  norm          1.1888        .35632        .13775E-07   -.25645E-03
  17  Prefactor     13.537        10.423        .25269E-06   -.19605E-03
  18  Prefactor     .10002E-03    7.7287        .11538E-05** at limit **
  19  Normalizat    .94869        .18624       -.51770E-05    .18442E-04
  20  Prefactor     .94913        .10825        .19304E-05   -.48957E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 43.2233
  norm       = 17.4517
  Prefactor  = 7.1985
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.47378
  Prefactor  = 2.30888
  Prefactor  = 4.6228
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.71958
  Prefactor  = 18.304
  Prefactor  = 26.5463
  norm       = 6.63578
  norm       = 1.18884
  Prefactor  = 13.5365
  Prefactor  = 0.000100021
  Normalizat = 0.948691
  Prefactor  = 0.94913
 **********
 **   18 **HESSE 
 **********

 FCN=   8013.248     FROM HESSE     STATUS=OK           295 CALLS     2359 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3428        .15938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     43.223        50.362        .30474E-03   -1.4392    
   3  norm          17.452        17.201        .95871E-04   -1.4872    
   4  Prefactor     7.1985        15.118        .14947E-03   -1.5171    
   5  Prefactor     .10000E-03    23.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.3938        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.4738        6.3099        .73347E-03   -1.5161    
   8  Prefactor     2.3089        6.6515        .26996E-03   -1.5404    
   9  Prefactor     4.6228        5.3543        .93605E-03   -1.5278    
  10  Prefactor     .10000E-03    8.9263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.4936        .16317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.7196        3.0090        .20201E-03   -1.5446    
  13  Prefactor     18.304        22.084        .93546E-04   -1.4852    
  14  Prefactor     26.546        70.201        .77875E-04   -1.4677    
  15  norm          6.6358        4.4636        .13563E-03   -1.5193    
  16  norm          1.1888        .35699        .27549E-04   -1.5490    
  17  Prefactor     13.537        10.343        .10888E-03   -1.4972    
  18  Prefactor     .10002E-03    56.905        .47002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .94869        .21070        .30014E-03   -.94770    
  20  Prefactor     .94913        .12472        .18465E-03   -.94445    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54544e-09
Minuit parameter uncertainties:
  1  2.14222e-06
  2  50.4112
  3  17.2062
  4  15.1264
  5  1.11091e-05
  6  4.16165e-05
  7  6.31042
  8  6.65365
  9  5.35488
  10  1.42654e-05
  11  1.6719e-05
  12  3.00922
  13  22.0936
  14  70.4206
  15  4.46385
  16  0.356993
  17  10.3442
  18  0.00216758
  19  0.210881
  20  0.124753
Done.

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

Extracting fit parameters...

4FGL J2131.0-2746
   Spectrum: LogParabola
257         norm:  7.474e+00  6.310e+00  1.000e-04  1.000e+04 ( 1.000e-13)
258        alpha:  1.622e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
259         beta:  1.212e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  2.442e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  9.491e-01  1.248e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  9.487e-01  2.109e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.03
Ra Dec: 322.753 -27.773
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 1.28e-08 +/- 1.08e-08
Energy Flux (Fixed Index): 2.58e-05 +/- 2.18e-05

TS (Fixed Index): 3.03
Ra Dec: 322.753 -27.773
Photon Flux Upper Limit: 4.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 8.32e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/542606/likelihoodResults_538444801_538704001_4FGL_J2131.0-2746_daily_bin1154.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) = 8012.41664483
delta logL = 0.830916825787

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8012.41505294
delta logL = 0.83250872126

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9539       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4295       1.0000          .0000       5.0000    
     3 'Normalizat'    .93676       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94939       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8012.415     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      242 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9539        53.734        .50715E-02    .11621E-02
   2  alpha         2.4295        3.6562        .28346        .11950E-03
   3  Normalizat    .93675        .68484E-01    .68195E-01    .19429E-03
   4  Prefactor     .94940        .37037E-01    .45631E-01    .66652E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.95394
  alpha      = 2.42947
  Normalizat = 0.936754
  Prefactor  = 0.949401
 **********
 **   18 **HESSE 
 **********

 FCN=   8012.415     FROM HESSE     STATUS=OK            31 CALLS      273 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9539        5.2929        .11719E-03   -1.5310    
   2  alpha         2.4295        .70845        .98410E-02   -.28215E-01
   3  Normalizat    .93675        .19552        .30168E-03   -.95180    
   4  Prefactor     .94940        .12078        .18450E-03   -.94436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.55231e-10
Minuit parameter uncertainties:
  1  5.29349
  2  0.718304
  3  0.195665
  4  0.120816
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/542606': 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) = 8012.41505294
delta logL = 0.832508723087

Extracting fit parameters...

4FGL J2131.0-2746
   Spectrum: LogParabola
257         norm:  3.954e+00  5.293e+00  1.000e-04  1.000e+04 ( 1.000e-13)
258        alpha:  2.429e+00  7.183e-01  0.000e+00  5.000e+00 ( 1.000e+00)
259         beta:  1.212e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  2.442e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  9.494e-01  1.208e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  9.368e-01  1.957e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.69
Ra Dec: 322.753 -27.773
Photon Index (Free Index): 2.43 +/- 0.72
Photon Flux (Free Index): 3.05e-08 +/- 2.50e-08
Energy Flux (Free Index): 1.33e-05 +/- 1.09e-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/542606/cmap_HighResolution_538444801_538704001_4FGL_J2131.0-2746_daily_bin1154.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.32e-05', comment='SUCCESS', photon_flux='1.28e-08', energy_flux2='1.33e-05', photon_flux_error='1.08e-08', dlogl='8.33e-01', energy_flux='2.58e-05', photon_flux2='3.05e-08', job_status='DONE', time_completed='2021-09-26 16:39:21.319555', photon_index_error2='0.72', photon_index2='2.43', ts='3.03', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='4.14e-08', energy_flux_error2='1.09e-05', EG='0.95', time_epoch_completed='1632699561.32', return_code='0', job_id='542606', GAL2='0.95', EG2='0.94', return_code2='0', energy_flux_error='2.18e-05', photon_flux_error2='2.50e-08', ts2='4.69', photon_index='1.62' WHERE bin_id='1154' AND source_name='4FGL J2131.0-2746' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 16:39:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 542606: <4FGL_J2131.0-2746_daily_bin1154> in cluster <slac> Done

Job <4FGL_J2131.0-2746_daily_bin1154> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 16:25:38 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 16:27:09 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:27:09 2021
Terminated at Sun Sep 26 16:39:22 2021
Results reported at Sun Sep 26 16:39:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2131.0-2746_daily_bin1154 322.753 -27.7727 538444801 538704001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2131.0-2746 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   686.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             341.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            824 sec.

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

