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


Performing analysis on: 4FGL_J2358.3-1021_daily_bin1554
RA = 359.582, Dec = -10.3616
tmin = 642124801, tmax = 642384001
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='233033', job_status='RUN', time_executed='2021-09-30 11:31:33.244793', time_epoch_executed='1633026693.24' WHERE source_name='4FGL J2358.3-1021' and cadence='daily' and bin_id='1554'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/233033

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/233033/ft1_4FGL_J2358.3-1021_daily_bin1554.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/233033/ft2_4FGL_J2358.3-1021_daily_bin1554.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/233033/ft1_4FGL_J2358.3-1021_daily_bin1554.fits outfile=/scratch/kocevski/233033/ft1_filteredMKT_4FGL_J2358.3-1021_daily_bin1554.fits ra=359.582 dec=-10.3616 rad=12.0 tmin=642124801.0 tmax=642384001.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 4.45
user 4.04
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/233033/ft1_filtered_4FGL_J2358.3-1021_daily_bin1554.fits" evtable="EVENTS" scfile=/scratch/kocevski/233033/ft2_4FGL_J2358.3-1021_daily_bin1554.fits sctable="SC_DATA" outfile=/scratch/kocevski/233033/ltcube_642124801_642384001_4FGL_J2358.3-1021_daily_bin1554.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/233033/ft2_4FGL_J2358.3-1021_daily_bin1554.fits
.....................!
real 11.64
user 11.22
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/233033/ft1_filtered_4FGL_J2358.3-1021_daily_bin1554.fits evtable="EVENTS" scfile=/scratch/kocevski/233033/ft2_4FGL_J2358.3-1021_daily_bin1554.fits sctable="SC_DATA" expcube=/scratch/kocevski/233033/ltcube_642124801_642384001_4FGL_J2358.3-1021_daily_bin1554.fits outfile=/scratch/kocevski/233033/expmap_642124801_642384001_4FGL_J2358.3-1021_daily_bin1554.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/233033/ltcube_642124801_642384001_4FGL_J2358.3-1021_daily_bin1554.fits
.....................!
real 190.05
user 184.92
sys 4.82

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/233033/ft1_filtered_4FGL_J2358.3-1021_daily_bin1554.fits scfile=/scratch/kocevski/233033/ft2_4FGL_J2358.3-1021_daily_bin1554.fits outfile=/scratch/kocevski/233033/cmap_642124801_642384001_4FGL_J2358.3-1021_daily_bin1554.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/233033/ft1_filtered_4FGL_J2358.3-1021_daily_bin1554.fits scfile=/scratch/kocevski/233033/ft2_4FGL_J2358.3-1021_daily_bin1554.fits outfile=/scratch/kocevski/233033/cmap_HighResolution_642124801_642384001_4FGL_J2358.3-1021_daily_bin1554.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/233033/ft1_filtered_4FGL_J2358.3-1021_daily_bin1554.fits evtable="EVENTS" scfile=/scratch/kocevski/233033/ft2_4FGL_J2358.3-1021_daily_bin1554.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/233033/Model_4FGL_J2358.3-1021_daily_bin1554.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/233033/ft1_filtered_4FGL_J2358.3-1021_daily_bin1554.fits.....................!
real 41.05
user 39.86
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .61752E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.5723       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.139       1.0000         .10000E-03   10000.    
     6 'norm      '    .35297       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    16.775       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.9967       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .33492E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.3318       1.0000         .10000E-03   10000.    
    20 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.2256       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    6.8563       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .68049E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0688       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .63486       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=   4112.704     FROM MIGRAD    STATUS=CONVERGED    672 CALLS     3442 TOTAL
                     EDM=   .61E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.9780       -.25429E-07** at limit **
   2  norm          .10000E-03    9.6714       -.18946E-07** at limit **
   3  Prefactor     .10000E-03    165.67       -.32726E-05** at limit **
   4  Prefactor     6.5715        13.144        .22457E-05   -.42560E-04
   5  Prefactor     12.131        7.2182       -.26192E-06   -.17500E-04
   6  norm          .35903        2.2541        .26801E-06   -.17710E-03
   7  Prefactor     .10000E-03    5.5868       -.78140E-08** at limit **
   8  norm          .10000E-03    1.5467        .39440E-07** at limit **
   9  Prefactor     .10000E-03    19.200       -.58384E-07** at limit **
  10  norm          16.776        11.070        .18499E-07   -.24658E-04
  11  Prefactor     .10000E-03    16.465        .10770E-06** at limit **
  12  Prefactor     .10000E-03    45.933        .18864E-06** at limit **
  13  Prefactor     .10000E-03    3.4143       -.71893E-07** at limit **
  14  norm          .10000E-03    .24029       -.28200E-07** at limit **
  15  norm          9.9986        6.5496        .11100E-05   -.69966E-04
  16  Prefactor     .10000E-03    17.452        .48178E-07** at limit **
  17  Prefactor     .10000E-03    6.2344        .51924E-07** at limit **
  18  Prefactor     .10002E-03    505.08       -.33031E-05** at limit **
  19  Prefactor     7.3059        14.908       -.35755E-06   -.10987E-05
  20  norm          .10000E-03    17.042        .39553E-07** at limit **
  21  Prefactor     .10000E-03    40.366        .17622E-06** at limit **
  22  Prefactor     4.2262        5.0992        .63615E-07   -.18417E-04
  23  norm          .10000E-03    .23753       -.62733E-07** at limit **
  24  norm          6.8570        4.5911        .56096E-06    .23761E-04
  25  Prefactor     .10000E-03    19.516       -.26980E-06** at limit **
  26  Prefactor     .10000E-03    4.9179        .22500E-06** at limit **
  27  Normalizat    1.0688        .19709       -.53228E-06   -.47067E-04
  28  Prefactor     .63471        .17308       -.11019E-05   -.20121E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 6.57152
  Prefactor  = 12.1309
  norm       = 0.359027
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 16.7762
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.99862
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 7.3059
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.22623
  norm       = 0.0001
  norm       = 6.857
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Normalizat = 1.06879
  Prefactor  = 0.634713
 **********
 **   18 **HESSE 
 **********

 FCN=   4112.704     FROM HESSE     STATUS=OK           517 CALLS     3959 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.9963        .13971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    9.6723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    168.63        .21049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.5715        13.040        .78268E-03   -1.5195    
   5  Prefactor     12.131        7.1852        .11497E-03   -1.5011    
   6  norm          .35903        3.7686        .17743E-02   -1.5588    
   7  Prefactor     .10000E-03    5.6059        .14801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.5537        .77709E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          16.776        11.032        .97788E-04   -1.4889    
  11  Prefactor     .10000E-03    16.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    46.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.4285        .11572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .24247        .30681E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.9986        6.5399        .63367E-03   -1.5075    
  16  Prefactor     .10000E-03    17.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.2418        .15640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10002E-03    509.61        .21343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.3059        14.726        .14813E-03   -1.5167    
  20  norm          .10000E-03    17.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    40.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.2262        5.0397        .13059E-03   -1.5297    
  23  norm          .10000E-03    .27306        .59669E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.8570        4.5342        .53084E-03   -1.5184    
  25  Prefactor     .10000E-03    19.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    37.297        .26992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0688        .22691        .21596E-03   -.90760    
  28  Prefactor     .63471        .19988        .24347E-03   -1.0614    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49764e-08
