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


Performing analysis on: 4FGL_J2321.5-1619_daily_bin1014
RA = 350.385, Dec = -16.3176
tmin = 502156801, tmax = 502416001
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='764837', job_status='RUN', time_executed='2021-09-29 12:08:11.957830', time_epoch_executed='1632942491.96' WHERE source_name='4FGL J2321.5-1619' and cadence='daily' and bin_id='1014'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/764837

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/764837/ft1_4FGL_J2321.5-1619_daily_bin1014.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/764837/ft2_4FGL_J2321.5-1619_daily_bin1014.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/764837/ft1_4FGL_J2321.5-1619_daily_bin1014.fits outfile=/scratch/kocevski/764837/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin1014.fits ra=350.385 dec=-16.3176 rad=12.0 tmin=502156801.0 tmax=502416001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.04
user 3.81
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/764837/ft1_filtered_4FGL_J2321.5-1619_daily_bin1014.fits" evtable="EVENTS" scfile=/scratch/kocevski/764837/ft2_4FGL_J2321.5-1619_daily_bin1014.fits sctable="SC_DATA" outfile=/scratch/kocevski/764837/ltcube_502156801_502416001_4FGL_J2321.5-1619_daily_bin1014.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/764837/ft2_4FGL_J2321.5-1619_daily_bin1014.fits
.....................!
real 12.12
user 11.75
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/764837/ft1_filtered_4FGL_J2321.5-1619_daily_bin1014.fits evtable="EVENTS" scfile=/scratch/kocevski/764837/ft2_4FGL_J2321.5-1619_daily_bin1014.fits sctable="SC_DATA" expcube=/scratch/kocevski/764837/ltcube_502156801_502416001_4FGL_J2321.5-1619_daily_bin1014.fits outfile=/scratch/kocevski/764837/expmap_502156801_502416001_4FGL_J2321.5-1619_daily_bin1014.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/764837/ltcube_502156801_502416001_4FGL_J2321.5-1619_daily_bin1014.fits
.....................!
real 190.76
user 185.23
sys 5.18

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/764837/ft1_filtered_4FGL_J2321.5-1619_daily_bin1014.fits scfile=/scratch/kocevski/764837/ft2_4FGL_J2321.5-1619_daily_bin1014.fits outfile=/scratch/kocevski/764837/cmap_502156801_502416001_4FGL_J2321.5-1619_daily_bin1014.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/764837/ft1_filtered_4FGL_J2321.5-1619_daily_bin1014.fits scfile=/scratch/kocevski/764837/ft2_4FGL_J2321.5-1619_daily_bin1014.fits outfile=/scratch/kocevski/764837/cmap_HighResolution_502156801_502416001_4FGL_J2321.5-1619_daily_bin1014.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.51
user 0.36
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/764837/ft1_filtered_4FGL_J2321.5-1619_daily_bin1014.fits evtable="EVENTS" scfile=/scratch/kocevski/764837/ft2_4FGL_J2321.5-1619_daily_bin1014.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/764837/Model_4FGL_J2321.5-1619_daily_bin1014.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/764837/ft1_filtered_4FGL_J2321.5-1619_daily_bin1014.fits.....................!
real 61.11
user 59.80
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    47.805       1.0000         .10000E-03   10000.    
     4 'norm      '    10.073       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3167       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.2531       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.159       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.6037       1.0000         .10000E-03   10000.    
    13 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .63647       1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.166       1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.491       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .50537E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    .29307       1.0000         .10000E-03   10000.    
    20 'norm      '    .10323E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .22136E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .78254       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .98281       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=   7549.069     FROM MIGRAD    STATUS=CONVERGED    655 CALLS     3225 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.4163        .90712E-02** at limit **
   2  norm          .10000E-03    .25134        .21731E-01** at limit **
   3  Prefactor     47.861        38.465        .14499E-02   -.95061E-03
   4  norm          10.066        3.6169        .31563E-02   -.67245E-03
   5  Prefactor     4.3633        119.69        .48473E-02    .24473E-03
   6  Prefactor     .10000E-03    2.5416        .90712E-02** at limit **
   7  Prefactor     4.2566        8.1864        .48844E-02    .23172E-03
   8  Prefactor     .10000E-03    2.0592        .90712E-02** at limit **
   9  Prefactor     .10000E-03    27.966        .90712E-02** at limit **
  10  Prefactor     14.166        18.229        .26611E-02   -.25964E-03
  11  Prefactor     .10000E-03    5.4918        .90712E-02** at limit **
  12  norm          1.6052        3.7966        .83671E-02    .90017E-03
  13  norm          .10000E-03    1.1627        .58672E-01** at limit **
  14  Prefactor     .22211        60.047        .14444       -.92742E-04
  15  Prefactor     23.289        20.379        .20805E-02   -.51393E-03
  16  Prefactor     25.461        24.941        .19836E-02    .19644E-03
  17  Prefactor     .10000E-03    13.321        .90712E-02** at limit **
  18  Prefactor     1.8051        584.49        .95938E-02    .22641E-04
  19  norm          .29331        .37377        .10395E-01    .86948E-03
  20  norm          .10000E-03    2.3974        .38476E-01** at limit **
  21  Prefactor     .10000E-03    3.4726        .53626E-01** at limit **
  22  Normalizat    .78237        .15812        .43382E-01   -.12625E-03
  23  Prefactor     .98270        .14264        .46052E-01   -.11046E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 47.861
  norm       = 10.0663
  Prefactor  = 4.36334
  Prefactor  = 0.0001
  Prefactor  = 4.25664
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.1663
  Prefactor  = 0.0001
  norm       = 1.60516
  norm       = 0.0001
  Prefactor  = 0.222112
  Prefactor  = 23.2886
  Prefactor  = 25.4612
  Prefactor  = 0.0001
  Prefactor  = 1.80511
  norm       = 0.293306
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.782374
  Prefactor  = 0.982697
 **********
 **   18 **HESSE 
 **********

 FCN=   7549.069     FROM HESSE     STATUS=OK           382 CALLS     3607 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.4220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .34895        .84452E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     47.861        41.337        .57995E-04   -1.4323    
   4  norm          10.066        3.9853        .44971E-04   -1.5073    
   5  Prefactor     4.3633        109.08        .19389E-03   -1.5290    
   6  Prefactor     .10000E-03    2.5451        .13527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.2566        8.1631        .19538E-03   -1.5295    
   8  Prefactor     .10000E-03    2.0619        .12176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    28.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.166        18.229        .10645E-03   -1.4955    
  11  Prefactor     .10000E-03    5.5753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.6052        3.7568        .25038E-03   -1.5455    
  13  norm          .10000E-03    8.8700        .17113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .22211        69.903        .13209       -1.5802    
  15  Prefactor     23.289        20.445        .83222E-04   -1.4742    
  16  Prefactor     25.461        24.037        .79342E-04   -1.4698    
  17  Prefactor     .10000E-03    13.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.8051        593.25        .38375E-03   -1.5439    
  19  norm          .29331        .31543        .53022E-03   -1.5600    
  20  norm          .10000E-03    4.4031        .23941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.046        .31156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .78237        .18278        .26195E-03   -1.0073    
  23  Prefactor     .98270        .16773        .22498E-03   -.93309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.18282e-09
