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


Performing analysis on: 4FGL_J2358.3-1021_daily_bin1622
RA = 359.582, Dec = -10.3616
tmin = 659750401, tmax = 660009601
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='506893', job_status='RUN', time_executed='2021-12-08 09:53:18.060800', time_epoch_executed='1638985998.06' WHERE source_name='4FGL J2358.3-1021' and cadence='daily' and bin_id='1622'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/506893

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/506893/ft1_4FGL_J2358.3-1021_daily_bin1622.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/506893/ft2_4FGL_J2358.3-1021_daily_bin1622.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/506893/ft1_4FGL_J2358.3-1021_daily_bin1622.fits outfile=/scratch/kocevski/506893/ft1_filteredMKT_4FGL_J2358.3-1021_daily_bin1622.fits ra=359.582 dec=-10.3616 rad=12.0 tmin=659750401.0 tmax=660009601.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 2.40
user 2.18
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/506893/ft2_4FGL_J2358.3-1021_daily_bin1622.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/506893/ft2_4FGL_J2358.3-1021_daily_bin1622.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/506893/ft1_filteredMKT_4FGL_J2358.3-1021_daily_bin1622.fits evtable="EVENTS" outfile="/scratch/kocevski/506893/ft1_filtered_4FGL_J2358.3-1021_daily_bin1622.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.51
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/506893/ft1_filtered_4FGL_J2358.3-1021_daily_bin1622.fits" evtable="EVENTS" scfile=/scratch/kocevski/506893/ft2_4FGL_J2358.3-1021_daily_bin1622.fits sctable="SC_DATA" outfile=/scratch/kocevski/506893/ltcube_659750401_660009601_4FGL_J2358.3-1021_daily_bin1622.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/506893/ft2_4FGL_J2358.3-1021_daily_bin1622.fits
.....................!
real 15.15
user 14.75
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/506893/ft1_filtered_4FGL_J2358.3-1021_daily_bin1622.fits evtable="EVENTS" scfile=/scratch/kocevski/506893/ft2_4FGL_J2358.3-1021_daily_bin1622.fits sctable="SC_DATA" expcube=/scratch/kocevski/506893/ltcube_659750401_660009601_4FGL_J2358.3-1021_daily_bin1622.fits outfile=/scratch/kocevski/506893/expmap_659750401_660009601_4FGL_J2358.3-1021_daily_bin1622.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/506893/ltcube_659750401_660009601_4FGL_J2358.3-1021_daily_bin1622.fits
.....................!
real 191.71
user 186.60
sys 4.52

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 174 point sources and 0 extended sources

Setting source of interest to:
4FGL J2358.3-1021 @ 359.582 -10.3616

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/506893/ft1_filtered_4FGL_J2358.3-1021_daily_bin1622.fits scfile=/scratch/kocevski/506893/ft2_4FGL_J2358.3-1021_daily_bin1622.fits outfile=/scratch/kocevski/506893/cmap_659750401_660009601_4FGL_J2358.3-1021_daily_bin1622.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.582 yref=-10.3616 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/506893/ft1_filtered_4FGL_J2358.3-1021_daily_bin1622.fits scfile=/scratch/kocevski/506893/ft2_4FGL_J2358.3-1021_daily_bin1622.fits outfile=/scratch/kocevski/506893/cmap_HighResolution_659750401_660009601_4FGL_J2358.3-1021_daily_bin1622.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.582 yref=-10.3616 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.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/506893/ft1_filtered_4FGL_J2358.3-1021_daily_bin1622.fits evtable="EVENTS" scfile=/scratch/kocevski/506893/ft2_4FGL_J2358.3-1021_daily_bin1622.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/506893/Model_4FGL_J2358.3-1021_daily_bin1622.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/506893/ft1_filtered_4FGL_J2358.3-1021_daily_bin1622.fits.....................!
real 45.83
user 44.38
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/506893/ft1_filtered_4FGL_J2358.3-1021_daily_bin1622.fits', '/scratch/kocevski/506893/ft2_4FGL_J2358.3-1021_daily_bin1622.fits', expMap='/scratch/kocevski/506893/expmap_659750401_660009601_4FGL_J2358.3-1021_daily_bin1622.fits', expCube='/scratch/kocevski/506893/ltcube_659750401_660009601_4FGL_J2358.3-1021_daily_bin1622.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/506893/Model_4FGL_J2358.3-1021_daily_bin1622.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2358.3-1021'

4FGL J2358.3-1021
   Spectrum: PowerLaw
