aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 52 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7481
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1959.1-4247_daily_bin1717
RA = 299.796, Dec = -42.7852
tmin = 684374401, tmax = 684633601
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='216463', job_status='RUN', time_executed='2022-09-16 22:22:24.253528', time_epoch_executed='1663392144.25' WHERE source_name='4FGL J1959.1-4247' and cadence='daily' and bin_id='1717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/216463

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/216463/ft1_4FGL_J1959.1-4247_daily_bin1717.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/216463/ft2_4FGL_J1959.1-4247_daily_bin1717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/216463/ft1_4FGL_J1959.1-4247_daily_bin1717.fits outfile=/scratch/kocevski/216463/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1717.fits ra=299.796 dec=-42.7852 rad=12.0 tmin=684374401.0 tmax=684633601.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 5.04
user 4.78
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/216463/ft2_4FGL_J1959.1-4247_daily_bin1717.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/216463/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1717.fits evtable="EVENTS" outfile="/scratch/kocevski/216463/ft1_filtered_4FGL_J1959.1-4247_daily_bin1717.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.53
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 1005

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/216463/ft1_filtered_4FGL_J1959.1-4247_daily_bin1717.fits" evtable="EVENTS" scfile=/scratch/kocevski/216463/ft2_4FGL_J1959.1-4247_daily_bin1717.fits sctable="SC_DATA" outfile=/scratch/kocevski/216463/ltcube_684374401_684633601_4FGL_J1959.1-4247_daily_bin1717.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/216463/ft2_4FGL_J1959.1-4247_daily_bin1717.fits
.....................!
real 12.56
user 12.13
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/216463/ft1_filtered_4FGL_J1959.1-4247_daily_bin1717.fits evtable="EVENTS" scfile=/scratch/kocevski/216463/ft2_4FGL_J1959.1-4247_daily_bin1717.fits sctable="SC_DATA" expcube=/scratch/kocevski/216463/ltcube_684374401_684633601_4FGL_J1959.1-4247_daily_bin1717.fits outfile=/scratch/kocevski/216463/expmap_684374401_684633601_4FGL_J1959.1-4247_daily_bin1717.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/216463/ltcube_684374401_684633601_4FGL_J1959.1-4247_daily_bin1717.fits
.....................!
real 192.59
user 185.94
sys 5.33

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/216463/ft1_filtered_4FGL_J1959.1-4247_daily_bin1717.fits scfile=/scratch/kocevski/216463/ft2_4FGL_J1959.1-4247_daily_bin1717.fits outfile=/scratch/kocevski/216463/cmap_684374401_684633601_4FGL_J1959.1-4247_daily_bin1717.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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/216463/ft1_filtered_4FGL_J1959.1-4247_daily_bin1717.fits scfile=/scratch/kocevski/216463/ft2_4FGL_J1959.1-4247_daily_bin1717.fits outfile=/scratch/kocevski/216463/cmap_HighResolution_684374401_684633601_4FGL_J1959.1-4247_daily_bin1717.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/216463/ft1_filtered_4FGL_J1959.1-4247_daily_bin1717.fits evtable="EVENTS" scfile=/scratch/kocevski/216463/ft2_4FGL_J1959.1-4247_daily_bin1717.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/216463/Model_4FGL_J1959.1-4247_daily_bin1717.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/216463/ft1_filtered_4FGL_J1959.1-4247_daily_bin1717.fits.....................!
real 84.80
user 82.86
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/216463/ft1_filtered_4FGL_J1959.1-4247_daily_bin1717.fits', '/scratch/kocevski/216463/ft2_4FGL_J1959.1-4247_daily_bin1717.fits', expMap='/scratch/kocevski/216463/expmap_684374401_684633601_4FGL_J1959.1-4247_daily_bin1717.fits', expCube='/scratch/kocevski/216463/ltcube_684374401_684633601_4FGL_J1959.1-4247_daily_bin1717.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/216463/Model_4FGL_J1959.1-4247_daily_bin1717.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  0.000e+00  1.000e+06 ( 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 -5.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/216463/ft1_filtered_4FGL_J1959.1-4247_daily_bin1717.fits
Spacecraft file(s): /scratch/kocevski/216463/ft2_4FGL_J1959.1-4247_daily_bin1717.fits
Exposure map: /scratch/kocevski/216463/expmap_684374401_684633601_4FGL_J1959.1-4247_daily_bin1717.fits
Exposure cube: /scratch/kocevski/216463/ltcube_684374401_684633601_4FGL_J1959.1-4247_daily_bin1717.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/216463/Model_4FGL_J1959.1-4247_daily_bin1717.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) = 10394.534099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .72434E-05   1.0000          .0000       .10000E+07
     2 'norm      '    2.1953       1.0000          .0000       .10000E+07
     3 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
     4 'Prefactor '     .0000       1.0000          .0000       .10000E+07
     5 'Prefactor '    .28533E-07   1.0000          .0000       .10000E+07
     6 'norm      '    13.333       1.0000          .0000       .10000E+07
     7 'Prefactor '    1.0979       1.0000          .0000       .10000E+07
     8 'norm      '    10.922       1.0000          .0000       .10000E+07
     9 'norm      '    .55511E-10   1.0000          .0000       .10000E+07
    10 'norm      '    .61062E-09   1.0000          .0000       .10000E+07
    11 'norm      '    1.3857       1.0000          .0000       .10000E+07
    12 'norm      '    .12879E-06   1.0000          .0000       .10000E+07
    13 'norm      '    .19135E-06   1.0000          .0000       .10000E+07
    14 'norm      '    10.419       1.0000          .0000       .10000E+07
    15 'Prefactor '    .22760E-08   1.0000          .0000       .10000E+07
    16 'norm      '    1.1665       1.0000          .0000       .10000E+07
    17 'Normalizat'    1.4478       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .91785       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6700E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10394.41     FROM MIGRAD    STATUS=CONVERGED    109 CALLS     1303 TOTAL
                     EDM=   .37E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21594E-07    7.3947        .35053E-06** at limit **
   2  norm          2.1952        2.0372        .70743E-07   -.90284E-03
   3  Prefactor     .55511E-10    2.0773        .12839E-06** at limit **
   4  Prefactor     .44409E-09    5.1779        .85454E-07** at limit **
   5  Prefactor     .20262E-07    5.0082        .31611E-06** at limit **
   6  norm          13.332        1.2639        .18159E-08    .53536E-02
   7  Prefactor     1.0998        5.4691        .16569E-06   -.28438E-03
   8  norm          10.922        1.7460       -.33972E-08    .44305E-03
   9  norm          .22204E-09    4.1554        .91844E-07** at limit **
  10  norm          .35694E-07    4.9876        .22045E-06** at limit **
  11  norm          1.3858        1.1576       -.16276E-07    .21843E-03
  12  norm          .31031E-07    6.2882        .17797E-06** at limit **
  13  norm          .20373E-07    7.3694        .19289E-06** at limit **
  14  norm          10.417        1.0508       -.71164E-09   -.14607E-02
  15  Prefactor     .27756E-09    20.125        .41920E-06** at limit **
  16  norm          1.1666        1.2962       -.42825E-07    .66412E-03
  17  Normalizat    1.4477        .25621        .92456E-07   -.29318E-04
  18  Prefactor     .91789        .97094E-01   -.15128E-05   -.66391E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.15938e-08
  norm       = 2.19519
  Prefactor  = 5.55112e-11
  Prefactor  = 4.44089e-10
  Prefactor  = 2.02616e-08
  norm       = 13.3324
  Prefactor  = 1.09977
  norm       = 10.9223
  norm       = 2.22045e-10
  norm       = 3.56937e-08
  norm       = 1.38576
  norm       = 3.10307e-08
  norm       = 2.03726e-08
  norm       = 10.4169
  Prefactor  = 2.77556e-10
  norm       = 1.16658
  Normalizat = 1.44766
  Prefactor  = 0.917888
 **********
 **   18 **HESSE 
 **********

 FCN=   10394.41     FROM HESSE     STATUS=OK           280 CALLS     1583 TOTAL
                     EDM=   .56E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21594E-07    12.283        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.1952        2.0336        .69424E-03   -1.5678    
   3  Prefactor     .55511E-10    2.0837        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .44409E-09    5.2178        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .20262E-07    11.744        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          13.332        13.187        .27406E-03   -1.5635    
   7  Prefactor     1.0998        5.3641        .11355E-02   -1.5687    
   8  norm          10.922        1.7483        .30290E-03   -1.5642    
   9  norm          .22204E-09    4.1736        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .35694E-07    8.3723        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.3858        1.1504        .92350E-03   -1.5684    
  12  norm          .31031E-07    8.8844        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .20373E-07    10.217        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.417        13.821        .31016E-03   -1.5643    
  15  Prefactor     .27756E-09    20.138        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.1666        1.3272        .10638E-02   -1.5686    
  17  Normalizat    1.4477        .21871        .84512E-01   -.79260    
  18  Prefactor     .91789        .82682E-01    .45232E-01   -.95519    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6147e-06
