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


Performing analysis on: 4FGL_J2321.5-1619_daily_bin1368
RA = 350.385, Dec = -16.3176
tmin = 593913601, tmax = 594172801
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='766528', job_status='RUN', time_executed='2021-09-29 12:11:10.273610', time_epoch_executed='1632942670.27' WHERE source_name='4FGL J2321.5-1619' and cadence='daily' and bin_id='1368'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/766528

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/766528/ft1_4FGL_J2321.5-1619_daily_bin1368.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/766528/ft2_4FGL_J2321.5-1619_daily_bin1368.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/766528/ft1_4FGL_J2321.5-1619_daily_bin1368.fits outfile=/scratch/kocevski/766528/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin1368.fits ra=350.385 dec=-16.3176 rad=12.0 tmin=593913601.0 tmax=594172801.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.67
user 3.40
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/766528/ft1_filtered_4FGL_J2321.5-1619_daily_bin1368.fits" evtable="EVENTS" scfile=/scratch/kocevski/766528/ft2_4FGL_J2321.5-1619_daily_bin1368.fits sctable="SC_DATA" outfile=/scratch/kocevski/766528/ltcube_593913601_594172801_4FGL_J2321.5-1619_daily_bin1368.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/766528/ft2_4FGL_J2321.5-1619_daily_bin1368.fits
.....................!
real 12.29
user 11.92
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/766528/ft1_filtered_4FGL_J2321.5-1619_daily_bin1368.fits evtable="EVENTS" scfile=/scratch/kocevski/766528/ft2_4FGL_J2321.5-1619_daily_bin1368.fits sctable="SC_DATA" expcube=/scratch/kocevski/766528/ltcube_593913601_594172801_4FGL_J2321.5-1619_daily_bin1368.fits outfile=/scratch/kocevski/766528/expmap_593913601_594172801_4FGL_J2321.5-1619_daily_bin1368.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/766528/ltcube_593913601_594172801_4FGL_J2321.5-1619_daily_bin1368.fits
.....................!
real 190.72
user 185.25
sys 5.02

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/766528/ft1_filtered_4FGL_J2321.5-1619_daily_bin1368.fits scfile=/scratch/kocevski/766528/ft2_4FGL_J2321.5-1619_daily_bin1368.fits outfile=/scratch/kocevski/766528/cmap_593913601_594172801_4FGL_J2321.5-1619_daily_bin1368.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/766528/ft1_filtered_4FGL_J2321.5-1619_daily_bin1368.fits scfile=/scratch/kocevski/766528/ft2_4FGL_J2321.5-1619_daily_bin1368.fits outfile=/scratch/kocevski/766528/cmap_HighResolution_593913601_594172801_4FGL_J2321.5-1619_daily_bin1368.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/766528/ft1_filtered_4FGL_J2321.5-1619_daily_bin1368.fits evtable="EVENTS" scfile=/scratch/kocevski/766528/ft2_4FGL_J2321.5-1619_daily_bin1368.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/766528/Model_4FGL_J2321.5-1619_daily_bin1368.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/766528/ft1_filtered_4FGL_J2321.5-1619_daily_bin1368.fits.....................!
real 60.55
user 59.20
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    24.691       1.0000         .10000E-03   10000.    
     2 'norm      '    .57839       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.702       1.0000         .10000E-03   10000.    
     4 'norm      '    9.0796       1.0000         .10000E-03   10000.    
     5 'Prefactor '    54.647       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6906       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.4329       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .82703E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10922E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.988       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9582       1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.8203       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .18996E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.4304       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.901       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10460E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10089E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    38.199       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.6241       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .81654       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .75562       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=   7578.719     FROM MIGRAD    STATUS=CONVERGED    543 CALLS     3208 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          24.694        25.107        .20403E-05    .74393E-04
   2  norm          .57878        .54627       -.90595E-07   -.78889E-03
   3  Prefactor     18.740        33.078        .84004E-05   -.19336E-04
   4  norm          9.0722        3.1677       -.19151E-05    .17526E-02
   5  Prefactor     54.696        36.332        .12531E-04    .46208E-03
   6  Prefactor     2.6875        7.6059       -.18968E-05   -.13360E-03
   7  Prefactor     4.4316        6.1012       -.47452E-06   -.86567E-04
   8  Prefactor     .16265        5.3088       -.14123E-06    .19870E-03
   9  Prefactor     .10000E-03    15.972       -.11216E-06** at limit **
  10  Prefactor     11.995        16.234        .45701E-06    .20147E-04
  11  Prefactor     1.9572        2.0780        .83884E-06   -.31429E-02
  12  norm          .10000E-03    1.7502       -.23095E-06** at limit **
  13  norm          8.8214        3.3247        .14836E-06   -.16218E-04
  14  Prefactor     .10000E-03    80.711       -.51498E-05** at limit **
  15  Prefactor     6.4365        11.597        .13743E-06    .21255E-04
  16  Prefactor     17.891        16.939       -.96783E-06   -.81861E-04
  17  Prefactor     .10000E-03    22.970       -.40220E-06** at limit **
  18  Prefactor     .10000E-03    35.953        .17178E-05** at limit **
  19  norm          .10000E-03    .19669        .15328E-08** at limit **
  20  norm          38.197        6.5322        .12769E-06    .50782E-04
  21  Prefactor     2.6243        3.3882        .12255E-06   -.17356E-04
  22  Normalizat    .81616        .15585       -.24935E-05    .84627E-04
  23  Prefactor     .75588        .13777        .80928E-06   -.12482E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 24.6944
  norm       = 0.578778
  Prefactor  = 18.7402
  norm       = 9.07224
  Prefactor  = 54.6962
  Prefactor  = 2.68749
  Prefactor  = 4.43164
  Prefactor  = 0.162649
  Prefactor  = 0.0001
  Prefactor  = 11.9946
  Prefactor  = 1.95725
  norm       = 0.0001
  norm       = 8.82139
  Prefactor  = 0.0001
  Prefactor  = 6.43648
  Prefactor  = 17.8909
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 38.1973
  Prefactor  = 2.62429
  Normalizat = 0.816162
  Prefactor  = 0.755884
 **********
 **   18 **HESSE 
 **********

 FCN=   7578.719     FROM HESSE     STATUS=OK           380 CALLS     3588 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          24.694        25.123        .80615E-04   -1.4714    
   2  norm          .57878        .51557        .60261E-03   -1.5556    
   3  Prefactor     18.740        33.965        .92614E-04   -1.4842    
   4  norm          9.0722        3.2419        .44198E-04   -1.5105    
   5  Prefactor     54.696        36.598        .54261E-04   -1.4227    
   6  Prefactor     2.6875        7.6036        .24838E-03   -1.5380    
   7  Prefactor     4.4316        6.0960        .19126E-03   -1.5287    
   8  Prefactor     .16265        114.67        .38234E-02   -1.5627    
   9  Prefactor     .10000E-03    15.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.995        16.231        .11570E-03   -1.5015    
  11  Prefactor     1.9572        5.0355        .14823E-02   -1.5428    
  12  norm          .10000E-03    1.7630        .11247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.8214        3.3291        .91593E-04   -1.5114    
  14  Prefactor     .10000E-03    81.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.4365        11.571        .15827E-03   -1.5201    
  16  Prefactor     17.891        16.961        .94663E-04   -1.4862    
  17  Prefactor     .10000E-03    22.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    35.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .38919        .71242E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          38.197        6.2295        .64849E-04   -1.4471    
  21  Prefactor     2.6243        3.3802        .17694E-03   -1.5384    
  22  Normalizat    .81616        .17790        .26109E-03   -.99472    
  23  Prefactor     .75588        .15754        .24820E-03   -1.0138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54778e-08
