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


Performing analysis on: 4FGL_J2131.0-2746_daily_bin1151
RA = 322.753, Dec = -27.7727
tmin = 537667201, tmax = 537926401
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='542600', job_status='RUN', time_executed='2021-09-26 16:27:59.074763', time_epoch_executed='1632698879.07' WHERE source_name='4FGL J2131.0-2746' and cadence='daily' and bin_id='1151'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/542600

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/542600/ft1_4FGL_J2131.0-2746_daily_bin1151.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/542600/ft2_4FGL_J2131.0-2746_daily_bin1151.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/542600/ft1_4FGL_J2131.0-2746_daily_bin1151.fits outfile=/scratch/kocevski/542600/ft1_filteredMKT_4FGL_J2131.0-2746_daily_bin1151.fits ra=322.753 dec=-27.7727 rad=12.0 tmin=537667201.0 tmax=537926401.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.20
user 4.89
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/542600/ft1_filtered_4FGL_J2131.0-2746_daily_bin1151.fits" evtable="EVENTS" scfile=/scratch/kocevski/542600/ft2_4FGL_J2131.0-2746_daily_bin1151.fits sctable="SC_DATA" outfile=/scratch/kocevski/542600/ltcube_537667201_537926401_4FGL_J2131.0-2746_daily_bin1151.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/542600/ft2_4FGL_J2131.0-2746_daily_bin1151.fits
.....................!
real 13.13
user 12.67
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/542600/ft1_filtered_4FGL_J2131.0-2746_daily_bin1151.fits evtable="EVENTS" scfile=/scratch/kocevski/542600/ft2_4FGL_J2131.0-2746_daily_bin1151.fits sctable="SC_DATA" expcube=/scratch/kocevski/542600/ltcube_537667201_537926401_4FGL_J2131.0-2746_daily_bin1151.fits outfile=/scratch/kocevski/542600/expmap_537667201_537926401_4FGL_J2131.0-2746_daily_bin1151.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/542600/ltcube_537667201_537926401_4FGL_J2131.0-2746_daily_bin1151.fits
.....................!
real 193.14
user 187.10
sys 5.55

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/542600/ft1_filtered_4FGL_J2131.0-2746_daily_bin1151.fits scfile=/scratch/kocevski/542600/ft2_4FGL_J2131.0-2746_daily_bin1151.fits outfile=/scratch/kocevski/542600/cmap_537667201_537926401_4FGL_J2131.0-2746_daily_bin1151.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/542600/ft1_filtered_4FGL_J2131.0-2746_daily_bin1151.fits scfile=/scratch/kocevski/542600/ft2_4FGL_J2131.0-2746_daily_bin1151.fits outfile=/scratch/kocevski/542600/cmap_HighResolution_537667201_537926401_4FGL_J2131.0-2746_daily_bin1151.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/542600/ft1_filtered_4FGL_J2131.0-2746_daily_bin1151.fits evtable="EVENTS" scfile=/scratch/kocevski/542600/ft2_4FGL_J2131.0-2746_daily_bin1151.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/542600/Model_4FGL_J2131.0-2746_daily_bin1151.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/542600/ft1_filtered_4FGL_J2131.0-2746_daily_bin1151.fits.....................!
real 48.18
user 46.44
sys 1.41

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.813       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.129       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.5675       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.2678       1.0000         .10000E-03   10000.    
     7 'norm      '    .13799E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.3022       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.7171       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.716       1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    11.531       1.0000         .10000E-03   10000.    
    16 'norm      '    .78667       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .95736       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0322       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=   5084.735     FROM MIGRAD    STATUS=CONVERGED    405 CALLS     2042 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.813        15.445        .28997E-06   -.24733E-04
   2  Prefactor     .10000E-03    33.768        .77835E-06** at limit **
   3  norm          .10000E-03    18.309        .10275E-05** at limit **
   4  Prefactor     12.126        19.241       -.11306E-06   -.10253E-03
   5  Prefactor     2.5176        64.428       -.50146E-05   -.24670E-03
   6  Prefactor     8.2703        12.296        .10594E-05    .10436E-03
   7  norm          .10001E-03    22.280       -.15738E-04** at limit **
   8  Prefactor     5.3025        9.4669        .96734E-06    .21820E-03
   9  Prefactor     9.7183        9.9097        .23759E-06   -.68205E-04
  10  Prefactor     .10000E-03    7.1512        .46352E-06** at limit **
  11  Prefactor     13.716        16.696        .20803E-06   -.51032E-04
  12  norm          .10000E-03    5.8940        .24514E-06** at limit **
  13  Prefactor     .10000E-03    47.952       -.23306E-06** at limit **
  14  Prefactor     .10000E-03    37.736        .13421E-05** at limit **
  15  norm          11.531        6.9324        .35259E-06   -.84005E-04
  16  norm          .78666        .37332       -.89884E-08   -.82848E-03
  17  Prefactor     .10000E-03    7.4935        .45298E-06** at limit **
  18  Prefactor     .10000E-03    6.3274        .12529E-06** at limit **
  19  Normalizat    .95704        .25299       -.41369E-05   -.65734E-03
  20  Prefactor     1.0324        .14538        .49683E-06   -.90442E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.813
  Prefactor  = 0.000100001
  norm       = 0.000100002
  Prefactor  = 12.126
  Prefactor  = 2.5176
  Prefactor  = 8.27028
  norm       = 0.000100015
  Prefactor  = 5.30246
  Prefactor  = 9.71826
  Prefactor  = 0.0001
  Prefactor  = 13.7158
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 11.5312
  norm       = 0.786664
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.957038
  Prefactor  = 1.03239
 **********
 **   18 **HESSE 
 **********

 FCN=   5084.735     FROM HESSE     STATUS=OK           291 CALLS     2333 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.813        15.452        .92342E-04   -1.4840    
   2  Prefactor     .10000E-03    33.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    18.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.126        19.265        .11502E-03   -1.5011    
   5  Prefactor     2.5176        68.426        .25475E-03   -1.5391    
   6  Prefactor     8.2703        12.379        .13943E-03   -1.5133    
   7  norm          .10001E-03    22.617        .33666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.3025        9.5044        .17455E-03   -1.5247    
   9  Prefactor     9.7183        9.9041        .12855E-03   -1.5084    
  10  Prefactor     .10000E-03    7.1761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.716        16.689        .10815E-03   -1.4967    
  12  norm          .10000E-03    5.9268        .16908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    49.190        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    37.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.531        7.0024        .11798E-03   -1.5029    
  16  norm          .78666        .37482        .28515E-04   -1.5531    
  17  Prefactor     .10000E-03    7.5735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.3326        .17520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .95704        .30001        .33036E-03   -.94484    
  20  Prefactor     1.0324        .17093        .18980E-03   -.91658    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.88382e-09
