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


Performing analysis on: 4FGL_J2131.0-2746_daily_bin1431
RA = 322.753, Dec = -27.7727
tmin = 610243201, tmax = 610502401
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='543969', job_status='RUN', time_executed='2021-09-26 16:32:32.861420', time_epoch_executed='1632699152.86' WHERE source_name='4FGL J2131.0-2746' and cadence='daily' and bin_id='1431'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/543969

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/543969/ft1_4FGL_J2131.0-2746_daily_bin1431.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/543969/ft2_4FGL_J2131.0-2746_daily_bin1431.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/543969/ft1_4FGL_J2131.0-2746_daily_bin1431.fits outfile=/scratch/kocevski/543969/ft1_filteredMKT_4FGL_J2131.0-2746_daily_bin1431.fits ra=322.753 dec=-27.7727 rad=12.0 tmin=610243201.0 tmax=610502401.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 4.21
user 3.88
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/543969/ft1_filtered_4FGL_J2131.0-2746_daily_bin1431.fits" evtable="EVENTS" scfile=/scratch/kocevski/543969/ft2_4FGL_J2131.0-2746_daily_bin1431.fits sctable="SC_DATA" outfile=/scratch/kocevski/543969/ltcube_610243201_610502401_4FGL_J2131.0-2746_daily_bin1431.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/543969/ft2_4FGL_J2131.0-2746_daily_bin1431.fits
.....................!
real 20.89
user 20.40
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/543969/ft1_filtered_4FGL_J2131.0-2746_daily_bin1431.fits evtable="EVENTS" scfile=/scratch/kocevski/543969/ft2_4FGL_J2131.0-2746_daily_bin1431.fits sctable="SC_DATA" expcube=/scratch/kocevski/543969/ltcube_610243201_610502401_4FGL_J2131.0-2746_daily_bin1431.fits outfile=/scratch/kocevski/543969/expmap_610243201_610502401_4FGL_J2131.0-2746_daily_bin1431.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/543969/ltcube_610243201_610502401_4FGL_J2131.0-2746_daily_bin1431.fits
.....................!
real 197.10
user 191.41
sys 5.11

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/543969/ft1_filtered_4FGL_J2131.0-2746_daily_bin1431.fits scfile=/scratch/kocevski/543969/ft2_4FGL_J2131.0-2746_daily_bin1431.fits outfile=/scratch/kocevski/543969/cmap_610243201_610502401_4FGL_J2131.0-2746_daily_bin1431.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.59
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/543969/ft1_filtered_4FGL_J2131.0-2746_daily_bin1431.fits scfile=/scratch/kocevski/543969/ft2_4FGL_J2131.0-2746_daily_bin1431.fits outfile=/scratch/kocevski/543969/cmap_HighResolution_610243201_610502401_4FGL_J2131.0-2746_daily_bin1431.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.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/543969/ft1_filtered_4FGL_J2131.0-2746_daily_bin1431.fits evtable="EVENTS" scfile=/scratch/kocevski/543969/ft2_4FGL_J2131.0-2746_daily_bin1431.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/543969/Model_4FGL_J2131.0-2746_daily_bin1431.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/543969/ft1_filtered_4FGL_J2131.0-2746_daily_bin1431.fits.....................!
real 52.40
user 50.85
sys 1.39

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.073       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.203       1.0000         .10000E-03   10000.    
     5 'Prefactor '    53.784       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .29448       1.0000         .10000E-03   10000.    
     7 'norm      '    3.4892       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .28009E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5155       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.383       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .13009E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .14542       1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.027       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.857       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4265       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .69762       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=   5423.295     FROM MIGRAD    STATUS=CONVERGED    408 CALLS     2056 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.071        12.443        .51889E-06    .47149E-04
   2  Prefactor     .10000E-03    34.659        .14315E-06** at limit **
   3  norm          .10000E-03    9.2201       -.22201E-06** at limit **
   4  Prefactor     23.194        24.888       -.90509E-05    .72420E-04
   5  Prefactor     53.770        34.589       -.13131E-04    .37211E-04
   6  Prefactor     .29956        7.3073       -.14608E-05    .52261E-05
   7  norm          3.4891        6.8961       -.52594E-06   -.15852E-03
   8  Prefactor     .10000E-03    3.3524       -.74795E-07** at limit **
   9  Prefactor     .10005E-03    6.4448       -.16373E-05** at limit **
  10  Prefactor     4.5140        9.5684       -.11471E-05   -.78488E-04
  11  Prefactor     .10000E-03    7.5157       -.25668E-05** at limit **
  12  norm          .10000E-03    7.7916        .17246E-05** at limit **
  13  Prefactor     13.382        14.289       -.24646E-06    .10143E-04
  14  Prefactor     .10000E-03    29.811        .30161E-05** at limit **
  15  norm          .10000E-03    3.0429        .39899E-07** at limit **
  16  norm          .14547        .20502       -.49177E-07   -.71551E-03
  17  Prefactor     24.025        14.679       -.68455E-06    .19229E-04
  18  Prefactor     15.855        19.049       -.17392E-05   -.16071E-05
  19  Normalizat    1.4267        .22893        .25905E-05    .26110E-03
  20  Prefactor     .69757        .12638        .18963E-05    .34392E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.0709
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.1939
  Prefactor  = 53.7703
  Prefactor  = 0.299555
  norm       = 3.48907
  Prefactor  = 0.0001
  Prefactor  = 0.000100047
  Prefactor  = 4.51401
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.3817
  Prefactor  = 0.0001
  norm       = 0.000100002
  norm       = 0.145466
  Prefactor  = 24.025
  Prefactor  = 15.8545
  Normalizat = 1.42667
  Prefactor  = 0.697574
 **********
 **   18 **HESSE 
 **********

 FCN=   5423.295     FROM HESSE     STATUS=OK           297 CALLS     2353 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.071        12.435        .99901E-04   -1.4906    
   2  Prefactor     .10000E-03    34.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    9.2264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     23.194        24.808        .83156E-04   -1.4744    
   5  Prefactor     53.770        34.646        .54692E-04   -1.4240    
   6  Prefactor     .29956        41.173        .37095E-02   -1.5599    
   7  norm          3.4891        6.8885        .21646E-03   -1.5334    
   8  Prefactor     .10000E-03    3.3832        .13168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10005E-03    31.978        .35871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.5140        9.5640        .18946E-03   -1.5283    
  11  Prefactor     .10000E-03    7.5345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    7.8902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.382        14.270        .10949E-03   -1.4976    
  14  Prefactor     .10000E-03    29.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.1768        .24483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .14547        .18025        .38178E-03   -1.5632    
  17  Prefactor     24.025        14.729        .81719E-04   -1.4727    
  18  Prefactor     15.855        19.074        .10058E-03   -1.4911    
  19  Normalizat    1.4267        .26370        .26813E-03   -.79860    
  20  Prefactor     .69757        .14752        .20962E-03   -1.0362    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88527e-09
