/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 = 7423
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2159.8-4751_daily_bin374
RA = 329.962, Dec = -47.8518
tmin = 336268801, tmax = 336528001
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='67368', job_status='RUN', time_executed='2021-09-27 22:43:06.376624', time_epoch_executed='1632807786.38' WHERE source_name='4FGL J2159.8-4751' and cadence='daily' and bin_id='374'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/67368

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/67368/ft1_4FGL_J2159.8-4751_daily_bin374.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/67368/ft2_4FGL_J2159.8-4751_daily_bin374.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/67368/ft1_4FGL_J2159.8-4751_daily_bin374.fits outfile=/scratch/kocevski/67368/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin374.fits ra=329.962 dec=-47.8518 rad=12.0 tmin=336268801.0 tmax=336528001.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 7.11
user 6.78
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/67368/ft1_filtered_4FGL_J2159.8-4751_daily_bin374.fits" evtable="EVENTS" scfile=/scratch/kocevski/67368/ft2_4FGL_J2159.8-4751_daily_bin374.fits sctable="SC_DATA" outfile=/scratch/kocevski/67368/ltcube_336268801_336528001_4FGL_J2159.8-4751_daily_bin374.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/67368/ft2_4FGL_J2159.8-4751_daily_bin374.fits
.....................!
real 13.57
user 13.19
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/67368/ft1_filtered_4FGL_J2159.8-4751_daily_bin374.fits evtable="EVENTS" scfile=/scratch/kocevski/67368/ft2_4FGL_J2159.8-4751_daily_bin374.fits sctable="SC_DATA" expcube=/scratch/kocevski/67368/ltcube_336268801_336528001_4FGL_J2159.8-4751_daily_bin374.fits outfile=/scratch/kocevski/67368/expmap_336268801_336528001_4FGL_J2159.8-4751_daily_bin374.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/67368/ltcube_336268801_336528001_4FGL_J2159.8-4751_daily_bin374.fits
.....................!
real 192.53
user 185.72
sys 5.62

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/67368/ft1_filtered_4FGL_J2159.8-4751_daily_bin374.fits scfile=/scratch/kocevski/67368/ft2_4FGL_J2159.8-4751_daily_bin374.fits outfile=/scratch/kocevski/67368/cmap_336268801_336528001_4FGL_J2159.8-4751_daily_bin374.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.38
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/67368/ft1_filtered_4FGL_J2159.8-4751_daily_bin374.fits evtable="EVENTS" scfile=/scratch/kocevski/67368/ft2_4FGL_J2159.8-4751_daily_bin374.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/67368/Model_4FGL_J2159.8-4751_daily_bin374.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/67368/ft1_filtered_4FGL_J2159.8-4751_daily_bin374.fits.....................!
real 50.39
user 49.11
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.784       1.0000         .10000E-03   10000.    
     2 'norm      '    4.2606       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.495       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2565       1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.934       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.5217       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .60794E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    8.6466       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.199       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6670       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4281       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .36759E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10033E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.8277       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .54705E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.024       1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.437       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.2030       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    39.613       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .88826       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .97617       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=   6597.497     FROM MIGRAD    STATUS=CONVERGED    614 CALLS     3138 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.784        22.381        .14160E-06    .74304E-04
   2  norm          4.2606        1.9493       -.19676E-07    .19950E-03
   3  Prefactor     13.495        40.469        .67288E-06    .45062E-04
   4  Prefactor     1.2555        7.5599        .81110E-05    .27951E-03
   5  Prefactor     38.934        32.904       -.96355E-06    .45824E-04
   6  Prefactor     7.5209        17.625        .24746E-06    .62939E-04
   7  Prefactor     .59118E-01    4.1029       -.41244E-05    .51923E-03
   8  norm          8.6466        4.7862        .35897E-07    .57311E-04
   9  Prefactor     .10000E-03    1.8372       -.95234E-08** at limit **
  10  Prefactor     .10000E-03    1.7356       -.12007E-07** at limit **
  11  Prefactor     21.184        40.330       -.22128E-05    .65839E-05
  12  Prefactor     1.6452        11.356        .56366E-05    .27574E-04
  13  Prefactor     4.4273        3.6585       -.20583E-07   -.20999E-03
  14  Prefactor     .10000E-03    167.86       -.24106E-05** at limit **
  15  norm          .10000E-03    5.0925       -.56484E-06** at limit **
  16  Prefactor     8.8277        4.1705        .70593E-07   -.92644E-04
  17  Prefactor     .10000E-03    22.841        .32712E-06** at limit **
  18  Prefactor     .10001E-03    2.7619        .12709E-05** at limit **
  19  Prefactor     10.018        25.616        .96814E-06    .48709E-04
  20  Prefactor     21.442        32.947        .10279E-05   -.94745E-05
  21  Prefactor     5.2023        12.102       -.24143E-06    .16172E-04
  22  Prefactor     .10000E-03    32.549       -.54668E-06** at limit **
  23  Prefactor     .10000E-03    6.4056       -.16425E-07** at limit **
  24  Prefactor     39.613        29.344        .18574E-06    .12189E-04
  25  Normalizat    .88836        .19892       -.51069E-06    .28640E-03
  26  Prefactor     .97613        .13993       -.22685E-06    .25043E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.7839
  norm       = 4.26058
  Prefactor  = 13.4953
  Prefactor  = 1.25553
  Prefactor  = 38.9335
  Prefactor  = 7.52088
  Prefactor  = 0.0591182
  norm       = 8.64659
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.1843
  Prefactor  = 1.6452
  Prefactor  = 4.42732
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.82768
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 10.0178
  Prefactor  = 21.4421
  Prefactor  = 5.20233
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.6133
  Normalizat = 0.888363
  Prefactor  = 0.97613
 **********
 **   18 **HESSE 
 **********

 FCN=   6597.497     FROM HESSE     STATUS=OK           478 CALLS     3616 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.784        22.379        .71072E-04   -1.4580    
   2  norm          4.2606        1.9483        .73685E-04   -1.5295    
   3  Prefactor     13.495        40.512        .10903E-03   -1.4973    
   4  Prefactor     1.2555        7.7004        .19917E-02   -1.5484    
   5  Prefactor     38.934        32.939        .64236E-04   -1.4459    
   6  Prefactor     7.5209        17.612        .14623E-03   -1.5159    
   7  Prefactor     .59118E-01    7.3799        .37971E-01   -1.5659    
   8  norm          8.6466        4.7856        .12084E-03   -1.5120    
   9  Prefactor     .10000E-03    1.8415        .10752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.7383        .10450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.184        40.344        .86993E-04   -1.4787    
  12  Prefactor     1.6452        11.270        .32660E-03   -1.5451    
  13  Prefactor     4.4273        3.6575        .66876E-03   -1.5287    
  14  Prefactor     .10000E-03    167.94        .21302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    19.426        .35526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.8277        4.1840        .10818E-03   -1.5114    
  17  Prefactor     .10000E-03    22.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    36.799        .24160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.018        25.741        .12656E-03   -1.5075    
  20  Prefactor     21.442        32.275        .86509E-04   -1.4782    
  21  Prefactor     5.2023        11.914        .17623E-03   -1.5252    
  22  Prefactor     .10000E-03    32.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.6767        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     39.613        29.333        .63686E-04   -1.4448    
  25  Normalizat    .88836        .23308        .27820E-03   -.96870    
  26  Prefactor     .97613        .16415        .20781E-03   -.93529    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91913e-09
