aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 201 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 = 7474
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2120.6-1254_daily_bin1700
RA = 320.154, Dec = -12.9097
tmin = 679968001, tmax = 680227201
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='83275', job_status='RUN', time_executed='2022-07-23 00:39:06.827705', time_epoch_executed='1658561946.83' WHERE source_name='4FGL J2120.6-1254' and cadence='daily' and bin_id='1700'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/83275

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/83275/ft1_4FGL_J2120.6-1254_daily_bin1700.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/83275/ft2_4FGL_J2120.6-1254_daily_bin1700.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/83275/ft1_4FGL_J2120.6-1254_daily_bin1700.fits outfile=/scratch/kocevski/83275/ft1_filteredMKT_4FGL_J2120.6-1254_daily_bin1700.fits ra=320.154 dec=-12.9097 rad=12.0 tmin=679968001.0 tmax=680227201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.71
user 4.29
sys 0.24

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

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

Number of photons that the gtmktime cut: 516

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/83275/ft1_filtered_4FGL_J2120.6-1254_daily_bin1700.fits" evtable="EVENTS" scfile=/scratch/kocevski/83275/ft2_4FGL_J2120.6-1254_daily_bin1700.fits sctable="SC_DATA" outfile=/scratch/kocevski/83275/ltcube_679968001_680227201_4FGL_J2120.6-1254_daily_bin1700.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/83275/ft2_4FGL_J2120.6-1254_daily_bin1700.fits
.....................!
real 12.55
user 11.40
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/83275/ft1_filtered_4FGL_J2120.6-1254_daily_bin1700.fits evtable="EVENTS" scfile=/scratch/kocevski/83275/ft2_4FGL_J2120.6-1254_daily_bin1700.fits sctable="SC_DATA" expcube=/scratch/kocevski/83275/ltcube_679968001_680227201_4FGL_J2120.6-1254_daily_bin1700.fits outfile=/scratch/kocevski/83275/expmap_679968001_680227201_4FGL_J2120.6-1254_daily_bin1700.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/83275/ltcube_679968001_680227201_4FGL_J2120.6-1254_daily_bin1700.fits
.....................!
real 191.27
user 185.30
sys 5.18

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/83275/ft1_filtered_4FGL_J2120.6-1254_daily_bin1700.fits scfile=/scratch/kocevski/83275/ft2_4FGL_J2120.6-1254_daily_bin1700.fits outfile=/scratch/kocevski/83275/cmap_679968001_680227201_4FGL_J2120.6-1254_daily_bin1700.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.72
user 0.38
sys 0.18

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10233E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5222       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .63068E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9649       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.848       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .29050E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11455E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0975       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .46820       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.8561       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11817E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10288E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .72632E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .44904E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.2050       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .93089       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=   5662.455     FROM MIGRAD    STATUS=CONVERGED    373 CALLS     1557 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.4503        .47493E-07** at limit **
   2  Prefactor     2.5243        4.9653        .28530E-06   -.19961E-05
   3  Prefactor     .10000E-03    14.213        .14045E-06** at limit **
   4  Prefactor     2.0041        43.285        .12858E-04   -.47691E-04
   5  Prefactor     17.710        17.706       -.15179E-05   -.45911E-04
   6  Prefactor     .10000E-03    24.197       -.22534E-07** at limit **
   7  Prefactor     .10000E-03    4.4843       -.38432E-07** at limit **
   8  Prefactor     1.0961        3.3399       -.10000E-05   -.61843E-03
   9  Prefactor     .50397        4.3975       -.16418E-06   -.15919E-04
  10  Prefactor     7.8191        103.21        .76880E-05   -.17880E-04
  11  Prefactor     .10000E-03    5.1081        .40399E-07** at limit **
  12  norm          .10000E-03    2.1626        .29506E-08** at limit **
  13  Prefactor     .10036E-03    7.4684        .25648E-06** at limit **
  14  Prefactor     .10000E-03    16.400        .14400E-06** at limit **
  15  Normalizat    1.2056        .24645        .96849E-07   -.48497E-04
  16  Prefactor     .93076        .13127       -.58335E-06   -.10054E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 2.52429
  Prefactor  = 0.0001
  Prefactor  = 2.00409
  Prefactor  = 17.7105
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.09607
  Prefactor  = 0.503975
  Prefactor  = 7.81908
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100358
  Prefactor  = 0.0001
  Normalizat = 1.20564
  Prefactor  = 0.930761
 **********
 **   18 **HESSE 
 **********

 FCN=   5662.455     FROM HESSE     STATUS=OK           211 CALLS     1768 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.5166        .23003E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.5243        4.9638        .22329E-03   -1.5390    
   3  Prefactor     .10000E-03    14.335        .21037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.0041        44.024        .14794E-02   -1.5425    
   5  Prefactor     17.710        17.790        .94803E-04   -1.4866    
   6  Prefactor     .10000E-03    24.206        .21403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.7050        .31117E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.0961        3.4256        .22609E-03   -1.5499    
   9  Prefactor     .50397        23.631        .30105E-02   -1.5566    
  10  Prefactor     7.8191        103.90        .14306E-03   -1.5149    
  11  Prefactor     .10000E-03    5.1271        .16609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.1629        .10807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10036E-03    11.558        .49951E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.585        .21210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.2056        .31063        .29552E-03   -.86429    
  16  Prefactor     .93076        .16408        .18542E-03   -.95074    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69241e-08
