/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 165 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 = 7392
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2120.6-1254_daily_bin430
RA = 320.154, Dec = -12.9097
tmin = 350784001, tmax = 351043201
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='459094', job_status='RUN', time_executed='2021-09-26 11:50:08.857156', time_epoch_executed='1632682208.86' WHERE source_name='4FGL J2120.6-1254' and cadence='daily' and bin_id='430'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/459094

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/459094/ft1_4FGL_J2120.6-1254_daily_bin430.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/459094/ft2_4FGL_J2120.6-1254_daily_bin430.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/459094/ft1_4FGL_J2120.6-1254_daily_bin430.fits outfile=/scratch/kocevski/459094/ft1_filteredMKT_4FGL_J2120.6-1254_daily_bin430.fits ra=320.154 dec=-12.9097 rad=12.0 tmin=350784001.0 tmax=351043201.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.43
user 3.15
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/459094/ft1_filtered_4FGL_J2120.6-1254_daily_bin430.fits" evtable="EVENTS" scfile=/scratch/kocevski/459094/ft2_4FGL_J2120.6-1254_daily_bin430.fits sctable="SC_DATA" outfile=/scratch/kocevski/459094/ltcube_350784001_351043201_4FGL_J2120.6-1254_daily_bin430.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/459094/ft2_4FGL_J2120.6-1254_daily_bin430.fits
.....................!
real 15.40
user 14.98
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/459094/ft1_filtered_4FGL_J2120.6-1254_daily_bin430.fits evtable="EVENTS" scfile=/scratch/kocevski/459094/ft2_4FGL_J2120.6-1254_daily_bin430.fits sctable="SC_DATA" expcube=/scratch/kocevski/459094/ltcube_350784001_351043201_4FGL_J2120.6-1254_daily_bin430.fits outfile=/scratch/kocevski/459094/expmap_350784001_351043201_4FGL_J2120.6-1254_daily_bin430.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/459094/ltcube_350784001_351043201_4FGL_J2120.6-1254_daily_bin430.fits
.....................!
real 193.93
user 187.84
sys 5.11

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/459094/ft1_filtered_4FGL_J2120.6-1254_daily_bin430.fits scfile=/scratch/kocevski/459094/ft2_4FGL_J2120.6-1254_daily_bin430.fits outfile=/scratch/kocevski/459094/cmap_350784001_351043201_4FGL_J2120.6-1254_daily_bin430.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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/459094/ft1_filtered_4FGL_J2120.6-1254_daily_bin430.fits scfile=/scratch/kocevski/459094/ft2_4FGL_J2120.6-1254_daily_bin430.fits outfile=/scratch/kocevski/459094/cmap_HighResolution_350784001_351043201_4FGL_J2120.6-1254_daily_bin430.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.58
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/459094/ft1_filtered_4FGL_J2120.6-1254_daily_bin430.fits evtable="EVENTS" scfile=/scratch/kocevski/459094/ft2_4FGL_J2120.6-1254_daily_bin430.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/459094/Model_4FGL_J2120.6-1254_daily_bin430.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/459094/ft1_filtered_4FGL_J2120.6-1254_daily_bin430.fits.....................!
real 91.83
user 90.31
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1081       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .73591       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.0788       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.177       1.0000         .10000E-03   10000.    
     6 'Prefactor '    33.588       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10714E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    35.040       1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.347       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.708       1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.1473       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.0955       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=   9882.364     FROM MIGRAD    STATUS=CONVERGED    301 CALLS     1470 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1082        3.4861       -.21269E-06   -.41515E-03
   2  Prefactor     .73652        2.4355       -.14234E-05   -.64110E-03
   3  Prefactor     9.0794        11.765       -.79855E-06   -.42822E-04
   4  Prefactor     .10000E-03    14.547        .31285E-06** at limit **
   5  Prefactor     24.178        13.695       -.34568E-05    .35511E-05
   6  Prefactor     33.578        32.928       -.58930E-05   -.12193E-04
   7  Prefactor     .10000E-03    1.3336       -.82524E-07** at limit **
   8  Prefactor     .10000E-03    1.3527        .13062E-06** at limit **
   9  Prefactor     .10000E-03    1.5210       -.35933E-07** at limit **
  10  Prefactor     .10000E-03    104.49        .37104E-05** at limit **
  11  Prefactor     .10000E-03    14.887       -.22231E-06** at limit **
  12  norm          35.041        13.102       -.10775E-05    .42239E-05
  13  Prefactor     26.347        8.3411        .90366E-07   -.85217E-05
  14  Prefactor     15.709        18.058       -.11702E-05   -.12777E-04
  15  Normalizat    1.1473        .20762        .15159E-05    .10358E-03
  16  Prefactor     1.0955        .11415        .52826E-06    .24953E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.10824
  Prefactor  = 0.736517
  Prefactor  = 9.07938
  Prefactor  = 0.0001
  Prefactor  = 24.1782
  Prefactor  = 33.5784
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 35.0408
  Prefactor  = 26.3471
  Prefactor  = 15.7088
  Normalizat = 1.14731
  Prefactor  = 1.09549
 **********
 **   18 **HESSE 
 **********

 FCN=   9882.364     FROM HESSE     STATUS=OK           205 CALLS     1675 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1082        3.4975        .16604E-03   -1.5303    
   2  Prefactor     .73652        4.0309        .27561E-02   -1.5536    
   3  Prefactor     9.0794        11.785        .13302E-03   -1.5105    
   4  Prefactor     .10000E-03    14.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.178        13.618        .81467E-04   -1.4724    
   6  Prefactor     33.578        32.813        .69143E-04   -1.4548    
   7  Prefactor     .10000E-03    1.3361        .11210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.3766        .11273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.5238        .11973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    106.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          35.041        13.104        .67699E-04   -1.4523    
  13  Prefactor     26.347        8.3857        .78045E-04   -1.4681    
  14  Prefactor     15.709        18.075        .10105E-03   -1.4915    
  15  Normalizat    1.1473        .24752        .33673E-03   -.88247    
  16  Prefactor     1.0955        .13663        .19529E-03   -.89611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.16132e-10
