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


Performing analysis on: 4FGL_J2321.5-1619_daily_bin1147
RA = 350.385, Dec = -16.3176
tmin = 536630401, tmax = 536889601
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='765039', job_status='RUN', time_executed='2021-09-29 12:07:22.014123', time_epoch_executed='1632942442.01' WHERE source_name='4FGL J2321.5-1619' and cadence='daily' and bin_id='1147'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/765039

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/765039/ft1_4FGL_J2321.5-1619_daily_bin1147.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/765039/ft2_4FGL_J2321.5-1619_daily_bin1147.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/765039/ft1_4FGL_J2321.5-1619_daily_bin1147.fits outfile=/scratch/kocevski/765039/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin1147.fits ra=350.385 dec=-16.3176 rad=12.0 tmin=536630401.0 tmax=536889601.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.51
user 3.29
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/765039/ft1_filtered_4FGL_J2321.5-1619_daily_bin1147.fits evtable="EVENTS" scfile=/scratch/kocevski/765039/ft2_4FGL_J2321.5-1619_daily_bin1147.fits sctable="SC_DATA" expcube=/scratch/kocevski/765039/ltcube_536630401_536889601_4FGL_J2321.5-1619_daily_bin1147.fits outfile=/scratch/kocevski/765039/expmap_536630401_536889601_4FGL_J2321.5-1619_daily_bin1147.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/765039/ltcube_536630401_536889601_4FGL_J2321.5-1619_daily_bin1147.fits
.....................!
real 190.72
user 185.64
sys 4.73

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/765039/ft1_filtered_4FGL_J2321.5-1619_daily_bin1147.fits scfile=/scratch/kocevski/765039/ft2_4FGL_J2321.5-1619_daily_bin1147.fits outfile=/scratch/kocevski/765039/cmap_536630401_536889601_4FGL_J2321.5-1619_daily_bin1147.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/765039/ft1_filtered_4FGL_J2321.5-1619_daily_bin1147.fits scfile=/scratch/kocevski/765039/ft2_4FGL_J2321.5-1619_daily_bin1147.fits outfile=/scratch/kocevski/765039/cmap_HighResolution_536630401_536889601_4FGL_J2321.5-1619_daily_bin1147.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=350.385 yref=-16.3176 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/765039/ft1_filtered_4FGL_J2321.5-1619_daily_bin1147.fits evtable="EVENTS" scfile=/scratch/kocevski/765039/ft2_4FGL_J2321.5-1619_daily_bin1147.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/765039/Model_4FGL_J2321.5-1619_daily_bin1147.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/765039/ft1_filtered_4FGL_J2321.5-1619_daily_bin1147.fits.....................!
real 56.89
user 55.52
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/765039/ft1_filtered_4FGL_J2321.5-1619_daily_bin1147.fits', '/scratch/kocevski/765039/ft2_4FGL_J2321.5-1619_daily_bin1147.fits', expMap='/scratch/kocevski/765039/expmap_536630401_536889601_4FGL_J2321.5-1619_daily_bin1147.fits', expCube='/scratch/kocevski/765039/ltcube_536630401_536889601_4FGL_J2321.5-1619_daily_bin1147.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/765039/Model_4FGL_J2321.5-1619_daily_bin1147.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/765039/ft1_filtered_4FGL_J2321.5-1619_daily_bin1147.fits
Spacecraft file(s): /scratch/kocevski/765039/ft2_4FGL_J2321.5-1619_daily_bin1147.fits
Exposure map: /scratch/kocevski/765039/expmap_536630401_536889601_4FGL_J2321.5-1619_daily_bin1147.fits
Exposure cube: /scratch/kocevski/765039/ltcube_536630401_536889601_4FGL_J2321.5-1619_daily_bin1147.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/765039/Model_4FGL_J2321.5-1619_daily_bin1147.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6176.19808097

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10102E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.4984       1.0000         .10000E-03   10000.    
     3 'Prefactor '    166.63       1.0000         .10000E-03   10000.    
     4 'norm      '    48.879       1.0000         .10000E-03   10000.    
     5 'Prefactor '    155.88       1.0000         .10000E-03   10000.    
     6 'Prefactor '    38.527       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.086       1.0000         .10000E-03   10000.    
     9 'Prefactor '    128.76       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.4509       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.744       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .64158       1.0000         .10000E-03   10000.    
    20 'norm      '    16.423       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2234       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .55022       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=   6176.092     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2636 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    65.375        .29167E-04** at limit **
   2  norm          1.4982        1.7346        .50972E-06   -.49593E-03
   3  Prefactor     166.63        119.13       -.85522E-06   -.12948E-03
   4  norm          48.878        10.502       -.29134E-05    .20015E-04
   5  Prefactor     155.93        104.43        .35803E-04   -.54341E-04
   6  Prefactor     38.525        20.676       -.13495E-05   -.19244E-04
   7  Prefactor     .10000E-03    5.4721       -.13320E-07** at limit **
   8  Prefactor     10.093        20.485        .27554E-05   -.74713E-04
   9  Prefactor     128.80        83.283        .27243E-04    .66423E-04
  10  Prefactor     .10000E-03    11.538        .37740E-06** at limit **
  11  Prefactor     3.4469        12.702       -.13447E-04   -.39372E-03
  12  norm          .10000E-03    2.6253       -.12026E-06** at limit **
  13  norm          .10000E-03    2.2011       -.55423E-06** at limit **
  14  Prefactor     .10000E-03    102.66       -.79460E-05** at limit **
  15  Prefactor     .10000E-03    42.125        .94722E-05** at limit **
  16  Prefactor     14.787        37.095        .44212E-04   -.33253E-04
  17  Prefactor     .10000E-03    46.020       -.10325E-04** at limit **
  18  Prefactor     .10000E-03    50.145       -.13840E-04** at limit **
  19  norm          .64154        .96767        .17170E-05    .77866E-03
  20  norm          16.425        9.0741       -.46176E-05   -.48495E-03
  21  Prefactor     .10000E-03    4.3241       -.13396E-06** at limit **
  22  Normalizat    1.2229        .24131       -.89409E-05    .10722E-03
  23  Prefactor     .55058        .19417        .22118E-05   -.42967E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.49815
  Prefactor  = 166.627
  norm       = 48.8778
  Prefactor  = 155.931
  Prefactor  = 38.525
  Prefactor  = 0.0001
  Prefactor  = 10.0927
  Prefactor  = 128.801
  Prefactor  = 0.0001
  Prefactor  = 3.44688
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.7871
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.641539
  norm       = 16.4253
  Prefactor  = 0.0001
  Normalizat = 1.22292
  Prefactor  = 0.550581
 **********
 **   18 **HESSE 
 **********

 FCN=   6176.092     FROM HESSE     STATUS=OK           372 CALLS     3008 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    65.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.4982        1.7109        .10429E-03   -1.5463    
   3  Prefactor     166.63        122.29        .31249E-04   -1.3119    
   4  norm          48.878        10.792        .50990E-04   -1.4309    
   5  Prefactor     155.93        104.05        .16145E-03   -1.3204    
   6  Prefactor     38.525        20.674        .64573E-04   -1.4466    
   7  Prefactor     .10000E-03    5.4769        .17954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.093        20.642        .12617E-03   -1.5072    
   9  Prefactor     128.80        82.348        .17740E-03   -1.3433    
  10  Prefactor     .10000E-03    11.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.4469        12.497        .21771E-03   -1.5337    
  12  norm          .10000E-03    2.6367        .12431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.2244        .11376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    103.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    42.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.787        37.119        .10431E-03   -1.4939    
  17  Prefactor     .10000E-03    46.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    50.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .64154        .89883        .71646E-03   -1.5548    
  20  norm          16.425        8.8900        .98831E-04   -1.4897    
  21  Prefactor     .10000E-03    4.3742        .15957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2229        .29153        .31330E-03   -.85897    
  23  Prefactor     .55058        .23158        .37990E-03   -1.0971    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.8128e-09
