/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 44 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7693
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2321.5-1619_daily_bin1630
RA = 350.385, Dec = -16.3176
tmin = 661824001, tmax = 662083201
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='500098', job_status='RUN', time_executed='2021-12-25 01:02:14.662663', time_epoch_executed='1640422934.66' WHERE source_name='4FGL J2321.5-1619' and cadence='daily' and bin_id='1630'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/500098

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/500098/ft1_4FGL_J2321.5-1619_daily_bin1630.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/500098/ft2_4FGL_J2321.5-1619_daily_bin1630.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/500098/ft1_4FGL_J2321.5-1619_daily_bin1630.fits outfile=/scratch/kocevski/500098/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin1630.fits ra=350.385 dec=-16.3176 rad=12.0 tmin=661824001.0 tmax=662083201.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.67
user 4.40
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/500098/ft1_filtered_4FGL_J2321.5-1619_daily_bin1630.fits" evtable="EVENTS" scfile=/scratch/kocevski/500098/ft2_4FGL_J2321.5-1619_daily_bin1630.fits sctable="SC_DATA" outfile=/scratch/kocevski/500098/ltcube_661824001_662083201_4FGL_J2321.5-1619_daily_bin1630.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/500098/ft2_4FGL_J2321.5-1619_daily_bin1630.fits
.....................!
real 14.21
user 13.80
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/500098/ft1_filtered_4FGL_J2321.5-1619_daily_bin1630.fits evtable="EVENTS" scfile=/scratch/kocevski/500098/ft2_4FGL_J2321.5-1619_daily_bin1630.fits sctable="SC_DATA" expcube=/scratch/kocevski/500098/ltcube_661824001_662083201_4FGL_J2321.5-1619_daily_bin1630.fits outfile=/scratch/kocevski/500098/expmap_661824001_662083201_4FGL_J2321.5-1619_daily_bin1630.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/500098/ltcube_661824001_662083201_4FGL_J2321.5-1619_daily_bin1630.fits
.....................!
real 193.41
user 187.16
sys 5.62

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/500098/ft1_filtered_4FGL_J2321.5-1619_daily_bin1630.fits scfile=/scratch/kocevski/500098/ft2_4FGL_J2321.5-1619_daily_bin1630.fits outfile=/scratch/kocevski/500098/cmap_661824001_662083201_4FGL_J2321.5-1619_daily_bin1630.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.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/500098/ft1_filtered_4FGL_J2321.5-1619_daily_bin1630.fits scfile=/scratch/kocevski/500098/ft2_4FGL_J2321.5-1619_daily_bin1630.fits outfile=/scratch/kocevski/500098/cmap_HighResolution_661824001_662083201_4FGL_J2321.5-1619_daily_bin1630.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.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/500098/ft1_filtered_4FGL_J2321.5-1619_daily_bin1630.fits evtable="EVENTS" scfile=/scratch/kocevski/500098/ft2_4FGL_J2321.5-1619_daily_bin1630.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/500098/Model_4FGL_J2321.5-1619_daily_bin1630.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/500098/ft1_filtered_4FGL_J2321.5-1619_daily_bin1630.fits....................!
real 54.28
user 52.76
sys 1.39

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10110E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.8444       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .26407E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    2.0820       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0158       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.601       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.5338       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5314       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10539E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9399       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .46315       1.0000         .10000E-03   10000.    
    13 'norm      '    9.3981       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.371       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    12.871       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .90094       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .79690       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=   6685.458     FROM MIGRAD    STATUS=CONVERGED    909 CALLS     2954 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.8648        .18142E-02** at limit **
   2  norm          1.8446        .91850        .53386E-04    .36309E-03
   3  Prefactor     .10056E-03    64.609        .40446E-02** at limit **
   4  norm          2.0849        1.5533        .50250E-04    .11830E-02
   5  Prefactor     .90948        413.78        .59357E-02    .91845E-04
   6  Prefactor     17.591        11.538        .95466E-04   -.28192E-03
   7  Prefactor     7.5314        9.9329        .73055E-03   -.32543E-03
   8  Prefactor     4.5312        6.6932        .94561E-03   -.52667E-03
   9  Prefactor     .10000E-03    13.463        .18142E-02** at limit **
  10  Prefactor     4.9359        16.062        .18095E-03   -.14054E-03
  11  Prefactor     .10000E-03    2.4937        .12570E-02** at limit **
  12  norm          .46391        2.6191        .26126E-03   -.72671E-04
  13  norm          9.3978        3.2876        .83124E-04   -.51274E-03
  14  Prefactor     .10000E-03    97.608        .18142E-02** at limit **
  15  Prefactor     .10000E-03    6.9670        .18142E-02** at limit **
  16  Prefactor     .10000E-03    5.9061        .18142E-02** at limit **
  17  Prefactor     16.323        24.782        .98989E-04   -.36177E-04
  18  Prefactor     .10000E-03    20.230        .18142E-02** at limit **
  19  norm          .10000E-03    .15353        .57472E-03** at limit **
  20  norm          12.869        3.8318        .83580E-04   -.51862E-03
  21  Prefactor     .10000E-03    1.2550        .89374E-03** at limit **
  22  Normalizat    .90117        .18590        .23376E-03   -.50928E-03
  23  Prefactor     .79669        .16979        .23062E-03   -.43475E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.84463
  Prefactor  = 0.000100563
  norm       = 2.08486
  Prefactor  = 0.909479
  Prefactor  = 17.5908
  Prefactor  = 7.53139
  Prefactor  = 4.53116
  Prefactor  = 0.0001
  Prefactor  = 4.93594
  Prefactor  = 0.0001
  norm       = 0.463912
  norm       = 9.39782
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.3235
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.8693
  Prefactor  = 0.0001
  Normalizat = 0.901173
  Prefactor  = 0.796691
 **********
 **   18 **HESSE 
 **********

 FCN=   6685.458     FROM HESSE     STATUS=OK           348 CALLS     3302 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.8650        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.8446        .91822        .21354E-05   -1.5436    
   3  Prefactor     .10056E-03    64.737        .80891E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.0849        1.2969        .20100E-05   -1.5419    
   5  Prefactor     .90948        286.85        .23743E-03   -1.5517    
   6  Prefactor     17.591        11.385        .19093E-04   -1.4869    
   7  Prefactor     7.5314        9.9114        .29222E-04   -1.5159    
   8  Prefactor     4.5312        6.6913        .37824E-04   -1.5282    
   9  Prefactor     .10000E-03    13.464        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.9359        16.061        .72382E-05   -1.5264    
  11  Prefactor     .10000E-03    2.4939        .25139E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .46391        2.6187        .10450E-04   -1.5572    
  13  norm          9.3978        3.2855        .33250E-05   -1.5095    
  14  Prefactor     .10000E-03    97.649        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.9685        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.9063        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.323        24.775        .39596E-05   -1.4900    
  18  Prefactor     .10000E-03    20.230        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .15357        .11494E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          12.869        3.8298        .16716E-04   -1.4990    
  21  Prefactor     .10000E-03    1.2550        .17875E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .90117        .18399        .46751E-04   -.96419    
  23  Prefactor     .79669        .16939        .46123E-04   -.99850    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.79125e-09
