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


Performing analysis on: 4FGL_J2134.5-2130_daily_bin1517
RA = 323.641, Dec = -21.5029
tmin = 632534401, tmax = 632793601
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='601188', job_status='RUN', time_executed='2021-09-26 19:41:58.771740', time_epoch_executed='1632710518.77' WHERE source_name='4FGL J2134.5-2130' and cadence='daily' and bin_id='1517'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601188

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601188/ft1_4FGL_J2134.5-2130_daily_bin1517.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601188/ft2_4FGL_J2134.5-2130_daily_bin1517.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601188/ft1_4FGL_J2134.5-2130_daily_bin1517.fits outfile=/scratch/kocevski/601188/ft1_filteredMKT_4FGL_J2134.5-2130_daily_bin1517.fits ra=323.641 dec=-21.5029 rad=12.0 tmin=632534401.0 tmax=632793601.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 3.59
user 3.36
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/601188/ft2_4FGL_J2134.5-2130_daily_bin1517.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/601188/ft2_4FGL_J2134.5-2130_daily_bin1517.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/601188/ft1_filteredMKT_4FGL_J2134.5-2130_daily_bin1517.fits evtable="EVENTS" outfile="/scratch/kocevski/601188/ft1_filtered_4FGL_J2134.5-2130_daily_bin1517.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.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601188/ft1_filtered_4FGL_J2134.5-2130_daily_bin1517.fits" evtable="EVENTS" scfile=/scratch/kocevski/601188/ft2_4FGL_J2134.5-2130_daily_bin1517.fits sctable="SC_DATA" outfile=/scratch/kocevski/601188/ltcube_632534401_632793601_4FGL_J2134.5-2130_daily_bin1517.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/601188/ft2_4FGL_J2134.5-2130_daily_bin1517.fits
.....................!
real 13.31
user 12.94
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601188/ft1_filtered_4FGL_J2134.5-2130_daily_bin1517.fits evtable="EVENTS" scfile=/scratch/kocevski/601188/ft2_4FGL_J2134.5-2130_daily_bin1517.fits sctable="SC_DATA" expcube=/scratch/kocevski/601188/ltcube_632534401_632793601_4FGL_J2134.5-2130_daily_bin1517.fits outfile=/scratch/kocevski/601188/expmap_632534401_632793601_4FGL_J2134.5-2130_daily_bin1517.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/601188/ltcube_632534401_632793601_4FGL_J2134.5-2130_daily_bin1517.fits
.....................!
real 191.11
user 185.91
sys 4.81

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 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J2134.5-2130 @ 323.641 -21.5029

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/601188/ft1_filtered_4FGL_J2134.5-2130_daily_bin1517.fits scfile=/scratch/kocevski/601188/ft2_4FGL_J2134.5-2130_daily_bin1517.fits outfile=/scratch/kocevski/601188/cmap_632534401_632793601_4FGL_J2134.5-2130_daily_bin1517.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=323.641 yref=-21.5029 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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601188/ft1_filtered_4FGL_J2134.5-2130_daily_bin1517.fits scfile=/scratch/kocevski/601188/ft2_4FGL_J2134.5-2130_daily_bin1517.fits outfile=/scratch/kocevski/601188/cmap_HighResolution_632534401_632793601_4FGL_J2134.5-2130_daily_bin1517.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=323.641 yref=-21.5029 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/601188/ft1_filtered_4FGL_J2134.5-2130_daily_bin1517.fits evtable="EVENTS" scfile=/scratch/kocevski/601188/ft2_4FGL_J2134.5-2130_daily_bin1517.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/601188/Model_4FGL_J2134.5-2130_daily_bin1517.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/601188/ft1_filtered_4FGL_J2134.5-2130_daily_bin1517.fits.....................!
real 54.13
user 52.73
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/601188/ft1_filtered_4FGL_J2134.5-2130_daily_bin1517.fits', '/scratch/kocevski/601188/ft2_4FGL_J2134.5-2130_daily_bin1517.fits', expMap='/scratch/kocevski/601188/expmap_632534401_632793601_4FGL_J2134.5-2130_daily_bin1517.fits', expCube='/scratch/kocevski/601188/ltcube_632534401_632793601_4FGL_J2134.5-2130_daily_bin1517.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/601188/Model_4FGL_J2134.5-2130_daily_bin1517.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2134.5-2130'

4FGL J2134.5-2130
   Spectrum: PowerLaw
