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


Performing analysis on: 4FGL_J2358.3-1021_daily_bin1735
RA = 359.582, Dec = -10.3616
tmin = 689040001, tmax = 689299201
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='866791', job_status='RUN', time_executed='2022-11-05 00:39:17.280226', time_epoch_executed='1667633957.28' WHERE source_name='4FGL J2358.3-1021' and cadence='daily' and bin_id='1735'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/866791

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/866791/ft1_4FGL_J2358.3-1021_daily_bin1735.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/866791/ft2_4FGL_J2358.3-1021_daily_bin1735.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/866791/ft1_4FGL_J2358.3-1021_daily_bin1735.fits outfile=/scratch/kocevski/866791/ft1_filteredMKT_4FGL_J2358.3-1021_daily_bin1735.fits ra=359.582 dec=-10.3616 rad=12.0 tmin=689040001.0 tmax=689299201.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.63
user 3.40
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/866791/ft2_4FGL_J2358.3-1021_daily_bin1735.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/866791/ft2_4FGL_J2358.3-1021_daily_bin1735.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/866791/ft1_filteredMKT_4FGL_J2358.3-1021_daily_bin1735.fits evtable="EVENTS" outfile="/scratch/kocevski/866791/ft1_filtered_4FGL_J2358.3-1021_daily_bin1735.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.49
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 601

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/866791/ft1_filtered_4FGL_J2358.3-1021_daily_bin1735.fits" evtable="EVENTS" scfile=/scratch/kocevski/866791/ft2_4FGL_J2358.3-1021_daily_bin1735.fits sctable="SC_DATA" outfile=/scratch/kocevski/866791/ltcube_689040001_689299201_4FGL_J2358.3-1021_daily_bin1735.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/866791/ft2_4FGL_J2358.3-1021_daily_bin1735.fits
.....................!
real 12.01
user 11.65
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/866791/ft1_filtered_4FGL_J2358.3-1021_daily_bin1735.fits evtable="EVENTS" scfile=/scratch/kocevski/866791/ft2_4FGL_J2358.3-1021_daily_bin1735.fits sctable="SC_DATA" expcube=/scratch/kocevski/866791/ltcube_689040001_689299201_4FGL_J2358.3-1021_daily_bin1735.fits outfile=/scratch/kocevski/866791/expmap_689040001_689299201_4FGL_J2358.3-1021_daily_bin1735.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/866791/ltcube_689040001_689299201_4FGL_J2358.3-1021_daily_bin1735.fits
.....................!
real 192.52
user 187.08
sys 5.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 174 point sources and 0 extended sources

Setting source of interest to:
4FGL J2358.3-1021 @ 359.582 -10.3616

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/866791/ft1_filtered_4FGL_J2358.3-1021_daily_bin1735.fits scfile=/scratch/kocevski/866791/ft2_4FGL_J2358.3-1021_daily_bin1735.fits outfile=/scratch/kocevski/866791/cmap_689040001_689299201_4FGL_J2358.3-1021_daily_bin1735.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=359.582 yref=-10.3616 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/866791/ft1_filtered_4FGL_J2358.3-1021_daily_bin1735.fits scfile=/scratch/kocevski/866791/ft2_4FGL_J2358.3-1021_daily_bin1735.fits outfile=/scratch/kocevski/866791/cmap_HighResolution_689040001_689299201_4FGL_J2358.3-1021_daily_bin1735.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=359.582 yref=-10.3616 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/866791/ft1_filtered_4FGL_J2358.3-1021_daily_bin1735.fits evtable="EVENTS" scfile=/scratch/kocevski/866791/ft2_4FGL_J2358.3-1021_daily_bin1735.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/866791/Model_4FGL_J2358.3-1021_daily_bin1735.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/866791/ft1_filtered_4FGL_J2358.3-1021_daily_bin1735.fits.....................!
real 57.33
user 55.98
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/866791/ft1_filtered_4FGL_J2358.3-1021_daily_bin1735.fits', '/scratch/kocevski/866791/ft2_4FGL_J2358.3-1021_daily_bin1735.fits', expMap='/scratch/kocevski/866791/expmap_689040001_689299201_4FGL_J2358.3-1021_daily_bin1735.fits', expCube='/scratch/kocevski/866791/ltcube_689040001_689299201_4FGL_J2358.3-1021_daily_bin1735.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/866791/Model_4FGL_J2358.3-1021_daily_bin1735.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2358.3-1021'

4FGL J2358.3-1021
   Spectrum: PowerLaw
