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


Performing analysis on: 4FGL_J1959.1-4247_daily_bin1010
RA = 299.796, Dec = -42.7852
tmin = 501120001, tmax = 501379201
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='466460', job_status='RUN', time_executed='2021-09-24 03:15:39.514512', time_epoch_executed='1632478539.51' WHERE source_name='4FGL J1959.1-4247' and cadence='daily' and bin_id='1010'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/466460

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/466460/ft1_4FGL_J1959.1-4247_daily_bin1010.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/466460/ft2_4FGL_J1959.1-4247_daily_bin1010.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/466460/ft1_4FGL_J1959.1-4247_daily_bin1010.fits outfile=/scratch/kocevski/466460/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1010.fits ra=299.796 dec=-42.7852 rad=12.0 tmin=501120001.0 tmax=501379201.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.50
user 3.30
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/466460/ft2_4FGL_J1959.1-4247_daily_bin1010.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/466460/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1010.fits evtable="EVENTS" outfile="/scratch/kocevski/466460/ft1_filtered_4FGL_J1959.1-4247_daily_bin1010.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/466460/ft1_filtered_4FGL_J1959.1-4247_daily_bin1010.fits" evtable="EVENTS" scfile=/scratch/kocevski/466460/ft2_4FGL_J1959.1-4247_daily_bin1010.fits sctable="SC_DATA" outfile=/scratch/kocevski/466460/ltcube_501120001_501379201_4FGL_J1959.1-4247_daily_bin1010.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/466460/ft2_4FGL_J1959.1-4247_daily_bin1010.fits
.....................!
real 11.93
user 11.58
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/466460/ft1_filtered_4FGL_J1959.1-4247_daily_bin1010.fits evtable="EVENTS" scfile=/scratch/kocevski/466460/ft2_4FGL_J1959.1-4247_daily_bin1010.fits sctable="SC_DATA" expcube=/scratch/kocevski/466460/ltcube_501120001_501379201_4FGL_J1959.1-4247_daily_bin1010.fits outfile=/scratch/kocevski/466460/expmap_501120001_501379201_4FGL_J1959.1-4247_daily_bin1010.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/466460/ltcube_501120001_501379201_4FGL_J1959.1-4247_daily_bin1010.fits
.....................!
real 192.14
user 186.79
sys 5.03

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/466460/ft1_filtered_4FGL_J1959.1-4247_daily_bin1010.fits scfile=/scratch/kocevski/466460/ft2_4FGL_J1959.1-4247_daily_bin1010.fits outfile=/scratch/kocevski/466460/cmap_501120001_501379201_4FGL_J1959.1-4247_daily_bin1010.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/466460/ft1_filtered_4FGL_J1959.1-4247_daily_bin1010.fits scfile=/scratch/kocevski/466460/ft2_4FGL_J1959.1-4247_daily_bin1010.fits outfile=/scratch/kocevski/466460/cmap_HighResolution_501120001_501379201_4FGL_J1959.1-4247_daily_bin1010.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/466460/ft1_filtered_4FGL_J1959.1-4247_daily_bin1010.fits evtable="EVENTS" scfile=/scratch/kocevski/466460/ft2_4FGL_J1959.1-4247_daily_bin1010.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/466460/Model_4FGL_J1959.1-4247_daily_bin1010.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/466460/ft1_filtered_4FGL_J1959.1-4247_daily_bin1010.fits.....................!
real 73.43
user 72.08
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12179E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.4903       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    24.509       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.328       1.0000         .10000E-03   10000.    
     9 'norm      '    .54598       1.0000         .10000E-03   10000.    
    10 'norm      '    15.450       1.0000         .10000E-03   10000.    
    11 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10089E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10108E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    10.349       1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.592       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.1080       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.6531       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92581       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=   8377.820     FROM MIGRAD    STATUS=CONVERGED    453 CALLS     2226 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10017E-03    4.2179       -.16983E-05** at limit **
   2  norm          2.4907        2.7451       -.30735E-06   -.64028E-03
   3  Prefactor     .10000E-03    64.883       -.22703E-04** at limit **
   4  Prefactor     .10000E-03    8.1859       -.54805E-06** at limit **
   5  Prefactor     .10000E-03    12.624       -.10691E-04** at limit **
   6  Prefactor     .10000E-03    4.3809       -.41326E-06** at limit **
   7  norm          24.509        24.500        .65239E-07    .91520E-05
   8  Prefactor     13.328        7.5510       -.25531E-06   -.41164E-04
   9  norm          .54581        .96513       -.61735E-06   -.27231E-02
  10  norm          15.450        9.8358       -.90322E-07    .15586E-04
  11  norm          .10000E-03    11.399        .54907E-05** at limit **
  12  norm          .10000E-03    .96191        .89466E-08** at limit **
  13  Prefactor     .10000E-03    43.552        .30119E-04** at limit **
  14  norm          .10000E-03    1.9359       -.10444E-06** at limit **
  15  norm          .10000E-03    16.286        .11729E-04** at limit **
  16  norm          10.350        17.660        .45181E-05    .10464E-04
  17  Prefactor     28.570        39.017       -.23621E-04   -.10677E-05
  18  Prefactor     .10000E-03    23.708       -.68290E-05** at limit **
  19  norm          3.1077        2.0780       -.10199E-06   -.21464E-03
  20  Normalizat    1.6535        .25451        .24762E-05   -.29290E-05
  21  Prefactor     .92567        .92737E-01    .89081E-07    .31945E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100173
  norm       = 2.4907
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 24.5093
  Prefactor  = 13.3277
  norm       = 0.545807
  norm       = 15.4501
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 10.3502
  Prefactor  = 28.5704
  Prefactor  = 0.0001
  norm       = 3.10766
  Normalizat = 1.65347
  Prefactor  = 0.92567
 **********
 **   18 **HESSE 
 **********

 FCN=   8377.820     FROM HESSE     STATUS=OK           319 CALLS     2545 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10017E-03    25.977        .36269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.4907        2.7452        .15374E-03   -1.5392    
   3  Prefactor     .10000E-03    64.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.3126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.3960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          24.509        24.516        .80914E-04   -1.4717    
   8  Prefactor     13.328        7.5505        .10972E-03   -1.4978    
   9  norm          .54581        .88566        .11480E-02   -1.5560    
  10  norm          15.450        9.8315        .10190E-03   -1.4922    
  11  norm          .10000E-03    11.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.6512        .17418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    43.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.9506        .12433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    16.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.350        17.646        .12455E-03   -1.5064    
  17  Prefactor     28.570        39.016        .74925E-04   -1.4638    
  18  Prefactor     .10000E-03    23.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.1077        2.0808        .10391E-03   -1.5355    
  20  Normalizat    1.6535        .29570        .37366E-03   -.73552    
  21  Prefactor     .92567        .10785        .17479E-03   -.95250    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.6773e-09
