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


Performing analysis on: 4FGL_J2358.3-1021_daily_bin1092
RA = 359.582, Dec = -10.3616
tmin = 522374401, tmax = 522633601
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='231632', job_status='RUN', time_executed='2021-09-30 11:28:07.684907', time_epoch_executed='1633026487.68' WHERE source_name='4FGL J2358.3-1021' and cadence='daily' and bin_id='1092'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/231632

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/231632/ft1_4FGL_J2358.3-1021_daily_bin1092.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/231632/ft2_4FGL_J2358.3-1021_daily_bin1092.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/231632/ft1_4FGL_J2358.3-1021_daily_bin1092.fits outfile=/scratch/kocevski/231632/ft1_filteredMKT_4FGL_J2358.3-1021_daily_bin1092.fits ra=359.582 dec=-10.3616 rad=12.0 tmin=522374401.0 tmax=522633601.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.66
user 3.42
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/231632/ft1_filtered_4FGL_J2358.3-1021_daily_bin1092.fits" evtable="EVENTS" scfile=/scratch/kocevski/231632/ft2_4FGL_J2358.3-1021_daily_bin1092.fits sctable="SC_DATA" outfile=/scratch/kocevski/231632/ltcube_522374401_522633601_4FGL_J2358.3-1021_daily_bin1092.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/231632/ft2_4FGL_J2358.3-1021_daily_bin1092.fits
.....................!
real 14.31
user 13.93
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/231632/ft1_filtered_4FGL_J2358.3-1021_daily_bin1092.fits evtable="EVENTS" scfile=/scratch/kocevski/231632/ft2_4FGL_J2358.3-1021_daily_bin1092.fits sctable="SC_DATA" expcube=/scratch/kocevski/231632/ltcube_522374401_522633601_4FGL_J2358.3-1021_daily_bin1092.fits outfile=/scratch/kocevski/231632/expmap_522374401_522633601_4FGL_J2358.3-1021_daily_bin1092.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/231632/ltcube_522374401_522633601_4FGL_J2358.3-1021_daily_bin1092.fits
.....................!
real 191.54
user 185.53
sys 5.55

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/231632/ft1_filtered_4FGL_J2358.3-1021_daily_bin1092.fits scfile=/scratch/kocevski/231632/ft2_4FGL_J2358.3-1021_daily_bin1092.fits outfile=/scratch/kocevski/231632/cmap_522374401_522633601_4FGL_J2358.3-1021_daily_bin1092.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/231632/ft1_filtered_4FGL_J2358.3-1021_daily_bin1092.fits scfile=/scratch/kocevski/231632/ft2_4FGL_J2358.3-1021_daily_bin1092.fits outfile=/scratch/kocevski/231632/cmap_HighResolution_522374401_522633601_4FGL_J2358.3-1021_daily_bin1092.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.61
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/231632/ft1_filtered_4FGL_J2358.3-1021_daily_bin1092.fits evtable="EVENTS" scfile=/scratch/kocevski/231632/ft2_4FGL_J2358.3-1021_daily_bin1092.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/231632/Model_4FGL_J2358.3-1021_daily_bin1092.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/231632/ft1_filtered_4FGL_J2358.3-1021_daily_bin1092.fits.....................!
real 45.90
user 43.70
sys 1.80

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.349       1.0000         .10000E-03   10000.    
     2 'norm      '    15.435       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.574       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .40041E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    10.582       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.7360       1.0000         .10000E-03   10000.    
    15 'norm      '    1.3406       1.0000         .10000E-03   10000.    
    16 'Prefactor '    119.72       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11551E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.411       1.0000         .10000E-03   10000.    
    20 'norm      '    .10189E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.1432       1.0000         .10000E-03   10000.    
    23 'norm      '    .11222       1.0000         .10000E-03   10000.    
    24 'norm      '    20.513       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.2319       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3615       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .64511       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=   4815.576     FROM MIGRAD    STATUS=CONVERGED    702 CALLS     3508 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.348        8.6940       -.94520E-07    .15511E-03
   2  norm          15.438        38.071        .24621E-06   -.45158E-05
   3  Prefactor     17.583        41.758        .37871E-05    .67857E-05
   4  Prefactor     .10061E-03    12.963       -.50956E-05** at limit **
   5  Prefactor     .10000E-03    2.9560       -.78436E-07** at limit **
   6  norm          .10000E-03    1.1162        .50753E-07** at limit **
   7  Prefactor     .10000E-03    4.6658       -.54255E-07** at limit **
   8  norm          .10000E-03    1.5823       -.60506E-07** at limit **
   9  Prefactor     .10000E-03    11.127       -.56631E-06** at limit **
  10  norm          10.583        10.473       -.15929E-06    .27642E-04
  11  Prefactor     .10000E-03    15.443        .40250E-05** at limit **
  12  Prefactor     .10000E-03    26.212        .18678E-04** at limit **
  13  Prefactor     .10000E-03    2.8607        .48022E-08** at limit **
  14  norm          1.7361        .99429       -.41010E-07    .66628E-04
  15  norm          1.3406        2.5636       -.19643E-06   -.33043E-03
  16  Prefactor     119.68        75.730       -.19275E-04    .47483E-04
  17  Prefactor     .10000E-03    24.426       -.14513E-04** at limit **
  18  Prefactor     .10000E-03    230.64       -.12339E-04** at limit **
  19  Prefactor     14.432        15.279        .11017E-05    .11812E-03
  20  norm          .10000E-03    13.018       -.65075E-05** at limit **
  21  Prefactor     .10000E-03    72.990        .12804E-04** at limit **
  22  Prefactor     2.1424        4.8996       -.11021E-05   -.43624E-03
  23  norm          .11316        1.1290        .36855E-06   -.60042E-03
  24  norm          20.496        10.503        .10101E-06   -.32768E-03
  25  Prefactor     .10000E-03    12.232        .45991E-05** at limit **
  26  Prefactor     5.2299        8.9894       -.65704E-06   -.17125E-03
  27  Normalizat    1.3616        .21646        .23361E-05    .64379E-04
  28  Prefactor     .64511        .18668       -.29717E-06    .19306E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.3481
  norm       = 15.4384
  Prefactor  = 17.5832
  Prefactor  = 0.000100612
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.5833
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.7361
  norm       = 1.34057
  Prefactor  = 119.685
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 14.4321
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.14243
  norm       = 0.113161
  norm       = 20.4962
  Prefactor  = 0.0001
  Prefactor  = 5.22986
  Normalizat = 1.3616
  Prefactor  = 0.645111
 **********
 **   18 **HESSE 
 **********

 FCN=   4815.576     FROM HESSE     STATUS=OK           521 CALLS     4029 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.348        8.6887        .56996E-03   -1.5005    
   2  norm          15.438        38.065        .10195E-03   -1.4922    
   3  Prefactor     17.583        41.737        .95540E-04   -1.4869    
   4  Prefactor     .10061E-03    53.602        .47429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.9782        .11647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.1270        .71542E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.6708        .14639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.6009        .85192E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          10.583        10.471        .12317E-03   -1.5057    
  11  Prefactor     .10000E-03    15.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    26.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.8694        .11462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.7361        .98918        .50493E-04   -1.5444    
  15  norm          1.3406        2.5123        .14974E-03   -1.5476    
  16  Prefactor     119.68        75.146        .18390E-03   -1.3516    
  17  Prefactor     .10000E-03    23.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    230.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.432        15.048        .10551E-03   -1.4948    
  20  norm          .10000E-03    13.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    73.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.1424        4.8058        .19562E-03   -1.5415    
  23  norm          .11316        1.6149        .94904E-03   -1.5641    
  24  norm          20.496        9.5715        .88434E-04   -1.4802    
  25  Prefactor     .10000E-03    12.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     5.2299        8.9884        .17573E-03   -1.5251    
  27  Normalizat    1.3616        .25877        .23626E-03   -.81746    
  28  Prefactor     .64511        .22117        .28891E-03   -1.0572    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19732e-08