Minuit parameter uncertainties:
  1  4.85033e-06
  2  0.918224
  3  0.0120822
  4  1.29692
  5  32.4598
  6  11.3865
  7  9.91357
  8  6.69237
  9  1.04589e-05
  10  16.0746
  11  6.57794e-06
  12  2.20429
  13  3.28554
  14  0.00081637
  15  5.23216e-05
  16  4.7938e-06
  17  24.7905
  18  1.51177e-06
  19  7.56922e-07
  20  3.82983
  21  7.57128e-07
  22  0.184119
  23  0.169504
Done.

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

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  4.936e+00  1.607e+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.967e-01  1.695e-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.012e-01  1.841e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/500098/likelihoodResults_661824001_662083201_4FGL_J2321.5-1619_daily_bin1630.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) = 6684.84621359
delta logL = 0.611509765346

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6684.70948577
delta logL = 0.748237585975

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13966E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    5.9701       1.0000          .0000       10.000    
     3 'Normalizat'    .82845       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84513       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=   6684.709     FROM MIGRAD    STATUS=CONVERGED    216 CALLS      573 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12425E-03    .33684E-02    .25851E-03** at limit **
   2  Index         6.0032        1.3649        .92795E-01    .14336E-03
   3  Normalizat    .82860        .28229E-01    .43981E-01   -.86185E-04
   4  Prefactor     .84507        .26454E-01    .44302E-01   -.12495E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000124252
  Index      = 6.00323
  Normalizat = 0.828605
  Prefactor  = 0.845074
 **********
 **   18 **HESSE 
 **********

 FCN=   6684.709     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      608 TOTAL
                     EDM=   .40E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12425E-03    .24627E-01    .13019E-04   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.0032        3.3108        .31678E-02    .20202    
   3  Normalizat    .82860        .12245        .24275E-03   -.99016    
   4  Prefactor     .84507        .11109        .22462E-03   -.98088    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.99516e-06
Minuit parameter uncertainties:
  1  0.00154564
  2  3.63548
  3  0.122494
  4  0.111116
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/500098': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6684.70946624
delta logL = 0.748257120282

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.243e-04  1.546e-03  1.000e-04  1.000e+04 ( 1.000e-14)
352        Index:  6.003e+00  3.635e+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.451e-01  1.111e-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.286e-01  1.225e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.74
Ra Dec: 350.385 -16.318
Photon Index (Free Index): 6.00 +/- 3.64
Photon Flux (Free Index): 4.69e-08 +/- 3.98e-08
Energy Flux (Free Index): 5.84e-06 +/- 5.33e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/500098/cmap_HighResolution_661824001_662083201_4FGL_J2321.5-1619_daily_bin1630.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.44e-03', comment='SUCCESS', energy_flux2='5.84e-06', dlogl='7.48e-01', photon_flux2='4.69e-08', job_status='DONE', time_completed='2021-12-25 01:14:13.932937', photon_index_error2='3.64', photon_index2='6.00', ts='0.12', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='4.66e-08', energy_flux_error2='5.33e-06', EG='0.90', time_epoch_completed='1640423653.93', return_code='0', job_id='500098', GAL2='0.85', EG2='0.83', return_code2='102', photon_flux_error2='3.98e-08', ts2='1.74', photon_index='1.83' WHERE bin_id='1630' AND source_name='4FGL J2321.5-1619' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 25 01:14:13 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 500098: <4FGL_J2321.5-1619_daily_bin1630> in cluster <slac> Done

Job <4FGL_J2321.5-1619_daily_bin1630> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Dec 25 01:00:21 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 25 01:01:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 25 01:01:19 2021
Terminated at Sat Dec 25 01:14:14 2021
Results reported at Sat Dec 25 01:14:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.5-1619_daily_bin1630 350.385 -16.3176 661824001 662083201 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 :                                   720.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            833 sec.

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

