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


Performing analysis on: 4FGL_J2120.6-1254_daily_bin1626
RA = 320.154, Dec = -12.9097
tmin = 660787201, tmax = 661046401
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='171761', job_status='RUN', time_executed='2021-12-13 00:37:23.508964', time_epoch_executed='1639384643.51' WHERE source_name='4FGL J2120.6-1254' and cadence='daily' and bin_id='1626'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/171761

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/171761/ft1_4FGL_J2120.6-1254_daily_bin1626.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/171761/ft2_4FGL_J2120.6-1254_daily_bin1626.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/171761/ft1_4FGL_J2120.6-1254_daily_bin1626.fits outfile=/scratch/kocevski/171761/ft1_filteredMKT_4FGL_J2120.6-1254_daily_bin1626.fits ra=320.154 dec=-12.9097 rad=12.0 tmin=660787201.0 tmax=661046401.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.57
user 3.30
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/171761/ft1_filtered_4FGL_J2120.6-1254_daily_bin1626.fits" evtable="EVENTS" scfile=/scratch/kocevski/171761/ft2_4FGL_J2120.6-1254_daily_bin1626.fits sctable="SC_DATA" outfile=/scratch/kocevski/171761/ltcube_660787201_661046401_4FGL_J2120.6-1254_daily_bin1626.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/171761/ft2_4FGL_J2120.6-1254_daily_bin1626.fits
.....................!
real 11.71
user 11.35
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/171761/ft1_filtered_4FGL_J2120.6-1254_daily_bin1626.fits evtable="EVENTS" scfile=/scratch/kocevski/171761/ft2_4FGL_J2120.6-1254_daily_bin1626.fits sctable="SC_DATA" expcube=/scratch/kocevski/171761/ltcube_660787201_661046401_4FGL_J2120.6-1254_daily_bin1626.fits outfile=/scratch/kocevski/171761/expmap_660787201_661046401_4FGL_J2120.6-1254_daily_bin1626.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/171761/ltcube_660787201_661046401_4FGL_J2120.6-1254_daily_bin1626.fits
.....................!
real 191.81
user 185.66
sys 5.79

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/171761/ft1_filtered_4FGL_J2120.6-1254_daily_bin1626.fits scfile=/scratch/kocevski/171761/ft2_4FGL_J2120.6-1254_daily_bin1626.fits outfile=/scratch/kocevski/171761/cmap_660787201_661046401_4FGL_J2120.6-1254_daily_bin1626.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/171761/ft1_filtered_4FGL_J2120.6-1254_daily_bin1626.fits scfile=/scratch/kocevski/171761/ft2_4FGL_J2120.6-1254_daily_bin1626.fits outfile=/scratch/kocevski/171761/cmap_HighResolution_660787201_661046401_4FGL_J2120.6-1254_daily_bin1626.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.54
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    11.530       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.8021       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.692       1.0000         .10000E-03   10000.    
     6 'Prefactor '    68.865       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .84834       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2229       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.381       1.0000         .10000E-03   10000.    
    12 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .26111E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    .84031       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .91194       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=   4972.132     FROM MIGRAD    STATUS=CONVERGED    317 CALLS     1526 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.1192       -.16858E-07** at limit **
   2  Prefactor     11.530        7.4904       -.99972E-06   -.67743E-03
   3  Prefactor     3.8013        11.160        .41027E-05   -.72022E-03
   4  Prefactor     .10000E-03    26.796        .31607E-06** at limit **
   5  Prefactor     17.697        16.144       -.15742E-05   -.29064E-03
   6  Prefactor     68.877        56.022        .41932E-05    .21388E-03
   7  Prefactor     .84602        6.2722        .86289E-06   -.32468E-03
   8  Prefactor     2.2226        2.2013       -.16865E-06   -.37144E-04
   9  Prefactor     .10000E-03    3.3805        .20022E-07** at limit **
  10  Prefactor     .10000E-03    19.669       -.22879E-06** at limit **
  11  Prefactor     22.372        21.763        .33457E-05    .38103E-03
  12  norm          .10000E-03    7.3970       -.53787E-07** at limit **
  13  Prefactor     .10005E-03    7.6650       -.13736E-07** at limit **
  14  Prefactor     .10000E-03    7.8003        .79921E-07** at limit **
  15  Normalizat    .84020        .26434       -.26987E-05    .43267E-04
  16  Prefactor     .91201        .13300        .49169E-06   -.12562E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 11.5297
  Prefactor  = 3.80134
  Prefactor  = 0.0001
  Prefactor  = 17.6965
  Prefactor  = 68.8768
  Prefactor  = 0.84602
  Prefactor  = 2.22259
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.3718
  norm       = 0.0001
  Prefactor  = 0.000100049
  Prefactor  = 0.0001
  Normalizat = 0.840201
  Prefactor  = 0.912005
 **********
 **   18 **HESSE 
 **********

 FCN=   4972.132     FROM HESSE     STATUS=OK           205 CALLS     1731 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.1215        .72850E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.530        7.6752        .11798E-03   -1.5029    
   3  Prefactor     3.8013        14.369        .10351E-02   -1.5318    
   4  Prefactor     .10000E-03    26.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.697        16.341        .95219E-04   -1.4866    
   6  Prefactor     68.877        56.480        .48370E-04   -1.4046    
   7  Prefactor     .84602        6.5560        .34792E-03   -1.5524    
   8  Prefactor     2.2226        2.2071        .99225E-04   -1.5410    
   9  Prefactor     .10000E-03    3.3936        .12660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     22.372        22.147        .84667E-04   -1.4762    
  12  norm          .10000E-03    7.4720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10005E-03    10.554        .52666E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.8037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    .84020        .32506        .33152E-03   -.98594    
  16  Prefactor     .91201        .16526        .17250E-03   -.95723    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.11733e-09
