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


Performing analysis on: 4FGL_J2358.3-1021_daily_bin1511
RA = 359.582, Dec = -10.3616
tmin = 630979201, tmax = 631238401
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='232972', job_status='RUN', time_executed='2021-09-30 11:32:10.897276', time_epoch_executed='1633026730.9' WHERE source_name='4FGL J2358.3-1021' and cadence='daily' and bin_id='1511'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/232972

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/232972/ft1_4FGL_J2358.3-1021_daily_bin1511.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/232972/ft2_4FGL_J2358.3-1021_daily_bin1511.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/232972/ft1_4FGL_J2358.3-1021_daily_bin1511.fits outfile=/scratch/kocevski/232972/ft1_filteredMKT_4FGL_J2358.3-1021_daily_bin1511.fits ra=359.582 dec=-10.3616 rad=12.0 tmin=630979201.0 tmax=631238401.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.94
user 2.67
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/232972/ft1_filtered_4FGL_J2358.3-1021_daily_bin1511.fits" evtable="EVENTS" scfile=/scratch/kocevski/232972/ft2_4FGL_J2358.3-1021_daily_bin1511.fits sctable="SC_DATA" outfile=/scratch/kocevski/232972/ltcube_630979201_631238401_4FGL_J2358.3-1021_daily_bin1511.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/232972/ft2_4FGL_J2358.3-1021_daily_bin1511.fits
.....................!
real 14.10
user 13.52
sys 0.53

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/232972/ft1_filtered_4FGL_J2358.3-1021_daily_bin1511.fits evtable="EVENTS" scfile=/scratch/kocevski/232972/ft2_4FGL_J2358.3-1021_daily_bin1511.fits sctable="SC_DATA" expcube=/scratch/kocevski/232972/ltcube_630979201_631238401_4FGL_J2358.3-1021_daily_bin1511.fits outfile=/scratch/kocevski/232972/expmap_630979201_631238401_4FGL_J2358.3-1021_daily_bin1511.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/232972/ltcube_630979201_631238401_4FGL_J2358.3-1021_daily_bin1511.fits
.....................!
real 196.35
user 187.00
sys 8.76

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/232972/ft1_filtered_4FGL_J2358.3-1021_daily_bin1511.fits scfile=/scratch/kocevski/232972/ft2_4FGL_J2358.3-1021_daily_bin1511.fits outfile=/scratch/kocevski/232972/cmap_630979201_631238401_4FGL_J2358.3-1021_daily_bin1511.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/232972/ft1_filtered_4FGL_J2358.3-1021_daily_bin1511.fits scfile=/scratch/kocevski/232972/ft2_4FGL_J2358.3-1021_daily_bin1511.fits outfile=/scratch/kocevski/232972/cmap_HighResolution_630979201_631238401_4FGL_J2358.3-1021_daily_bin1511.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.56
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/232972/ft1_filtered_4FGL_J2358.3-1021_daily_bin1511.fits evtable="EVENTS" scfile=/scratch/kocevski/232972/ft2_4FGL_J2358.3-1021_daily_bin1511.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/232972/Model_4FGL_J2358.3-1021_daily_bin1511.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/232972/ft1_filtered_4FGL_J2358.3-1021_daily_bin1511.fits.....................!
real 62.79
user 60.65
sys 1.94

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.191       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.6670       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1443       1.0000         .10000E-03   10000.    
     8 'norm      '    5.2093       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    13.825       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.127       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.770       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.4382       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    28.880       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.1455       1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.766       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .86361       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .88622       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=   7532.809     FROM MIGRAD    STATUS=CONVERGED    663 CALLS     3430 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.4547       -.30944E-06** at limit **
   2  norm          .10000E-03    8.0603        .54591E-06** at limit **
   3  Prefactor     10.188        23.226       -.95833E-06   -.68826E-04
   4  Prefactor     8.6655        14.116        .41185E-07   -.16019E-04
   5  Prefactor     .10000E-03    1.8550       -.11355E-06** at limit **
   6  norm          .10000E-03    1.1740       -.36623E-07** at limit **
   7  Prefactor     1.1439        11.111        .28477E-05   -.13810E-03
   8  norm          5.2089        2.9865       -.30445E-06   -.65700E-03
   9  Prefactor     .10000E-03    4.8245        .95747E-07** at limit **
  10  norm          13.824        8.9541        .35700E-07   -.30335E-04
  11  Prefactor     .10000E-03    26.011       -.41670E-06** at limit **
  12  Prefactor     .10000E-03    8.5390        .90288E-07** at limit **
  13  Prefactor     .10000E-03    2.3904       -.95961E-08** at limit **
  14  norm          .10000E-03    .21244        .30084E-08** at limit **
  15  norm          .10000E-03    1.3922        .15290E-07** at limit **
  16  Prefactor     .10000E-03    14.943        .17846E-05** at limit **
  17  Prefactor     .10000E-03    8.6338       -.35574E-07** at limit **
  18  Prefactor     27.125        140.53       -.79407E-06   -.16616E-05
  19  Prefactor     .10000E-03    3.3310       -.45878E-07** at limit **
  20  norm          .10000E-03    12.083       -.13957E-05** at limit **
  21  Prefactor     14.766        33.858       -.12540E-05   -.72627E-04
  22  Prefactor     2.4376        2.7786        .60130E-07   -.40586E-04
  23  norm          .10000E-03    .12979        .92884E-08** at limit **
  24  norm          28.880        5.5518        .16695E-07   -.12788E-04
  25  Prefactor     3.1457        11.601        .61736E-06   -.21181E-04
  26  Prefactor     12.766        6.7205        .75313E-06   -.40377E-03
  27  Normalizat    .86354        .15099       -.50032E-06   -.16527E-04
  28  Prefactor     .88627        .13715        .51385E-07   -.36653E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.1882
  Prefactor  = 8.66548
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.14392
  norm       = 5.20886
  Prefactor  = 0.0001
  norm       = 13.8245
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 27.1252
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 14.7658
  Prefactor  = 2.43763
  norm       = 0.0001
  norm       = 28.8802
  Prefactor  = 3.14573
  Prefactor  = 12.7663
  Normalizat = 0.863543
  Prefactor  = 0.886273
 **********
 **   18 **HESSE 
 **********

 FCN=   7532.809     FROM HESSE     STATUS=OK           519 CALLS     3949 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    8.1272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.188        23.317        .12551E-03   -1.5069    
   4  Prefactor     8.6655        14.078        .13616E-03   -1.5119    
   5  Prefactor     .10000E-03    1.8603        .11520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.1988        .18300E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.1439        11.586        .43385E-03   -1.5494    
   8  norm          5.2089        2.9966        .10607E-03   -1.5251    
   9  Prefactor     .10000E-03    4.8283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          13.824        8.9511        .10773E-03   -1.4964    
  11  Prefactor     .10000E-03    26.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.5492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.4018        .13102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .27713        .77520E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.4063        .99995E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.6990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     27.125        139.12        .76917E-04   -1.4666    
  19  Prefactor     .10000E-03    3.3403        .15447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    12.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.766        34.251        .10422E-03   -1.4939    
  22  Prefactor     2.4376        2.7585        .14375E-03   -1.5396    
  23  norm          .10000E-03    .13407        .60545E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          28.880        5.5227        .74551E-04   -1.4633    
  25  Prefactor     3.1457        11.600        .22856E-03   -1.5353    
  26  Prefactor     12.766        6.8208        .56056E-03   -1.4993    
  27  Normalizat    .86354        .17476        .24936E-03   -.97753    
  28  Prefactor     .88627        .15872        .22967E-03   -.96622    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30721e-10
