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


Performing analysis on: 4FGL_J2358.3-1021_daily_bin1556
RA = 359.582, Dec = -10.3616
tmin = 642643201, tmax = 642902401
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='233036', job_status='RUN', time_executed='2021-09-30 11:31:32.710799', time_epoch_executed='1633026692.71' WHERE source_name='4FGL J2358.3-1021' and cadence='daily' and bin_id='1556'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/233036

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/233036/ft1_4FGL_J2358.3-1021_daily_bin1556.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/233036/ft2_4FGL_J2358.3-1021_daily_bin1556.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/233036/ft1_4FGL_J2358.3-1021_daily_bin1556.fits outfile=/scratch/kocevski/233036/ft1_filteredMKT_4FGL_J2358.3-1021_daily_bin1556.fits ra=359.582 dec=-10.3616 rad=12.0 tmin=642643201.0 tmax=642902401.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.59
user 3.38
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/233036/ft1_filtered_4FGL_J2358.3-1021_daily_bin1556.fits" evtable="EVENTS" scfile=/scratch/kocevski/233036/ft2_4FGL_J2358.3-1021_daily_bin1556.fits sctable="SC_DATA" outfile=/scratch/kocevski/233036/ltcube_642643201_642902401_4FGL_J2358.3-1021_daily_bin1556.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/233036/ft2_4FGL_J2358.3-1021_daily_bin1556.fits
.....................!
real 13.32
user 12.77
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/233036/ft1_filtered_4FGL_J2358.3-1021_daily_bin1556.fits evtable="EVENTS" scfile=/scratch/kocevski/233036/ft2_4FGL_J2358.3-1021_daily_bin1556.fits sctable="SC_DATA" expcube=/scratch/kocevski/233036/ltcube_642643201_642902401_4FGL_J2358.3-1021_daily_bin1556.fits outfile=/scratch/kocevski/233036/expmap_642643201_642902401_4FGL_J2358.3-1021_daily_bin1556.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/233036/ltcube_642643201_642902401_4FGL_J2358.3-1021_daily_bin1556.fits
.....................!
real 190.50
user 184.94
sys 5.22

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/233036/ft1_filtered_4FGL_J2358.3-1021_daily_bin1556.fits scfile=/scratch/kocevski/233036/ft2_4FGL_J2358.3-1021_daily_bin1556.fits outfile=/scratch/kocevski/233036/cmap_642643201_642902401_4FGL_J2358.3-1021_daily_bin1556.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/233036/ft1_filtered_4FGL_J2358.3-1021_daily_bin1556.fits scfile=/scratch/kocevski/233036/ft2_4FGL_J2358.3-1021_daily_bin1556.fits outfile=/scratch/kocevski/233036/cmap_HighResolution_642643201_642902401_4FGL_J2358.3-1021_daily_bin1556.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/233036/ft1_filtered_4FGL_J2358.3-1021_daily_bin1556.fits evtable="EVENTS" scfile=/scratch/kocevski/233036/ft2_4FGL_J2358.3-1021_daily_bin1556.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/233036/Model_4FGL_J2358.3-1021_daily_bin1556.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/233036/ft1_filtered_4FGL_J2358.3-1021_daily_bin1556.fits.....................!
real 48.65
user 47.39
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/233036/ft1_filtered_4FGL_J2358.3-1021_daily_bin1556.fits', '/scratch/kocevski/233036/ft2_4FGL_J2358.3-1021_daily_bin1556.fits', expMap='/scratch/kocevski/233036/expmap_642643201_642902401_4FGL_J2358.3-1021_daily_bin1556.fits', expCube='/scratch/kocevski/233036/ltcube_642643201_642902401_4FGL_J2358.3-1021_daily_bin1556.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/233036/Model_4FGL_J2358.3-1021_daily_bin1556.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/233036/ft1_filtered_4FGL_J2358.3-1021_daily_bin1556.fits
Spacecraft file(s): /scratch/kocevski/233036/ft2_4FGL_J2358.3-1021_daily_bin1556.fits
Exposure map: /scratch/kocevski/233036/expmap_642643201_642902401_4FGL_J2358.3-1021_daily_bin1556.fits
Exposure cube: /scratch/kocevski/233036/ltcube_642643201_642902401_4FGL_J2358.3-1021_daily_bin1556.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/233036/Model_4FGL_J2358.3-1021_daily_bin1556.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) = 5343.13297961

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1487       1.0000         .10000E-03   10000.    
     2 'norm      '    .91087E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .94194       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .31068E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    49.885       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.0060       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.9228       1.0000         .10000E-03   10000.    
    16 'Prefactor '    46.000       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11717E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .52963       1.0000         .10000E-03   10000.    
    20 'norm      '    .10111E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.0099       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.5272       1.0000         .10000E-03   10000.    
    23 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    13.653       1.0000         .10000E-03   10000.    
    25 'Prefactor '    14.984       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0428       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .66111       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.

 FCN=   5343.119     FROM MIGRAD    STATUS=CONVERGED    696 CALLS     3509 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1508        9.3466       -.39385E-06    .47523E-03
   2  norm          .10010E-03    23.402        .46603E-05** at limit **
   3  Prefactor     .10000E-03    27.438        .57064E-06** at limit **
   4  Prefactor     .10000E-03    4.2148       -.15700E-07** at limit **
   5  Prefactor     .10000E-03    1.4647        .10719E-06** at limit **
   6  norm          .10000E-03    .62455       -.21485E-07** at limit **
   7  Prefactor     .10000E-03    3.6854        .73250E-07** at limit **
   8  norm          .94274        1.7667       -.10086E-05   -.15189E-02
   9  Prefactor     .10001E-03    58.385        .13543E-04** at limit **
  10  norm          49.884        13.967        .69488E-07    .11345E-03
  11  Prefactor     .10000E-03    18.305       -.65534E-07** at limit **
  12  Prefactor     3.9626        58.981        .13615E-05    .38203E-04
  13  Prefactor     .10000E-03    3.1625       -.50910E-07** at limit **
  14  norm          .10000E-03    .16108       -.98494E-08** at limit **
  15  norm          1.9229        2.8368       -.81825E-07   -.67541E-04
  16  Prefactor     45.997        61.566       -.46236E-06   -.22274E-04
  17  Prefactor     .10000E-03    11.274       -.71726E-07** at limit **
  18  Prefactor     .10000E-03    110.98       -.31132E-06** at limit **
  19  Prefactor     .55665        7.2959        .71294E-06    .78089E-04
  20  norm          .10000E-03    13.837       -.12222E-06** at limit **
  21  Prefactor     8.9686        67.261        .40752E-05    .53940E-04
  22  Prefactor     3.5258        4.0494       -.67084E-08    .10808E-03
  23  norm          .10000E-03    .16939       -.56776E-07** at limit **
  24  norm          13.652        4.9340        .35693E-08    .10336E-03
  25  Prefactor     14.983        15.663        .14598E-07    .46342E-04
  26  Prefactor     .10000E-03    3.1189        .92261E-07** at limit **
  27  Normalizat    1.0432        .18023        .67833E-06    .53917E-04
  28  Prefactor     .66069        .15951        .49794E-06    .58374E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.15082
  norm       = 0.0001001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.942739
  Prefactor  = 0.000100014
  norm       = 49.8835
  Prefactor  = 0.0001
  Prefactor  = 3.96263
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.92289
  Prefactor  = 45.9968
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.556645
  norm       = 0.0001
  Prefactor  = 8.9686
  Prefactor  = 3.52577
  norm       = 0.0001
  norm       = 13.6518
  Prefactor  = 14.9825
  Prefactor  = 0.0001
  Normalizat = 1.0432
  Prefactor  = 0.660693
 **********
 **   18 **HESSE 
 **********

 FCN=   5343.119     FROM HESSE     STATUS=OK           523 CALLS     4032 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1508        9.5161        .42904E-03   -1.5493    
   2  norm          .10010E-03    134.51        .58354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    27.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.2157        .14657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.4704        .86414E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .62744        .56404E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.6918        .13705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .94274        1.6795        .14406E-02   -1.5514    
   9  Prefactor     .10001E-03    61.342        .51442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          49.884        13.959        .56778E-04   -1.4294    
  11  Prefactor     .10000E-03    18.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.9626        58.648        .20149E-03   -1.5310    
  13  Prefactor     .10000E-03    3.1774        .12691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .16188        .28643E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.9229        2.8172        .14512E-03   -1.5431    
  16  Prefactor     45.997        61.462        .59116E-04   -1.4351    
  17  Prefactor     .10000E-03    11.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    111.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .55665        17.260        .35143E-02   -1.5559    
  20  norm          .10000E-03    13.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.9686        66.771        .13353E-03   -1.5109    
  22  Prefactor     3.5258        3.9376        .14010E-03   -1.5332    
  23  norm          .10000E-03    .17519        .58414E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          13.652        4.9188        .92240E-04   -1.4969    
  25  Prefactor     14.983        15.659        .10347E-03   -1.4934    
  26  Prefactor     .10000E-03    3.1493        .12598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0432        .21266        .22234E-03   -.91597    
  28  Prefactor     .66069        .18774        .24612E-03   -1.0509    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75967e-09
