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 217 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7494
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2358.0-4601_daily_bin1701
RA = 359.522, Dec = -46.0176
tmin = 680227201, tmax = 680486401
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='193343', job_status='RUN', time_executed='2022-07-26 02:20:12.647552', time_epoch_executed='1658827212.65' WHERE source_name='4FGL J2358.0-4601' and cadence='daily' and bin_id='1701'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/193343

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/193343/ft1_4FGL_J2358.0-4601_daily_bin1701.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/193343/ft2_4FGL_J2358.0-4601_daily_bin1701.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/193343/ft1_4FGL_J2358.0-4601_daily_bin1701.fits outfile=/scratch/kocevski/193343/ft1_filteredMKT_4FGL_J2358.0-4601_daily_bin1701.fits ra=359.522 dec=-46.0176 rad=12.0 tmin=680227201.0 tmax=680486401.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.89
user 2.67
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/193343/ft2_4FGL_J2358.0-4601_daily_bin1701.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/193343/ft2_4FGL_J2358.0-4601_daily_bin1701.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/193343/ft1_filteredMKT_4FGL_J2358.0-4601_daily_bin1701.fits evtable="EVENTS" outfile="/scratch/kocevski/193343/ft1_filtered_4FGL_J2358.0-4601_daily_bin1701.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.34
sys 0.16

