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


Performing analysis on: 4FGL_J2120.6-1254_daily_bin1052
RA = 320.154, Dec = -12.9097
tmin = 512006401, tmax = 512265601
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='462148', job_status='RUN', time_executed='2021-09-26 11:57:18.623611', time_epoch_executed='1632682638.62' WHERE source_name='4FGL J2120.6-1254' and cadence='daily' and bin_id='1052'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/462148

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/462148/ft1_4FGL_J2120.6-1254_daily_bin1052.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/462148/ft2_4FGL_J2120.6-1254_daily_bin1052.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/462148/ft1_4FGL_J2120.6-1254_daily_bin1052.fits outfile=/scratch/kocevski/462148/ft1_filteredMKT_4FGL_J2120.6-1254_daily_bin1052.fits ra=320.154 dec=-12.9097 rad=12.0 tmin=512006401.0 tmax=512265601.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.54
user 3.32
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/462148/ft1_filtered_4FGL_J2120.6-1254_daily_bin1052.fits" evtable="EVENTS" scfile=/scratch/kocevski/462148/ft2_4FGL_J2120.6-1254_daily_bin1052.fits sctable="SC_DATA" outfile=/scratch/kocevski/462148/ltcube_512006401_512265601_4FGL_J2120.6-1254_daily_bin1052.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/462148/ft2_4FGL_J2120.6-1254_daily_bin1052.fits
.....................!
real 14.69
user 14.29
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/462148/ft1_filtered_4FGL_J2120.6-1254_daily_bin1052.fits evtable="EVENTS" scfile=/scratch/kocevski/462148/ft2_4FGL_J2120.6-1254_daily_bin1052.fits sctable="SC_DATA" expcube=/scratch/kocevski/462148/ltcube_512006401_512265601_4FGL_J2120.6-1254_daily_bin1052.fits outfile=/scratch/kocevski/462148/expmap_512006401_512265601_4FGL_J2120.6-1254_daily_bin1052.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/462148/ltcube_512006401_512265601_4FGL_J2120.6-1254_daily_bin1052.fits
.....................!
real 194.13
user 188.12
sys 5.49

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/462148/ft1_filtered_4FGL_J2120.6-1254_daily_bin1052.fits scfile=/scratch/kocevski/462148/ft2_4FGL_J2120.6-1254_daily_bin1052.fits outfile=/scratch/kocevski/462148/cmap_512006401_512265601_4FGL_J2120.6-1254_daily_bin1052.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/462148/ft1_filtered_4FGL_J2120.6-1254_daily_bin1052.fits scfile=/scratch/kocevski/462148/ft2_4FGL_J2120.6-1254_daily_bin1052.fits outfile=/scratch/kocevski/462148/cmap_HighResolution_512006401_512265601_4FGL_J2120.6-1254_daily_bin1052.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.55
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/462148/ft1_filtered_4FGL_J2120.6-1254_daily_bin1052.fits evtable="EVENTS" scfile=/scratch/kocevski/462148/ft2_4FGL_J2120.6-1254_daily_bin1052.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/462148/Model_4FGL_J2120.6-1254_daily_bin1052.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/462148/ft1_filtered_4FGL_J2120.6-1254_daily_bin1052.fits.....................!
real 88.69
user 87.22
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.1943       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.6266       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.0976       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.320       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.1261       1.0000         .10000E-03   10000.    
     6 'Prefactor '    40.377       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.3150       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.9292       1.0000         .10000E-03   10000.    
    12 'norm      '    4.3525       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8841       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.7547       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .59412       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=   9655.625     FROM MIGRAD    STATUS=CONVERGED    276 CALLS     1423 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.1941        3.6056       -.99836E-06   -.36162E-03
   2  Prefactor     3.6268        2.7128        .89711E-06   -.29088E-03
   3  Prefactor     5.0973        10.452       -.12381E-05   -.13580E-03
   4  Prefactor     14.327        16.664        .11806E-04    .80994E-04
   5  Prefactor     6.1211        13.943       -.13004E-04   -.17473E-03
   6  Prefactor     40.379        27.221        .24564E-05    .78961E-06
   7  Prefactor     3.3148        3.6673       -.67629E-06   -.36146E-03
   8  Prefactor     .10000E-03    .53928       -.40255E-07** at limit **
   9  Prefactor     .10000E-03    1.1573       -.10175E-07** at limit **
  10  Prefactor     .10000E-03    8.6329       -.46812E-08** at limit **
  11  Prefactor     7.9265        12.414       -.17474E-05   -.77388E-04
  12  norm          4.3527        4.2354        .85683E-07    .61779E-04
  13  Prefactor     2.8852        5.1160        .15732E-05   -.71272E-03
  14  Prefactor     .10000E-03    16.931        .13281E-07** at limit **
  15  Normalizat    1.7545        .18380        .44873E-07    .47493E-04
  16  Prefactor     .59422        .95399E-01    .12192E-06    .35386E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.19414
  Prefactor  = 3.62676
  Prefactor  = 5.09733
  Prefactor  = 14.3268
  Prefactor  = 6.12108
  Prefactor  = 40.379
  Prefactor  = 3.31483
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.92651
  norm       = 4.35267
  Prefactor  = 2.88525
  Prefactor  = 0.0001
  Normalizat = 1.75454
  Prefactor  = 0.594218
 **********
 **   18 **HESSE 
 **********

 FCN=   9655.625     FROM HESSE     STATUS=OK           207 CALLS     1630 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.1941        3.6172        .13730E-03   -1.5210    
   2  Prefactor     3.6268        2.7015        .13447E-03   -1.5327    
   3  Prefactor     5.0973        10.468        .17808E-03   -1.5256    
   4  Prefactor     14.327        16.668        .10585E-03   -1.4951    
   5  Prefactor     6.1211        14.135        .16221E-03   -1.5213    
   6  Prefactor     40.379        27.187        .63082E-04   -1.4436    
   7  Prefactor     3.3148        3.6690        .19196E-03   -1.5344    
   8  Prefactor     .10000E-03    .54176        .70426E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.1594        .10323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.6362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.9265        12.457        .14239E-03   -1.5145    
  12  norm          4.3527        4.2366        .19307E-03   -1.5291    
  13  Prefactor     2.8852        5.0731        .23931E-03   -1.5368    
  14  Prefactor     .10000E-03    17.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.7545        .21921        .25438E-03   -.70856    
  16  Prefactor     .59422        .11271        .21902E-03   -1.0783    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.38234e-10
