/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 44 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 = 7640
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2358.3-1021_daily_bin1522
RA = 359.582, Dec = -10.3616
tmin = 633830401, tmax = 634089601
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='232988', job_status='RUN', time_executed='2021-09-30 11:31:58.020911', time_epoch_executed='1633026718.02' WHERE source_name='4FGL J2358.3-1021' and cadence='daily' and bin_id='1522'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/232988

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/232988/ft1_4FGL_J2358.3-1021_daily_bin1522.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/232988/ft2_4FGL_J2358.3-1021_daily_bin1522.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/232988/ft1_4FGL_J2358.3-1021_daily_bin1522.fits outfile=/scratch/kocevski/232988/ft1_filteredMKT_4FGL_J2358.3-1021_daily_bin1522.fits ra=359.582 dec=-10.3616 rad=12.0 tmin=633830401.0 tmax=634089601.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.67
user 3.42
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/232988/ft1_filtered_4FGL_J2358.3-1021_daily_bin1522.fits" evtable="EVENTS" scfile=/scratch/kocevski/232988/ft2_4FGL_J2358.3-1021_daily_bin1522.fits sctable="SC_DATA" outfile=/scratch/kocevski/232988/ltcube_633830401_634089601_4FGL_J2358.3-1021_daily_bin1522.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/232988/ft2_4FGL_J2358.3-1021_daily_bin1522.fits
.....................!
real 11.97
user 11.62
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/232988/ft1_filtered_4FGL_J2358.3-1021_daily_bin1522.fits evtable="EVENTS" scfile=/scratch/kocevski/232988/ft2_4FGL_J2358.3-1021_daily_bin1522.fits sctable="SC_DATA" expcube=/scratch/kocevski/232988/ltcube_633830401_634089601_4FGL_J2358.3-1021_daily_bin1522.fits outfile=/scratch/kocevski/232988/expmap_633830401_634089601_4FGL_J2358.3-1021_daily_bin1522.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/232988/ltcube_633830401_634089601_4FGL_J2358.3-1021_daily_bin1522.fits
.....................!
real 192.54
user 187.27
sys 4.78

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/232988/ft1_filtered_4FGL_J2358.3-1021_daily_bin1522.fits scfile=/scratch/kocevski/232988/ft2_4FGL_J2358.3-1021_daily_bin1522.fits outfile=/scratch/kocevski/232988/cmap_633830401_634089601_4FGL_J2358.3-1021_daily_bin1522.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/232988/ft1_filtered_4FGL_J2358.3-1021_daily_bin1522.fits scfile=/scratch/kocevski/232988/ft2_4FGL_J2358.3-1021_daily_bin1522.fits outfile=/scratch/kocevski/232988/cmap_HighResolution_633830401_634089601_4FGL_J2358.3-1021_daily_bin1522.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.57
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/232988/ft1_filtered_4FGL_J2358.3-1021_daily_bin1522.fits evtable="EVENTS" scfile=/scratch/kocevski/232988/ft2_4FGL_J2358.3-1021_daily_bin1522.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/232988/Model_4FGL_J2358.3-1021_daily_bin1522.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/232988/ft1_filtered_4FGL_J2358.3-1021_daily_bin1522.fits....................!
real 51.53
user 50.20
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/232988/ft1_filtered_4FGL_J2358.3-1021_daily_bin1522.fits', '/scratch/kocevski/232988/ft2_4FGL_J2358.3-1021_daily_bin1522.fits', expMap='/scratch/kocevski/232988/expmap_633830401_634089601_4FGL_J2358.3-1021_daily_bin1522.fits', expCube='/scratch/kocevski/232988/ltcube_633830401_634089601_4FGL_J2358.3-1021_daily_bin1522.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/232988/Model_4FGL_J2358.3-1021_daily_bin1522.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  1.000e-04  1.000e+04 ( 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/232988/ft1_filtered_4FGL_J2358.3-1021_daily_bin1522.fits
Spacecraft file(s): /scratch/kocevski/232988/ft2_4FGL_J2358.3-1021_daily_bin1522.fits
Exposure map: /scratch/kocevski/232988/expmap_633830401_634089601_4FGL_J2358.3-1021_daily_bin1522.fits
Exposure cube: /scratch/kocevski/232988/ltcube_633830401_634089601_4FGL_J2358.3-1021_daily_bin1522.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/232988/Model_4FGL_J2358.3-1021_daily_bin1522.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) = 5793.7371626

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14649E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10722E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.8436       1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.665       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.504       1.0000         .10000E-03   10000.    
    10 'norm      '    3.6141       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .63260       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .86553       1.0000         .10000E-03   10000.    
    15 'norm      '    3.6618       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.0228       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.5503       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.775       1.0000         .10000E-03   10000.    
    20 'norm      '    .11083E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .22207       1.0000         .10000E-03   10000.    
    24 'norm      '    15.391       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0976       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .78676       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5793.687     FROM MIGRAD    STATUS=CONVERGED   1308 CALLS     4102 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.183        .18142E-02** at limit **
   2  norm          .10000E-03    10.368        .18142E-02** at limit **
   3  Prefactor     .10000E-03    63.662        .18142E-02** at limit **
   4  Prefactor     .10000E-03    42.516        .18142E-02** at limit **
   5  Prefactor     .10000E-03    1.3960        .87731E-03** at limit **
   6  norm          6.8436        3.1303        .87711E-04    .78935E-04
   7  Prefactor     18.662        12.791        .92705E-04    .15133E-03
   8  norm          .10000E-03    1.0327        .75229E-03** at limit **
   9  Prefactor     24.545        23.508        .80921E-04    .42007E-04
  10  norm          3.6128        5.6686        .21253E-03   -.35358E-04
  11  Prefactor     .48886        64.205        .14458        .86094E-04
  12  Prefactor     .10000E-03    22.532        .18142E-02** at limit **
  13  Prefactor     .10000E-03    5.3439        .17139E-02** at limit **
  14  norm          .86577        .92754        .75096E-03    .22752E-03
  15  norm          3.6656        5.2539        .19651E-03   -.60862E-04
  16  Prefactor     .28342        200.73        .13995        .75584E-04
  17  Prefactor     4.8022        65.657        .18872E-03    .12169E-04
  18  Prefactor     .10000E-03    73.564        .18142E-02** at limit **
  19  Prefactor     13.766        11.210        .10792E-03    .10577E-03
  20  norm          .10000E-03    14.637        .18142E-02** at limit **
  21  Prefactor     .10000E-03    22.229        .18142E-02** at limit **
  22  Prefactor     .10000E-03    2.0133        .10477E-02** at limit **
  23  norm          .22198        .41784        .69394E-03    .45967E-03
  24  norm          15.393        5.4995        .94088E-04    .93885E-04
  25  Prefactor     .10000E-03    4.4969        .15752E-02** at limit **
  26  Prefactor     .10000E-03    2.9751        .12752E-02** at limit **
  27  Normalizat    1.0978        .21448        .23393E-03    .24169E-03
  28  Prefactor     .78672        .19036        .24986E-03    .20480E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 6.84359
  Prefactor  = 18.6617
  norm       = 0.0001
  Prefactor  = 24.5455
  norm       = 3.6128
  Prefactor  = 0.48886
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.865767
  norm       = 3.66564
  Prefactor  = 0.283424
  Prefactor  = 4.80218
  Prefactor  = 0.000100001
  Prefactor  = 13.7661
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.221979
  norm       = 15.3929
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.09779
  Prefactor  = 0.786721
 **********
 **   18 **HESSE 
 **********

 FCN=   5793.687     FROM HESSE     STATUS=OK           515 CALLS     4617 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.195        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    10.368        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    63.675        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    42.541        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.3960        .17546E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.8436        3.1301        .35085E-05   -1.5185    
   7  Prefactor     18.662        12.790        .37082E-05   -1.4844    
   8  norm          .10000E-03    1.0328        .15046E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.545        23.503        .32368E-05   -1.4717    
  10  norm          3.6128        5.6685        .85012E-05   -1.5328    
  11  Prefactor     .48886        62.795        .14649       -1.5568    
  12  Prefactor     .10000E-03    22.534        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.3443        .34278E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .86577        .92715        .30038E-04   -1.5522    
  15  norm          3.6656        5.2521        .78604E-05   -1.5325    
  16  Prefactor     .28342        172.50        .14628       -1.5602    
  17  Prefactor     4.8022        60.724        .75488E-05   -1.5270    
  18  Prefactor     .10000E-03    73.564        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.766        11.207        .43167E-05   -1.4966    
  20  norm          .10000E-03    14.638        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    22.230        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.0135        .20953E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .22198        .41629        .27758E-04   -1.5614    
  24  norm          15.393        5.4853        .37635E-05   -1.4923    
  25  Prefactor     .10000E-03    4.4971        .31503E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    2.9757        .25505E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0978        .21462        .46786E-04   -.89823    
  28  Prefactor     .78672        .19053        .99944E-05   -1.0022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.76525e-10
