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


Performing analysis on: 4FGL_J2358.0-4601_daily_bin859
RA = 359.522, Dec = -46.0176
tmin = 461980801, tmax = 462240001
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='214620', job_status='RUN', time_executed='2021-09-30 10:25:54.358333', time_epoch_executed='1633022754.36' WHERE source_name='4FGL J2358.0-4601' and cadence='daily' and bin_id='859'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/214620

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/214620/ft1_4FGL_J2358.0-4601_daily_bin859.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/214620/ft2_4FGL_J2358.0-4601_daily_bin859.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/214620/ft1_4FGL_J2358.0-4601_daily_bin859.fits outfile=/scratch/kocevski/214620/ft1_filteredMKT_4FGL_J2358.0-4601_daily_bin859.fits ra=359.522 dec=-46.0176 rad=12.0 tmin=461980801.0 tmax=462240001.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.56
user 3.35
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/214620/ft2_4FGL_J2358.0-4601_daily_bin859.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/214620/ft1_filteredMKT_4FGL_J2358.0-4601_daily_bin859.fits evtable="EVENTS" outfile="/scratch/kocevski/214620/ft1_filtered_4FGL_J2358.0-4601_daily_bin859.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/214620/ft1_filtered_4FGL_J2358.0-4601_daily_bin859.fits" evtable="EVENTS" scfile=/scratch/kocevski/214620/ft2_4FGL_J2358.0-4601_daily_bin859.fits sctable="SC_DATA" outfile=/scratch/kocevski/214620/ltcube_461980801_462240001_4FGL_J2358.0-4601_daily_bin859.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/214620/ft2_4FGL_J2358.0-4601_daily_bin859.fits
.....................!
real 11.73
user 11.36
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/214620/ft1_filtered_4FGL_J2358.0-4601_daily_bin859.fits evtable="EVENTS" scfile=/scratch/kocevski/214620/ft2_4FGL_J2358.0-4601_daily_bin859.fits sctable="SC_DATA" expcube=/scratch/kocevski/214620/ltcube_461980801_462240001_4FGL_J2358.0-4601_daily_bin859.fits outfile=/scratch/kocevski/214620/expmap_461980801_462240001_4FGL_J2358.0-4601_daily_bin859.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/214620/ltcube_461980801_462240001_4FGL_J2358.0-4601_daily_bin859.fits
.....................!
real 190.20
user 184.74
sys 5.15

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/214620/ft1_filtered_4FGL_J2358.0-4601_daily_bin859.fits scfile=/scratch/kocevski/214620/ft2_4FGL_J2358.0-4601_daily_bin859.fits outfile=/scratch/kocevski/214620/cmap_461980801_462240001_4FGL_J2358.0-4601_daily_bin859.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.35
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/214620/ft1_filtered_4FGL_J2358.0-4601_daily_bin859.fits evtable="EVENTS" scfile=/scratch/kocevski/214620/ft2_4FGL_J2358.0-4601_daily_bin859.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/214620/Model_4FGL_J2358.0-4601_daily_bin859.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/214620/ft1_filtered_4FGL_J2358.0-4601_daily_bin859.fits.....................!
real 42.38
user 41.15
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.002       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.6814       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10268E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.1684       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.782       1.0000         .10000E-03   10000.    
     9 'norm      '    26.043       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .66806E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    62.156       1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.021       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.9571       1.0000         .10000E-03   10000.    
    16 'norm      '    15.541       1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.8358       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.4084       1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.4299       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    7.1713       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .45524       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.4053       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=   5902.693     FROM MIGRAD    STATUS=CONVERGED    851 CALLS     4312 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.218       -.23954E-05** at limit **
   2  Prefactor     .10000E-03    15.290        .24834E-05** at limit **
   3  Prefactor     22.002        29.359       -.29391E-06    .51043E-05
   4  Prefactor     .10000E-03    2.6273        .34010E-07** at limit **
   5  Prefactor     8.6822        6.4788       -.25836E-07    .47798E-05
   6  Prefactor     .10000E-03    20.114        .72321E-06** at limit **
   7  Prefactor     5.1692        5.1235       -.74096E-06    .17858E-03
   8  Prefactor     14.759        6.9004       -.54068E-06   -.22148E-02
   9  norm          26.047        26.619       -.76677E-05    .38946E-03
  10  Prefactor     .10026E-03    38.278        .14486E-05** at limit **
  11  norm          62.160        37.990       -.12919E-05   -.30475E-05
  12  Prefactor     23.018        43.204        .16620E-05   -.27329E-04
  13  Prefactor     .10000E-03    10.806        .14717E-05** at limit **
  14  Prefactor     .10000E-03    11.421       -.63922E-06** at limit **
  15  norm          4.9572        6.5864       -.59035E-06   -.61102E-03
  16  norm          15.541        7.6868        .76570E-08    .34607E-04
  17  norm          .10000E-03    1.8623       -.87182E-10** at limit **
  18  norm          .10000E-03    5.0484       -.19071E-07** at limit **
  19  Prefactor     .10000E-03    4.1307       -.34994E-08** at limit **
  20  Prefactor     .10000E-03    20.469       -.10372E-05** at limit **
  21  norm          1.8365        3.2875       -.49510E-06   -.54861E-03
  22  Prefactor     .10000E-03    9.1523       -.84035E-06** at limit **
  23  norm          1.4086        .99387       -.33903E-07   -.12691E-03
  24  norm          .10000E-03    1.3794        .64087E-08** at limit **
  25  Prefactor     .10000E-03    8.1906        .36241E-06** at limit **
  26  Prefactor     2.4307        2.9999       -.19787E-06   -.45734E-03
  27  Prefactor     .10000E-03    28.451        .11412E-06** at limit **
  28  norm          .10000E-03    7.7376       -.11064E-06** at limit **
  29  Prefactor     .10000E-03    1.3689        .11615E-08** at limit **
  30  Prefactor     7.1729        4.8171       -.55280E-06   -.15180E-03
  31  Normalizat    .45512        .17087        .11107E-05   -.71025E-04
  32  Prefactor     1.4054        .19456        .41330E-06   -.68634E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.0023
  Prefactor  = 0.0001
  Prefactor  = 8.68217
  Prefactor  = 0.0001
  Prefactor  = 5.16923
  Prefactor  = 14.7589
  norm       = 26.0472
  Prefactor  = 0.000100258
  norm       = 62.1599
  Prefactor  = 23.0175
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.9572
  norm       = 15.5409
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.83647
  Prefactor  = 0.0001
  norm       = 1.40863
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.4307
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.17285
  Normalizat = 0.455123
  Prefactor  = 1.40536
 **********
 **   18 **HESSE 
 **********

 FCN=   5902.693     FROM HESSE     STATUS=OK           659 CALLS     4971 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.002        29.320        .85392E-04   -1.4769    
   4  Prefactor     .10000E-03    2.6325        .12162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.6822        6.4780        .13604E-03   -1.5119    
   6  Prefactor     .10000E-03    20.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.1692        5.1092        .16712E-03   -1.5253    
   8  Prefactor     14.759        7.4388        .52087E-03   -1.4939    
   9  norm          26.047        25.422        .78499E-04   -1.4687    
  10  Prefactor     .10026E-03    47.855        .10083       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          62.160        37.981        .50896E-04   -1.4129    
  12  Prefactor     23.018        43.166        .83483E-04   -1.4748    
  13  Prefactor     .10000E-03    10.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.9572        6.6866        .90318E-03   -1.5263    
  16  norm          15.541        7.6863        .10160E-03   -1.4919    
  17  norm          .10000E-03    1.8679        .10236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.0772        .16858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.1811        .15225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.8365        3.2888        .17831E-03   -1.5437    
  22  Prefactor     .10000E-03    9.1922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.4086        .98302        .60379E-04   -1.5471    
  24  norm          .10000E-03    1.3869        .88036E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.2212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.4307        2.9814        .13911E-03   -1.5396    
  27  Prefactor     .10000E-03    28.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    7.7499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1.3764        .87747E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     7.1729        4.8233        .12915E-03   -1.5172    
  31  Normalizat    .45512        .19952        .30254E-03   -1.1454    
  32  Prefactor     1.4054        .23063        .21645E-03   -.80226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17589e-09
