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


Performing analysis on: 4FGL_J2120.6-1254_daily_bin1597
RA = 320.154, Dec = -12.9097
tmin = 653270401, tmax = 653529601
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='463957', job_status='RUN', time_executed='2021-09-26 12:04:51.987205', time_epoch_executed='1632683091.99' WHERE source_name='4FGL J2120.6-1254' and cadence='daily' and bin_id='1597'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/463957

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/463957/ft1_4FGL_J2120.6-1254_daily_bin1597.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/463957/ft2_4FGL_J2120.6-1254_daily_bin1597.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/463957/ft1_4FGL_J2120.6-1254_daily_bin1597.fits outfile=/scratch/kocevski/463957/ft1_filteredMKT_4FGL_J2120.6-1254_daily_bin1597.fits ra=320.154 dec=-12.9097 rad=12.0 tmin=653270401.0 tmax=653529601.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.31
user 3.10
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/463957/ft1_filtered_4FGL_J2120.6-1254_daily_bin1597.fits" evtable="EVENTS" scfile=/scratch/kocevski/463957/ft2_4FGL_J2120.6-1254_daily_bin1597.fits sctable="SC_DATA" outfile=/scratch/kocevski/463957/ltcube_653270401_653529601_4FGL_J2120.6-1254_daily_bin1597.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/463957/ft2_4FGL_J2120.6-1254_daily_bin1597.fits
.....................!
real 15.92
user 15.48
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/463957/ft1_filtered_4FGL_J2120.6-1254_daily_bin1597.fits evtable="EVENTS" scfile=/scratch/kocevski/463957/ft2_4FGL_J2120.6-1254_daily_bin1597.fits sctable="SC_DATA" expcube=/scratch/kocevski/463957/ltcube_653270401_653529601_4FGL_J2120.6-1254_daily_bin1597.fits outfile=/scratch/kocevski/463957/expmap_653270401_653529601_4FGL_J2120.6-1254_daily_bin1597.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/463957/ltcube_653270401_653529601_4FGL_J2120.6-1254_daily_bin1597.fits
.....................!
real 191.99
user 186.76
sys 4.61

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/463957/ft1_filtered_4FGL_J2120.6-1254_daily_bin1597.fits scfile=/scratch/kocevski/463957/ft2_4FGL_J2120.6-1254_daily_bin1597.fits outfile=/scratch/kocevski/463957/cmap_653270401_653529601_4FGL_J2120.6-1254_daily_bin1597.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.54
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/463957/ft1_filtered_4FGL_J2120.6-1254_daily_bin1597.fits scfile=/scratch/kocevski/463957/ft2_4FGL_J2120.6-1254_daily_bin1597.fits outfile=/scratch/kocevski/463957/cmap_HighResolution_653270401_653529601_4FGL_J2120.6-1254_daily_bin1597.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/463957/ft1_filtered_4FGL_J2120.6-1254_daily_bin1597.fits evtable="EVENTS" scfile=/scratch/kocevski/463957/ft2_4FGL_J2120.6-1254_daily_bin1597.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/463957/Model_4FGL_J2120.6-1254_daily_bin1597.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/463957/ft1_filtered_4FGL_J2120.6-1254_daily_bin1597.fits.....................!
real 37.92
user 36.18
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.209       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.874       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10539E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10337E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    57.470       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.711       1.0000         .10000E-03   10000.    
    12 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.569       1.0000         .10000E-03   10000.    
    15 'Normalizat'    .86801       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.0164       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=   2994.396     FROM MIGRAD    STATUS=CONVERGED    286 CALLS     1430 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.2259        .11003E-06** at limit **
   2  Prefactor     .10000E-03    2.7262       -.27778E-06** at limit **
   3  Prefactor     36.208        24.995       -.20325E-05    .25300E-04
   4  Prefactor     13.869        33.872       -.10793E-04    .17194E-04
   5  Prefactor     .10000E-03    8.9945       -.36550E-05** at limit **
   6  Prefactor     .10000E-03    35.138        .19216E-05** at limit **
   7  Prefactor     .10000E-03    9.1106        .40970E-05** at limit **
   8  Prefactor     .10000E-03    2.3547        .98533E-06** at limit **
   9  Prefactor     .10000E-03    4.5747       -.22057E-06** at limit **
  10  Prefactor     57.354        89.602       -.14851E-03   -.44093E-05
  11  Prefactor     15.711        19.456        .13068E-05    .22294E-04
  12  norm          .10000E-03    5.5559        .18099E-05** at limit **
  13  Prefactor     .10000E-03    5.6301       -.12218E-05** at limit **
  14  Prefactor     21.544        34.754       -.40818E-04    .63257E-05
  15  Normalizat    .86790        .34964        .17544E-04   -.36093E-04
  16  Prefactor     1.0164        .18101        .14142E-05    .17613E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.2085
  Prefactor  = 13.8693
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 57.354
  Prefactor  = 15.7107
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.5442
  Normalizat = 0.867899
  Prefactor  = 1.01642
 **********
 **   18 **HESSE 
 **********

 FCN=   2994.396     FROM HESSE     STATUS=OK           197 CALLS     1627 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.2270        .59171E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.7472        .88199E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     36.208        25.006        .66601E-04   -1.4504    
   4  Prefactor     13.869        33.866        .10753E-03   -1.4963    
   5  Prefactor     .10000E-03    8.9966        .16024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    35.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.1606        .16132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.3655        .82042E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.5794        .11431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     57.354        89.687        .26459E-03   -1.4192    
  11  Prefactor     15.711        19.457        .10105E-03   -1.4915    
  12  norm          .10000E-03    5.5565        .12598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.6401        .12680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.544        34.754        .86245E-04   -1.4779    
  15  Normalizat    .86790        .42923        .35121E-03   -.97597    
  16  Prefactor     1.0164        .22413        .17174E-03   -.92184    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54553e-09