Number of photons that the gtmktime cut: 207

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/193343/ft1_filtered_4FGL_J2358.0-4601_daily_bin1701.fits" evtable="EVENTS" scfile=/scratch/kocevski/193343/ft2_4FGL_J2358.0-4601_daily_bin1701.fits sctable="SC_DATA" outfile=/scratch/kocevski/193343/ltcube_680227201_680486401_4FGL_J2358.0-4601_daily_bin1701.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/193343/ft2_4FGL_J2358.0-4601_daily_bin1701.fits
.....................!
real 15.34
user 14.93
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/193343/ft1_filtered_4FGL_J2358.0-4601_daily_bin1701.fits evtable="EVENTS" scfile=/scratch/kocevski/193343/ft2_4FGL_J2358.0-4601_daily_bin1701.fits sctable="SC_DATA" expcube=/scratch/kocevski/193343/ltcube_680227201_680486401_4FGL_J2358.0-4601_daily_bin1701.fits outfile=/scratch/kocevski/193343/expmap_680227201_680486401_4FGL_J2358.0-4601_daily_bin1701.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/193343/ltcube_680227201_680486401_4FGL_J2358.0-4601_daily_bin1701.fits
.....................!
real 191.34
user 186.15
sys 4.81

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 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J2358.0-4601 @ 359.522 -46.0176

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/193343/ft1_filtered_4FGL_J2358.0-4601_daily_bin1701.fits scfile=/scratch/kocevski/193343/ft2_4FGL_J2358.0-4601_daily_bin1701.fits outfile=/scratch/kocevski/193343/cmap_680227201_680486401_4FGL_J2358.0-4601_daily_bin1701.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.522 yref=-46.0176 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.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/193343/ft1_filtered_4FGL_J2358.0-4601_daily_bin1701.fits scfile=/scratch/kocevski/193343/ft2_4FGL_J2358.0-4601_daily_bin1701.fits outfile=/scratch/kocevski/193343/cmap_HighResolution_680227201_680486401_4FGL_J2358.0-4601_daily_bin1701.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.522 yref=-46.0176 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.58
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/193343/ft1_filtered_4FGL_J2358.0-4601_daily_bin1701.fits evtable="EVENTS" scfile=/scratch/kocevski/193343/ft2_4FGL_J2358.0-4601_daily_bin1701.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/193343/Model_4FGL_J2358.0-4601_daily_bin1701.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/193343/ft1_filtered_4FGL_J2358.0-4601_daily_bin1701.fits.....................!
real 26.27
user 24.73
sys 1.45

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/193343/ft1_filtered_4FGL_J2358.0-4601_daily_bin1701.fits', '/scratch/kocevski/193343/ft2_4FGL_J2358.0-4601_daily_bin1701.fits', expMap='/scratch/kocevski/193343/expmap_680227201_680486401_4FGL_J2358.0-4601_daily_bin1701.fits', expCube='/scratch/kocevski/193343/ltcube_680227201_680486401_4FGL_J2358.0-4601_daily_bin1701.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/193343/Model_4FGL_J2358.0-4601_daily_bin1701.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2358.0-4601'

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  1.024e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
570        Index:  2.582e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
571        Scale:  6.628e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/193343/ft1_filtered_4FGL_J2358.0-4601_daily_bin1701.fits
Spacecraft file(s): /scratch/kocevski/193343/ft2_4FGL_J2358.0-4601_daily_bin1701.fits
Exposure map: /scratch/kocevski/193343/expmap_680227201_680486401_4FGL_J2358.0-4601_daily_bin1701.fits
Exposure cube: /scratch/kocevski/193343/ltcube_680227201_680486401_4FGL_J2358.0-4601_daily_bin1701.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/193343/Model_4FGL_J2358.0-4601_daily_bin1701.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) = 2381.79208251

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.362       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.045       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.029       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17717E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.4671       1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    47.088       1.0000         .10000E-03   10000.    
    11 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    177.07       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .29962E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    31.536       1.0000         .10000E-03   10000.    
    19 'Prefactor '    49.324       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10289E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.8778       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .69522E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .87079       1.0000         .10000E-03   10000.    
    30 'Prefactor '    8.6344       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .86780       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .83634       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2381.783     FROM MIGRAD    STATUS=CONVERGED    811 CALLS     5891 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.520        262.49        .97320E-06    .17963E-04
   2  Prefactor     .10000E-03    25.319        .83540E-07** at limit **
   3  Prefactor     31.088        99.218       -.28770E-05   -.52570E-04
   4  Prefactor     17.032        16.124        .16382E-06   -.39272E-04
   5  Prefactor     .10000E-03    51.015        .27440E-05** at limit **
   6  Prefactor     .10000E-03    36.919        .55937E-06** at limit **
   7  Prefactor     .10000E-03    11.531       -.10416E-06** at limit **
   8  Prefactor     7.4636        10.811        .55822E-06    .73854E-05
   9  norm          .10000E-03    26.047       -.16061E-06** at limit **
  10  Prefactor     47.114        50.673        .97250E-06    .29661E-05
  11  norm          .10000E-03    34.237       -.12626E-05** at limit **
  12  Prefactor     177.11        113.90        .12242E-05    .12345E-04
  13  Prefactor     .10001E-03    1866.9       -.16699E-05** at limit **
  14  Prefactor     .10000E-03    51.299       -.22205E-07** at limit **
  15  norm          .10000E-03    21.039       -.79558E-07** at limit **
  16  norm          .10000E-03    15.174        .11532E-07** at limit **
  17  norm          .10000E-03    11.916       -.24676E-06** at limit **
  18  norm          31.533        27.125        .21065E-06    .44882E-05
  19  Prefactor     49.330        31.886       -.44300E-06   -.42294E-04
  20  Prefactor     .10000E-03    160.41       -.31758E-06** at limit **
  21  norm          5.8786        7.8889        .31568E-06    .34576E-04
  22  Prefactor     .10000E-03    239.33        .27575E-06** at limit **
  23  norm          .10000E-03    1.6653       -.31464E-07** at limit **
  24  norm          .10000E-03    4.2326        .15781E-06** at limit **
  25  Prefactor     .10000E-03    32.985        .28936E-08** at limit **
  26  Prefactor     .10000E-03    4.1338        .38358E-07** at limit **
  27  Prefactor     .10000E-03    30.992       -.17872E-07** at limit **
  28  norm          .10000E-03    17.977        .49529E-07** at limit **
  29  Prefactor     .88719        14.352        .43027E-07    .91098E-04
  30  Prefactor     8.6351        9.6873        .29732E-05    .30205E-03
  31  Normalizat    .86773        .33114       -.94044E-05    .11913E-04
  32  Prefactor     .83641        .32543        .78995E-05   -.14432E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.5205
  Prefactor  = 0.0001
  Prefactor  = 31.0875
  Prefactor  = 17.0317
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.46364
  norm       = 0.0001
  Prefactor  = 47.1135
  norm       = 0.0001
  Prefactor  = 177.113
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 31.5328
  Prefactor  = 49.3298
  Prefactor  = 0.0001
  norm       = 5.87857
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.887187
  Prefactor  = 8.63506
  Normalizat = 0.867726
  Prefactor  = 0.836412
 **********
 **   18 **HESSE 
 **********

 FCN=   2381.783     FROM HESSE     STATUS=OK           645 CALLS     6536 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.520        259.00        .11393E-03   -1.5000    
   2  Prefactor     .10000E-03    25.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     31.088        102.39        .71911E-04   -1.4592    
   4  Prefactor     17.032        16.104        .97056E-04   -1.4882    
   5  Prefactor     .10000E-03    53.462        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    36.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.659        .16163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.4636        10.729        .13383E-03   -1.5162    
   9  norm          .10000E-03    26.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     47.114        50.534        .58433E-04   -1.4334    
  11  norm          .10000E-03    34.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     177.11        113.96        .15165E-03   -1.3038    
  13  Prefactor     .10001E-03    1867.0        .21390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    51.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    21.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    15.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    11.939        .16443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          31.533        27.126        .71351E-04   -1.4584    
  19  Prefactor     49.330        31.678        .28549E-03   -1.4302    
  20  Prefactor     .10000E-03    160.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.8786        7.8689        .15338E-03   -1.5223    
  22  Prefactor     .10000E-03    240.27        .20984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.6685        .61474E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    4.2497        .98012E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    32.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    4.1411        .96849E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    31.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    17.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .88719        57.381        .30193E-02   -1.5520    
  30  Prefactor     8.6351        9.8417        .68208E-03   -1.5120    
  31  Normalizat    .86773        .34997        .23640E-03   -.97604    
  32  Prefactor     .83641        .34421        .26734E-03   -.98400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12208e-09