Minuit parameter uncertainties:
  1  15.4553
  2  0.000436346
  3  0.000401763
  4  19.2745
  5  26.2831
  6  12.3832
  7  0.0011586
  8  9.50706
  9  9.90572
  10  0.000111124
  11  16.6947
  12  4.48239e-05
  13  0.000206526
  14  0.00079817
  15  7.00285
  16  0.374817
  17  8.35237e-05
  18  1.9429e-05
  19  0.300534
  20  0.171018
Done.

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

Extracting fit parameters...

4FGL J2131.0-2746
   Spectrum: LogParabola
257         norm:  1.000e-04  1.159e-03  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:  1.032e+00  1.710e-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.570e-01  3.005e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/542600/likelihoodResults_537667201_537926401_4FGL_J2131.0-2746_daily_bin1151.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): 102
logL (Free Index) = 5084.7348626
delta logL = -0.000209479831938

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5084.70167248
delta logL = 0.0329806434893

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .68368       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6237       1.0000          .0000       5.0000    
     3 'Normalizat'    .95300       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0301       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5084.702     FROM MIGRAD    STATUS=FAILED        99 CALLS      331 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .68629        10.819        .23577E-03   -.35537E-04
   2  alpha         2.6186        3.7928        .30106E-01    .10291E-03
   3  Normalizat    .95515        .27949        .33063E-03    .13445E-04
   4  Prefactor     1.0298        .16701        .19000E-03    .12685E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5084.702     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      420 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .68629        10.819        .19651E-03   -1.5542    
   2  alpha         2.6186        3.7928        .38242E-02    .47460E-01
   3  Normalizat    .95515        .27949        .18019E-03   -.94548    
   4  Prefactor     1.0298        .16701        .80538E-04   -.91744    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5084.702     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      455 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .68629        5.6602        .94309E-05   -.18805E-04
   2  alpha         2.6186        3.6155        .60213E-02    .54188E-06
   3  Normalizat    .95515        .27876        .13225E-04   -.10316E-05
   4  Prefactor     1.0298        .16673        .76002E-05   -.14958E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.68629
  alpha      = 2.61861
  Normalizat = 0.955151
  Prefactor  = 1.02977
 **********
 **   18 **HESSE 
 **********

 FCN=   5084.702     FROM HESSE     STATUS=OK            23 CALLS      478 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .68629        5.2335        .18862E-05   -1.5542    
   2  alpha         2.6186        3.5875        .24085E-03    .47463E-01
   3  Normalizat    .95515        .27854        .26450E-05   -.94548    
   4  Prefactor     1.0298        .16666        .15200E-05   -.91744    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37108e-12
Minuit parameter uncertainties:
  1  3.79052
  2  2.53035
  3  0.278968
  4  0.166739
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/542600': 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) = 5084.70160169
delta logL = 0.0330514370789

Extracting fit parameters...

4FGL J2131.0-2746
   Spectrum: LogParabola
257         norm:  6.863e-01  3.791e+00  1.000e-04  1.000e+04 ( 1.000e-13)
258        alpha:  2.619e+00  2.530e+00  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:  1.030e+00  1.667e-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.552e-01  2.790e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 322.753 -27.773

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/542600/cmap_HighResolution_537667201_537926401_4FGL_J2131.0-2746_daily_bin1151.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.03e-05', job_status='DONE', photon_flux_upper_limit='4.49e-08', time_completed='2021-09-26 16:37:42.183828', job_id='542600', GAL2='1.03', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1632699462.18', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='3.31e-02', ts2='0.07', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1151' AND source_name='4FGL J2131.0-2746' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 16:37:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 542600: <4FGL_J2131.0-2746_daily_bin1151> in cluster <slac> Done

Job <4FGL_J2131.0-2746_daily_bin1151> 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) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 16:27:08 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:08 2021
Terminated at Sun Sep 26 16:37:42 2021
Results reported at Sun Sep 26 16:37:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2131.0-2746_daily_bin1151 322.753 -27.7727 537667201 537926401 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 :                                   540.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   634 sec.
    Turnaround time :                            724 sec.

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

