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


Performing analysis on: 4FGL_J1959.1-4247_daily_bin1772
RA = 299.796, Dec = -42.7852
tmin = 698630401, tmax = 698889601
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='648570', job_status='RUN', time_executed='2023-02-24 02:42:10.021956', time_epoch_executed='1677235330.02' WHERE source_name='4FGL J1959.1-4247' and cadence='daily' and bin_id='1772'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/648570

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/648570/ft1_4FGL_J1959.1-4247_daily_bin1772.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/648570/ft2_4FGL_J1959.1-4247_daily_bin1772.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/648570/ft1_4FGL_J1959.1-4247_daily_bin1772.fits outfile=/scratch/kocevski/648570/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1772.fits ra=299.796 dec=-42.7852 rad=12.0 tmin=698630401.0 tmax=698889601.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.03
user 2.81
sys 0.21

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

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

Number of photons that the gtmktime cut: 630

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/648570/ft1_filtered_4FGL_J1959.1-4247_daily_bin1772.fits" evtable="EVENTS" scfile=/scratch/kocevski/648570/ft2_4FGL_J1959.1-4247_daily_bin1772.fits sctable="SC_DATA" outfile=/scratch/kocevski/648570/ltcube_698630401_698889601_4FGL_J1959.1-4247_daily_bin1772.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/648570/ft2_4FGL_J1959.1-4247_daily_bin1772.fits
.....................!
real 12.50
user 12.15
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/648570/ft1_filtered_4FGL_J1959.1-4247_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/648570/ft2_4FGL_J1959.1-4247_daily_bin1772.fits sctable="SC_DATA" expcube=/scratch/kocevski/648570/ltcube_698630401_698889601_4FGL_J1959.1-4247_daily_bin1772.fits outfile=/scratch/kocevski/648570/expmap_698630401_698889601_4FGL_J1959.1-4247_daily_bin1772.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/648570/ltcube_698630401_698889601_4FGL_J1959.1-4247_daily_bin1772.fits
.....................!
real 190.56
user 185.17
sys 5.07

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/648570/ft1_filtered_4FGL_J1959.1-4247_daily_bin1772.fits scfile=/scratch/kocevski/648570/ft2_4FGL_J1959.1-4247_daily_bin1772.fits outfile=/scratch/kocevski/648570/cmap_698630401_698889601_4FGL_J1959.1-4247_daily_bin1772.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/648570/ft1_filtered_4FGL_J1959.1-4247_daily_bin1772.fits scfile=/scratch/kocevski/648570/ft2_4FGL_J1959.1-4247_daily_bin1772.fits outfile=/scratch/kocevski/648570/cmap_HighResolution_698630401_698889601_4FGL_J1959.1-4247_daily_bin1772.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=299.796 yref=-42.7852 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/648570/ft1_filtered_4FGL_J1959.1-4247_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/648570/ft2_4FGL_J1959.1-4247_daily_bin1772.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/648570/Model_4FGL_J1959.1-4247_daily_bin1772.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/648570/ft1_filtered_4FGL_J1959.1-4247_daily_bin1772.fits.....................!
real 61.31
user 59.94
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1602       1.0000          .0000       .10000E+07
     2 'norm      '     .0000       1.0000          .0000       .10000E+07
     3 'Prefactor '    .37057E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    20.713       1.0000          .0000       .10000E+07
     5 'Prefactor '    .52026E-02   1.0000          .0000       .10000E+07
     6 'norm      '    .55605       1.0000          .0000       .10000E+07
     7 'Prefactor '    2.3845       1.0000          .0000       .10000E+07
     8 'norm      '    10.481       1.0000          .0000       .10000E+07
     9 'norm      '    .10429E-01   1.0000          .0000       .10000E+07
    10 'norm      '    12.289       1.0000          .0000       .10000E+07
    11 'norm      '    4.9047       1.0000          .0000       .10000E+07
    12 'norm      '    11.223       1.0000          .0000       .10000E+07
    13 'norm      '    .34591E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .43768       1.0000          .0000       .10000E+07
    15 'Prefactor '    25.766       1.0000          .0000       .10000E+07
    16 'norm      '    .81884E-03   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.5983       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .71124       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=   6665.504     FROM MIGRAD    STATUS=CONVERGED    150 CALLS     1338 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.0749        5.9118        .54047E-06    .83819E-03
   2  norm           .0000        .90076       -.41858E-06** at limit **
   3  Prefactor      .0000        1.8419       -.13337E-05** at limit **
   4  Prefactor     20.645        26.582        .55478E-05   -.54345E-02
   5  Prefactor     .55511E-10    7.0674        .12928E-05** at limit **
   6  norm           .0000        78.230       -.46902E-05** at limit **
   7  Prefactor     2.3298        7.6447       -.24407E-06   -.41792E-03
   8  norm          10.483        2.1179        .21046E-07    .71049E-03
   9  norm          .27756E-09    12.814        .10288E-05** at limit **
  10  norm          12.102        4.4457       -.13357E-05   -.26660E-01
  11  norm          4.9048        2.1896        .13069E-06    .17742E-02
  12  norm          11.228        6.0831        .45760E-06    .25804E-02
  13  norm           .0000        7.4589        .71231E-06** at limit **
  14  norm           .0000        56.963       -.33722E-05** at limit **
  15  Prefactor     22.119        191.55       -.20188E-04    .61664E-03
  16  norm           .0000        4.1186        .68150E-06** at limit **
  17  Normalizat    1.5994        .32638       -.29176E-06   -.11186E-05
  18  Prefactor     .71164        .10688       -.10533E-04   -.47134E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.07486
  norm       = 0
  Prefactor  = 0
  Prefactor  = 20.6453
  Prefactor  = 5.55112e-11
  norm       = 0
  Prefactor  = 2.32983
  norm       = 10.4831
  norm       = 2.77556e-10
  norm       = 12.1024
  norm       = 4.90484
  norm       = 11.2281
  norm       = 0
  norm       = 0
  Prefactor  = 22.1186
  norm       = 0
  Normalizat = 1.59943
  Prefactor  = 0.711637
 **********
 **   18 **HESSE 
 **********

 FCN=   6665.504     FROM HESSE     STATUS=OK           282 CALLS     1620 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.0749        5.9019        .37463E-03   -1.5655    
   2  norm           .0000        .89763        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        1.8468        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.645        27.125        .21979E-03   -1.5617    
   5  Prefactor     .55511E-10    7.0600        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        77.324        .73261E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.3298        7.6981        .66305E-03   -1.5677    
   8  norm          10.483        2.1159        .30924E-03   -1.5643    
   9  norm          .27756E-09    12.778        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          12.102        21.782        .28550E-03   -1.5638    
  11  norm          4.9048        2.1875        .45393E-03   -1.5664    
  12  norm          11.228        6.1489        .29880E-03   -1.5641    
  13  norm           .0000        7.4620        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        55.638        .85245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     22.119        190.83        .19704E-03   -1.5614    
  16  norm           .0000        4.0797        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.5994        .27927        .81076E-01   -.75021    
  18  Prefactor     .71164        .90843E-01    .42551E-01   -1.0307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05031e-07