Minuit parameter uncertainties:
  1  8.68962
  2  38.1246
  3  41.8065
  4  0.0114695
  5  1.06761e-05
  6  1.9685e-06
  7  7.20567e-06
  8  6.57959e-06
  9  7.45733e-06
  10  10.4731
  11  3.15128e-06
  12  0.000115552
  13  1.52509e-06
  14  0.989193
  15  2.51249
  16  75.2058
  17  0.000672506
  18  0.000103703
  19  15.0521
  20  7.45896e-06
  21  8.72823e-05
  22  4.80669
  23  0.854617
  24  9.57217
  25  2.71478e-05
  26  8.99067
  27  0.259016
  28  0.221468
Done.

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

Extracting fit parameters...

4FGL J2358.3-1021
   Spectrum: PowerLaw
544    Prefactor:  5.230e+00  8.991e+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:  6.451e-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.362e+00  2.590e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.43
Ra Dec: 359.582 -10.362
Photon Flux Upper Limit: 1.48e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.15e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/231632/likelihoodResults_522374401_522633601_4FGL_J2358.3-1021_daily_bin1092.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) = 4815.52379005
delta logL = 0.0527098239127

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4815.52045888
delta logL = 0.0560409926748

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3793       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2565       1.0000          .0000       10.000    
     3 'Normalizat'    1.3712       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63722       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=   4815.520     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      283 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3788        9.8760        .15891E-03   -.72971E-05
   2  Index         2.2569        .89995        .11729E-01   -.43660E-04
   3  Normalizat    1.3712        .25098        .23554E-03    .71916E-05
   4  Prefactor     .63719        .21947        .29048E-03    .14990E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.37878
  Index      = 2.25687
  Normalizat = 1.37124
  Prefactor  = 0.637191
 **********
 **   18 **HESSE 
 **********

 FCN=   4815.520     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3788        9.8525        .63566E-05   -1.5203    
   2  Index         2.2569        .89791        .23458E-02   -.58072    
   3  Normalizat    1.3712        .25119        .94217E-05   -.81464    
   4  Prefactor     .63719        .21959        .11619E-04   -1.0604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0517e-12