Minuit parameter uncertainties:
  1  0.00021103
  2  1.71092
  3  122.472
  4  10.7926
  5  104.17
  6  20.678
  7  2.55631e-06
  8  20.6569
  9  82.4212
  10  5.49563e-06
  11  12.506
  12  9.57378e-06
  13  8.54228e-05
  14  0.000261159
  15  0.000211573
  16  37.1768
  17  2.95082e-05
  18  0.000115631
  19  0.898853
  20  8.89067
  21  2.65781e-05
  22  0.291918
  23  0.231977
Done.

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

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  5.496e-06  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:  5.506e-01  2.320e-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.223e+00  2.919e-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.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/765039/likelihoodResults_536630401_536889601_4FGL_J2321.5-1619_daily_bin1147.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) = 6176.09271586
delta logL = -0.000400569099838

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6176.09231525
delta logL = 4.61959643872e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8103       1.0000          .0000       10.000    
     3 'Normalizat'    1.2229       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55060       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=   6176.092     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      215 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    468.49        .90712E-02** at limit **
   2  Index         1.7908        5.1089        .50000        .12087E-04
   3  Normalizat    1.2229        .39423E-01    .70815E-01    .47289E-05
   4  Prefactor     .55059        .33404E-01    .85715E-01    .28767E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.79077
  Normalizat = 1.22291
  Prefactor  = 0.550593
 **********
 **   18 **HESSE 
 **********

 FCN=   6176.092     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7908        5.8683        .50000       -.69690    
   3  Normalizat    1.2229        .26485        .31330E-03   -.85898    
   4  Prefactor     .55059        .22380        .37990E-03   -1.0971    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46214e-10
Minuit parameter uncertainties:
  1  5.12351e-05
  2  3.9152
  3  0.265142
  4  0.224162
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/765039': 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) = 6176.09231517
delta logL = 1.28942701849e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  5.506e-01  2.242e-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.223e+00  2.651e-01  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/765039/cmap_HighResolution_536630401_536889601_4FGL_J2321.5-1619_daily_bin1147.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.75e-03', job_status='DONE', photon_flux_upper_limit='5.08e-08', time_completed='2021-09-29 12:20:14.356151', job_id='765039', GAL2='0.55', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1632943214.36', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.55', dlogl='1.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.83' WHERE bin_id='1147' AND source_name='4FGL J2321.5-1619' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 12:20:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 765039: <4FGL_J2321.5-1619_daily_bin1147> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.5-1619_daily_bin1147 350.385 -16.3176 536630401 536889601 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 :                                   649.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             253.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            861 sec.

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

