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


Performing analysis on: 4FGL_J2358.0-4601_daily_bin1032
RA = 359.522, Dec = -46.0176
tmin = 506822401, tmax = 507081601
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='216135', job_status='RUN', time_executed='2021-09-30 10:31:00.738678', time_epoch_executed='1633023060.74' WHERE source_name='4FGL J2358.0-4601' and cadence='daily' and bin_id='1032'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/216135

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/216135/ft1_4FGL_J2358.0-4601_daily_bin1032.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/216135/ft2_4FGL_J2358.0-4601_daily_bin1032.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/216135/ft1_4FGL_J2358.0-4601_daily_bin1032.fits outfile=/scratch/kocevski/216135/ft1_filteredMKT_4FGL_J2358.0-4601_daily_bin1032.fits ra=359.522 dec=-46.0176 rad=12.0 tmin=506822401.0 tmax=507081601.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.50
user 3.28
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/216135/ft2_4FGL_J2358.0-4601_daily_bin1032.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/216135/ft1_filteredMKT_4FGL_J2358.0-4601_daily_bin1032.fits evtable="EVENTS" outfile="/scratch/kocevski/216135/ft1_filtered_4FGL_J2358.0-4601_daily_bin1032.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.54
user 0.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/216135/ft1_filtered_4FGL_J2358.0-4601_daily_bin1032.fits" evtable="EVENTS" scfile=/scratch/kocevski/216135/ft2_4FGL_J2358.0-4601_daily_bin1032.fits sctable="SC_DATA" outfile=/scratch/kocevski/216135/ltcube_506822401_507081601_4FGL_J2358.0-4601_daily_bin1032.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/216135/ft2_4FGL_J2358.0-4601_daily_bin1032.fits
.....................!
real 13.16
user 12.78
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/216135/ft1_filtered_4FGL_J2358.0-4601_daily_bin1032.fits evtable="EVENTS" scfile=/scratch/kocevski/216135/ft2_4FGL_J2358.0-4601_daily_bin1032.fits sctable="SC_DATA" expcube=/scratch/kocevski/216135/ltcube_506822401_507081601_4FGL_J2358.0-4601_daily_bin1032.fits outfile=/scratch/kocevski/216135/expmap_506822401_507081601_4FGL_J2358.0-4601_daily_bin1032.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/216135/ltcube_506822401_507081601_4FGL_J2358.0-4601_daily_bin1032.fits
.....................!
real 189.69
user 184.70
sys 4.56

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/216135/ft1_filtered_4FGL_J2358.0-4601_daily_bin1032.fits scfile=/scratch/kocevski/216135/ft2_4FGL_J2358.0-4601_daily_bin1032.fits outfile=/scratch/kocevski/216135/cmap_506822401_507081601_4FGL_J2358.0-4601_daily_bin1032.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.56
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/216135/ft1_filtered_4FGL_J2358.0-4601_daily_bin1032.fits scfile=/scratch/kocevski/216135/ft2_4FGL_J2358.0-4601_daily_bin1032.fits outfile=/scratch/kocevski/216135/cmap_HighResolution_506822401_507081601_4FGL_J2358.0-4601_daily_bin1032.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/216135/ft1_filtered_4FGL_J2358.0-4601_daily_bin1032.fits evtable="EVENTS" scfile=/scratch/kocevski/216135/ft2_4FGL_J2358.0-4601_daily_bin1032.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/216135/Model_4FGL_J2358.0-4601_daily_bin1032.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/216135/ft1_filtered_4FGL_J2358.0-4601_daily_bin1032.fits.....................!
real 44.85
user 43.58
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.818       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.118       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3352       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.4691       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.6812       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.199       1.0000         .10000E-03   10000.    
    11 'norm      '    .10180E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.4734       1.0000         .10000E-03   10000.    
    13 'Prefactor '    47.332       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .61574       1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.995       1.0000         .10000E-03   10000.    
    20 'Prefactor '    86.517       1.0000         .10000E-03   10000.    
    21 'norm      '    .12835E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .12191E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .11656E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    13.251       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.1823       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    5.0116       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .62094       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.2632       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=   6395.601     FROM MIGRAD    STATUS=CONVERGED    847 CALLS     4409 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.833        24.965       -.51906E-05    .13258E-03
   2  Prefactor     .10000E-03    13.861        .10255E-04** at limit **
   3  Prefactor     16.120        23.121        .93729E-06   -.35116E-04
   4  Prefactor     2.3310        9.2367       -.74804E-05   -.13022E-03
   5  Prefactor     .10000E-03    2.6180        .40951E-07** at limit **
   6  Prefactor     9.4680        12.944       -.41573E-05    .78545E-04
   7  Prefactor     4.6789        7.5316        .20473E-06   -.31535E-03
   8  Prefactor     .10000E-03    3.1118        .87846E-06** at limit **
   9  norm          .10000E-03    14.145       -.96252E-05** at limit **
  10  Prefactor     16.196        18.964        .15460E-05   -.10412E-03
  11  norm          .10000E-03    58.016        .29676E-05** at limit **
  12  Prefactor     5.4694        146.51       -.51290E-05    .32268E-05
  13  Prefactor     47.365        38.333        .98928E-05   -.16874E-03
  14  Prefactor     .10000E-03    3.0053       -.47873E-06** at limit **
  15  norm          .10000E-03    5.9090        .50219E-05** at limit **
  16  norm          .10000E-03    4.3911        .37055E-05** at limit **
  17  norm          .10000E-03    2.2904        .44175E-07** at limit **
  18  norm          .60561        5.4239       -.21010E-05   -.11963E-03
  19  Prefactor     19.996        7.5198       -.11760E-05    .17308E-03
  20  Prefactor     86.595        34.288        .37403E-05    .78194E-03
  21  norm          .10000E-03    2.3051       -.17448E-05** at limit **
  22  Prefactor     .10000E-03    7.1285       -.18979E-05** at limit **
  23  norm          .10000E-03    .45915       -.22044E-07** at limit **
  24  norm          .10000E-03    2.5527       -.11004E-05** at limit **
  25  Prefactor     13.249        12.326       -.43358E-05    .22263E-03
  26  Prefactor     2.1822        2.1802        .15122E-06   -.11602E-03
  27  Prefactor     .10000E-03    5.3130       -.47763E-05** at limit **
  28  norm          5.0099        15.729       -.88283E-06   -.23134E-04
  29  Prefactor     .10000E-03    3.1246       -.35085E-06** at limit **
  30  Prefactor     .10000E-03    1.1451       -.30918E-07** at limit **
  31  Normalizat    .62089        .15192        .23311E-07    .44356E-03
  32  Prefactor     1.2634        .17398        .13794E-05    .40272E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.8332
  Prefactor  = 0.000100001
  Prefactor  = 16.1203
  Prefactor  = 2.33103
  Prefactor  = 0.0001
  Prefactor  = 9.46796
  Prefactor  = 4.67888
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 16.1957
  norm       = 0.000100001
  Prefactor  = 5.46945
  Prefactor  = 47.3646
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.605613
  Prefactor  = 19.9962
  Prefactor  = 86.5955
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 13.2485
  Prefactor  = 2.18216
  Prefactor  = 0.0001
  norm       = 5.00994
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.620888
  Prefactor  = 1.26336
 **********
 **   18 **HESSE 
 **********

 FCN=   6395.601     FROM HESSE     STATUS=OK           659 CALLS     5068 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.833        24.942        .80409E-04   -1.4711    
   2  Prefactor     .10000E-03    13.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.120        23.105        .99763E-04   -1.4905    
   4  Prefactor     2.3310        9.3442        .26834E-03   -1.5403    
   5  Prefactor     .10000E-03    2.6273        .12635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.4680        12.931        .13023E-03   -1.5092    
   7  Prefactor     4.6789        7.5246        .18600E-03   -1.5275    
   8  Prefactor     .10000E-03    3.1480        .13687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    14.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.196        18.889        .99513E-04   -1.4903    
  11  norm          .10000E-03    58.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.4694        146.71        .17175E-03   -1.5240    
  13  Prefactor     47.365        38.141        .29141E-03   -1.4330    
  14  Prefactor     .10000E-03    3.0070        .13539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.9142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.4606        .16302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.3214        .11807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .60561        13.498        .36100E-02   -1.5552    
  19  Prefactor     19.996        7.4526        .89571E-04   -1.4813    
  20  Prefactor     86.595        32.637        .43192E-04   -1.3844    
  21  norm          .10000E-03    3.9893        .22381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.1396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.4100        .10406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    4.6620        .24051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     13.249        12.307        .11004E-03   -1.4980    
  26  Prefactor     2.1822        2.1695        .11323E-03   -1.5413    
  27  Prefactor     .10000E-03    5.3040        .17980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          5.0099        15.695        .17963E-03   -1.5260    
  29  Prefactor     .10000E-03    3.1724        .13745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    1.1546        .83541E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .62089        .18144        .26098E-03   -1.0710    
  32  Prefactor     1.2634        .20915        .22452E-03   -.84403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9732e-08
