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


Performing analysis on: 4FGL_J2358.0-4601_daily_bin1697
RA = 359.522, Dec = -46.0176
tmin = 679190401, tmax = 679449601
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='857790', job_status='RUN', time_executed='2022-07-14 00:36:46.910992', time_epoch_executed='1657784206.91' WHERE source_name='4FGL J2358.0-4601' and cadence='daily' and bin_id='1697'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/857790

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/857790/ft1_4FGL_J2358.0-4601_daily_bin1697.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/857790/ft2_4FGL_J2358.0-4601_daily_bin1697.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/857790/ft1_4FGL_J2358.0-4601_daily_bin1697.fits outfile=/scratch/kocevski/857790/ft1_filteredMKT_4FGL_J2358.0-4601_daily_bin1697.fits ra=359.522 dec=-46.0176 rad=12.0 tmin=679190401.0 tmax=679449601.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.44
user 3.22
sys 0.21

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

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

Number of photons that the gtmktime cut: 506

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/857790/ft1_filtered_4FGL_J2358.0-4601_daily_bin1697.fits" evtable="EVENTS" scfile=/scratch/kocevski/857790/ft2_4FGL_J2358.0-4601_daily_bin1697.fits sctable="SC_DATA" outfile=/scratch/kocevski/857790/ltcube_679190401_679449601_4FGL_J2358.0-4601_daily_bin1697.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/857790/ft2_4FGL_J2358.0-4601_daily_bin1697.fits
.....................!
real 11.57
user 11.20
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/857790/ft1_filtered_4FGL_J2358.0-4601_daily_bin1697.fits evtable="EVENTS" scfile=/scratch/kocevski/857790/ft2_4FGL_J2358.0-4601_daily_bin1697.fits sctable="SC_DATA" expcube=/scratch/kocevski/857790/ltcube_679190401_679449601_4FGL_J2358.0-4601_daily_bin1697.fits outfile=/scratch/kocevski/857790/expmap_679190401_679449601_4FGL_J2358.0-4601_daily_bin1697.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/857790/ltcube_679190401_679449601_4FGL_J2358.0-4601_daily_bin1697.fits
.....................!
real 191.45
user 185.17
sys 5.93

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/857790/ft1_filtered_4FGL_J2358.0-4601_daily_bin1697.fits scfile=/scratch/kocevski/857790/ft2_4FGL_J2358.0-4601_daily_bin1697.fits outfile=/scratch/kocevski/857790/cmap_679190401_679449601_4FGL_J2358.0-4601_daily_bin1697.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/857790/ft1_filtered_4FGL_J2358.0-4601_daily_bin1697.fits scfile=/scratch/kocevski/857790/ft2_4FGL_J2358.0-4601_daily_bin1697.fits outfile=/scratch/kocevski/857790/cmap_HighResolution_679190401_679449601_4FGL_J2358.0-4601_daily_bin1697.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/857790/ft1_filtered_4FGL_J2358.0-4601_daily_bin1697.fits evtable="EVENTS" scfile=/scratch/kocevski/857790/ft2_4FGL_J2358.0-4601_daily_bin1697.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/857790/Model_4FGL_J2358.0-4601_daily_bin1697.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/857790/ft1_filtered_4FGL_J2358.0-4601_daily_bin1697.fits.....................!
real 41.06
user 39.75
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/857790/ft1_filtered_4FGL_J2358.0-4601_daily_bin1697.fits', '/scratch/kocevski/857790/ft2_4FGL_J2358.0-4601_daily_bin1697.fits', expMap='/scratch/kocevski/857790/expmap_679190401_679449601_4FGL_J2358.0-4601_daily_bin1697.fits', expCube='/scratch/kocevski/857790/ltcube_679190401_679449601_4FGL_J2358.0-4601_daily_bin1697.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/857790/Model_4FGL_J2358.0-4601_daily_bin1697.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/857790/ft1_filtered_4FGL_J2358.0-4601_daily_bin1697.fits
Spacecraft file(s): /scratch/kocevski/857790/ft2_4FGL_J2358.0-4601_daily_bin1697.fits
Exposure map: /scratch/kocevski/857790/expmap_679190401_679449601_4FGL_J2358.0-4601_daily_bin1697.fits
Exposure cube: /scratch/kocevski/857790/ltcube_679190401_679449601_4FGL_J2358.0-4601_daily_bin1697.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/857790/Model_4FGL_J2358.0-4601_daily_bin1697.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) = 5524.70057783

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    55.094       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.567       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.1290       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.3301       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8200       1.0000         .10000E-03   10000.    
     9 'norm      '    .83639E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.199       1.0000         .10000E-03   10000.    
    11 'norm      '    53.075       1.0000         .10000E-03   10000.    
    12 'Prefactor '    100.14       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.309       1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.9212       1.0000         .10000E-03   10000.    
    18 'norm      '    5.6069       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.098       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .24863E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .13187E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.0597       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.4699       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.3762       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10113E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.2344       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .96981       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .86306       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=   5524.688     FROM MIGRAD    STATUS=CONVERGED    849 CALLS     4367 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.023        .30354E-06** at limit **
   2  Prefactor     55.118        26.699       -.11132E-05    .16496E-03
   3  Prefactor     .10000E-03    78.191       -.10075E-04** at limit **
   4  Prefactor     11.550        10.969       -.14501E-05    .45748E-06
   5  Prefactor     .10000E-03    3.1471        .46915E-07** at limit **
   6  Prefactor     6.1387        19.890        .53330E-06    .17139E-04
   7  Prefactor     5.3303        7.5070       -.78862E-06    .75614E-04
   8  Prefactor     2.8161        4.5960       -.97314E-06    .12727E-04
   9  norm          .10000E-03    198.18       -.35529E-04** at limit **
  10  Prefactor     19.197        21.379        .48346E-06    .25214E-04
  11  norm          53.058        31.410        .54814E-06    .33144E-04
  12  Prefactor     100.06        89.717        .35706E-05    .51232E-04
  13  Prefactor     .10000E-03    13.973       -.50098E-06** at limit **
  14  Prefactor     13.324        15.675        .30994E-06    .94723E-04
  15  norm          .10000E-03    3.5225        .33131E-07** at limit **
  16  norm          .10000E-03    3.3171       -.74279E-07** at limit **
  17  norm          4.9218        4.1819        .10091E-05    .86469E-04
  18  norm          5.6065        6.8639        .14755E-06    .37691E-05
  19  Prefactor     16.103        7.1346        .12266E-06    .16298E-03
  20  Prefactor     .10000E-03    102.65        .24172E-05** at limit **
  21  norm          .10000E-03    5.0839       -.12848E-05** at limit **
  22  Prefactor     .10000E-03    4.3632       -.21410E-06** at limit **
  23  norm          .10000E-03    .80479       -.71981E-07** at limit **
  24  norm          3.0583        3.4897        .66538E-06    .84032E-04
  25  Prefactor     7.4692        11.658       -.33208E-06    .32104E-04
  26  Prefactor     6.3811        3.4132       -.17141E-06    .37662E-03
  27  Prefactor     .10000E-03    9.1075       -.81752E-06** at limit **
  28  norm          .10000E-03    10.584        .96970E-06** at limit **
  29  Prefactor     1.2352        2.7681       -.14744E-05   -.72809E-04
  30  Prefactor     .10000E-03    2.0774       -.80023E-06** at limit **
  31  Normalizat    .97007        .17447       -.38134E-06    .40208E-03
  32  Prefactor     .86288        .19436        .13864E-05    .10215E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 55.118
  Prefactor  = 0.0001
  Prefactor  = 11.5496
  Prefactor  = 0.0001
  Prefactor  = 6.13866
  Prefactor  = 5.33026
  Prefactor  = 2.81607
  norm       = 0.000100001
  Prefactor  = 19.1969
  norm       = 53.0579
  Prefactor  = 100.058
  Prefactor  = 0.0001
  Prefactor  = 13.3239
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.92177
  norm       = 5.60651
  Prefactor  = 16.1025
  Prefactor  = 0.000100002
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.05833
  Prefactor  = 7.46924
  Prefactor  = 6.38107
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.23523
  Prefactor  = 0.0001
  Normalizat = 0.97007
  Prefactor  = 0.862878
 **********
 **   18 **HESSE 
 **********

 FCN=   5524.688     FROM HESSE     STATUS=OK           661 CALLS     5028 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     55.118        26.611        .54041E-04   -1.4222    
   3  Prefactor     .10000E-03    78.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.550        10.759        .11779E-03   -1.5028    
   5  Prefactor     .10000E-03    3.1631        .12876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.1387        19.796        .16217E-03   -1.5212    
   7  Prefactor     5.3303        7.5019        .17408E-03   -1.5246    
   8  Prefactor     2.8161        4.5507        .17644E-03   -1.5372    
   9  norm          .10000E-03    193.11        .74878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.197        21.305        .91410E-04   -1.4831    
  11  norm          53.058        31.433        .55054E-04   -1.4250    
  12  Prefactor     100.06        90.212        .20087E-03   -1.3704    
  13  Prefactor     .10000E-03    13.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.324        15.439        .10980E-03   -1.4978    
  15  norm          .10000E-03    3.5256        .13625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.3281        .13218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.9218        4.1914        .13666E-03   -1.5264    
  18  norm          5.6065        6.8612        .16966E-03   -1.5234    
  19  Prefactor     16.103        7.0857        .99824E-04   -1.4905    
  20  Prefactor     .10000E-03    104.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.3396        .32811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.3685        .15159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.5425        .12497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.0583        3.4782        .14267E-03   -1.5358    
  25  Prefactor     7.4692        11.651        .14674E-03   -1.5161    
  26  Prefactor     6.3811        3.3986        .95932E-04   -1.5203    
  27  Prefactor     .10000E-03    9.1207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    10.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.2352        2.7207        .17987E-03   -1.5486    
  30  Prefactor     .10000E-03    2.0941        .10423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .97007        .20321        .22616E-03   -.94040    
  32  Prefactor     .86288        .22438        .27094E-03   -.97451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.64148e-10
