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


Performing analysis on: 4FGL_J2131.0-2746_daily_bin1547
RA = 322.753, Dec = -27.7727
tmin = 640310401, tmax = 640569601
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='545192', job_status='RUN', time_executed='2021-09-26 16:37:09.010205', time_epoch_executed='1632699429.01' WHERE source_name='4FGL J2131.0-2746' and cadence='daily' and bin_id='1547'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/545192

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/545192/ft1_4FGL_J2131.0-2746_daily_bin1547.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/545192/ft2_4FGL_J2131.0-2746_daily_bin1547.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/545192/ft1_4FGL_J2131.0-2746_daily_bin1547.fits outfile=/scratch/kocevski/545192/ft1_filteredMKT_4FGL_J2131.0-2746_daily_bin1547.fits ra=322.753 dec=-27.7727 rad=12.0 tmin=640310401.0 tmax=640569601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.08
user 4.82
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/545192/ft2_4FGL_J2131.0-2746_daily_bin1547.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/545192/ft1_filteredMKT_4FGL_J2131.0-2746_daily_bin1547.fits evtable="EVENTS" outfile="/scratch/kocevski/545192/ft1_filtered_4FGL_J2131.0-2746_daily_bin1547.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/545192/ft1_filtered_4FGL_J2131.0-2746_daily_bin1547.fits" evtable="EVENTS" scfile=/scratch/kocevski/545192/ft2_4FGL_J2131.0-2746_daily_bin1547.fits sctable="SC_DATA" outfile=/scratch/kocevski/545192/ltcube_640310401_640569601_4FGL_J2131.0-2746_daily_bin1547.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/545192/ft2_4FGL_J2131.0-2746_daily_bin1547.fits
.....................!
real 13.74
user 13.34
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/545192/ft1_filtered_4FGL_J2131.0-2746_daily_bin1547.fits evtable="EVENTS" scfile=/scratch/kocevski/545192/ft2_4FGL_J2131.0-2746_daily_bin1547.fits sctable="SC_DATA" expcube=/scratch/kocevski/545192/ltcube_640310401_640569601_4FGL_J2131.0-2746_daily_bin1547.fits outfile=/scratch/kocevski/545192/expmap_640310401_640569601_4FGL_J2131.0-2746_daily_bin1547.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/545192/ltcube_640310401_640569601_4FGL_J2131.0-2746_daily_bin1547.fits
.....................!
real 190.99
user 186.10
sys 4.39

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/545192/ft1_filtered_4FGL_J2131.0-2746_daily_bin1547.fits scfile=/scratch/kocevski/545192/ft2_4FGL_J2131.0-2746_daily_bin1547.fits outfile=/scratch/kocevski/545192/cmap_640310401_640569601_4FGL_J2131.0-2746_daily_bin1547.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/545192/ft1_filtered_4FGL_J2131.0-2746_daily_bin1547.fits scfile=/scratch/kocevski/545192/ft2_4FGL_J2131.0-2746_daily_bin1547.fits outfile=/scratch/kocevski/545192/cmap_HighResolution_640310401_640569601_4FGL_J2131.0-2746_daily_bin1547.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/545192/ft1_filtered_4FGL_J2131.0-2746_daily_bin1547.fits evtable="EVENTS" scfile=/scratch/kocevski/545192/ft2_4FGL_J2131.0-2746_daily_bin1547.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/545192/Model_4FGL_J2131.0-2746_daily_bin1547.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/545192/ft1_filtered_4FGL_J2131.0-2746_daily_bin1547.fits.....................!
real 73.46
user 71.93
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/545192/ft1_filtered_4FGL_J2131.0-2746_daily_bin1547.fits', '/scratch/kocevski/545192/ft2_4FGL_J2131.0-2746_daily_bin1547.fits', expMap='/scratch/kocevski/545192/expmap_640310401_640569601_4FGL_J2131.0-2746_daily_bin1547.fits', expCube='/scratch/kocevski/545192/ltcube_640310401_640569601_4FGL_J2131.0-2746_daily_bin1547.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/545192/Model_4FGL_J2131.0-2746_daily_bin1547.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/545192/ft1_filtered_4FGL_J2131.0-2746_daily_bin1547.fits
Spacecraft file(s): /scratch/kocevski/545192/ft2_4FGL_J2131.0-2746_daily_bin1547.fits
Exposure map: /scratch/kocevski/545192/expmap_640310401_640569601_4FGL_J2131.0-2746_daily_bin1547.fits
Exposure cube: /scratch/kocevski/545192/ltcube_640310401_640569601_4FGL_J2131.0-2746_daily_bin1547.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/545192/Model_4FGL_J2131.0-2746_daily_bin1547.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) = 9027.75211792

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10760E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .79728E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.292       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.6242       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.1399       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.667       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11397E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    11.358       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.5103       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .96613E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10247E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .78407       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.9668       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0168       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .98559       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=   9027.668     FROM MIGRAD    STATUS=CONVERGED    429 CALLS     1770 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.8461        .23957E-06** at limit **
   2  Prefactor     .10000E-03    18.944       -.23240E-05** at limit **
   3  norm          .10000E-03    5.3755       -.40416E-07** at limit **
   4  Prefactor     .10000E-03    12.234        .29825E-06** at limit **
   5  Prefactor     19.256        18.007        .56107E-06    .57118E-04
   6  Prefactor     .10000E-03    1.6810       -.11719E-06** at limit **
   7  norm          3.6265        3.5806       -.15865E-06    .31869E-04
   8  Prefactor     2.1377        2.9584        .75589E-07   -.65039E-04
   9  Prefactor     .10000E-03    2.1749        .13463E-07** at limit **
  10  Prefactor     12.721        10.538       -.24434E-06    .42185E-06
  11  Prefactor     .10000E-03    3.2828       -.65175E-07** at limit **
  12  norm          11.352        7.1910        .80764E-07    .82681E-05
  13  Prefactor     3.4730        18.168        .53500E-05    .21495E-03
  14  Prefactor     .10004E-03    95.780       -.11183E-04** at limit **
  15  norm          .10000E-03    3.0846       -.38007E-07** at limit **
  16  norm          .78410        .31683       -.73396E-08    .42805E-03
  17  Prefactor     .10000E-03    9.2016       -.25745E-06** at limit **
  18  Prefactor     3.9708        6.7777        .23096E-05   -.10080E-02
  19  Normalizat    1.0168        .16582       -.39181E-06    .81159E-04
  20  Prefactor     .98560        .98307E-01   -.85905E-07    .64443E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.2562
  Prefactor  = 0.0001
  norm       = 3.62646
  Prefactor  = 2.13771
  Prefactor  = 0.0001
  Prefactor  = 12.7207
  Prefactor  = 0.0001
  norm       = 11.352
  Prefactor  = 3.473
  Prefactor  = 0.000100039
  norm       = 0.0001
  norm       = 0.784099
  Prefactor  = 0.0001
  Prefactor  = 3.97081
  Normalizat = 1.01678
  Prefactor  = 0.985603
 **********
 **   18 **HESSE 
 **********

 FCN=   9027.668     FROM HESSE     STATUS=OK           289 CALLS     2059 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.0142        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.050        .20904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.3816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.256        18.011        .91187E-04   -1.4830    
   6  Prefactor     .10000E-03    1.6927        .12026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.6265        3.5881        .17439E-03   -1.5327    
   8  Prefactor     2.1377        2.9441        .18724E-03   -1.5416    
   9  Prefactor     .10000E-03    2.1878        .13683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.721        10.541        .11255E-03   -1.4994    
  11  Prefactor     .10000E-03    3.2878        .16813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.352        7.1936        .11887E-03   -1.5034    
  13  Prefactor     3.4730        20.130        .21578E-03   -1.5335    
  14  Prefactor     .10004E-03    107.27        .20785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.1969        .32487E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .78410        .31651        .32440E-04   -1.5531    
  17  Prefactor     .10000E-03    9.4640        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.9708        8.3889        .10126E-02   -1.5309    
  19  Normalizat    1.0168        .19647        .29547E-03   -.92470    
  20  Prefactor     .98560        .11687        .18121E-03   -.93211    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59815e-09
