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


Performing analysis on: 4FGL_J2321.5-1619_daily_bin899
RA = 350.385, Dec = -16.3176
tmin = 472348801, tmax = 472608001
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='764665', job_status='RUN', time_executed='2021-09-29 12:05:31.756015', time_epoch_executed='1632942331.76' WHERE source_name='4FGL J2321.5-1619' and cadence='daily' and bin_id='899'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/764665

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/764665/ft1_4FGL_J2321.5-1619_daily_bin899.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/764665/ft2_4FGL_J2321.5-1619_daily_bin899.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/764665/ft1_4FGL_J2321.5-1619_daily_bin899.fits outfile=/scratch/kocevski/764665/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin899.fits ra=350.385 dec=-16.3176 rad=12.0 tmin=472348801.0 tmax=472608001.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.80
user 3.60
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/764665/ft2_4FGL_J2321.5-1619_daily_bin899.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/764665/ft2_4FGL_J2321.5-1619_daily_bin899.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/764665/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin899.fits evtable="EVENTS" outfile="/scratch/kocevski/764665/ft1_filtered_4FGL_J2321.5-1619_daily_bin899.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/764665/ft1_filtered_4FGL_J2321.5-1619_daily_bin899.fits" evtable="EVENTS" scfile=/scratch/kocevski/764665/ft2_4FGL_J2321.5-1619_daily_bin899.fits sctable="SC_DATA" outfile=/scratch/kocevski/764665/ltcube_472348801_472608001_4FGL_J2321.5-1619_daily_bin899.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/764665/ft2_4FGL_J2321.5-1619_daily_bin899.fits
.....................!
real 12.05
user 11.73
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/764665/ft1_filtered_4FGL_J2321.5-1619_daily_bin899.fits evtable="EVENTS" scfile=/scratch/kocevski/764665/ft2_4FGL_J2321.5-1619_daily_bin899.fits sctable="SC_DATA" expcube=/scratch/kocevski/764665/ltcube_472348801_472608001_4FGL_J2321.5-1619_daily_bin899.fits outfile=/scratch/kocevski/764665/expmap_472348801_472608001_4FGL_J2321.5-1619_daily_bin899.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/764665/ltcube_472348801_472608001_4FGL_J2321.5-1619_daily_bin899.fits
.....................!
real 190.41
user 185.35
sys 4.74

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 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J2321.5-1619 @ 350.385 -16.3176

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/764665/ft1_filtered_4FGL_J2321.5-1619_daily_bin899.fits scfile=/scratch/kocevski/764665/ft2_4FGL_J2321.5-1619_daily_bin899.fits outfile=/scratch/kocevski/764665/cmap_472348801_472608001_4FGL_J2321.5-1619_daily_bin899.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=350.385 yref=-16.3176 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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/764665/ft1_filtered_4FGL_J2321.5-1619_daily_bin899.fits scfile=/scratch/kocevski/764665/ft2_4FGL_J2321.5-1619_daily_bin899.fits outfile=/scratch/kocevski/764665/cmap_HighResolution_472348801_472608001_4FGL_J2321.5-1619_daily_bin899.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=350.385 yref=-16.3176 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/764665/ft1_filtered_4FGL_J2321.5-1619_daily_bin899.fits evtable="EVENTS" scfile=/scratch/kocevski/764665/ft2_4FGL_J2321.5-1619_daily_bin899.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/764665/Model_4FGL_J2321.5-1619_daily_bin899.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/764665/ft1_filtered_4FGL_J2321.5-1619_daily_bin899.fits.....................!
real 39.22
user 37.94
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/764665/ft1_filtered_4FGL_J2321.5-1619_daily_bin899.fits', '/scratch/kocevski/764665/ft2_4FGL_J2321.5-1619_daily_bin899.fits', expMap='/scratch/kocevski/764665/expmap_472348801_472608001_4FGL_J2321.5-1619_daily_bin899.fits', expCube='/scratch/kocevski/764665/ltcube_472348801_472608001_4FGL_J2321.5-1619_daily_bin899.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/764665/Model_4FGL_J2321.5-1619_daily_bin899.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2321.5-1619'

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  2.964e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
352        Index:  1.829e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
353        Scale:  3.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/764665/ft1_filtered_4FGL_J2321.5-1619_daily_bin899.fits
Spacecraft file(s): /scratch/kocevski/764665/ft2_4FGL_J2321.5-1619_daily_bin899.fits
Exposure map: /scratch/kocevski/764665/expmap_472348801_472608001_4FGL_J2321.5-1619_daily_bin899.fits
Exposure cube: /scratch/kocevski/764665/ltcube_472348801_472608001_4FGL_J2321.5-1619_daily_bin899.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/764665/Model_4FGL_J2321.5-1619_daily_bin899.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) = 4029.46510131

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2678       1.0000         .10000E-03   10000.    
     2 'norm      '    5.8098       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.0044       1.0000         .10000E-03   10000.    
     4 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.776       1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.932       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15083       1.0000         .10000E-03   10000.    
    12 'norm      '    8.5086       1.0000         .10000E-03   10000.    
    13 'norm      '    6.4100       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0816       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.780       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10308E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.9522       1.0000         .10000E-03   10000.    
    20 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.3728       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0332       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .75825       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4029.442     FROM MIGRAD    STATUS=CONVERGED    128 CALLS     2177 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2501        3.6253        .20170E-06   -.15126E-02
   2  norm          5.8097        1.7308        .61291E-07   -.11472E-03
   3  Prefactor     2.0022        6.2354       -.11661E-05    .10571E-02
   4  norm          .10000E-03    1.1376       -.37021E-07** at limit **
   5  Prefactor     .10000E-03    20.854       -.13740E-05** at limit **
   6  Prefactor     .10000E-03    7.9138        .74338E-06** at limit **
   7  Prefactor     .10000E-03    6.8654        .40238E-06** at limit **
   8  Prefactor     12.776        1.8837        .10424E-06    .14175E-03
   9  Prefactor     29.463        61.869        .33918E-05   -.14982E-02
  10  Prefactor     .10000E-03    13.665        .51141E-07** at limit **
  11  Prefactor     .68649E-02    1014.4       -.21062E-04    .42295E-03
  12  norm          8.5373        7.4142        .16545E-05   -.25846E-02
  13  norm          6.4161        5.3738        .65040E-06   -.87326E-04
  14  Prefactor     .10000E-03    25.367        .38548E-05** at limit **
  15  Prefactor     3.0810        1.0689        .20887E-07    .14729E-03
  16  Prefactor     15.613        18.772       -.98009E-06   -.97980E-02
  17  Prefactor     .10000E-03    55.547       -.62621E-05** at limit **
  18  Prefactor     .10001E-03    92.101       -.71070E-05** at limit **
  19  norm          2.9525        .95117        .36566E-07   -.24702E-04
  20  norm          .10000E-03    3.4344        .29793E-06** at limit **
  21  Prefactor     1.3696        10.636       -.27829E-05   -.33285E-02
  22  Normalizat    1.0326        .26369       -.11007E-05   -.97962E-04
  23  Prefactor     .75881        .22190       -.44939E-06   -.94871E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.25013
  norm       = 5.80974
  Prefactor  = 2.00222
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.776
  Prefactor  = 29.4626
  Prefactor  = 0.0001
  Prefactor  = 0.0068649
  norm       = 8.53726
  norm       = 6.41614
  Prefactor  = 0.000100001
  Prefactor  = 3.081
  Prefactor  = 15.6126
  Prefactor  = 0.000100001
  Prefactor  = 0.000100007
  norm       = 2.95246
  norm       = 0.0001
  Prefactor  = 1.36957
  Normalizat = 1.03259
  Prefactor  = 0.758808
 **********
 **   18 **HESSE 
 **********

 FCN=   4029.442     FROM HESSE     STATUS=OK           424 CALLS     2601 TOTAL
                     EDM=   .26E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2501        61.900        .68182E-02   -1.5408    
   2  norm          5.8097        1.7641        .41656E-02   -1.5226    
   3  Prefactor     2.0022        31.678        .73122E-02   -1.5425    
   4  norm          .10000E-03    .93856        .20801E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.831        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.8951        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.8187        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.776        12.286        .28016E-02   -1.4993    
   9  Prefactor     29.463        61.912        .18621E-02   -1.4622    
  10  Prefactor     .10000E-03    13.659        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .68649E-02    12.559        .97508E-01   -1.5692    
  12  norm          8.5373        8.0600        .34357E-02   -1.5124    
  13  norm          6.4161        6.1300        .39632E-02   -1.5201    
  14  Prefactor     .10000E-03    25.348        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.0810        15.298        .57762E-02   -1.5357    
  16  Prefactor     15.613        60.468        .25206E-02   -1.4918    
  17  Prefactor     .10000E-03    55.590        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    93.152        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.9525        .95481        .59090E-02   -1.5364    
  20  norm          .10000E-03    3.4214        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.3696        13.522        .92994E-02   -1.5474    
  22  Normalizat    1.0326        .23699        .41861E-01   -.91947    
  23  Prefactor     .75881        .19391        .43171E-01   -1.0127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63773e-06
