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


Performing analysis on: 4FGL_J1959.1-4247_daily_bin1247
RA = 299.796, Dec = -42.7852
tmin = 562550401, tmax = 562809601
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='468072', job_status='RUN', time_executed='2021-09-24 03:18:06.254113', time_epoch_executed='1632478686.25' WHERE source_name='4FGL J1959.1-4247' and cadence='daily' and bin_id='1247'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/468072

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/468072/ft1_4FGL_J1959.1-4247_daily_bin1247.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/468072/ft2_4FGL_J1959.1-4247_daily_bin1247.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/468072/ft1_4FGL_J1959.1-4247_daily_bin1247.fits outfile=/scratch/kocevski/468072/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1247.fits ra=299.796 dec=-42.7852 rad=12.0 tmin=562550401.0 tmax=562809601.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.45
user 3.23
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/468072/ft2_4FGL_J1959.1-4247_daily_bin1247.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/468072/ft2_4FGL_J1959.1-4247_daily_bin1247.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/468072/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1247.fits evtable="EVENTS" outfile="/scratch/kocevski/468072/ft1_filtered_4FGL_J1959.1-4247_daily_bin1247.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/468072/ft1_filtered_4FGL_J1959.1-4247_daily_bin1247.fits" evtable="EVENTS" scfile=/scratch/kocevski/468072/ft2_4FGL_J1959.1-4247_daily_bin1247.fits sctable="SC_DATA" outfile=/scratch/kocevski/468072/ltcube_562550401_562809601_4FGL_J1959.1-4247_daily_bin1247.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/468072/ft2_4FGL_J1959.1-4247_daily_bin1247.fits
.....................!
real 11.88
user 11.51
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/468072/ft1_filtered_4FGL_J1959.1-4247_daily_bin1247.fits evtable="EVENTS" scfile=/scratch/kocevski/468072/ft2_4FGL_J1959.1-4247_daily_bin1247.fits sctable="SC_DATA" expcube=/scratch/kocevski/468072/ltcube_562550401_562809601_4FGL_J1959.1-4247_daily_bin1247.fits outfile=/scratch/kocevski/468072/expmap_562550401_562809601_4FGL_J1959.1-4247_daily_bin1247.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/468072/ltcube_562550401_562809601_4FGL_J1959.1-4247_daily_bin1247.fits
.....................!
real 191.19
user 185.68
sys 5.19

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

