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


Performing analysis on: 4FGL_J2159.8-4751_daily_bin1641
RA = 329.962, Dec = -47.8518
tmin = 664675201, tmax = 664934401
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='373908', job_status='RUN', time_executed='2022-01-27 00:40:54.866215', time_epoch_executed='1643272854.87' WHERE source_name='4FGL J2159.8-4751' and cadence='daily' and bin_id='1641'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/373908

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/373908/ft1_4FGL_J2159.8-4751_daily_bin1641.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/373908/ft2_4FGL_J2159.8-4751_daily_bin1641.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/373908/ft1_4FGL_J2159.8-4751_daily_bin1641.fits outfile=/scratch/kocevski/373908/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1641.fits ra=329.962 dec=-47.8518 rad=12.0 tmin=664675201.0 tmax=664934401.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.67
user 3.45
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/373908/ft2_4FGL_J2159.8-4751_daily_bin1641.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/373908/ft2_4FGL_J2159.8-4751_daily_bin1641.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/373908/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1641.fits evtable="EVENTS" outfile="/scratch/kocevski/373908/ft1_filtered_4FGL_J2159.8-4751_daily_bin1641.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/373908/ft1_filtered_4FGL_J2159.8-4751_daily_bin1641.fits" evtable="EVENTS" scfile=/scratch/kocevski/373908/ft2_4FGL_J2159.8-4751_daily_bin1641.fits sctable="SC_DATA" outfile=/scratch/kocevski/373908/ltcube_664675201_664934401_4FGL_J2159.8-4751_daily_bin1641.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/373908/ft2_4FGL_J2159.8-4751_daily_bin1641.fits
.....................!
real 12.00
user 11.63
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/373908/ft1_filtered_4FGL_J2159.8-4751_daily_bin1641.fits evtable="EVENTS" scfile=/scratch/kocevski/373908/ft2_4FGL_J2159.8-4751_daily_bin1641.fits sctable="SC_DATA" expcube=/scratch/kocevski/373908/ltcube_664675201_664934401_4FGL_J2159.8-4751_daily_bin1641.fits outfile=/scratch/kocevski/373908/expmap_664675201_664934401_4FGL_J2159.8-4751_daily_bin1641.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/373908/ltcube_664675201_664934401_4FGL_J2159.8-4751_daily_bin1641.fits
.....................!
real 190.83
user 185.50
sys 4.94

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 177 point sources and 0 extended sources