Minuit parameter uncertainties:
  1  6.61971
  2  0.00734131
  3  4.13958e-05
  4  2.99381e-07
  5  8.26016e-06
  6  1.41877e-07
  7  1.04154e-05
  8  1.6796
  9  0.00184601
  10  13.9596
  11  4.42632e-05
  12  30.525
  13  2.10896e-05
  14  7.97492e-07
  15  2.81739
  16  61.5468
  17  6.60106e-05
  18  0.000145117
  19  6.20058
  20  2.8803e-05
  21  49.019
  22  3.93792
  23  1.05672e-06
  24  4.91895
  25  15.6637
  26  9.77042e-06
  27  0.212829
  28  0.187915
Done.

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

Extracting fit parameters...

4FGL J2358.3-1021
   Spectrum: PowerLaw
544    Prefactor:  1.000e-04  9.770e-06  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:  6.607e-01  1.879e-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.043e+00  2.128e-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.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/233036/likelihoodResults_642643201_642902401_4FGL_J2358.3-1021_daily_bin1556.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) = 5343.12014638
delta logL = -0.00151185052164

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5343.11863459
delta logL = -5.91462594457e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5891       1.0000          .0000       10.000    
     3 'Normalizat'    1.0432       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66072       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=   5343.119     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      232 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10014E-03    105.92        .12607E-02** at limit **
   2  Index         2.5624        8.6957        .50000        .85977E-05
   3  Normalizat    1.0432        .25449E-01    .22234E-03   -.20913E-04
   4  Prefactor     .66069        .22996E-01    .24612E-03   -.10070E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100144
  Index      = 2.56239
  Normalizat = 1.0432
  Prefactor  = 0.660693
 **********
 **   18 **HESSE 
 **********

 FCN=   5343.119     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      261 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10014E-03    401.24        .25213E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5624        5.6088        .50000       -.50925    
   3  Normalizat    1.0432        .58447E-01    .88937E-05   -.91597    
   4  Prefactor     .66069        .52807E-01    .98448E-05   -1.0509    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.60795e-08
