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


Performing analysis on: 4FGL_J2321.5-1619_daily_bin1060
RA = 350.385, Dec = -16.3176
tmin = 514080001, tmax = 514339201
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='764906', job_status='RUN', time_executed='2021-09-29 12:08:28.336464', time_epoch_executed='1632942508.34' WHERE source_name='4FGL J2321.5-1619' and cadence='daily' and bin_id='1060'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/764906

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/764906/ft1_4FGL_J2321.5-1619_daily_bin1060.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/764906/ft2_4FGL_J2321.5-1619_daily_bin1060.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/764906/ft1_4FGL_J2321.5-1619_daily_bin1060.fits outfile=/scratch/kocevski/764906/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin1060.fits ra=350.385 dec=-16.3176 rad=12.0 tmin=514080001.0 tmax=514339201.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.62
user 3.38
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/764906/ft2_4FGL_J2321.5-1619_daily_bin1060.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/764906/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin1060.fits evtable="EVENTS" outfile="/scratch/kocevski/764906/ft1_filtered_4FGL_J2321.5-1619_daily_bin1060.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/764906/ft1_filtered_4FGL_J2321.5-1619_daily_bin1060.fits" evtable="EVENTS" scfile=/scratch/kocevski/764906/ft2_4FGL_J2321.5-1619_daily_bin1060.fits sctable="SC_DATA" outfile=/scratch/kocevski/764906/ltcube_514080001_514339201_4FGL_J2321.5-1619_daily_bin1060.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/764906/ft2_4FGL_J2321.5-1619_daily_bin1060.fits
.....................!
real 13.26
user 12.86
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/764906/ft1_filtered_4FGL_J2321.5-1619_daily_bin1060.fits evtable="EVENTS" scfile=/scratch/kocevski/764906/ft2_4FGL_J2321.5-1619_daily_bin1060.fits sctable="SC_DATA" expcube=/scratch/kocevski/764906/ltcube_514080001_514339201_4FGL_J2321.5-1619_daily_bin1060.fits outfile=/scratch/kocevski/764906/expmap_514080001_514339201_4FGL_J2321.5-1619_daily_bin1060.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/764906/ltcube_514080001_514339201_4FGL_J2321.5-1619_daily_bin1060.fits
.....................!
real 189.97
user 184.41
sys 5.25

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/764906/ft1_filtered_4FGL_J2321.5-1619_daily_bin1060.fits scfile=/scratch/kocevski/764906/ft2_4FGL_J2321.5-1619_daily_bin1060.fits outfile=/scratch/kocevski/764906/cmap_514080001_514339201_4FGL_J2321.5-1619_daily_bin1060.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/764906/ft1_filtered_4FGL_J2321.5-1619_daily_bin1060.fits scfile=/scratch/kocevski/764906/ft2_4FGL_J2321.5-1619_daily_bin1060.fits outfile=/scratch/kocevski/764906/cmap_HighResolution_514080001_514339201_4FGL_J2321.5-1619_daily_bin1060.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/764906/ft1_filtered_4FGL_J2321.5-1619_daily_bin1060.fits evtable="EVENTS" scfile=/scratch/kocevski/764906/ft2_4FGL_J2321.5-1619_daily_bin1060.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/764906/Model_4FGL_J2321.5-1619_daily_bin1060.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/764906/ft1_filtered_4FGL_J2321.5-1619_daily_bin1060.fits.....................!
real 44.61
user 43.20
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/764906/ft1_filtered_4FGL_J2321.5-1619_daily_bin1060.fits', '/scratch/kocevski/764906/ft2_4FGL_J2321.5-1619_daily_bin1060.fits', expMap='/scratch/kocevski/764906/expmap_514080001_514339201_4FGL_J2321.5-1619_daily_bin1060.fits', expCube='/scratch/kocevski/764906/ltcube_514080001_514339201_4FGL_J2321.5-1619_daily_bin1060.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/764906/Model_4FGL_J2321.5-1619_daily_bin1060.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/764906/ft1_filtered_4FGL_J2321.5-1619_daily_bin1060.fits
Spacecraft file(s): /scratch/kocevski/764906/ft2_4FGL_J2321.5-1619_daily_bin1060.fits
Exposure map: /scratch/kocevski/764906/expmap_514080001_514339201_4FGL_J2321.5-1619_daily_bin1060.fits
Exposure cube: /scratch/kocevski/764906/ltcube_514080001_514339201_4FGL_J2321.5-1619_daily_bin1060.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/764906/Model_4FGL_J2321.5-1619_daily_bin1060.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) = 5059.5648615

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .96290       1.0000         .10000E-03   10000.    
     3 'Prefactor '    62.320       1.0000         .10000E-03   10000.    
     4 'norm      '    7.7174       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10931E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.884       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.7161       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.797       1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.445       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .77101       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.1695       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7726       1.0000         .10000E-03   10000.    
    16 'Prefactor '    50.805       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    54.249       1.0000         .10000E-03   10000.    
    19 'norm      '    .38255       1.0000         .10000E-03   10000.    
    20 'norm      '    2.5853       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .57272       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.3230       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.

 FCN=   5059.540     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     2570 TOTAL
                     EDM=   .42E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    19.805        .75603E-06** at limit **
   2  norm          .96233        1.1184        .76062E-07   -.92483E-04
   3  Prefactor     62.320        47.686       -.45036E-07   -.55885E-05
   4  norm          7.7170        4.0559       -.15477E-08   -.36620E-04
   5  Prefactor     .10000E-03    53.233       -.22012E-06** at limit **
   6  Prefactor     19.882        16.053        .37250E-07   -.45219E-05
   7  Prefactor     .10000E-03    12.428        .73775E-07** at limit **
   8  Prefactor     6.7174        16.766        .25218E-07   -.86087E-05
   9  Prefactor     .10000E-03    22.577       -.15415E-05** at limit **
  10  Prefactor     12.795        25.412        .24545E-07    .90357E-07
  11  Prefactor     23.444        12.315       -.20063E-07    .88741E-05
  12  norm          .10000E-03    4.1814        .25758E-07** at limit **
  13  norm          .76970        2.7665        .70144E-06   -.21742E-03
  14  Prefactor     6.1232        203.84        .24790E-04    .42992E-06
  15  Prefactor     3.7974        46.722       -.14625E-04   -.51663E-05
  16  Prefactor     50.820        42.389        .13082E-05   -.60968E-05
  17  Prefactor     .10000E-03    28.263        .11040E-05** at limit **
  18  Prefactor     54.151        123.83       -.15878E-04   -.10641E-04
  19  norm          .38243        .55290       -.83058E-08    .59823E-04
  20  norm          2.5856        5.8421        .83043E-06   -.75616E-04
  21  Prefactor     .10000E-03    4.0876        .76727E-07** at limit **
  22  Normalizat    .57244        .23091        .80475E-06   -.25043E-04
  23  Prefactor     1.3232        .20742       -.39811E-06    .23225E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.962333
  Prefactor  = 62.3202
  norm       = 7.71704
  Prefactor  = 0.0001
  Prefactor  = 19.8821
  Prefactor  = 0.0001
  Prefactor  = 6.71741
  Prefactor  = 0.0001
  Prefactor  = 12.7951
  Prefactor  = 23.4437
  norm       = 0.0001
  norm       = 0.769698
  Prefactor  = 6.12316
  Prefactor  = 3.79739
  Prefactor  = 50.8203
  Prefactor  = 0.0001
  Prefactor  = 54.1506
  norm       = 0.382427
  norm       = 2.58561
  Prefactor  = 0.0001
  Normalizat = 0.572441
  Prefactor  = 1.32325
 **********
 **   18 **HESSE 
 **********

 FCN=   5059.540     FROM HESSE     STATUS=OK           380 CALLS     2950 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    19.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .96233        1.0751        .77047E-03   -1.5512    
   3  Prefactor     62.320        50.210        .50830E-04   -1.4127    
   4  norm          7.7170        4.2818        .54269E-04   -1.5152    
   5  Prefactor     .10000E-03    53.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.882        16.081        .89821E-04   -1.4816    
   7  Prefactor     .10000E-03    12.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.7174        16.770        .15483E-03   -1.5190    
   9  Prefactor     .10000E-03    22.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.795        25.407        .11198E-03   -1.4992    
  11  Prefactor     23.444        12.304        .82726E-04   -1.4739    
  12  norm          .10000E-03    4.2005        .14188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .76970        2.6921        .20685E-03   -1.5533    
  14  Prefactor     6.1232        204.47        .16163E-03   -1.5213    
  15  Prefactor     3.7974        46.706        .20785E-03   -1.5318    
  16  Prefactor     50.820        41.924        .56264E-04   -1.4281    
  17  Prefactor     .10000E-03    28.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     54.151        124.35        .27229E-03   -1.4235    
  19  norm          .38243        .51383        .51014E-03   -1.5584    
  20  norm          2.5856        5.8176        .20290E-03   -1.5386    
  21  Prefactor     .10000E-03    4.1072        .14042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .57244        .26695        .35780E-03   -1.0917    
  23  Prefactor     1.3232        .24351        .22807E-03   -.82618    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.30938e-10
