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


Performing analysis on: 4FGL_J2131.0-2746_daily_bin1557
RA = 322.753, Dec = -27.7727
tmin = 642902401, tmax = 643161601
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='545209', job_status='RUN', time_executed='2021-09-26 16:36:04.694114', time_epoch_executed='1632699364.69' WHERE source_name='4FGL J2131.0-2746' and cadence='daily' and bin_id='1557'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/545209

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/545209/ft1_4FGL_J2131.0-2746_daily_bin1557.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/545209/ft2_4FGL_J2131.0-2746_daily_bin1557.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/545209/ft1_4FGL_J2131.0-2746_daily_bin1557.fits outfile=/scratch/kocevski/545209/ft1_filteredMKT_4FGL_J2131.0-2746_daily_bin1557.fits ra=322.753 dec=-27.7727 rad=12.0 tmin=642902401.0 tmax=643161601.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 2.93
user 2.70
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/545209/ft1_filtered_4FGL_J2131.0-2746_daily_bin1557.fits" evtable="EVENTS" scfile=/scratch/kocevski/545209/ft2_4FGL_J2131.0-2746_daily_bin1557.fits sctable="SC_DATA" outfile=/scratch/kocevski/545209/ltcube_642902401_643161601_4FGL_J2131.0-2746_daily_bin1557.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/545209/ft2_4FGL_J2131.0-2746_daily_bin1557.fits
.....................!
real 11.98
user 11.61
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/545209/ft1_filtered_4FGL_J2131.0-2746_daily_bin1557.fits evtable="EVENTS" scfile=/scratch/kocevski/545209/ft2_4FGL_J2131.0-2746_daily_bin1557.fits sctable="SC_DATA" expcube=/scratch/kocevski/545209/ltcube_642902401_643161601_4FGL_J2131.0-2746_daily_bin1557.fits outfile=/scratch/kocevski/545209/expmap_642902401_643161601_4FGL_J2131.0-2746_daily_bin1557.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/545209/ltcube_642902401_643161601_4FGL_J2131.0-2746_daily_bin1557.fits
.....................!
real 159.67
user 154.40
sys 4.86

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/545209/ft1_filtered_4FGL_J2131.0-2746_daily_bin1557.fits scfile=/scratch/kocevski/545209/ft2_4FGL_J2131.0-2746_daily_bin1557.fits outfile=/scratch/kocevski/545209/cmap_642902401_643161601_4FGL_J2131.0-2746_daily_bin1557.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.52
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/545209/ft1_filtered_4FGL_J2131.0-2746_daily_bin1557.fits scfile=/scratch/kocevski/545209/ft2_4FGL_J2131.0-2746_daily_bin1557.fits outfile=/scratch/kocevski/545209/cmap_HighResolution_642902401_643161601_4FGL_J2131.0-2746_daily_bin1557.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.50
user 0.35
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/545209/ft1_filtered_4FGL_J2131.0-2746_daily_bin1557.fits evtable="EVENTS" scfile=/scratch/kocevski/545209/ft2_4FGL_J2131.0-2746_daily_bin1557.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/545209/Model_4FGL_J2131.0-2746_daily_bin1557.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/545209/ft1_filtered_4FGL_J2131.0-2746_daily_bin1557.fits.....................!
real 49.58
user 48.33
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/545209/ft1_filtered_4FGL_J2131.0-2746_daily_bin1557.fits', '/scratch/kocevski/545209/ft2_4FGL_J2131.0-2746_daily_bin1557.fits', expMap='/scratch/kocevski/545209/expmap_642902401_643161601_4FGL_J2131.0-2746_daily_bin1557.fits', expCube='/scratch/kocevski/545209/ltcube_642902401_643161601_4FGL_J2131.0-2746_daily_bin1557.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/545209/Model_4FGL_J2131.0-2746_daily_bin1557.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/545209/ft1_filtered_4FGL_J2131.0-2746_daily_bin1557.fits
Spacecraft file(s): /scratch/kocevski/545209/ft2_4FGL_J2131.0-2746_daily_bin1557.fits
Exposure map: /scratch/kocevski/545209/expmap_642902401_643161601_4FGL_J2131.0-2746_daily_bin1557.fits
Exposure cube: /scratch/kocevski/545209/ltcube_642902401_643161601_4FGL_J2131.0-2746_daily_bin1557.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/545209/Model_4FGL_J2131.0-2746_daily_bin1557.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 7070.06144474

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2809       1.0000         .10000E-03   10000.    
     2 'Prefactor '    39.736       1.0000         .10000E-03   10000.    
     3 'norm      '    .29449       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6963       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4235       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5353       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .31366E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12139E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    95.881       1.0000         .10000E-03   10000.    
    15 'norm      '    1.5554       1.0000         .10000E-03   10000.    
    16 'norm      '    .43753       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    30.950       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1216       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96224       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=   7069.916     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     2237 TOTAL
                     EDM=   .35E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2797        8.3566        .10192E-06   -.18253E-04
   2  Prefactor     40.066        77.427       -.15837E-06   -.84047E-05
   3  norm          .13663        12.223        .20640E-06    .35436E-05
   4  Prefactor     .10000E-03    12.839       -.33887E-07** at limit **
   5  Prefactor     1.6973        108.04        .27503E-04   -.91169E-05
   6  Prefactor     .10000E-03    1.8494        .20272E-07** at limit **
   7  norm          .10000E-03    2.4761        .38199E-07** at limit **
   8  Prefactor     .10000E-03    2.3127        .75803E-08** at limit **
   9  Prefactor     1.4216        .72578        .94255E-08   -.50253E-03
  10  Prefactor     4.5366        14.717       -.55306E-05   -.91560E-05
  11  Prefactor     .10000E-03    3.4809       -.25662E-07** at limit **
  12  norm          .10000E-03    4.5944        .41620E-06** at limit **
  13  Prefactor     .10000E-03    38.668       -.83076E-06** at limit **
  14  Prefactor     95.956        77.346        .41439E-05    .20496E-04
  15  norm          1.5551        5.6444       -.64048E-06   -.11442E-03
  16  norm          .43736        .35703        .31778E-08   -.18867E-03
  17  Prefactor     .10000E-03    3.4632       -.11429E-07** at limit **
  18  Prefactor     30.935        22.452        .19329E-05   -.13823E-05
  19  Normalizat    1.1213        .20416       -.89809E-06   -.13319E-03
  20  Prefactor     .96246        .11453       -.47114E-06   -.23197E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.27967
  Prefactor  = 40.0656
  norm       = 0.136629
  Prefactor  = 0.0001
  Prefactor  = 1.69734
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.4216
  Prefactor  = 4.53658
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 95.9561
  norm       = 1.55509
  norm       = 0.437364
  Prefactor  = 0.0001
  Prefactor  = 30.9353
  Normalizat = 1.12127
  Prefactor  = 0.962462
 **********
 **   18 **HESSE 
 **********

 FCN=   7069.916     FROM HESSE     STATUS=OK           301 CALLS     2538 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2797        8.3474        .17490E-03   -1.5248    
   2  Prefactor     40.066        77.314        .63587E-04   -1.4441    
   3  norm          .13663        16.560        .10829       -1.5634    
   4  Prefactor     .10000E-03    12.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.6973        107.67        .32308E-03   -1.5447    
   6  Prefactor     .10000E-03    1.8571        .11166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.4781        .12922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.3219        .12487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4216        5.6326        .18122E-02   -1.5470    
  10  Prefactor     4.5366        14.676        .18904E-03   -1.5282    
  11  Prefactor     .10000E-03    3.4849        .15321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    44.650        .33950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    38.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     95.956        75.843        .41048E-04   -1.3746    
  15  norm          1.5551        5.3623        .29864E-03   -1.5459    
  16  norm          .43736        .33441        .41436E-03   -1.5576    
  17  Prefactor     .10000E-03    3.4693        .15279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     30.935        22.634        .72021E-04   -1.4595    
  19  Normalizat    1.1213        .24241        .29741E-03   -.89072    
  20  Prefactor     .96246        .13597        .18976E-03   -.93991    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09196e-09
