/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 44 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 = 7550
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2321.5-1619_daily_bin932
RA = 350.385, Dec = -16.3176
tmin = 480902401, tmax = 481161601
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='764714', job_status='RUN', time_executed='2021-09-29 12:06:24.851155', time_epoch_executed='1632942384.85' WHERE source_name='4FGL J2321.5-1619' and cadence='daily' and bin_id='932'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/764714

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/764714/ft1_4FGL_J2321.5-1619_daily_bin932.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/764714/ft2_4FGL_J2321.5-1619_daily_bin932.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/764714/ft1_4FGL_J2321.5-1619_daily_bin932.fits outfile=/scratch/kocevski/764714/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin932.fits ra=350.385 dec=-16.3176 rad=12.0 tmin=480902401.0 tmax=481161601.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.65
user 3.43
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/764714/ft2_4FGL_J2321.5-1619_daily_bin932.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/764714/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin932.fits evtable="EVENTS" outfile="/scratch/kocevski/764714/ft1_filtered_4FGL_J2321.5-1619_daily_bin932.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/764714/ft1_filtered_4FGL_J2321.5-1619_daily_bin932.fits" evtable="EVENTS" scfile=/scratch/kocevski/764714/ft2_4FGL_J2321.5-1619_daily_bin932.fits sctable="SC_DATA" outfile=/scratch/kocevski/764714/ltcube_480902401_481161601_4FGL_J2321.5-1619_daily_bin932.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/764714/ft2_4FGL_J2321.5-1619_daily_bin932.fits
.....................!
real 11.82
user 11.47
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/764714/ft1_filtered_4FGL_J2321.5-1619_daily_bin932.fits evtable="EVENTS" scfile=/scratch/kocevski/764714/ft2_4FGL_J2321.5-1619_daily_bin932.fits sctable="SC_DATA" expcube=/scratch/kocevski/764714/ltcube_480902401_481161601_4FGL_J2321.5-1619_daily_bin932.fits outfile=/scratch/kocevski/764714/expmap_480902401_481161601_4FGL_J2321.5-1619_daily_bin932.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/764714/ltcube_480902401_481161601_4FGL_J2321.5-1619_daily_bin932.fits
.....................!
real 190.25
user 185.02
sys 4.49

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/764714/ft1_filtered_4FGL_J2321.5-1619_daily_bin932.fits scfile=/scratch/kocevski/764714/ft2_4FGL_J2321.5-1619_daily_bin932.fits outfile=/scratch/kocevski/764714/cmap_480902401_481161601_4FGL_J2321.5-1619_daily_bin932.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/764714/ft1_filtered_4FGL_J2321.5-1619_daily_bin932.fits scfile=/scratch/kocevski/764714/ft2_4FGL_J2321.5-1619_daily_bin932.fits outfile=/scratch/kocevski/764714/cmap_HighResolution_480902401_481161601_4FGL_J2321.5-1619_daily_bin932.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.64
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.9752       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10390E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .37092E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10384E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.9086       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.881       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.471       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10295E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    11.445       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.0097       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2468       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .95420       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=   5176.825     FROM MIGRAD    STATUS=CONVERGED    888 CALLS     2893 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    20.127        .18142E-02** at limit **
   2  norm          2.9751        1.2767        .51034E-04   -.10403E-03
   3  Prefactor     .10000E-03    17.699        .18142E-02** at limit **
   4  norm          .10000E-03    .62411        .10844E-03** at limit **
   5  Prefactor     .10000E-03    44.576        .10397    ** at limit **
   6  Prefactor     .10000E-03    11.273        .18142E-02** at limit **
   7  Prefactor     .10000E-03    11.530        .18142E-02** at limit **
   8  Prefactor     .10000E-03    5.8147        .16927E-02** at limit **
   9  Prefactor     .10000E-03    70.550        .18142E-02** at limit **
  10  Prefactor     .10000E-03    16.722        .18142E-02** at limit **
  11  Prefactor     .10000E-03    11.313        .18142E-02** at limit **
  12  norm          .10000E-03    2.1883        .10372E-02** at limit **
  13  norm          6.9091        5.1583        .64577E-03   -.26897E-03
  14  Prefactor     20.892        62.284        .87652E-04   -.42802E-04
  15  Prefactor     .10000E-03    10.258        .18142E-02** at limit **
  16  Prefactor     21.465        35.333        .86441E-04   -.10522E-04
  17  Prefactor     .10000E-03    42.933        .18142E-02** at limit **
  18  Prefactor     .10000E-03    46.459        .18142E-02** at limit **
  19  norm          .10000E-03    .35361        .68349E-03** at limit **
  20  norm          11.439        5.7125        .11593E-03   -.19891E-02
  21  Prefactor     2.0125        7.4052        .29204E-03   -.51892E-04
  22  Normalizat    1.2465        .27044        .25866E-03   -.29583E-03
  23  Prefactor     .95431        .22383        .25343E-03   -.25013E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.97514
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.90908
  Prefactor  = 20.8918
  Prefactor  = 0.0001
  Prefactor  = 21.4655
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.4394
  Prefactor  = 2.01249
  Normalizat = 1.24645
  Prefactor  = 0.954305
 **********
 **   18 **HESSE 
 **********

 FCN=   5176.825     FROM HESSE     STATUS=OK           356 CALLS     3249 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    20.127        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.9751        1.2767        .20413E-05   -1.5363    
   3  Prefactor     .10000E-03    17.702        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .62412        .21689E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    40.996        .10931       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.276        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.533        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.8151        .33855E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    70.561        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.723        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.321        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.1884        .20744E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.9091        5.1569        .25831E-04   -1.5182    
  14  Prefactor     20.892        62.280        .17530E-04   -1.4793    
  15  Prefactor     .10000E-03    10.259        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     21.465        35.324        .34577E-05   -1.4781    
  17  Prefactor     .10000E-03    42.935        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    46.459        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .35386        .13670E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          11.439        5.7114        .23186E-04   -1.5031    
  21  Prefactor     2.0125        7.4043        .11682E-04   -1.5424    
  22  Normalizat    1.2465        .27067        .51733E-04   -.85179    
  23  Prefactor     .95431        .22404        .50687E-04   -.94269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60296e-09
