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


Performing analysis on: 4FGL_J1959.1-4247_daily_bin1282
RA = 299.796, Dec = -42.7852
tmin = 571622401, tmax = 571881601
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='469221', job_status='RUN', time_executed='2021-09-24 03:23:09.713770', time_epoch_executed='1632478989.71' WHERE source_name='4FGL J1959.1-4247' and cadence='daily' and bin_id='1282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/469221

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/469221/ft1_4FGL_J1959.1-4247_daily_bin1282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/469221/ft2_4FGL_J1959.1-4247_daily_bin1282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/469221/ft1_4FGL_J1959.1-4247_daily_bin1282.fits outfile=/scratch/kocevski/469221/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1282.fits ra=299.796 dec=-42.7852 rad=12.0 tmin=571622401.0 tmax=571881601.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 2.75
user 2.52
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/469221/ft1_filtered_4FGL_J1959.1-4247_daily_bin1282.fits" evtable="EVENTS" scfile=/scratch/kocevski/469221/ft2_4FGL_J1959.1-4247_daily_bin1282.fits sctable="SC_DATA" outfile=/scratch/kocevski/469221/ltcube_571622401_571881601_4FGL_J1959.1-4247_daily_bin1282.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/469221/ft2_4FGL_J1959.1-4247_daily_bin1282.fits
.....................!
real 12.48
user 12.08
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/469221/ft1_filtered_4FGL_J1959.1-4247_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/469221/ft2_4FGL_J1959.1-4247_daily_bin1282.fits sctable="SC_DATA" expcube=/scratch/kocevski/469221/ltcube_571622401_571881601_4FGL_J1959.1-4247_daily_bin1282.fits outfile=/scratch/kocevski/469221/expmap_571622401_571881601_4FGL_J1959.1-4247_daily_bin1282.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/469221/ltcube_571622401_571881601_4FGL_J1959.1-4247_daily_bin1282.fits
.....................!
real 192.73
user 187.43
sys 4.66

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/469221/ft1_filtered_4FGL_J1959.1-4247_daily_bin1282.fits scfile=/scratch/kocevski/469221/ft2_4FGL_J1959.1-4247_daily_bin1282.fits outfile=/scratch/kocevski/469221/cmap_571622401_571881601_4FGL_J1959.1-4247_daily_bin1282.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/469221/ft1_filtered_4FGL_J1959.1-4247_daily_bin1282.fits scfile=/scratch/kocevski/469221/ft2_4FGL_J1959.1-4247_daily_bin1282.fits outfile=/scratch/kocevski/469221/cmap_HighResolution_571622401_571881601_4FGL_J1959.1-4247_daily_bin1282.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/469221/ft1_filtered_4FGL_J1959.1-4247_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/469221/ft2_4FGL_J1959.1-4247_daily_bin1282.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/469221/Model_4FGL_J1959.1-4247_daily_bin1282.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/469221/ft1_filtered_4FGL_J1959.1-4247_daily_bin1282.fits......................!
real 28.69
user 27.39
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.7872       1.0000         .10000E-03   10000.    
     2 'norm      '    .10606E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    157.76       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .68079E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    141.60       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.9656       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.8473       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10582E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .22602       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .87514       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=   2032.462     FROM MIGRAD    STATUS=CONVERGED    789 CALLS     2945 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.7869        12.178        .12809E-03   -.22788E-04
   2  norm          .10000E-03    3.7213        .12974E-02** at limit **
   3  Prefactor     157.76        129.77        .32101E-04   -.78976E-05
   4  Prefactor     .61215E-01    61.712        .52207E-01    .32860E-03
   5  Prefactor     141.61        99.702        .16928E-03    .27720E-04
   6  Prefactor     7.9687        14.901        .14206E-03   -.89227E-05
   7  norm          .10000E-03    15.029        .17074E-02** at limit **
   8  Prefactor     .10000E-03    7.8116        .12257E-02** at limit **
   9  norm          2.8471        2.1374        .55454E-04   -.21321E-04
  10  norm          .10000E-03    6.8482        .11524E-02** at limit **
  11  norm          .10000E-03    23.447        .18142E-02** at limit **
  12  norm          .10000E-03    10.817        .14478E-02** at limit **
  13  Prefactor     .10000E-03    83.232        .18142E-02** at limit **
  14  norm          .10000E-03    40.408        .18142E-02** at limit **
  15  norm          .10000E-03    29.534        .18142E-02** at limit **
  16  norm          .10000E-03    572.73        .18142E-02** at limit **
  17  Prefactor    10000.0        1709.9        .18142E-02** at limit **
  18  Prefactor    10000.0        6668.1        .18142E-02** at limit **
  19  norm          .10000E-03    71.175        .18142E-02** at limit **
  20  Normalizat    .22562        .65845        .81902E-03    .29008E-04
  21  Prefactor     .87529        .19390        .12782E-03    .74490E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 9.78694
  norm       = 0.0001
  Prefactor  = 157.762
  Prefactor  = 0.0612146
  Prefactor  = 141.609
  Prefactor  = 7.96871
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.84715
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 0.0001
  Normalizat = 0.22562
  Prefactor  = 0.875286
 **********
 **   18 **HESSE 
 **********

 FCN=   2032.462     FROM HESSE     STATUS=OK           305 CALLS     3250 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.7869        12.178        .51236E-05   -1.5082    
   2  norm          .10000E-03    3.7250        .25948E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     157.76        129.72        .64202E-05   -1.3189    
   4  Prefactor     .61215E-01    44.784        .60707E-01   -1.5659    
   5  Prefactor     141.61        97.945        .67712E-05   -1.3322    
   6  Prefactor     7.9687        14.900        .56826E-05   -1.5143    
   7  norm          .10000E-03    15.029        .34147E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.8126        .24514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.8471        2.1373        .22182E-05   -1.5370    
  10  norm          .10000E-03    6.8482        .23047E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    23.447        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    10.817        .28957E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    83.232        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    40.408        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    29.535        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    572.73        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor    10000.0        1709.9        .36285E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor    10000.0        6668.1        .36285E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    71.175        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .22562        .64996        .32761E-04   -1.2759    
  21  Prefactor     .87529        .19244        .51128E-05   -.97010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42417e-09
