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


Performing analysis on: 4FGL_J2120.6-1254_daily_bin1370
RA = 320.154, Dec = -12.9097
tmin = 594432001, tmax = 594691201
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='463631', job_status='RUN', time_executed='2021-09-26 12:01:18.487417', time_epoch_executed='1632682878.49' WHERE source_name='4FGL J2120.6-1254' and cadence='daily' and bin_id='1370'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/463631

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/463631/ft1_4FGL_J2120.6-1254_daily_bin1370.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/463631/ft2_4FGL_J2120.6-1254_daily_bin1370.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/463631/ft1_4FGL_J2120.6-1254_daily_bin1370.fits outfile=/scratch/kocevski/463631/ft1_filteredMKT_4FGL_J2120.6-1254_daily_bin1370.fits ra=320.154 dec=-12.9097 rad=12.0 tmin=594432001.0 tmax=594691201.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.44
user 4.15
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/463631/ft2_4FGL_J2120.6-1254_daily_bin1370.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/463631/ft1_filteredMKT_4FGL_J2120.6-1254_daily_bin1370.fits evtable="EVENTS" outfile="/scratch/kocevski/463631/ft1_filtered_4FGL_J2120.6-1254_daily_bin1370.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/463631/ft1_filtered_4FGL_J2120.6-1254_daily_bin1370.fits" evtable="EVENTS" scfile=/scratch/kocevski/463631/ft2_4FGL_J2120.6-1254_daily_bin1370.fits sctable="SC_DATA" outfile=/scratch/kocevski/463631/ltcube_594432001_594691201_4FGL_J2120.6-1254_daily_bin1370.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/463631/ft2_4FGL_J2120.6-1254_daily_bin1370.fits
.....................!
real 14.26
user 13.82
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/463631/ft1_filtered_4FGL_J2120.6-1254_daily_bin1370.fits evtable="EVENTS" scfile=/scratch/kocevski/463631/ft2_4FGL_J2120.6-1254_daily_bin1370.fits sctable="SC_DATA" expcube=/scratch/kocevski/463631/ltcube_594432001_594691201_4FGL_J2120.6-1254_daily_bin1370.fits outfile=/scratch/kocevski/463631/expmap_594432001_594691201_4FGL_J2120.6-1254_daily_bin1370.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/463631/ltcube_594432001_594691201_4FGL_J2120.6-1254_daily_bin1370.fits
.....................!
real 191.58
user 185.79
sys 4.58

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/463631/ft1_filtered_4FGL_J2120.6-1254_daily_bin1370.fits scfile=/scratch/kocevski/463631/ft2_4FGL_J2120.6-1254_daily_bin1370.fits outfile=/scratch/kocevski/463631/cmap_594432001_594691201_4FGL_J2120.6-1254_daily_bin1370.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.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/463631/ft1_filtered_4FGL_J2120.6-1254_daily_bin1370.fits scfile=/scratch/kocevski/463631/ft2_4FGL_J2120.6-1254_daily_bin1370.fits outfile=/scratch/kocevski/463631/cmap_HighResolution_594432001_594691201_4FGL_J2120.6-1254_daily_bin1370.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/463631/ft1_filtered_4FGL_J2120.6-1254_daily_bin1370.fits evtable="EVENTS" scfile=/scratch/kocevski/463631/ft2_4FGL_J2120.6-1254_daily_bin1370.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/463631/Model_4FGL_J2120.6-1254_daily_bin1370.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/463631/ft1_filtered_4FGL_J2120.6-1254_daily_bin1370.fits.....................!
real 102.46
user 100.88
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/463631/ft1_filtered_4FGL_J2120.6-1254_daily_bin1370.fits', '/scratch/kocevski/463631/ft2_4FGL_J2120.6-1254_daily_bin1370.fits', expMap='/scratch/kocevski/463631/expmap_594432001_594691201_4FGL_J2120.6-1254_daily_bin1370.fits', expCube='/scratch/kocevski/463631/ltcube_594432001_594691201_4FGL_J2120.6-1254_daily_bin1370.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/463631/Model_4FGL_J2120.6-1254_daily_bin1370.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/463631/ft1_filtered_4FGL_J2120.6-1254_daily_bin1370.fits
Spacecraft file(s): /scratch/kocevski/463631/ft2_4FGL_J2120.6-1254_daily_bin1370.fits
Exposure map: /scratch/kocevski/463631/expmap_594432001_594691201_4FGL_J2120.6-1254_daily_bin1370.fits
Exposure cube: /scratch/kocevski/463631/ltcube_594432001_594691201_4FGL_J2120.6-1254_daily_bin1370.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/463631/Model_4FGL_J2120.6-1254_daily_bin1370.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) = 11878.2399128

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1802       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3494       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.9160       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2600       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9335       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .87299E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.876       1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11313E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    48.602       1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.6844       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .86682       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=   11878.19     FROM MIGRAD    STATUS=CONVERGED    323 CALLS     1328 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1802        1.9427       -.19106E-06   -.47617E-03
   2  Prefactor     .10000E-03    1.4308       -.34196E-07** at limit **
   3  Prefactor     .10000E-03    2.1365        .22146E-08** at limit **
   4  Prefactor     1.3490        19.551       -.23530E-04   -.19515E-03
   5  Prefactor     7.9160        9.9278       -.86537E-05    .25637E-03
   6  Prefactor     .10000E-03    41.977        .13334E-05** at limit **
   7  Prefactor     2.2600        2.6426        .40124E-06    .13687E-03
   8  Prefactor     1.9328        2.3378       -.60998E-06   -.11190E-02
   9  Prefactor     .10000E-03    1.3078       -.46413E-07** at limit **
  10  Prefactor     .10022E-03    17.771       -.11944E-05** at limit **
  11  Prefactor     21.879        15.811       -.58647E-06    .65593E-04
  12  norm          .10000E-03    2.5597       -.77132E-07** at limit **
  13  Prefactor     .10000E-03    2.4825       -.67390E-07** at limit **
  14  Prefactor     48.605        20.935       -.18176E-05    .47402E-04
  15  Normalizat    1.6841        .18531        .26347E-05    .26389E-03
  16  Prefactor     .86697        .98245E-01    .48411E-06    .63331E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.1802
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.34904
  Prefactor  = 7.91599
  Prefactor  = 0.0001
  Prefactor  = 2.26002
  Prefactor  = 1.93279
  Prefactor  = 0.0001
  Prefactor  = 0.000100216
  Prefactor  = 21.8786
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.6054
  Normalizat = 1.68405
  Prefactor  = 0.866969
 **********
 **   18 **HESSE 
 **********

 FCN=   11878.19     FROM HESSE     STATUS=OK           211 CALLS     1539 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1802        1.9339        .13966E-03   -1.5413    
   2  Prefactor     .10000E-03    1.4683        .25451E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.1396        .15557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3490        20.623        .37671E-03   -1.5476    
   5  Prefactor     7.9160        9.6683        .14251E-03   -1.5145    
   6  Prefactor     .10000E-03    42.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.2600        2.6380        .18633E-03   -1.5407    
   8  Prefactor     1.9328        2.3347        .17628E-03   -1.5430    
   9  Prefactor     .10000E-03    1.3130        .12171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10022E-03    17.923        .14664       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.879        15.890        .85639E-04   -1.4772    
  12  norm          .10000E-03    2.6315        .34055E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.806        .32977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     48.605        20.905        .57519E-04   -1.4312    
  15  Normalizat    1.6841        .22513        .28983E-03   -.72730    
  16  Prefactor     .86697        .11969        .21124E-03   -.97305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31266e-09
