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


Performing analysis on: 4FGL_J2358.0-4601_daily_bin994
RA = 359.522, Dec = -46.0176
tmin = 496972801, tmax = 497232001
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='216076', job_status='RUN', time_executed='2021-09-30 10:33:48.702360', time_epoch_executed='1633023228.7' WHERE source_name='4FGL J2358.0-4601' and cadence='daily' and bin_id='994'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/216076

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/216076/ft1_4FGL_J2358.0-4601_daily_bin994.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/216076/ft2_4FGL_J2358.0-4601_daily_bin994.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/216076/ft1_4FGL_J2358.0-4601_daily_bin994.fits outfile=/scratch/kocevski/216076/ft1_filteredMKT_4FGL_J2358.0-4601_daily_bin994.fits ra=359.522 dec=-46.0176 rad=12.0 tmin=496972801.0 tmax=497232001.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 5.14
user 4.85
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/216076/ft1_filtered_4FGL_J2358.0-4601_daily_bin994.fits" evtable="EVENTS" scfile=/scratch/kocevski/216076/ft2_4FGL_J2358.0-4601_daily_bin994.fits sctable="SC_DATA" outfile=/scratch/kocevski/216076/ltcube_496972801_497232001_4FGL_J2358.0-4601_daily_bin994.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/216076/ft2_4FGL_J2358.0-4601_daily_bin994.fits
.....................!
real 11.89
user 11.53
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/216076/ft1_filtered_4FGL_J2358.0-4601_daily_bin994.fits evtable="EVENTS" scfile=/scratch/kocevski/216076/ft2_4FGL_J2358.0-4601_daily_bin994.fits sctable="SC_DATA" expcube=/scratch/kocevski/216076/ltcube_496972801_497232001_4FGL_J2358.0-4601_daily_bin994.fits outfile=/scratch/kocevski/216076/expmap_496972801_497232001_4FGL_J2358.0-4601_daily_bin994.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/216076/ltcube_496972801_497232001_4FGL_J2358.0-4601_daily_bin994.fits
.....................!
real 190.35
user 185.15
sys 4.87

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/216076/ft1_filtered_4FGL_J2358.0-4601_daily_bin994.fits scfile=/scratch/kocevski/216076/ft2_4FGL_J2358.0-4601_daily_bin994.fits outfile=/scratch/kocevski/216076/cmap_496972801_497232001_4FGL_J2358.0-4601_daily_bin994.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/216076/ft1_filtered_4FGL_J2358.0-4601_daily_bin994.fits scfile=/scratch/kocevski/216076/ft2_4FGL_J2358.0-4601_daily_bin994.fits outfile=/scratch/kocevski/216076/cmap_HighResolution_496972801_497232001_4FGL_J2358.0-4601_daily_bin994.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/216076/ft1_filtered_4FGL_J2358.0-4601_daily_bin994.fits evtable="EVENTS" scfile=/scratch/kocevski/216076/ft2_4FGL_J2358.0-4601_daily_bin994.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/216076/Model_4FGL_J2358.0-4601_daily_bin994.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/216076/ft1_filtered_4FGL_J2358.0-4601_daily_bin994.fits.....................!
real 29.22
user 27.99
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10265E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.056       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    33.341       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.7188       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .47351       1.0000         .10000E-03   10000.    
     9 'norm      '    3.0435       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .23339E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    10.128       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8739       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.4569       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.562       1.0000         .10000E-03   10000.    
    23 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .50773       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    5.6577       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .68920       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .76103       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=   3243.623     FROM MIGRAD    STATUS=CONVERGED    826 CALLS     4370 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.390       -.35443E-05** at limit **
   2  Prefactor     .10000E-03    17.330        .45636E-06** at limit **
   3  Prefactor     .10000E-03    17.711        .71153E-07** at limit **
   4  Prefactor     10.056        11.782        .11005E-05    .83233E-04
   5  Prefactor     .10000E-03    3.4499       -.28645E-07** at limit **
   6  Prefactor     33.334        28.914       -.14982E-05   -.33301E-03
   7  Prefactor     7.7197        7.7735        .16102E-05    .18877E-03
   8  Prefactor     .46810        7.1250        .18030E-05   -.25948E-03
   9  norm          3.0419        225.30       -.27914E-05   -.11192E-04
  10  Prefactor     .10000E-03    45.860        .85681E-06** at limit **
  11  norm          .10000E-03    35.423        .29931E-05** at limit **
  12  Prefactor     .10000E-03    45.617        .16330E-05** at limit **
  13  Prefactor     .10000E-03    30.011       -.58660E-06** at limit **
  14  Prefactor     .10000E-03    5.7222        .61311E-07** at limit **
  15  norm          .10086E-03    13.558       -.40294E-05** at limit **
  16  norm          10.129        8.8982       -.14612E-06   -.39177E-05
  17  norm          .10000E-03    2.0240       -.15247E-07** at limit **
  18  norm          .10000E-03    2.8755       -.48717E-08** at limit **
  19  Prefactor     2.8679        14.782       -.49194E-06    .59799E-04
  20  Prefactor     .10000E-03    11.189       -.11008E-05** at limit **
  21  norm          8.4562        4.4938       -.20500E-06   -.27127E-03
  22  Prefactor     11.584        27.540        .24394E-05    .30616E-03
  23  norm          .10000E-03    .44726        .78135E-07** at limit **
  24  norm          .50808        3.3586        .12703E-05    .15940E-03
  25  Prefactor     .10000E-03    6.7164       -.11505E-06** at limit **
  26  Prefactor     .10000E-03    2.6967        .17475E-06** at limit **
  27  Prefactor     .10000E-03    15.970        .19311E-05** at limit **
  28  norm          .10000E-03    8.9080        .54124E-06** at limit **
  29  Prefactor     .10000E-03    1.7549        .13797E-07** at limit **
  30  Prefactor     5.6574        4.8616        .21541E-06    .42908E-04
  31  Normalizat    .68909        .17557       -.22879E-05   -.12537E-03
  32  Prefactor     .76119        .19372        .11170E-05   -.12878E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0556
  Prefactor  = 0.0001
  Prefactor  = 33.3342
  Prefactor  = 7.71966
  Prefactor  = 0.468099
  norm       = 3.04194
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100856
  norm       = 10.1292
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.86791
  Prefactor  = 0.0001
  norm       = 8.45621
  Prefactor  = 11.5842
  norm       = 0.0001
  norm       = 0.508084
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.65739
  Normalizat = 0.689089
  Prefactor  = 0.761187
 **********
 **   18 **HESSE 
 **********

 FCN=   3243.623     FROM HESSE     STATUS=OK           653 CALLS     5023 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.056        11.771        .63178E-03   -1.5074    
   5  Prefactor     .10000E-03    3.4554        .10330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     33.334        29.046        .69398E-04   -1.4553    
   7  Prefactor     7.7197        7.9298        .72167E-03   -1.5152    
   8  Prefactor     .46810        13.413        .23941E-02   -1.5571    
   9  norm          3.0419        222.18        .23257E-03   -1.5359    
  10  Prefactor     .10000E-03    46.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    35.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    45.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    30.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.7310        .13306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10086E-03    70.757        .35295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.129        8.8864        .12591E-03   -1.5071    
  17  norm          .10000E-03    2.0243        .79115E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.8761        .94324E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.8679        15.557        .23976E-03   -1.5369    
  20  Prefactor     .10000E-03    11.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.4562        4.4750        .83563E-04   -1.5126    
  22  Prefactor     11.584        28.606        .11781E-03   -1.5027    
  23  norm          .10000E-03    .45189        .37095E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .50808        3.3374        .20066E-03   -1.5565    
  25  Prefactor     .10000E-03    6.7317        .14416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    2.7987        .18247E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    16.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    8.9174        .16610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1.7626        .73674E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     5.6574        4.8646        .10932E-03   -1.5232    
  31  Normalizat    .68909        .20537        .20060E-03   -1.0433    
  32  Prefactor     .76119        .22859        .22206E-03   -1.0118    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25276e-08
