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


Performing analysis on: 4FGL_J1959.1-4247_daily_bin1042
RA = 299.796, Dec = -42.7852
tmin = 509414401, tmax = 509673601
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='467770', job_status='RUN', time_executed='2021-09-24 03:17:29.738581', time_epoch_executed='1632478649.74' WHERE source_name='4FGL J1959.1-4247' and cadence='daily' and bin_id='1042'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/467770

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/467770/ft1_4FGL_J1959.1-4247_daily_bin1042.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/467770/ft2_4FGL_J1959.1-4247_daily_bin1042.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/467770/ft1_4FGL_J1959.1-4247_daily_bin1042.fits outfile=/scratch/kocevski/467770/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1042.fits ra=299.796 dec=-42.7852 rad=12.0 tmin=509414401.0 tmax=509673601.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.70
user 3.48
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/467770/ft1_filtered_4FGL_J1959.1-4247_daily_bin1042.fits" evtable="EVENTS" scfile=/scratch/kocevski/467770/ft2_4FGL_J1959.1-4247_daily_bin1042.fits sctable="SC_DATA" outfile=/scratch/kocevski/467770/ltcube_509414401_509673601_4FGL_J1959.1-4247_daily_bin1042.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/467770/ft2_4FGL_J1959.1-4247_daily_bin1042.fits
.....................!
real 11.92
user 11.56
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/467770/ft1_filtered_4FGL_J1959.1-4247_daily_bin1042.fits evtable="EVENTS" scfile=/scratch/kocevski/467770/ft2_4FGL_J1959.1-4247_daily_bin1042.fits sctable="SC_DATA" expcube=/scratch/kocevski/467770/ltcube_509414401_509673601_4FGL_J1959.1-4247_daily_bin1042.fits outfile=/scratch/kocevski/467770/expmap_509414401_509673601_4FGL_J1959.1-4247_daily_bin1042.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/467770/ltcube_509414401_509673601_4FGL_J1959.1-4247_daily_bin1042.fits
.....................!
real 189.62
user 185.11
sys 4.12

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/467770/ft1_filtered_4FGL_J1959.1-4247_daily_bin1042.fits scfile=/scratch/kocevski/467770/ft2_4FGL_J1959.1-4247_daily_bin1042.fits outfile=/scratch/kocevski/467770/cmap_509414401_509673601_4FGL_J1959.1-4247_daily_bin1042.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/467770/ft1_filtered_4FGL_J1959.1-4247_daily_bin1042.fits scfile=/scratch/kocevski/467770/ft2_4FGL_J1959.1-4247_daily_bin1042.fits outfile=/scratch/kocevski/467770/cmap_HighResolution_509414401_509673601_4FGL_J1959.1-4247_daily_bin1042.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    101.39       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.754       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.1532       1.0000         .10000E-03   10000.    
     9 'norm      '    .13494       1.0000         .10000E-03   10000.    
    10 'norm      '    .15389E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    10.981       1.0000         .10000E-03   10000.    
    12 'norm      '    1.2661       1.0000         .10000E-03   10000.    
    13 'Prefactor '    60.084       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .11606E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.113       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10271E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.3236       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.5352       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .84256       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=   7441.455     FROM MIGRAD    STATUS=CONVERGED    455 CALLS     2208 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.6715        .62669E-07** at limit **
   2  norm          .10000E-03    .60688       -.46066E-07** at limit **
   3  Prefactor     101.38        107.98        .23149E-05   -.59034E-05
   4  Prefactor     .10000E-03    4.7448       -.21496E-06** at limit **
   5  Prefactor     12.753        15.492        .64937E-07   -.14461E-04
   6  Prefactor     .10000E-03    5.9663       -.54506E-07** at limit **
   7  norm          .10000E-03    7.9841       -.10775E-07** at limit **
   8  Prefactor     7.1527        8.0663       -.51668E-06   -.74588E-06
   9  norm          .12986        .63677        .18420E-06   -.18000E-02
  10  norm          .10000E-03    64.511        .18296E-04** at limit **
  11  norm          10.962        21.112       -.53093E-05   -.22202E-03
  12  norm          1.2661        1.3707       -.14368E-06    .16028E-03
  13  Prefactor     60.043        56.610        .38582E-05    .82525E-05
  14  norm          .10000E-03    .82322        .10252E-06** at limit **
  15  norm          .10000E-03    10.781        .59366E-06** at limit **
  16  norm          .10000E-03    31.047        .82307E-06** at limit **
  17  Prefactor     27.117        26.033        .75370E-06   -.68974E-04
  18  Prefactor     .10000E-03    87.307        .32793E-05** at limit **
  19  norm          1.3229        2.3809       -.19684E-05    .60338E-03
  20  Normalizat    1.5357        .26070       -.13385E-05   -.31906E-03
  21  Prefactor     .84245        .90630E-01   -.36321E-06   -.67928E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 101.378
  Prefactor  = 0.0001
  Prefactor  = 12.7534
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.15267
  norm       = 0.129861
  norm       = 0.0001
  norm       = 10.9617
  norm       = 1.26608
  Prefactor  = 60.0426
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 27.1175
  Prefactor  = 0.0001
  norm       = 1.32291
  Normalizat = 1.53569
  Prefactor  = 0.84245
 **********
 **   18 **HESSE 
 **********

 FCN=   7441.455     FROM HESSE     STATUS=OK           313 CALLS     2521 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6775        .13769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .60872        .65618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     101.38        108.42        .39928E-04   -1.3691    
   4  Prefactor     .10000E-03    4.7729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.753        15.491        .11216E-03   -1.4994    
   6  Prefactor     .10000E-03    6.0026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    7.9873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.1527        8.0475        .14998E-03   -1.5173    
   9  norm          .12986        2.8189        .12672E-02   -1.5636    
  10  norm          .10000E-03    63.645        .46037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.962        20.810        .12090E-03   -1.5046    
  12  norm          1.2661        1.3421        .10205E-03   -1.5483    
  13  Prefactor     60.043        56.924        .25881E-03   -1.4157    
  14  norm          .10000E-03    .82433        .76448E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    10.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    31.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     27.117        26.041        .76937E-04   -1.4666    
  18  Prefactor     .10000E-03    87.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.3229        2.3211        .16652E-03   -1.5478    
  20  Normalizat    1.5357        .30476        .36042E-03   -.76780    
  21  Prefactor     .84245        .10711        .16673E-03   -.98182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17666e-09