Minuit parameter uncertainties:
  1  1.934
  2  8.47051e-06
  3  1.23831e-06
  4  10.553
  5  9.67024
  6  1.32177e-05
  7  2.63814
  8  2.33484
  9  2.64249e-06
  10  0.00393987
  11  15.8929
  12  5.82913e-08
  13  6.71493e-05
  14  20.9082
  15  0.225268
  16  0.119729
Done.

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

Extracting fit parameters...

4FGL J2120.6-1254
   Spectrum: PowerLaw
314    Prefactor:  7.916e+00  9.670e+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

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  8.670e-01  1.197e-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:  1.684e+00  2.253e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.89
Ra Dec: 320.154 -12.910
Photon Flux Upper Limit: 9.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/463631/likelihoodResults_594432001_594691201_4FGL_J2120.6-1254_daily_bin1370.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) = 11877.2238273
delta logL = 0.966594699998

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11877.1913566
delta logL = 0.99906535118

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6717       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3874       1.0000          .0000       10.000    
     3 'Normalizat'    1.6282       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88355       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.

 FCN=   11877.19     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      258 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6710        30.679        .62332E-02    .92888E-03
   2  Index         3.3875        2.5108        .10726        .30946E-03
   3  Normalizat    1.6282        .58856E-01    .66381E-01   -.24557E-04
   4  Prefactor     .88355        .30880E-01    .44795E-01   -.34249E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.67099
  Index      = 3.3875
  Normalizat = 1.62822
  Prefactor  = 0.883545
 **********
 **   18 **HESSE 
 **********

 FCN=   11877.19     FROM HESSE     STATUS=OK            33 CALLS      291 TOTAL
                     EDM=   .41E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6710        16.848        .11291E-03   -1.5381    
   2  Index         3.3875        2.3067        .56857E-02   -.32837    
   3  Normalizat    1.6282        .22659        .29362E-03   -.74236    
   4  Prefactor     .88355        .12207        .20936E-03   -.96718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.10948e-07
