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


Performing analysis on: 4FGL_J2159.8-4751_daily_bin1648
RA = 329.962, Dec = -47.8518
tmin = 666489601, tmax = 666748801
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='44953', job_status='RUN', time_executed='2022-02-17 02:33:09.125269', time_epoch_executed='1645093989.13' WHERE source_name='4FGL J2159.8-4751' and cadence='daily' and bin_id='1648'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/44953

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/44953/ft1_4FGL_J2159.8-4751_daily_bin1648.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/44953/ft2_4FGL_J2159.8-4751_daily_bin1648.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/44953/ft1_4FGL_J2159.8-4751_daily_bin1648.fits outfile=/scratch/kocevski/44953/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1648.fits ra=329.962 dec=-47.8518 rad=12.0 tmin=666489601.0 tmax=666748801.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.20
user 2.95
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/44953/ft2_4FGL_J2159.8-4751_daily_bin1648.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/44953/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1648.fits evtable="EVENTS" outfile="/scratch/kocevski/44953/ft1_filtered_4FGL_J2159.8-4751_daily_bin1648.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.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/44953/ft1_filtered_4FGL_J2159.8-4751_daily_bin1648.fits" evtable="EVENTS" scfile=/scratch/kocevski/44953/ft2_4FGL_J2159.8-4751_daily_bin1648.fits sctable="SC_DATA" outfile=/scratch/kocevski/44953/ltcube_666489601_666748801_4FGL_J2159.8-4751_daily_bin1648.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/44953/ft2_4FGL_J2159.8-4751_daily_bin1648.fits
.....................!
real 15.63
user 15.24
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/44953/ft1_filtered_4FGL_J2159.8-4751_daily_bin1648.fits evtable="EVENTS" scfile=/scratch/kocevski/44953/ft2_4FGL_J2159.8-4751_daily_bin1648.fits sctable="SC_DATA" expcube=/scratch/kocevski/44953/ltcube_666489601_666748801_4FGL_J2159.8-4751_daily_bin1648.fits outfile=/scratch/kocevski/44953/expmap_666489601_666748801_4FGL_J2159.8-4751_daily_bin1648.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/44953/ltcube_666489601_666748801_4FGL_J2159.8-4751_daily_bin1648.fits
.....................!
real 191.87
user 186.85
sys 4.55

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/44953/ft1_filtered_4FGL_J2159.8-4751_daily_bin1648.fits scfile=/scratch/kocevski/44953/ft2_4FGL_J2159.8-4751_daily_bin1648.fits outfile=/scratch/kocevski/44953/cmap_666489601_666748801_4FGL_J2159.8-4751_daily_bin1648.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/44953/ft1_filtered_4FGL_J2159.8-4751_daily_bin1648.fits scfile=/scratch/kocevski/44953/ft2_4FGL_J2159.8-4751_daily_bin1648.fits outfile=/scratch/kocevski/44953/cmap_HighResolution_666489601_666748801_4FGL_J2159.8-4751_daily_bin1648.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.55
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/44953/ft1_filtered_4FGL_J2159.8-4751_daily_bin1648.fits evtable="EVENTS" scfile=/scratch/kocevski/44953/ft2_4FGL_J2159.8-4751_daily_bin1648.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/44953/Model_4FGL_J2159.8-4751_daily_bin1648.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/44953/ft1_filtered_4FGL_J2159.8-4751_daily_bin1648.fits.....................!
real 24.14
user 22.91
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/44953/ft1_filtered_4FGL_J2159.8-4751_daily_bin1648.fits', '/scratch/kocevski/44953/ft2_4FGL_J2159.8-4751_daily_bin1648.fits', expMap='/scratch/kocevski/44953/expmap_666489601_666748801_4FGL_J2159.8-4751_daily_bin1648.fits', expCube='/scratch/kocevski/44953/ltcube_666489601_666748801_4FGL_J2159.8-4751_daily_bin1648.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/44953/Model_4FGL_J2159.8-4751_daily_bin1648.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/44953/ft1_filtered_4FGL_J2159.8-4751_daily_bin1648.fits
Spacecraft file(s): /scratch/kocevski/44953/ft2_4FGL_J2159.8-4751_daily_bin1648.fits
Exposure map: /scratch/kocevski/44953/expmap_666489601_666748801_4FGL_J2159.8-4751_daily_bin1648.fits
Exposure cube: /scratch/kocevski/44953/ltcube_666489601_666748801_4FGL_J2159.8-4751_daily_bin1648.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/44953/Model_4FGL_J2159.8-4751_daily_bin1648.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) = 1737.77331397

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.079       1.0000         .10000E-03   10000.    
     2 'norm      '    1.5552       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .22467E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    59.372       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3992       1.0000         .10000E-03   10000.    
     8 'norm      '    .10148E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .83290       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14951E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.7291       1.0000         .10000E-03   10000.    
    14 'Prefactor '    671.52       1.0000         .10000E-03   10000.    
    15 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .74585E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12084E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.7421       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .45311E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .86304E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    341.22       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2881.9       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .16764       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .85767       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .93766       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1735.232     FROM MIGRAD    STATUS=CONVERGED    298 CALLS     2513 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.295        39.870       -.15556E-05   -.49686E-04
   2  norm          1.5292        2.8865       -.21017E-06   -.33136E-04
   3  Prefactor     .10000E-03    45.847        .92183E-06** at limit **
   4  Prefactor     .10000E-03    9.3847       -.51739E-07** at limit **
   5  Prefactor     61.219        68.533       -.54874E-06   -.16758E-04
   6  Prefactor     .10000E-03    15.587        .83397E-09** at limit **
   7  Prefactor     4.4450        6.8706        .15271E-07    .42479E-04
   8  norm          .10000E-03    6.1607        .14800E-06** at limit **
   9  Prefactor     .65823        82.642       -.40821E-05    .87091E-05
  10  Prefactor     .10000E-03    11.203        .34811E-06** at limit **
  11  Prefactor     .10000E-03    32.142       -.79318E-06** at limit **
  12  Prefactor     .10000E-03    21.021       -.40568E-05** at limit **
  13  Prefactor     5.0218        8.3966       -.23172E-07    .23819E-04
  14  Prefactor     595.04        325.88        .30266E-05   -.55665E-03
  15  norm          .10000E-03    16.957       -.10560E-05** at limit **
  16  Prefactor     .10000E-03    8.8161       -.25978E-07** at limit **
  17  Prefactor     .10000E-03    165.92        .12882E-05** at limit **
  18  Prefactor     .10000E-03    13.873        .47765E-07** at limit **
  19  Prefactor     .10841E-03    257.07       -.31220E-05** at limit **
  20  Prefactor     .10000E-03    37.729        .24274E-06** at limit **
  21  Prefactor     .10000E-03    26.216       -.81285E-06** at limit **
  22  Prefactor     336.36        21.284        .25696E-06    .72426E-02
  23  Prefactor     2881.9        1.1499        .57438E-08   -.63724E-01
  24  Prefactor     .30140E-03    25.637       -.12346E-05** at limit **
  25  Normalizat    .87001        .47829        .24031E-05    .24660E-04
  26  Prefactor     .93139        .30168       -.30333E-06    .28302E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.2947
  norm       = 1.52919
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 61.2194
  Prefactor  = 0.0001
  Prefactor  = 4.44503
  norm       = 0.0001
  Prefactor  = 0.658226
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 5.02177
  Prefactor  = 595.036
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010841
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 336.356
  Prefactor  = 2881.89
  Prefactor  = 0.000301401
  Normalizat = 0.870007
  Prefactor  = 0.931393
 **********
 **   18 **HESSE 
 **********

 FCN=   1735.232     FROM HESSE     STATUS=OK           500 CALLS     3013 TOTAL
                     EDM=   .65E-03    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.295        39.874        .18263E-02   -1.4571    
   2  norm          1.5292        2.9352        .85347E-02   -1.5461    
   3  Prefactor     .10000E-03    45.613        .10061E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.2349        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     61.219        69.695        .13017E-02   -1.4142    
   6  Prefactor     .10000E-03    15.486        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.4450        6.8824        .48004E-02   -1.5286    
   8  norm          .10000E-03    6.2923        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .65823        29.248        .75170E-01   -1.5546    
  10  Prefactor     .10000E-03    11.128        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    32.801        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.666        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.0218        8.4199        .46258E-02   -1.5260    
  14  Prefactor     595.04        331.34        .39954E-03   -1.0780    
  15  norm          .10000E-03    17.249        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.8557        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    166.63        .92978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.133        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10841E-03    275.69        .79456E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    37.805        .10603E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    26.316        .10428E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     336.36        368.92        .55083E-03   -1.2019    
  23  Prefactor     2881.9        1753.3        .22079E-03   -.43744    
  24  Prefactor     .30140E-03    426.53        .98289E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .87001        .42147        .71418E-01   -.97522    
  26  Prefactor     .93139        .25861        .45483E-01   -.95053    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.000647133