Setting source of interest to:
4FGL J2159.8-4751 @ 329.962 -47.8518

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/373908/ft1_filtered_4FGL_J2159.8-4751_daily_bin1641.fits scfile=/scratch/kocevski/373908/ft2_4FGL_J2159.8-4751_daily_bin1641.fits outfile=/scratch/kocevski/373908/cmap_664675201_664934401_4FGL_J2159.8-4751_daily_bin1641.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=329.962 yref=-47.8518 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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/373908/ft1_filtered_4FGL_J2159.8-4751_daily_bin1641.fits scfile=/scratch/kocevski/373908/ft2_4FGL_J2159.8-4751_daily_bin1641.fits outfile=/scratch/kocevski/373908/cmap_HighResolution_664675201_664934401_4FGL_J2159.8-4751_daily_bin1641.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=329.962 yref=-47.8518 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/373908/ft1_filtered_4FGL_J2159.8-4751_daily_bin1641.fits evtable="EVENTS" scfile=/scratch/kocevski/373908/ft2_4FGL_J2159.8-4751_daily_bin1641.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/373908/Model_4FGL_J2159.8-4751_daily_bin1641.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/373908/ft1_filtered_4FGL_J2159.8-4751_daily_bin1641.fits.....................!
real 43.38
user 42.02
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/373908/ft1_filtered_4FGL_J2159.8-4751_daily_bin1641.fits', '/scratch/kocevski/373908/ft2_4FGL_J2159.8-4751_daily_bin1641.fits', expMap='/scratch/kocevski/373908/expmap_664675201_664934401_4FGL_J2159.8-4751_daily_bin1641.fits', expCube='/scratch/kocevski/373908/ltcube_664675201_664934401_4FGL_J2159.8-4751_daily_bin1641.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/373908/Model_4FGL_J2159.8-4751_daily_bin1641.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2159.8-4751'

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  6.682e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
312        Index:  2.524e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
313        Scale:  7.450e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/373908/ft1_filtered_4FGL_J2159.8-4751_daily_bin1641.fits
Spacecraft file(s): /scratch/kocevski/373908/ft2_4FGL_J2159.8-4751_daily_bin1641.fits
Exposure map: /scratch/kocevski/373908/expmap_664675201_664934401_4FGL_J2159.8-4751_daily_bin1641.fits
Exposure cube: /scratch/kocevski/373908/ltcube_664675201_664934401_4FGL_J2159.8-4751_daily_bin1641.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/373908/Model_4FGL_J2159.8-4751_daily_bin1641.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) = 5123.44300829

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.064       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10287E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .32251E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    56.614       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .70478       1.0000         .10000E-03   10000.    
     8 'norm      '    .41469E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.3986       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.627       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.1748       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.212       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5218       1.0000         .10000E-03   10000.    
    19 'Prefactor '    37.264       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.9651       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    19.367       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0292       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0630       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5123.426     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     3097 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.051        27.590        .10999E-07   -.63069E-04
   2  norm          .10000E-03    .76319       -.10687E-06** at limit **
   3  Prefactor     .10000E-03    51.980        .38053E-07** at limit **
   4  Prefactor     .10006E-03    8.1168        .24500E-07** at limit **
   5  Prefactor     .10000E-03    16.563       -.34114E-06** at limit **
   6  Prefactor     56.615        42.707        .43967E-06   -.13068E-03
   7  Prefactor     .71544        5.7839        .25835E-05   -.92946E-03
   8  norm          .10040E-03    4.2158        .10401E-05** at limit **
   9  Prefactor     7.4010        10.562        .27664E-06    .69384E-05
  10  Prefactor     .10000E-03    8.9718       -.22929E-06** at limit **
  11  Prefactor     27.635        53.204        .69712E-06   -.69304E-04
  12  Prefactor     5.1743        6.9175        .19753E-06   -.10494E-03
  13  Prefactor     .10000E-03    1.2640        .22957E-06** at limit **
  14  Prefactor     .10000E-03    34.127       -.19897E-07** at limit **
  15  norm          10.212        7.1841        .19297E-08   -.17235E-04
  16  Prefactor     .10000E-03    2.1747       -.31084E-06** at limit **
  17  Prefactor     .10000E-03    17.241       -.12752E-06** at limit **
  18  Prefactor     2.5183        7.6360        .42511E-05    .46104E-03
  19  Prefactor     37.231        38.022        .60562E-06   -.93492E-04
  20  Prefactor     8.0284        37.682       -.23091E-05   -.21286E-04
  21  Prefactor     .10000E-03    8.3461        .30766E-05** at limit **
  22  Prefactor     .10000E-03    39.041        .49957E-06** at limit **
  23  Prefactor     .10000E-03    2.5471       -.17765E-06** at limit **
  24  Prefactor     19.384        34.463        .72203E-07    .31184E-04
  25  Normalizat    1.0289        .25937       -.57515E-05   -.26717E-03
  26  Prefactor     1.0632        .17652        .36135E-05   -.38082E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.051
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100062
  Prefactor  = 0.0001
  Prefactor  = 56.6148
  Prefactor  = 0.715436
  norm       = 0.0001004
  Prefactor  = 7.40098
  Prefactor  = 0.0001
  Prefactor  = 27.6346
  Prefactor  = 5.17433
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.212
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.51828
  Prefactor  = 37.231
  Prefactor  = 8.02841
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.3841
  Normalizat = 1.02889
  Prefactor  = 1.06317
 **********
 **   18 **HESSE 
 **********

 FCN=   5123.426     FROM HESSE     STATUS=OK           456 CALLS     3553 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.051        27.572        .73072E-04   -1.4611    
   2  norm          .10000E-03    .77818        .61038E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    52.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10006E-03    75.520        .38530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     56.615        42.480        .53315E-04   -1.4202    
   7  Prefactor     .71544        17.958        .25254E-02   -1.5539    
   8  norm          .10040E-03    61.005        .26643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.4010        10.554        .14745E-03   -1.5164    
  10  Prefactor     .10000E-03    9.0414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     27.635        53.179        .76220E-04   -1.4656    
  12  Prefactor     5.1743        6.8974        .17672E-03   -1.5253    
  13  Prefactor     .10000E-03    1.2683        .78627E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    34.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.212        7.1850        .12538E-03   -1.5069    
  16  Prefactor     .10000E-03    2.2254        .10312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.5183        7.7496        .25725E-03   -1.5391    
  19  Prefactor     37.231        38.130        .65654E-04   -1.4487    
  20  Prefactor     8.0284        38.839        .14207E-03   -1.5141    
  21  Prefactor     .10000E-03    8.6190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    39.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.5498        .11157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     19.384        34.436        .91012E-04   -1.4827    
  25  Normalizat    1.0289        .27865        .28177E-03   -.92069    
  26  Prefactor     1.0632        .19085        .21133E-03   -.90653    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26602e-08
