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


Performing analysis on: 4FGL_J2358.0-4601_daily_bin1097
RA = 359.522, Dec = -46.0176
tmin = 523670401, tmax = 523929601
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='216233', job_status='RUN', time_executed='2021-09-30 10:31:14.780126', time_epoch_executed='1633023074.78' WHERE source_name='4FGL J2358.0-4601' and cadence='daily' and bin_id='1097'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/216233

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/216233/ft1_4FGL_J2358.0-4601_daily_bin1097.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/216233/ft2_4FGL_J2358.0-4601_daily_bin1097.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/216233/ft1_4FGL_J2358.0-4601_daily_bin1097.fits outfile=/scratch/kocevski/216233/ft1_filteredMKT_4FGL_J2358.0-4601_daily_bin1097.fits ra=359.522 dec=-46.0176 rad=12.0 tmin=523670401.0 tmax=523929601.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.55
user 3.33
sys 0.20

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/216233/ft1_filtered_4FGL_J2358.0-4601_daily_bin1097.fits evtable="EVENTS" scfile=/scratch/kocevski/216233/ft2_4FGL_J2358.0-4601_daily_bin1097.fits sctable="SC_DATA" expcube=/scratch/kocevski/216233/ltcube_523670401_523929601_4FGL_J2358.0-4601_daily_bin1097.fits outfile=/scratch/kocevski/216233/expmap_523670401_523929601_4FGL_J2358.0-4601_daily_bin1097.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/216233/ltcube_523670401_523929601_4FGL_J2358.0-4601_daily_bin1097.fits
.....................!
real 190.93
user 185.30
sys 5.24

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/216233/ft1_filtered_4FGL_J2358.0-4601_daily_bin1097.fits scfile=/scratch/kocevski/216233/ft2_4FGL_J2358.0-4601_daily_bin1097.fits outfile=/scratch/kocevski/216233/cmap_523670401_523929601_4FGL_J2358.0-4601_daily_bin1097.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=359.522 yref=-46.0176 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/216233/ft1_filtered_4FGL_J2358.0-4601_daily_bin1097.fits scfile=/scratch/kocevski/216233/ft2_4FGL_J2358.0-4601_daily_bin1097.fits outfile=/scratch/kocevski/216233/cmap_HighResolution_523670401_523929601_4FGL_J2358.0-4601_daily_bin1097.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/216233/ft1_filtered_4FGL_J2358.0-4601_daily_bin1097.fits evtable="EVENTS" scfile=/scratch/kocevski/216233/ft2_4FGL_J2358.0-4601_daily_bin1097.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/216233/Model_4FGL_J2358.0-4601_daily_bin1097.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/216233/ft1_filtered_4FGL_J2358.0-4601_daily_bin1097.fits.....................!
real 39.10
user 37.74
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    87.457       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0074       1.0000         .10000E-03   10000.    
     9 'norm      '    .10282E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    12.528       1.0000         .10000E-03   10000.    
    12 'Prefactor '    37.406       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10420E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    12.890       1.0000         .10000E-03   10000.    
    16 'norm      '    3.8402       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.0865       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.886       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    6.1148       1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.8640       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.8496       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10787E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3991       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .65433       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=   4987.620     FROM MIGRAD    STATUS=CONVERGED    888 CALLS     4406 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     87.469        48.700       -.11320E-04    .20236E-04
   2  Prefactor     .10000E-03    14.781       -.54347E-05** at limit **
   3  Prefactor     .10000E-03    50.064        .25305E-04** at limit **
   4  Prefactor     .10000E-03    9.8761       -.56694E-06** at limit **
   5  Prefactor     .10000E-03    3.6989        .33368E-07** at limit **
   6  Prefactor     .10000E-03    57.810       -.25110E-04** at limit **
   7  Prefactor     .10000E-03    6.5216        .11301E-07** at limit **
   8  Prefactor     2.0103        5.0069       -.40796E-05   -.54721E-03
   9  norm          .10000E-03    32.327       -.14463E-04** at limit **
  10  Prefactor     .10000E-03    13.214        .32578E-05** at limit **
  11  norm          12.503        27.325        .40453E-04    .18987E-04
  12  Prefactor     37.118        74.808       -.23354E-04    .24146E-05
  13  Prefactor     .10000E-03    27.663        .55801E-05** at limit **
  14  Prefactor     .10000E-03    34.010        .55200E-05** at limit **
  15  norm          12.889        18.006        .32486E-06   -.25371E-04
  16  norm          3.8403        3.8532        .79648E-07    .18088E-03
  17  norm          .10000E-03    1.8676        .16734E-07** at limit **
  18  norm          .10000E-03    4.1171        .18924E-07** at limit **
  19  Prefactor     .10000E-03    7.8748       -.31630E-06** at limit **
  20  Prefactor     .10000E-03    15.251        .39546E-05** at limit **
  21  norm          3.0864        3.3152       -.16534E-06   -.11013E-03
  22  Prefactor     14.887        14.692       -.53784E-06   -.50107E-03
  23  norm          .10000E-03    .46948        .22626E-07** at limit **
  24  norm          6.1146        4.3499        .44265E-06   -.91260E-04
  25  Prefactor     8.8635        16.453        .74229E-06   -.27788E-04
  26  Prefactor     .10000E-03    2.4000        .21678E-06** at limit **
  27  Prefactor     .10000E-03    8.3648        .31879E-06** at limit **
  28  norm          .10000E-03    13.472       -.14682E-05** at limit **
  29  Prefactor     4.8496        5.2790       -.29319E-05   -.37707E-03
  30  Prefactor     .10000E-03    2.5446        .44313E-06** at limit **
  31  Normalizat    1.3990        .19186       -.24656E-06   -.24408E-04
  32  Prefactor     .65450        .20670        .28098E-06   -.35401E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 87.4686
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 2.01027
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 12.5032
  Prefactor  = 37.118
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.8889
  norm       = 3.84034
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.0864
  Prefactor  = 14.8866
  norm       = 0.0001
  norm       = 6.11464
  Prefactor  = 8.86347
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.84956
  Prefactor  = 0.0001
  Normalizat = 1.39898
  Prefactor  = 0.654498
 **********
 **   18 **HESSE 
 **********

 FCN=   4987.620     FROM HESSE     STATUS=OK           651 CALLS     5057 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     87.469        48.675        .21481E-03   -1.3835    
   2  Prefactor     .10000E-03    14.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    50.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.9827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.7407        .13264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    58.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.6017        .17608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.0103        5.0042        .23630E-03   -1.5424    
   9  norm          .10000E-03    32.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          12.503        27.336        .11317E-03   -1.5001    
  12  Prefactor     37.118        74.838        .65530E-04   -1.4489    
  13  Prefactor     .10000E-03    27.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    35.285        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.889        18.011        .11157E-03   -1.4990    
  16  norm          3.8403        3.8609        .13558E-03   -1.5316    
  17  norm          .10000E-03    1.8682        .94243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.1252        .13995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.0318        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.0864        3.3098        .12831E-03   -1.5357    
  22  Prefactor     14.887        14.643        .51905E-03   -1.4936    
  23  norm          .10000E-03    .48255        .94261E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.1146        4.3449        .11938E-03   -1.5213    
  25  Prefactor     8.8635        16.441        .13463E-03   -1.5112    
  26  Prefactor     .10000E-03    2.4587        .21332E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    8.3741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    13.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     4.8496        5.2842        .16102E-03   -1.5267    
  30  Prefactor     .10000E-03    8.8868        .21539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.3990        .22685        .20318E-03   -.80658    
  32  Prefactor     .65450        .24370        .31619E-03   -1.0534    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05734e-09