Minuit parameter uncertainties:
  1  23.6303
  2  1.76412
  3  15.9377
  4  1.18682e-06
  5  0.000128495
  6  2.66721e-05
  7  1.26174e-05
  8  12.2886
  9  62.0474
  10  6.62172e-05
  11  0.58308
  12  8.06105
  13  6.13056
  14  0.000382343
  15  13.7361
  16  60.7071
  17  0.000384777
  18  0.00162858
  19  0.954819
  20  7.06902e-06
  21  8.60891
  22  0.237231
  23  0.194087
Done.

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

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  6.622e-05  1.000e-04  1.000e+04 ( 1.000e-14)
352        Index:  1.829e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
353        Scale:  3.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  7.588e-01  1.941e-01  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  1.033e+00  2.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 350.385 -16.318
Photon Flux Upper Limit: 5.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/764665/likelihoodResults_472348801_472608001_4FGL_J2321.5-1619_daily_bin899.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) = 4029.44261289
delta logL = -0.000347358210547

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4029.44226558
delta logL = -4.3334239308e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8068       1.0000          .0000       10.000    
     3 'Normalizat'    1.0327       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75874       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+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=   4029.442     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      232 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10173E-03    143.58        .18142E-02** at limit **
   2  Index         1.7372        6.7230        .50000        .96954E-05
   3  Normalizat    1.0326        .17480E-01    .25376E-03    .92068E-05
   4  Prefactor     .75881        .15214E-01    .25261E-03    .95409E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101726
  Index      = 1.73724
  Normalizat = 1.03259
  Prefactor  = 0.758808
 **********
 **   18 **HESSE 
 **********

 FCN=   4029.442     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      261 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10173E-03    659.42        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7372        7.6209        .50000       -.71095    
   3  Normalizat    1.0326        .39418E-01    .10150E-04   -.91947    
   4  Prefactor     .75881        .34297E-01    .10105E-04   -1.0127    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.34428e-08
