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


Performing analysis on: 4FGL_J2358.0-4601_daily_bin1059
RA = 359.522, Dec = -46.0176
tmin = 513820801, tmax = 514080001
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='216176', job_status='RUN', time_executed='2021-09-30 10:33:12.482708', time_epoch_executed='1633023192.48' WHERE source_name='4FGL J2358.0-4601' and cadence='daily' and bin_id='1059'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/216176

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/216176/ft1_4FGL_J2358.0-4601_daily_bin1059.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/216176/ft2_4FGL_J2358.0-4601_daily_bin1059.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/216176/ft1_4FGL_J2358.0-4601_daily_bin1059.fits outfile=/scratch/kocevski/216176/ft1_filteredMKT_4FGL_J2358.0-4601_daily_bin1059.fits ra=359.522 dec=-46.0176 rad=12.0 tmin=513820801.0 tmax=514080001.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.76
user 3.51
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/216176/ft1_filtered_4FGL_J2358.0-4601_daily_bin1059.fits" evtable="EVENTS" scfile=/scratch/kocevski/216176/ft2_4FGL_J2358.0-4601_daily_bin1059.fits sctable="SC_DATA" outfile=/scratch/kocevski/216176/ltcube_513820801_514080001_4FGL_J2358.0-4601_daily_bin1059.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/216176/ft2_4FGL_J2358.0-4601_daily_bin1059.fits
.....................!
real 12.04
user 11.69
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/216176/ft1_filtered_4FGL_J2358.0-4601_daily_bin1059.fits evtable="EVENTS" scfile=/scratch/kocevski/216176/ft2_4FGL_J2358.0-4601_daily_bin1059.fits sctable="SC_DATA" expcube=/scratch/kocevski/216176/ltcube_513820801_514080001_4FGL_J2358.0-4601_daily_bin1059.fits outfile=/scratch/kocevski/216176/expmap_513820801_514080001_4FGL_J2358.0-4601_daily_bin1059.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/216176/ltcube_513820801_514080001_4FGL_J2358.0-4601_daily_bin1059.fits
.....................!
real 190.79
user 185.01
sys 5.46

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/216176/ft1_filtered_4FGL_J2358.0-4601_daily_bin1059.fits scfile=/scratch/kocevski/216176/ft2_4FGL_J2358.0-4601_daily_bin1059.fits outfile=/scratch/kocevski/216176/cmap_513820801_514080001_4FGL_J2358.0-4601_daily_bin1059.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.52
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/216176/ft1_filtered_4FGL_J2358.0-4601_daily_bin1059.fits scfile=/scratch/kocevski/216176/ft2_4FGL_J2358.0-4601_daily_bin1059.fits outfile=/scratch/kocevski/216176/cmap_HighResolution_513820801_514080001_4FGL_J2358.0-4601_daily_bin1059.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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/216176/ft1_filtered_4FGL_J2358.0-4601_daily_bin1059.fits evtable="EVENTS" scfile=/scratch/kocevski/216176/ft2_4FGL_J2358.0-4601_daily_bin1059.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/216176/Model_4FGL_J2358.0-4601_daily_bin1059.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/216176/ft1_filtered_4FGL_J2358.0-4601_daily_bin1059.fits.....................!
real 33.50
user 32.24
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    52.909       1.0000         .10000E-03   10000.    
     3 'Prefactor '    151.36       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.724       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.009       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.138       1.0000         .10000E-03   10000.    
    11 'norm      '    60.086       1.0000         .10000E-03   10000.    
    12 'Prefactor '    61.861       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.7422       1.0000         .10000E-03   10000.    
    16 'norm      '    .11550E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.3989       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.1422       1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.841       1.0000         .10000E-03   10000.    
    21 'norm      '    9.7703       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.0703       1.0000         .10000E-03   10000.    
    25 'Prefactor '    11.916       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .99478       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    18.692       1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.2597       1.0000         .10000E-03   10000.    
    30 'Prefactor '    8.0041       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .76333       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .89175       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=   3955.753     FROM MIGRAD    STATUS=CONVERGED    851 CALLS     4401 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    173.29        .65007E-06** at limit **
   2  Prefactor     52.913        41.824        .75090E-06    .26769E-04
   3  Prefactor     151.37        77.321        .31195E-05    .57721E-04
   4  Prefactor     12.725        12.424        .16094E-06   -.26270E-05
   5  Prefactor     .10000E-03    4.7079       -.61492E-08** at limit **
   6  Prefactor     .10000E-03    9.2747        .26692E-06** at limit **
   7  Prefactor     10.010        14.064       -.23798E-06   -.99696E-05
   8  Prefactor     .10000E-03    1.9037        .67269E-08** at limit **
   9  norm          .10000E-03    10.580       -.89029E-07** at limit **
  10  Prefactor     28.140        24.785       -.57600E-07   -.54962E-05
  11  norm          60.086        43.010        .28172E-06    .54010E-06
  12  Prefactor     61.852        61.403       -.46518E-05   -.48395E-04
  13  Prefactor     .10000E-03    37.859       -.21986E-06** at limit **
  14  Prefactor     .10000E-03    8.5519        .57573E-07** at limit **
  15  norm          2.7419        31.203       -.20270E-06   -.21793E-04
  16  norm          .10001E-03    6.5777        .77425E-06** at limit **
  17  norm          .10000E-03    3.8618       -.12609E-07** at limit **
  18  norm          2.3969        6.0526        .22287E-05   -.94697E-03
  19  Prefactor     3.1365        8.6505       -.27613E-05   -.41809E-03
  20  Prefactor     22.859        64.482        .17271E-04    .56907E-04
  21  norm          9.7692        10.188       -.28978E-05   -.23924E-04
  22  Prefactor     .10000E-03    21.303        .49390E-06** at limit **
  23  norm          .10000E-03    .61222        .17254E-06** at limit **
  24  norm          2.0692        6.0698       -.13046E-06   -.14836E-03
  25  Prefactor     11.915        12.914        .10098E-06    .54292E-06
  26  Prefactor     .99474        6.8553       -.22876E-06   -.25000E-03
  27  Prefactor     .10000E-03    60.270        .28561E-06** at limit **
  28  norm          18.690        29.656        .79957E-07    .22627E-05
  29  Prefactor     4.2606        7.9216       -.34281E-06   -.69564E-04
  30  Prefactor     8.0051        7.4474       -.15034E-08   -.30398E-04
  31  Normalizat    .76313        .22144       -.17716E-05    .22180E-05
  32  Prefactor     .89196        .23321        .11909E-05   -.10939E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 52.9133
  Prefactor  = 151.373
  Prefactor  = 12.7248
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.01
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 28.1399
  norm       = 60.0864
  Prefactor  = 61.8524
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.74193
  norm       = 0.000100009
  norm       = 0.0001
  norm       = 2.39693
  Prefactor  = 3.13649
  Prefactor  = 22.859
  norm       = 9.76919
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.06924
  Prefactor  = 11.9152
  Prefactor  = 0.994737
  Prefactor  = 0.0001
  norm       = 18.6902
  Prefactor  = 4.26056
  Prefactor  = 8.00508
  Normalizat = 0.763131
  Prefactor  = 0.891962
 **********
 **   18 **HESSE 
 **********

 FCN=   3955.753     FROM HESSE     STATUS=OK           667 CALLS     5068 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    177.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     52.913        41.749        .55140E-04   -1.4252    
   3  Prefactor     151.37        76.715        .32761E-04   -1.3241    
   4  Prefactor     12.725        12.429        .11230E-03   -1.4994    
   5  Prefactor     .10000E-03    4.7157        .13324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.2764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.010        14.079        .12666E-03   -1.5075    
   8  Prefactor     .10000E-03    1.9060        .84726E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    10.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     28.140        24.793        .75526E-04   -1.4647    
  11  norm          60.086        43.062        .51760E-04   -1.4156    
  12  Prefactor     61.852        61.272        .51017E-04   -1.4133    
  13  Prefactor     .10000E-03    37.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.5777        .17961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.7419        30.818        .24586E-03   -1.5377    
  16  norm          .10001E-03    16.254        .29186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.8660        .12060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.3969        14.219        .13219E-02   -1.5398    
  19  Prefactor     3.1365        8.0511        .22869E-03   -1.5354    
  20  Prefactor     22.859        63.677        .83811E-04   -1.4751    
  21  norm          9.7692        10.035        .12820E-03   -1.5083    
  22  Prefactor     .10000E-03    21.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.0320        .91840E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.0692        5.9701        .22624E-03   -1.5420    
  25  Prefactor     11.915        12.911        .11605E-03   -1.5017    
  26  Prefactor     .99474        6.5694        .27365E-02   -1.5508    
  27  Prefactor     .10000E-03    60.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          18.690        29.623        .92638E-04   -1.4843    
  29  Prefactor     4.2606        7.7602        .19522E-03   -1.5295    
  30  Prefactor     8.0051        7.4545        .14172E-03   -1.5142    
  31  Normalizat    .76313        .26205        .24823E-03   -1.0145    
  32  Prefactor     .89196        .27773        .25630E-03   -.96423    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97904e-08
