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


Performing analysis on: 4FGL_J1959.1-4247_daily_bin1167
RA = 299.796, Dec = -42.7852
tmin = 541814401, tmax = 542073601
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='467954', job_status='RUN', time_executed='2021-09-24 03:19:18.179672', time_epoch_executed='1632478758.18' WHERE source_name='4FGL J1959.1-4247' and cadence='daily' and bin_id='1167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/467954

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/467954/ft1_4FGL_J1959.1-4247_daily_bin1167.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/467954/ft2_4FGL_J1959.1-4247_daily_bin1167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/467954/ft1_4FGL_J1959.1-4247_daily_bin1167.fits outfile=/scratch/kocevski/467954/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1167.fits ra=299.796 dec=-42.7852 rad=12.0 tmin=541814401.0 tmax=542073601.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.75
user 3.50
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/467954/ft2_4FGL_J1959.1-4247_daily_bin1167.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/467954/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1167.fits evtable="EVENTS" outfile="/scratch/kocevski/467954/ft1_filtered_4FGL_J1959.1-4247_daily_bin1167.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.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/467954/ft1_filtered_4FGL_J1959.1-4247_daily_bin1167.fits" evtable="EVENTS" scfile=/scratch/kocevski/467954/ft2_4FGL_J1959.1-4247_daily_bin1167.fits sctable="SC_DATA" outfile=/scratch/kocevski/467954/ltcube_541814401_542073601_4FGL_J1959.1-4247_daily_bin1167.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/467954/ft2_4FGL_J1959.1-4247_daily_bin1167.fits
.....................!
real 11.76
user 11.41
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/467954/ft1_filtered_4FGL_J1959.1-4247_daily_bin1167.fits evtable="EVENTS" scfile=/scratch/kocevski/467954/ft2_4FGL_J1959.1-4247_daily_bin1167.fits sctable="SC_DATA" expcube=/scratch/kocevski/467954/ltcube_541814401_542073601_4FGL_J1959.1-4247_daily_bin1167.fits outfile=/scratch/kocevski/467954/expmap_541814401_542073601_4FGL_J1959.1-4247_daily_bin1167.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/467954/ltcube_541814401_542073601_4FGL_J1959.1-4247_daily_bin1167.fits
.....................!
real 190.30
user 185.57
sys 4.41

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/467954/ft1_filtered_4FGL_J1959.1-4247_daily_bin1167.fits scfile=/scratch/kocevski/467954/ft2_4FGL_J1959.1-4247_daily_bin1167.fits outfile=/scratch/kocevski/467954/cmap_541814401_542073601_4FGL_J1959.1-4247_daily_bin1167.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.53
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/467954/ft1_filtered_4FGL_J1959.1-4247_daily_bin1167.fits scfile=/scratch/kocevski/467954/ft2_4FGL_J1959.1-4247_daily_bin1167.fits outfile=/scratch/kocevski/467954/cmap_HighResolution_541814401_542073601_4FGL_J1959.1-4247_daily_bin1167.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/467954/ft1_filtered_4FGL_J1959.1-4247_daily_bin1167.fits evtable="EVENTS" scfile=/scratch/kocevski/467954/ft2_4FGL_J1959.1-4247_daily_bin1167.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/467954/Model_4FGL_J1959.1-4247_daily_bin1167.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/467954/ft1_filtered_4FGL_J1959.1-4247_daily_bin1167.fits.....................!
real 70.92
user 69.59
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/467954/ft1_filtered_4FGL_J1959.1-4247_daily_bin1167.fits', '/scratch/kocevski/467954/ft2_4FGL_J1959.1-4247_daily_bin1167.fits', expMap='/scratch/kocevski/467954/expmap_541814401_542073601_4FGL_J1959.1-4247_daily_bin1167.fits', expCube='/scratch/kocevski/467954/ltcube_541814401_542073601_4FGL_J1959.1-4247_daily_bin1167.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/467954/Model_4FGL_J1959.1-4247_daily_bin1167.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/467954/ft1_filtered_4FGL_J1959.1-4247_daily_bin1167.fits
Spacecraft file(s): /scratch/kocevski/467954/ft2_4FGL_J1959.1-4247_daily_bin1167.fits
Exposure map: /scratch/kocevski/467954/expmap_541814401_542073601_4FGL_J1959.1-4247_daily_bin1167.fits
Exposure cube: /scratch/kocevski/467954/ltcube_541814401_542073601_4FGL_J1959.1-4247_daily_bin1167.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/467954/Model_4FGL_J1959.1-4247_daily_bin1167.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) = 8366.07975886

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    79.250       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.1207       1.0000         .10000E-03   10000.    
    10 'norm      '    12.525       1.0000         .10000E-03   10000.    
    11 'norm      '    13.851       1.0000         .10000E-03   10000.    
    12 'norm      '    5.2883       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.6236       1.0000         .10000E-03   10000.    
    14 'norm      '    11.183       1.0000         .10000E-03   10000.    
    15 'norm      '    36.540       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.8661       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.0803       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .81786       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0936       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=   8366.014     FROM MIGRAD    STATUS=CONVERGED    427 CALLS     2206 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.9023       -.48887E-07** at limit **
   2  norm          .10000E-03    .61733        .15478E-07** at limit **
   3  Prefactor     79.286        71.164        .38246E-04   -.21238E-04
   4  Prefactor     .10000E-03    3.2281        .80086E-07** at limit **
   5  Prefactor     .10000E-03    11.940       -.87619E-05** at limit **
   6  Prefactor     .10000E-03    16.828        .19067E-04** at limit **
   7  norm          .10000E-03    6.1576       -.19504E-05** at limit **
   8  Prefactor     .10000E-03    5.9616       -.46220E-05** at limit **
   9  norm          1.1206        1.1530       -.77318E-07   -.14567E-02
  10  norm          12.524        9.9726       -.31437E-06   -.13010E-03
  11  norm          13.854        21.801        .40784E-05   -.40948E-04
  12  norm          5.2882        2.3955        .10383E-06   -.11849E-03
  13  Prefactor     7.6237        44.988        .23899E-06   -.11527E-04
  14  norm          11.182        5.8444       -.28329E-07   -.16614E-03
  15  norm          36.540        16.142        .76440E-07    .15554E-04
  16  norm          .10000E-03    6.3878        .80267E-05** at limit **
  17  Prefactor     1.8675        63.828        .48611E-05   -.76796E-04
  18  Prefactor     .10000E-03    23.314       -.13866E-04** at limit **
  19  norm          4.0805        2.4746        .34256E-07   -.33123E-03
  20  Normalizat    .81773        .27246       -.14758E-05   -.19236E-03
  21  Prefactor     1.0936        .96774E-01   -.10446E-05   -.14524E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 79.2856
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.12057
  norm       = 12.5244
  norm       = 13.8543
  norm       = 5.28824
  Prefactor  = 7.62371
  norm       = 11.1824
  norm       = 36.5403
  norm       = 0.0001
  Prefactor  = 1.86752
  Prefactor  = 0.0001
  norm       = 4.08046
  Normalizat = 0.817734
  Prefactor  = 1.09365
 **********
 **   18 **HESSE 
 **********

 FCN=   8366.014     FROM HESSE     STATUS=OK           319 CALLS     2525 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.9105        .15217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .61885        .70177E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     79.286        71.224        .22556E-03   -1.3925    
   4  Prefactor     .10000E-03    3.2408        .16046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.171        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    6.1593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.1103        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.1206        1.1259        .94677E-04   -1.5496    
  10  norm          12.524        9.9550        .11319E-03   -1.5000    
  11  norm          13.854        21.806        .10762E-03   -1.4963    
  12  norm          5.2882        2.3938        .91989E-04   -1.5248    
  13  Prefactor     7.6237        44.923        .14524E-03   -1.5156    
  14  norm          11.182        5.8378        .11980E-03   -1.5039    
  15  norm          36.540        16.138        .66299E-04   -1.4498    
  16  norm          .10000E-03    6.3896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.8675        64.051        .30496E-03   -1.5435    
  18  Prefactor     .10000E-03    23.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.0805        2.4731        .10734E-03   -1.5304    
  20  Normalizat    .81773        .30040        .48543E-03   -.99414    
  21  Prefactor     1.0936        .10800        .15653E-03   -.89670    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.77955e-10