Minuit parameter uncertainties:
  1  39.9068
  2  2.93547
  3  0.000117352
  4  3.29458e-06
  5  69.788
  6  3.99213e-06
  7  6.88365
  8  8.17647e-06
  9  8.77921
  10  2.26224e-05
  11  9.03817e-05
  12  0.000403771
  13  8.42184
  14  332.437
  15  0.000106718
  16  1.89906e-06
  17  0.000133728
  18  9.05315e-06
  19  0.0967506
  20  2.39157e-05
  21  6.03696e-05
  22  371.546
  23  1800.3
  24  0.590437
  25  0.423075
  26  0.25895
Done.

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

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  1.000e-04  9.038e-05  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:  9.314e-01  2.589e-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:  8.700e-01  4.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/44953/likelihoodResults_666489601_666748801_4FGL_J2159.8-4751_daily_bin1648.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): 102
logL (Free Index) = 1735.23258304
delta logL = -0.000144421825553

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1735.23243989
delta logL = -1.27468842948e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2528       1.0000          .0000       10.000    
     3 'Normalizat'    .86998       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93141       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1735.232     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      289 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10010E-03    189.57        .17447E-01** at limit **
   2  Index         1.9960        5.4818        .50000        .28314E-06
   3  Normalizat    .87003        .21430E-01    .31602E-03    .28018E-02
   4  Prefactor     .93141        .14226E-01    .20198E-03    .43493E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100102
  Index      = 1.99599
  Normalizat = 0.870033
  Prefactor  = 0.931409
 **********
 **   18 **HESSE 
 **********

 FCN=   1735.232     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      318 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10010E-03    1206.8        .25578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9960        5.8803        .50000       -.64450    
   3  Normalizat    .87003        .56698E-01    .63204E-04   -.97521    
   4  Prefactor     .93141        .37639E-01    .40396E-04   -.95052    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.98234e-08