Minuit parameter uncertainties:
  1  9.85504
  2  0.904963
  3  0.251411
  4  0.219891
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/231632': 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) = 4815.52045876
delta logL = 0.0560411077095

Extracting fit parameters...

4FGL J2358.3-1021
   Spectrum: PowerLaw
544    Prefactor:  6.379e+00  9.855e+00  1.000e-04  1.000e+04 ( 1.000e-12)
545        Index:  2.257e+00  9.050e-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:  6.372e-01  2.199e-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.371e+00  2.514e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.43
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/231632/cmap_HighResolution_522374401_522633601_4FGL_J2358.3-1021_daily_bin1092.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', job_status='DONE', photon_flux_upper_limit='1.48e-07', time_completed='2021-09-30 11:39:29.822395', job_id='231632', GAL2='0.64', fit_tolerance='1e-08', EG2='1.37', EG='1.36', time_epoch_completed='1633027169.82', return_code2='0', ts='0.43', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='5.60e-02', ts2='0.54', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1092' AND source_name='4FGL J2358.3-1021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 11:39:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 231632: <4FGL_J2358.3-1021_daily_bin1092> in cluster <slac> Done

Job <4FGL_J2358.3-1021_daily_bin1092> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 11:25:52 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 11:25:54 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:25:54 2021
Terminated at Thu Sep 30 11:39:30 2021
Results reported at Thu Sep 30 11:39:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3-1021_daily_bin1092 359.582 -10.3616 522374401 522633601 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 :                                   667.04 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             252.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            818 sec.

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