Minuit parameter uncertainties:
  1  3.4977
  2  3.44617
  3  11.7878
  4  0.000130272
  5  13.6193
  6  32.8306
  7  8.3744e-07
  8  1.87156e-05
  9  2.05224e-06
  10  0.000160136
  11  7.82101e-06
  12  13.1051
  13  8.38604
  14  18.0815
  15  0.247769
  16  0.136671
Done.

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

Extracting fit parameters...

4FGL J2120.6-1254
   Spectrum: PowerLaw
314    Prefactor:  2.418e+01  1.362e+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.095e+00  1.367e-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.147e+00  2.478e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.61
Ra Dec: 320.154 -12.910
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 7.58e-08 +/- 4.27e-08
Energy Flux (Fixed Index): 2.72e-05 +/- 1.53e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9881.47473343
delta logL = 0.889059901527

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9881.46106656
delta logL = 0.902726766555

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6801       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0356       1.0000          .0000       10.000    
     3 'Normalizat'    1.0847       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1176       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=   9881.461     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      254 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6633        62.154        .32200E-02    .10677E-02
   2  Index         3.0364        2.1068        .10492        .53372E-03
   3  Normalizat    1.0846        .80118E-01    .77904E-01    .86342E-03
   4  Prefactor     1.1176        .41472E-01    .36953E-01    .16168E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.66328
  Index      = 3.03636
  Normalizat = 1.08465
  Prefactor  = 1.1176
 **********
 **   18 **HESSE 
 **********

 FCN=   9881.461     FROM HESSE     STATUS=OK            29 CALLS      283 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6633        17.215        .12880E-03   -1.5086    
   2  Index         3.0364        .90250        .39741E-02   -.40360    
   3  Normalizat    1.0846        .24521        .34483E-03   -.90246    
   4  Prefactor     1.1176        .13753        .19351E-03   -.88906    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44363e-09
Minuit parameter uncertainties:
  1  17.2234
  2  0.9084
  3  0.24547
  4  0.137572
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/459094': 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) = 9881.46106526
delta logL = 0.902728066792

Extracting fit parameters...

4FGL J2120.6-1254
   Spectrum: PowerLaw
314    Prefactor:  9.663e+00  1.722e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  3.036e+00  9.084e-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.118e+00  1.376e-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.085e+00  2.455e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.52
Ra Dec: 320.154 -12.910
Photon Index (Free Index): 3.04 +/- 0.91
Photon Flux (Free Index): 1.21e-07 +/- 5.94e-08
Energy Flux (Free Index): 2.38e-05 +/- 1.23e-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/459094/cmap_HighResolution_350784001_351043201_4FGL_J2120.6-1254_daily_bin430.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.58e-08', energy_flux2='2.38e-05', photon_flux_error='4.27e-08', dlogl='9.03e-01', energy_flux='2.72e-05', photon_flux2='1.21e-07', job_status='DONE', time_completed='2021-09-26 12:01:03.719946', photon_index_error2='0.91', photon_index2='3.04', ts='5.61', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='1.23e-05', EG='1.15', time_epoch_completed='1632682863.72', return_code='0', job_id='459094', GAL2='1.12', EG2='1.08', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='5.94e-08', ts2='7.52', photon_index='2.34' WHERE bin_id='430' AND source_name='4FGL J2120.6-1254' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 12:01:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 459094: <4FGL_J2120.6-1254_daily_bin430> in cluster <slac> Done

Job <4FGL_J2120.6-1254_daily_bin430> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 11:45:15 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 11:47:13 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:47:13 2021
Terminated at Sun Sep 26 12:01:05 2021
Results reported at Sun Sep 26 12:01:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2120.6-1254_daily_bin430 320.154 -12.9097 350784001 351043201 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 :                                   650.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            950 sec.

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