Minuit parameter uncertainties:
  1  12.4369
  2  7.21526e-06
  3  8.12628e-07
  4  24.8195
  5  34.6594
  6  7.02761
  7  6.89009
  8  1.05158e-05
  9  0.00244292
  10  9.56719
  11  7.26552e-07
  12  3.75063e-05
  13  14.2735
  14  2.22796e-05
  15  0.00023548
  16  0.180251
  17  14.7317
  18  19.0814
  19  0.263956
  20  0.147602
Done.

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

Extracting fit parameters...

4FGL J2131.0-2746
   Spectrum: LogParabola
257         norm:  3.489e+00  6.890e+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:  6.976e-01  1.476e-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.427e+00  2.640e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/543969/likelihoodResults_610243201_610502401_4FGL_J2131.0-2746_daily_bin1431.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) = 5423.00185113
delta logL = 0.293015805925

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5422.97919549
delta logL = 0.31567145291

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4699       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0352       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3867       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70485       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=   5422.979     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      264 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4589        29.200        .88620E-02    .28643E-03
   2  alpha         3.0415        3.7941        .29914        .32285E-04
   3  Normalizat    1.3863        .54394E-01    .61334E-01   -.13779E-03
   4  Prefactor     .70499        .29111E-01    .42466E-01   -.19686E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.45886
  alpha      = 3.04153
  Normalizat = 1.38631
  Prefactor  = 0.704995
 **********
 **   18 **HESSE 
 **********

 FCN=   5422.979     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      295 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4589        85.172        .96958E-04   -1.5466    
   2  alpha         3.0415        2.7831        .10544E-01    .21834    
   3  Normalizat    1.3863        .39075        .27126E-03   -.81025    
   4  Prefactor     .70499        .16644        .20851E-03   -1.0333    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.6575e-10
Minuit parameter uncertainties:
  1  22.3265
  2  8.17628
  3  0.391595
  4  0.166556
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/543969': 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) = 5422.97918645
delta logL = 0.315680485674

Extracting fit parameters...

4FGL J2131.0-2746
   Spectrum: LogParabola
257         norm:  1.459e+00  2.233e+01  1.000e-04  1.000e+04 ( 1.000e-13)
258        alpha:  3.042e+00  8.176e+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:  7.050e-01  1.666e-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.386e+00  3.916e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.04
Ra Dec: 322.753 -27.773
Photon Index (Free Index): 3.04 +/- 8.18
Photon Flux (Free Index): 4.95e-08 +/- 2.83e-07
Energy Flux (Free Index): 1.22e-05 +/- 1.45e-05

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/543969/cmap_HighResolution_610243201_610502401_4FGL_J2131.0-2746_daily_bin1431.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.48e-05', comment='SUCCESS', energy_flux2='1.22e-05', dlogl='3.16e-01', photon_flux2='4.95e-08', job_status='DONE', time_completed='2021-09-26 16:43:13.379226', photon_index_error2='8.18', photon_index2='3.04', ts='0.39', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='4.71e-08', energy_flux_error2='1.45e-05', EG='1.43', time_epoch_completed='1632699793.38', return_code='0', job_id='543969', GAL2='0.70', EG2='1.39', return_code2='102', photon_flux_error2='2.83e-07', ts2='1.04', photon_index='1.62' WHERE bin_id='1431' AND source_name='4FGL J2131.0-2746' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 16:43:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 543969: <4FGL_J2131.0-2746_daily_bin1431> in cluster <slac> Done

Job <4FGL_J2131.0-2746_daily_bin1431> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 26 16:30:56 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 16:31:45 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:31:45 2021
Terminated at Sun Sep 26 16:43:13 2021
Results reported at Sun Sep 26 16:43:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2131.0-2746_daily_bin1431 322.753 -27.7727 610243201 610502401 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 :                                   576.61 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   691 sec.
    Turnaround time :                            737 sec.

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