Minuit parameter uncertainties:
  1  0.000568637
  2  4.36417e-05
  3  6.37721e-06
  4  11.774
  5  9.45045e-07
  6  29.0581
  7  7.93088
  8  5.01207
  9  52.1961
  10  9.08067e-05
  11  0.000584505
  12  0.00037063
  13  0.000100105
  14  3.66053e-06
  15  0.0155821
  16  8.88754
  17  3.06802e-07
  18  4.23777e-07
  19  13.3643
  20  0.000119148
  21  4.47522
  22  28.6398
  23  2.57135e-07
  24  2.60433
  25  7.93615e-06
  26  1.37893e-06
  27  0.000214001
  28  5.27057e-05
  29  5.38996e-07
  30  4.86494
  31  0.2056
  32  0.228875
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  7.612e-01  2.289e-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:  6.891e-01  2.056e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.95
Ra Dec: 359.522 -46.018
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 4.73e-08 +/- 4.06e-08
Energy Flux (Fixed Index): 1.26e-05 +/- 1.08e-05

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

Saving results to:
/scratch/kocevski/216076/likelihoodResults_496972801_497232001_4FGL_J2358.0-4601_daily_bin994.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3242.25764593
delta logL = 1.36522282093

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3242.23481909
delta logL = 1.38804966593

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3242.235     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      248 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .65224        6.6718        .55554E-02    .51816E-03
   2  Index         4.5430        3.3862        .85862E-01    .88471E-04
   3  Normalizat    .61819        .59613E-01    .41195E-01   -.10021E-04
   4  Prefactor     .81880        .68887E-01    .43953E-01   -.85460E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.652238
  Index      = 4.54295
  Normalizat = 0.618185
  Prefactor  = 0.818804
 **********
 **   18 **HESSE 
 **********

 FCN=   3242.235     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      281 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .65224        10.226        .24814E-04   -1.5546    
   2  Index         4.5430        4.1713        .35887E-02   -.91537E-01
   3  Normalizat    .61819        .19301        .21014E-03   -1.0722    
   4  Prefactor     .81880        .22349        .21465E-03   -.99039    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.51893e-10