Minuit parameter uncertainties:
  1  2.75938e-05
  2  26.6165
  3  0.0002797
  4  10.7609
  5  8.12233e-06
  6  19.817
  7  7.50326
  8  4.55128
  9  0.00094185
  10  21.3137
  11  31.4433
  12  90.336
  13  1.58078e-05
  14  15.4434
  15  5.77637e-07
  16  5.68796e-06
  17  4.1916
  18  6.8622
  19  7.08603
  20  0.000822123
  21  0.000130552
  22  2.3441e-06
  23  9.31631e-06
  24  3.4784
  25  11.6548
  26  3.39872
  27  1.90854e-05
  28  8.30652e-05
  29  2.72097
  30  1.7578e-05
  31  0.203375
  32  0.224618
Done.

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

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  1.000e-04  1.758e-05  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.629e-01  2.246e-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:  9.701e-01  2.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 359.522 -46.018
Photon Flux Upper Limit: 6.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/857790/likelihoodResults_679190401_679449601_4FGL_J2358.0-4601_daily_bin1697.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) = 5524.69074942
delta logL = -0.0022726057914

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5524.68847689
delta logL = -7.54225766286e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5849       1.0000          .0000       10.000    
     3 'Normalizat'    .97008       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86291       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5524.688     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      233 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    465.88        .10426E-02** at limit **
   2  Index         2.5880        5.7819        .50000       -.13935E-04
   3  Normalizat    .97007        .12071        .22616E-03   -.45040E-04
   4  Prefactor     .86288        .13775        .27094E-03   -.13175E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.58803
  Normalizat = 0.970066
  Prefactor  = 0.862881
 **********
 **   18 **HESSE 
 **********

 FCN=   5524.688     FROM HESSE     STATUS=OK            29 CALLS      262 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2314        .20851E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5880        6.2925        .50000       -.50338    
   3  Normalizat    .97007        .19452        .90464E-05   -.94040    
   4  Prefactor     .86288        .22212        .10838E-04   -.97450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16227e-10