Minuit parameter uncertainties:
  1  2.78468e-06
  2  1.27667
  3  5.1225e-05
  4  3.23941e-06
  5  0.000161702
  6  2.01932e-05
  7  1.28976e-05
  8  2.89635e-06
  9  0.000345321
  10  6.29459e-05
  11  8.64156e-05
  12  4.93851e-06
  13  5.15726
  14  62.4748
  15  0.000142545
  16  35.3583
  17  3.74261e-06
  18  1.11851e-05
  19  1.43629e-05
  20  5.71171
  21  7.40768
  22  0.270973
  23  0.224255
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  9.543e-01  2.243e-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.246e+00  2.710e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/764714/likelihoodResults_480902401_481161601_4FGL_J2321.5-1619_daily_bin932.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5176.82496526
delta logL = -0.000284513234874

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5176.82468059
delta logL = 1.58817783813e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9232       1.0000          .0000       10.000    
     3 'Normalizat'    1.2464       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95430       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=   5176.825     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      237 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    571.31        .90712E-02** at limit **
   2  Index         1.9422        6.3083        .50000       -.92270E-05
   3  Normalizat    1.2465        .32014E-01    .58489E-01    .74219E-04
   4  Prefactor     .95430        .28013E-01    .45693E-01   -.62926E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 1.9422
  Normalizat = 1.24646
  Prefactor  = 0.954303
 **********
 **   18 **HESSE 
 **********

 FCN=   5176.825     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      270 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    684.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9422        5.0440        .50000       -.65803    
   3  Normalizat    1.2465        .35332E-01    .25866E-03   -.85179    
   4  Prefactor     .95430        .30925E-01    .25343E-03   -.94269    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.70085e-08
Minuit parameter uncertainties:
  1  0.00384011
  2  24.7689
  3  0.0353324
  4  0.0309252
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/764714': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5176.82468054
delta logL = 2.12000486499e-07

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  3.840e-03  1.000e-04  1.000e+04 ( 1.000e-14)
352        Index:  1.942e+00  2.477e+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:  9.543e-01  3.093e-02  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  1.246e+00  3.533e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/764714/cmap_HighResolution_480902401_481161601_4FGL_J2321.5-1619_daily_bin932.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.19e-03', job_status='DONE', photon_flux_upper_limit='5.67e-08', time_completed='2021-09-29 12:16:43.161597', job_id='764714', GAL2='0.95', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1632943003.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='2.12e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.83' WHERE bin_id='932' AND source_name='4FGL J2321.5-1619' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 12:16:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 764714: <4FGL_J2321.5-1619_daily_bin932> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.5-1619_daily_bin932 350.385 -16.3176 480902401 481161601 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 :                                   575.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            677 sec.

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

