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


Performing analysis on: 4FGL_J2358.0-4601_daily_bin1005
RA = 359.522, Dec = -46.0176
tmin = 499824001, tmax = 500083201
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='216095', job_status='RUN', time_executed='2021-09-30 10:31:00.387729', time_epoch_executed='1633023060.39' WHERE source_name='4FGL J2358.0-4601' and cadence='daily' and bin_id='1005'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/216095

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/216095/ft1_4FGL_J2358.0-4601_daily_bin1005.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/216095/ft2_4FGL_J2358.0-4601_daily_bin1005.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/216095/ft1_4FGL_J2358.0-4601_daily_bin1005.fits outfile=/scratch/kocevski/216095/ft1_filteredMKT_4FGL_J2358.0-4601_daily_bin1005.fits ra=359.522 dec=-46.0176 rad=12.0 tmin=499824001.0 tmax=500083201.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.19
user 4.89
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/216095/ft2_4FGL_J2358.0-4601_daily_bin1005.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/216095/ft1_filteredMKT_4FGL_J2358.0-4601_daily_bin1005.fits evtable="EVENTS" outfile="/scratch/kocevski/216095/ft1_filtered_4FGL_J2358.0-4601_daily_bin1005.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/216095/ft1_filtered_4FGL_J2358.0-4601_daily_bin1005.fits" evtable="EVENTS" scfile=/scratch/kocevski/216095/ft2_4FGL_J2358.0-4601_daily_bin1005.fits sctable="SC_DATA" outfile=/scratch/kocevski/216095/ltcube_499824001_500083201_4FGL_J2358.0-4601_daily_bin1005.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/216095/ft2_4FGL_J2358.0-4601_daily_bin1005.fits
.....................!
real 11.81
user 11.45
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/216095/ft1_filtered_4FGL_J2358.0-4601_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/216095/ft2_4FGL_J2358.0-4601_daily_bin1005.fits sctable="SC_DATA" expcube=/scratch/kocevski/216095/ltcube_499824001_500083201_4FGL_J2358.0-4601_daily_bin1005.fits outfile=/scratch/kocevski/216095/expmap_499824001_500083201_4FGL_J2358.0-4601_daily_bin1005.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/216095/ltcube_499824001_500083201_4FGL_J2358.0-4601_daily_bin1005.fits
.....................!
real 192.17
user 187.07
sys 4.74

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/216095/ft1_filtered_4FGL_J2358.0-4601_daily_bin1005.fits scfile=/scratch/kocevski/216095/ft2_4FGL_J2358.0-4601_daily_bin1005.fits outfile=/scratch/kocevski/216095/cmap_499824001_500083201_4FGL_J2358.0-4601_daily_bin1005.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/216095/ft1_filtered_4FGL_J2358.0-4601_daily_bin1005.fits scfile=/scratch/kocevski/216095/ft2_4FGL_J2358.0-4601_daily_bin1005.fits outfile=/scratch/kocevski/216095/cmap_HighResolution_499824001_500083201_4FGL_J2358.0-4601_daily_bin1005.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.54
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/216095/ft1_filtered_4FGL_J2358.0-4601_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/216095/ft2_4FGL_J2358.0-4601_daily_bin1005.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/216095/Model_4FGL_J2358.0-4601_daily_bin1005.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/216095/ft1_filtered_4FGL_J2358.0-4601_daily_bin1005.fits.......................!
real 21.63
user 20.31
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5266       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    45.404       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    60.129       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.229       1.0000         .10000E-03   10000.    
    15 'norm      '    21.453       1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.7699       1.0000         .10000E-03   10000.    
    18 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.230       1.0000         .10000E-03   10000.    
    21 'norm      '    .10154E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10392E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.2929       1.0000         .10000E-03   10000.    
    28 'norm      '    20.752       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10587E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .95329       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .96106       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=   1601.605     FROM MIGRAD    STATUS=CONVERGED    806 CALLS     4219 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    82.690        .18506E-05** at limit **
   2  Prefactor     .10000E-03    24.411        .10191E-05** at limit **
   3  Prefactor     .10000E-03    34.372        .16527E-05** at limit **
   4  Prefactor     .10000E-03    10.231        .12068E-08** at limit **
   5  Prefactor     1.5237        15.714        .11575E-04   -.53990E-05
   6  Prefactor     .10000E-03    23.373        .32481E-06** at limit **
   7  Prefactor     .10000E-03    9.6501       -.63194E-06** at limit **
   8  Prefactor     .10000E-03    4.5523       -.56824E-07** at limit **
   9  norm          45.413        46.195       -.10229E-05    .86054E-05
  10  Prefactor     .10000E-03    23.982        .70533E-06** at limit **
  11  norm          .10000E-03    22.763       -.91425E-07** at limit **
  12  Prefactor     .10000E-03    45.780       -.36018E-05** at limit **
  13  Prefactor     60.053        96.212        .10857E-04   -.26270E-04
  14  Prefactor     14.229        19.316       -.79390E-07   -.53445E-05
  15  norm          21.454        22.946        .11040E-06   -.13403E-05
  16  norm          .10000E-03    5.0123        .13658E-07** at limit **
  17  norm          2.7745        9.4555        .13521E-05    .29393E-04
  18  norm          .10000E-03    13.361        .13445E-06** at limit **
  19  Prefactor     .10000E-03    6.5787       -.13933E-06** at limit **
  20  Prefactor     15.277        81.338       -.97229E-05    .24984E-05
  21  norm          .10000E-03    8.5052        .84055E-06** at limit **
  22  Prefactor     .10000E-03    11.136        .79970E-06** at limit **
  23  norm          .10000E-03    .57455       -.65933E-08** at limit **
  24  norm          .10000E-03    10.311        .15915E-05** at limit **
  25  Prefactor     .10000E-03    19.855       -.20026E-05** at limit **
  26  Prefactor     .10000E-03    3.1643        .61591E-07** at limit **
  27  Prefactor     1.3032        91.602        .22948E-04   -.12291E-04
  28  norm          20.729        41.187        .26484E-05   -.15072E-04
  29  Prefactor     .10000E-03    4.1560       -.42894E-06** at limit **
  30  Prefactor     .10000E-03    7.7616        .72790E-06** at limit **
  31  Normalizat    .95266        .31479       -.46773E-05   -.65325E-04
  32  Prefactor     .96178        .35050        .27672E-05    .91700E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.52365
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 45.4132
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 60.053
  Prefactor  = 14.2286
  norm       = 21.4536
  norm       = 0.0001
  norm       = 2.77445
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.2767
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.30319
  norm       = 20.7295
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.952664
  Prefactor  = 0.961775
 **********
 **   18 **HESSE 
 **********

 FCN=   1601.605     FROM HESSE     STATUS=OK           643 CALLS     4862 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    82.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    24.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    34.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.286        .12503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.5237        15.987        .15404E-02   -1.5461    
   6  Prefactor     .10000E-03    23.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.6764        .12143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.5721        .83394E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          45.413        46.196        .59502E-04   -1.4359    
  10  Prefactor     .10000E-03    24.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    22.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    45.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     60.053        96.171        .25871E-03   -1.4157    
  14  Prefactor     14.229        19.316        .10618E-03   -1.4953    
  15  norm          21.454        22.948        .86476E-04   -1.4781    
  16  norm          .10000E-03    5.0124        .87517E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.7745        9.4262        .21471E-03   -1.5375    
  18  norm          .10000E-03    13.374        .14291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.6122        .10026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.277        81.634        .10263E-03   -1.4926    
  21  norm          .10000E-03    8.5193        .11362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.145        .13047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .57511        .29624E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    10.429        .12566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    19.915        .17422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    3.1805        .69462E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.3032        92.230        .19463E-02   -1.5480    
  28  norm          20.729        41.176        .87923E-04   -1.4797    
  29  Prefactor     .10000E-03    4.1679        .79661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    7.8853        .10885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .95266        .38079        .22306E-03   -.94634    
  32  Prefactor     .96178        .42645        .24874E-03   -.94015    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.05377e-10