544    Prefactor:  4.076e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
545        Index:  2.593e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
546        Scale:  5.750e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/866791/ft1_filtered_4FGL_J2358.3-1021_daily_bin1735.fits
Spacecraft file(s): /scratch/kocevski/866791/ft2_4FGL_J2358.3-1021_daily_bin1735.fits
Exposure map: /scratch/kocevski/866791/expmap_689040001_689299201_4FGL_J2358.3-1021_daily_bin1735.fits
Exposure cube: /scratch/kocevski/866791/ltcube_689040001_689299201_4FGL_J2358.3-1021_daily_bin1735.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/866791/Model_4FGL_J2358.3-1021_daily_bin1735.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) = 6560.49447828

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18877E-02   1.0000          .0000       .10000E+07
     2 'norm      '    .90080       1.0000          .0000       .10000E+07
     3 'Prefactor '    29.474       1.0000          .0000       .10000E+07
     4 'Prefactor '    6.9898       1.0000          .0000       .10000E+07
     5 'norm      '    .46426E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .45198E-04   1.0000          .0000       .10000E+07
     7 'norm      '    .69232E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .32758E-02   1.0000          .0000       .10000E+07
     9 'norm      '    7.5601       1.0000          .0000       .10000E+07
    10 'Prefactor '    134.51       1.0000          .0000       .10000E+07
    11 'Prefactor '    .10475E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .24916E-01   1.0000          .0000       .10000E+07
    13 'norm      '    .40497       1.0000          .0000       .10000E+07
    14 'norm      '    8.0872       1.0000          .0000       .10000E+07
    15 'Prefactor '    .36162E-03   1.0000          .0000       .10000E+07
    16 'norm      '    11.593       1.0000          .0000       .10000E+07
    17 'Prefactor '    8.0591       1.0000          .0000       .10000E+07
    18 'norm      '    .39738       1.0000          .0000       .10000E+07
    19 'norm      '    5.7648       1.0000          .0000       .10000E+07
    20 'Prefactor '    .18572E-04   1.0000          .0000       .10000E+07
    21 'Normalizat'    .81187       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91059       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6560.474     FROM MIGRAD    STATUS=CONVERGED    191 CALLS     1916 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10769E-07    38.935       -.42408E-05** at limit **
   2  norm          .87220        6.5795        .12984E-05   -.79647E-02
   3  Prefactor     29.272        21.585        .21219E-05    .53557E-02
   4  Prefactor     6.9982        4.7768       -.13662E-06   -.25316E-02
   5  norm          .19246E-01    45.550       -.35196E-07** at limit **
   6  Prefactor     .28866E-08    28.138        .30221E-05** at limit **
   7  norm           .0000        3.6352        .26618E-06** at limit **
   8  Prefactor      .0000        9.5680        .37400E-06** at limit **
   9  norm          7.5584        6.0319        .21660E-06   -.30973E-03
  10  Prefactor     136.50        68.924        .25157E-05   -.12287E-02
  11  Prefactor     .11102E-09    11.127       -.43938E-07** at limit **
  12  Prefactor     .10658E-07    63.276        .87701E-05** at limit **
  13  norm          .40363        .83578       -.74305E-07    .22298E-03
  14  norm          8.0071        6.9100        .45599E-07   -.31492E-02
  15  Prefactor      .0000        13.344        .14893E-05** at limit **
  16  norm          11.736        4.4120       -.69718E-07   -.24977E-01
  17  Prefactor     8.0966        4.9649       -.26582E-06    .71881E-03
  18  norm          .39735        .36183       -.50769E-07   -.44291E-03
  19  norm          5.7677        3.0451        .66050E-07    .32512E-02
  20  Prefactor      .0000        1.7287        .41719E-06** at limit **
  21  Normalizat    .81095        .18458       -.88812E-05   -.34530E-03
  22  Prefactor     .91078        .17263        .27730E-05   -.33228E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.07692e-08
  norm       = 0.872202
  Prefactor  = 29.2717
  Prefactor  = 6.9982
  norm       = 0.0192463
  Prefactor  = 2.88658e-09
  norm       = 0
  Prefactor  = 0
  norm       = 7.55838
  Prefactor  = 136.498
  Prefactor  = 1.11022e-10
  Prefactor  = 1.06581e-08
  norm       = 0.403628
  norm       = 8.00707
  Prefactor  = 0
  norm       = 11.7365
  Prefactor  = 8.09662
  norm       = 0.39735
  norm       = 5.76771
  Prefactor  = 0
  Normalizat = 0.810947
  Prefactor  = 0.91078
 **********
 **   18 **HESSE 
 **********

 FCN=   6560.474     FROM HESSE     STATUS=OK           404 CALLS     2320 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10769E-07    37.506        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .87220        72.828        .45705E-03   -1.5689    
   3  Prefactor     29.272        21.786        .18423E-03   -1.5600    
   4  Prefactor     6.9982        4.8011        .37922E-03   -1.5655    
   5  norm          .19246E-01    1.5504        .42118E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .28866E-08    27.592        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        3.5053        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        9.5575        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.5584        6.0298        .36450E-03   -1.5653    
  10  Prefactor     136.50        82.721        .86230E-04   -1.5474    
  11  Prefactor     .11102E-09    11.125        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10658E-07    8.8885        .12703E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .40363        .85515        .88913E-03   -1.5695    
  14  norm          8.0071        7.3070        .35232E-03   -1.5651    
  15  Prefactor      .0000        13.154        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          11.736        21.074        .29397E-03   -1.5639    
  17  Prefactor     8.0966        5.5453        .35294E-03   -1.5651    
  18  norm          .39735        .38275        .89791E-03   -1.5695    
  19  norm          5.7677        3.0536        .41808E-03   -1.5660    
  20  Prefactor      .0000        1.7252        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .81095        .15793        .43765E-01   -.99664    
  22  Prefactor     .91078        .14768        .45140E-01   -.95765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.93263e-08
