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


Performing analysis on: 4FGL_J2358.3-1021_daily_bin1250
RA = 359.582, Dec = -10.3616
tmin = 563328001, tmax = 563587201
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='232578', job_status='RUN', time_executed='2021-09-30 11:31:55.584885', time_epoch_executed='1633026715.58' WHERE source_name='4FGL J2358.3-1021' and cadence='daily' and bin_id='1250'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/232578

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/232578/ft1_4FGL_J2358.3-1021_daily_bin1250.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/232578/ft2_4FGL_J2358.3-1021_daily_bin1250.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/232578/ft1_4FGL_J2358.3-1021_daily_bin1250.fits outfile=/scratch/kocevski/232578/ft1_filteredMKT_4FGL_J2358.3-1021_daily_bin1250.fits ra=359.582 dec=-10.3616 rad=12.0 tmin=563328001.0 tmax=563587201.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.04
user 2.78
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/232578/ft1_filtered_4FGL_J2358.3-1021_daily_bin1250.fits" evtable="EVENTS" scfile=/scratch/kocevski/232578/ft2_4FGL_J2358.3-1021_daily_bin1250.fits sctable="SC_DATA" outfile=/scratch/kocevski/232578/ltcube_563328001_563587201_4FGL_J2358.3-1021_daily_bin1250.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/232578/ft2_4FGL_J2358.3-1021_daily_bin1250.fits
.....................!
real 12.36
user 11.90
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/232578/ft1_filtered_4FGL_J2358.3-1021_daily_bin1250.fits evtable="EVENTS" scfile=/scratch/kocevski/232578/ft2_4FGL_J2358.3-1021_daily_bin1250.fits sctable="SC_DATA" expcube=/scratch/kocevski/232578/ltcube_563328001_563587201_4FGL_J2358.3-1021_daily_bin1250.fits outfile=/scratch/kocevski/232578/expmap_563328001_563587201_4FGL_J2358.3-1021_daily_bin1250.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/232578/ltcube_563328001_563587201_4FGL_J2358.3-1021_daily_bin1250.fits
.....................!
real 190.40
user 185.45
sys 4.35

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/232578/ft1_filtered_4FGL_J2358.3-1021_daily_bin1250.fits scfile=/scratch/kocevski/232578/ft2_4FGL_J2358.3-1021_daily_bin1250.fits outfile=/scratch/kocevski/232578/cmap_563328001_563587201_4FGL_J2358.3-1021_daily_bin1250.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.830       1.0000         .10000E-03   10000.    
     2 'norm      '    24.361       1.0000         .10000E-03   10000.    
     3 'Prefactor '    73.103       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.9916       1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.510       1.0000         .10000E-03   10000.    
     8 'norm      '    .10126E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.036       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.3876       1.0000         .10000E-03   10000.    
    15 'norm      '    9.5734       1.0000         .10000E-03   10000.    
    16 'Prefactor '    28.481       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10471E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.552       1.0000         .10000E-03   10000.    
    20 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    44.518       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .28073       1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.0681       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.4278       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .43734       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=   4024.948     FROM MIGRAD    STATUS=CONVERGED    689 CALLS     3518 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.817        16.792        .76150E-07    .79839E-04
   2  norm          24.368        25.329       -.50327E-07   -.37929E-04
   3  Prefactor     73.160        87.285        .49637E-06    .47649E-04
   4  Prefactor     .10000E-03    19.916        .71120E-07** at limit **
   5  Prefactor     .10000E-03    3.3618       -.32493E-06** at limit **
   6  norm          2.9910        3.7391        .10214E-06    .17348E-04
   7  Prefactor     32.531        33.475        .18206E-06   -.19346E-04
   8  norm          .10000E-03    2.8603       -.88361E-06** at limit **
   9  Prefactor     .10000E-03    12.668       -.26053E-08** at limit **
  10  norm          .10000E-03    6.0442       -.70523E-07** at limit **
  11  Prefactor     24.041        63.088       -.22672E-05    .11902E-05
  12  Prefactor     .10000E-03    15.734        .35025E-07** at limit **
  13  Prefactor     .10000E-03    6.2699        .45211E-07** at limit **
  14  norm          2.3874        1.3182       -.11527E-06   -.17990E-05
  15  norm          9.5751        8.4746        .15442E-05    .48189E-04
  16  Prefactor     28.478        53.701        .29686E-07   -.15603E-05
  17  Prefactor     .10000E-03    15.203        .10549E-06** at limit **
  18  Prefactor     .10000E-03    401.15       -.12517E-06** at limit **
  19  Prefactor     22.534        16.365       -.11434E-05    .42636E-04
  20  norm          .10000E-03    23.918        .10398E-05** at limit **
  21  Prefactor     44.531        68.502       -.68425E-06    .11684E-04
  22  Prefactor     .25411        3.8946       -.19393E-06    .44260E-03
  23  norm          .10000E-03    .21648        .13468E-07** at limit **
  24  norm          3.0666        3.1903        .40458E-07   -.17292E-04
  25  Prefactor     .10000E-03    6.2165        .10814E-06** at limit **
  26  Prefactor     .10000E-03    8.6602        .38894E-06** at limit **
  27  Normalizat    1.4276        .23155       -.25907E-06   -.18621E-05
  28  Prefactor     .43745        .19624       -.45293E-06   -.38804E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.8171
  norm       = 24.368
  Prefactor  = 73.1603
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.99103
  Prefactor  = 32.5307
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 24.0405
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.38739
  norm       = 9.57514
  Prefactor  = 28.4777
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.5345
  norm       = 0.0001
  Prefactor  = 44.5309
  Prefactor  = 0.254105
  norm       = 0.0001
  norm       = 3.06658
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.42762
  Prefactor  = 0.437447
 **********
 **   18 **HESSE 
 **********

 FCN=   4024.948     FROM HESSE     STATUS=OK           523 CALLS     4041 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.817        16.777        .89943E-04   -1.4817    
   2  norm          24.368        25.315        .81159E-04   -1.4720    
   3  Prefactor     73.160        86.972        .23478E-03   -1.3995    
   4  Prefactor     .10000E-03    19.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.3632        .11351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.9910        3.7313        .13308E-03   -1.5362    
   7  Prefactor     32.531        33.424        .70276E-04   -1.4567    
   8  norm          .10000E-03    2.8582        .10421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    6.0471        .15233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     24.041        63.075        .81705E-04   -1.4727    
  12  Prefactor     .10000E-03    15.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.2732        .15488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.3874        1.3157        .50752E-04   -1.5399    
  15  norm          9.5751        8.3762        .64759E-03   -1.5089    
  16  Prefactor     28.478        54.039        .75071E-04   -1.4640    
  17  Prefactor     .10000E-03    15.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    401.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     22.534        16.639        .84345E-04   -1.4758    
  20  norm          .10000E-03    24.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     44.531        68.476        .60088E-04   -1.4372    
  22  Prefactor     .25411        20.940        .21198E-02   -1.5607    
  23  norm          .10000E-03    .27148        .56281E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.0666        3.1291        .10919E-03   -1.5358    
  25  Prefactor     .10000E-03    6.2185        .15447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8.7297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.4276        .26765        .22122E-03   -.79833    
  28  Prefactor     .43745        .22104        .32664E-03   -1.1494    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02307e-09