Setting source of interest to:
4FGL J1959.1-4247 @ 299.796 -42.7852

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/468072/ft1_filtered_4FGL_J1959.1-4247_daily_bin1247.fits scfile=/scratch/kocevski/468072/ft2_4FGL_J1959.1-4247_daily_bin1247.fits outfile=/scratch/kocevski/468072/cmap_562550401_562809601_4FGL_J1959.1-4247_daily_bin1247.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=299.796 yref=-42.7852 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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/468072/ft1_filtered_4FGL_J1959.1-4247_daily_bin1247.fits scfile=/scratch/kocevski/468072/ft2_4FGL_J1959.1-4247_daily_bin1247.fits outfile=/scratch/kocevski/468072/cmap_HighResolution_562550401_562809601_4FGL_J1959.1-4247_daily_bin1247.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=299.796 yref=-42.7852 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/468072/ft1_filtered_4FGL_J1959.1-4247_daily_bin1247.fits evtable="EVENTS" scfile=/scratch/kocevski/468072/ft2_4FGL_J1959.1-4247_daily_bin1247.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/468072/Model_4FGL_J1959.1-4247_daily_bin1247.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/468072/ft1_filtered_4FGL_J1959.1-4247_daily_bin1247.fits.....................!
real 49.74
user 48.49
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/468072/ft1_filtered_4FGL_J1959.1-4247_daily_bin1247.fits', '/scratch/kocevski/468072/ft2_4FGL_J1959.1-4247_daily_bin1247.fits', expMap='/scratch/kocevski/468072/expmap_562550401_562809601_4FGL_J1959.1-4247_daily_bin1247.fits', expCube='/scratch/kocevski/468072/ltcube_562550401_562809601_4FGL_J1959.1-4247_daily_bin1247.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/468072/Model_4FGL_J1959.1-4247_daily_bin1247.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1959.1-4247'

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  3.377e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
376        alpha:  2.270e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
377         beta:  1.642e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
378           Eb:  6.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/468072/ft1_filtered_4FGL_J1959.1-4247_daily_bin1247.fits
Spacecraft file(s): /scratch/kocevski/468072/ft2_4FGL_J1959.1-4247_daily_bin1247.fits
Exposure map: /scratch/kocevski/468072/expmap_562550401_562809601_4FGL_J1959.1-4247_daily_bin1247.fits
Exposure cube: /scratch/kocevski/468072/ltcube_562550401_562809601_4FGL_J1959.1-4247_daily_bin1247.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/468072/Model_4FGL_J1959.1-4247_daily_bin1247.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) = 5444.44505894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.6153       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0054       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1824       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.5770       1.0000         .10000E-03   10000.    
     7 'norm      '    25.303       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.9134       1.0000         .10000E-03   10000.    
     9 'norm      '    3.5167       1.0000         .10000E-03   10000.    
    10 'norm      '    21.045       1.0000         .10000E-03   10000.    
    11 'norm      '    13.887       1.0000         .10000E-03   10000.    
    12 'norm      '    2.2167       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5856       1.0000         .10000E-03   10000.    
    14 'norm      '    3.4273       1.0000         .10000E-03   10000.    
    15 'norm      '    20.828       1.0000         .10000E-03   10000.    
    16 'norm      '    8.1799       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11465E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    210.73       1.0000         .10000E-03   10000.    
    19 'norm      '    17.443       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .97292       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .96251       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6700E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5444.432     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     2200 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.6172        11.129       -.11345E-05   -.27254E-03
   2  norm          .10000E-03    1.5502        .15854E-06** at limit **
   3  Prefactor     2.7361        1092.3        .14793E-03   -.31395E-04
   4  Prefactor     1.1791        10.739        .24798E-04   -.27583E-04
   5  Prefactor     .10000E-03    19.201        .72876E-06** at limit **
   6  Prefactor     6.5744        10.240       -.24985E-06   -.10873E-03
   7  norm          25.359        29.146        .26050E-05    .13490E-03
   8  Prefactor     5.9138        5.6957        .24384E-06   -.11896E-03
   9  norm          3.5167        1.6687        .14499E-06   -.10722E-03
  10  norm          21.044        14.550        .35129E-06   -.73373E-05
  11  norm          13.884        25.176        .93077E-06   -.19236E-04
  12  norm          2.2166        2.2880        .23991E-06    .45999E-05
  13  Prefactor     1.6091        552.96       -.14636E-04   -.19667E-04
  14  norm          3.4272        3.4437        .17413E-06   -.53483E-05
  15  norm          20.827        16.868        .65998E-06   -.28284E-04
  16  norm          8.1945        22.860        .56576E-05    .13293E-03
  17  Prefactor     .10000E-03    36.210        .30328E-06** at limit **
  18  Prefactor     210.79        121.73       -.64949E-05   -.23440E-03
  19  norm          17.443        4.2249        .35938E-06    .63783E-04
  20  Normalizat    .97292        .31933       -.79337E-05   -.30309E-03
  21  Prefactor     .96258        .11876       -.14295E-06   -.25004E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.61715
  norm       = 0.0001
  Prefactor  = 2.73614
  Prefactor  = 1.1791
  Prefactor  = 0.0001
  Prefactor  = 6.57437
  norm       = 25.3587
  Prefactor  = 5.91383
  norm       = 3.51669
  norm       = 21.0442
  norm       = 13.8838
  norm       = 2.21656
  Prefactor  = 1.60907
  norm       = 3.42725
  norm       = 20.8267
  norm       = 8.19453
  Prefactor  = 0.0001
  Prefactor  = 210.792
  norm       = 17.443
  Normalizat = 0.972915
  Prefactor  = 0.962578
 **********
 **   18 **HESSE 
 **********

 FCN=   5444.432     FROM HESSE     STATUS=OK           325 CALLS     2525 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.6172        11.188        .13657E-03   -1.5121    
   2  norm          .10000E-03    1.5865        .89704E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.7361        1106.2        .23413E-02   -1.5377    
   4  Prefactor     1.1791        10.857        .21007E-02   -1.5491    
   5  Prefactor     .10000E-03    19.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.5744        10.234        .15648E-03   -1.5195    
   7  norm          25.359        29.188        .79636E-04   -1.4700    
   8  Prefactor     5.9138        5.6925        .16514E-03   -1.5222    
   9  norm          3.5167        1.6646        .62371E-04   -1.5333    
  10  norm          21.044        14.535        .87310E-04   -1.4790    
  11  norm          13.884        25.166        .10749E-03   -1.4963    
  12  norm          2.2166        2.2806        .10921E-03   -1.5410    
  13  Prefactor     1.6091        553.43        .33713E-03   -1.5454    
  14  norm          3.4272        3.4406        .13224E-03   -1.5338    
  15  norm          20.827        16.871        .87763E-04   -1.4795    
  16  norm          8.1945        22.900        .14018E-03   -1.5135    
  17  Prefactor     .10000E-03    36.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     210.79        122.29        .13925E-03   -1.2794    
  19  norm          17.443        4.2386        .70992E-04   -1.4872    
  20  Normalizat    .97292        .36522        .43212E-03   -.93943    
  21  Prefactor     .96258        .13849        .16577E-03   -.93987    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.68371e-09