Minuit parameter uncertainties:
  1  0.00102956
  2  2.0336
  3  2.38483e-05
  4  9.73495e-05
  5  0.000976197
  6  13.1873
  7  4.8577
  8  1.7483
  9  5.80838e-05
  10  0.00109303
  11  1.15044
  12  0.00105001
  13  0.000912611
  14  13.8208
  15  0.000148802
  16  1.32717
  17  0.218857
  18  0.0826933
Done.

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

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  2.220e-10  5.808e-05  0.000e+00  1.000e+06 ( 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 -5.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.179e-01  8.269e-02  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.448e+00  2.189e-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: 6.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.39e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/216463/likelihoodResults_684374401_684633601_4FGL_J1959.1-4247_daily_bin1717.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) = 10394.5270578
delta logL = -0.117625541723

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10394.4017269
delta logL = 0.00770542007012

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19692       1.0000          .0000       .10000E+07
     2 'alpha     '    4.0315       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4382       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91955       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6700E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   10394.40     FROM MIGRAD    STATUS=FAILED       106 CALLS      265 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19158        24.083        .14784E-03** at limit **
   2  alpha         4.0275        2.6475        .16269E-01   -.43884E-06
   3  Normalizat    1.4386        .27525        .37511E-03   -.43765E-04
   4  Prefactor     .91945        .97677E-01    .17176E-03   -.60206E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10394.40     FROM SIMPLEX   STATUS=UNCHANGED     80 CALLS      345 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19158        24.083        .19840E-04   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         4.0275        2.6475        .72778E-02    .65733    
   3  Normalizat    1.4386        .27525        .35580E-03   -.79520    
   4  Prefactor     .91945        .97677E-01    .15720E-03   -.95465    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10394.40     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      378 TOTAL
                     EDM=   .36E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19158        5.0503        .29568E-04** at limit **
   2  alpha         4.0275        4.5070        .65076E-03   -.55205E-06
   3  Normalizat    1.4386        .26457        .15004E-04   -.43946E-04
   4  Prefactor     .91945        .97140E-01    .34352E-04   -.60365E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.191577
  alpha      = 4.02752
  Normalizat = 1.43856
  Prefactor  = 0.919453
 **********
 **   18 **HESSE 
 **********

 FCN=   10394.40     FROM HESSE     STATUS=OK            25 CALLS      403 TOTAL
                     EDM=   .35E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19158        4.5751        .11827E-05   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         4.0275        4.4881        .13015E-03    .65733    
   3  Normalizat    1.4386        .26436        .30009E-05   -.79520    
   4  Prefactor     .91945        .97139E-01    .68704E-05   -.95465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54825e-12