Minuit parameter uncertainties:
  1  24.952
  2  0.000242661
  3  23.1182
  4  9.33648
  5  8.12003e-07
  6  12.9351
  7  7.52616
  8  1.53468e-05
  9  0.000226726
  10  18.8956
  11  0.000375785
  12  56.8095
  13  38.1608
  14  3.89717e-06
  15  7.18132e-05
  16  4.55327e-05
  17  6.38631e-07
  18  5.71926
  19  7.4529
  20  32.6434
  21  2.6774e-05
  22  6.49073e-05
  23  1.52966e-05
  24  5.0342e-05
  25  12.3092
  26  2.16957
  27  5.85238e-05
  28  15.7075
  29  3.22434e-05
  30  2.75664e-06
  31  0.181613
  32  0.209286
Done.

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

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  1.000e-04  2.757e-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:  1.263e+00  2.093e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  6.209e-01  1.816e-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: 4.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/216135/likelihoodResults_506822401_507081601_4FGL_J2358.0-4601_daily_bin1032.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) = 6395.605546
delta logL = -0.00407343485131

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6395.6014726
delta logL = -4.11182554672e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5758       1.0000          .0000       10.000    
     3 'Normalizat'    .62090       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2634       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=   6395.601     FROM MIGRAD    STATUS=FAILED        98 CALLS      253 TOTAL
                     EDM=   .50E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    120.73        .83676E-03** at limit **
   2  Index         2.2792        8.4704        .50000       -.19014E-05
   3  Normalizat    .62089        .41143E-01    .26098E-03    .35677E-04
   4  Prefactor     1.2634        .49182E-01    .22452E-03    .58361E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6395.601     FROM SIMPLEX   STATUS=UNCHANGED    181 CALLS      434 TOTAL
                     EDM=   .69E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    120.73        .16063E-03** at limit **
   2  Index         2.2792        8.4704        .29298E-04   -.19014E-05
   3  Normalizat    .62089        .41143E-01    .36585E-06    .35677E-04
   4  Prefactor     1.2634        .49182E-01    .11791E-06    .58361E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6395.601     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      466 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.1913        .16735E-03** at limit **
   2  Index         2.2812        5.3555        .50000        .31814E-06
   3  Normalizat    .62089        .17212        .10439E-04    .35067E-04
   4  Prefactor     1.2634        .20581        .44905E-04    .57622E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.28121
  Normalizat = 0.620886
  Prefactor  = 1.26336
 **********
 **   18 **HESSE 
 **********

 FCN=   6395.601     FROM HESSE     STATUS=OK            29 CALLS      495 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.2328        .33470E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2812        5.3720        .50000       -.57491    
   3  Normalizat    .62089        .17236        .20878E-05   -1.0710    
   4  Prefactor     1.2634        .20605        .89810E-05   -.84403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.37071e-11
Minuit parameter uncertainties:
  1  1.92513e-05
  2  86.6567
  3  0.172506
  4  0.206187
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/216135': 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) = 6395.60147087
delta logL = 1.69181203091e-06

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  1.000e-04  1.925e-05  1.000e-04  1.000e+04 ( 1.000e-12)
570        Index:  2.281e+00  8.666e+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.263e+00  2.062e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  6.209e-01  1.725e-01  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/216135/cmap_HighResolution_506822401_507081601_4FGL_J2358.0-4601_daily_bin1032.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.47e-03', job_status='DONE', photon_flux_upper_limit='4.44e-08', time_completed='2021-09-30 10:47:02.465355', job_id='216135', GAL2='1.26', fit_tolerance='1e-08', EG2='0.62', EG='0.62', time_epoch_completed='1633024022.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='1.69e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1032' AND source_name='4FGL J2358.0-4601' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 10:47:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 216135: <4FGL_J2358.0-4601_daily_bin1032> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.0-4601_daily_bin1032 359.522 -46.0176 506822401 507081601 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 :                                   949.28 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            987 sec.

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

