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


Performing analysis on: 4FGL_J2120.6-1254_daily_bin1559
RA = 320.154, Dec = -12.9097
tmin = 643420801, tmax = 643680001
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='463902', job_status='RUN', time_executed='2021-09-26 12:04:17.590886', time_epoch_executed='1632683057.59' WHERE source_name='4FGL J2120.6-1254' and cadence='daily' and bin_id='1559'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/463902

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/463902/ft1_4FGL_J2120.6-1254_daily_bin1559.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/463902/ft2_4FGL_J2120.6-1254_daily_bin1559.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/463902/ft1_4FGL_J2120.6-1254_daily_bin1559.fits outfile=/scratch/kocevski/463902/ft1_filteredMKT_4FGL_J2120.6-1254_daily_bin1559.fits ra=320.154 dec=-12.9097 rad=12.0 tmin=643420801.0 tmax=643680001.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.47
user 3.23
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/463902/ft2_4FGL_J2120.6-1254_daily_bin1559.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/463902/ft1_filteredMKT_4FGL_J2120.6-1254_daily_bin1559.fits evtable="EVENTS" outfile="/scratch/kocevski/463902/ft1_filtered_4FGL_J2120.6-1254_daily_bin1559.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.49
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/463902/ft1_filtered_4FGL_J2120.6-1254_daily_bin1559.fits" evtable="EVENTS" scfile=/scratch/kocevski/463902/ft2_4FGL_J2120.6-1254_daily_bin1559.fits sctable="SC_DATA" outfile=/scratch/kocevski/463902/ltcube_643420801_643680001_4FGL_J2120.6-1254_daily_bin1559.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/463902/ft2_4FGL_J2120.6-1254_daily_bin1559.fits
.....................!
real 13.89
user 13.58
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/463902/ft1_filtered_4FGL_J2120.6-1254_daily_bin1559.fits evtable="EVENTS" scfile=/scratch/kocevski/463902/ft2_4FGL_J2120.6-1254_daily_bin1559.fits sctable="SC_DATA" expcube=/scratch/kocevski/463902/ltcube_643420801_643680001_4FGL_J2120.6-1254_daily_bin1559.fits outfile=/scratch/kocevski/463902/expmap_643420801_643680001_4FGL_J2120.6-1254_daily_bin1559.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/463902/ltcube_643420801_643680001_4FGL_J2120.6-1254_daily_bin1559.fits
.....................!
real 191.45
user 185.79
sys 5.29

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/463902/ft1_filtered_4FGL_J2120.6-1254_daily_bin1559.fits scfile=/scratch/kocevski/463902/ft2_4FGL_J2120.6-1254_daily_bin1559.fits outfile=/scratch/kocevski/463902/cmap_643420801_643680001_4FGL_J2120.6-1254_daily_bin1559.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/463902/ft1_filtered_4FGL_J2120.6-1254_daily_bin1559.fits scfile=/scratch/kocevski/463902/ft2_4FGL_J2120.6-1254_daily_bin1559.fits outfile=/scratch/kocevski/463902/cmap_HighResolution_643420801_643680001_4FGL_J2120.6-1254_daily_bin1559.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.70
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .35736       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.470       1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.021       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.5031       1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.032       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10477E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10292E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.4182       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.0606       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .92132       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=   8270.761     FROM MIGRAD    STATUS=CONVERGED    310 CALLS     1492 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .80552       -.19745E-07** at limit **
   2  Prefactor     .35811        1.6559        .64014E-06   -.37742E-03
   3  Prefactor     10.456        10.560        .23803E-05    .81113E-03
   4  Prefactor     30.015        17.540        .36157E-06    .45480E-04
   5  Prefactor     4.4971        7.7832        .23138E-06   -.22326E-05
   6  Prefactor     26.081        30.070       -.13817E-05   -.46815E-03
   7  Prefactor     .10000E-03    2.4108       -.26566E-07** at limit **
   8  Prefactor     .10000E-03    1.4642        .30381E-05** at limit **
   9  Prefactor     .10000E-03    1.9314       -.11606E-06** at limit **
  10  Prefactor     .10000E-03    6.8748        .26296E-06** at limit **
  11  Prefactor     .10000E-03    4.0379       -.10290E-06** at limit **
  12  norm          .10000E-03    4.4987       -.17722E-06** at limit **
  13  Prefactor     3.4166        4.3780        .61618E-06    .20954E-03
  14  Prefactor     .10000E-03    12.987       -.54393E-06** at limit **
  15  Normalizat    1.0607        .18838       -.24150E-05   -.51881E-03
  16  Prefactor     .92136        .10320        .50220E-06   -.85775E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.358113
  Prefactor  = 10.4556
  Prefactor  = 30.0146
  Prefactor  = 4.49714
  Prefactor  = 26.0808
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.4166
  Prefactor  = 0.0001
  Normalizat = 1.06066
  Prefactor  = 0.92136
 **********
 **   18 **HESSE 
 **********

 FCN=   8270.761     FROM HESSE     STATUS=OK           199 CALLS     1691 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .80728        .79707E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .35811        6.0831        .22083E-02   -1.5588    
   3  Prefactor     10.456        10.967        .12382E-03   -1.5061    
   4  Prefactor     30.015        17.540        .73124E-04   -1.4612    
   5  Prefactor     4.4971        7.7644        .18973E-03   -1.5284    
   6  Prefactor     26.081        30.861        .78515E-04   -1.4686    
   7  Prefactor     .10000E-03    2.4421        .13786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.5899        .16392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.9421        .12341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.8778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.0484        .17845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.5745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.4166        4.3924        .20615E-03   -1.5338    
  14  Prefactor     .10000E-03    13.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.0607        .22867        .29917E-03   -.91025    
  16  Prefactor     .92136        .12587        .17854E-03   -.95399    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.794e-09
