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


Performing analysis on: 4FGL_J2358.3-1021_daily_bin1195
RA = 359.582, Dec = -10.3616
tmin = 549072001, tmax = 549331201
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='232500', job_status='RUN', time_executed='2021-09-30 11:32:31.521205', time_epoch_executed='1633026751.52' WHERE source_name='4FGL J2358.3-1021' and cadence='daily' and bin_id='1195'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/232500

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/232500/ft1_4FGL_J2358.3-1021_daily_bin1195.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/232500/ft2_4FGL_J2358.3-1021_daily_bin1195.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/232500/ft1_4FGL_J2358.3-1021_daily_bin1195.fits outfile=/scratch/kocevski/232500/ft1_filteredMKT_4FGL_J2358.3-1021_daily_bin1195.fits ra=359.582 dec=-10.3616 rad=12.0 tmin=549072001.0 tmax=549331201.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.93
user 2.70
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/232500/ft1_filtered_4FGL_J2358.3-1021_daily_bin1195.fits" evtable="EVENTS" scfile=/scratch/kocevski/232500/ft2_4FGL_J2358.3-1021_daily_bin1195.fits sctable="SC_DATA" outfile=/scratch/kocevski/232500/ltcube_549072001_549331201_4FGL_J2358.3-1021_daily_bin1195.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/232500/ft2_4FGL_J2358.3-1021_daily_bin1195.fits
.....................!
real 12.34
user 11.96
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/232500/ft1_filtered_4FGL_J2358.3-1021_daily_bin1195.fits evtable="EVENTS" scfile=/scratch/kocevski/232500/ft2_4FGL_J2358.3-1021_daily_bin1195.fits sctable="SC_DATA" expcube=/scratch/kocevski/232500/ltcube_549072001_549331201_4FGL_J2358.3-1021_daily_bin1195.fits outfile=/scratch/kocevski/232500/expmap_549072001_549331201_4FGL_J2358.3-1021_daily_bin1195.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/232500/ltcube_549072001_549331201_4FGL_J2358.3-1021_daily_bin1195.fits
.....................!
real 190.24
user 184.87
sys 4.98

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/232500/ft1_filtered_4FGL_J2358.3-1021_daily_bin1195.fits scfile=/scratch/kocevski/232500/ft2_4FGL_J2358.3-1021_daily_bin1195.fits outfile=/scratch/kocevski/232500/cmap_549072001_549331201_4FGL_J2358.3-1021_daily_bin1195.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/232500/ft1_filtered_4FGL_J2358.3-1021_daily_bin1195.fits scfile=/scratch/kocevski/232500/ft2_4FGL_J2358.3-1021_daily_bin1195.fits outfile=/scratch/kocevski/232500/cmap_HighResolution_549072001_549331201_4FGL_J2358.3-1021_daily_bin1195.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.54
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/232500/ft1_filtered_4FGL_J2358.3-1021_daily_bin1195.fits evtable="EVENTS" scfile=/scratch/kocevski/232500/ft2_4FGL_J2358.3-1021_daily_bin1195.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/232500/Model_4FGL_J2358.3-1021_daily_bin1195.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/232500/ft1_filtered_4FGL_J2358.3-1021_daily_bin1195.fits.....................!
real 59.76
user 58.38
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.9914       1.0000         .10000E-03   10000.    
     6 'norm      '    .54071       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.3565       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .18819       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.156       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.6396       1.0000         .10000E-03   10000.    
    14 'norm      '    1.3541       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.1033       1.0000         .10000E-03   10000.    
    20 'norm      '    7.0389       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .23684       1.0000         .10000E-03   10000.    
    24 'norm      '    12.586       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.9696       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.1544       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0916       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .82263       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=   7238.523     FROM MIGRAD    STATUS=CONVERGED    701 CALLS     3477 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9637       -.26297E-08** at limit **
   2  norm          .10000E-03    34.377        .74571E-06** at limit **
   3  Prefactor     .10000E-03    20.456        .19781E-06** at limit **
   4  Prefactor     .10000E-03    7.4770        .33579E-08** at limit **
   5  Prefactor     5.9915        5.0512        .59785E-07    .25681E-03
   6  norm          .54385        1.9724        .30720E-07   -.26458E-03
   7  Prefactor     .10000E-03    3.1391       -.62268E-08** at limit **
   8  norm          6.3573        3.3867       -.10524E-07   -.30198E-03
   9  Prefactor     .10000E-03    5.2683       -.16289E-07** at limit **
  10  norm          .11129        42.632        .36271E-05   -.28952E-03
  11  Prefactor     .10000E-03    14.208       -.44919E-07** at limit **
  12  Prefactor     17.151        22.629       -.23115E-06    .46733E-04
  13  Prefactor     6.6391        4.7695        .21110E-07   -.11374E-03
  14  norm          1.3541        .73344        .16504E-08   -.16760E-03
  15  norm          .10000E-03    .90966       -.28461E-07** at limit **
  16  Prefactor     .10000E-03    18.387       -.22882E-06** at limit **
  17  Prefactor     .10000E-03    3.8024        .16954E-08** at limit **
  18  Prefactor     .10000E-03    104.01        .35270E-06** at limit **
  19  Prefactor     2.0930        9.9290       -.18075E-06    .39673E-04
  20  norm          7.0567        22.738        .31285E-06   -.43696E-04
  21  Prefactor     .10000E-03    8.4148       -.34466E-07** at limit **
  22  Prefactor     .10000E-03    1.1085       -.15919E-08** at limit **
  23  norm          .23673        .40234       -.62564E-06   -.90677E-03
  24  norm          12.586        5.3227        .69697E-06    .63694E-03
  25  Prefactor     4.9689        7.9200        .63706E-08    .36901E-03
  26  Prefactor     3.1531        4.1670        .14177E-06    .16875E-02
  27  Normalizat    1.0915        .16052        .38065E-06   -.27352E-03
  28  Prefactor     .82284        .14798        .26330E-06   -.29461E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.99149
  norm       = 0.543854
  Prefactor  = 0.0001
  norm       = 6.3573
  Prefactor  = 0.0001
  norm       = 0.11129
  Prefactor  = 0.0001
  Prefactor  = 17.151
  Prefactor  = 6.63909
  norm       = 1.35409
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.09302
  norm       = 7.05668
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.236731
  norm       = 12.586
  Prefactor  = 4.96892
  Prefactor  = 3.15314
  Normalizat = 1.09148
  Prefactor  = 0.822837
 **********
 **   18 **HESSE 
 **********

 FCN=   7238.523     FROM HESSE     STATUS=OK           531 CALLS     4008 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9662        .11643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    34.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.4922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.9915        5.0767        .78615E-03   -1.5218    
   6  norm          .54385        3.1630        .20918E-02   -1.5560    
   7  Prefactor     .10000E-03    3.1429        .14720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.3573        3.3825        .10105E-03   -1.5204    
   9  Prefactor     .10000E-03    5.2704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .11129        5.0452        .61810E-01   -1.5641    
  11  Prefactor     .10000E-03    14.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.151        22.625        .96697E-04   -1.4879    
  13  Prefactor     6.6391        4.7680        .15304E-03   -1.5193    
  14  norm          1.3541        .72400        .51804E-04   -1.5475    
  15  norm          .10000E-03    .91053        .79237E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.8068        .16201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    104.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.0930        9.1585        .28453E-03   -1.5419    
  20  norm          7.0567        21.898        .15121E-03   -1.5177    
  21  Prefactor     .10000E-03    8.4155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.1220        .87319E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .23673        .40550        .69028E-03   -1.5611    
  24  norm          12.586        5.4167        .54132E-03   -1.4998    
  25  Prefactor     4.9689        8.0504        .90202E-03   -1.5262    
  26  Prefactor     3.1531        5.8213        .11411E-02   -1.5353    
  27  Normalizat    1.0915        .18643        .23330E-03   -.90026    
  28  Prefactor     .82284        .17004        .24642E-03   -.98892    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03667e-08
