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


Performing analysis on: 4FGL_J2120.6-1254_daily_bin1120
RA = 320.154, Dec = -12.9097
tmin = 529632001, tmax = 529891201
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='462252', job_status='RUN', time_executed='2021-09-26 11:57:28.086457', time_epoch_executed='1632682648.09' WHERE source_name='4FGL J2120.6-1254' and cadence='daily' and bin_id='1120'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/462252

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/462252/ft1_4FGL_J2120.6-1254_daily_bin1120.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/462252/ft2_4FGL_J2120.6-1254_daily_bin1120.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/462252/ft1_4FGL_J2120.6-1254_daily_bin1120.fits outfile=/scratch/kocevski/462252/ft1_filteredMKT_4FGL_J2120.6-1254_daily_bin1120.fits ra=320.154 dec=-12.9097 rad=12.0 tmin=529632001.0 tmax=529891201.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.68
user 3.43
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/462252/ft2_4FGL_J2120.6-1254_daily_bin1120.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/462252/ft1_filteredMKT_4FGL_J2120.6-1254_daily_bin1120.fits evtable="EVENTS" outfile="/scratch/kocevski/462252/ft1_filtered_4FGL_J2120.6-1254_daily_bin1120.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/462252/ft1_filtered_4FGL_J2120.6-1254_daily_bin1120.fits" evtable="EVENTS" scfile=/scratch/kocevski/462252/ft2_4FGL_J2120.6-1254_daily_bin1120.fits sctable="SC_DATA" outfile=/scratch/kocevski/462252/ltcube_529632001_529891201_4FGL_J2120.6-1254_daily_bin1120.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/462252/ft2_4FGL_J2120.6-1254_daily_bin1120.fits
.....................!
real 14.27
user 13.90
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/462252/ft1_filtered_4FGL_J2120.6-1254_daily_bin1120.fits evtable="EVENTS" scfile=/scratch/kocevski/462252/ft2_4FGL_J2120.6-1254_daily_bin1120.fits sctable="SC_DATA" expcube=/scratch/kocevski/462252/ltcube_529632001_529891201_4FGL_J2120.6-1254_daily_bin1120.fits outfile=/scratch/kocevski/462252/expmap_529632001_529891201_4FGL_J2120.6-1254_daily_bin1120.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/462252/ltcube_529632001_529891201_4FGL_J2120.6-1254_daily_bin1120.fits
.....................!
real 191.88
user 185.75
sys 5.24

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/462252/ft1_filtered_4FGL_J2120.6-1254_daily_bin1120.fits scfile=/scratch/kocevski/462252/ft2_4FGL_J2120.6-1254_daily_bin1120.fits outfile=/scratch/kocevski/462252/cmap_529632001_529891201_4FGL_J2120.6-1254_daily_bin1120.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.52
user 0.37
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/462252/ft1_filtered_4FGL_J2120.6-1254_daily_bin1120.fits evtable="EVENTS" scfile=/scratch/kocevski/462252/ft2_4FGL_J2120.6-1254_daily_bin1120.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/462252/Model_4FGL_J2120.6-1254_daily_bin1120.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/462252/ft1_filtered_4FGL_J2120.6-1254_daily_bin1120.fits.....................!
real 77.58
user 76.08
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2225       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.9077       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .89193       1.0000         .10000E-03   10000.    
     4 'Prefactor '    49.804       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .40556       1.0000         .10000E-03   10000.    
     6 'Prefactor '    42.323       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.8014       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.757       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .66892       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10419E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    .59942       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.1212       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8710.651     FROM MIGRAD    STATUS=FAILED       536 CALLS     1714 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2220        2.6714        .11808E-03    .31386E-04
   2  Prefactor     5.9071        3.2536        .12053E-03   -.32824E-04
   3  Prefactor     .81647        51.613        .51422E-02    .14791E-02
   4  Prefactor     49.817        17.353        .56824E-04    .14973E-03
   5  Prefactor     .33109        35.554        .40719E-02    .12879E-03
   6  Prefactor     42.377        34.838        .61620E-04   -.49076E-04
   7  Prefactor     .10000E-03    2.4862        .14293E-02** at limit **
   8  Prefactor     9.7983        3.3593        .92029E-04    .52625E-04
   9  Prefactor     .10000E-03    6.1550        .36285E-02** at limit **
  10  Prefactor     19.772        20.307        .90110E-04    .22710E-05
  11  Prefactor     .10000E-03    3.0420        .15874E-02** at limit **
  12  norm          .10000E-03    1.3818        .10712E-02** at limit **
  13  Prefactor     .66566        5.3352        .28865E-02    .79279E-03
  14  Prefactor     .10000E-03    4.3869        .18142E-02** at limit **
  15  Normalizat    .59940        .21210        .37325E-03    .27267E-03
  16  Prefactor     1.1212        .12287        .16388E-03    .46447E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8710.651     FROM SIMPLEX   STATUS=PROGRESS     671 CALLS     2385 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2220        2.6714        .89362E-09   -1.5297    
   2  Prefactor     5.9071        3.2536        .92022E-09   -1.5222    
   3  Prefactor     .81650        51.613        .39257E-07   -1.5527    
   4  Prefactor     49.817        17.353        .16938E-07   -1.4295    
   5  Prefactor     .33105        35.554        .10617E-06   -1.5593    
   6  Prefactor     42.377        34.838        .65668E-07   -1.4405    
   7  Prefactor     .10000E-03    2.4862        .26009E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.7983        3.3593        .17708E-09   -1.5082    
   9  Prefactor     .10000E-03    6.1550        .44708E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.772        20.307        .29285E-08   -1.4818    
  11  Prefactor     .10000E-03    3.0420        .24632E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.3818        .53968E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .66566        5.3352        .63304E-10   -1.5545    
  14  Prefactor     .10000E-03    4.3869        .10709E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    .59940        .21210        .11831E-10   -1.0801    
  16  Prefactor     1.1212        .12287        .21979E-11   -.88790    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8710.651     FROM MIGRAD    STATUS=CONVERGED    194 CALLS     2579 TOTAL
                     EDM=   .35E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2220        2.6713        .47233E-05   -.96277E-06
   2  Prefactor     5.9071        3.2528        .48213E-05    .18864E-06
   3  Prefactor     .81651        51.612        .10284E-02    .35374E-05
   4  Prefactor     49.817        17.263        .11365E-04   -.80027E-06
   5  Prefactor     .33106        35.826        .16288E-03    .69799E-06
   6  Prefactor     42.377        34.838        .12324E-04    .36899E-06
   7  Prefactor     .10000E-03    2.4868        .28586E-03** at limit **
   8  Prefactor     9.7983        3.3592        .36812E-05    .12353E-05
   9  Prefactor     .10000E-03    6.2033        .72569E-03** at limit **
  10  Prefactor     19.772        20.309        .36044E-05    .25233E-06
  11  Prefactor     .10000E-03    3.0423        .31749E-03** at limit **
  12  norm          .10000E-03    1.3818        .21423E-03** at limit **
  13  Prefactor     .66557        5.3088        .11546E-03    .45294E-05
  14  Prefactor     .10000E-03    4.3877        .36285E-03** at limit **
  15  Normalizat    .59940        .21165        .14930E-04    .70055E-05
  16  Prefactor     1.1212        .12283        .32775E-04    .10129E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.222
  Prefactor  = 5.90713
  Prefactor  = 0.816515
  Prefactor  = 49.8171
  Prefactor  = 0.33106
  Prefactor  = 42.3771
  Prefactor  = 0.0001
  Prefactor  = 9.79828
  Prefactor  = 0.0001
  Prefactor  = 19.7718
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.66557
  Prefactor  = 0.0001
  Normalizat = 0.599398
  Prefactor  = 1.12124
 **********
 **   18 **HESSE 
 **********

 FCN=   8710.651     FROM HESSE     STATUS=OK           187 CALLS     2766 TOTAL
                     EDM=   .18E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2220        2.6720        .94466E-06   -1.5297    
   2  Prefactor     5.9071        3.2527        .48213E-05   -1.5222    
   3  Prefactor     .81651        51.449        .41138E-04   -1.5527    
   4  Prefactor     49.817        17.263        .22730E-05   -1.4295    
   5  Prefactor     .33106        35.821        .65151E-05   -1.5593    
   6  Prefactor     42.377        34.863        .24648E-05   -1.4405    
   7  Prefactor     .10000E-03    2.4868        .57173E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.7983        3.3604        .73623E-06   -1.5082    
   9  Prefactor     .10000E-03    6.2053        .14514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.772        20.310        .36044E-05   -1.4818    
  11  Prefactor     .10000E-03    3.0423        .63498E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.3818        .42846E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .66557        5.3070        .46184E-05   -1.5545    
  14  Prefactor     .10000E-03    4.3877        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    .59940        .21204        .29860E-05   -1.0801    
  16  Prefactor     1.1212        .12301        .65550E-05   -.88790    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80527e-13
