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


Performing analysis on: 4FGL_J2131.0-2746_weekly_bin684
RA = 322.753, Dec = -27.7727
tmin = 652665601, tmax = 653270401
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='774397', job_status='RUN', time_executed='2021-12-09 02:27:41.333998', time_epoch_executed='1639045661.33' WHERE source_name='4FGL J2131.0-2746' and cadence='weekly' and bin_id='684'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/774397

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/774397/ft1_4FGL_J2131.0-2746_weekly_bin684.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/774397/ft2_4FGL_J2131.0-2746_weekly_bin684.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/774397/ft1_4FGL_J2131.0-2746_weekly_bin684.fits outfile=/scratch/kocevski/774397/ft1_filteredMKT_4FGL_J2131.0-2746_weekly_bin684.fits ra=322.753 dec=-27.7727 rad=12.0 tmin=652665601.0 tmax=653270401.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 6.66
user 6.37
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/774397/ft2_4FGL_J2131.0-2746_weekly_bin684.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/774397/ft1_filteredMKT_4FGL_J2131.0-2746_weekly_bin684.fits evtable="EVENTS" outfile="/scratch/kocevski/774397/ft1_filtered_4FGL_J2131.0-2746_weekly_bin684.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.37
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/774397/ft1_filtered_4FGL_J2131.0-2746_weekly_bin684.fits" evtable="EVENTS" scfile=/scratch/kocevski/774397/ft2_4FGL_J2131.0-2746_weekly_bin684.fits sctable="SC_DATA" outfile=/scratch/kocevski/774397/ltcube_652665601_653270401_4FGL_J2131.0-2746_weekly_bin684.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/774397/ft2_4FGL_J2131.0-2746_weekly_bin684.fits
.....................!
real 32.31
user 31.68
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/774397/ft1_filtered_4FGL_J2131.0-2746_weekly_bin684.fits evtable="EVENTS" scfile=/scratch/kocevski/774397/ft2_4FGL_J2131.0-2746_weekly_bin684.fits sctable="SC_DATA" expcube=/scratch/kocevski/774397/ltcube_652665601_653270401_4FGL_J2131.0-2746_weekly_bin684.fits outfile=/scratch/kocevski/774397/expmap_652665601_653270401_4FGL_J2131.0-2746_weekly_bin684.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/774397/ltcube_652665601_653270401_4FGL_J2131.0-2746_weekly_bin684.fits
.....................!
real 192.92
user 187.56
sys 4.89

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/774397/ft1_filtered_4FGL_J2131.0-2746_weekly_bin684.fits scfile=/scratch/kocevski/774397/ft2_4FGL_J2131.0-2746_weekly_bin684.fits outfile=/scratch/kocevski/774397/cmap_652665601_653270401_4FGL_J2131.0-2746_weekly_bin684.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.57
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/774397/ft1_filtered_4FGL_J2131.0-2746_weekly_bin684.fits scfile=/scratch/kocevski/774397/ft2_4FGL_J2131.0-2746_weekly_bin684.fits outfile=/scratch/kocevski/774397/cmap_HighResolution_652665601_653270401_4FGL_J2131.0-2746_weekly_bin684.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.58
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/774397/ft1_filtered_4FGL_J2131.0-2746_weekly_bin684.fits evtable="EVENTS" scfile=/scratch/kocevski/774397/ft2_4FGL_J2131.0-2746_weekly_bin684.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/774397/Model_4FGL_J2131.0-2746_weekly_bin684.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/774397/ft1_filtered_4FGL_J2131.0-2746_weekly_bin684.fits.....................!
real 38.95
user 37.56
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1291       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12226E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.622       1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.742       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1590       1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.778       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11794E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .52972       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.6470       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .26585       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2301       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=   3430.483     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     2058 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1308        9.0405       -.10833E-07    .22970E-04
   2  Prefactor     .10000E-03    228.20       -.50820E-05** at limit **
   3  norm          .10000E-03    28.130       -.15209E-05** at limit **
   4  Prefactor     14.634        28.821       -.29617E-05    .99121E-05
   5  Prefactor     38.747        32.533       -.63511E-06    .95046E-05
   6  Prefactor     2.1616        4.1341        .96088E-06   -.97650E-03
   7  norm          .10000E-03    10.198       -.11378E-07** at limit **
   8  Prefactor     .10000E-03    8.0392        .46365E-07** at limit **
   9  Prefactor     37.782        25.058       -.95830E-06   -.21977E-03
  10  Prefactor     .10000E-03    15.055       -.21204E-07** at limit **
  11  Prefactor     .10000E-03    41.238        .16838E-04** at limit **
  12  norm          .10000E-03    6.0881        .41488E-07** at limit **
  13  Prefactor     .10000E-03    18.785        .25937E-06** at limit **
  14  Prefactor     .10000E-03    45.860       -.18741E-04** at limit **
  15  norm          .10000E-03    6.0496        .98456E-07** at limit **
  16  norm          .52977        .53955        .24143E-07    .13290E-03
  17  Prefactor     8.6074        41.701       -.91891E-05   -.10527E-04
  18  Prefactor     .10000E-03    84.290        .63504E-05** at limit **
  19  Normalizat    .26584        .51496       -.39295E-05   -.66690E-05
  20  Prefactor     1.2301        .24888        .17914E-05   -.42133E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.13083
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.634
  Prefactor  = 38.7467
  Prefactor  = 2.16165
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.7815
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.529766
  Prefactor  = 8.60741
  Prefactor  = 0.0001
  Normalizat = 0.265838
  Prefactor  = 1.23009
 **********
 **   18 **HESSE 
 **********

 FCN=   3430.483     FROM HESSE     STATUS=OK           287 CALLS     2345 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1308        8.9663        .15024E-03   -1.5174    
   2  Prefactor     .10000E-03    229.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    28.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.634        28.037        .10475E-03   -1.4943    
   5  Prefactor     38.747        32.343        .64394E-04   -1.4462    
   6  Prefactor     2.1616        13.494        .14018E-02   -1.5414    
   7  norm          .10000E-03    10.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.0603        .16217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     37.782        24.035        .65208E-04   -1.4478    
  10  Prefactor     .10000E-03    15.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    41.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    6.0935        .14113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    45.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.0848        .14062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .52977        .55115        .42223E-04   -1.5562    
  17  Prefactor     8.6074        41.158        .13632E-03   -1.5121    
  18  Prefactor     .10000E-03    84.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .26584        .39455        .63049E-03   -1.2494    
  20  Prefactor     1.2301        .19541        .15834E-03   -.85410    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.24057e-09