Minuit parameter uncertainties:
  1  16.7808
  2  25.3258
  3  87.1236
  4  3.05282e-05
  5  1.03142e-06
  6  3.73156
  7  33.4431
  8  2.53422e-06
  9  4.46925e-06
  10  2.31645e-06
  11  63.2503
  12  8.2928e-06
  13  1.57773e-05
  14  1.31572
  15  8.37719
  16  54.1321
  17  2.97011e-06
  18  0.000699089
  19  16.6427
  20  9.60575e-05
  21  68.5977
  22  4.61419
  23  3.248e-07
  24  3.12923
  25  1.48986e-05
  26  9.01782e-06
  27  0.267914
  28  0.221474
Done.

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

Extracting fit parameters...

4FGL J2358.3-1021
   Spectrum: PowerLaw
544    Prefactor:  1.000e-04  9.018e-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:  4.374e-01  2.215e-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.428e+00  2.679e-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.35e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/232578/likelihoodResults_563328001_563587201_4FGL_J2358.3-1021_daily_bin1250.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) = 4024.94812122
delta logL = -0.000545507892639

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4024.94758064
delta logL = -4.92910066896e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13763E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6234       1.0000          .0000       10.000    
     3 'Normalizat'    1.4270       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .43798       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4024.933     FROM MIGRAD    STATUS=FAILED       138 CALLS      296 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34565        116.32        .27747E-01   -.82618E-03
   2  Index         4.2843        7.1067        .50000        .66824E-05
   3  Normalizat    1.4086        .96116E-01    .22122E-03   -.11126E-04
   4  Prefactor     .44704        .56401E-01    .32664E-03   -.81269E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4024.933     FROM SIMPLEX   STATUS=UNCHANGED     86 CALLS      382 TOTAL
                     EDM=   .88E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34565        116.32        .35382E-03   -.82618E-03
   2  Index         4.2843        7.1067        .54219E-02    .66824E-05
   3  Normalizat    1.4086        .96116E-01    .12230E-03   -.11126E-04
   4  Prefactor     .44704        .56401E-01    .46565E-04   -.81269E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4024.933     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      415 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34565        4.0776        .14036E-02   -.33058E-02
   2  Index         4.2843        3.2835        .81454E-02    .15053E-05
   3  Normalizat    1.4086        .27474        .88487E-05   -.11049E-04
   4  Prefactor     .44704        .22540        .13066E-04   -.80921E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.345646
  Index      = 4.28434
  Normalizat = 1.40857
  Prefactor  = 0.447044
 **********
 **   18 **HESSE 
 **********

 FCN=   4024.933     FROM HESSE     STATUS=OK            27 CALLS      442 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .34565        5.0592        .28072E-03   -1.5826    
   2  Index         4.2843        3.5388        .32582E-03    12.423    
   3  Normalizat    1.4086        .27503        .17697E-05   -.80381    
   4  Prefactor     .44704        .22518        .26131E-05   -1.1447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34772e-11
Minuit parameter uncertainties:
  1  2.64464
  2  3.94295
  3  0.275319
  4  0.225624
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/232578': 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) = 4024.93258651
delta logL = 0.0149891974711

Extracting fit parameters...

4FGL J2358.3-1021
   Spectrum: PowerLaw
544    Prefactor:  3.456e-01  2.645e+00  1.000e-04  1.000e+04 ( 1.000e-12)
545        Index:  4.284e+00  3.943e+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:  4.470e-01  2.256e-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.409e+00  2.753e-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/232578/cmap_HighResolution_563328001_563587201_4FGL_J2358.3-1021_daily_bin1250.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', job_status='DONE', photon_flux_upper_limit='1.35e-07', time_completed='2021-09-30 11:41:56.939839', job_id='232578', GAL2='0.45', fit_tolerance='1e-08', EG2='1.41', EG='1.43', time_epoch_completed='1633027316.94', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.44', dlogl='1.50e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1250' AND source_name='4FGL J2358.3-1021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 11:41:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 232578: <4FGL_J2358.3-1021_daily_bin1250> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3-1021_daily_bin1250 359.582 -10.3616 563328001 563587201 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 :                                   594.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            691 sec.

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