Minuit parameter uncertainties:
  1  3.61735
  2  2.70158
  3  10.4713
  4  16.6734
  5  14.1428
  6  27.195
  7  3.66922
  8  2.49526e-06
  9  1.69838e-07
  10  5.12977e-06
  11  12.4612
  12  4.2369
  13  5.07386
  14  4.02868e-06
  15  0.21933
  16  0.112756
Done.

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

Extracting fit parameters...

4FGL J2120.6-1254
   Spectrum: PowerLaw
314    Prefactor:  6.121e+00  1.414e+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:  5.942e-01  1.128e-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.755e+00  2.193e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.24
Ra Dec: 320.154 -12.910
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/462148/likelihoodResults_512006401_512265601_4FGL_J2120.6-1254_daily_bin1052.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) = 9652.81876332
delta logL = 2.80612611689

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9652.66729204
delta logL = 2.95759740352

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10382E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    6.0578       1.0000          .0000       10.000    
     3 'Normalizat'    1.6099       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64580       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=   9652.667     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      347 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10243E-01    .57945E-01    .90749E-03    .42792E-03
   2  Index         6.0638        1.6735        .83693E-01    .18095E-03
   3  Normalizat    1.6101        .52495E-01    .59369E-01   -.44332E-04
   4  Prefactor     .64572        .28111E-01    .41675E-01   -.61894E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0102431
  Index      = 6.06382
  Normalizat = 1.6101
  Prefactor  = 0.64572
 **********
 **   18 **HESSE 
 **********

 FCN=   9652.667     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      380 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10243E-01    .11599        .45865E-05   -1.5688    
   2  Index         6.0638        2.5980        .33295E-02    .21440    
   3  Normalizat    1.6101        .18471        .26254E-03   -.74730    
   4  Prefactor     .64572        .97092E-01    .21072E-03   -1.0569    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.66924e-10
Minuit parameter uncertainties:
  1  0.068599
  2  2.73925
  3  0.184786
  4  0.0971175
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/462148': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9652.66728601
delta logL = 2.95760342924

Extracting fit parameters...

4FGL J2120.6-1254
   Spectrum: PowerLaw
314    Prefactor:  1.024e-02  6.860e-02  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  6.064e+00  2.739e+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:  6.457e-01  9.712e-02  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.610e+00  1.848e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.54
Ra Dec: 320.154 -12.910
Photon Index (Free Index): 6.06 +/- 2.74
Photon Flux (Free Index): 1.30e-07 +/- 6.37e-08
Energy Flux (Free Index): 1.62e-05 +/- 8.80e-06

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/462148/cmap_HighResolution_512006401_512265601_4FGL_J2120.6-1254_daily_bin1052.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.10e-03', comment='SUCCESS', energy_flux2='1.62e-05', dlogl='2.96e+00', photon_flux2='1.30e-07', job_status='DONE', time_completed='2021-09-26 12:09:04.267919', photon_index_error2='2.74', photon_index2='6.06', ts='0.24', fit_tolerance='1e-08', GAL='0.59', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='8.80e-06', EG='1.75', time_epoch_completed='1632683344.27', return_code='0', job_id='462148', GAL2='0.65', EG2='1.61', return_code2='102', photon_flux_error2='6.37e-08', ts2='6.54', photon_index='2.34' WHERE bin_id='1052' AND source_name='4FGL J2120.6-1254' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 12:09:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 462148: <4FGL_J2120.6-1254_daily_bin1052> in cluster <slac> Done

Job <4FGL_J2120.6-1254_daily_bin1052> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 11:55:32 2021
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 11:56:18 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:18 2021
Terminated at Sun Sep 26 12:09:05 2021
Results reported at Sun Sep 26 12:09:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2120.6-1254_daily_bin1052 320.154 -12.9097 512006401 512265601 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 :                                   698.00 sec.
    Max Memory :                                 1168 MB
    Average Memory :                             354.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            813 sec.

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

