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


Performing analysis on: 4FGL_J2321.5-1619_daily_bin1071
RA = 350.385, Dec = -16.3176
tmin = 516931201, tmax = 517190401
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='764924', job_status='RUN', time_executed='2021-09-29 12:07:49.530078', time_epoch_executed='1632942469.53' WHERE source_name='4FGL J2321.5-1619' and cadence='daily' and bin_id='1071'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/764924

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/764924/ft1_4FGL_J2321.5-1619_daily_bin1071.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/764924/ft2_4FGL_J2321.5-1619_daily_bin1071.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/764924/ft1_4FGL_J2321.5-1619_daily_bin1071.fits outfile=/scratch/kocevski/764924/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin1071.fits ra=350.385 dec=-16.3176 rad=12.0 tmin=516931201.0 tmax=517190401.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.95
user 3.72
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/764924/ft1_filtered_4FGL_J2321.5-1619_daily_bin1071.fits" evtable="EVENTS" scfile=/scratch/kocevski/764924/ft2_4FGL_J2321.5-1619_daily_bin1071.fits sctable="SC_DATA" outfile=/scratch/kocevski/764924/ltcube_516931201_517190401_4FGL_J2321.5-1619_daily_bin1071.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/764924/ft2_4FGL_J2321.5-1619_daily_bin1071.fits
.....................!
real 11.61
user 11.24
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/764924/ft1_filtered_4FGL_J2321.5-1619_daily_bin1071.fits evtable="EVENTS" scfile=/scratch/kocevski/764924/ft2_4FGL_J2321.5-1619_daily_bin1071.fits sctable="SC_DATA" expcube=/scratch/kocevski/764924/ltcube_516931201_517190401_4FGL_J2321.5-1619_daily_bin1071.fits outfile=/scratch/kocevski/764924/expmap_516931201_517190401_4FGL_J2321.5-1619_daily_bin1071.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/764924/ltcube_516931201_517190401_4FGL_J2321.5-1619_daily_bin1071.fits
.....................!
real 192.88
user 187.11
sys 5.45

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/764924/ft1_filtered_4FGL_J2321.5-1619_daily_bin1071.fits scfile=/scratch/kocevski/764924/ft2_4FGL_J2321.5-1619_daily_bin1071.fits outfile=/scratch/kocevski/764924/cmap_516931201_517190401_4FGL_J2321.5-1619_daily_bin1071.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/764924/ft1_filtered_4FGL_J2321.5-1619_daily_bin1071.fits scfile=/scratch/kocevski/764924/ft2_4FGL_J2321.5-1619_daily_bin1071.fits outfile=/scratch/kocevski/764924/cmap_HighResolution_516931201_517190401_4FGL_J2321.5-1619_daily_bin1071.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/764924/ft1_filtered_4FGL_J2321.5-1619_daily_bin1071.fits evtable="EVENTS" scfile=/scratch/kocevski/764924/ft2_4FGL_J2321.5-1619_daily_bin1071.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/764924/Model_4FGL_J2321.5-1619_daily_bin1071.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/764924/ft1_filtered_4FGL_J2321.5-1619_daily_bin1071.fits.....................!
real 54.73
user 53.35
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.4027       1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.884       1.0000         .10000E-03   10000.    
     4 'norm      '    2.3519       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12302E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.468       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8307       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.945       1.0000         .10000E-03   10000.    
    10 'Prefactor '    53.862       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1027       1.0000         .10000E-03   10000.    
    12 'norm      '    19.197       1.0000         .10000E-03   10000.    
    13 'norm      '    .10154E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12629E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.273       1.0000         .10000E-03   10000.    
    17 'Prefactor '    154.42       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10289E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .55853       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .20374E-01   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3325       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .64077       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=   6282.908     FROM MIGRAD    STATUS=CONVERGED    531 CALLS     2595 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    16.065       -.16474E-06** at limit **
   2  norm          2.4024        1.0729       -.67710E-07    .10408E-03
   3  Prefactor     32.927        30.607        .20149E-05    .11460E-03
   4  norm          2.3478        2.2050       -.52104E-06    .90660E-04
   5  Prefactor     .10000E-03    36.523       -.75522E-06** at limit **
   6  Prefactor     .10000E-03    4.4041       -.72370E-07** at limit **
   7  Prefactor     12.471        10.298       -.19408E-06    .20847E-04
   8  Prefactor     4.8315        9.7184        .78074E-06    .16429E-03
   9  Prefactor     19.121        89.903       -.99684E-06   -.42294E-05
  10  Prefactor     53.833        28.052        .10721E-06    .35247E-04
  11  Prefactor     2.0431        40.868       -.12008E-05    .10837E-04
  12  norm          19.209        9.9336        .85367E-06    .49487E-03
  13  norm          .10000E-03    .97160       -.33167E-06** at limit **
  14  Prefactor     .10000E-03    26.702       -.52066E-07** at limit **
  15  Prefactor     .10000E-03    5.7864       -.12385E-06** at limit **
  16  Prefactor     20.295        25.060        .12043E-06    .33793E-04
  17  Prefactor     154.54        82.734       -.31468E-05   -.16870E-03
  18  Prefactor     .10000E-03    48.533        .16866E-05** at limit **
  19  norm          .55870        .42785        .25257E-07    .14672E-03
  20  norm          .10000E-03    4.9683       -.53134E-06** at limit **
  21  Prefactor     .10254E-03    8.2944        .22809E-05** at limit **
  22  Normalizat    1.3322        .20788       -.24857E-05    .16324E-03
  23  Prefactor     .64096        .17918        .40447E-05    .15738E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.40243
  Prefactor  = 32.9271
  norm       = 2.34783
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.4711
  Prefactor  = 4.83148
  Prefactor  = 19.1212
  Prefactor  = 53.8332
  Prefactor  = 2.04314
  norm       = 19.2089
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.2948
  Prefactor  = 154.541
  Prefactor  = 0.0001
  norm       = 0.558703
  norm       = 0.0001
  Prefactor  = 0.000102545
  Normalizat = 1.33222
  Prefactor  = 0.640958
 **********
 **   18 **HESSE 
 **********

 FCN=   6282.908     FROM HESSE     STATUS=OK           382 CALLS     2977 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    16.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.4024        1.0735        .26415E-04   -1.5398    
   3  Prefactor     32.927        32.838        .69877E-04   -1.4560    
   4  norm          2.3478        2.3677        .60883E-04   -1.5402    
   5  Prefactor     .10000E-03    36.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.4152        .16247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.471        10.299        .11345E-03   -1.5002    
   8  Prefactor     4.8315        9.7030        .91516E-03   -1.5268    
   9  Prefactor     19.121        90.303        .92019E-04   -1.4833    
  10  Prefactor     53.833        28.054        .27326E-03   -1.4239    
  11  Prefactor     2.0431        41.572        .28458E-03   -1.5422    
  12  norm          19.209        9.9983        .91412E-04   -1.4831    
  13  norm          .10000E-03    1.6106        .15008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    26.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.7968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     20.295        25.003        .88957E-04   -1.4807    
  17  Prefactor     154.54        83.584        .16220E-03   -1.3215    
  18  Prefactor     .10000E-03    48.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .55870        .43922        .43427E-03   -1.5558    
  20  norm          .10000E-03    5.1545        .34353E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10254E-03    6.6011        .54877E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3322        .22608        .23775E-03   -.82610    
  23  Prefactor     .64096        .19238        .29098E-03   -1.0589    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70585e-09