Minuit parameter uncertainties:
  1  1.83196e-06
  2  1.07512
  3  50.2436
  4  4.28198
  5  1.56885e-05
  6  16.0846
  7  6.09492e-06
  8  16.7818
  9  1.43953e-05
  10  25.4287
  11  12.3058
  12  3.34987e-07
  13  2.69255
  14  71.0326
  15  26.6609
  16  41.9487
  17  6.51825e-06
  18  124.957
  19  0.513835
  20  5.8189
  21  4.15238e-06
  22  0.267547
  23  0.243717
Done.

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

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.280e+01  2.543e+01  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:  1.323e+00  2.437e-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:  5.724e-01  2.675e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/764906/likelihoodResults_514080001_514339201_4FGL_J2321.5-1619_daily_bin1060.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) = 5059.35396702
delta logL = 0.186388673428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5059.35057464
delta logL = 0.189781050306

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3921       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4503       1.0000          .0000       10.000    
     3 'Normalizat'    .55607       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3288       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5059.351     FROM MIGRAD    STATUS=FAILED       106 CALLS      309 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4060        30.978        .79377E-03   -.31552E-04
   2  Index         2.4510        1.7077        .63385E-02    .46564E-03
   3  Normalizat    .55582        .25520        .36285E-03   -.33744E-04
   4  Prefactor     1.3287        .23745        .22763E-03   -.51152E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5059.351     FROM SIMPLEX   STATUS=UNCHANGED     75 CALLS      384 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4060        30.978        .23027E-03   -1.5202    
   2  Index         2.4510        1.7077        .10413E-02   -.53496    
   3  Normalizat    .55582        .25520        .42826E-03   -1.0989    
   4  Prefactor     1.3287        .23745        .28860E-03   -.82456    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5059.351     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      423 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4060        17.175        .31751E-04    .14322E-05
   2  Index         2.4510        1.0591        .12677E-02    .17776E-04
   3  Normalizat    .55582        .25288        .14514E-04    .93994E-07
   4  Prefactor     1.3287        .23603        .45526E-04    .49943E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.40602
  Index      = 2.45099
  Normalizat = 0.555819
  Prefactor  = 1.32874
 **********
 **   18 **HESSE 
 **********

 FCN=   5059.351     FROM HESSE     STATUS=OK            25 CALLS      448 TOTAL
                     EDM=   .13E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4060        16.479        .12700E-05   -1.5202    
   2  Index         2.4510        1.0165        .25354E-03   -.53496    
   3  Normalizat    .55582        .25277        .14514E-04   -1.0989    
   4  Prefactor     1.3287        .23597        .91052E-05   -.82456    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2997e-13