Minuit parameter uncertainties:
  1  22.3851
  2  1.9483
  3  40.5947
  4  6.21964
  5  32.9541
  6  17.6238
  7  1.32009
  8  4.78582
  9  1.38375e-07
  10  7.14066e-07
  11  40.3955
  12  8.61394
  13  3.65772
  14  0.000411983
  15  0.000120752
  16  4.18415
  17  3.96186e-05
  18  0.00106368
  19  25.7691
  20  32.3017
  21  11.9195
  22  0.00016248
  23  8.51641e-06
  24  29.3439
  25  0.233342
  26  0.164234
Done.

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

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  2.118e+01  4.040e+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:  9.761e-01  1.642e-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.884e-01  2.333e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.35
Ra Dec: 329.962 -47.852
Photon Flux Upper Limit: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/67368/likelihoodResults_336268801_336528001_4FGL_J2159.8-4751_daily_bin374.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) = 6597.33486555
delta logL = 0.161690553408

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6597.27313052
delta logL = 0.22342558743

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.599       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3483       1.0000          .0000       10.000    
     3 'Normalizat'    .86210       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98854       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6597.273     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      269 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.566        39.809        .58815E-03   -.85360E-04
   2  Index         3.3521        1.9718        .74530E-02   -.24801E-04
   3  Normalizat    .86186        .20982        .28227E-03   -.66818E-04
   4  Prefactor     .98870        .16035        .20662E-03    .13487E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.5663
  Index      = 3.3521
  Normalizat = 0.861862
  Prefactor  = 0.988696
 **********
 **   18 **HESSE 
 **********

 FCN=   6597.273     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.566        26.475        .23526E-04   -1.5028    
   2  Index         3.3521        1.3308        .29812E-03   -.33586    
   3  Normalizat    .86186        .21012        .11291E-04   -.97813    
   4  Prefactor     .98870        .16030        .41324E-04   -.93107    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56072e-10
Minuit parameter uncertainties:
  1  26.5021
  2  1.34909
  3  0.210322
  4  0.160374
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/67368': 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) = 6597.2731238
delta logL = 0.223432301465

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  1.157e+01  2.650e+01  1.000e-04  1.000e+04 ( 1.000e-13)
312        Index:  3.352e+00  1.349e+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:  9.887e-01  1.604e-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.619e-01  2.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/67368/cmap_HighResolution_336268801_336528001_4FGL_J2159.8-4751_daily_bin374.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.55e-03', job_status='DONE', photon_flux_upper_limit='1.10e-07', time_completed='2021-09-27 22:56:11.213904', job_id='67368', GAL2='0.99', fit_tolerance='1e-08', EG2='0.86', EG='0.89', time_epoch_completed='1632808571.21', return_code2='0', ts='0.35', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='2.23e-01', ts2='0.83', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='374' AND source_name='4FGL J2159.8-4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:56:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 67368: <4FGL_J2159.8-4751_daily_bin374> in cluster <slac> Done

Job <4FGL_J2159.8-4751_daily_bin374> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep 27 22:40:20 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 22:42:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 22:42:49 2021
Terminated at Mon Sep 27 22:56:11 2021
Results reported at Mon Sep 27 22:56:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2159.8-4751_daily_bin374 329.962 -47.8518 336268801 336528001 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 :                                   776.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            951 sec.

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

