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


Performing analysis on: 4FGL_J2120.6-1254_daily_bin1057
RA = 320.154, Dec = -12.9097
tmin = 513302401, tmax = 513561601
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='462155', job_status='RUN', time_executed='2021-09-26 11:59:31.182443', time_epoch_executed='1632682771.18' WHERE source_name='4FGL J2120.6-1254' and cadence='daily' and bin_id='1057'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/462155

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/462155/ft1_4FGL_J2120.6-1254_daily_bin1057.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/462155/ft2_4FGL_J2120.6-1254_daily_bin1057.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/462155/ft1_4FGL_J2120.6-1254_daily_bin1057.fits outfile=/scratch/kocevski/462155/ft1_filteredMKT_4FGL_J2120.6-1254_daily_bin1057.fits ra=320.154 dec=-12.9097 rad=12.0 tmin=513302401.0 tmax=513561601.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.46
user 4.23
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/462155/ft2_4FGL_J2120.6-1254_daily_bin1057.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/462155/ft2_4FGL_J2120.6-1254_daily_bin1057.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/462155/ft1_filteredMKT_4FGL_J2120.6-1254_daily_bin1057.fits evtable="EVENTS" outfile="/scratch/kocevski/462155/ft1_filtered_4FGL_J2120.6-1254_daily_bin1057.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.42
user 0.29
sys 0.11

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/462155/ft1_filtered_4FGL_J2120.6-1254_daily_bin1057.fits" evtable="EVENTS" scfile=/scratch/kocevski/462155/ft2_4FGL_J2120.6-1254_daily_bin1057.fits sctable="SC_DATA" outfile=/scratch/kocevski/462155/ltcube_513302401_513561601_4FGL_J2120.6-1254_daily_bin1057.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/462155/ft2_4FGL_J2120.6-1254_daily_bin1057.fits
.....................!
real 12.38
user 12.00
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/462155/ft1_filtered_4FGL_J2120.6-1254_daily_bin1057.fits evtable="EVENTS" scfile=/scratch/kocevski/462155/ft2_4FGL_J2120.6-1254_daily_bin1057.fits sctable="SC_DATA" expcube=/scratch/kocevski/462155/ltcube_513302401_513561601_4FGL_J2120.6-1254_daily_bin1057.fits outfile=/scratch/kocevski/462155/expmap_513302401_513561601_4FGL_J2120.6-1254_daily_bin1057.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/462155/ltcube_513302401_513561601_4FGL_J2120.6-1254_daily_bin1057.fits
.....................!
real 156.38
user 151.83
sys 4.03

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

Setting source of interest to:
4FGL J2120.6-1254 @ 320.154 -12.9097

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/462155/ft1_filtered_4FGL_J2120.6-1254_daily_bin1057.fits scfile=/scratch/kocevski/462155/ft2_4FGL_J2120.6-1254_daily_bin1057.fits outfile=/scratch/kocevski/462155/cmap_513302401_513561601_4FGL_J2120.6-1254_daily_bin1057.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=320.154 yref=-12.9097 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.51
user 0.33
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/462155/ft1_filtered_4FGL_J2120.6-1254_daily_bin1057.fits scfile=/scratch/kocevski/462155/ft2_4FGL_J2120.6-1254_daily_bin1057.fits outfile=/scratch/kocevski/462155/cmap_HighResolution_513302401_513561601_4FGL_J2120.6-1254_daily_bin1057.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=320.154 yref=-12.9097 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.49
user 0.33
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/462155/ft1_filtered_4FGL_J2120.6-1254_daily_bin1057.fits evtable="EVENTS" scfile=/scratch/kocevski/462155/ft2_4FGL_J2120.6-1254_daily_bin1057.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/462155/Model_4FGL_J2120.6-1254_daily_bin1057.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/462155/ft1_filtered_4FGL_J2120.6-1254_daily_bin1057.fits.....................!
real 47.37
user 46.15
sys 0.99

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/462155/ft1_filtered_4FGL_J2120.6-1254_daily_bin1057.fits', '/scratch/kocevski/462155/ft2_4FGL_J2120.6-1254_daily_bin1057.fits', expMap='/scratch/kocevski/462155/expmap_513302401_513561601_4FGL_J2120.6-1254_daily_bin1057.fits', expCube='/scratch/kocevski/462155/ltcube_513302401_513561601_4FGL_J2120.6-1254_daily_bin1057.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/462155/Model_4FGL_J2120.6-1254_daily_bin1057.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2120.6-1254'