Minuit parameter uncertainties:
  1  0.0153112
  2  1217.32
  3  0.0584509
  4  0.0528109
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/233036': 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): 102
logL (Free Index) = 5343.11863449
delta logL = 4.67762220069e-08

Extracting fit parameters...

4FGL J2358.3-1021
   Spectrum: PowerLaw
544    Prefactor:  1.001e-04  1.531e-02  1.000e-04  1.000e+04 ( 1.000e-12)
545        Index:  2.562e+00  1.217e+03  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:  6.607e-01  5.281e-02  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.043e+00  5.845e-02  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/233036/cmap_HighResolution_642643201_642902401_4FGL_J2358.3-1021_daily_bin1556.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.09e-03', job_status='DONE', photon_flux_upper_limit='6.51e-08', time_completed='2021-09-30 11:43:08.345177', job_id='233036', GAL2='0.66', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1633027388.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='4.68e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1556' AND source_name='4FGL J2358.3-1021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 11:43:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 233036: <4FGL_J2358.3-1021_daily_bin1556> in cluster <slac> Done

Job <4FGL_J2358.3-1021_daily_bin1556> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep 30 11:31:03 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 11:31:04 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:04 2021
Terminated at Thu Sep 30 11:43:09 2021
Results reported at Thu Sep 30 11:43:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3-1021_daily_bin1556 359.582 -10.3616 642643201 642902401 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 :                                   690.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   724 sec.
    Turnaround time :                            726 sec.

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

