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


Performing analysis on: 4FGL_J2159.8-4751_daily_bin322
RA = 329.962, Dec = -47.8518
tmin = 322790401, tmax = 323049601
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='66268', job_status='RUN', time_executed='2021-09-27 22:42:25.487981', time_epoch_executed='1632807745.49' WHERE source_name='4FGL J2159.8-4751' and cadence='daily' and bin_id='322'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66268

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/66268/ft1_4FGL_J2159.8-4751_daily_bin322.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/66268/ft2_4FGL_J2159.8-4751_daily_bin322.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66268/ft1_4FGL_J2159.8-4751_daily_bin322.fits outfile=/scratch/kocevski/66268/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin322.fits ra=329.962 dec=-47.8518 rad=12.0 tmin=322790401.0 tmax=323049601.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 12.04
user 11.60
sys 0.39

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/66268/ft2_4FGL_J2159.8-4751_daily_bin322.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/66268/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin322.fits evtable="EVENTS" outfile="/scratch/kocevski/66268/ft1_filtered_4FGL_J2159.8-4751_daily_bin322.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/66268/ft1_filtered_4FGL_J2159.8-4751_daily_bin322.fits" evtable="EVENTS" scfile=/scratch/kocevski/66268/ft2_4FGL_J2159.8-4751_daily_bin322.fits sctable="SC_DATA" outfile=/scratch/kocevski/66268/ltcube_322790401_323049601_4FGL_J2159.8-4751_daily_bin322.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/66268/ft2_4FGL_J2159.8-4751_daily_bin322.fits
.....................!
real 12.49
user 12.09
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66268/ft1_filtered_4FGL_J2159.8-4751_daily_bin322.fits evtable="EVENTS" scfile=/scratch/kocevski/66268/ft2_4FGL_J2159.8-4751_daily_bin322.fits sctable="SC_DATA" expcube=/scratch/kocevski/66268/ltcube_322790401_323049601_4FGL_J2159.8-4751_daily_bin322.fits outfile=/scratch/kocevski/66268/expmap_322790401_323049601_4FGL_J2159.8-4751_daily_bin322.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/66268/ltcube_322790401_323049601_4FGL_J2159.8-4751_daily_bin322.fits
.....................!
real 190.98
user 185.12
sys 5.46

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/66268/ft1_filtered_4FGL_J2159.8-4751_daily_bin322.fits scfile=/scratch/kocevski/66268/ft2_4FGL_J2159.8-4751_daily_bin322.fits outfile=/scratch/kocevski/66268/cmap_322790401_323049601_4FGL_J2159.8-4751_daily_bin322.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/66268/ft1_filtered_4FGL_J2159.8-4751_daily_bin322.fits scfile=/scratch/kocevski/66268/ft2_4FGL_J2159.8-4751_daily_bin322.fits outfile=/scratch/kocevski/66268/cmap_HighResolution_322790401_323049601_4FGL_J2159.8-4751_daily_bin322.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/66268/ft1_filtered_4FGL_J2159.8-4751_daily_bin322.fits evtable="EVENTS" scfile=/scratch/kocevski/66268/ft2_4FGL_J2159.8-4751_daily_bin322.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/66268/Model_4FGL_J2159.8-4751_daily_bin322.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/66268/ft1_filtered_4FGL_J2159.8-4751_daily_bin322.fits........................!
real 22.94
user 21.77
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    67.342       1.0000         .10000E-03   10000.    
     2 'norm      '    2.2263       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .98597E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    36.151       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1102       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   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 '    .10192E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.4721       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .70258E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.277       1.0000         .10000E-03   10000.    
    17 'Prefactor '    62.633       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    36.781       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.075       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    70.674       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.7058       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=   1605.673     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     3075 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     67.324        75.364       -.16743E-04    .95739E-04
   2  norm          2.2262        2.9844        .86941E-07    .31283E-05
   3  Prefactor     .10002E-03    528.71       -.26661E-03** at limit **
   4  Prefactor     36.147        23.071       -.11313E-06   -.52141E-04
   5  Prefactor     .10000E-03    26.158        .34033E-05** at limit **
   6  Prefactor     .10000E-03    58.852       -.30391E-04** at limit **
   7  Prefactor     4.1068        14.445       -.62972E-06   -.12807E-04
   8  norm          .10000E-03    3.3949       -.19750E-06** at limit **
   9  Prefactor     .10000E-03    8.5584       -.79699E-07** at limit **
  10  Prefactor     .10000E-03    24.013        .64254E-05** at limit **
  11  Prefactor     .10000E-03    85.059        .56555E-04** at limit **
  12  Prefactor     8.4862        17.202        .60111E-06    .13333E-03
  13  Prefactor     .10000E-03    3.5463       -.14700E-07** at limit **
  14  Prefactor     .10000E-03    389.26       -.15408E-03** at limit **
  15  norm          .10000E-03    16.325        .11705E-05** at limit **
  16  Prefactor     13.276        10.271        .55274E-06    .20574E-03
  17  Prefactor     62.603        86.576       -.31123E-04   -.11694E-04
  18  Prefactor     .10000E-03    6.2505       -.52670E-07** at limit **
  19  Prefactor     36.769        48.783       -.92763E-05   -.29653E-04
  20  Prefactor     .10000E-03    21.264       -.79189E-05** at limit **
  21  Prefactor     13.075        24.012       -.55305E-06   -.11639E-04
  22  Prefactor     .10000E-03    128.96       -.12080E-04** at limit **
  23  Prefactor     .10000E-03    10.020       -.21954E-06** at limit **
  24  Prefactor     70.714        94.164        .40034E-04   -.56886E-05
  25  Normalizat    .10000E-01    .40343        .58129E-05** at limit **
  26  Prefactor     1.7054        .22413        .19973E-05   -.11285E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 67.3239
  norm       = 2.22622
  Prefactor  = 0.000100022
  Prefactor  = 36.1473
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.10682
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.48618
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.2758
  Prefactor  = 62.6032
  Prefactor  = 0.0001
  Prefactor  = 36.7685
  Prefactor  = 0.0001
  Prefactor  = 13.0749
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 70.7139
  Normalizat = 0.01
  Prefactor  = 1.70544
 **********
 **   18 **HESSE 
 **********

 FCN=   1605.673     FROM HESSE     STATUS=OK           448 CALLS     3523 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     67.324        75.210        .48910E-04   -1.4065    
   2  norm          2.2262        2.9733        .77967E-04   -1.5410    
   3  Prefactor     .10002E-03    528.84        .20772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     36.147        23.021        .66655E-04   -1.4505    
   5  Prefactor     .10000E-03    26.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    58.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.1068        14.441        .19884E-03   -1.5303    
   8  norm          .10000E-03    3.4007        .72111E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.5936        .11447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    24.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    85.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.4862        17.153        .13772E-03   -1.5125    
  13  Prefactor     .10000E-03    3.5473        .73704E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    389.78        .20978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    16.331        .15817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.276        10.259        .54825E-03   -1.4979    
  17  Prefactor     62.603        86.623        .25352E-03   -1.4124    
  18  Prefactor     .10000E-03    6.2576        .97853E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     36.769        48.711        .66083E-04   -1.4494    
  20  Prefactor     .10000E-03    21.266        .18054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.075        24.005        .11078E-03   -1.4985    
  22  Prefactor     .10000E-03    128.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.027        .12390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     70.714        94.174        .23875E-03   -1.4024    
  25  Normalizat    .10000E-01    .58342        .12279E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.7054        .18539        .17729E-03   -.71937    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.16057e-10
