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


Performing analysis on: 4FGL_J2321.5-1619_daily_bin1045
RA = 350.385, Dec = -16.3176
tmin = 510192001, tmax = 510451201
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='764884', job_status='RUN', time_executed='2021-09-29 12:06:44.941943', time_epoch_executed='1632942404.94' WHERE source_name='4FGL J2321.5-1619' and cadence='daily' and bin_id='1045'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/764884

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/764884/ft1_4FGL_J2321.5-1619_daily_bin1045.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/764884/ft2_4FGL_J2321.5-1619_daily_bin1045.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/764884/ft1_4FGL_J2321.5-1619_daily_bin1045.fits outfile=/scratch/kocevski/764884/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin1045.fits ra=350.385 dec=-16.3176 rad=12.0 tmin=510192001.0 tmax=510451201.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 4.35
user 4.11
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/764884/ft1_filtered_4FGL_J2321.5-1619_daily_bin1045.fits" evtable="EVENTS" scfile=/scratch/kocevski/764884/ft2_4FGL_J2321.5-1619_daily_bin1045.fits sctable="SC_DATA" outfile=/scratch/kocevski/764884/ltcube_510192001_510451201_4FGL_J2321.5-1619_daily_bin1045.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/764884/ft2_4FGL_J2321.5-1619_daily_bin1045.fits
.....................!
real 12.13
user 11.77
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/764884/ft1_filtered_4FGL_J2321.5-1619_daily_bin1045.fits evtable="EVENTS" scfile=/scratch/kocevski/764884/ft2_4FGL_J2321.5-1619_daily_bin1045.fits sctable="SC_DATA" expcube=/scratch/kocevski/764884/ltcube_510192001_510451201_4FGL_J2321.5-1619_daily_bin1045.fits outfile=/scratch/kocevski/764884/expmap_510192001_510451201_4FGL_J2321.5-1619_daily_bin1045.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/764884/ltcube_510192001_510451201_4FGL_J2321.5-1619_daily_bin1045.fits
.....................!
real 191.46
user 185.81
sys 5.21

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/764884/ft1_filtered_4FGL_J2321.5-1619_daily_bin1045.fits scfile=/scratch/kocevski/764884/ft2_4FGL_J2321.5-1619_daily_bin1045.fits outfile=/scratch/kocevski/764884/cmap_510192001_510451201_4FGL_J2321.5-1619_daily_bin1045.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/764884/ft1_filtered_4FGL_J2321.5-1619_daily_bin1045.fits scfile=/scratch/kocevski/764884/ft2_4FGL_J2321.5-1619_daily_bin1045.fits outfile=/scratch/kocevski/764884/cmap_HighResolution_510192001_510451201_4FGL_J2321.5-1619_daily_bin1045.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/764884/ft1_filtered_4FGL_J2321.5-1619_daily_bin1045.fits evtable="EVENTS" scfile=/scratch/kocevski/764884/ft2_4FGL_J2321.5-1619_daily_bin1045.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/764884/Model_4FGL_J2321.5-1619_daily_bin1045.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/764884/ft1_filtered_4FGL_J2321.5-1619_daily_bin1045.fits.....................!
real 56.81
user 55.42
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1530       1.0000         .10000E-03   10000.    
     2 'norm      '    2.6375       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    16.682       1.0000         .10000E-03   10000.    
     5 'Prefactor '    45.562       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.818       1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.170       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11019E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.169       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8631       1.0000         .10000E-03   10000.    
    12 'norm      '    8.5963       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10975E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.6109       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .21587       1.0000         .10000E-03   10000.    
    20 'norm      '    4.0637       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.8709       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .79127       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.3839       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=   6647.077     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2942 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1477        104.22       -.11594E-05   -.26030E-04
   2  norm          2.6376        1.1398       -.61154E-07   -.27256E-03
   3  Prefactor     .10002E-03    84.948        .13827E-04** at limit **
   4  norm          16.680        3.6446       -.29738E-05   -.25203E-03
   5  Prefactor     45.614        79.532        .58325E-04   -.12761E-03
   6  Prefactor     10.817        19.861       -.77237E-05   -.10539E-03
   7  Prefactor     27.172        16.867       -.16070E-05   -.98829E-04
   8  Prefactor     .10000E-03    4.5478        .35673E-07** at limit **
   9  Prefactor     .10000E-03    73.469       -.36268E-04** at limit **
  10  Prefactor     21.168        20.267        .43046E-08   -.26627E-04
  11  Prefactor     2.8635        10.512       -.17056E-05   -.10742E-03
  12  norm          8.5961        7.1601        .43405E-06    .10110E-03
  13  norm          .10000E-03    .96167        .34736E-07** at limit **
  14  Prefactor     .10000E-03    89.818        .36329E-04** at limit **
  15  Prefactor     3.6082        19.564       -.18481E-05   -.21300E-03
  16  Prefactor     .10122E-03    21.006       -.17173E-05** at limit **
  17  Prefactor     .10000E-03    20.364       -.26528E-07** at limit **
  18  Prefactor     .10000E-03    43.744        .23554E-05** at limit **
  19  norm          .21612        .49061       -.16797E-06   -.25996E-02
  20  norm          4.0627        4.1565        .23506E-06   -.28291E-03
  21  Prefactor     8.8708        7.1030        .11296E-05   -.22613E-04
  22  Normalizat    .79144        .21038       -.48052E-05    .86442E-04
  23  Prefactor     1.3837        .19167        .15263E-05   -.20125E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.14767
  norm       = 2.63759
  Prefactor  = 0.000100015
  norm       = 16.68
  Prefactor  = 45.6137
  Prefactor  = 10.8167
  Prefactor  = 27.1723
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.1675
  Prefactor  = 2.86348
  norm       = 8.59611
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.60824
  Prefactor  = 0.000101215
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.216123
  norm       = 4.06272
  Prefactor  = 8.87078
  Normalizat = 0.791441
  Prefactor  = 1.38368
 **********
 **   18 **HESSE 
 **********

 FCN=   6647.077     FROM HESSE     STATUS=OK           376 CALLS     3318 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1477        104.81        .28079E-03   -1.5415    
   2  norm          2.6376        1.1419        .55427E-04   -1.5383    
   3  Prefactor     .10002E-03    84.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          16.680        3.6635        .50200E-04   -1.4891    
   5  Prefactor     45.614        79.346        .59398E-04   -1.4356    
   6  Prefactor     10.817        19.881        .12181E-03   -1.5050    
   7  Prefactor     27.172        16.861        .76856E-04   -1.4665    
   8  Prefactor     .10000E-03    4.5572        .16980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    73.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     21.168        20.259        .87054E-04   -1.4787    
  11  Prefactor     2.8635        10.375        .24025E-03   -1.5370    
  12  norm          8.5961        7.0841        .13672E-03   -1.5122    
  13  norm          .10000E-03    .96716        .78030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    90.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.6082        19.242        .21263E-03   -1.5328    
  16  Prefactor     .10122E-03    150.40        .70921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    43.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .21612        .42210        .72847E-03   -1.5615    
  20  norm          4.0627        4.0147        .14407E-03   -1.5305    
  21  Prefactor     8.8708        7.1010        .13457E-03   -1.5112    
  22  Normalizat    .79144        .24251        .34009E-03   -1.0039    
  23  Prefactor     1.3837        .22706        .24999E-03   -.80852    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.06056e-09