4FGL J2120.6-1254
   Spectrum: PowerLaw
314    Prefactor:  1.885e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.336e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.325e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/462155/ft1_filtered_4FGL_J2120.6-1254_daily_bin1057.fits
Spacecraft file(s): /scratch/kocevski/462155/ft2_4FGL_J2120.6-1254_daily_bin1057.fits
Exposure map: /scratch/kocevski/462155/expmap_513302401_513561601_4FGL_J2120.6-1254_daily_bin1057.fits
Exposure cube: /scratch/kocevski/462155/ltcube_513302401_513561601_4FGL_J2120.6-1254_daily_bin1057.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/462155/Model_4FGL_J2120.6-1254_daily_bin1057.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) = 5863.00926718

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .90898E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10558E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.3507       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.599       1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.207       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10629E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.9271       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.848       1.0000         .10000E-03   10000.    
    12 'norm      '    6.2405       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.024       1.0000         .10000E-03   10000.    
    15 'Normalizat'    .44912       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.4301       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5863.003     FROM MIGRAD    STATUS=CONVERGED    292 CALLS     1450 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.4004        .92017E-07** at limit **
   2  Prefactor     .94157E-01    4.1455        .18600E-05   -.10876E-02
   3  Prefactor     .10000E-03    30.297        .16527E-05** at limit **
   4  Prefactor     5.3432        21.208        .16038E-05    .24604E-04
   5  Prefactor     14.594        15.540        .20299E-06    .22790E-04
   6  Prefactor     30.164        42.364        .17482E-05    .30063E-04
   7  Prefactor     .10000E-03    2.0200        .21842E-07** at limit **
   8  Prefactor     .10000E-03    1.7546       -.20755E-05** at limit **
   9  Prefactor     7.9212        9.9094        .69986E-06    .87221E-04
  10  Prefactor     .10000E-03    17.239       -.30248E-06** at limit **
  11  Prefactor     16.826        21.476        .97876E-06   -.35459E-04
  12  norm          6.2408        5.8939       -.80867E-07   -.36281E-05
  13  Prefactor     .10000E-03    2.8525       -.17854E-06** at limit **
  14  Prefactor     28.014        22.958        .38513E-06   -.11016E-04
  15  Normalizat    .44988        .31506       -.98843E-05   -.19865E-03
  16  Prefactor     1.4298        .17364        .23452E-05   -.36612E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0941571
  Prefactor  = 0.0001
  Prefactor  = 5.34324
  Prefactor  = 14.5939
  Prefactor  = 30.1641
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.92117
  Prefactor  = 0.0001
  Prefactor  = 16.8261
  norm       = 6.24077
  Prefactor  = 0.0001
  Prefactor  = 28.0137
  Normalizat = 0.449881
  Prefactor  = 1.42979
 **********
 **   18 **HESSE 
 **********

 FCN=   5863.003     FROM HESSE     STATUS=OK           205 CALLS     1655 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.4070        .88491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .94157E-01    68.829        .24987E-02   -1.5647    
   3  Prefactor     .10000E-03    30.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.3432        21.165        .17374E-03   -1.5246    
   5  Prefactor     14.594        15.479        .10483E-03   -1.4944    
   6  Prefactor     30.164        42.562        .72900E-04   -1.4609    
   7  Prefactor     .10000E-03    2.0237        .10628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.7255        .97289E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.9212        9.9189        .14241E-03   -1.5145    
  10  Prefactor     .10000E-03    17.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.826        21.379        .97578E-04   -1.4887    
  12  norm          6.2408        5.8969        .16069E-03   -1.5208    
  13  Prefactor     .10000E-03    2.8598        .12615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     28.014        22.931        .75679E-04   -1.4649    
  15  Normalizat    .44988        .31437        .50039E-03   -1.1480    
  16  Prefactor     1.4298        .17650        .16857E-03   -.79525    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98169e-08