Minuit parameter uncertainties:
  1  114.46
  2  2.61987e-05
  3  102.979
  4  16.1076
  5  0.000675819
  6  1.24649e-05
  7  2.01019e-05
  8  10.7319
  9  2.3713e-06
  10  50.5797
  11  5.35483e-05
  12  114.098
  13  0.00736598
  14  1.31489e-05
  15  2.70541e-05
  16  1.08208e-06
  17  2.63476e-05
  18  27.1363
  19  31.6889
  20  7.94962e-06
  21  7.87029
  22  0.000265825
  23  4.04184e-07
  24  5.23866e-06
  25  1.91821e-05
  26  6.7223e-06
  27  1.81543e-05
  28  2.06975e-05
  29  14.2834
  30  9.8435
  31  0.350886
  32  0.345106
Done.

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

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  8.635e+00  9.844e+00  1.000e-04  1.000e+04 ( 1.000e-12)
570        Index:  2.582e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
571        Scale:  6.628e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  8.364e-01  3.451e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  8.677e-01  3.509e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.18
Ra Dec: 359.522 -46.018
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 7.21e-08 +/- 8.22e-08
Energy Flux (Fixed Index): 1.92e-05 +/- 2.19e-05

TS (Fixed Index): 1.18
Ra Dec: 359.522 -46.018
Photon Flux Upper Limit: 2.58e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/193343/likelihoodResults_680227201_680486401_4FGL_J2358.0-4601_daily_bin1701.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) = 2381.08304105
delta logL = 0.70014673146

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2381.07921465
delta logL = 0.703973128745

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4221       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8686       1.0000          .0000       10.000    
     3 'Normalizat'    .76552       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91074       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2381.079     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      242 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4207        56.929        .54667E-02    .19596E-03
   2  Index         3.8690        6.8249        .10546        .60080E-04
   3  Normalizat    .76554        .10103        .43159E-01    .48171E-05
   4  Prefactor     .91074        .10677        .45142E-01   -.29869E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.42074
  Index      = 3.86899
  Normalizat = 0.765537
  Prefactor  = 0.910739
 **********
 **   18 **HESSE 
 **********

 FCN=   2381.079     FROM HESSE     STATUS=OK            33 CALLS      275 TOTAL
                     EDM=   .79E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4207        7.8222        .61335E-04   -1.5338    
   2  Index         3.8690        1.5618        .42322E-02   -.22818    
   3  Normalizat    .76554        .32145        .24955E-03   -1.0136    
   4  Prefactor     .91074        .34655        .25707E-03   -.95767    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.86706e-12
Minuit parameter uncertainties:
  1  7.8245
  2  1.58985
  3  0.322245
  4  0.347396
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/193343': 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) = 2381.07921458
delta logL = 0.70397319173

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  3.421e+00  7.824e+00  1.000e-04  1.000e+04 ( 1.000e-12)
570        Index:  3.869e+00  1.590e+00  0.000e+00  1.000e+01 (-1.000e+00)
571        Scale:  6.628e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  9.107e-01  3.474e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  7.655e-01  3.222e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.77
Ra Dec: 359.522 -46.018
Photon Index (Free Index): 3.87 +/- 1.59
Photon Flux (Free Index): 1.80e-07 +/- 1.45e-07
Energy Flux (Free Index): 2.76e-05 +/- 2.08e-05

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/193343/cmap_HighResolution_680227201_680486401_4FGL_J2358.0-4601_daily_bin1701.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.02e-02', comment='SUCCESS', photon_flux='7.21e-08', energy_flux2='2.76e-05', photon_flux_error='8.22e-08', dlogl='7.04e-01', energy_flux='1.92e-05', photon_flux2='1.80e-07', job_status='DONE', time_completed='2022-07-26 02:30:09.372128', photon_index_error2='1.59', photon_index2='3.87', ts='1.18', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='2.58e-07', energy_flux_error2='2.08e-05', EG='0.87', time_epoch_completed='1658827809.37', return_code='0', job_id='193343', GAL2='0.91', EG2='0.77', return_code2='0', energy_flux_error='2.19e-05', photon_flux_error2='1.45e-07', ts2='2.77', photon_index='2.58' WHERE bin_id='1701' AND source_name='4FGL J2358.0-4601' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 26 02:30:09 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 193343: <4FGL_J2358.0-4601_daily_bin1701> in cluster <slac> Done

Job <4FGL_J2358.0-4601_daily_bin1701> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Jul 26 02:15:17 2022
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 26 02:16:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul 26 02:16:26 2022
Terminated at Tue Jul 26 02:30:10 2022
Results reported at Tue Jul 26 02:30:10 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.0-4601_daily_bin1701 359.522 -46.0176 680227201 680486401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2358.0-4601 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   599.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             238.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            893 sec.

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