Minuit parameter uncertainties:
  1  5.42403e-05
  2  5.31621e-06
  3  0.000154958
  4  0.000344422
  5  6.92571e-06
  6  3.13022
  7  12.7922
  8  1.08085e-05
  9  23.5122
  10  5.66931
  11  11.0919
  12  8.72306e-05
  13  2.16133e-05
  14  0.927169
  15  5.25274
  16  14.0227
  17  34.1956
  18  0.000396061
  19  11.2088
  20  1.52247e-05
  21  5.91199e-05
  22  4.01387e-06
  23  0.416299
  24  5.48549
  25  7.52331e-06
  26  3.68337e-07
  27  0.214794
  28  0.190692
Done.

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

Extracting fit parameters...

4FGL J2358.3-1021
   Spectrum: PowerLaw
544    Prefactor:  1.000e-04  3.683e-07  1.000e-04  1.000e+04 ( 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:  7.867e-01  1.907e-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:  1.098e+00  2.148e-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: 6.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/232988/likelihoodResults_633830401_634089601_4FGL_J2358.3-1021_daily_bin1522.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) = 5793.68818727
delta logL = -0.00159941459606

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5793.68658792
delta logL = -6.10707502346e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5793.687     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      233 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.222        .12770E-02** at limit **
   2  Index         2.6055        8.6834        .50000       -.19564E-04
   3  Normalizat    1.0978        .20087        .23393E-03   -.60456E-04
   4  Prefactor     .78672        .18551        .24986E-03   -.35490E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.60549
  Normalizat = 1.09779
  Prefactor  = 0.786721
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1034        .25541E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6055        6.2995        .50000       -.49940    
   3  Normalizat    1.0978        .20106        .93573E-05   -.89823    
   4  Prefactor     .78672        .18570        .99945E-05   -1.0022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.44825e-10