Minuit parameter uncertainties:
  1  2.13098e-05
  2  6.62379e-05
  3  23.3381
  4  14.0834
  5  3.74186e-06
  6  4.75435e-07
  7  7.28247
  8  2.99668
  9  8.15757e-06
  10  8.95198
  11  8.74602e-05
  12  8.35828e-06
  13  4.88577e-07
  14  6.68255e-07
  15  1.37912e-06
  16  0.000300342
  17  1.36417e-05
  18  123.317
  19  1.35709e-06
  20  0.000192622
  21  34.2971
  22  2.75869
  23  3.62593e-08
  24  5.5228
  25  11.608
  26  6.82126
  27  0.174872
  28  0.158808
Done.

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

Extracting fit parameters...

4FGL J2358.3-1021
   Spectrum: PowerLaw
544    Prefactor:  1.277e+01  6.821e+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.863e-01  1.588e-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.635e-01  1.749e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.48
Ra Dec: 359.582 -10.362
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 7.48e-08 +/- 3.99e-08
Energy Flux (Fixed Index): 1.97e-05 +/- 1.06e-05

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) = 7531.30219997
delta logL = 1.50709765202

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7531.28996151
delta logL = 1.51933611457

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4035       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8074       1.0000          .0000       10.000    
     3 'Normalizat'    .79481       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93331       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7531.290     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      250 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4026        26.480        .47980E-02    .30975E-03
   2  Index         3.8075        2.9917        .11481        .15455E-03
   3  Normalizat    .79483        .60519E-01    .43543E-01    .25590E-04
   4  Prefactor     .93331        .55355E-01    .45428E-01    .36816E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.40264
  Index      = 3.80753
  Normalizat = 0.794826
  Prefactor  = 0.933306
 **********
 **   18 **HESSE 
 **********

 FCN=   7531.290     FROM HESSE     STATUS=OK            33 CALLS      283 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4026        9.2350        .72287E-04   -1.5288    
   2  Index         3.8075        1.4870        .46520E-02   -.24081    
   3  Normalizat    .79483        .17593        .25843E-03   -1.0026    
   4  Prefactor     .93331        .16207        .22444E-03   -.94987    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.13416e-11