Minuit parameter uncertainties:
  1  0.0682387
  2  971.779
  3  0.0394192
  4  0.0342975
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/764665': 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) = 4029.44226533
delta logL = 2.10581674764e-07

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.017e-04  6.824e-02  1.000e-04  1.000e+04 ( 1.000e-14)
352        Index:  1.737e+00  9.718e+02  0.000e+00  1.000e+01 (-1.000e+00)
353        Scale:  3.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  7.588e-01  3.430e-02  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  1.033e+00  3.942e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 350.385 -16.318

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/764665/cmap_HighResolution_472348801_472608001_4FGL_J2321.5-1619_daily_bin899.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.80e-03', job_status='DONE', photon_flux_upper_limit='5.14e-08', time_completed='2021-09-29 12:13:44.062056', job_id='764665', GAL2='0.76', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1632942824.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='2.11e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.83' WHERE bin_id='899' AND source_name='4FGL J2321.5-1619' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 12:13:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 764665: <4FGL_J2321.5-1619_daily_bin899> in cluster <slac> Done

Job <4FGL_J2321.5-1619_daily_bin899> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 12:05:22 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 12:05:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 12:05:23 2021
Terminated at Wed Sep 29 12:13:44 2021
Results reported at Wed Sep 29 12:13:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.5-1619_daily_bin899 350.385 -16.3176 472348801 472608001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2321.5-1619 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   490.15 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             341.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   501 sec.
    Turnaround time :                            502 sec.

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