Minuit parameter uncertainties:
  1  3.67297e-05
  2  41.7718
  3  76.7651
  4  12.4319
  5  7.38212e-06
  6  5.40266e-06
  7  14.084
  8  2.85197e-07
  9  1.44628e-06
  10  24.8025
  11  43.0839
  12  61.3347
  13  1.75785e-06
  14  1.67186e-05
  15  18.3964
  16  0.000758555
  17  8.06427e-06
  18  11.6798
  19  8.05387
  20  63.867
  21  10.0371
  22  0.000163488
  23  2.91293e-05
  24  5.97186
  25  12.9136
  26  5.11322
  27  8.75926e-06
  28  29.6466
  29  7.76202
  30  7.45532
  31  0.262487
  32  0.278167
Done.

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

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  8.005e+00  7.455e+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:  8.920e-01  2.782e-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:  7.631e-01  2.625e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.88
Ra Dec: 359.522 -46.018
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 6.69e-08 +/- 6.22e-08
Energy Flux (Fixed Index): 1.78e-05 +/- 1.66e-05

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

Saving results to:
/scratch/kocevski/216176/likelihoodResults_513820801_514080001_4FGL_J2358.0-4601_daily_bin1059.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) = 3953.85348653
delta logL = 1.8994135054

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3953.72862457
delta logL = 2.02427546

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13616       1.0000         .10000E-03   10000.    
     2 'Index     '    5.8189       1.0000          .0000       10.000    
     3 'Normalizat'    .62767       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0137       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=   3953.729     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      274 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13559        1.1075        .24788E-02   -.41001E-02
   2  Index         5.8216        2.9421        .79092E-01   -.61663E-04
   3  Normalizat    .62779        .70785E-01    .61129E-01   -.53827E-04
   4  Prefactor     1.0135        .79105E-01    .42836E-01   -.56327E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.135594
  Index      = 5.82159
  Normalizat = 0.627786
  Prefactor  = 1.01351
 **********
 **   18 **HESSE 
 **********

 FCN=   3953.729     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      307 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13559        1.6750        .11050E-04   -1.5634    
   2  Index         5.8216        3.6274        .33546E-02    .16507    
   3  Normalizat    .62779        .22409        .27043E-03   -1.0682    
   4  Prefactor     1.0135        .24512        .24228E-03   -.92281    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.1964e-10