Minuit parameter uncertainties:
  1  12.1808
  2  2.79157e-05
  3  129.954
  4  3.31125
  5  98.0579
  6  14.9068
  7  1.12118e-06
  8  4.2728e-06
  9  2.13739
  10  1.35032e-06
  11  3.62319e-06
  12  6.15444e-06
  13  8.7162e-06
  14  5.58127e-06
  15  1.83671e-06
  16  0.000374166
  17  0.00306706
  18  0.00646923
  19  1.21309e-05
  20  0.673905
  21  0.19259
Done.

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

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.000e-04  1.350e-06  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:  8.753e-01  1.926e-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:  2.256e-01  6.739e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/469221/likelihoodResults_571622401_571881601_4FGL_J1959.1-4247_daily_bin1282.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) = 2032.46254446
delta logL = -0.000655898878449

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2032.4618886
delta logL = -4.40847998107e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2583       1.0000          .0000       5.0000    
     3 'Normalizat'    .22579       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87522       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=   2032.462     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      242 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    426.95        .11590E-01** at limit **
   2  alpha         1.7064        3.3390        .16559        .10728E-07
   3  Normalizat    .22561        .96412E-01    .81904E-03    .76898E-05
   4  Prefactor     .87529        .28820E-01    .12782E-03    .44605E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.70639
  Normalizat = 0.225613
  Prefactor  = 0.875288
 **********
 **   18 **HESSE 
 **********

 FCN=   2032.462     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.9672        .12421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7064        3.2879        .66236E-02   -.32303    
   3  Normalizat    .22561        .58650        .32762E-04   -1.2759    
   4  Prefactor     .87529        .18023        .51128E-05   -.97010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.36745e-12
Minuit parameter uncertainties:
  1  5.67755e-06
  2  385.763
  3  0.603754
  4  0.180351
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/469221': 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) = 2032.46188754
delta logL = 1.01610112324e-06

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.000e-04  5.678e-06  1.000e-04  1.000e+04 ( 1.000e-12)
376        alpha:  1.706e+00  3.858e+02  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:  8.753e-01  1.804e-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:  2.256e-01  6.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 299.796 -42.785

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/469221/cmap_HighResolution_571622401_571881601_4FGL_J1959.1-4247_daily_bin1282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.22e-05', job_status='DONE', photon_flux_upper_limit='1.73e-07', time_completed='2021-09-24 03:30:57.770370', job_id='469221', GAL2='0.88', fit_tolerance='1e-08', EG2='0.23', EG='0.23', time_epoch_completed='1632479457.77', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.02e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1282' AND source_name='4FGL J1959.1-4247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 03:30:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 469221: <4FGL_J1959.1-4247_daily_bin1282> in cluster <slac> Done

Job <4FGL_J1959.1-4247_daily_bin1282> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 24 03:22:20 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 24 03:22:22 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:22:22 2021
Terminated at Fri Sep 24 03:30:58 2021
Results reported at Fri Sep 24 03:30:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1959.1-4247_daily_bin1282 299.796 -42.7852 571622401 571881601 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 :                                   457.43 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   516 sec.
    Turnaround time :                            518 sec.

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