Minuit parameter uncertainties:
  1  1.1387e-06
  2  2.24156e-05
  3  3.06883e-05
  4  8.83877e-06
  5  5.07704
  6  2.62312
  7  2.35326e-06
  8  3.38262
  9  1.5985e-06
  10  1.4981
  11  3.53477e-05
  12  22.6368
  13  4.76826
  14  0.724006
  15  8.23508e-07
  16  4.73693e-05
  17  1.59885e-06
  18  0.000108372
  19  8.75852
  20  21.9226
  21  3.94715e-06
  22  2.50933e-06
  23  0.405506
  24  5.41687
  25  8.05213
  26  5.82231
  27  0.186539
  28  0.170152
Done.

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

Extracting fit parameters...

4FGL J2358.3-1021
   Spectrum: PowerLaw
544    Prefactor:  3.153e+00  5.822e+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

GAL_V02
   Spectrum: PowerLaw
563    Prefactor:  8.228e-01  1.702e-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.091e+00  1.865e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/232500/likelihoodResults_549072001_549331201_4FGL_J2358.3-1021_daily_bin1195.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) = 7238.51312154
delta logL = 0.0100457421759

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7238.51026986
delta logL = 0.0128974162844

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6299       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3827       1.0000          .0000       10.000    
     3 'Normalizat'    1.0945       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82034       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7238.510     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      258 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6294        6.8976        .21205E-03    .24447E-04
   2  Index         2.3827        1.2661        .16070E-01    .15176E-04
   3  Normalizat    1.0945        .18024        .23301E-03    .18219E-03
   4  Prefactor     .82035        .16721        .24675E-03    .12592E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.62945
  Index      = 2.38275
  Normalizat = 1.09454
  Prefactor  = 0.820346
 **********
 **   18 **HESSE 
 **********

 FCN=   7238.510     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6294        6.7026        .84821E-05   -1.5327    
   2  Index         2.3827        1.2320        .64279E-03   -.55090    
   3  Normalizat    1.0945        .18038        .46602E-04   -.89927    
   4  Prefactor     .82035        .16725        .98700E-05   -.98983    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41638e-11