Minuit parameter uncertainties:
  1  2.67212
  2  3.25283
  3  12.9737
  4  17.2652
  5  6.89056
  6  34.8799
  7  1.69947e-07
  8  3.36044
  9  1.00772e-06
  10  20.3166
  11  2.74648e-07
  12  2.89752e-08
  13  3.759
  14  4.91918e-07
  15  0.212332
  16  0.123043
Done.

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

Extracting fit parameters...

4FGL J2120.6-1254
   Spectrum: PowerLaw
314    Prefactor:  3.311e-01  6.891e+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:  1.121e+00  1.230e-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:  5.994e-01  2.123e-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: 6.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/462252/likelihoodResults_529632001_529891201_4FGL_J2120.6-1254_daily_bin1120.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) = 8710.65019676
delta logL = 0.000485614053105

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8710.65019653
delta logL = 0.000485843711431

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33106       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4571       1.0000          .0000       10.000    
     3 'Normalizat'    .59922       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1213       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=   8710.650     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      244 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33713        8.4151        .68289E-01    .60562E-03
   2  Index         2.4543        .96325        .50000        .62599E-05
   3  Normalizat    .59922        .59838E-02    .84284E-01    .45048E-04
   4  Prefactor     1.1213        .35214E-02    .36830E-01    .27927E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.337125
  Index      = 2.4543
  Normalizat = 0.599216
  Prefactor  = 1.12125
 **********
 **   18 **HESSE 
 **********

 FCN=   8710.650     FROM HESSE     STATUS=OK            35 CALLS      279 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33713        68.765        .38149E-02   -1.5592    
   2  Index         2.4543        6.0672        .14841E-01   -.53418    
   3  Normalizat    .59922        .20703        .37330E-03   -1.0802    
   4  Prefactor     1.1213        .12242        .16387E-03   -.88790    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40836e-07