Minuit parameter uncertainties:
  1  0.0226115
  2  2384.24
  3  0.0567014
  4  0.0376403
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/44953': 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) = 1735.23243839
delta logL = 2.31383182836e-07

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  1.001e-04  2.261e-02  1.000e-04  1.000e+04 ( 1.000e-13)
312        Index:  1.996e+00  2.384e+03  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:  9.314e-01  3.764e-02  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:  8.700e-01  5.670e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 329.962 -47.852

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/44953/cmap_HighResolution_666489601_666748801_4FGL_J2159.8-4751_daily_bin1648.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.38e-02', job_status='DONE', photon_flux_upper_limit='1.78e-07', time_completed='2022-02-17 02:40:16.726551', job_id='44953', GAL2='0.93', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1645094416.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='2.31e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1648' AND source_name='4FGL J2159.8-4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Feb 17 02:40:16 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 44953: <4FGL_J2159.8-4751_daily_bin1648> in cluster <slac> Done

Job <4FGL_J2159.8-4751_daily_bin1648> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Thu Feb 17 02:30:17 2022
Job was executed on host(s) <bullet0022>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Feb 17 02:32:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Feb 17 02:32:35 2022
Terminated at Thu Feb 17 02:40:17 2022
Results reported at Thu Feb 17 02:40:17 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2159.8-4751_daily_bin1648 329.962 -47.8518 666489601 666748801 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 :                                   430.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             311.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   461 sec.
    Turnaround time :                            600 sec.

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