Minuit parameter uncertainties:
  1  30.0612
  2  1.14191
  3  0.00229297
  4  3.66353
  5  79.5308
  6  19.8929
  7  16.8644
  8  6.75336e-06
  9  0.00012515
  10  20.2656
  11  10.3816
  12  7.08483
  13  4.29319e-06
  14  0.000223409
  15  16.6732
  16  0.0271051
  17  6.48718e-06
  18  2.90237e-05
  19  0.422104
  20  4.01501
  21  7.10164
  22  0.242837
  23  0.227222
Done.

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

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  2.117e+01  2.027e+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.384e+00  2.272e-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:  7.914e-01  2.428e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.91
Ra Dec: 350.385 -16.318
Photon Index (Fixed Index): 1.83 +/- 0.00
Photon Flux (Fixed Index): 1.70e-08 +/- 1.63e-08
Energy Flux (Fixed Index): 1.87e-05 +/- 1.79e-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) = 6646.36071884
delta logL = 0.716191681467

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6646.34981046
delta logL = 0.72710005908

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.947       1.0000         .10000E-03   10000.    
     2 'Index     '    1.0890       1.0000          .0000       10.000    
     3 'Normalizat'    .79992       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3825       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=   6646.350     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      248 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.962        26.684        .80202E-04    .77963E-05
   2  Index         1.0892        .59582        .12479E-01   -.39975E-05
   3  Normalizat    .79992        .23495        .33840E-03   -.10918E-04
   4  Prefactor     1.3825        .22288        .25007E-03    .14584E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.9622
  Index      = 1.08918
  Normalizat = 0.799921
  Prefactor  = 1.38251
 **********
 **   18 **HESSE 
 **********

 FCN=   6646.350     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.962        27.091        .32081E-05   -1.4708    
   2  Index         1.0892        .60481        .49917E-03   -.89813    
   3  Normalizat    .79992        .23515        .13536E-04   -1.0007    
   4  Prefactor     1.3825        .22307        .50014E-04   -.80886    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05664e-10
Minuit parameter uncertainties:
  1  27.1046
  2  0.608677
  3  0.235449
  4  0.223227
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/764884': 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) = 6646.34981025
delta logL = 0.727100270261

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  2.496e+01  2.710e+01  1.000e-04  1.000e+04 ( 1.000e-14)
352        Index:  1.089e+00  6.087e-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:  1.383e+00  2.232e-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:  7.999e-01  2.354e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.35
Ra Dec: 350.385 -16.318
Photon Index (Free Index): 1.09 +/- 0.61
Photon Flux (Free Index): 6.19e-09 +/- 7.61e-09
Energy Flux (Free Index): 7.11e-05 +/- 9.54e-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/764884/cmap_HighResolution_510192001_510451201_4FGL_J2321.5-1619_daily_bin1045.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.70e-08', energy_flux2='7.11e-05', photon_flux_error='1.63e-08', dlogl='7.27e-01', energy_flux='1.87e-05', photon_flux2='6.19e-09', job_status='DONE', time_completed='2021-09-29 12:18:14.488952', photon_index_error2='0.61', photon_index2='1.09', ts='8.91', fit_tolerance='1e-08', GAL='1.38', photon_index_error='0.00', energy_flux_error2='9.54e-05', EG='0.79', time_epoch_completed='1632943094.49', return_code='0', job_id='764884', GAL2='1.38', EG2='0.80', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='7.61e-09', ts2='10.35', photon_index='1.83' WHERE bin_id='1045' AND source_name='4FGL J2321.5-1619' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 12:18:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 764884: <4FGL_J2321.5-1619_daily_bin1045> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.5-1619_daily_bin1045 350.385 -16.3176 510192001 510451201 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 :                                   611.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             295.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   754 sec.
    Turnaround time :                            755 sec.

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