Minuit parameter uncertainties:
  1  9.23802
  2  1.51132
  3  0.176056
  4  0.162153
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/232972': 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) = 7531.28996149
delta logL = 1.51933612871

Extracting fit parameters...

4FGL J2358.3-1021
   Spectrum: PowerLaw
544    Prefactor:  4.403e+00  9.238e+00  1.000e-04  1.000e+04 ( 1.000e-12)
545        Index:  3.808e+00  1.511e+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:  9.333e-01  1.622e-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:  7.948e-01  1.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.88
Ra Dec: 359.582 -10.362
Photon Index (Free Index): 3.81 +/- 1.51
Photon Flux (Free Index): 1.23e-07 +/- 5.29e-08
Energy Flux (Free Index): 1.90e-05 +/- 9.41e-06

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/232972/cmap_HighResolution_630979201_631238401_4FGL_J2358.3-1021_daily_bin1511.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.48e-08', energy_flux2='1.90e-05', photon_flux_error='3.99e-08', dlogl='1.52e+00', energy_flux='1.97e-05', photon_flux2='1.23e-07', job_status='DONE', time_completed='2021-09-30 11:45:45.042663', photon_index_error2='1.51', photon_index2='3.81', ts='5.48', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='9.41e-06', EG='0.86', time_epoch_completed='1633027545.04', return_code='0', job_id='232972', GAL2='0.93', EG2='0.79', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='5.29e-08', ts2='8.88', photon_index='2.59' WHERE bin_id='1511' AND source_name='4FGL J2358.3-1021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 11:45:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 232972: <4FGL_J2358.3-1021_daily_bin1511> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3-1021_daily_bin1511 359.582 -10.3616 630979201 631238401 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 :                                   758.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             305.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            888 sec.

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