Minuit parameter uncertainties:
  1  0.952814
  2  4.07573
  3  0.224419
  4  0.24539
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/216176': 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) = 3953.72862322
delta logL = 2.02427680786

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  1.356e-01  9.528e-01  1.000e-04  1.000e+04 ( 1.000e-12)
570        Index:  5.822e+00  4.076e+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:  1.014e+00  2.454e-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.278e-01  2.244e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.48
Ra Dec: 359.522 -46.018
Photon Index (Free Index): 5.82 +/- 4.08
Photon Flux (Free Index): 1.72e-07 +/- 8.88e-08
Energy Flux (Free Index): 2.16e-05 +/- 1.33e-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/216176/cmap_HighResolution_513820801_514080001_4FGL_J2358.0-4601_daily_bin1059.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.44e-02', comment='SUCCESS', photon_flux='6.69e-08', energy_flux2='2.16e-05', photon_flux_error='6.22e-08', dlogl='2.02e+00', energy_flux='1.78e-05', photon_flux2='1.72e-07', job_status='DONE', time_completed='2021-09-30 10:44:55.299036', photon_index_error2='4.08', photon_index2='5.82', ts='1.88', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.84e-07', energy_flux_error2='1.33e-05', EG='0.76', time_epoch_completed='1633023895.3', return_code='0', job_id='216176', GAL2='1.01', EG2='0.63', return_code2='102', energy_flux_error='1.66e-05', photon_flux_error2='8.88e-08', ts2='6.48', photon_index='2.58' WHERE bin_id='1059' AND source_name='4FGL J2358.0-4601' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 10:44:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 216176: <4FGL_J2358.0-4601_daily_bin1059> in cluster <slac> Done

Job <4FGL_J2358.0-4601_daily_bin1059> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 10:30:40 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 10:30:43 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:43 2021
Terminated at Thu Sep 30 10:44:55 2021
Results reported at Thu Sep 30 10:44:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.0-4601_daily_bin1059 359.522 -46.0176 513820801 514080001 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 :                                   697.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            855 sec.

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