Minuit parameter uncertainties:
  1  5.16578
  2  4.94508
  3  0.193221
  4  0.223742
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/216076': 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) = 3242.23481041
delta logL = 1.38805834849

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  6.522e-01  5.166e+00  1.000e-04  1.000e+04 ( 1.000e-12)
570        Index:  4.543e+00  4.945e+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.188e-01  2.237e-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:  6.182e-01  1.932e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.98
Ra Dec: 359.522 -46.018
Photon Index (Free Index): 4.54 +/- 4.95
Photon Flux (Free Index): 9.97e-08 +/- 5.67e-08
Energy Flux (Free Index): 1.39e-05 +/- 1.04e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/216076/cmap_HighResolution_496972801_497232001_4FGL_J2358.0-4601_daily_bin994.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', photon_flux='4.73e-08', energy_flux2='1.39e-05', photon_flux_error='4.06e-08', dlogl='1.39e+00', energy_flux='1.26e-05', photon_flux2='9.97e-08', job_status='DONE', time_completed='2021-09-30 10:44:24.385878', photon_index_error2='4.95', photon_index2='4.54', ts='1.95', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='1.33e-07', energy_flux_error2='1.04e-05', EG='0.69', time_epoch_completed='1633023864.39', return_code='0', job_id='216076', GAL2='0.82', EG2='0.62', return_code2='102', energy_flux_error='1.08e-05', photon_flux_error2='5.67e-08', ts2='4.98', photon_index='2.58' WHERE bin_id='994' AND source_name='4FGL J2358.0-4601' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 10:44:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 216076: <4FGL_J2358.0-4601_daily_bin994> in cluster <slac> Done

Job <4FGL_J2358.0-4601_daily_bin994> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 10:30:31 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 10:30:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 10:30:33 2021
Terminated at Thu Sep 30 10:44:25 2021
Results reported at Thu Sep 30 10:44:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.0-4601_daily_bin994 359.522 -46.0176 496972801 497232001 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 :                                   631.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            834 sec.

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