Minuit parameter uncertainties:
  1  16.4904
  2  1.02625
  3  0.253292
  4  0.236163
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/764906': 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) = 5059.35056899
delta logL = 0.189786704371

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  6.406e+00  1.649e+01  1.000e-04  1.000e+04 ( 1.000e-14)
352        Index:  2.451e+00  1.026e+00  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:  1.329e+00  2.362e-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:  5.558e-01  2.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.35
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/764906/cmap_HighResolution_514080001_514339201_4FGL_J2321.5-1619_daily_bin1060.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.16e-03', job_status='DONE', photon_flux_upper_limit='6.99e-08', time_completed='2021-09-29 12:21:11.768785', job_id='764906', GAL2='1.33', fit_tolerance='1e-08', EG2='0.56', EG='0.57', time_epoch_completed='1632943271.77', return_code2='0', ts='0.35', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='1.90e-01', ts2='0.74', photon_index_error='0.00', photon_index='1.83' WHERE bin_id='1060' AND source_name='4FGL J2321.5-1619' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 12:21:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 764906: <4FGL_J2321.5-1619_daily_bin1060> in cluster <slac> Done

Job <4FGL_J2321.5-1619_daily_bin1060> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 12:05:41 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 12:05:42 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:42 2021
Terminated at Wed Sep 29 12:21:12 2021
Results reported at Wed Sep 29 12:21:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.5-1619_daily_bin1060 350.385 -16.3176 514080001 514339201 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 :                                   566.28 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             236.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            931 sec.

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