Minuit parameter uncertainties:
  1  0.00127064
  2  15.9402
  3  21.7856
  4  4.80108
  5  0.345488
  6  0.000565505
  7  2.82731e-06
  8  1.88866e-05
  9  6.02985
  10  82.7217
  11  7.77442e-05
  12  0.000614861
  13  0.855152
  14  7.30702
  15  1.19041e-05
  16  21.0738
  17  5.5453
  18  0.382748
  19  3.05355
  20  9.55981e-08
  21  0.158021
  22  0.147743
Done.

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

Extracting fit parameters...

4FGL J2358.3-1021
   Spectrum: PowerLaw
544    Prefactor:  0.000e+00  9.560e-08  0.000e+00  1.000e+06 ( 1.000e-12)
545        Index:  2.593e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
546        Scale:  5.750e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
563    Prefactor:  9.108e-01  1.477e-01  0.000e+00  1.000e+01 ( 1.000e+00)
564        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
565        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
562   Normalization:  8.109e-01  1.580e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 359.582 -10.362
Photon Flux Upper Limit: 4.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/866791/likelihoodResults_689040001_689299201_4FGL_J2358.3-1021_daily_bin1735.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) = 6560.47467371
delta logL = -0.00081241686712

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6560.47386249
delta logL = -1.19499782159e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .67168E-07   1.0000          .0000       .10000E+07
     2 'Index     '    .84723       1.0000          .0000       10.000    
     3 'Normalizat'    .81087       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91073       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6560.474     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      252 TOTAL
                     EDM=   .13E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .41780        .42118E-03** at limit **
   2  Index         4.1981        2.1168        .31990E-04     .0000    
   3  Normalizat    .81095        1.1495        .14028E-05   -.85573E-05
   4  Prefactor     .91078        1.2552        .14424E-06   -.51902E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 4.19809
  Normalizat = 0.810949
  Prefactor  = 0.91078
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6560.474     FROM HESSE     STATUS=FAILED         9 CALLS      261 TOTAL
                     EDM=   .13E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .41780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8908        2.3847        .31990E-04   -.16108    
   3  Normalizat    .81095        1.1495        .14028E-05   -.99664    
   4  Prefactor     .91078        1.2552        .14424E-06   -.95765    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.34443e-11
Minuit parameter uncertainties:
  1  2.69445e-06
  2  2.18775
  3  1.18696
  4  1.29882
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/866791': 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) = 6560.47386129
delta logL = 5.45696821064e-11

Extracting fit parameters...

4FGL J2358.3-1021
   Spectrum: PowerLaw
544    Prefactor:  0.000e+00  2.694e-06  0.000e+00  1.000e+06 ( 1.000e-12)
545        Index:  4.198e+00  2.188e+00  0.000e+00  1.000e+01 (-1.000e+00)
546        Scale:  5.750e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
563    Prefactor:  9.108e-01  1.299e+00  0.000e+00  1.000e+01 ( 1.000e+00)
564        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
565        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
562   Normalization:  8.109e-01  1.187e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 359.582 -10.362

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/866791/cmap_HighResolution_689040001_689299201_4FGL_J2358.3-1021_daily_bin1735.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.44e-03', job_status='DONE', photon_flux_upper_limit='4.40e-08', time_completed='2022-11-05 00:49:18.241164', job_id='866791', GAL2='0.91', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1667634558.24', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='5.46e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1735' AND source_name='4FGL J2358.3-1021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Nov  5 00:49:18 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 866791: <4FGL_J2358.3-1021_daily_bin1735> in cluster <slac> Done

Job <4FGL_J2358.3-1021_daily_bin1735> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Nov  5 00:35:35 2022
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Nov  5 00:35:36 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Nov  5 00:35:36 2022
Terminated at Sat Nov  5 00:49:19 2022
Results reported at Sat Nov  5 00:49:19 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3-1021_daily_bin1735 359.582 -10.3616 689040001 689299201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2358.3-1021 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   603.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             251.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            824 sec.

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