275    Prefactor:  1.845e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
276        Index:  1.996e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
277        Scale:  2.061e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/601188/ft1_filtered_4FGL_J2134.5-2130_daily_bin1517.fits
Spacecraft file(s): /scratch/kocevski/601188/ft2_4FGL_J2134.5-2130_daily_bin1517.fits
Exposure map: /scratch/kocevski/601188/expmap_632534401_632793601_4FGL_J2134.5-2130_daily_bin1517.fits
Exposure cube: /scratch/kocevski/601188/ltcube_632534401_632793601_4FGL_J2134.5-2130_daily_bin1517.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/601188/Model_4FGL_J2134.5-2130_daily_bin1517.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) = 5785.21307107

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.710       1.0000         .10000E-03   10000.    
     2 'norm      '    48.332       1.0000         .10000E-03   10000.    
     3 'Prefactor '    41.052       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8325       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.998       1.0000         .10000E-03   10000.    
    11 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12141E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    54.588       1.0000         .10000E-03   10000.    
    14 'norm      '    21.821       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.1195       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.406       1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.454       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2536       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0555       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5785.210     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     2344 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.697        85.288       -.15705E-04    .73226E-05
   2  norm          48.308        43.095       -.28536E-04    .12498E-04
   3  Prefactor     41.050        33.130       -.24980E-05    .19326E-04
   4  Prefactor     .10000E-03    5.5324       -.41674E-06** at limit **
   5  Prefactor     .10000E-03    12.246       -.83581E-06** at limit **
   6  Prefactor     .10000E-03    7.3489        .10866E-05** at limit **
   7  norm          .10000E-03    5.6233       -.83391E-06** at limit **
   8  Prefactor     4.8333        4.7911        .41927E-06    .14638E-03
   9  Prefactor     .10000E-03    12.398        .22976E-06** at limit **
  10  Prefactor     13.994        26.285       -.69434E-05   -.16266E-04
  11  norm          .10000E-03    5.4756        .14628E-05** at limit **
  12  Prefactor     .10000E-03    28.083        .13857E-05** at limit **
  13  Prefactor     54.590        102.41        .27528E-05   -.45241E-05
  14  norm          21.824        10.691       -.45986E-06   -.59985E-04
  15  Prefactor     .10000E-03    5.0905       -.38280E-06** at limit **
  16  Prefactor     .10000E-03    6.9452       -.10297E-05** at limit **
  17  norm          1.1195        .62323       -.47881E-07   -.43003E-03
  18  Prefactor     .10000E-03    8.2947       -.45050E-08** at limit **
  19  Prefactor     14.415        20.190        .89143E-05   -.47552E-05
  20  Prefactor     15.460        18.206        .45514E-05   -.47827E-05
  21  Normalizat    1.2526        .27784       -.19686E-05    .16364E-03
  22  Prefactor     1.0561        .15827        .40957E-05   -.19424E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.697
  norm       = 48.308
  Prefactor  = 41.0498
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.83327
  Prefactor  = 0.0001
  Prefactor  = 13.9943
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.59
  norm       = 21.8243
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.11954
  Prefactor  = 0.0001
  Prefactor  = 14.4146
  Prefactor  = 15.4603
  Normalizat = 1.25261
  Prefactor  = 1.05612
 **********
 **   18 **HESSE 
 **********

 FCN=   5785.210     FROM HESSE     STATUS=OK           338 CALLS     2682 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.697        85.277        .54230E-04   -1.4227    
   2  norm          48.308        43.092        .57679E-04   -1.4317    
   3  Prefactor     41.050        33.149        .62563E-04   -1.4426    
   4  Prefactor     .10000E-03    5.6295        .17463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.3705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.6413        .17616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.8333        4.7977        .16151E-03   -1.5268    
   9  Prefactor     .10000E-03    12.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.994        26.394        .10705E-03   -1.4960    
  11  norm          .10000E-03    5.5004        .17381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    28.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     54.590        102.86        .54290E-04   -1.4229    
  14  norm          21.824        10.748        .85745E-04   -1.4773    
  15  Prefactor     .10000E-03    5.1300        .16754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.9480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.1195        .61796        .39519E-04   -1.5496    
  18  Prefactor     .10000E-03    8.3257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.415        20.231        .10553E-03   -1.4948    
  20  Prefactor     15.460        18.222        .10188E-03   -1.4921    
  21  Normalizat    1.2526        .33508        .33456E-03   -.84992    
  22  Prefactor     1.0561        .18974        .21245E-03   -.90882    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.30788e-10
