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


Performing analysis on: 4FGL_J2321.5-1619_daily_bin1006
RA = 350.385, Dec = -16.3176
tmin = 500083201, tmax = 500342401
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='764824', job_status='RUN', time_executed='2021-09-29 12:05:45.241818', time_epoch_executed='1632942345.24' WHERE source_name='4FGL J2321.5-1619' and cadence='daily' and bin_id='1006'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/764824

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/764824/ft1_4FGL_J2321.5-1619_daily_bin1006.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/764824/ft2_4FGL_J2321.5-1619_daily_bin1006.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/764824/ft1_4FGL_J2321.5-1619_daily_bin1006.fits outfile=/scratch/kocevski/764824/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin1006.fits ra=350.385 dec=-16.3176 rad=12.0 tmin=500083201.0 tmax=500342401.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 5.68
user 5.38
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/764824/ft2_4FGL_J2321.5-1619_daily_bin1006.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/764824/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin1006.fits evtable="EVENTS" outfile="/scratch/kocevski/764824/ft1_filtered_4FGL_J2321.5-1619_daily_bin1006.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.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/764824/ft1_filtered_4FGL_J2321.5-1619_daily_bin1006.fits" evtable="EVENTS" scfile=/scratch/kocevski/764824/ft2_4FGL_J2321.5-1619_daily_bin1006.fits sctable="SC_DATA" outfile=/scratch/kocevski/764824/ltcube_500083201_500342401_4FGL_J2321.5-1619_daily_bin1006.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/764824/ft2_4FGL_J2321.5-1619_daily_bin1006.fits
.....................!
real 11.79
user 11.39
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/764824/ft1_filtered_4FGL_J2321.5-1619_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/764824/ft2_4FGL_J2321.5-1619_daily_bin1006.fits sctable="SC_DATA" expcube=/scratch/kocevski/764824/ltcube_500083201_500342401_4FGL_J2321.5-1619_daily_bin1006.fits outfile=/scratch/kocevski/764824/expmap_500083201_500342401_4FGL_J2321.5-1619_daily_bin1006.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/764824/ltcube_500083201_500342401_4FGL_J2321.5-1619_daily_bin1006.fits
.....................!
real 190.28
user 185.08
sys 4.80

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/764824/ft1_filtered_4FGL_J2321.5-1619_daily_bin1006.fits scfile=/scratch/kocevski/764824/ft2_4FGL_J2321.5-1619_daily_bin1006.fits outfile=/scratch/kocevski/764824/cmap_500083201_500342401_4FGL_J2321.5-1619_daily_bin1006.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/764824/ft1_filtered_4FGL_J2321.5-1619_daily_bin1006.fits scfile=/scratch/kocevski/764824/ft2_4FGL_J2321.5-1619_daily_bin1006.fits outfile=/scratch/kocevski/764824/cmap_HighResolution_500083201_500342401_4FGL_J2321.5-1619_daily_bin1006.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/764824/ft1_filtered_4FGL_J2321.5-1619_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/764824/ft2_4FGL_J2321.5-1619_daily_bin1006.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/764824/Model_4FGL_J2321.5-1619_daily_bin1006.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/764824/ft1_filtered_4FGL_J2321.5-1619_daily_bin1006.fits......................!
real 32.70
user 31.43
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.2626       1.0000         .10000E-03   10000.    
     3 'Prefactor '    147.41       1.0000         .10000E-03   10000.    
     4 'norm      '    3.0572       1.0000         .10000E-03   10000.    
     5 'Prefactor '    133.00       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.406       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    102.67       1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.774       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.970       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.5954       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    50.240       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .17660       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.440       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .93200       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .82254       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=   2511.879     FROM MIGRAD    STATUS=CONVERGED    508 CALLS     3223 TOTAL
                     EDM=   .29E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    26.511       -.94224E-07** at limit **
   2  norm          1.2623        1.3269        .73964E-07   -.14641E-04
   3  Prefactor     147.47        94.250       -.36016E-05   -.29006E-05
   4  norm          3.0533        6.3645        .21878E-05    .20398E-04
   5  Prefactor     133.01        95.903       -.11281E-05   -.54650E-05
   6  Prefactor     .10000E-03    47.607       -.30784E-06** at limit **
   7  Prefactor     27.405        35.536       -.47379E-07   -.11694E-04
   8  Prefactor     .10000E-03    14.673        .15370E-08** at limit **
   9  Prefactor     102.66        100.34       -.96244E-07   -.10332E-04
  10  Prefactor     29.773        41.583       -.13786E-07   -.44350E-05
  11  Prefactor     10.970        16.452        .29162E-06   -.15175E-04
  12  norm          .10000E-03    4.5093       -.33441E-07** at limit **
  13  norm          1.5940        13.803        .26235E-05   -.41914E-04
  14  Prefactor     .10000E-03    36.180        .35526E-06** at limit **
  15  Prefactor     .10000E-03    12.875       -.48345E-07** at limit **
  16  Prefactor     50.260        83.770       -.17209E-05   -.76881E-05
  17  Prefactor     .10000E-03    220.93        .86305E-05** at limit **
  18  Prefactor     .10000E-03    330.58       -.14303E-04** at limit **
  19  norm          .17651        .91816        .34368E-06   -.91521E-04
  20  norm          .10000E-03    6.8266       -.15017E-06** at limit **
  21  Prefactor     13.441        16.890        .35538E-06   -.24217E-04
  22  Normalizat    .93155        .34162       -.21248E-05   -.13645E-04
  23  Prefactor     .82295        .27639        .65358E-06   -.75382E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.26235
  Prefactor  = 147.466
  norm       = 3.05335
  Prefactor  = 133.011
  Prefactor  = 0.0001
  Prefactor  = 27.4055
  Prefactor  = 0.0001
  Prefactor  = 102.66
  Prefactor  = 29.7726
  Prefactor  = 10.9704
  norm       = 0.0001
  norm       = 1.594
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.2603
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.17651
  norm       = 0.0001
  Prefactor  = 13.4415
  Normalizat = 0.931554
  Prefactor  = 0.822947
 **********
 **   18 **HESSE 
 **********

 FCN=   2511.879     FROM HESSE     STATUS=OK           368 CALLS     3591 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    26.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2623        1.3164        .56277E-04   -1.5483    
   3  Prefactor     147.47        93.356        .33191E-04   -1.3273    
   4  norm          3.0533        6.3057        .84648E-04   -1.5358    
   5  Prefactor     133.01        96.098        .34918E-04   -1.3396    
   6  Prefactor     .10000E-03    48.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     27.405        35.545        .76525E-04   -1.4660    
   8  Prefactor     .10000E-03    14.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     102.66        100.35        .39681E-04   -1.3678    
  10  Prefactor     29.773        41.584        .73426E-04   -1.4616    
  11  Prefactor     10.970        16.437        .12096E-03   -1.5045    
  12  norm          .10000E-03    4.5138        .10391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.5940        13.112        .30417E-03   -1.5455    
  14  Prefactor     .10000E-03    36.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.879        .17566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     50.260        82.276        .56578E-04   -1.4289    
  17  Prefactor     .10000E-03    222.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    333.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .17651        .91004        .90600E-04   -1.5624    
  20  norm          .10000E-03    6.8525        .12736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.441        16.950        .10926E-03   -1.4975    
  22  Normalizat    .93155        .40668        .31196E-03   -.95360    
  23  Prefactor     .82295        .33066        .27864E-03   -.98888    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.50559e-11