Minuit parameter uncertainties:
  1  25.1336
  2  0.515573
  3  33.9998
  4  3.24191
  5  36.6133
  6  7.60629
  7  6.09681
  8  8.65132
  9  5.25676e-06
  10  16.2374
  11  5.03655
  12  1.52702e-06
  13  3.32914
  14  0.000384002
  15  11.5752
  16  16.9654
  17  6.82214e-06
  18  0.000128003
  19  3.80208e-07
  20  6.22957
  21  3.38047
  22  0.178026
  23  0.157629
Done.

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

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.199e+01  1.624e+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:  7.559e-01  1.576e-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:  8.162e-01  1.780e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/766528/likelihoodResults_593913601_594172801_4FGL_J2321.5-1619_daily_bin1368.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): 0
logL (Free Index) = 7578.64118927
delta logL = 0.0779333067703

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7578.63878429
delta logL = 0.080338279784

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1562       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1833       1.0000          .0000       10.000    
     3 'Normalizat'    .80958       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75766       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=   7578.639     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      315 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1468        18.560        .14038E-03    .25056E-03
   2  Index         2.1835        1.0858        .91271E-02    .93669E-04
   3  Normalizat    .80944        .16909        .26207E-03    .68504E-03
   4  Prefactor     .75808        .15460        .24784E-03    .86554E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.14683
  Index      = 2.18355
  Normalizat = 0.80944
  Prefactor  = 0.758077
 **********
 **   18 **HESSE 
 **********

 FCN=   7578.639     FROM HESSE     STATUS=OK            25 CALLS      340 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1468        15.228        .56153E-05   -1.5137    
   2  Index         2.1835        .89361        .36508E-03   -.59836    
   3  Normalizat    .80944        .16849        .52414E-04   -.99719    
   4  Prefactor     .75808        .15446        .49568E-04   -1.0129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.71702e-10