Minuit parameter uncertainties:
  1  3.24596e-07
  2  7.67583
  3  14.3821
  4  0.000144379
  5  16.3447
  6  56.5242
  7  4.71063
  8  2.20719
  9  1.61559e-06
  10  3.89038e-05
  11  22.1548
  12  2.87542e-05
  13  0.00143642
  14  9.88424e-06
  15  0.325819
  16  0.165352
Done.

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

Extracting fit parameters...

4FGL J2120.6-1254
   Spectrum: PowerLaw
314    Prefactor:  1.770e+01  1.634e+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.120e-01  1.654e-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.402e-01  3.258e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.22
Ra Dec: 320.154 -12.910
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 5.55e-08 +/- 5.12e-08
Energy Flux (Fixed Index): 1.99e-05 +/- 1.84e-05

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

Saving results to:
/scratch/kocevski/171761/likelihoodResults_660787201_661046401_4FGL_J2120.6-1254_daily_bin1626.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) = 4972.11045562
delta logL = 0.0214024675888

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4972.09783913
delta logL = 0.0340189544158

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.872       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5050       1.0000          .0000       10.000    
     3 'Normalizat'    .83107       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91486       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=   4972.098     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      245 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.869        19.127        .10386E-03    .97155E-03
   2  Index         2.5052        .70302        .63665E-02    .31583E-03
   3  Normalizat    .83109        .30077        .33318E-03   -.35804E-03
   4  Prefactor     .91485        .16252        .17225E-03   -.82532E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.8692
  Index      = 2.50524
  Normalizat = 0.831086
  Prefactor  = 0.914849
 **********
 **   18 **HESSE 
 **********

 FCN=   4972.098     FROM HESSE     STATUS=OK            23 CALLS      268 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.869        17.936        .20772E-04   -1.4937    
   2  Index         2.5052        .65889        .25466E-03   -.52239    
   3  Normalizat    .83109        .30077        .66636E-04   -.98926    
   4  Prefactor     .91485        .16255        .34450E-04   -.95624    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13871e-09
Minuit parameter uncertainties:
  1  17.9423
  2  0.661457
  3  0.301372
  4  0.162639
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/171761': 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) = 4972.09783908
delta logL = 0.0340190044108

Extracting fit parameters...

4FGL J2120.6-1254
   Spectrum: PowerLaw
314    Prefactor:  1.487e+01  1.794e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.505e+00  6.615e-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.148e-01  1.626e-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.311e-01  3.014e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.28
Ra Dec: 320.154 -12.910
Photon Index (Free Index): 2.51 +/- 0.66
Photon Flux (Free Index): 6.41e-08 +/- 6.43e-08
Energy Flux (Free Index): 1.85e-05 +/- 1.72e-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/171761/cmap_HighResolution_660787201_661046401_4FGL_J2120.6-1254_daily_bin1626.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.34e-02', comment='SUCCESS', photon_flux='5.55e-08', energy_flux2='1.85e-05', photon_flux_error='5.12e-08', dlogl='3.40e-02', energy_flux='1.99e-05', photon_flux2='6.41e-08', job_status='DONE', time_completed='2021-12-13 00:45:35.516425', photon_index_error2='0.66', photon_index2='2.51', ts='2.22', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.74e-07', energy_flux_error2='1.72e-05', EG='0.84', time_epoch_completed='1639385135.52', return_code='0', job_id='171761', GAL2='0.91', EG2='0.83', return_code2='0', energy_flux_error='1.84e-05', photon_flux_error2='6.43e-08', ts2='2.28', photon_index='2.34' WHERE bin_id='1626' AND source_name='4FGL J2120.6-1254' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec 13 00:45:35 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 171761: <4FGL_J2120.6-1254_daily_bin1626> in cluster <slac> Done

Job <4FGL_J2120.6-1254_daily_bin1626> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Mon Dec 13 00:35:47 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec 13 00:35:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec 13 00:35:49 2021
Terminated at Mon Dec 13 00:45:36 2021
Results reported at Mon Dec 13 00:45:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2120.6-1254_daily_bin1626 320.154 -12.9097 660787201 661046401 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 :                                   494.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   586 sec.
    Turnaround time :                            589 sec.

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

