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


Performing analysis on: 4FGL_J2358.0-4601_daily_bin532
RA = 359.522, Dec = -46.0176
tmin = 377222401, tmax = 377481601
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='211778', job_status='RUN', time_executed='2021-09-30 10:15:58.632834', time_epoch_executed='1633022158.63' WHERE source_name='4FGL J2358.0-4601' and cadence='daily' and bin_id='532'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211778

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211778/ft1_4FGL_J2358.0-4601_daily_bin532.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211778/ft2_4FGL_J2358.0-4601_daily_bin532.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211778/ft1_4FGL_J2358.0-4601_daily_bin532.fits outfile=/scratch/kocevski/211778/ft1_filteredMKT_4FGL_J2358.0-4601_daily_bin532.fits ra=359.522 dec=-46.0176 rad=12.0 tmin=377222401.0 tmax=377481601.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.46
user 3.21
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/211778/ft2_4FGL_J2358.0-4601_daily_bin532.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/211778/ft1_filteredMKT_4FGL_J2358.0-4601_daily_bin532.fits evtable="EVENTS" outfile="/scratch/kocevski/211778/ft1_filtered_4FGL_J2358.0-4601_daily_bin532.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.50
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/211778/ft1_filtered_4FGL_J2358.0-4601_daily_bin532.fits" evtable="EVENTS" scfile=/scratch/kocevski/211778/ft2_4FGL_J2358.0-4601_daily_bin532.fits sctable="SC_DATA" outfile=/scratch/kocevski/211778/ltcube_377222401_377481601_4FGL_J2358.0-4601_daily_bin532.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/211778/ft2_4FGL_J2358.0-4601_daily_bin532.fits
.....................!
real 11.97
user 11.59
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211778/ft1_filtered_4FGL_J2358.0-4601_daily_bin532.fits evtable="EVENTS" scfile=/scratch/kocevski/211778/ft2_4FGL_J2358.0-4601_daily_bin532.fits sctable="SC_DATA" expcube=/scratch/kocevski/211778/ltcube_377222401_377481601_4FGL_J2358.0-4601_daily_bin532.fits outfile=/scratch/kocevski/211778/expmap_377222401_377481601_4FGL_J2358.0-4601_daily_bin532.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/211778/ltcube_377222401_377481601_4FGL_J2358.0-4601_daily_bin532.fits
.....................!
real 192.97
user 185.62
sys 5.82

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/211778/ft1_filtered_4FGL_J2358.0-4601_daily_bin532.fits scfile=/scratch/kocevski/211778/ft2_4FGL_J2358.0-4601_daily_bin532.fits outfile=/scratch/kocevski/211778/cmap_377222401_377481601_4FGL_J2358.0-4601_daily_bin532.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211778/ft1_filtered_4FGL_J2358.0-4601_daily_bin532.fits scfile=/scratch/kocevski/211778/ft2_4FGL_J2358.0-4601_daily_bin532.fits outfile=/scratch/kocevski/211778/cmap_HighResolution_377222401_377481601_4FGL_J2358.0-4601_daily_bin532.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/211778/ft1_filtered_4FGL_J2358.0-4601_daily_bin532.fits evtable="EVENTS" scfile=/scratch/kocevski/211778/ft2_4FGL_J2358.0-4601_daily_bin532.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211778/Model_4FGL_J2358.0-4601_daily_bin532.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/211778/ft1_filtered_4FGL_J2358.0-4601_daily_bin532.fits.....................!
real 40.36
user 39.00
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10363E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10429E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.071       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0738       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14682E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.590       1.0000         .10000E-03   10000.    
    11 'norm      '    12.006       1.0000         .10000E-03   10000.    
    12 'Prefactor '    60.132       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.3011       1.0000         .10000E-03   10000.    
    15 'norm      '    .10093E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .85188E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    16.024       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .65740E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.680       1.0000         .10000E-03   10000.    
    21 'norm      '    .16499E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.9141       1.0000         .10000E-03   10000.    
    23 'norm      '    3.6184       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10563E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.5018       1.0000         .10000E-03   10000.    
    28 'norm      '    2.1027       1.0000         .10000E-03   10000.    
    29 'Prefactor '    8.8228       1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.4966       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1362       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .56997       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=   5263.883     FROM MIGRAD    STATUS=CONVERGED    850 CALLS     4423 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.057       -.52245E-07** at limit **
   2  Prefactor     .10000E-03    9.6648        .88271E-07** at limit **
   3  Prefactor     22.104        37.552       -.53835E-07    .42552E-04
   4  Prefactor     4.0693        10.725        .19807E-06   -.13575E-04
   5  Prefactor     .10000E-03    1.9491        .79314E-07** at limit **
   6  Prefactor     .10000E-03    14.848       -.21399E-06** at limit **
   7  Prefactor     .10000E-03    1.8293        .61275E-07** at limit **
   8  Prefactor     .10010E-03    2.7734       -.12972E-05** at limit **
   9  norm          .10000E-03    10.385       -.53424E-07** at limit **
  10  Prefactor     17.653        19.893        .28971E-05    .16188E-03
  11  norm          12.015        18.814        .20606E-06    .25694E-04
  12  Prefactor     60.052        56.185       -.54055E-06   -.87286E-04
  13  Prefactor     .10000E-03    17.943        .11900E-06** at limit **
  14  Prefactor     9.2903        18.004       -.25989E-06   -.39022E-05
  15  norm          .10000E-03    10.554        .78668E-07** at limit **
  16  norm          .10000E-03    6.6859        .29061E-06** at limit **
  17  norm          .10000E-03    2.3263        .11900E-06** at limit **
  18  norm          16.013        12.046       -.19202E-06   -.93505E-04
  19  Prefactor     .10003E-03    4.9727        .44456E-08** at limit **
  20  Prefactor     14.710        27.653       -.43228E-05   -.27730E-03
  21  norm          .10002E-03    2.7885        .15035E-05** at limit **
  22  Prefactor     4.9149        10.505       -.74726E-07   -.17820E-04
  23  norm          3.6175        1.5222       -.51436E-07   -.67692E-04
  24  norm          .10000E-03    1.1476        .91448E-07** at limit **
  25  Prefactor     .10000E-03    14.250       -.15159E-06** at limit **
  26  Prefactor     .10000E-03    1.9210       -.12919E-07** at limit **
  27  Prefactor     8.5054        21.877       -.70390E-07   -.25740E-05
  28  norm          2.1045        27.859        .15029E-05   -.24473E-04
  29  Prefactor     8.8238        7.3239       -.20485E-06   -.23149E-04
  30  Prefactor     3.4955        4.5099        .21653E-06   -.41169E-04
  31  Normalizat    1.1365        .18385        .12356E-05   -.13391E-03
  32  Prefactor     .56992        .18985       -.14539E-05    .69864E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.1043
  Prefactor  = 4.06931
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100103
  norm       = 0.0001
  Prefactor  = 17.653
  norm       = 12.0149
  Prefactor  = 60.052
  Prefactor  = 0.0001
  Prefactor  = 9.2903
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 16.0128
  Prefactor  = 0.000100029
  Prefactor  = 14.7104
  norm       = 0.000100016
  Prefactor  = 4.91489
  norm       = 3.6175
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.50538
  norm       = 2.10453
  Prefactor  = 8.82385
  Prefactor  = 3.49547
  Normalizat = 1.13648
  Prefactor  = 0.569916
 **********
 **   18 **HESSE 
 **********

 FCN=   5263.883     FROM HESSE     STATUS=OK           667 CALLS     5090 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.6711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.104        37.526        .85259E-04   -1.4767    
   4  Prefactor     4.0693        10.703        .19976E-03   -1.5304    
   5  Prefactor     .10000E-03    1.9506        .98899E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.8318        .95815E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10010E-03    34.903        .20703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    10.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.653        19.385        .95495E-04   -1.4867    
  11  norm          12.015        18.830        .11561E-03   -1.5015    
  12  Prefactor     60.052        55.789        .25870E-03   -1.4157    
  13  Prefactor     .10000E-03    17.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.2903        17.621        .13141E-03   -1.5098    
  15  norm          .10000E-03    10.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    28.524        .34702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.3462        .10805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          16.013        12.049        .10005E-03   -1.4907    
  19  Prefactor     .10003E-03    13.298        .45730E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.710        26.804        .10454E-03   -1.4941    
  21  norm          .10002E-03    10.123        .20051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.9149        11.244        .18144E-03   -1.5265    
  23  norm          3.6175        1.5125        .50958E-04   -1.5328    
  24  norm          .10000E-03    1.1500        .75886E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    14.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    1.9516        .19543E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     8.5054        21.742        .13748E-03   -1.5125    
  28  norm          2.1045        27.746        .28458E-03   -1.5418    
  29  Prefactor     8.8238        7.3269        .13494E-03   -1.5114    
  30  Prefactor     3.4955        4.5186        .16238E-03   -1.5334    
  31  Normalizat    1.1365        .21758        .19677E-03   -.88589    
  32  Prefactor     .56992        .22222        .29972E-03   -1.0887    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.81108e-09
