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


Performing analysis on: 4FGL_J2120.6-1254_daily_bin1544
RA = 320.154, Dec = -12.9097
tmin = 639532801, tmax = 639792001
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='463881', job_status='RUN', time_executed='2021-09-26 12:04:16.301320', time_epoch_executed='1632683056.3' WHERE source_name='4FGL J2120.6-1254' and cadence='daily' and bin_id='1544'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/463881

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/463881/ft1_4FGL_J2120.6-1254_daily_bin1544.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/463881/ft2_4FGL_J2120.6-1254_daily_bin1544.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/463881/ft1_4FGL_J2120.6-1254_daily_bin1544.fits outfile=/scratch/kocevski/463881/ft1_filteredMKT_4FGL_J2120.6-1254_daily_bin1544.fits ra=320.154 dec=-12.9097 rad=12.0 tmin=639532801.0 tmax=639792001.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.72
user 3.36
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/463881/ft1_filtered_4FGL_J2120.6-1254_daily_bin1544.fits" evtable="EVENTS" scfile=/scratch/kocevski/463881/ft2_4FGL_J2120.6-1254_daily_bin1544.fits sctable="SC_DATA" outfile=/scratch/kocevski/463881/ltcube_639532801_639792001_4FGL_J2120.6-1254_daily_bin1544.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/463881/ft2_4FGL_J2120.6-1254_daily_bin1544.fits
.....................!
real 14.82
user 14.22
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/463881/ft1_filtered_4FGL_J2120.6-1254_daily_bin1544.fits evtable="EVENTS" scfile=/scratch/kocevski/463881/ft2_4FGL_J2120.6-1254_daily_bin1544.fits sctable="SC_DATA" expcube=/scratch/kocevski/463881/ltcube_639532801_639792001_4FGL_J2120.6-1254_daily_bin1544.fits outfile=/scratch/kocevski/463881/expmap_639532801_639792001_4FGL_J2120.6-1254_daily_bin1544.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/463881/ltcube_639532801_639792001_4FGL_J2120.6-1254_daily_bin1544.fits
.....................!
real 191.71
user 185.12
sys 5.70

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/463881/ft1_filtered_4FGL_J2120.6-1254_daily_bin1544.fits scfile=/scratch/kocevski/463881/ft2_4FGL_J2120.6-1254_daily_bin1544.fits outfile=/scratch/kocevski/463881/cmap_639532801_639792001_4FGL_J2120.6-1254_daily_bin1544.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.60
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/463881/ft1_filtered_4FGL_J2120.6-1254_daily_bin1544.fits scfile=/scratch/kocevski/463881/ft2_4FGL_J2120.6-1254_daily_bin1544.fits outfile=/scratch/kocevski/463881/cmap_HighResolution_639532801_639792001_4FGL_J2120.6-1254_daily_bin1544.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/463881/ft1_filtered_4FGL_J2120.6-1254_daily_bin1544.fits evtable="EVENTS" scfile=/scratch/kocevski/463881/ft2_4FGL_J2120.6-1254_daily_bin1544.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/463881/Model_4FGL_J2120.6-1254_daily_bin1544.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/463881/ft1_filtered_4FGL_J2120.6-1254_daily_bin1544.fits....................!
real 75.51
user 73.94
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5370       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .47673       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.599       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.744       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15505E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10890E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2880       1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.234       1.0000         .10000E-03   10000.    
    15 'Normalizat'    .67556       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .96391       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=   8547.223     FROM MIGRAD    STATUS=CONVERGED    323 CALLS     1314 TOTAL
                     EDM=   .74E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5369        2.2835        .25141E-07   -.27819E-04
   2  Prefactor     .47651        1.8437        .15260E-05   -.95708E-04
   3  Prefactor     12.599        11.017        .10923E-06   -.11239E-05
   4  Prefactor     .10000E-03    31.447       -.26060E-06** at limit **
   5  Prefactor     12.728        8.9856       -.83214E-06   -.37666E-03
   6  Prefactor     .10000E-03    10.185        .73755E-07** at limit **
   7  Prefactor     .10000E-03    2.5643       -.69507E-08** at limit **
   8  Prefactor     .10000E-03    .98751        .46953E-07** at limit **
   9  Prefactor     .10000E-03    1.3753        .16835E-07** at limit **
  10  Prefactor     .10000E-03    47.762       -.14124E-05** at limit **
  11  Prefactor     4.2883        11.270        .60590E-06    .14483E-04
  12  norm          .10000E-03    1.9893        .16726E-07** at limit **
  13  Prefactor     .10000E-03    2.0151        .37403E-07** at limit **
  14  Prefactor     10.236        12.284        .14458E-06    .20794E-04
  15  Normalizat    .67528        .16527        .23581E-06   -.70911E-04
  16  Prefactor     .96403        .93370E-01   -.21064E-06   -.51750E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.53693
  Prefactor  = 0.476509
  Prefactor  = 12.5991
  Prefactor  = 0.000100001
  Prefactor  = 12.7276
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.28833
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2365
  Normalizat = 0.675275
  Prefactor  = 0.96403
 **********
 **   18 **HESSE 
 **********

 FCN=   8547.223     FROM HESSE     STATUS=OK           205 CALLS     1519 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5369        2.2798        .12871E-03   -1.5389    
   2  Prefactor     .47651        1.8825        .24253E-03   -1.5570    
   3  Prefactor     12.599        11.014        .11285E-03   -1.4998    
   4  Prefactor     .10000E-03    33.213        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.728        9.4723        .11221E-03   -1.4994    
   6  Prefactor     .10000E-03    10.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.3690        .28622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.2616        .17860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.3882        .10588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    48.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.2883        11.262        .19456E-03   -1.5294    
  12  norm          .10000E-03    1.9972        .12734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.0487        .12809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.236        12.258        .12525E-03   -1.5068    
  15  Normalizat    .67528        .20027        .32121E-03   -1.0488    
  16  Prefactor     .96403        .11426        .15701E-03   -.93938    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56199e-10