Minuit parameter uncertainties:
  1  85.4681
  2  43.1202
  3  33.1635
  4  4.32211e-05
  5  2.19481e-05
  6  1.48048e-05
  7  9.44493e-06
  8  4.79808
  9  3.18199e-05
  10  26.4159
  11  6.95875e-06
  12  8.3791e-05
  13  103.195
  14  10.7489
  15  2.20419e-05
  16  4.66975e-06
  17  0.617959
  18  4.18805e-05
  19  20.2411
  20  18.2281
  21  0.335662
  22  0.189857
Done.

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

Extracting fit parameters...

4FGL J2134.5-2130
   Spectrum: PowerLaw
275    Prefactor:  4.833e+00  4.798e+00  1.000e-04  1.000e+04 ( 1.000e-13)
276        Index:  1.996e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
277        Scale:  2.061e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  1.056e+00  1.899e-01  0.000e+00  1.000e+01 ( 1.000e+00)
529        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
530        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
527   Normalization:  1.253e+00  3.357e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.74
Ra Dec: 323.641 -21.503
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.04e-08 +/- 2.02e-08
Energy Flux (Fixed Index): 1.42e-05 +/- 1.41e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5784.80840682
delta logL = 0.401907725037

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5784.80206425
delta logL = 0.408250297638

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4256       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3291       1.0000          .0000       10.000    
     3 'Normalizat'    1.2649       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0532       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5784.802     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      207 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 56.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4259        4.4860        .10865E-05   -.13222E-02
   2  Index         1.3292        .47653       -.60429E-05   -.24104E-03
   3  Normalizat    1.2649        .26184        .25608E-06    .89618E-04
   4  Prefactor     1.0532        .15488       -.59169E-07    .11310E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.42586
  Index      = 1.32916
  Normalizat = 1.26494
  Prefactor  = 1.0532
 **********
 **   18 **HESSE 
 **********

 FCN=   5784.802     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4259        5.7162        .17251E-03   -1.5242    
   2  Index         1.3292        .66437        .11835E-01   -.82444    
   3  Normalizat    1.2649        .31138        .33311E-03   -.84619    
   4  Prefactor     1.0532        .18470        .21269E-03   -.90977    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.294e-09
Minuit parameter uncertainties:
  1  5.71677
  2  0.668687
  3  0.311842
  4  0.184812
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601188': 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) = 5784.80206424
delta logL = 0.40825030953

Extracting fit parameters...

4FGL J2134.5-2130
   Spectrum: PowerLaw
275    Prefactor:  5.426e+00  5.717e+00  1.000e-04  1.000e+04 ( 1.000e-13)
276        Index:  1.329e+00  6.687e-01  0.000e+00  1.000e+01 (-1.000e+00)
277        Scale:  2.061e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  1.053e+00  1.848e-01  0.000e+00  1.000e+01 ( 1.000e+00)
529        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
530        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
527   Normalization:  1.265e+00  3.118e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.56
Ra Dec: 323.641 -21.503
Photon Index (Free Index): 1.33 +/- 0.67
Photon Flux (Free Index): 8.25e-09 +/- 1.07e-08
Energy Flux (Free Index): 4.60e-05 +/- 7.75e-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/601188/cmap_HighResolution_632534401_632793601_4FGL_J2134.5-2130_daily_bin1517.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.04e-08', energy_flux2='4.60e-05', photon_flux_error='2.02e-08', dlogl='4.08e-01', energy_flux='1.42e-05', photon_flux2='8.25e-09', job_status='DONE', time_completed='2021-09-26 19:51:15.143685', photon_index_error2='0.67', photon_index2='1.33', ts='5.74', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='7.75e-05', EG='1.25', time_epoch_completed='1632711075.14', return_code='0', job_id='601188', GAL2='1.05', EG2='1.26', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='1.07e-08', ts2='6.56', photon_index='2.00' WHERE bin_id='1517' AND source_name='4FGL J2134.5-2130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 19:51:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 601188: <4FGL_J2134.5-2130_daily_bin1517> in cluster <slac> Done

Job <4FGL_J2134.5-2130_daily_bin1517> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 26 19:40:27 2021
Job was executed on host(s) <bullet0300>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 19:41:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 19:41:00 2021
Terminated at Sun Sep 26 19:51:15 2021
Results reported at Sun Sep 26 19:51:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2134.5-2130_daily_bin1517 323.641 -21.5029 632534401 632793601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2134.5-2130 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   540.32 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             280.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   617 sec.
    Turnaround time :                            648 sec.

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