Minuit parameter uncertainties:
  1  6.70395
  2  1.24981
  3  0.180484
  4  0.167356
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/232500': 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) = 7238.51026986
delta logL = 0.0128974200707

Extracting fit parameters...

4FGL J2358.3-1021
   Spectrum: PowerLaw
544    Prefactor:  3.629e+00  6.704e+00  1.000e-04  1.000e+04 ( 1.000e-12)
545        Index:  2.383e+00  1.250e+00  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:  8.203e-01  1.674e-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.095e+00  1.805e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/232500/cmap_HighResolution_549072001_549331201_4FGL_J2358.3-1021_daily_bin1195.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.31e-03', job_status='DONE', photon_flux_upper_limit='9.35e-08', time_completed='2021-09-30 11:46:27.152232', job_id='232500', GAL2='0.82', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1633027587.15', return_code2='0', ts='0.34', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.29e-02', ts2='0.36', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1195' AND source_name='4FGL J2358.3-1021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 11:46:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 232500: <4FGL_J2358.3-1021_daily_bin1195> in cluster <slac> Done

Job <4FGL_J2358.3-1021_daily_bin1195> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep 30 11:30:20 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 11:30:22 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:30:22 2021
Terminated at Thu Sep 30 11:46:27 2021
Results reported at Thu Sep 30 11:46:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3-1021_daily_bin1195 359.582 -10.3616 549072001 549331201 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 :                                   833.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   965 sec.
    Turnaround time :                            967 sec.

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