Minuit parameter uncertainties:
  1  27.5836
  2  2.96933e-06
  3  0.000108188
  4  0.00434288
  5  0.000113728
  6  42.503
  7  7.17063
  8  0.00989151
  9  10.5567
  10  2.55062e-05
  11  53.2706
  12  6.8985
  13  7.76628e-06
  14  8.9647e-05
  15  7.1856
  16  1.47111e-05
  17  5.73989e-05
  18  7.75273
  19  38.1548
  20  35.3536
  21  0.000275182
  22  4.94326e-05
  23  7.65719e-06
  24  34.4715
  25  0.279045
  26  0.190971
Done.

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

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  2.763e+01  5.327e+01  1.000e-04  1.000e+04 ( 1.000e-13)
312        Index:  2.524e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
313        Scale:  7.450e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  1.063e+00  1.910e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.029e+00  2.790e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.33
Ra Dec: 329.962 -47.852
Photon Flux Upper Limit: 1.47e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.15e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/373908/likelihoodResults_664675201_664934401_4FGL_J2159.8-4751_daily_bin1641.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) = 5122.1052405
delta logL = 1.32077125241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5121.82269571
delta logL = 1.60331604305

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11657E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    8.9545       1.0000          .0000       10.000    
     3 'Normalizat'    .94262       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1122       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5121.823     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      383 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11298E-02    .15953E-01    .45318E-03** at limit **
   2  Index         8.9716        7.6341        .18519        .57458E-04
   3  Normalizat    .94234        .63102E-01    .66119E-01    .17839E-04
   4  Prefactor     1.1122        .48306E-01    .37141E-01    .11858E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00112976
  Index      = 8.97163
  Normalizat = 0.94234
  Prefactor  = 1.11221
 **********
 **   18 **HESSE 
 **********

 FCN=   5121.823     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      416 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11298E-02    .31670E-01    .17523E-04   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.9716        8.8044        .81868E-03    .91790    
   3  Normalizat    .94234        .21889        .29247E-03   -.94988    
   4  Prefactor     1.1122        .16492        .20717E-03   -.89077    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.76218e-08
Minuit parameter uncertainties:
  1  0.0114215
  2  5.26235
  3  0.219093
  4  0.164993
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/373908': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5121.82268643
delta logL = 1.60332532747

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  1.130e-03  1.142e-02  1.000e-04  1.000e+04 ( 1.000e-13)
312        Index:  8.972e+00  5.262e+00  0.000e+00  1.000e+01 (-1.000e+00)
313        Scale:  7.450e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  1.112e+00  1.650e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  9.423e-01  2.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.71
Ra Dec: 329.962 -47.852
Photon Index (Free Index): 8.97 +/- 5.26
Photon Flux (Free Index): 9.71e-08 +/- 6.72e-08
Energy Flux (Free Index): 1.10e-05 +/- 8.00e-06

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/373908/cmap_HighResolution_664675201_664934401_4FGL_J2159.8-4751_daily_bin1641.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', comment='SUCCESS', energy_flux2='1.10e-05', dlogl='1.60e+00', photon_flux2='9.71e-08', job_status='DONE', time_completed='2022-01-27 00:51:44.883997', photon_index_error2='5.26', photon_index2='8.97', ts='0.33', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.47e-07', energy_flux_error2='8.00e-06', EG='1.03', time_epoch_completed='1643273504.88', return_code='0', job_id='373908', GAL2='1.11', EG2='0.94', return_code2='102', photon_flux_error2='6.72e-08', ts2='3.71', photon_index='2.52' WHERE bin_id='1641' AND source_name='4FGL J2159.8-4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jan 27 00:51:44 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 373908: <4FGL_J2159.8-4751_daily_bin1641> in cluster <slac> Done

Job <4FGL_J2159.8-4751_daily_bin1641> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Jan 27 00:40:32 2022
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jan 27 00:40:34 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jan 27 00:40:34 2022
Terminated at Thu Jan 27 00:51:46 2022
Results reported at Thu Jan 27 00:51:46 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2159.8-4751_daily_bin1641 329.962 -47.8518 664675201 664934401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2159.8-4751 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   652.00 sec.
    Max Memory :                                 1002 MB
    Average Memory :                             298.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   671 sec.
    Turnaround time :                            674 sec.

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