Minuit parameter uncertainties:
  1  2.27987
  2  1.8827
  3  11.0153
  4  0.000331372
  5  9.47342
  6  4.6626e-06
  7  4.15861e-05
  8  4.82829e-06
  9  1.20435e-07
  10  0.000216093
  11  11.2678
  12  5.18111e-08
  13  7.39156e-07
  14  12.2615
  15  0.200484
  16  0.114285
Done.

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

Extracting fit parameters...

4FGL J2120.6-1254
   Spectrum: PowerLaw
314    Prefactor:  1.273e+01  9.473e+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

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  9.640e-01  1.143e-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:  6.753e-01  2.005e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.81
Ra Dec: 320.154 -12.910
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 3.99e-08 +/- 2.97e-08
Energy Flux (Fixed Index): 1.43e-05 +/- 1.06e-05

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

Saving results to:
/scratch/kocevski/463881/likelihoodResults_639532801_639792001_4FGL_J2120.6-1254_daily_bin1544.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) = 8546.93089182
delta logL = 0.291942432999

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8546.92314406
delta logL = 0.299690195163

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4863       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9091       1.0000          .0000       10.000    
     3 'Normalizat'    .64208       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97587       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=   8546.923     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      277 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4863        81.292        .39395E-02    .62717E-03
   2  Index         2.9087        2.9358        .10820        .21496E-03
   3  Normalizat    .64236        .66621E-01    .74253E-01    .18674E-04
   4  Prefactor     .97576        .32874E-01    .35330E-01   -.54258E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.48631
  Index      = 2.90871
  Normalizat = 0.642362
  Prefactor  = 0.975762
 **********
 **   18 **HESSE 
 **********

 FCN=   8546.923     FROM HESSE     STATUS=OK            33 CALLS      310 TOTAL
                     EDM=   .58E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4863        15.588        .14402E-03   -1.5199    
   2  Index         2.9087        1.3094        .55769E-02   -.43153    
   3  Normalizat    .64236        .20671        .32870E-03   -1.0621    
   4  Prefactor     .97576        .11661        .15611E-03   -.93542    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.75137e-08
Minuit parameter uncertainties:
  1  15.5981
  2  1.32826
  3  0.206963
  4  0.116637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/463881': 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) = 8546.92314275
delta logL = 0.299691508959

Extracting fit parameters...

4FGL J2120.6-1254
   Spectrum: PowerLaw
314    Prefactor:  6.486e+00  1.560e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.909e+00  1.328e+00  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  1.325e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  9.758e-01  1.166e-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:  6.424e-01  2.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.45
Ra Dec: 320.154 -12.910
Photon Index (Free Index): 2.91 +/- 1.33
Photon Flux (Free Index): 6.25e-08 +/- 4.83e-08
Energy Flux (Free Index): 1.31e-05 +/- 9.52e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/463881/cmap_HighResolution_639532801_639792001_4FGL_J2120.6-1254_daily_bin1544.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.91e-03', comment='SUCCESS', photon_flux='3.99e-08', energy_flux2='1.31e-05', photon_flux_error='2.97e-08', dlogl='3.00e-01', energy_flux='1.43e-05', photon_flux2='6.25e-08', job_status='DONE', time_completed='2021-09-26 12:14:45.606046', photon_index_error2='1.33', photon_index2='2.91', ts='2.81', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='9.52e-06', EG='0.68', time_epoch_completed='1632683685.61', return_code='0', job_id='463881', GAL2='0.98', EG2='0.64', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='4.83e-08', ts2='3.45', photon_index='2.34' WHERE bin_id='1544' AND source_name='4FGL J2120.6-1254' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 12:14:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 463881: <4FGL_J2120.6-1254_daily_bin1544> in cluster <slac> Done

Job <4FGL_J2120.6-1254_daily_bin1544> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 26 12:00:41 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 12:02:53 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:02:53 2021
Terminated at Sun Sep 26 12:14:46 2021
Results reported at Sun Sep 26 12:14:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2120.6-1254_daily_bin1544 320.154 -12.9097 639532801 639792001 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 :                                   621.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   712 sec.
    Turnaround time :                            845 sec.

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