544    Prefactor:  4.076e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
545        Index:  2.593e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
546        Scale:  5.750e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/506893/ft1_filtered_4FGL_J2358.3-1021_daily_bin1622.fits
Spacecraft file(s): /scratch/kocevski/506893/ft2_4FGL_J2358.3-1021_daily_bin1622.fits
Exposure map: /scratch/kocevski/506893/expmap_659750401_660009601_4FGL_J2358.3-1021_daily_bin1622.fits
Exposure cube: /scratch/kocevski/506893/ltcube_659750401_660009601_4FGL_J2358.3-1021_daily_bin1622.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/506893/Model_4FGL_J2358.3-1021_daily_bin1622.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) = 4615.60577974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7699       1.0000         .10000E-03   10000.    
     2 'norm      '    42.713       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.745       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.8744       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.9356       1.0000         .10000E-03   10000.    
     8 'norm      '    9.1443       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.351       1.0000         .10000E-03   10000.    
    10 'norm      '    13.021       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.872       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0090       1.0000         .10000E-03   10000.    
    14 'norm      '    1.0501       1.0000         .10000E-03   10000.    
    15 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13856E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.798       1.0000         .10000E-03   10000.    
    20 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .28016       1.0000         .10000E-03   10000.    
    24 'norm      '    15.968       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .19584E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2547       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .55359       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4615.557     FROM MIGRAD    STATUS=CONVERGED    706 CALLS     3546 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7697        5.5922        .26012E-06    .10801E-03
   2  norm          42.713        40.013       -.71128E-07    .16348E-04
   3  Prefactor     23.743        31.216       -.10493E-07    .23585E-04
   4  Prefactor     5.8745        18.415       -.95462E-07    .78484E-05
   5  Prefactor     .10000E-03    5.8007        .63371E-08** at limit **
   6  norm          .10000E-03    2.0087       -.56748E-07** at limit **
   7  Prefactor     9.9376        17.302       -.12929E-06    .35816E-04
   8  norm          9.1413        5.4501       -.41813E-08    .10724E-03
   9  Prefactor     20.352        26.856       -.70373E-07    .14323E-04
  10  norm          13.021        11.468       -.58300E-08    .17210E-04
  11  Prefactor     19.912        51.962       -.10265E-04    .26131E-05
  12  Prefactor     .10000E-03    9.1769       -.15257E-06** at limit **
  13  Prefactor     2.0021        9.5663        .81931E-05   -.61470E-04
  14  norm          1.0500        .89012       -.13609E-08    .23067E-03
  15  norm          .10000E-03    2.0432        .17814E-06** at limit **
  16  Prefactor     .10000E-03    343.55        .12842E-05** at limit **
  17  Prefactor     .10000E-03    31.960        .12750E-06** at limit **
  18  Prefactor     .10000E-03    110.52       -.24800E-06** at limit **
  19  Prefactor     14.796        12.228       -.35629E-06   -.13056E-03
  20  norm          .10000E-03    9.0251        .27682E-06** at limit **
  21  Prefactor     .10000E-03    33.300        .11864E-05** at limit **
  22  Prefactor     .10000E-03    2.1274        .95744E-07** at limit **
  23  norm          .28011        .81130        .10458E-06    .73914E-03
  24  norm          15.969        8.1421        .76158E-07    .68060E-03
  25  Prefactor     .10000E-03    7.7130       -.95681E-07** at limit **
  26  Prefactor     .10000E-03    5.9591       -.14118E-05** at limit **
  27  Normalizat    1.2545        .20215        .43964E-06    .45247E-03
  28  Prefactor     .55372        .18021        .12903E-06    .38103E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.76971
  norm       = 42.7126
  Prefactor  = 23.7433
  Prefactor  = 5.87448
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.93762
  norm       = 9.14127
  Prefactor  = 20.3516
  norm       = 13.0208
  Prefactor  = 19.9125
  Prefactor  = 0.0001
  Prefactor  = 2.00207
  norm       = 1.05004
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 14.7958
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.28011
  norm       = 15.9692
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.25454
  Prefactor  = 0.553723
 **********
 **   18 **HESSE 
 **********

 FCN=   4615.557     FROM HESSE     STATUS=OK           519 CALLS     4065 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7697        5.5904        .16919E-03   -1.5271    
   2  norm          42.713        40.006        .61339E-04   -1.4400    
   3  Prefactor     23.743        31.205        .82202E-04   -1.4733    
   4  Prefactor     5.8745        18.393        .16569E-03   -1.5223    
   5  Prefactor     .10000E-03    5.8648        .15930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.0453        .93830E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.9376        17.295        .12713E-03   -1.5077    
   8  norm          9.1413        5.4374        .10456E-03   -1.5103    
   9  Prefactor     20.352        26.862        .88786E-04   -1.4805    
  10  norm          13.021        11.465        .11101E-03   -1.4986    
  11  Prefactor     19.912        52.568        .89847E-04   -1.4815    
  12  Prefactor     .10000E-03    9.1824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.0021        9.8034        .14605E-02   -1.5425    
  14  norm          1.0500        .87160        .56207E-04   -1.5503    
  15  norm          .10000E-03    2.0548        .94861E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    355.48        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    32.596        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    110.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.796        12.196        .10412E-03   -1.4938    
  20  norm          .10000E-03    9.0323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    33.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.1411        .96523E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .28011        .73524        .73365E-04   -1.5602    
  24  norm          15.969        7.5734        .97824E-04   -1.4909    
  25  Prefactor     .10000E-03    7.7332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    15.830        .31515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.2545        .23883        .22085E-03   -.84934    
  28  Prefactor     .55372        .21152        .28683E-03   -1.0957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.40451e-10