Minuit parameter uncertainties:
  1  1.73277e-07
  2  1.31639
  3  93.4496
  4  6.30705
  5  96.2109
  6  1.83462e-05
  7  35.5721
  8  7.11695e-06
  9  100.521
  10  41.6249
  11  16.4436
  12  4.56707e-07
  13  9.14587
  14  6.98482e-06
  15  1.08775e-06
  16  82.4629
  17  0.000598398
  18  0.00100278
  19  0.801369
  20  1.60869e-05
  21  16.9556
  22  0.408033
  23  0.331459
Done.

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

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  2.977e+01  4.162e+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:  8.229e-01  3.315e-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:  9.316e-01  4.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.04
Ra Dec: 350.385 -16.318
Photon Index (Fixed Index): 1.83 +/- 0.00
Photon Flux (Fixed Index): 2.39e-08 +/- 3.35e-08
Energy Flux (Fixed Index): 2.63e-05 +/- 3.67e-05

TS (Fixed Index): 1.04
Ra Dec: 350.385 -16.318
Photon Flux Upper Limit: 1.39e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/764824/likelihoodResults_500083201_500342401_4FGL_J2321.5-1619_daily_bin1006.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) = 2511.84635706
delta logL = 0.0323125935734

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2511.84586609
delta logL = 0.0328035619705

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.368       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0955       1.0000          .0000       10.000    
     3 'Normalizat'    .92445       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82506       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=   2511.846     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      284 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.344        49.802        .86649E-04    .70102E-03
   2  Index         2.0945        1.1666        .67880E-02    .28059E-03
   3  Normalizat    .92439        .38454        .31301E-03   -.71538E-03
   4  Prefactor     .82550        .32555        .27800E-03   -.97790E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.3439
  Index      = 2.09452
  Normalizat = 0.92439
  Prefactor  = 0.825502
 **********
 **   18 **HESSE 
 **********

 FCN=   2511.846     FROM HESSE     STATUS=OK            23 CALLS      307 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.344        45.174        .17330E-04   -1.4784    
   2  Index         2.0945        1.0602        .27152E-03   -.62007    
   3  Normalizat    .92439        .38437        .62601E-04   -.95608    
   4  Prefactor     .82550        .32565        .55599E-04   -.98795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.09032e-09