Minuit parameter uncertainties:
  1  11.1906
  2  5.46984e-06
  3  112.184
  4  7.15716
  5  6.95178e-05
  6  10.2364
  7  29.2045
  8  5.69301
  9  1.66464
  10  14.5377
  11  25.1851
  12  2.28073
  13  60.2508
  14  3.44083
  15  16.8751
  16  22.9249
  17  1.14492e-05
  18  122.442
  19  4.23866
  20  0.366159
  21  0.138544
Done.

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

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  2.104e+01  1.454e+01  1.000e-04  1.000e+04 ( 1.000e-12)
376        alpha:  2.270e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
377         beta:  1.642e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
378           Eb:  6.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
667    Prefactor:  9.626e-01  1.385e-01  0.000e+00  1.000e+01 ( 1.000e+00)
668        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
669        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
666   Normalization:  9.729e-01  3.662e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.36
Ra Dec: 299.796 -42.785
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 9.07e-08 +/- 6.26e-08
Energy Flux (Fixed Index): 3.26e-05 +/- 2.25e-05

TS (Fixed Index): 3.36
Ra Dec: 299.796 -42.785
Photon Flux Upper Limit: 2.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.86e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/468072/likelihoodResults_562550401_562809601_4FGL_J1959.1-4247_daily_bin1247.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) = 5444.2454864
delta logL = 0.186595919847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5444.23988496
delta logL = 0.192197360912

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.978       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6786       1.0000          .0000       5.0000    
     3 'Normalizat'    .94108       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96979       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6700E+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=   5444.240     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      302 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.982        14.806        .97202E-04   -.18561E-03
   2  alpha         2.6785        .70997        .12900E-01    .14935E-03
   3  Normalizat    .94096        .34792        .43852E-03   -.38991E-04
   4  Prefactor     .96985        .13231        .16518E-03   -.20926E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 16.9824
  alpha      = 2.67846
  Normalizat = 0.940962
  Prefactor  = 0.969852
 **********
 **   18 **HESSE 
 **********

 FCN=   5444.240     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.982        14.236        .38881E-05   -1.4884    
   2  alpha         2.6785        .68289        .25799E-02    .71443E-01
   3  Normalizat    .94096        .34792        .17541E-04   -.95035    
   4  Prefactor     .96985        .13231        .33036E-04   -.93741    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.51531e-11
Minuit parameter uncertainties:
  1  14.2389
  2  0.691725
  3  0.348754
  4  0.132354
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/468072': 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) = 5444.23988474
delta logL = 0.192197577077

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.698e+01  1.424e+01  1.000e-04  1.000e+04 ( 1.000e-12)
376        alpha:  2.678e+00  6.917e-01  0.000e+00  5.000e+00 ( 1.000e+00)
377         beta:  1.642e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
378           Eb:  6.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
667    Prefactor:  9.699e-01  1.324e-01  0.000e+00  1.000e+01 ( 1.000e+00)
668        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
669        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
666   Normalization:  9.410e-01  3.488e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.77
Ra Dec: 299.796 -42.785
Photon Index (Free Index): 2.68 +/- 0.69
Photon Flux (Free Index): 1.15e-07 +/- 7.97e-08
Energy Flux (Free Index): 2.99e-05 +/- 1.95e-05

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/468072/cmap_HighResolution_562550401_562809601_4FGL_J1959.1-4247_daily_bin1247.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.86e-05', comment='SUCCESS', photon_flux='9.07e-08', energy_flux2='2.99e-05', photon_flux_error='6.26e-08', dlogl='1.92e-01', energy_flux='3.26e-05', photon_flux2='1.15e-07', job_status='DONE', time_completed='2021-09-24 03:28:32.430975', photon_index_error2='0.69', photon_index2='2.68', ts='3.36', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='2.19e-07', energy_flux_error2='1.95e-05', EG='0.97', time_epoch_completed='1632479312.43', return_code='0', job_id='468072', GAL2='0.97', EG2='0.94', return_code2='0', energy_flux_error='2.25e-05', photon_flux_error2='7.97e-08', ts2='3.77', photon_index='2.27' WHERE bin_id='1247' AND source_name='4FGL J1959.1-4247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 03:28:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 468072: <4FGL_J1959.1-4247_daily_bin1247> in cluster <slac> Done

Job <4FGL_J1959.1-4247_daily_bin1247> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 24 03:17:37 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 24 03:17:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 24 03:17:40 2021
Terminated at Fri Sep 24 03:28:33 2021
Results reported at Fri Sep 24 03:28:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1959.1-4247_daily_bin1247 299.796 -42.7852 562550401 562809601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1959.1-4247 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   624.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             334.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   652 sec.
    Turnaround time :                            656 sec.

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

