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


Performing analysis on: 4FGL_J2358.3-1021_daily_bin1549
RA = 359.582, Dec = -10.3616
tmin = 640828801, tmax = 641088001
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='233026', job_status='RUN', time_executed='2021-09-30 11:32:31.562747', time_epoch_executed='1633026751.56' WHERE source_name='4FGL J2358.3-1021' and cadence='daily' and bin_id='1549'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/233026

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/233026/ft1_4FGL_J2358.3-1021_daily_bin1549.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/233026/ft2_4FGL_J2358.3-1021_daily_bin1549.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/233026/ft1_4FGL_J2358.3-1021_daily_bin1549.fits outfile=/scratch/kocevski/233026/ft1_filteredMKT_4FGL_J2358.3-1021_daily_bin1549.fits ra=359.582 dec=-10.3616 rad=12.0 tmin=640828801.0 tmax=641088001.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.13
user 2.93
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/233026/ft2_4FGL_J2358.3-1021_daily_bin1549.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/233026/ft1_filteredMKT_4FGL_J2358.3-1021_daily_bin1549.fits evtable="EVENTS" outfile="/scratch/kocevski/233026/ft1_filtered_4FGL_J2358.3-1021_daily_bin1549.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/233026/ft1_filtered_4FGL_J2358.3-1021_daily_bin1549.fits" evtable="EVENTS" scfile=/scratch/kocevski/233026/ft2_4FGL_J2358.3-1021_daily_bin1549.fits sctable="SC_DATA" outfile=/scratch/kocevski/233026/ltcube_640828801_641088001_4FGL_J2358.3-1021_daily_bin1549.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/233026/ft2_4FGL_J2358.3-1021_daily_bin1549.fits
.....................!
real 13.22
user 12.89
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/233026/ft1_filtered_4FGL_J2358.3-1021_daily_bin1549.fits evtable="EVENTS" scfile=/scratch/kocevski/233026/ft2_4FGL_J2358.3-1021_daily_bin1549.fits sctable="SC_DATA" expcube=/scratch/kocevski/233026/ltcube_640828801_641088001_4FGL_J2358.3-1021_daily_bin1549.fits outfile=/scratch/kocevski/233026/expmap_640828801_641088001_4FGL_J2358.3-1021_daily_bin1549.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/233026/ltcube_640828801_641088001_4FGL_J2358.3-1021_daily_bin1549.fits
.....................!
real 190.71
user 185.29
sys 5.11

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/233026/ft1_filtered_4FGL_J2358.3-1021_daily_bin1549.fits scfile=/scratch/kocevski/233026/ft2_4FGL_J2358.3-1021_daily_bin1549.fits outfile=/scratch/kocevski/233026/cmap_640828801_641088001_4FGL_J2358.3-1021_daily_bin1549.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/233026/ft1_filtered_4FGL_J2358.3-1021_daily_bin1549.fits scfile=/scratch/kocevski/233026/ft2_4FGL_J2358.3-1021_daily_bin1549.fits outfile=/scratch/kocevski/233026/cmap_HighResolution_640828801_641088001_4FGL_J2358.3-1021_daily_bin1549.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.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/233026/ft1_filtered_4FGL_J2358.3-1021_daily_bin1549.fits evtable="EVENTS" scfile=/scratch/kocevski/233026/ft2_4FGL_J2358.3-1021_daily_bin1549.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/233026/Model_4FGL_J2358.3-1021_daily_bin1549.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/233026/ft1_filtered_4FGL_J2358.3-1021_daily_bin1549.fits.....................!
real 45.79
user 44.53
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/233026/ft1_filtered_4FGL_J2358.3-1021_daily_bin1549.fits', '/scratch/kocevski/233026/ft2_4FGL_J2358.3-1021_daily_bin1549.fits', expMap='/scratch/kocevski/233026/expmap_640828801_641088001_4FGL_J2358.3-1021_daily_bin1549.fits', expCube='/scratch/kocevski/233026/ltcube_640828801_641088001_4FGL_J2358.3-1021_daily_bin1549.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/233026/Model_4FGL_J2358.3-1021_daily_bin1549.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/233026/ft1_filtered_4FGL_J2358.3-1021_daily_bin1549.fits
Spacecraft file(s): /scratch/kocevski/233026/ft2_4FGL_J2358.3-1021_daily_bin1549.fits
Exposure map: /scratch/kocevski/233026/expmap_640828801_641088001_4FGL_J2358.3-1021_daily_bin1549.fits
Exposure cube: /scratch/kocevski/233026/ltcube_640828801_641088001_4FGL_J2358.3-1021_daily_bin1549.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/233026/Model_4FGL_J2358.3-1021_daily_bin1549.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) = 5015.82030978

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.020       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.4233       1.0000         .10000E-03   10000.    
     6 'norm      '    1.9594       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.987       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5473       1.0000         .10000E-03   10000.    
    10 'norm      '    20.226       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.9923       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.578       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.0126       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.6207       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    41.266       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.0495       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .45578       1.0000         .10000E-03   10000.    
    24 'norm      '    6.0032       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0267       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .76702       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=   5015.813     FROM MIGRAD    STATUS=CONVERGED    655 CALLS     3447 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.6525        .25608E-07** at limit **
   2  norm          .10000E-03    17.276       -.20808E-05** at limit **
   3  Prefactor     27.021        45.436        .34007E-06    .14849E-04
   4  Prefactor     .10000E-03    29.779       -.27552E-05** at limit **
   5  Prefactor     7.4228        7.4847        .11994E-05   -.27300E-03
   6  norm          1.9589        4.5336        .43151E-06   -.47611E-04
   7  Prefactor     15.985        17.222       -.38283E-06   -.10166E-04
   8  norm          .10000E-03    3.6915       -.33451E-06** at limit **
   9  Prefactor     3.5471        11.410        .52073E-06   -.15435E-04
  10  norm          20.226        15.408       -.42007E-07   -.16894E-04
  11  Prefactor     5.9916        109.78       -.14700E-04   -.30263E-04
  12  Prefactor     16.576        17.555        .12807E-07   -.36549E-04
  13  Prefactor     7.0131        11.338        .44937E-05   -.34343E-03
  14  norm          .10000E-03    .33531        .15718E-06** at limit **
  15  norm          .10000E-03    5.0309       -.61165E-06** at limit **
  16  Prefactor     4.6179        58.736       -.56614E-06   -.23647E-04
  17  Prefactor     .10000E-03    5.0406        .16010E-06** at limit **
  18  Prefactor     41.385        180.84        .27084E-04    .12560E-03
  19  Prefactor     1.0490        11.149        .32487E-05   -.27118E-03
  20  norm          .10000E-03    26.834       -.12372E-05** at limit **
  21  Prefactor     .10000E-03    21.127        .28076E-05** at limit **
  22  Prefactor     .10000E-03    2.4161        .36493E-06** at limit **
  23  norm          .45578        .65405       -.49449E-06   -.57850E-03
  24  norm          6.0027        5.5420        .20140E-05   -.74529E-03
  25  Prefactor     .10000E-03    10.024        .23559E-06** at limit **
  26  Prefactor     .10000E-03    5.2889       -.18331E-06** at limit **
  27  Normalizat    1.0268        .18782       -.28802E-06   -.89882E-05
  28  Prefactor     .76694        .17022       -.18941E-05    .55357E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 27.0215
  Prefactor  = 0.000100002
  Prefactor  = 7.42279
  norm       = 1.95887
  Prefactor  = 15.9851
  norm       = 0.0001
  Prefactor  = 3.54711
  norm       = 20.2258
  Prefactor  = 5.9916
  Prefactor  = 16.5762
  Prefactor  = 7.01313
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.61792
  Prefactor  = 0.0001
  Prefactor  = 41.3845
  Prefactor  = 1.04897
  norm       = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.455782
  norm       = 6.00267
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.0268
  Prefactor  = 0.766935
 **********
 **   18 **HESSE 
 **********

 FCN=   5015.813     FROM HESSE     STATUS=OK           521 CALLS     3968 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.6642        .13217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    17.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     27.021        45.414        .77069E-04   -1.4668    
   4  Prefactor     .10000E-03    29.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.4228        7.4602        .73602E-03   -1.5163    
   6  norm          1.9589        4.5021        .21404E-03   -1.5428    
   7  Prefactor     15.985        17.172        .10017E-03   -1.4908    
   8  norm          .10000E-03    3.7614        .26370E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.5471        11.391        .21461E-03   -1.5331    
  10  norm          20.226        15.383        .89058E-04   -1.4808    
  11  Prefactor     5.9916        107.16        .16403E-03   -1.5218    
  12  Prefactor     16.576        17.555        .98368E-04   -1.4893    
  13  Prefactor     7.0131        11.322        .75746E-03   -1.5178    
  14  norm          .10000E-03    .34421        .79813E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.1221        .15493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.6179        58.627        .18724E-03   -1.5278    
  17  Prefactor     .10000E-03    5.0462        .15525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     41.385        205.81        .31200E-03   -1.4420    
  19  Prefactor     1.0490        11.219        .43873E-03   -1.5503    
  20  norm          .10000E-03    27.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    21.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.4340        .10703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .45578        .61326        .50577E-03   -1.5573    
  24  norm          6.0027        5.5276        .59285E-03   -1.5218    
  25  Prefactor     .10000E-03    10.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    5.3384        .15896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0268        .22148        .22930E-03   -.92138    
  28  Prefactor     .76694        .19984        .23872E-03   -1.0096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95515e-09
