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 150 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_bin1745
RA = 299.796, Dec = -42.7852
tmin = 691632001, tmax = 691891201
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='654028', job_status='RUN', time_executed='2022-12-05 01:12:57.111914', time_epoch_executed='1670231577.11' WHERE source_name='4FGL J1959.1-4247' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/654028

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/654028/ft1_4FGL_J1959.1-4247_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/654028/ft2_4FGL_J1959.1-4247_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/654028/ft1_4FGL_J1959.1-4247_daily_bin1745.fits outfile=/scratch/kocevski/654028/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1745.fits ra=299.796 dec=-42.7852 rad=12.0 tmin=691632001.0 tmax=691891201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.39
user 2.16
sys 0.22

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

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

Number of photons that the gtmktime cut: 704

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/654028/ft1_filtered_4FGL_J1959.1-4247_daily_bin1745.fits" evtable="EVENTS" scfile=/scratch/kocevski/654028/ft2_4FGL_J1959.1-4247_daily_bin1745.fits sctable="SC_DATA" outfile=/scratch/kocevski/654028/ltcube_691632001_691891201_4FGL_J1959.1-4247_daily_bin1745.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/654028/ft2_4FGL_J1959.1-4247_daily_bin1745.fits
.....................!
real 12.28
user 11.88
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/654028/ft1_filtered_4FGL_J1959.1-4247_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/654028/ft2_4FGL_J1959.1-4247_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/654028/ltcube_691632001_691891201_4FGL_J1959.1-4247_daily_bin1745.fits outfile=/scratch/kocevski/654028/expmap_691632001_691891201_4FGL_J1959.1-4247_daily_bin1745.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/654028/ltcube_691632001_691891201_4FGL_J1959.1-4247_daily_bin1745.fits
.....................!
real 191.29
user 185.49
sys 5.45

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/654028/ft1_filtered_4FGL_J1959.1-4247_daily_bin1745.fits scfile=/scratch/kocevski/654028/ft2_4FGL_J1959.1-4247_daily_bin1745.fits outfile=/scratch/kocevski/654028/cmap_691632001_691891201_4FGL_J1959.1-4247_daily_bin1745.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/654028/ft1_filtered_4FGL_J1959.1-4247_daily_bin1745.fits scfile=/scratch/kocevski/654028/ft2_4FGL_J1959.1-4247_daily_bin1745.fits outfile=/scratch/kocevski/654028/cmap_HighResolution_691632001_691891201_4FGL_J1959.1-4247_daily_bin1745.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/654028/ft1_filtered_4FGL_J1959.1-4247_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/654028/ft2_4FGL_J1959.1-4247_daily_bin1745.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/654028/Model_4FGL_J1959.1-4247_daily_bin1745.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/654028/ft1_filtered_4FGL_J1959.1-4247_daily_bin1745.fits.....................!
real 66.27
user 64.79
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .47936E-02   1.0000          .0000       .10000E+07
     2 'norm      '    2.0361       1.0000          .0000       .10000E+07
     3 'Prefactor '    5.8539       1.0000          .0000       .10000E+07
     4 'Prefactor '    17.547       1.0000          .0000       .10000E+07
     5 'Prefactor '    .61563E-03   1.0000          .0000       .10000E+07
     6 'norm      '    23.386       1.0000          .0000       .10000E+07
     7 'Prefactor '    .24664E-03   1.0000          .0000       .10000E+07
     8 'norm      '    20.543       1.0000          .0000       .10000E+07
     9 'norm      '    .14120E-02   1.0000          .0000       .10000E+07
    10 'norm      '    .97311E-06   1.0000          .0000       .10000E+07
    11 'norm      '    .20557E-04   1.0000          .0000       .10000E+07
    12 'norm      '    .17458E-06   1.0000          .0000       .10000E+07
    13 'norm      '    .62900E-02   1.0000          .0000       .10000E+07
    14 'norm      '    5.4658       1.0000          .0000       .10000E+07
    15 'Prefactor '    .65838E-02   1.0000          .0000       .10000E+07
    16 'norm      '    .11430E-04   1.0000          .0000       .10000E+07
    17 'Normalizat'    .86926       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1507       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=   7616.822     FROM MIGRAD    STATUS=CONVERGED    118 CALLS     1055 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .43255E-05    11.137        .31897E-05** at limit **
   2  norm          2.0528        3.7789       -.41961E-06   -.53679E-03
   3  Prefactor     6.0692        1.2309       -.34312E-07   -.82297E-02
   4  Prefactor     16.989        2.3203        .25310E-06   -.10028E-01
   5  Prefactor     .10269E-05    10.150        .46878E-06** at limit **
   6  norm          23.138        1.7123        .33803E-08   -.46464E-03
   7  Prefactor     .66613E-09    4.8679        .57907E-06** at limit **
   8  norm          20.559        2.7555        .21369E-06    .19203E-02
   9  norm          .99338E-05    19.939       -.15501E-06** at limit **
  10  norm          .19318E-07    5.4053       -.10631E-05** at limit **
  11  norm          .55511E-10    4.2781        .21519E-05** at limit **
  12  norm           .0000        .93157       -.33187E-06** at limit **
  13  norm          .19540E-07    6.9629        .10019E-06** at limit **
  14  norm          5.6482        1.2164       -.12202E-06    .49825E-03
  15  Prefactor     .94483E-05    11.861        .26936E-05** at limit **
  16  norm           .0000        2.6659       -.10180E-05** at limit **
  17  Normalizat    .86855        .31052       -.50691E-04   -.60087E-04
  18  Prefactor     1.1506        .12246        .16800E-04   -.10461E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.32548e-06
  norm       = 2.05276
  Prefactor  = 6.06922
  Prefactor  = 16.9893
  Prefactor  = 1.0269e-06
  norm       = 23.1379
  Prefactor  = 6.66134e-10
  norm       = 20.5586
  norm       = 9.93383e-06
  norm       = 1.93179e-08
  norm       = 5.55112e-11
  norm       = 0
  norm       = 1.95399e-08
  norm       = 5.64817
  Prefactor  = 9.44828e-06
  norm       = 0
  Normalizat = 0.86855
  Prefactor  = 1.15064
 **********
 **   18 **HESSE 
 **********

 FCN=   7616.822     FROM HESSE     STATUS=OK           280 CALLS     1335 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .43255E-05    14.696        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.0528        3.7851        .72456E-03   -1.5679    
   3  Prefactor     6.0692        12.852        .41484E-03   -1.5659    
   4  Prefactor     16.989        19.583        .23883E-03   -1.5626    
   5  Prefactor     .10269E-05    10.992        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          23.138        23.205        .20684E-03   -1.5612    
   7  Prefactor     .66613E-09    4.8498        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          20.559        2.7668        .22070E-03   -1.5617    
   9  norm          .99338E-05    27.455        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .19318E-07    5.4306        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .55511E-10    1.1067        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        .93138        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .19540E-07    6.9877        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.6482        21.287        .42955E-03   -1.5660    
  15  Prefactor     .94483E-05    19.766        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        2.6189        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .86855        .28681        .11323       -.97574    
  18  Prefactor     1.1506        .11095        .35916E-01   -.87864    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22049e-06
