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


Performing analysis on: 4FGL_J2321.5-1619_daily_bin1038
RA = 350.385, Dec = -16.3176
tmin = 508377601, tmax = 508636801
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='764874', job_status='RUN', time_executed='2021-09-29 12:05:53.082536', time_epoch_executed='1632942353.08' WHERE source_name='4FGL J2321.5-1619' and cadence='daily' and bin_id='1038'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/764874

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/764874/ft1_4FGL_J2321.5-1619_daily_bin1038.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/764874/ft2_4FGL_J2321.5-1619_daily_bin1038.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/764874/ft1_4FGL_J2321.5-1619_daily_bin1038.fits outfile=/scratch/kocevski/764874/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin1038.fits ra=350.385 dec=-16.3176 rad=12.0 tmin=508377601.0 tmax=508636801.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.61
user 3.40
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/764874/ft1_filtered_4FGL_J2321.5-1619_daily_bin1038.fits" evtable="EVENTS" scfile=/scratch/kocevski/764874/ft2_4FGL_J2321.5-1619_daily_bin1038.fits sctable="SC_DATA" outfile=/scratch/kocevski/764874/ltcube_508377601_508636801_4FGL_J2321.5-1619_daily_bin1038.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/764874/ft2_4FGL_J2321.5-1619_daily_bin1038.fits
.....................!
real 12.17
user 11.80
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/764874/ft1_filtered_4FGL_J2321.5-1619_daily_bin1038.fits evtable="EVENTS" scfile=/scratch/kocevski/764874/ft2_4FGL_J2321.5-1619_daily_bin1038.fits sctable="SC_DATA" expcube=/scratch/kocevski/764874/ltcube_508377601_508636801_4FGL_J2321.5-1619_daily_bin1038.fits outfile=/scratch/kocevski/764874/expmap_508377601_508636801_4FGL_J2321.5-1619_daily_bin1038.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/764874/ltcube_508377601_508636801_4FGL_J2321.5-1619_daily_bin1038.fits
.....................!
real 191.51
user 185.78
sys 5.31

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/764874/ft1_filtered_4FGL_J2321.5-1619_daily_bin1038.fits scfile=/scratch/kocevski/764874/ft2_4FGL_J2321.5-1619_daily_bin1038.fits outfile=/scratch/kocevski/764874/cmap_508377601_508636801_4FGL_J2321.5-1619_daily_bin1038.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/764874/ft1_filtered_4FGL_J2321.5-1619_daily_bin1038.fits scfile=/scratch/kocevski/764874/ft2_4FGL_J2321.5-1619_daily_bin1038.fits outfile=/scratch/kocevski/764874/cmap_HighResolution_508377601_508636801_4FGL_J2321.5-1619_daily_bin1038.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/764874/ft1_filtered_4FGL_J2321.5-1619_daily_bin1038.fits evtable="EVENTS" scfile=/scratch/kocevski/764874/ft2_4FGL_J2321.5-1619_daily_bin1038.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/764874/Model_4FGL_J2321.5-1619_daily_bin1038.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/764874/ft1_filtered_4FGL_J2321.5-1619_daily_bin1038.fits.....................!
real 44.32
user 43.00
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    75.339       1.0000         .10000E-03   10000.    
     2 'norm      '    2.9085       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    11.825       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.240       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .28687E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.011       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .99230       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.3181       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.492       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.8768       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0276       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89737       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=   4861.393     FROM MIGRAD    STATUS=CONVERGED    522 CALLS     2871 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          75.341        53.710        .16569E-05    .10180E-04
   2  norm          2.9082        1.3661        .92141E-07    .97010E-04
   3  Prefactor     .10000E-03    36.768       -.35849E-05** at limit **
   4  norm          11.823        2.2729        .41821E-06    .71219E-03
   5  Prefactor     .10000E-03    26.245       -.44500E-05** at limit **
   6  Prefactor     .10000E-03    4.3009        .16917E-07** at limit **
   7  Prefactor     17.259        18.986       -.15613E-04    .24064E-04
   8  Prefactor     .10151E-03    20.729        .12345E-05** at limit **
   9  Prefactor     .10000E-03    19.011       -.23329E-05** at limit **
  10  Prefactor     26.013        23.800       -.49466E-06    .28815E-04
  11  Prefactor     .10000E-03    3.0199       -.10717E-07** at limit **
  12  norm          .10000E-03    3.7973        .57962E-07** at limit **
  13  norm          .99391        3.9294       -.26417E-05   -.48746E-03
  14  Prefactor     .10000E-03    15.266        .38405E-06** at limit **
  15  Prefactor     6.3191        11.398        .26771E-06   -.28465E-04
  16  Prefactor     .10000E-03    25.204        .72189E-05** at limit **
  17  Prefactor     .10000E-03    19.179        .62428E-06** at limit **
  18  Prefactor     18.617        92.316        .20989E-03    .21546E-04
  19  norm          .10000E-03    .15643        .62484E-08** at limit **
  20  norm          4.8779        3.5481        .38083E-07    .94796E-04
  21  Prefactor     .10000E-03    7.6063       -.18560E-07** at limit **
  22  Normalizat    1.0271        .23130        .49697E-06    .19200E-03
  23  Prefactor     .89770        .19917       -.13858E-05    .24211E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 75.3407
  norm       = 2.90824
  Prefactor  = 0.0001
  norm       = 11.8233
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.2594
  Prefactor  = 0.000101513
  Prefactor  = 0.0001
  Prefactor  = 26.0128
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.99391
  Prefactor  = 0.0001
  Prefactor  = 6.31907
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.6167
  norm       = 0.0001
  norm       = 4.87786
  Prefactor  = 0.0001
  Normalizat = 1.02706
  Prefactor  = 0.897702
 **********
 **   18 **HESSE 
 **********

 FCN=   4861.393     FROM HESSE     STATUS=OK           370 CALLS     3241 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          75.341        53.717        .46260E-04   -1.3970    
   2  norm          2.9082        1.3651        .53651E-04   -1.5367    
   3  Prefactor     .10000E-03    36.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          11.823        2.2631        .43309E-04   -1.5020    
   5  Prefactor     .10000E-03    26.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.3091        .14122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.259        18.997        .96459E-04   -1.4877    
   8  Prefactor     .10151E-03    29.028        .81293E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     26.013        23.802        .78546E-04   -1.4687    
  11  Prefactor     .10000E-03    3.0248        .11833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.8801        .13265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .99391        6.1463        .24432E-02   -1.5509    
  14  Prefactor     .10000E-03    15.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.3191        11.390        .15969E-03   -1.5205    
  16  Prefactor     .10000E-03    25.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     18.617        91.965        .93138E-04   -1.4845    
  19  norm          .10000E-03    .15879        .26837E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.8779        3.5412        .10817E-03   -1.5266    
  21  Prefactor     .10000E-03    7.7072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0271        .27888        .27270E-03   -.92129    
  23  Prefactor     .89770        .24148        .25867E-03   -.96221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10727e-09
