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


Performing analysis on: 4FGL_J2358.3-1021_daily_bin1525
RA = 359.582, Dec = -10.3616
tmin = 634608001, tmax = 634867201
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='232992', job_status='RUN', time_executed='2021-09-30 11:31:40.038383', time_epoch_executed='1633026700.04' WHERE source_name='4FGL J2358.3-1021' and cadence='daily' and bin_id='1525'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/232992

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/232992/ft1_4FGL_J2358.3-1021_daily_bin1525.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/232992/ft2_4FGL_J2358.3-1021_daily_bin1525.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/232992/ft1_4FGL_J2358.3-1021_daily_bin1525.fits outfile=/scratch/kocevski/232992/ft1_filteredMKT_4FGL_J2358.3-1021_daily_bin1525.fits ra=359.582 dec=-10.3616 rad=12.0 tmin=634608001.0 tmax=634867201.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.71
user 2.90
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/232992/ft1_filtered_4FGL_J2358.3-1021_daily_bin1525.fits" evtable="EVENTS" scfile=/scratch/kocevski/232992/ft2_4FGL_J2358.3-1021_daily_bin1525.fits sctable="SC_DATA" outfile=/scratch/kocevski/232992/ltcube_634608001_634867201_4FGL_J2358.3-1021_daily_bin1525.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/232992/ft2_4FGL_J2358.3-1021_daily_bin1525.fits
.....................!
real 12.43
user 12.04
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/232992/ft1_filtered_4FGL_J2358.3-1021_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/232992/ft2_4FGL_J2358.3-1021_daily_bin1525.fits sctable="SC_DATA" expcube=/scratch/kocevski/232992/ltcube_634608001_634867201_4FGL_J2358.3-1021_daily_bin1525.fits outfile=/scratch/kocevski/232992/expmap_634608001_634867201_4FGL_J2358.3-1021_daily_bin1525.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/232992/ltcube_634608001_634867201_4FGL_J2358.3-1021_daily_bin1525.fits
.....................!
real 190.46
user 185.28
sys 4.69

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/232992/ft1_filtered_4FGL_J2358.3-1021_daily_bin1525.fits scfile=/scratch/kocevski/232992/ft2_4FGL_J2358.3-1021_daily_bin1525.fits outfile=/scratch/kocevski/232992/cmap_634608001_634867201_4FGL_J2358.3-1021_daily_bin1525.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/232992/ft1_filtered_4FGL_J2358.3-1021_daily_bin1525.fits scfile=/scratch/kocevski/232992/ft2_4FGL_J2358.3-1021_daily_bin1525.fits outfile=/scratch/kocevski/232992/cmap_HighResolution_634608001_634867201_4FGL_J2358.3-1021_daily_bin1525.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10063E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.4094       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.1773       1.0000         .10000E-03   10000.    
     6 'norm      '    1.2262       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.8710       1.0000         .10000E-03   10000.    
    10 'norm      '    33.580       1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.714       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.4816       1.0000         .10000E-03   10000.    
    14 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .81757E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10691E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .16315E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.6582       1.0000         .10000E-03   10000.    
    20 'norm      '    .10965E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    58.077       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.609       1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    12.561       1.0000         .10000E-03   10000.    
    25 'Prefactor '    20.069       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .85594       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0357       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=   4618.340     FROM MIGRAD    STATUS=CONVERGED    687 CALLS     3501 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0019       -.16882E-07** at limit **
   2  norm          .10000E-03    21.162        .11430E-06** at limit **
   3  Prefactor     .10000E-03    13.536        .20709E-06** at limit **
   4  Prefactor     6.4102        14.068        .13826E-06   -.12329E-04
   5  Prefactor     2.1773        3.3160        .94746E-07   -.59452E-04
   6  norm          1.2262        2.2075        .19635E-06   -.88880E-04
   7  Prefactor     .10000E-03    3.2650        .54066E-08** at limit **
   8  norm          .10000E-03    1.6635        .85925E-07** at limit **
   9  Prefactor     8.8726        14.451        .20028E-06    .46903E-05
  10  norm          33.582        13.656        .12915E-06    .49417E-05
  11  Prefactor     20.790        107.47        .20315E-04    .16774E-03
  12  Prefactor     .10000E-03    17.039       -.17083E-06** at limit **
  13  Prefactor     5.4720        12.899       -.30270E-05    .10328E-03
  14  norm          .10000E-03    .46093       -.27054E-06** at limit **
  15  norm          .10001E-03    7.0584       -.11295E-05** at limit **
  16  Prefactor     .10004E-03    145.02        .14509E-04** at limit **
  17  Prefactor     .10000E-03    17.136        .16678E-06** at limit **
  18  Prefactor     .10007E-03    187.76       -.18696E-04** at limit **
  19  Prefactor     2.6479        36.861        .28896E-04   -.32410E-03
  20  norm          .10001E-03    54.367       -.50493E-05** at limit **
  21  Prefactor     57.999        81.806       -.11707E-04   -.24687E-03
  22  Prefactor     12.611        8.9683       -.37728E-05   -.33082E-03
  23  norm          .10000E-03    .31367       -.78369E-07** at limit **
  24  norm          12.563        7.5870        .74216E-06   -.39271E-03
  25  Prefactor     20.069        15.985        .24672E-06   -.18849E-04
  26  Prefactor     .10000E-03    3.9630       -.20137E-07** at limit **
  27  Normalizat    .85592        .22289       -.10926E-05    .31295E-05
  28  Prefactor     1.0357        .19976       -.19912E-06   -.10543E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.41015
  Prefactor  = 2.17728
  norm       = 1.22619
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.87262
  norm       = 33.5816
  Prefactor  = 20.7896
  Prefactor  = 0.0001
  Prefactor  = 5.47199
  norm       = 0.0001
  norm       = 0.000100012
  Prefactor  = 0.000100036
  Prefactor  = 0.0001
  Prefactor  = 0.000100068
  Prefactor  = 2.64785
  norm       = 0.000100009
  Prefactor  = 57.9988
  Prefactor  = 12.6107
  norm       = 0.0001
  norm       = 12.5631
  Prefactor  = 20.069
  Prefactor  = 0.0001
  Normalizat = 0.855916
  Prefactor  = 1.03571
 **********
 **   18 **HESSE 
 **********

 FCN=   4618.340     FROM HESSE     STATUS=OK           519 CALLS     4020 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0050        .11499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    21.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.4102        13.960        .15854E-03   -1.5202    
   5  Prefactor     2.1773        3.2546        .14592E-03   -1.5413    
   6  norm          1.2262        2.1446        .12572E-03   -1.5487    
   7  Prefactor     .10000E-03    3.2674        .11992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.9100        .16760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.8726        14.446        .13457E-03   -1.5112    
  10  norm          33.582        13.628        .69151E-04   -1.4548    
  11  Prefactor     20.790        110.81        .88005E-04   -1.4796    
  12  Prefactor     .10000E-03    17.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.4720        12.918        .17162E-03   -1.5240    
  14  norm          .10000E-03    .46926        .45061E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10001E-03    19.144        .34053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10004E-03    147.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10007E-03    191.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.6479        40.816        .12500E-02   -1.5383    
  20  norm          .10001E-03    55.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     57.999        83.859        .26321E-03   -1.4183    
  22  Prefactor     12.611        9.0739        .11281E-03   -1.4998    
  23  norm          .10000E-03    .31809        .73452E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          12.563        7.5346        .56511E-03   -1.4999    
  25  Prefactor     20.069        15.983        .89407E-04   -1.4812    
  26  Prefactor     .10000E-03    3.9823        .13207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .85592        .25744        .27843E-03   -.98027    
  28  Prefactor     1.0357        .23132        .23227E-03   -.91549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.72784e-09