Minuit parameter uncertainties:
  1  9.63945
  2  6.00849
  3  0.207298
  4  0.122455
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/462252': 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) = 8710.65019592
delta logL = 0.000486458309751

Extracting fit parameters...

4FGL J2120.6-1254
   Spectrum: PowerLaw
314    Prefactor:  3.371e-01  9.639e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.454e+00  6.008e+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:  1.121e+00  1.225e-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:  5.992e-01  2.073e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/462252/cmap_HighResolution_529632001_529891201_4FGL_J2120.6-1254_daily_bin1120.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.71e-03', job_status='DONE', photon_flux_upper_limit='6.12e-08', time_completed='2021-09-26 12:10:14.263494', job_id='462252', GAL2='1.12', fit_tolerance='1e-08', EG2='0.60', EG='0.60', time_epoch_completed='1632683414.26', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='4.86e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1120' AND source_name='4FGL J2120.6-1254' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 12:10:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 462252: <4FGL_J2120.6-1254_daily_bin1120> in cluster <slac> Done

Job <4FGL_J2120.6-1254_daily_bin1120> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 11:55:41 2021
Job was executed on host(s) <bullet0152>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 11:56:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 11:56:45 2021
Terminated at Sun Sep 26 12:10:15 2021
Results reported at Sun Sep 26 12:10:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2120.6-1254_daily_bin1120 320.154 -12.9097 529632001 529891201 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 :                                   755.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            874 sec.

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