Minuit parameter uncertainties:
  1  0.000112837
  2  9.04437e-05
  3  29.339
  4  7.0218e-06
  5  6.47855
  6  5.55348e-06
  7  5.10965
  8  7.43924
  9  25.4323
  10  0.00703681
  11  37.9958
  12  43.2242
  13  6.3858e-05
  14  1.51815e-05
  15  6.68766
  16  7.68674
  17  8.73707e-07
  18  3.52002e-06
  19  1.20269e-06
  20  7.49978e-05
  21  3.28915
  22  3.34477e-05
  23  0.983036
  24  5.38029e-07
  25  2.07115e-05
  26  2.98154
  27  4.67081e-05
  28  3.10892e-06
  29  1.37882e-07
  30  4.82355
  31  0.19983
  32  0.230798
Done.

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

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  7.173e+00  4.824e+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:  1.405e+00  2.308e-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:  4.551e-01  1.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.04
Ra Dec: 359.522 -46.018
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 5.99e-08 +/- 4.03e-08
Energy Flux (Fixed Index): 1.60e-05 +/- 1.07e-05

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

Saving results to:
/scratch/kocevski/214620/likelihoodResults_461980801_462240001_4FGL_J2358.0-4601_daily_bin859.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) = 5902.43314736
delta logL = 0.260306667727

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5902.42289782
delta logL = 0.270556214875