Minuit parameter uncertainties:
  1  3.98254e-05
  2  3.00392e-05
  3  5.87505e-05
  4  5.42893e-06
  5  9.8738
  6  7.56694e-06
  7  3.69908e-06
  8  1.17007e-06
  9  46.2327
  10  1.71214e-05
  11  1.47707e-06
  12  8.75877e-05
  13  96.4215
  14  19.3248
  15  22.957
  16  8.91414e-07
  17  9.4312
  18  1.3122e-05
  19  1.47082e-06
  20  70.7792
  21  0.000172212
  22  1.87515e-06
  23  8.13289e-07
  24  0.000193164
  25  2.47372e-05
  26  1.88535e-05
  27  21.961
  28  41.2328
  29  4.11143e-05
  30  6.26264e-06
  31  0.381881
  32  0.427955
Done.

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

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  1.000e-04  6.263e-06  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:  9.618e-01  4.280e-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:  9.527e-01  3.819e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/216095/likelihoodResults_499824001_500083201_4FGL_J2358.0-4601_daily_bin1005.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) = 1601.60512059
delta logL = -0.000603806441177

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1601.60451665
delta logL = 1.34358288051e-07

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   1601.605     FROM MIGRAD    STATUS=FAILED        93 CALLS      240 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11793E-03    20.245        .12138E-01** at limit **
   2  Index         2.3376        7.7799        .50000        .40660E-04
   3  Normalizat    .95267        .93698E-02    .22307E-03   -.12665E-04
   4  Prefactor     .96177        .10548E-01    .24873E-03   -.82957E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   1601.605     FROM SIMPLEX   STATUS=PROGRESS     101 CALLS      341 TOTAL
                     EDM=   .75E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10338E-03    20.245        .51975E-03** at limit **
   2  Index         2.3267        7.7799        .36084E-02    .40660E-04
   3  Normalizat    .95264        .93698E-02    .13779E-04   -.12665E-04
   4  Prefactor     .96174        .10548E-01    .15781E-04   -.82957E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1601.605     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      430 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    131.25        .55982E-02** at limit **
   2  Index         1.9115        6.7974        .50000       -.62039E-07
   3  Normalizat    .95267        .17228E-01    .17845E-05    .66892E-05
   4  Prefactor     .96177        .19394E-01    .19899E-05    .51420E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.9115
  Normalizat = 0.952668
  Prefactor  = 0.961771
 **********
 **   18 **HESSE 
 **********

 FCN=   1601.605     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      459 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    627.51        .11196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9115        8.6070        .50000       -.66581    
   3  Normalizat    .95267        .38490E-01    .35691E-06   -.94633    
   4  Prefactor     .96177        .43079E-01    .39797E-06   -.94015    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.55752e-10