Minuit parameter uncertainties:
  1  4.60763e-06
  2  1.32042e-05
  3  2.64501e-05
  4  13.9668
  5  3.25486
  6  2.1447
  7  1.01162e-06
  8  3.41392e-06
  9  14.4516
  10  13.6293
  11  96.2719
  12  2.47436e-05
  13  12.9246
  14  6.30793e-06
  15  0.00096236
  16  0.00461399
  17  6.54183e-06
  18  0.00723155
  19  20.8083
  20  0.00141315
  21  84.0305
  22  9.07487
  23  2.10223e-06
  24  7.53515
  25  15.9866
  26  1.18923e-05
  27  0.257805
  28  0.231539
Done.

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

Extracting fit parameters...

4FGL J2358.3-1021
   Spectrum: PowerLaw
544    Prefactor:  1.000e-04  1.189e-05  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:  1.036e+00  2.315e-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:  8.559e-01  2.578e-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.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/232992/likelihoodResults_634608001_634867201_4FGL_J2358.3-1021_daily_bin1525.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) = 4618.3415221
delta logL = -0.00119493761213

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4618.3403272
delta logL = -3.97003532271e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5945       1.0000          .0000       10.000    
     3 'Normalizat'    .85592       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0357       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=   4618.248     FROM MIGRAD    STATUS=CONVERGED    154 CALLS      292 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11890E-01    .53887E-01    .37643E-02    .63943E-02
   2  Index         6.7613        1.2860        .32979       -.36336E-04
   3  Normalizat    .81559        .30257        .27843E-03    .55409E-04
   4  Prefactor     1.0608        .25177        .23227E-03    .84990E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0118897
  Index      = 6.76132
  Normalizat = 0.815588
  Prefactor  = 1.06077
 **********
 **   18 **HESSE 
 **********

 FCN=   4618.248     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      323 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11890E-01    3.3267        .15874E-03   -1.5686    
   2  Index         6.7613        8.3738        .10568E-01    2.7816    
   3  Normalizat    .81559        .26742        .11137E-04   -.99493    
   4  Prefactor     1.0608        .22248        .46454E-04   -.90730    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.34119e-07
Minuit parameter uncertainties:
  1  0.396107
  2  20.0212
  3  0.267855
  4  0.222676
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/232992': 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) = 4618.24789496
delta logL = 0.0924321987304

Extracting fit parameters...

4FGL J2358.3-1021
   Spectrum: PowerLaw
544    Prefactor:  1.189e-02  3.961e-01  1.000e-04  1.000e+04 ( 1.000e-12)
545        Index:  6.761e+00  2.002e+01  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:  1.061e+00  2.227e-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:  8.156e-01  2.679e-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/232992/cmap_HighResolution_634608001_634867201_4FGL_J2358.3-1021_daily_bin1525.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.14e-03', job_status='DONE', photon_flux_upper_limit='9.13e-08', time_completed='2021-09-30 11:42:34.406667', job_id='232992', GAL2='1.06', fit_tolerance='1e-08', EG2='0.82', EG='0.86', time_epoch_completed='1633027354.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='9.24e-02', ts2='0.22', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1525' AND source_name='4FGL J2358.3-1021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 11:42:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 232992: <4FGL_J2358.3-1021_daily_bin1525> in cluster <slac> Done

Job <4FGL_J2358.3-1021_daily_bin1525> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep 30 11:30:59 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 11:31:00 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:00 2021
Terminated at Thu Sep 30 11:42:34 2021
Results reported at Thu Sep 30 11:42:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3-1021_daily_bin1525 359.582 -10.3616 634608001 634867201 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 :                                   641.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   694 sec.
    Turnaround time :                            695 sec.

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