Minuit parameter uncertainties:
  1  8.96803
  2  0.000325017
  3  3.5212e-05
  4  28.0625
  5  32.3575
  6  10.8049
  7  5.22504e-06
  8  5.2951e-07
  9  24.0414
  10  1.18858e-05
  11  0.000282583
  12  3.42759e-06
  13  1.2795e-05
  14  0.000238896
  15  7.9501e-06
  16  0.551158
  17  37.6857
  18  0.000359055
  19  0.398784
  20  0.195523
Done.

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

Extracting fit parameters...

4FGL J2131.0-2746
   Spectrum: LogParabola
257         norm:  1.000e-04  5.225e-06  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.230e+00  1.955e-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:  2.658e-01  3.988e-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: 6.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.26e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/774397/likelihoodResults_652665601_653270401_4FGL_J2131.0-2746_weekly_bin684.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) = 3430.48369586
delta logL = -0.000463904023945

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3430.48323231
delta logL = -3.53574705514e-07

Fit tolerance = 1e-08

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

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

 FCN=   3430.483     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      239 TOTAL
                     EDM=   .96E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    665.36        .18142E-02** at limit **
   2  alpha         1.8934        3.4453        .50000       -.10152E-07
   3  Normalizat    .26584        .66899E-01    .63047E-03   -.31736E-05
   4  Prefactor     1.2301        .34913E-01    .15834E-03   -.19026E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.89341
  Normalizat = 0.265838
  Prefactor  = 1.23009
 **********
 **   18 **HESSE 
 **********

 FCN=   3430.483     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .37E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2105.0        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8934        3.8512        .50000       -.24508    
   3  Normalizat    .26584        .19474        .25219E-04   -1.2494    
   4  Prefactor     1.2301        .10181        .63337E-05   -.85410    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.74748e-12
Minuit parameter uncertainties:
  1  0.000444517
  2  4599.04
  3  0.195238
  4  0.10183
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/774397': 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): 102
logL (Free Index) = 3430.48323174
delta logL = 2.19463345275e-07

Extracting fit parameters...

4FGL J2131.0-2746
   Spectrum: LogParabola
257         norm:  1.000e-04  4.445e-04  1.000e-04  1.000e+04 ( 1.000e-13)
258        alpha:  1.893e+00  4.599e+03  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.230e+00  1.018e-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:  2.658e-01  1.952e-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/774397/cmap_HighResolution_652665601_653270401_4FGL_J2131.0-2746_weekly_bin684.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-04', job_status='DONE', photon_flux_upper_limit='6.25e-08', time_completed='2021-12-09 02:35:58.639534', job_id='774397', GAL2='1.23', fit_tolerance='1e-08', EG2='0.27', EG='0.27', time_epoch_completed='1639046158.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='2.19e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='684' AND source_name='4FGL J2131.0-2746' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Thu Dec  9 02:35:58 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 774397: <4FGL_J2131.0-2746_weekly_bin684> in cluster <slac> Done

Job <4FGL_J2131.0-2746_weekly_bin684> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Dec  9 02:25:38 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec  9 02:26:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec  9 02:26:34 2021
Terminated at Thu Dec  9 02:35:59 2021
Results reported at Thu Dec  9 02:35:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2131.0-2746_weekly_bin684 322.753 -27.7727 652665601 653270401 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 :                                   498.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             353.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   564 sec.
    Turnaround time :                            621 sec.

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