Minuit parameter uncertainties:
  1  1.08645e-06
  2  1.33041e-06
  3  108.636
  4  2.59653e-05
  5  15.4963
  6  1.16883e-05
  7  2.14248e-06
  8  8.04877
  9  1.20966
  10  0.000338142
  11  20.8234
  12  1.34212
  13  56.9755
  14  1.95116e-06
  15  8.61883e-06
  16  1.68104e-05
  17  26.0514
  18  0.000318114
  19  2.32127
  20  0.305126
  21  0.107138
Done.

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

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.000e-04  3.381e-04  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.425e-01  1.071e-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.536e+00  3.051e-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.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.57e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/467770/likelihoodResults_509414401_509673601_4FGL_J1959.1-4247_daily_bin1042.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) = 7441.45505836
delta logL = -7.38890021239e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7440.23807749
delta logL = 1.21690697975

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6840       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.4098       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3878       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86901       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=   7440.238     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      342 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6839        39.957        .74580E-04   -.11776E-02
   2  alpha         4.4091        3.7089        .26986E-01   -.13382E-04
   3  Normalizat    1.3879        .28789        .37532E-03    .61126E-04
   4  Prefactor     .86902        .10127        .16428E-03    .14535E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.68394
  alpha      = 4.40912
  Normalizat = 1.38791
  Prefactor  = 0.869023
 **********
 **   18 **HESSE 
 **********

 FCN=   7440.238     FROM HESSE     STATUS=OK            25 CALLS      367 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6839        3.6380        .29832E-05   -1.5448    
   2  alpha         4.4091        1.2045        .10794E-02    .86895    
   3  Normalizat    1.3879        .30500        .15013E-04   -.80979    
   4  Prefactor     .86902        .10607        .32857E-04   -.97232    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51334e-10
Minuit parameter uncertainties:
  1  3.63847
  2  1.3597
  3  0.305399
  4  0.10609
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/467770': 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) = 7440.23807594
delta logL = 1.21690853349

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.684e+00  3.638e+00  1.000e-04  1.000e+04 ( 1.000e-12)
376        alpha:  4.409e+00  1.360e+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:  8.690e-01  1.061e-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.388e+00  3.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.62
Ra Dec: 299.796 -42.785
Photon Index (Free Index): 4.41 +/- 1.36
Photon Flux (Free Index): 1.33e-07 +/- 9.60e-08
Energy Flux (Free Index): 1.98e-05 +/- 1.44e-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/467770/cmap_HighResolution_509414401_509673601_4FGL_J1959.1-4247_daily_bin1042.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.57e-05', comment='SUCCESS', energy_flux2='1.98e-05', dlogl='1.22e+00', photon_flux2='1.33e-07', job_status='DONE', time_completed='2021-09-24 03:29:45.333193', photon_index_error2='1.36', photon_index2='4.41', ts='-0.00', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='1.44e-05', EG='1.54', time_epoch_completed='1632479385.33', return_code='0', job_id='467770', GAL2='0.87', EG2='1.39', return_code2='0', photon_flux_error2='9.60e-08', ts2='2.62', photon_index='2.27' WHERE bin_id='1042' AND source_name='4FGL J1959.1-4247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 03:29:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 467770: <4FGL_J1959.1-4247_daily_bin1042> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1959.1-4247_daily_bin1042 299.796 -42.7852 509414401 509673601 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 :                                   734.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             334.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   747 sec.
    Turnaround time :                            751 sec.

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