Minuit parameter uncertainties:
  1  48.6973
  2  1.09293e-05
  3  1.27576e-05
  4  4.40947e-05
  5  7.75429e-06
  6  0.00106065
  7  2.65525e-06
  8  5.00523
  9  8.94865e-05
  10  5.09639e-05
  11  27.3635
  12  75.0283
  13  7.33304e-07
  14  6.09971e-05
  15  18.0182
  16  3.86119
  17  2.49016e-07
  18  5.15211e-07
  19  2.87267e-05
  20  2.54424e-07
  21  3.31003
  22  14.647
  23  1.92865e-06
  24  4.34508
  25  16.4493
  26  3.17669e-05
  27  1.40705e-05
  28  9.11173e-05
  29  5.28468
  30  3.31854e-05
  31  0.227015
  32  0.244095
Done.

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

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  1.000e-04  3.319e-05  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:  6.545e-01  2.441e-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.399e+00  2.270e-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: 8.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/216233/likelihoodResults_523670401_523929601_4FGL_J2358.0-4601_daily_bin1097.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) = 4987.62050874
delta logL = -0.000535844757906

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4987.61997587
delta logL = -2.9721768442e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17418E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6524       1.0000          .0000       10.000    
     3 'Normalizat'    1.3993       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65418       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=   4987.620     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      247 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10018E-03    3.4370        .64201E-01** at limit **
   2  Index         2.7557        6.3145        .50000       -.87817E-04
   3  Normalizat    1.3990        .60650E-02    .45963E-01    .71436E-04
   4  Prefactor     .65450        .67489E-02    .71438E-01    .50710E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100182
  Index      = 2.75567
  Normalizat = 1.39898
  Prefactor  = 0.654498
 **********
 **   18 **HESSE 
 **********

 FCN=   4987.620     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      280 TOTAL
                     EDM=   .50E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10018E-03    6440.9        .19223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7557        5.3048        .50000       -.46550    
   3  Normalizat    1.3990        .75477E-01    .20318E-03   -.80658    
   4  Prefactor     .65450        .82501E-01    .31619E-03   -1.0534    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.98492e-06
Minuit parameter uncertainties:
  1  0.0483951
  2  55.5549
  3  0.0754834
  4  0.0825167
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/216233': 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) = 4987.61996966
delta logL = 3.24088614434e-06

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  1.002e-04  4.840e-02  1.000e-04  1.000e+04 ( 1.000e-12)
570        Index:  2.756e+00  5.555e+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:  6.545e-01  8.252e-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:  1.399e+00  7.548e-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/216233/cmap_HighResolution_523670401_523929601_4FGL_J2358.0-4601_daily_bin1097.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.82e-03', job_status='DONE', photon_flux_upper_limit='8.72e-08', time_completed='2021-09-30 10:44:53.755046', job_id='216233', GAL2='0.65', fit_tolerance='1e-08', EG2='1.40', EG='1.40', time_epoch_completed='1633023893.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='3.24e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1097' AND source_name='4FGL J2358.0-4601' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 10:44:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 216233: <4FGL_J2358.0-4601_daily_bin1097> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.0-4601_daily_bin1097 359.522 -46.0176 523670401 523929601 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 :                                   806.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             308.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            848 sec.

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