Minuit parameter uncertainties:
  1  1.51843e-05
  2  0.000221038
  3  1.1615e-06
  4  2.82809e-05
  5  18.0164
  6  2.2281e-06
  7  3.58834
  8  2.94434
  9  8.9044e-07
  10  10.5425
  11  2.23915e-06
  12  7.19416
  13  16.7308
  14  0.00407598
  15  2.92073e-05
  16  0.31651
  17  1.88679e-05
  18  8.39141
  19  0.196615
  20  0.116898
Done.

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

Extracting fit parameters...

4FGL J2131.0-2746
   Spectrum: LogParabola
257         norm:  3.626e+00  3.588e+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.856e-01  1.169e-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:  1.017e+00  1.966e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.91
Ra Dec: 322.753 -27.773
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 6.22e-09 +/- 6.15e-09
Energy Flux (Fixed Index): 1.25e-05 +/- 1.24e-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) = 9026.56510818
delta logL = 1.1033655377

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9026.26757847
delta logL = 1.40089524339

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1176       1.0000         .10000E-03   10000.    
     2 'alpha     '    .28464       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0175       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98697       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=   9026.268     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      211 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1101        1.1067        .21258E-01   -.48971E-03
   2  alpha         .28045        .65829        .50000        .66540E-04
   3  Normalizat    1.0174        .16119        .66772E-01    .87713E-03
   4  Prefactor     .98699        .98013E-01    .46104E-01    .14711E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 1.11008
  alpha      = 0.28045
  Normalizat = 1.0174
  Prefactor  = 0.986992
 **********
 **   18 **HESSE 
 **********

 FCN=   9026.268     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1101        2.0865        .72761E-03   -1.5497    
   2  alpha         .28045        .75783        .42191E-01   -1.0926    
   3  Normalizat    1.0174        .19100        .29537E-03   -.92450    
   4  Prefactor     .98699        .11628        .18109E-03   -.93164    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03316e-09