Minuit parameter uncertainties:
  1  1.5426e-06
  2  5.09463
  3  0.000225638
  4  21.1943
  5  15.483
  6  42.605
  7  1.59725e-06
  8  3.23712e-05
  9  9.92093
  10  1.28528e-05
  11  21.3889
  12  5.89741
  13  1.98395e-06
  14  22.9385
  15  0.315616
  16  0.176575
Done.

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

Extracting fit parameters...

4FGL J2120.6-1254
   Spectrum: PowerLaw
314    Prefactor:  1.459e+01  1.548e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.336e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.325e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  1.430e+00  1.766e-01  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  4.499e-01  3.156e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.52
Ra Dec: 320.154 -12.910
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 4.57e-08 +/- 4.85e-08
Energy Flux (Fixed Index): 1.64e-05 +/- 1.74e-05

TS (Fixed Index): 1.52
Ra Dec: 320.154 -12.910
Photon Flux Upper Limit: 1.55e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/462155/likelihoodResults_513302401_513561601_4FGL_J2120.6-1254_daily_bin1057.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) = 5863.00084105
delta logL = 0.00217743579196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5862.99951266
delta logL = 0.00350581952443

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.543       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2786       1.0000          .0000       10.000    
     3 'Normalizat'    .45207       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4290       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+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=   5863.000     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      272 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.543        20.158        .10159E-03   -.86279E-04
   2  Index         2.2786        .71294        .81541E-02    .31338E-03
   3  Normalizat    .45231        .30400        .49907E-03   -.12984E-04
   4  Prefactor     1.4289        .17550        .16861E-03   -.10316E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.5431
  Index      = 2.27859
  Normalizat = 0.452308
  Prefactor  = 1.4289
 **********
 **   18 **HESSE 
 **********

 FCN=   5863.000     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.543        19.336        .40637E-05   -1.4919    
   2  Index         2.2786        .68395        .16308E-02   -.57553    
   3  Normalizat    .45231        .30382        .19963E-04   -1.1468    
   4  Prefactor     1.4289        .17543        .67445E-05   -.79551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58168e-11
Minuit parameter uncertainties:
  1  19.344
  2  0.687019
  3  0.304939
  4  0.175506
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/462155': 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) = 5862.99951232
delta logL = 0.00350616431479

Extracting fit parameters...

4FGL J2120.6-1254
   Spectrum: PowerLaw
314    Prefactor:  1.554e+01  1.934e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.279e+00  6.870e-01  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  1.325e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  1.429e+00  1.755e-01  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  4.523e-01  3.049e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.53
Ra Dec: 320.154 -12.910
Photon Index (Free Index): 2.28 +/- 0.69
Photon Flux (Free Index): 4.39e-08 +/- 5.03e-08
Energy Flux (Free Index): 1.72e-05 +/- 2.03e-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/462155/cmap_HighResolution_513302401_513561601_4FGL_J2120.6-1254_daily_bin1057.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', comment='SUCCESS', photon_flux='4.57e-08', energy_flux2='1.72e-05', photon_flux_error='4.85e-08', dlogl='3.51e-03', energy_flux='1.64e-05', photon_flux2='4.39e-08', job_status='DONE', time_completed='2021-09-26 12:09:23.728223', photon_index_error2='0.69', photon_index2='2.28', ts='1.52', fit_tolerance='1e-08', GAL='1.43', photon_index_error='0.00', photon_flux_upper_limit='1.55e-07', energy_flux_error2='2.03e-05', EG='0.45', time_epoch_completed='1632683363.73', return_code='0', job_id='462155', GAL2='1.43', EG2='0.45', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='5.03e-08', ts2='1.53', photon_index='2.34' WHERE bin_id='1057' AND source_name='4FGL J2120.6-1254' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 12:09:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 462155: <4FGL_J2120.6-1254_daily_bin1057> in cluster <slac> Done

Job <4FGL_J2120.6-1254_daily_bin1057> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 11:55:33 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 11:56:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 11:56:20 2021
Terminated at Sun Sep 26 12:09:24 2021
Results reported at Sun Sep 26 12:09:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2120.6-1254_daily_bin1057 320.154 -12.9097 513302401 513561601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2120.6-1254 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   441.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             198.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            831 sec.

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