Minuit parameter uncertainties:
  1  0.000119419
  2  4.47807
  3  0.201201
  4  0.185849
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/232988': 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) = 5793.68658781
delta logL = 5.33773345524e-08

Extracting fit parameters...

4FGL J2358.3-1021
   Spectrum: PowerLaw
544    Prefactor:  1.000e-04  1.194e-04  1.000e-04  1.000e+04 ( 1.000e-12)
545        Index:  2.605e+00  4.478e+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:  7.867e-01  1.858e-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:  1.098e+00  2.012e-01  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/232988/cmap_HighResolution_633830401_634089601_4FGL_J2358.3-1021_daily_bin1522.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.97e-03', job_status='DONE', photon_flux_upper_limit='6.35e-08', time_completed='2021-09-30 11:45:33.322044', job_id='232988', GAL2='0.79', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1633027533.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='5.34e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1522' AND source_name='4FGL J2358.3-1021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 11:45:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 232988: <4FGL_J2358.3-1021_daily_bin1522> in cluster <slac> Done

Job <4FGL_J2358.3-1021_daily_bin1522> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep 30 11:30:58 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 11:31:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 11:31:00 2021
Terminated at Thu Sep 30 11:45:33 2021
Results reported at Thu Sep 30 11:45:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3-1021_daily_bin1522 359.582 -10.3616 633830401 634089601 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 :                                   779.02 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             302.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            875 sec.

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