Minuit parameter uncertainties:
  1  5.28516e-06
  2  4.96461
  3  3.02847e-05
  4  18.8012
  5  17.7954
  6  4.92029e-07
  7  6.31198e-06
  8  3.4262
  9  6.90422
  10  57.126
  11  3.73249e-06
  12  6.13092e-07
  13  0.00407097
  14  3.03302e-05
  15  0.311107
  16  0.164165
Done.

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

Extracting fit parameters...

4FGL J2120.6-1254
   Spectrum: PowerLaw
314    Prefactor:  1.771e+01  1.780e+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:  9.308e-01  1.642e-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.206e+00  3.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.55
Ra Dec: 320.154 -12.910
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 5.55e-08 +/- 5.57e-08
Energy Flux (Fixed Index): 1.99e-05 +/- 2.00e-05

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

Saving results to:
/scratch/kocevski/83275/likelihoodResults_679968001_680227201_4FGL_J2120.6-1254_daily_bin1700.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) = 5662.38170653
delta logL = 0.0737335676913

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5662.37951964
delta logL = 0.0759204606275

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.206       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5775       1.0000          .0000       10.000    
     3 'Normalizat'    1.1940       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93477       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=   5662.380     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      264 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.208        19.408        .11022E-03   -.32098E-03
   2  Index         2.5777        .71998        .58869E-02   -.14006E-03
   3  Normalizat    1.1942        .28874        .29669E-03    .31964E-03
   4  Prefactor     .93465        .16149        .18506E-03    .60492E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.2082
  Index      = 2.57767
  Normalizat = 1.19422
  Prefactor  = 0.934645
 **********
 **   18 **HESSE 
 **********

 FCN=   5662.380     FROM HESSE     STATUS=OK            25 CALLS      289 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.208        17.375        .44089E-05   -1.4981    
   2  Index         2.5777        .64470        .23548E-03   -.50575    
   3  Normalizat    1.1942        .28884        .59339E-04   -.86782    
   4  Prefactor     .93465        .16151        .37012E-04   -.94941    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.65904e-10
Minuit parameter uncertainties:
  1  17.382
  2  0.64706
  3  0.289223
  4  0.161593
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/83275': 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) = 5662.37951912
delta logL = 0.0759209807502

Extracting fit parameters...

4FGL J2120.6-1254
   Spectrum: PowerLaw
314    Prefactor:  1.321e+01  1.738e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.578e+00  6.471e-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:  9.346e-01  1.616e-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.194e+00  2.892e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.70
Ra Dec: 320.154 -12.910
Photon Index (Free Index): 2.58 +/- 0.65
Photon Flux (Free Index): 6.55e-08 +/- 5.99e-08
Energy Flux (Free Index): 1.75e-05 +/- 1.65e-05

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/83275/cmap_HighResolution_679968001_680227201_4FGL_J2120.6-1254_daily_bin1700.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.25e-02', comment='SUCCESS', photon_flux='5.55e-08', energy_flux2='1.75e-05', photon_flux_error='5.57e-08', dlogl='7.59e-02', energy_flux='1.99e-05', photon_flux2='6.55e-08', job_status='DONE', time_completed='2022-07-23 00:48:03.421495', photon_index_error2='0.65', photon_index2='2.58', ts='1.55', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.63e-07', energy_flux_error2='1.65e-05', EG='1.21', time_epoch_completed='1658562483.42', return_code='0', job_id='83275', GAL2='0.93', EG2='1.19', return_code2='0', energy_flux_error='2.00e-05', photon_flux_error2='5.99e-08', ts2='1.70', photon_index='2.34' WHERE bin_id='1700' AND source_name='4FGL J2120.6-1254' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jul 23 00:48:03 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 83275: <4FGL_J2120.6-1254_daily_bin1700> in cluster <slac> Done

Job <4FGL_J2120.6-1254_daily_bin1700> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Jul 23 00:35:36 2022
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 23 00:35:36 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 23 00:35:36 2022
Terminated at Sat Jul 23 00:48:04 2022
Results reported at Sat Jul 23 00:48:04 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2120.6-1254_daily_bin1700 320.154 -12.9097 679968001 680227201 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 :                                   534.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             261.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   747 sec.
    Turnaround time :                            748 sec.

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