Minuit parameter uncertainties:
  1  15.2356
  2  0.900725
  3  0.168602
  4  0.154544
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/766528': 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) = 7578.63877643
delta logL = 0.0803461456962

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  8.147e+00  1.524e+01  1.000e-04  1.000e+04 ( 1.000e-14)
352        Index:  2.184e+00  9.007e-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:  7.581e-01  1.545e-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:  8.094e-01  1.686e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.09
Ra Dec: 350.385 -16.318
Photon Index (Free Index): 2.18 +/- 0.90
Photon Flux (Free Index): 1.62e-08 +/- 2.58e-08
Energy Flux (Free Index): 7.52e-06 +/- 1.05e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/766528/cmap_HighResolution_593913601_594172801_4FGL_J2321.5-1619_daily_bin1368.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.49e-03', comment='SUCCESS', energy_flux2='7.52e-06', dlogl='8.03e-02', photon_flux2='1.62e-08', job_status='DONE', time_completed='2021-09-29 12:24:03.619955', photon_index_error2='0.90', photon_index2='2.18', ts='0.93', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='4.72e-08', energy_flux_error2='1.05e-05', EG='0.82', time_epoch_completed='1632943443.62', return_code='0', job_id='766528', GAL2='0.76', EG2='0.81', return_code2='0', photon_flux_error2='2.58e-08', ts2='1.09', photon_index='1.83' WHERE bin_id='1368' AND source_name='4FGL J2321.5-1619' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 12:24:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 766528: <4FGL_J2321.5-1619_daily_bin1368> in cluster <slac> Done

Job <4FGL_J2321.5-1619_daily_bin1368> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 12:10:18 2021
Job was executed on host(s) <bullet0296>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 12:10:20 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:10:20 2021
Terminated at Wed Sep 29 12:24:04 2021
Results reported at Wed Sep 29 12:24:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.5-1619_daily_bin1368 350.385 -16.3176 593913601 594172801 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 :                                   762.43 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             318.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            826 sec.

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