Minuit parameter uncertainties:
  1  6.04077e-05
  2  4.52085
  3  0.194662
  4  0.222351
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/857790': 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) = 5524.6884768
delta logL = 1.8911123334e-08

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  1.000e-04  6.041e-05  1.000e-04  1.000e+04 ( 1.000e-12)
570        Index:  2.588e+00  4.521e+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:  8.629e-01  2.224e-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:  9.701e-01  1.947e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 359.522 -46.018

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/857790/cmap_HighResolution_679190401_679449601_4FGL_J2358.0-4601_daily_bin1697.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.00e-03', job_status='DONE', photon_flux_upper_limit='6.39e-08', time_completed='2022-07-14 00:50:44.287395', job_id='857790', GAL2='0.86', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1657785044.29', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.89e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1697' AND source_name='4FGL J2358.0-4601' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jul 14 00:50:44 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 857790: <4FGL_J2358.0-4601_daily_bin1697> in cluster <slac> Done

Job <4FGL_J2358.0-4601_daily_bin1697> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Jul 14 00:36:02 2022
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jul 14 00:36:02 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jul 14 00:36:02 2022
Terminated at Thu Jul 14 00:50:45 2022
Results reported at Thu Jul 14 00:50:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.0-4601_daily_bin1697 359.522 -46.0176 679190401 679449601 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 :                                   839.47 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             317.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            883 sec.

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