Minuit parameter uncertainties:
  1  0.0159461
  2  3.78511
  3  12.8518
  4  19.5827
  5  0.00671942
  6  23.205
  7  0.00011367
  8  2.76685
  9  0.0330294
  10  0.000647975
  11  1.26932e-05
  12  1.18473e-06
  13  0.000739496
  14  21.2874
  15  0.0273317
  16  7.58714e-06
  17  0.287318
  18  0.110973
Done.

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

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  9.934e-06  3.303e-02  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:  1.151e+00  1.110e-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:  8.686e-01  2.873e-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.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.33e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/654028/likelihoodResults_691632001_691891201_4FGL_J1959.1-4247_daily_bin1745.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) = 7616.78020827
delta logL = 0.042065318893

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7616.77375249
delta logL = 0.048521102085

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7616.774     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      370 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4084        6.1186        .91282E-03    .13859E-01
   2  alpha         1.3945        1.4620        .47959       -.45704E-04
   3  Normalizat    .87192        .28133        .11303        .28174E-03
   4  Prefactor     1.1481        .10911        .35991E-01    .41825E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.40841
  alpha      = 1.39452
  Normalizat = 0.87192
  Prefactor  = 1.14813
 **********
 **   18 **HESSE 
 **********

 FCN=   7616.774     FROM HESSE     STATUS=OK            31 CALLS      401 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4084        5.1277        .36231E-04   -1.5684    
   2  alpha         1.3945        1.4838        .52122E-01   -.45804    
   3  Normalizat    .87192        .30885        .50125E-03   -.97454    
   4  Prefactor     1.1481        .12024        .17051E-03   -.87943    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.80983e-10
Minuit parameter uncertainties:
  1  5.1277
  2  1.6214
  3  0.309476
  4  0.120273
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/654028': 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) = 7616.77375248
delta logL = 0.0485211079767

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.408e+00  5.128e+00  0.000e+00  1.000e+06 ( 1.000e-12)
376        alpha:  1.395e+00  1.621e+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:  1.148e+00  1.203e-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:  8.719e-01  3.095e-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/654028/cmap_HighResolution_691632001_691891201_4FGL_J1959.1-4247_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.33e-05', job_status='DONE', photon_flux_upper_limit='9.26e-08', time_completed='2022-12-05 01:22:29.552425', job_id='654028', GAL2='1.15', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1670232149.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='4.85e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1745' AND source_name='4FGL J1959.1-4247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 01:22:29 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 654028: <4FGL_J1959.1-4247_daily_bin1745> in cluster <slac> Done

Job <4FGL_J1959.1-4247_daily_bin1745> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Dec  5 01:10:18 2022
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 01:10:19 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 01:10:19 2022
Terminated at Mon Dec  5 01:22:30 2022
Results reported at Mon Dec  5 01:22:30 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1959.1-4247_daily_bin1745 299.796 -42.7852 691632001 691891201 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 :                                   575.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            732 sec.

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