Minuit parameter uncertainties:
  1  2.08668
  2  0.827309
  3  0.191128
  4  0.116306
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/545192': 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) = 9026.26756493
delta logL = 1.40090879117

Extracting fit parameters...

4FGL J2131.0-2746
   Spectrum: LogParabola
257         norm:  1.110e+00  2.087e+00  1.000e-04  1.000e+04 ( 1.000e-13)
258        alpha:  2.804e-01  8.273e-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.870e-01  1.163e-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:  1.017e+00  1.911e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.71
Ra Dec: 322.753 -27.773
Photon Index (Free Index): 0.28 +/- 0.83
Photon Flux (Free Index): 2.58e-09 +/- 2.59e-09
Energy Flux (Free Index): 7.20e-05 +/- 9.15e-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/545192/cmap_HighResolution_640310401_640569601_4FGL_J2131.0-2746_daily_bin1547.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.22e-09', energy_flux2='7.20e-05', photon_flux_error='6.15e-09', dlogl='1.40e+00', energy_flux='1.25e-05', photon_flux2='2.58e-09', job_status='DONE', time_completed='2021-09-26 16:47:56.113239', photon_index_error2='0.83', photon_index2='0.28', ts='8.91', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='9.15e-05', EG='1.02', time_epoch_completed='1632700076.11', return_code='0', job_id='545192', GAL2='0.99', EG2='1.02', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='2.59e-09', ts2='11.71', photon_index='1.62' WHERE bin_id='1547' AND source_name='4FGL J2131.0-2746' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 16:47:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 545192: <4FGL_J2131.0-2746_daily_bin1547> in cluster <slac> Done

Job <4FGL_J2131.0-2746_daily_bin1547> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 16:35:20 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 16:35:37 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:35:37 2021
Terminated at Sun Sep 26 16:47:56 2021
Results reported at Sun Sep 26 16:47:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2131.0-2746_daily_bin1547 322.753 -27.7727 640310401 640569601 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 :                                   610.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   739 sec.
    Turnaround time :                            756 sec.

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