Minuit parameter uncertainties:
  1  8.71436e-06
  2  3.4925e-07
  3  71.3009
  4  6.42173e-06
  5  1.24117e-05
  6  0.000233304
  7  6.31979e-07
  8  3.37087e-05
  9  1.12594
  10  9.9563
  11  21.818
  12  2.39383
  13  37.054
  14  5.83806
  15  16.1398
  16  5.27373e-06
  17  21.8988
  18  6.34578e-06
  19  2.47314
  20  0.301009
  21  0.10802
Done.

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

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.252e+01  9.956e+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

GAL_V02
   Spectrum: PowerLaw
667    Prefactor:  1.094e+00  1.080e-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:  8.177e-01  3.010e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.68
Ra Dec: 299.796 -42.785
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 5.40e-08 +/- 4.29e-08
Energy Flux (Fixed Index): 1.94e-05 +/- 1.54e-05

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

Saving results to:
/scratch/kocevski/467954/likelihoodResults_541814401_542073601_4FGL_J1959.1-4247_daily_bin1167.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) = 8365.96643773
delta logL = 0.0473801696298

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8365.96264895
delta logL = 0.0511689507093

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.943       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5242       1.0000          .0000       5.0000    
     3 'Normalizat'    .80236       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0966       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8365.963     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      259 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.938        9.9004        .57958E-03    .61608E-04
   2  alpha         2.5250        .81826        .20837E-01    .12980E-03
   3  Normalizat    .80175        .29175        .48978E-03   -.23212E-06
   4  Prefactor     1.0967        .10655        .15633E-03   -.72723E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 11.9383
  alpha      = 2.525
  Normalizat = 0.801754
  Prefactor  = 1.09673
 **********
 **   18 **HESSE 
 **********

 FCN=   8365.963     FROM HESSE     STATUS=OK            27 CALLS      286 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.938        9.6611        .11592E-03   -1.5017    
   2  alpha         2.5250        .79835        .41673E-02    .10000E-01
   3  Normalizat    .80175        .29162        .19591E-04   -1.0000    
   4  Prefactor     1.0967        .10654        .62532E-05   -.89571    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75266e-12