Minuit parameter uncertainties:
  1  0.000945025
  2  561.803
  3  0.0384907
  4  0.0430806
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/216095': 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) = 1601.60451242
delta logL = 4.36619257016e-06

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  1.000e-04  9.450e-04  1.000e-04  1.000e+04 ( 1.000e-12)
570        Index:  1.912e+00  5.618e+02  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:  9.618e-01  4.308e-02  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:  9.527e-01  3.849e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 359.522 -46.018

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/216095/cmap_HighResolution_499824001_500083201_4FGL_J2358.0-4601_daily_bin1005.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-02', job_status='DONE', photon_flux_upper_limit='1.70e-07', time_completed='2021-09-30 10:39:02.399383', job_id='216095', GAL2='0.96', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1633023542.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='4.37e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1005' AND source_name='4FGL J2358.0-4601' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 10:39:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 216095: <4FGL_J2358.0-4601_daily_bin1005> in cluster <slac> Done

Job <4FGL_J2358.0-4601_daily_bin1005> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 10:30:32 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 10:30:34 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:34 2021
Terminated at Thu Sep 30 10:39:03 2021
Results reported at Thu Sep 30 10:39:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.0-4601_daily_bin1005 359.522 -46.0176 499824001 500083201 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 :                                   475.00 sec.
    Max Memory :                                 1161 MB
    Average Memory :                             318.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   508 sec.
    Turnaround time :                            511 sec.

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