Minuit parameter uncertainties:
  1  5.59102
  2  40.031
  3  31.2264
  4  18.4111
  5  4.35505e-07
  6  6.01971e-06
  7  17.3034
  8  5.43765
  9  26.8782
  10  11.4673
  11  52.6908
  12  7.81157e-06
  13  8.8626
  14  0.871611
  15  1.55149e-05
  16  0.00031451
  17  0.000597448
  18  0.000131899
  19  12.1982
  20  1.61609e-05
  21  0.000134598
  22  9.66866e-06
  23  0.735266
  24  7.57385
  25  1.60281e-05
  26  0.000137178
  27  0.23904
  28  0.211819
Done.

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

Extracting fit parameters...

4FGL J2358.3-1021
   Spectrum: PowerLaw
544    Prefactor:  1.000e-04  1.372e-04  1.000e-04  1.000e+04 ( 1.000e-12)
545        Index:  2.593e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
546        Scale:  5.750e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
563    Prefactor:  5.537e-01  2.118e-01  0.000e+00  1.000e+01 ( 1.000e+00)
564        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
565        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
562   Normalization:  1.255e+00  2.390e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 359.582 -10.362
Photon Flux Upper Limit: 9.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/506893/likelihoodResults_659750401_660009601_4FGL_J2358.3-1021_daily_bin1622.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) = 4615.55764213
delta logL = -0.00029971270942

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4615.55734245
delta logL = -2.73030309472e-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.5784       1.0000          .0000       10.000    
     3 'Normalizat'    1.2545       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55376       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4615.557     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      239 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3247        .55613E-01** at limit **
   2  Index         2.5659        6.9161        .50000        .59304E-05
   3  Normalizat    1.2545        .23648E-02    .49955E-01   -.60568E-04
   4  Prefactor     .55372        .21291E-02    .64816E-01   -.16628E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.56595
  Normalizat = 1.25454
  Prefactor  = 0.553721
 **********
 **   18 **HESSE 
 **********

 FCN=   4615.557     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      272 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    88.095        .31702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5659        6.1870        .50000       -.50844    
   3  Normalizat    1.2545        .11569E-01    .22085E-03   -.84934    
   4  Prefactor     .55372        .10400E-01    .28683E-03   -1.0957    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.11289e-07
Minuit parameter uncertainties:
  1  0.000207419
  2  250.404
  3  0.011569
  4  0.0104002
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/506893': 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) = 4615.55734238
delta logL = 4.40713847638e-08

Extracting fit parameters...

4FGL J2358.3-1021
   Spectrum: PowerLaw
544    Prefactor:  1.000e-04  2.074e-04  1.000e-04  1.000e+04 ( 1.000e-12)
545        Index:  2.566e+00  2.504e+02  0.000e+00  1.000e+01 (-1.000e+00)
546        Scale:  5.750e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
563    Prefactor:  5.537e-01  1.040e-02  0.000e+00  1.000e+01 ( 1.000e+00)
564        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
565        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
562   Normalization:  1.255e+00  1.157e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 359.582 -10.362

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/506893/cmap_HighResolution_659750401_660009601_4FGL_J2358.3-1021_daily_bin1622.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.77e-03', job_status='DONE', photon_flux_upper_limit='9.93e-08', time_completed='2021-12-08 10:04:13.417981', job_id='506893', GAL2='0.55', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1638986653.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.55', dlogl='4.41e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1622' AND source_name='4FGL J2358.3-1021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 10:04:13 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 506893: <4FGL_J2358.3-1021_daily_bin1622> in cluster <slac> Done

Job <4FGL_J2358.3-1021_daily_bin1622> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Dec  8 09:50:21 2021
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 09:51:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 09:51:12 2021
Terminated at Wed Dec  8 10:04:14 2021
Results reported at Wed Dec  8 10:04:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3-1021_daily_bin1622 359.582 -10.3616 659750401 660009601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2358.3-1021 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   654.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            833 sec.

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

