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


Performing analysis on: 4FGL_J2358.3-1021_daily_bin1344
RA = 359.582, Dec = -10.3616
tmin = 587692801, tmax = 587952001
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='232713', job_status='RUN', time_executed='2021-09-30 11:32:07.839596', time_epoch_executed='1633026727.84' WHERE source_name='4FGL J2358.3-1021' and cadence='daily' and bin_id='1344'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/232713

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/232713/ft1_4FGL_J2358.3-1021_daily_bin1344.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/232713/ft2_4FGL_J2358.3-1021_daily_bin1344.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/232713/ft1_4FGL_J2358.3-1021_daily_bin1344.fits outfile=/scratch/kocevski/232713/ft1_filteredMKT_4FGL_J2358.3-1021_daily_bin1344.fits ra=359.582 dec=-10.3616 rad=12.0 tmin=587692801.0 tmax=587952001.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.48
user 3.26
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/232713/ft1_filtered_4FGL_J2358.3-1021_daily_bin1344.fits" evtable="EVENTS" scfile=/scratch/kocevski/232713/ft2_4FGL_J2358.3-1021_daily_bin1344.fits sctable="SC_DATA" outfile=/scratch/kocevski/232713/ltcube_587692801_587952001_4FGL_J2358.3-1021_daily_bin1344.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/232713/ft2_4FGL_J2358.3-1021_daily_bin1344.fits
.....................!
real 11.95
user 11.56
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/232713/ft1_filtered_4FGL_J2358.3-1021_daily_bin1344.fits evtable="EVENTS" scfile=/scratch/kocevski/232713/ft2_4FGL_J2358.3-1021_daily_bin1344.fits sctable="SC_DATA" expcube=/scratch/kocevski/232713/ltcube_587692801_587952001_4FGL_J2358.3-1021_daily_bin1344.fits outfile=/scratch/kocevski/232713/expmap_587692801_587952001_4FGL_J2358.3-1021_daily_bin1344.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/232713/ltcube_587692801_587952001_4FGL_J2358.3-1021_daily_bin1344.fits
.....................!
real 189.98
user 185.12
sys 4.43

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/232713/ft1_filtered_4FGL_J2358.3-1021_daily_bin1344.fits scfile=/scratch/kocevski/232713/ft2_4FGL_J2358.3-1021_daily_bin1344.fits outfile=/scratch/kocevski/232713/cmap_587692801_587952001_4FGL_J2358.3-1021_daily_bin1344.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/232713/ft1_filtered_4FGL_J2358.3-1021_daily_bin1344.fits scfile=/scratch/kocevski/232713/ft2_4FGL_J2358.3-1021_daily_bin1344.fits outfile=/scratch/kocevski/232713/cmap_HighResolution_587692801_587952001_4FGL_J2358.3-1021_daily_bin1344.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31769E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    74.418       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.845       1.0000         .10000E-03   10000.    
     6 'norm      '    2.6060       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .15673       1.0000         .10000E-03   10000.    
    11 'Prefactor '    133.19       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.5036       1.0000         .10000E-03   10000.    
    20 'norm      '    2.3531       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .15692E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10176E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.2215       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2689       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .73589       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=   5345.808     FROM MIGRAD    STATUS=CONVERGED   1255 CALLS     4202 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    44.375        .36519E-02** at limit **
   2  norm          .10000E-03    30.926        .18142E-02** at limit **
   3  Prefactor     74.493        86.356        .23271E-03   -.55741E-04
   4  Prefactor     .10000E-03    61.650        .36285E-03** at limit **
   5  Prefactor     15.849        10.584        .10062E-03   -.89601E-04
   6  norm          2.6082        3.2122        .13615E-03   -.42844E-03
   7  Prefactor     .10000E-03    8.1758        .18142E-02** at limit **
   8  norm          .10000E-03    4.2012        .28766E-03** at limit **
   9  Prefactor     .10000E-03    6.3576        .18004E-02** at limit **
  10  norm          .10475        17.188        .62371E-01    .20922E-03
  11  Prefactor     133.16        79.358        .17447E-03    .10947E-04
  12  Prefactor     .10000E-03    10.039        .18142E-02** at limit **
  13  Prefactor     .10000E-03    6.3061        .17892E-02** at limit **
  14  norm          .10000E-03    .36211        .42534E-03** at limit **
  15  norm          .10000E-03    3.7621        .13744E-02** at limit **
  16  Prefactor     .10000E-03    14.891        .18142E-02** at limit **
  17  Prefactor     .10000E-03    6.2911        .17898E-02** at limit **
  18  Prefactor     .10000E-03    135.19        .18142E-02** at limit **
  19  Prefactor     9.4882        14.635        .13000E-03   -.74336E-05
  20  norm          2.3865        55.821        .26720E-03    .21486E-04
  21  Prefactor     .10000E-03    62.062        .18142E-02** at limit **
  22  Prefactor     .10001E-03    15.520        .23730E-02** at limit **
  23  norm          .10000E-03    1.1426        .84467E-03** at limit **
  24  norm          .10000E-03    18.232        .19954E-02** at limit **
  25  Prefactor     8.2189        19.224        .13982E-03   -.10895E-04
  26  Prefactor     .10000E-03    2.0974        .10331E-02** at limit **
  27  Normalizat    1.2689        .24426        .23484E-03   -.29259E-03
  28  Prefactor     .73614        .20749        .26440E-03    .16391E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100025
  norm       = 0.0001
  Prefactor  = 74.4931
  Prefactor  = 0.000100004
  Prefactor  = 15.8489
  norm       = 2.6082
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.104751
  Prefactor  = 133.16
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.48816
  norm       = 2.38653
  Prefactor  = 0.000100001
  Prefactor  = 0.000100005
  norm       = 0.0001
  norm       = 0.000100005
  Prefactor  = 8.21893
  Prefactor  = 0.0001
  Normalizat = 1.26886
  Prefactor  = 0.736141
 **********
 **   18 **HESSE 
 **********

 FCN=   5345.808     FROM HESSE     STATUS=OK           501 CALLS     4703 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    44.762        .73038E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    30.929        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     74.493        86.225        .93086E-05   -1.3980    
   4  Prefactor     .10000E-03    61.653        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.849        10.580        .40247E-05   -1.4912    
   6  norm          2.6082        3.2095        .54461E-05   -1.5385    
   7  Prefactor     .10000E-03    8.1771        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.2012        .57533E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.3576        .36008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10475        13.456        .72587E-01   -1.5643    
  11  Prefactor     133.16        79.338        .69787E-05   -1.3395    
  12  Prefactor     .10000E-03    10.040        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.3064        .35785E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .36213        .85068E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.7633        .27488E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.892        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.2914        .35795E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    135.19        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.4882        14.609        .51998E-05   -1.5092    
  20  norm          2.3865        55.611        .10688E-04   -1.5399    
  21  Prefactor     .10000E-03    62.064        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    15.625        .47459E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.1530        .16893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    18.494        .39908E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     8.2189        19.219        .55929E-05   -1.5135    
  26  Prefactor     .10000E-03    2.0975        .20663E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.2689        .24437        .46968E-04   -.84501    
  28  Prefactor     .73614        .20768        .10576E-04   -1.0213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.07143e-09