Minuit parameter uncertainties:
  1  2.76993e-06
  2  0.000249235
  3  45.4721
  4  0.00044198
  5  7.46116
  6  4.50286
  7  17.1776
  8  2.20219e-05
  9  11.3979
  10  15.3856
  11  50.783
  12  17.5607
  13  11.3257
  14  6.82207e-06
  15  8.77588e-05
  16  32.9475
  17  2.12509e-05
  18  185.609
  19  6.86244
  20  0.000270716
  21  0.000374972
  22  5.78205e-05
  23  0.613271
  24  5.52805
  25  2.47221e-05
  26  2.33107e-06
  27  0.221678
  28  0.200031
Done.

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

Extracting fit parameters...

4FGL J2358.3-1021
   Spectrum: PowerLaw
544    Prefactor:  1.000e-04  2.331e-06  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:  7.669e-01  2.000e-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.027e+00  2.217e-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.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/233026/likelihoodResults_640828801_641088001_4FGL_J2358.3-1021_daily_bin1549.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) = 5015.81379554
delta logL = -0.000892734676199

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5015.81290305
delta logL = -2.45520823228e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5925       1.0000          .0000       10.000    
     3 'Normalizat'    1.0267       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76703       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=   5015.813     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      199 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.133        .90712E-02** at limit **
   2  Index         2.5920        7.8611        .50000        .80763E-06
   3  Normalizat    1.0268        .12440E-01    .42506E-01    .20574E-04
   4  Prefactor     .76693        .11409E-01    .43287E-01    .24787E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.59199
  Normalizat = 1.0268
  Prefactor  = 0.766935
 **********
 **   18 **HESSE 
 **********

 FCN=   5015.813     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3400        .15896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5920        8.5769        .50000       -.50248    
   3  Normalizat    1.0268        .21391        .22930E-03   -.92138    
   4  Prefactor     .76693        .19614        .23872E-03   -1.0096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17202e-09