Minuit parameter uncertainties:
  1  2.33093e-05
  2  1.07349
  3  32.856
  4  2.36779
  5  0.000162038
  6  8.1779e-06
  7  10.3008
  8  9.70618
  9  83.3132
  10  28.0609
  11  18.4464
  12  9.99921
  13  2.72461e-06
  14  1.47378e-05
  15  9.64994e-06
  16  25.0154
  17  83.6478
  18  0.000295196
  19  0.43922
  20  4.0286e-05
  21  0.00819768
  22  0.226246
  23  0.192581
Done.

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

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  5.383e+01  2.806e+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:  6.410e-01  1.926e-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.332e+00  2.262e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.11
Ra Dec: 350.385 -16.318
Photon Index (Fixed Index): 1.83 +/- 0.00
Photon Flux (Fixed Index): 4.33e-08 +/- 2.26e-08
Energy Flux (Fixed Index): 4.75e-05 +/- 2.47e-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) = 6282.691046
delta logL = 0.216458583826

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6282.690841
delta logL = 0.216663577638

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    70.223       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5966       1.0000          .0000       10.000    
     3 'Normalizat'    1.3418       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63699       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=   6282.691     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      304 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     70.191        42.524        .23951E-03    .21502E-04
   2  Index         1.5962        .34793        .53785E-02    .31484E-03
   3  Normalizat    1.3418        .21494        .23700E-03    .25519E-04
   4  Prefactor     .63705        .18975        .29179E-03   -.67405E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 70.1914
  Index      = 1.59618
  Normalizat = 1.34178
  Prefactor  = 0.637052
 **********
 **   18 **HESSE 
 **********

 FCN=   6282.691     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .66E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     70.191        41.941        .95806E-05   -1.4030    
   2  Index         1.5962        .34315        .10757E-02   -.74880    
   3  Normalizat    1.3418        .21512        .94801E-05   -.82328    
   4  Prefactor     .63705        .18992        .11671E-04   -1.0605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.63082e-12
Minuit parameter uncertainties:
  1  41.9587
  2  0.343657
  3  0.21526
  4  0.190112
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/764924': 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) = 6282.69083917
delta logL = 0.216665416773

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  7.019e+01  4.196e+01  1.000e-04  1.000e+04 ( 1.000e-14)
352        Index:  1.596e+00  3.437e-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:  6.371e-01  1.901e-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.342e+00  2.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.52
Ra Dec: 350.385 -16.318
Photon Index (Free Index): 1.60 +/- 0.34
Photon Flux (Free Index): 3.38e-08 +/- 2.24e-08
Energy Flux (Free Index): 7.75e-05 +/- 7.03e-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/764924/cmap_HighResolution_516931201_517190401_4FGL_J2321.5-1619_daily_bin1071.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.33e-08', energy_flux2='7.75e-05', photon_flux_error='2.26e-08', dlogl='2.17e-01', energy_flux='4.75e-05', photon_flux2='3.38e-08', job_status='DONE', time_completed='2021-09-29 12:20:39.680594', photon_index_error2='0.34', photon_index2='1.60', ts='10.11', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', energy_flux_error2='7.03e-05', EG='1.33', time_epoch_completed='1632943239.68', return_code='0', job_id='764924', GAL2='0.64', EG2='1.34', return_code2='0', energy_flux_error='2.47e-05', photon_flux_error2='2.24e-08', ts2='10.52', photon_index='1.83' WHERE bin_id='1071' AND source_name='4FGL J2321.5-1619' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 12:20:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 764924: <4FGL_J2321.5-1619_daily_bin1071> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.5-1619_daily_bin1071 350.385 -16.3176 516931201 517190401 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 :                                   586.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             264.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            898 sec.

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