Minuit parameter uncertainties:
  1  8.34926
  2  77.5085
  3  3.00814
  4  3.19541e-06
  5  27.0878
  6  2.35684e-06
  7  1.95664e-06
  8  3.6708e-06
  9  5.63472
  10  14.6881
  11  7.23737e-07
  12  0.000504667
  13  0.000176915
  14  75.9198
  15  5.36396
  16  0.334408
  17  2.73032e-06
  18  22.6408
  19  0.242656
  20  0.136016
Done.

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

Extracting fit parameters...

4FGL J2131.0-2746
   Spectrum: LogParabola
257         norm:  1.000e-04  1.957e-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:  9.625e-01  1.360e-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.121e+00  2.427e-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: 2.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.77e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/545209/likelihoodResults_642902401_643161601_4FGL_J2131.0-2746_daily_bin1557.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) = 7069.91792713
delta logL = -0.00187558609468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7069.91605154
delta logL = 5.88443072047e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6230       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1213       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96246       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=   7069.666     FROM MIGRAD    STATUS=FAILED       131 CALLS      279 TOTAL
                     EDM=   .31E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .67446E-02    .61856        .23046E-02    .10465E-01
   2  alpha         4.8788        3.5950        .50000       -.11687E-03
   3  Normalizat    1.0832        .17220        .29741E-03    .15282E-03
   4  Prefactor     .97347        .58883E-01    .18976E-03    .12403E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7069.666     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      367 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .67446E-02    .61856        .18485E-04    .10465E-01
   2  alpha         4.8788        3.5950        .94335E-02   -.11687E-03
   3  Normalizat    1.0832        .17220        .18256E-03    .15282E-03
   4  Prefactor     .97347        .58883E-01    .42278E-04    .12403E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7069.666     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      443 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .67445E-02    .12760        .40847E-06   -.34156E-02
   2  alpha         4.8788        4.2590        .36166E-02   -.37156E-05
   3  Normalizat    1.0832        .22333        .23793E-05    .16628E-03
   4  Prefactor     .97347        .13120        .75905E-05    .13779E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00674455
  alpha      = 4.8788
  Normalizat = 1.08323
  Prefactor  = 0.973474
 **********
 **   18 **HESSE 
 **********

 FCN=   7069.666     FROM HESSE     STATUS=OK            23 CALLS      466 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .67445E-02    .98667E-01    .37412E-06   -1.5692    
   2  alpha         4.8788        4.7029        .14466E-03    1.2581    
   3  Normalizat    1.0832        .22547        .47586E-06   -.90292    
   4  Prefactor     .97347        .13214        .15181E-05   -.93619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58909e-10