Minuit parameter uncertainties:
  1  0.00423736
  2  2.74529
  3  9.83488e-07
  4  2.30954e-05
  5  5.71872e-06
  6  1.32022e-06
  7  24.5257
  8  7.55102
  9  0.885678
  10  9.83252
  11  3.67761e-06
  12  2.39225e-05
  13  5.49171e-05
  14  4.33162e-06
  15  0.000133749
  16  17.6551
  17  39.0505
  18  6.03564e-05
  19  2.08085
  20  0.296017
  21  0.107874
Done.

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

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.545e+01  9.833e+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:  9.257e-01  1.079e-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:  1.653e+00  2.960e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.96
Ra Dec: 299.796 -42.785
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 6.66e-08 +/- 4.23e-08
Energy Flux (Fixed Index): 2.39e-05 +/- 1.52e-05

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) = 8377.68392518
delta logL = 0.136025167969

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8377.67493593
delta logL = 0.145014414196

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.274       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7870       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6102       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93419       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=   8377.675     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      295 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.274        10.854        .10994E-03   -.88104E-04
   2  alpha         2.7871        .93715        .16789E-01    .26510E-03
   3  Normalizat    1.6102        .30006        .37745E-03    .48372E-04
   4  Prefactor     .93418        .10665        .17403E-03    .16694E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.2744
  alpha      = 2.78711
  Normalizat = 1.61022
  Prefactor  = 0.934176
 **********
 **   18 **HESSE 
 **********

 FCN=   8377.675     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.274        10.121        .43976E-05   -1.4979    
   2  alpha         2.7871        .87562        .33577E-02    .11510    
   3  Normalizat    1.6102        .29916        .15098E-04   -.74727    
   4  Prefactor     .93418        .10655        .34807E-04   -.94957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83357e-11
Minuit parameter uncertainties:
  1  10.1224
  2  0.894858
  3  0.299495
  4  0.106571
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/466460': 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) = 8377.67493589
delta logL = 0.145014459114

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.327e+01  1.012e+01  1.000e-04  1.000e+04 ( 1.000e-12)
376        alpha:  2.787e+00  8.949e-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.342e-01  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:  1.610e+00  2.995e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.28
Ra Dec: 299.796 -42.785
Photon Index (Free Index): 2.79 +/- 0.89
Photon Flux (Free Index): 1.03e-07 +/- 8.32e-08
Energy Flux (Free Index): 2.50e-05 +/- 1.39e-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/466460/cmap_HighResolution_501120001_501379201_4FGL_J1959.1-4247_daily_bin1010.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.66e-08', energy_flux2='2.50e-05', photon_flux_error='4.23e-08', dlogl='1.45e-01', energy_flux='2.39e-05', photon_flux2='1.03e-07', job_status='DONE', time_completed='2021-09-24 03:27:23.651501', photon_index_error2='0.89', photon_index2='2.79', ts='5.96', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.39e-05', EG='1.65', time_epoch_completed='1632479243.65', return_code='0', job_id='466460', GAL2='0.93', EG2='1.61', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='8.32e-08', ts2='6.28', photon_index='2.27' WHERE bin_id='1010' AND source_name='4FGL J1959.1-4247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 03:27:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 466460: <4FGL_J1959.1-4247_daily_bin1010> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1959.1-4247_daily_bin1010 299.796 -42.7852 501120001 501379201 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 :                                   704.08 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             317.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            932 sec.

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