Minuit parameter uncertainties:
  1  4.3962e-07
  2  2.95184
  3  10.9695
  4  17.5434
  5  7.7661
  6  30.8803
  7  6.11569e-07
  8  8.84555e-05
  9  3.0486e-06
  10  2.3364e-05
  11  1.85376e-06
  12  9.23805e-06
  13  4.39284
  14  5.37693e-05
  15  0.228881
  16  0.125914
Done.

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

Extracting fit parameters...

4FGL J2120.6-1254
   Spectrum: PowerLaw
314    Prefactor:  4.497e+00  7.766e+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:  9.214e-01  1.259e-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.061e+00  2.289e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/463902/likelihoodResults_643420801_643680001_4FGL_J2120.6-1254_daily_bin1559.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) = 8270.75957555
delta logL = 0.0018490965449

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8270.75876314
delta logL = 0.00266150248353

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1455       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4369       1.0000          .0000       10.000    
     3 'Normalizat'    1.0588       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92194       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=   8270.759     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      242 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1442        9.8085        .19797E-03   -.31171E-03
   2  Index         2.4372        1.5426        .12563E-01   -.73125E-04
   3  Normalizat    1.0587        .22507        .29941E-03   -.54953E-03
   4  Prefactor     .92198        .12596        .17848E-03   -.12917E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.14425
  Index      = 2.43724
  Normalizat = 1.05874
  Prefactor  = 0.92198
 **********
 **   18 **HESSE 
 **********

 FCN=   8270.759     FROM HESSE     STATUS=OK            25 CALLS      267 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1442        8.8015        .79187E-05   -1.5301    
   2  Index         2.4372        1.3897        .50252E-03   -.53815    
   3  Normalizat    1.0587        .22474        .59882E-04   -.91088    
   4  Prefactor     .92198        .12592        .35696E-04   -.95377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15591e-09
Minuit parameter uncertainties:
  1  8.8042
  2  1.41522
  3  0.224944
  4  0.125958
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/463902': 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) = 8270.75876305
delta logL = 0.00266159540115

Extracting fit parameters...

4FGL J2120.6-1254
   Spectrum: PowerLaw
314    Prefactor:  4.144e+00  8.804e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.437e+00  1.415e+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:  9.220e-01  1.260e-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.059e+00  2.249e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.49
Ra Dec: 320.154 -12.910

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/463902/cmap_HighResolution_643420801_643680001_4FGL_J2120.6-1254_daily_bin1559.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.20e-03', job_status='DONE', photon_flux_upper_limit='8.06e-08', time_completed='2021-09-26 12:14:43.467480', job_id='463902', GAL2='0.92', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1632683683.47', return_code2='0', ts='0.49', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='2.66e-03', ts2='0.50', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1559' AND source_name='4FGL J2120.6-1254' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 12:14:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 463902: <4FGL_J2120.6-1254_daily_bin1559> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2120.6-1254_daily_bin1559 320.154 -12.9097 643420801 643680001 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 :                                   623.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            842 sec.

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