Minuit parameter uncertainties:
  1  9.66231
  2  0.812587
  3  0.292192
  4  0.106561
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/467954': 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) = 8365.96264506
delta logL = 0.0511728446145

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.194e+01  9.662e+00  1.000e-04  1.000e+04 ( 1.000e-12)
376        alpha:  2.525e+00  8.126e-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:  1.097e+00  1.066e-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:  8.018e-01  2.922e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.79
Ra Dec: 299.796 -42.785
Photon Index (Free Index): 2.52 +/- 0.81
Photon Flux (Free Index): 6.78e-08 +/- 6.56e-08
Energy Flux (Free Index): 1.95e-05 +/- 1.46e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/467954/cmap_HighResolution_541814401_542073601_4FGL_J1959.1-4247_daily_bin1167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.27e-05', comment='SUCCESS', photon_flux='5.40e-08', energy_flux2='1.95e-05', photon_flux_error='4.29e-08', dlogl='5.12e-02', energy_flux='1.94e-05', photon_flux2='6.78e-08', job_status='DONE', time_completed='2021-09-24 03:31:56.366488', photon_index_error2='0.81', photon_index2='2.52', ts='2.68', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.47e-07', energy_flux_error2='1.46e-05', EG='0.82', time_epoch_completed='1632479516.37', return_code='0', job_id='467954', GAL2='1.10', EG2='0.80', return_code2='0', energy_flux_error='1.54e-05', photon_flux_error2='6.56e-08', ts2='2.79', photon_index='2.27' WHERE bin_id='1167' AND source_name='4FGL J1959.1-4247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 03:31:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 467954: <4FGL_J1959.1-4247_daily_bin1167> in cluster <slac> Done

Job <4FGL_J1959.1-4247_daily_bin1167> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 24 03:17:29 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 24 03:17:31 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:31 2021
Terminated at Fri Sep 24 03:31:59 2021
Results reported at Fri Sep 24 03:31:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1959.1-4247_daily_bin1167 299.796 -42.7852 541814401 542073601 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 :                                   755.17 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             305.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            870 sec.

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