Minuit parameter uncertainties:
  1  9.51481e-06
  2  6.93148e-06
  3  0.00164999
  4  13.046
  5  7.18571
  6  2.32626
  7  8.4261e-07
  8  5.07249e-06
  9  3.55954e-05
  10  11.033
  11  4.46913e-05
  12  5.51684e-05
  13  7.31711e-06
  14  2.48183e-07
  15  6.54039
  16  1.44864e-05
  17  9.0928e-06
  18  0.00567099
  19  14.7329
  20  4.79778e-05
  21  0.000119675
  22  5.04023
  23  1.68567e-06
  24  4.53447
  25  2.62578e-05
  26  0.000752874
  27  0.227113
  28  0.2001
Done.

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

Extracting fit parameters...

4FGL J2358.3-1021
   Spectrum: PowerLaw
544    Prefactor:  1.000e-04  7.529e-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:  6.347e-01  2.001e-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.069e+00  2.271e-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: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/233033/likelihoodResults_642124801_642384001_4FGL_J2358.3-1021_daily_bin1554.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) = 4112.70387225
delta logL = -0.000127009861899

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4112.70374531
delta logL = -6.75217961543e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5780       1.0000          .0000       10.000    
     3 'Normalizat'    1.0688       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63471       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=   4112.704     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      226 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3421        .57441E-01** at limit **
   2  Index         2.5670        5.9562        .50000        .19045E-05
   3  Normalizat    1.0688        .20426E-02    .39440E-01    .96132E-04
   4  Prefactor     .63471        .18257E-02    .41525E-01    .84202E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.56699
  Normalizat = 1.06879
  Prefactor  = 0.634713
 **********
 **   18 **HESSE 
 **********

 FCN=   4112.704     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      259 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    171.34        .33672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5670        8.6201        .50000       -.50820    
   3  Normalizat    1.0688        .10197E-01    .21596E-03   -.90760    
   4  Prefactor     .63471        .91105E-02    .24347E-03   -1.0614    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.87363e-09
Minuit parameter uncertainties:
  1  0.00160411
  2  264.159
  3  0.0101966
  4  0.00911052
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/233033': 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) = 4112.70374523
delta logL = 1.64191078511e-08

Extracting fit parameters...

4FGL J2358.3-1021
   Spectrum: PowerLaw
544    Prefactor:  1.000e-04  1.604e-03  1.000e-04  1.000e+04 ( 1.000e-12)
545        Index:  2.567e+00  2.642e+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:  6.347e-01  9.111e-03  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.069e+00  1.020e-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/233033/cmap_HighResolution_642124801_642384001_4FGL_J2358.3-1021_daily_bin1554.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.62e-03', job_status='DONE', photon_flux_upper_limit='1.10e-07', time_completed='2021-09-30 11:41:40.330555', job_id='233033', GAL2='0.63', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1633027300.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='1.64e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1554' AND source_name='4FGL J2358.3-1021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 11:41:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 233033: <4FGL_J2358.3-1021_daily_bin1554> in cluster <slac> Done

Job <4FGL_J2358.3-1021_daily_bin1554> 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) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 11:31:04 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:04 2021
Terminated at Thu Sep 30 11:41:41 2021
Results reported at Thu Sep 30 11:41:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3-1021_daily_bin1554 359.582 -10.3616 642124801 642384001 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 :                                   602.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   636 sec.
    Turnaround time :                            639 sec.

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