Minuit parameter uncertainties:
  1  5.90192
  2  3.51133e-06
  3  1.06018e-05
  4  27.125
  5  3.66791e-05
  6  2.63025e-05
  7  7.6981
  8  2.1159
  9  0.000119039
  10  21.7825
  11  2.18746
  12  6.14895
  13  1.84291e-05
  14  5.70499e-05
  15  129.941
  16  7.46824e-06
  17  0.279539
  18  0.0908616
Done.

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

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  2.776e-10  1.190e-04  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:  7.116e-01  9.086e-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.599e+00  2.795e-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: 9.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.43e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/648570/likelihoodResults_698630401_698889601_4FGL_J1959.1-4247_daily_bin1772.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) = 6665.54586422
delta logL = -0.0415762160883

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6665.5042928
delta logL = -4.79258505948e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11257E-03   1.0000          .0000       .10000E+07
     2 'alpha     '    2.0904       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6000       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71149       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6665.504     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      191 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        18.759        .42118E-03** at limit **
   2  alpha         1.7449        .96900       -.79741E-03     .0000    
   3  Normalizat    1.5994        1.0405        .41516E-04    .18266E-03
   4  Prefactor     .71164        1.0613        .14549E-04    .65676E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 1.74492
  Normalizat = 1.59943
  Prefactor  = 0.711639
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6665.504     FROM HESSE     STATUS=FAILED         9 CALLS      200 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        18.759        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .67756        1.1326       -.79741E-03   -.30682    
   3  Normalizat    1.5994        1.0405        .41516E-04   -.75021    
   4  Prefactor     .71164        1.0613        .14549E-04   -1.0307    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.44687e-10
Minuit parameter uncertainties:
  1  1.25154e-05
  2  0.997909
  3  1.05512
  4  1.09406
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/648570': 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): 101
logL (Free Index) = 6665.50428801
delta logL = -1.1277734302e-10

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  0.000e+00  1.252e-05  0.000e+00  1.000e+06 ( 1.000e-12)
376        alpha:  1.745e+00  9.979e-01  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:  7.116e-01  1.094e+00  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.599e+00  1.055e+00  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/648570/cmap_HighResolution_698630401_698889601_4FGL_J1959.1-4247_daily_bin1772.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.43e-05', job_status='DONE', photon_flux_upper_limit='9.55e-08', time_completed='2023-02-24 02:51:25.459849', job_id='648570', GAL2='0.71', fit_tolerance='1e-08', EG2='1.60', EG='1.60', time_epoch_completed='1677235885.46', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='-1.13e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1772' AND source_name='4FGL J1959.1-4247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb 24 02:51:25 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 648570: <4FGL_J1959.1-4247_daily_bin1772> in cluster <slac> Done

Job <4FGL_J1959.1-4247_daily_bin1772> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Feb 24 02:40:13 2023
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb 24 02:40:15 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb 24 02:40:15 2023
Terminated at Fri Feb 24 02:51:26 2023
Results reported at Fri Feb 24 02:51:26 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1959.1-4247_daily_bin1772 299.796 -42.7852 698630401 698889601 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 :                                   557.03 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             272.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   670 sec.
    Turnaround time :                            673 sec.

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