Minuit parameter uncertainties:
  1  6.51121e-06
  2  5.08589e-05
  3  25.0128
  4  33.9133
  5  2.3939e-05
  6  0.000486256
  7  0.000119139
  8  0.000150021
  9  1.81173e-05
  10  89.8997
  11  19.4647
  12  1.28836e-05
  13  4.03586e-05
  14  34.7862
  15  0.430927
  16  0.224337
Done.

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

Extracting fit parameters...

4FGL J2120.6-1254
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  2.394e-05  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.016e+00  2.243e-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:  8.679e-01  4.309e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/463957/likelihoodResults_653270401_653529601_4FGL_J2120.6-1254_daily_bin1597.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): 102
logL (Free Index) = 2994.39689812
delta logL = -0.000528634126567

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2994.39637009
delta logL = -6.05728928349e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11517E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3061       1.0000          .0000       10.000    
     3 'Normalizat'    .86791       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0164       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=   2994.396     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      239 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10252E-03    6.9798        .16635E-01** at limit **
   2  Index         2.2321        6.9572        .50000        .23550E-04
   3  Normalizat    .86791        .67980E-02    .35120E-03   -.65746E-04
   4  Prefactor     1.0164        .35958E-02    .17174E-03   -.15945E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102517
  Index      = 2.2321
  Normalizat = 0.867907
  Prefactor  = 1.01641
 **********
 **   18 **HESSE 
 **********

 FCN=   2994.396     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10252E-03    81.422        .17045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2321        7.9391        .50000       -.58666    
   3  Normalizat    .86791        .23388E-01    .14048E-04   -.97597    
   4  Prefactor     1.0164        .12371E-01    .34347E-04   -.92184    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.15962e-09
Minuit parameter uncertainties:
  1  0.0286692
  2  256.392
  3  0.0233879
  4  0.0123712
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/463957': 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) = 2994.39636895
delta logL = 5.31606019649e-07

Extracting fit parameters...

4FGL J2120.6-1254
   Spectrum: PowerLaw
314    Prefactor:  1.025e-04  2.867e-02  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.232e+00  2.564e+02  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.016e+00  1.237e-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:  8.679e-01  2.339e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/463957/cmap_HighResolution_653270401_653529601_4FGL_J2120.6-1254_daily_bin1597.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', job_status='DONE', photon_flux_upper_limit='1.33e-07', time_completed='2021-09-26 12:12:07.872810', job_id='463957', GAL2='1.02', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1632683527.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='5.32e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1597' AND source_name='4FGL J2120.6-1254' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 12:12:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 463957: <4FGL_J2120.6-1254_daily_bin1597> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2120.6-1254_daily_bin1597 320.154 -12.9097 653270401 653529601 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 :                                   430.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   525 sec.
    Turnaround time :                            681 sec.

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