Minuit parameter uncertainties:
  1  2.63214e-05
  2  185.046
  3  0.214094
  4  0.196321
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/233026': 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) = 5015.8129028
delta logL = 2.31921148952e-10

Extracting fit parameters...

4FGL J2358.3-1021
   Spectrum: PowerLaw
544    Prefactor:  1.000e-04  2.632e-05  1.000e-04  1.000e+04 ( 1.000e-12)
545        Index:  2.592e+00  1.850e+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:  7.669e-01  1.963e-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.027e+00  2.141e-01  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/233026/cmap_HighResolution_640828801_641088001_4FGL_J2358.3-1021_daily_bin1549.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.26e-03', job_status='DONE', photon_flux_upper_limit='9.28e-08', time_completed='2021-09-30 11:43:33.006379', job_id='233026', GAL2='0.77', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1633027413.01', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='2.32e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1549' AND source_name='4FGL J2358.3-1021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 11:43:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 233026: <4FGL_J2358.3-1021_daily_bin1549> in cluster <slac> Done

Job <4FGL_J2358.3-1021_daily_bin1549> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep 30 11:31:02 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 11:31:03 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 11:31:03 2021
Terminated at Thu Sep 30 11:43:33 2021
Results reported at Thu Sep 30 11:43:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3-1021_daily_bin1549 359.582 -10.3616 640828801 641088001 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 :                                   655.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            751 sec.

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