Minuit parameter uncertainties:
  1  13.422
  2  2.40948
  3  0.226731
  4  0.122105
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/463631': 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) = 11877.1913566
delta logL = 0.999065386508

Extracting fit parameters...

4FGL J2120.6-1254
   Spectrum: PowerLaw
314    Prefactor:  2.671e+00  1.342e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  3.388e+00  2.409e+00  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:  8.835e-01  1.221e-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:  1.628e+00  2.267e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.95
Ra Dec: 320.154 -12.910
Photon Index (Free Index): 3.39 +/- 2.41
Photon Flux (Free Index): 7.10e-08 +/- 5.06e-08
Energy Flux (Free Index): 1.22e-05 +/- 1.02e-05

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/463631/cmap_HighResolution_594432001_594691201_4FGL_J2120.6-1254_daily_bin1370.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.95e-03', comment='SUCCESS', energy_flux2='1.22e-05', dlogl='9.99e-01', photon_flux2='7.10e-08', job_status='DONE', time_completed='2021-09-26 12:14:23.702391', photon_index_error2='2.41', photon_index2='3.39', ts='0.89', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='9.03e-08', energy_flux_error2='1.02e-05', EG='1.68', time_epoch_completed='1632683663.7', return_code='0', job_id='463631', GAL2='0.88', EG2='1.63', return_code2='0', photon_flux_error2='5.06e-08', ts2='2.95', photon_index='2.34' WHERE bin_id='1370' AND source_name='4FGL J2120.6-1254' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 12:14:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 463631: <4FGL_J2120.6-1254_daily_bin1370> in cluster <slac> Done

Job <4FGL_J2120.6-1254_daily_bin1370> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 26 12:00:21 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 12:00: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 12:00:45 2021
Terminated at Sun Sep 26 12:14:24 2021
Results reported at Sun Sep 26 12:14:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2120.6-1254_daily_bin1370 320.154 -12.9097 594432001 594691201 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 :                                   769.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             360.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            843 sec.

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