Minuit parameter uncertainties:
  1  0.00213296
  2  3.08234e-05
  3  86.3705
  4  0.00102917
  5  10.5811
  6  3.20968
  7  1.75559e-06
  8  8.00824e-06
  9  4.24495e-06
  10  2.37387
  11  79.402
  12  5.33516e-06
  13  0.00016289
  14  1.42317e-06
  15  5.36718e-05
  16  2.08667e-05
  17  1.35244e-05
  18  3.77278e-05
  19  14.6146
  20  23.0642
  21  0.000387886
  22  0.000576996
  23  3.62814e-05
  24  0.000577674
  25  19.233
  26  7.17454e-06
  27  0.244594
  28  0.207899
Done.

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

Extracting fit parameters...

4FGL J2358.3-1021
   Spectrum: PowerLaw
544    Prefactor:  1.000e-04  7.175e-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:  7.361e-01  2.079e-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.269e+00  2.446e-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.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/232713/likelihoodResults_587692801_587952001_4FGL_J2358.3-1021_daily_bin1344.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) = 5345.81052475
delta logL = -0.00223378853116

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5345.80829089
delta logL = 7.84930307418e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5813       1.0000          .0000       10.000    
     3 'Normalizat'    1.2689       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73616       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=   5345.808     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      248 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.654        .10392E-01** at limit **
   2  Index         2.1983        5.3705        .50000        .39449E-07
   3  Normalizat    1.2689        .13132E-01    .23484E-03   -.20805E-03
   4  Prefactor     .73613        .11645E-01    .26440E-03   -.17896E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.19829
  Normalizat = 1.26886
  Prefactor  = 0.736135
 **********
 **   18 **HESSE 
 **********

 FCN=   5345.808     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    145.77        .10886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1983        8.8970        .50000       -.59480    
   3  Normalizat    1.2689        .41639E-01    .46968E-04   -.84501    
   4  Prefactor     .73613        .36925E-01    .10576E-04   -1.0213    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.44796e-09
Minuit parameter uncertainties:
  1  0.000261667
  2  719.839
  3  0.04164
  4  0.0369258
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/232713': 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) = 5345.80828861
delta logL = 2.35887546296e-06

Extracting fit parameters...

4FGL J2358.3-1021
   Spectrum: PowerLaw
544    Prefactor:  1.000e-04  2.617e-04  1.000e-04  1.000e+04 ( 1.000e-12)
545        Index:  2.198e+00  7.198e+02  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.361e-01  3.693e-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.269e+00  4.164e-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/232713/cmap_HighResolution_587692801_587952001_4FGL_J2358.3-1021_daily_bin1344.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.99e-03', job_status='DONE', photon_flux_upper_limit='6.38e-08', time_completed='2021-09-30 11:45:11.538138', job_id='232713', GAL2='0.74', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1633027511.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='2.36e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1344' AND source_name='4FGL J2358.3-1021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 11:45:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 232713: <4FGL_J2358.3-1021_daily_bin1344> in cluster <slac> Done

Job <4FGL_J2358.3-1021_daily_bin1344> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep 30 11:30:39 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 11:30:41 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:30:41 2021
Terminated at Thu Sep 30 11:45:12 2021
Results reported at Thu Sep 30 11:45:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3-1021_daily_bin1344 359.582 -10.3616 587692801 587952001 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 :                                   737.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            873 sec.

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