Minuit parameter uncertainties:
  1  53.7518
  2  1.36513
  3  0.000164786
  4  2.26313
  5  0.000104928
  6  2.91128e-06
  7  19.0033
  8  0.0132613
  9  1.12023e-05
  10  23.8107
  11  2.47548e-06
  12  5.57125e-06
  13  4.94372
  14  1.29973e-05
  15  11.3939
  16  0.000175818
  17  3.58954e-06
  18  82.9596
  19  2.65596e-07
  20  3.54139
  21  8.87894e-06
  22  0.279281
  23  0.241772
Done.

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

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  2.601e+01  2.381e+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:  8.977e-01  2.418e-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.027e+00  2.793e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.98
Ra Dec: 350.385 -16.318
Photon Index (Fixed Index): 1.83 +/- 0.00
Photon Flux (Fixed Index): 2.09e-08 +/- 1.91e-08
Energy Flux (Fixed Index): 2.29e-05 +/- 2.10e-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) = 4860.96771736
delta logL = 0.424908577498

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4860.93989846
delta logL = 0.452727483458

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.253       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2734       1.0000          .0000       10.000    
     3 'Normalizat'    1.0323       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89938       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.

 FCN=   4860.940     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      242 TOTAL
                     EDM=   .57E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.295        1479.1        .17372E-02    .20568E-04
   2  Index         1.2744        5.9839        .26957        .72582E-05
   3  Normalizat    1.0323        .17727        .61521E-01    .63344E-06
   4  Prefactor     .89961        .11851        .44997E-01   -.15589E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.295
  Index      = 1.27445
  Normalizat = 1.03228
  Prefactor  = 0.89961
 **********
 **   18 **HESSE 
 **********

 FCN=   4860.940     FROM HESSE     STATUS=OK            33 CALLS      275 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.295        32.871        .69490E-04   -1.4553    
   2  Index         1.2744        .59633        .92419E-02   -.84070    
   3  Normalizat    1.0323        .26468        .27209E-03   -.91957    
   4  Prefactor     .89961        .23799        .25846E-03   -.96155    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06222e-12
Minuit parameter uncertainties:
  1  32.8889
  2  0.599552
  3  0.265019
  4  0.238264
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/764874': 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) = 4860.93989446
delta logL = 0.452731478618

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  3.330e+01  3.289e+01  1.000e-04  1.000e+04 ( 1.000e-14)
352        Index:  1.274e+00  5.996e-01  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:  8.996e-01  2.383e-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.032e+00  2.650e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.88
Ra Dec: 350.385 -16.318
Photon Index (Free Index): 1.27 +/- 0.60
Photon Flux (Free Index): 9.58e-09 +/- 1.26e-08
Energy Flux (Free Index): 6.37e-05 +/- 8.85e-05

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/764874/cmap_HighResolution_508377601_508636801_4FGL_J2321.5-1619_daily_bin1038.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.09e-08', energy_flux2='6.37e-05', photon_flux_error='1.91e-08', dlogl='4.53e-01', energy_flux='2.29e-05', photon_flux2='9.58e-09', job_status='DONE', time_completed='2021-09-29 12:14:43.917532', photon_index_error2='0.60', photon_index2='1.27', ts='5.98', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='8.85e-05', EG='1.03', time_epoch_completed='1632942883.92', return_code='0', job_id='764874', GAL2='0.90', EG2='1.03', return_code2='0', energy_flux_error='2.10e-05', photon_flux_error2='1.26e-08', ts2='6.88', photon_index='1.83' WHERE bin_id='1038' AND source_name='4FGL J2321.5-1619' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 12:14:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 764874: <4FGL_J2321.5-1619_daily_bin1038> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.5-1619_daily_bin1038 350.385 -16.3176 508377601 508636801 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 :                                   513.53 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             370.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   545 sec.
    Turnaround time :                            546 sec.

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