Minuit parameter uncertainties:
  1  4.03157e-05
  2  2.15194e-05
  3  37.5661
  4  10.7079
  5  1.89798e-06
  6  1.1007e-06
  7  2.25817e-06
  8  0.00379337
  9  5.53507e-06
  10  19.392
  11  18.8389
  12  55.8376
  13  2.99351e-05
  14  17.6307
  15  1.24727e-07
  16  0.000262161
  17  2.28805e-07
  18  12.0512
  19  0.0012384
  20  26.8257
  21  0.000792897
  22  11.2493
  23  1.51253
  24  4.24362e-07
  25  1.12602e-05
  26  7.99817e-07
  27  21.7621
  28  15.2914
  29  7.32766
  30  4.51906
  31  0.217754
  32  0.22256
Done.

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

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  3.495e+00  4.519e+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:  5.699e-01  2.226e-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:  1.136e+00  2.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.76
Ra Dec: 359.522 -46.018
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/211778/likelihoodResults_377222401_377481601_4FGL_J2358.0-4601_daily_bin532.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) = 5262.57290046
delta logL = 1.30999898982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5262.48959292
delta logL = 1.39330652331

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15440       1.0000         .10000E-03   10000.    
     2 'Index     '    5.3108       1.0000          .0000       10.000    
     3 'Normalizat'    1.0519       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64130       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=   5262.490     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      278 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15367        1.4902        .38005E-02   -.19971E-02
   2  Index         5.3136        2.9949        .11346        .54867E-05
   3  Normalizat    1.0519        .45978E-01    .40431E-01   -.10496E-03
   4  Prefactor     .64142        .51423E-01    .64156E-01   -.24607E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.153669
  Index      = 5.3136
  Normalizat = 1.05191
  Prefactor  = 0.641419
 **********
 **   18 **HESSE 
 **********

 FCN=   5262.490     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      309 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15367        2.9706        .17105E-04   -1.5630    
   2  Index         5.3136        7.2165        .45088E-02    .62760E-01
   3  Normalizat    1.0519        .18017        .20311E-03   -.91311    
   4  Prefactor     .64142        .19670        .28385E-03   -1.0587    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.7926e-10
