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


Performing analysis on: 4FGL_J1959.1-4247_daily_bin1528
RA = 299.796, Dec = -42.7852
tmin = 635385601, tmax = 635644801
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='470510', job_status='RUN', time_executed='2021-09-24 03:28:02.817185', time_epoch_executed='1632479282.82' WHERE source_name='4FGL J1959.1-4247' and cadence='daily' and bin_id='1528'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/470510

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/470510/ft1_4FGL_J1959.1-4247_daily_bin1528.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/470510/ft2_4FGL_J1959.1-4247_daily_bin1528.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/470510/ft1_4FGL_J1959.1-4247_daily_bin1528.fits outfile=/scratch/kocevski/470510/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1528.fits ra=299.796 dec=-42.7852 rad=12.0 tmin=635385601.0 tmax=635644801.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.85
user 2.65
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/470510/ft1_filtered_4FGL_J1959.1-4247_daily_bin1528.fits" evtable="EVENTS" scfile=/scratch/kocevski/470510/ft2_4FGL_J1959.1-4247_daily_bin1528.fits sctable="SC_DATA" outfile=/scratch/kocevski/470510/ltcube_635385601_635644801_4FGL_J1959.1-4247_daily_bin1528.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/470510/ft2_4FGL_J1959.1-4247_daily_bin1528.fits
.....................!
real 12.21
user 11.89
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/470510/ft1_filtered_4FGL_J1959.1-4247_daily_bin1528.fits evtable="EVENTS" scfile=/scratch/kocevski/470510/ft2_4FGL_J1959.1-4247_daily_bin1528.fits sctable="SC_DATA" expcube=/scratch/kocevski/470510/ltcube_635385601_635644801_4FGL_J1959.1-4247_daily_bin1528.fits outfile=/scratch/kocevski/470510/expmap_635385601_635644801_4FGL_J1959.1-4247_daily_bin1528.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/470510/ltcube_635385601_635644801_4FGL_J1959.1-4247_daily_bin1528.fits
.....................!
real 190.02
user 185.44
sys 4.27

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/470510/ft1_filtered_4FGL_J1959.1-4247_daily_bin1528.fits scfile=/scratch/kocevski/470510/ft2_4FGL_J1959.1-4247_daily_bin1528.fits outfile=/scratch/kocevski/470510/cmap_635385601_635644801_4FGL_J1959.1-4247_daily_bin1528.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.59
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/470510/ft1_filtered_4FGL_J1959.1-4247_daily_bin1528.fits scfile=/scratch/kocevski/470510/ft2_4FGL_J1959.1-4247_daily_bin1528.fits outfile=/scratch/kocevski/470510/cmap_HighResolution_635385601_635644801_4FGL_J1959.1-4247_daily_bin1528.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/470510/ft1_filtered_4FGL_J1959.1-4247_daily_bin1528.fits evtable="EVENTS" scfile=/scratch/kocevski/470510/ft2_4FGL_J1959.1-4247_daily_bin1528.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/470510/Model_4FGL_J1959.1-4247_daily_bin1528.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/470510/ft1_filtered_4FGL_J1959.1-4247_daily_bin1528.fits.....................!
real 48.28
user 47.00
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .65286       1.0000         .10000E-03   10000.    
     3 'Prefactor '    49.208       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .85507E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.7811       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.4616       1.0000         .10000E-03   10000.    
     7 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .55239       1.0000         .10000E-03   10000.    
     9 'norm      '    9.4997       1.0000         .10000E-03   10000.    
    10 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.0709       1.0000         .10000E-03   10000.    
    12 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10519E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    38.437       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10928E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    220.19       1.0000         .10000E-03   10000.    
    19 'norm      '    39.978       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .78608       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93781       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=   4792.887     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     2247 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.3554       -.22956E-06** at limit **
   2  norm          .65359        1.9439        .86357E-07    .30927E-03
   3  Prefactor     49.422        101.05        .12217E-05   -.39651E-04
   4  Prefactor     .10000E-03    9.4684       -.10372E-05** at limit **
   5  Prefactor     5.7434        26.207       -.47075E-05   -.89534E-04
   6  Prefactor     6.4684        14.080        .24779E-06    .13559E-04
   7  norm          .10000E-03    29.477        .14802E-06** at limit **
   8  Prefactor     .57085        19.006        .98658E-05   -.15418E-03
   9  norm          9.5004        2.3646        .73361E-07   -.26120E-03
  10  norm          .10000E-03    7.0970        .44276E-06** at limit **
  11  norm          9.0799        27.889        .39669E-06   -.30207E-04
  12  norm          .10000E-03    1.4800        .29655E-06** at limit **
  13  Prefactor     .10000E-03    28.423        .40375E-06** at limit **
  14  norm          .10000E-03    5.5007        .41190E-06** at limit **
  15  norm          .10000E-03    13.799        .55470E-06** at limit **
  16  norm          38.441        38.324        .10435E-06   -.11923E-05
  17  Prefactor     .10000E-03    29.441        .12880E-06** at limit **
  18  Prefactor     220.05        328.61        .23185E-05    .15413E-05
  19  norm          40.002        35.381        .20693E-06   -.17970E-04
  20  Normalizat    .78536        .39663       -.57248E-05   -.15513E-03
  21  Prefactor     .93787        .11852       -.24679E-06   -.10579E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.653594
  Prefactor  = 49.4219
  Prefactor  = 0.000100001
  Prefactor  = 5.74336
  Prefactor  = 6.46836
  norm       = 0.0001
  Prefactor  = 0.570852
  norm       = 9.50043
  norm       = 0.0001
  norm       = 9.07993
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 38.4409
  Prefactor  = 0.0001
  Prefactor  = 220.049
  norm       = 40.002
  Normalizat = 0.785355
  Prefactor  = 0.937866
 **********
 **   18 **HESSE 
 **********

 FCN=   4792.887     FROM HESSE     STATUS=OK           315 CALLS     2562 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.3606        .12366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .65359        1.9018        .15944E-03   -1.5546    
   3  Prefactor     49.422        100.90        .28583E-03   -1.4301    
   4  Prefactor     .10000E-03    25.310        .36362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.7434        26.322        .16704E-03   -1.5229    
   6  Prefactor     6.4684        14.031        .15789E-03   -1.5199    
   7  norm          .10000E-03    29.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .57085        20.358        .27494E-02   -1.5557    
   9  norm          9.5004        2.3622        .50375E-04   -1.5091    
  10  norm          .10000E-03    7.1205        .18016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.0799        27.958        .13307E-03   -1.5105    
  12  norm          .10000E-03    1.5072        .82271E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    28.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.5664        .15848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    13.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          38.441        38.325        .64648E-04   -1.4467    
  17  Prefactor     .10000E-03    29.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     220.05        328.66        .13629E-03   -1.2730    
  19  norm          40.002        35.435        .63395E-04   -1.4442    
  20  Normalizat    .78536        .42457        .48138E-03   -1.0061    
  21  Prefactor     .93787        .13072        .14421E-03   -.94830    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1531e-09