Minuit parameter uncertainties:
  1  45.2462
  2  1.07257
  3  0.385517
  4  0.326415
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/764824': 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) = 2511.84586101
delta logL = 0.0328086359382

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  2.134e+01  4.525e+01  1.000e-04  1.000e+04 ( 1.000e-14)
352        Index:  2.095e+00  1.073e+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:  8.255e-01  3.264e-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:  9.244e-01  3.855e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.10
Ra Dec: 350.385 -16.318
Photon Index (Free Index): 2.09 +/- 1.07
Photon Flux (Free Index): 3.35e-08 +/- 6.07e-08
Energy Flux (Free Index): 1.86e-05 +/- 3.27e-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/764824/cmap_HighResolution_500083201_500342401_4FGL_J2321.5-1619_daily_bin1006.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', comment='SUCCESS', photon_flux='2.39e-08', energy_flux2='1.86e-05', photon_flux_error='3.35e-08', dlogl='3.28e-02', energy_flux='2.63e-05', photon_flux2='3.35e-08', job_status='DONE', time_completed='2021-09-29 12:13:31.761310', photon_index_error2='1.07', photon_index2='2.09', ts='1.04', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.39e-07', energy_flux_error2='3.27e-05', EG='0.93', time_epoch_completed='1632942811.76', return_code='0', job_id='764824', GAL2='0.83', EG2='0.92', return_code2='0', energy_flux_error='3.67e-05', photon_flux_error2='6.07e-08', ts2='1.10', photon_index='1.83' WHERE bin_id='1006' AND source_name='4FGL J2321.5-1619' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 12:13:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 764824: <4FGL_J2321.5-1619_daily_bin1006> in cluster <slac> Done

Job <4FGL_J2321.5-1619_daily_bin1006> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 12:05:35 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 12:05:36 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:36 2021
Terminated at Wed Sep 29 12:13:32 2021
Results reported at Wed Sep 29 12:13:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.5-1619_daily_bin1006 350.385 -16.3176 500083201 500342401 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 :                                   458.08 sec.
    Max Memory :                                 1183 MB
    Average Memory :                             282.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   475 sec.
    Turnaround time :                            477 sec.

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