Minuit parameter uncertainties:
  1  1.35093
  2  5.1447
  3  0.180276
  4  0.196915
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211778': 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) = 5262.4895912
delta logL = 1.39330825004

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  1.537e-01  1.351e+00  1.000e-04  1.000e+04 ( 1.000e-12)
570        Index:  5.314e+00  5.145e+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:  6.414e-01  1.969e-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:  1.052e+00  1.803e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.78
Ra Dec: 359.522 -46.018
Photon Index (Free Index): 5.31 +/- 5.14
Photon Flux (Free Index): 8.31e-08 +/- 5.47e-08
Energy Flux (Free Index): 1.08e-05 +/- 9.21e-06

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/211778/cmap_HighResolution_377222401_377481601_4FGL_J2358.0-4601_daily_bin532.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.48e-03', comment='SUCCESS', energy_flux2='1.08e-05', dlogl='1.39e+00', photon_flux2='8.31e-08', job_status='DONE', time_completed='2021-09-30 10:30:09.806974', photon_index_error2='5.14', photon_index2='5.31', ts='0.76', fit_tolerance='1e-08', GAL='0.57', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='9.21e-06', EG='1.14', time_epoch_completed='1633023009.81', return_code='0', job_id='211778', GAL2='0.64', EG2='1.05', return_code2='102', photon_flux_error2='5.47e-08', ts2='3.78', photon_index='2.58' WHERE bin_id='532' AND source_name='4FGL J2358.0-4601' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 10:30:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 211778: <4FGL_J2358.0-4601_daily_bin532> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.0-4601_daily_bin532 359.522 -46.0176 377222401 377481601 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 :                                   837.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            868 sec.

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