Minuit parameter uncertainties:
  1  0.0512093
  2  2.65616
  3  0.225667
  4  0.132183
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/545209': 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) = 7069.66582988
delta logL = 0.250221660727

Extracting fit parameters...

4FGL J2131.0-2746
   Spectrum: LogParabola
257         norm:  6.745e-03  5.121e-02  1.000e-04  1.000e+04 ( 1.000e-13)
258        alpha:  4.879e+00  2.656e+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:  9.735e-01  1.322e-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.083e+00  2.257e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/545209/cmap_HighResolution_642902401_643161601_4FGL_J2131.0-2746_daily_bin1557.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.77e-05', job_status='DONE', photon_flux_upper_limit='2.37e-08', time_completed='2021-09-26 16:45:03.446122', job_id='545209', GAL2='0.97', fit_tolerance='1e-08', EG2='1.08', EG='1.12', time_epoch_completed='1632699903.45', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.50e-01', ts2='0.52', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1557' AND source_name='4FGL J2131.0-2746' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 16:45:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 545209: <4FGL_J2131.0-2746_daily_bin1557> in cluster <slac> Done

Job <4FGL_J2131.0-2746_daily_bin1557> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 16:35:21 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 16:35:38 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:38 2021
Terminated at Sun Sep 26 16:45:03 2021
Results reported at Sun Sep 26 16:45:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2131.0-2746_daily_bin1557 322.753 -27.7727 642902401 643161601 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 :                                   533.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   565 sec.
    Turnaround time :                            582 sec.

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