Minuit parameter uncertainties:
  1  75.3167
  2  2.97352
  3  0.00684466
  4  23.0267
  5  2.16577e-05
  6  0.000115423
  7  14.4529
  8  4.69451e-06
  9  2.77747e-05
  10  0.000141008
  11  0.000117539
  12  17.1628
  13  6.23465e-07
  14  0.000175966
  15  7.61309e-06
  16  10.2606
  17  86.7981
  18  1.46219e-05
  19  48.7635
  20  6.48945e-06
  21  24.0227
  22  3.30221e-05
  23  2.20972e-05
  24  94.3735
  25  1.74218e-05
  26  0.185467
Done.

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

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  1.000e-04  1.175e-04  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.705e+00  1.855e-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.000e-02  1.742e-05  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/66268/likelihoodResults_322790401_323049601_4FGL_J2159.8-4751_daily_bin322.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) = 1605.6728927
delta logL = -5.97631760684e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1605.6728331
delta logL = -1.65267465491e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6170       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.7054       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   1605.648     FROM MIGRAD    STATUS=FAILED       153 CALLS      361 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.246        9986.6        .18142E-01    .58230E-04
   2  Index         1.5655        9.2022        .29050        .14747E-05
   3  Normalizat    .10000E-01    .40760        .12279E-01** at limit **
   4  Prefactor     1.7005        .22706        .17729E-03    .18039E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   1605.648     FROM SIMPLEX   STATUS=UNCHANGED    124 CALLS      485 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.246        9986.6        .34791E-03    .58230E-04
   2  Index         1.5655        9.2022        .27882E-04    .14747E-05
   3  Normalizat    .10000E-01    .40760        .40292E-02** at limit **
   4  Prefactor     1.7005        .22706        .16740E-07    .18039E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1605.648     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      522 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.245        135.20        .72569E-03    .16649E-04
   2  Index         1.5655        1.3396        .11275E-01    .10711E-04
   3  Normalizat    .10000E-01    .60851        .24559E-02** at limit **
   4  Prefactor     1.7005        .17155        .35459E-04    .17937E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.2455
  Index      = 1.5655
  Normalizat = 0.01
  Prefactor  = 1.70051
 **********
 **   18 **HESSE 
 **********

 FCN=   1605.648     FROM HESSE     STATUS=OK            25 CALLS      547 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.245        137.44        .29028E-04   -1.4743    
   2  Index         1.5655        1.3508        .45100E-03   -.75722    
   3  Normalizat    .10000E-01    .60853        .49117E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.7005        .17154        .70918E-05   -.72068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03404e-10
Minuit parameter uncertainties:
  1  113.438
  2  1.38399
  3  2.14923e-06
  4  0.171604
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66268': 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) = 1605.64825342
delta logL = 0.0245795103251

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  2.325e+01  1.134e+02  1.000e-04  1.000e+04 ( 1.000e-13)
312        Index:  1.565e+00  1.384e+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.701e+00  1.716e-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.000e-02  2.149e-06  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/66268/cmap_HighResolution_322790401_323049601_4FGL_J2159.8-4751_daily_bin322.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.89e-02', job_status='DONE', photon_flux_upper_limit='2.42e-07', time_completed='2021-09-27 22:50:16.209743', job_id='66268', GAL2='1.70', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632808216.21', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.71', dlogl='2.46e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='322' AND source_name='4FGL J2159.8-4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:50:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 66268: <4FGL_J2159.8-4751_daily_bin322> in cluster <slac> Done

Job <4FGL_J2159.8-4751_daily_bin322> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep 27 22:36:14 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 22:42:13 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:13 2021
Terminated at Mon Sep 27 22:50:16 2021
Results reported at Mon Sep 27 22:50:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2159.8-4751_daily_bin322 329.962 -47.8518 322790401 323049601 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 :                                   464.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             301.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   483 sec.
    Turnaround time :                            842 sec.

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