Fit tolerance = 1e-08

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

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

 FCN=   5902.423     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      277 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3108        6.2717        .91031E-04   -.30473E-03
   2  Index         3.1274        1.0119        .55237E-02   -.24282E-04
   3  Normalizat    .42761        .19642        .31164E-03    .18481E-03
   4  Prefactor     1.4308        .23297        .21479E-03    .28659E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.31078
  Index      = 3.12741
  Normalizat = 0.427605
  Prefactor  = 1.43084
 **********
 **   18 **HESSE 
 **********

 FCN=   5902.423     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3108        5.1734        .36412E-05   -1.5293    
   2  Index         3.1274        .83586        .22095E-03   -.38388    
   3  Normalizat    .42761        .19603        .12466E-04   -1.1590    
   4  Prefactor     1.4308        .23227        .42958E-04   -.79496    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04638e-10
Minuit parameter uncertainties:
  1  5.17393
  2  0.840451
  3  0.196344
  4  0.232442
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/214620': 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): 0
logL (Free Index) = 5902.42289154
delta logL = 0.27056249009

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  4.311e+00  5.174e+00  1.000e-04  1.000e+04 ( 1.000e-12)
570        Index:  3.127e+00  8.405e-01  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.431e+00  2.324e-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:  4.276e-01  1.963e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.66
Ra Dec: 359.522 -46.018
Photon Index (Free Index): 3.13 +/- 0.84
Photon Flux (Free Index): 7.52e-08 +/- 4.77e-08
Energy Flux (Free Index): 1.42e-05 +/- 9.08e-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/214620/cmap_HighResolution_461980801_462240001_4FGL_J2358.0-4601_daily_bin859.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', comment='SUCCESS', photon_flux='5.99e-08', energy_flux2='1.42e-05', photon_flux_error='4.03e-08', dlogl='2.71e-01', energy_flux='1.60e-05', photon_flux2='7.52e-08', job_status='DONE', time_completed='2021-09-30 10:40:31.223866', photon_index_error2='0.84', photon_index2='3.13', ts='3.04', fit_tolerance='1e-08', GAL='1.41', photon_index_error='0.00', photon_flux_upper_limit='1.38e-07', energy_flux_error2='9.08e-06', EG='0.46', time_epoch_completed='1633023631.22', return_code='0', job_id='214620', GAL2='1.43', EG2='0.43', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='4.77e-08', ts2='3.66', photon_index='2.58' WHERE bin_id='859' AND source_name='4FGL J2358.0-4601' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 10:40:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 214620: <4FGL_J2358.0-4601_daily_bin859> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.0-4601_daily_bin859 359.522 -46.0176 461980801 462240001 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 :                                   873.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            901 sec.

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