Minuit parameter uncertainties:
  1  1.28407e-05
  2  1.22538e-08
  3  41.3614
  4  3.98544
  5  43.7208
  6  4.31598e-07
  7  8.16524
  8  1.20529e-06
  9  1.08141e-05
  10  18.2362
  11  3.12116e-06
  12  3.75733
  13  2.42296e-05
  14  7.88821
  15  20.451
  16  24.046
  17  1.38613e-05
  18  66.1183
  19  0.315433
  20  2.97874e-06
  21  2.11294e-05
  22  0.182922
  23  0.167818
Done.

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

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.417e+01  1.824e+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:  9.827e-01  1.678e-01  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  7.824e-01  1.829e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.02
Ra Dec: 350.385 -16.318
Photon Index (Fixed Index): 1.83 +/- 0.00
Photon Flux (Fixed Index): 1.14e-08 +/- 1.47e-08
Energy Flux (Fixed Index): 1.25e-05 +/- 1.61e-05

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

Saving results to:
/scratch/kocevski/764837/likelihoodResults_502156801_502416001_4FGL_J2321.5-1619_daily_bin1014.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) = 7549.04548899
delta logL = 0.0240047179059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7549.03459598
delta logL = 0.0348977319882

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.225       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0182       1.0000          .0000       10.000    
     3 'Normalizat'    .77931       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98389       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=   7549.035     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      255 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.224        21.059        .11958E-03    .29682E-03
   2  Index         2.0182        .80842        .85569E-02    .13257E-03
   3  Normalizat    .77932        .17165        .26240E-03   -.21836E-04
   4  Prefactor     .98388        .16425        .22484E-03   -.20011E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.2242
  Index      = 2.01824
  Normalizat = 0.77932
  Prefactor  = 0.983877
 **********
 **   18 **HESSE 
 **********

 FCN=   7549.035     FROM HESSE     STATUS=OK            25 CALLS      280 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.224        18.934        .47831E-05   -1.5038    
   2  Index         2.0182        .72777        .34227E-03   -.63895    
   3  Normalizat    .77932        .17162        .10496E-04   -1.0084    
   4  Prefactor     .98388        .16430        .44969E-04   -.93269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.31604e-10
Minuit parameter uncertainties:
  1  18.9444
  2  0.731821
  3  0.171741
  4  0.164384
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/764837': 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) = 7549.03459598
delta logL = 0.0348977354533

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.122e+01  1.894e+01  1.000e-04  1.000e+04 ( 1.000e-14)
352        Index:  2.018e+00  7.318e-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.839e-01  1.644e-01  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  7.793e-01  1.717e-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.02 +/- 0.73
Photon Flux (Free Index): 1.44e-08 +/- 2.07e-08
Energy Flux (Free Index): 9.54e-06 +/- 1.53e-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/764837/cmap_HighResolution_502156801_502416001_4FGL_J2321.5-1619_daily_bin1014.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.77e-03', comment='SUCCESS', photon_flux='1.14e-08', energy_flux2='9.54e-06', photon_flux_error='1.47e-08', dlogl='3.49e-02', energy_flux='1.25e-05', photon_flux2='1.44e-08', job_status='DONE', time_completed='2021-09-29 12:22:05.449467', photon_index_error2='0.73', photon_index2='2.02', ts='1.02', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='5.10e-08', energy_flux_error2='1.53e-05', EG='0.78', time_epoch_completed='1632943325.45', return_code='0', job_id='764837', GAL2='0.98', EG2='0.78', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='2.07e-08', ts2='1.10', photon_index='1.83' WHERE bin_id='1014' AND source_name='4FGL J2321.5-1619' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 12:22:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 764837: <4FGL_J2321.5-1619_daily_bin1014> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.5-1619_daily_bin1014 350.385 -16.3176 502156801 502416001 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 :                                   758.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            990 sec.

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