Minuit parameter uncertainties:
  1  1.87241
  2  4.00784
  3  0.26461
  4  0.0971574
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/216463': 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) = 10394.4017176
delta logL = 0.00771472835004

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.916e-01  1.872e+00  0.000e+00  1.000e+06 ( 1.000e-12)
376        alpha:  4.028e+00  4.008e+00  0.000e+00  5.000e+00 ( 1.000e+00)
377         beta:  1.642e-01  0.000e+00 -5.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.195e-01  9.716e-02  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.439e+00  2.646e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/216463/cmap_HighResolution_684374401_684633601_4FGL_J1959.1-4247_daily_bin1717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.39e-05', job_status='DONE', photon_flux_upper_limit='6.65e-08', time_completed='2022-09-16 22:34:38.180788', job_id='216463', GAL2='0.92', fit_tolerance='1e-08', EG2='1.44', EG='1.45', time_epoch_completed='1663392878.18', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='7.71e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1717' AND source_name='4FGL J1959.1-4247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 22:34:38 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 216463: <4FGL_J1959.1-4247_daily_bin1717> in cluster <slac> Done

Job <4FGL_J1959.1-4247_daily_bin1717> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 22:20:17 2022
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 22:21:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 22:21:22 2022
Terminated at Fri Sep 16 22:34:39 2022
Results reported at Fri Sep 16 22:34:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1959.1-4247_daily_bin1717 299.796 -42.7852 684374401 684633601 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 :                                   732.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             327.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            862 sec.

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