Minuit parameter uncertainties:
  1  3.46395e-05
  2  1.90197
  3  101.249
  4  0.000350973
  5  24.6087
  6  14.0379
  7  6.94287e-05
  8  6.81997
  9  2.36226
  10  6.75522e-06
  11  27.9981
  12  5.97487e-06
  13  4.42797e-06
  14  4.35335e-06
  15  3.21925e-05
  16  38.3495
  17  2.40158e-05
  18  331.475
  19  35.4535
  20  0.426381
  21  0.130767
Done.

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

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.000e-04  6.755e-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:  9.379e-01  1.308e-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:  7.854e-01  4.264e-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.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.38e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/470510/likelihoodResults_635385601_635644801_4FGL_J1959.1-4247_daily_bin1528.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) = 4792.88719911
delta logL = -0.000668947405757

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4792.88653005
delta logL = 1.0553503671e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2896       1.0000          .0000       5.0000    
     3 'Normalizat'    .78533       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93787       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.

 FCN=   4792.887     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      205 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.9090        .90712E-02** at limit **
   2  alpha         2.3100        3.5279        .41337       -.14191E-04
   3  Normalizat    .78535        .34311        .10859        .24411E-04
   4  Prefactor     .93787        .11263        .32635E-01   -.50171E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.30996
  Normalizat = 0.785348
  Prefactor  = 0.937869
 **********
 **   18 **HESSE 
 **********

 FCN=   4792.887     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.3490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3100        3.5056        .16535       -.76088E-01
   3  Normalizat    .78535        .37900        .48141E-03   -1.0061    
   4  Prefactor     .93787        .12493        .14421E-03   -.94830    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14231e-10
Minuit parameter uncertainties:
  1  4.48709e-05
  2  2.49475
  3  0.380284
  4  0.124971
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/470510': 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) = 4792.88652993
delta logL = 2.28025783144e-07

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.000e-04  4.487e-05  1.000e-04  1.000e+04 ( 1.000e-12)
376        alpha:  2.310e+00  2.495e+00  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.379e-01  1.250e-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:  7.853e-01  3.803e-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/470510/cmap_HighResolution_635385601_635644801_4FGL_J1959.1-4247_daily_bin1528.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.38e-05', job_status='DONE', photon_flux_upper_limit='1.22e-07', time_completed='2021-09-24 03:39:10.782846', job_id='470510', GAL2='0.94', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1632479950.78', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.28e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1528' AND source_name='4FGL J1959.1-4247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 03:39:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 470510: <4FGL_J1959.1-4247_daily_bin1528> in cluster <slac> Done

Job <4FGL_J1959.1-4247_daily_bin1528> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 24 03:26:38 2021
Job was executed on host(s) <bullet0300>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 24 03:26:41 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:26:41 2021
Terminated at Fri Sep 24 03:39:11 2021
Results reported at Fri Sep 24 03:39:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1959.1-4247_daily_bin1528 299.796 -42.7852 635385601 635644801 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 :                                   574.21 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             285.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            753 sec.

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

