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


Performing analysis on: 4FGL_J2321.5-1619_daily_bin1445
RA = 350.385, Dec = -16.3176
tmin = 613872001, tmax = 614131201
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='766661', job_status='RUN', time_executed='2021-09-29 12:12:06.052104', time_epoch_executed='1632942726.05' WHERE source_name='4FGL J2321.5-1619' and cadence='daily' and bin_id='1445'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/766661

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/766661/ft1_4FGL_J2321.5-1619_daily_bin1445.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/766661/ft2_4FGL_J2321.5-1619_daily_bin1445.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/766661/ft1_4FGL_J2321.5-1619_daily_bin1445.fits outfile=/scratch/kocevski/766661/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin1445.fits ra=350.385 dec=-16.3176 rad=12.0 tmin=613872001.0 tmax=614131201.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 2.26
user 2.05
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/766661/ft2_4FGL_J2321.5-1619_daily_bin1445.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/766661/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin1445.fits evtable="EVENTS" outfile="/scratch/kocevski/766661/ft1_filtered_4FGL_J2321.5-1619_daily_bin1445.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/766661/ft1_filtered_4FGL_J2321.5-1619_daily_bin1445.fits" evtable="EVENTS" scfile=/scratch/kocevski/766661/ft2_4FGL_J2321.5-1619_daily_bin1445.fits sctable="SC_DATA" outfile=/scratch/kocevski/766661/ltcube_613872001_614131201_4FGL_J2321.5-1619_daily_bin1445.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/766661/ft2_4FGL_J2321.5-1619_daily_bin1445.fits
.....................!
real 12.35
user 11.86
sys 0.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/766661/ft1_filtered_4FGL_J2321.5-1619_daily_bin1445.fits evtable="EVENTS" scfile=/scratch/kocevski/766661/ft2_4FGL_J2321.5-1619_daily_bin1445.fits sctable="SC_DATA" expcube=/scratch/kocevski/766661/ltcube_613872001_614131201_4FGL_J2321.5-1619_daily_bin1445.fits outfile=/scratch/kocevski/766661/expmap_613872001_614131201_4FGL_J2321.5-1619_daily_bin1445.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/766661/ltcube_613872001_614131201_4FGL_J2321.5-1619_daily_bin1445.fits
.....................!
real 190.94
user 185.64
sys 4.99

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/766661/ft1_filtered_4FGL_J2321.5-1619_daily_bin1445.fits scfile=/scratch/kocevski/766661/ft2_4FGL_J2321.5-1619_daily_bin1445.fits outfile=/scratch/kocevski/766661/cmap_613872001_614131201_4FGL_J2321.5-1619_daily_bin1445.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/766661/ft1_filtered_4FGL_J2321.5-1619_daily_bin1445.fits scfile=/scratch/kocevski/766661/ft2_4FGL_J2321.5-1619_daily_bin1445.fits outfile=/scratch/kocevski/766661/cmap_HighResolution_613872001_614131201_4FGL_J2321.5-1619_daily_bin1445.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=350.385 yref=-16.3176 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/766661/ft1_filtered_4FGL_J2321.5-1619_daily_bin1445.fits evtable="EVENTS" scfile=/scratch/kocevski/766661/ft2_4FGL_J2321.5-1619_daily_bin1445.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/766661/Model_4FGL_J2321.5-1619_daily_bin1445.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/766661/ft1_filtered_4FGL_J2321.5-1619_daily_bin1445.fits.....................!
real 50.75
user 49.41
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.5777       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .31513E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    2.4882       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.8270       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.2373       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.8617       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.645       1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.411       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .24076E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.7407       1.0000         .10000E-03   10000.    
    14 'Prefactor '    122.44       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.834       1.0000         .10000E-03   10000.    
    17 'Prefactor '    77.500       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10996E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    20.475       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.1060       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2799       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .52887       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=   5883.535     FROM MIGRAD    STATUS=CONVERGED    921 CALLS     3027 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    14.561        .18142E-02** at limit **
   2  norm          1.5777        .90084        .52900E-04    .85535E-04
   3  Prefactor     .10000E-03    63.883        .63839E-01** at limit **
   4  norm          2.4889        1.9815        .50861E-04   -.33529E-03
   5  Prefactor     7.8322        30.422        .14333E-03   -.84079E-05
   6  Prefactor     5.2401        9.8739        .87822E-03    .51781E-04
   7  Prefactor     8.8617        9.6471        .13465E-03    .11652E-04
   8  Prefactor     11.649        13.783        .11739E-03    .39706E-05
   9  Prefactor     29.456        49.211        .73877E-04    .10914E-03
  10  Prefactor     .10000E-03    29.858        .18142E-02** at limit **
  11  Prefactor     .10000E-03    12.124        .36285E-03** at limit **
  12  norm          .10000E-03    7.5561        .26213E-02** at limit **
  13  norm          6.7399        3.5590        .98570E-04    .85118E-04
  14  Prefactor     122.43        59.747        .36373E-04   -.70638E-05
  15  Prefactor     .10000E-03    13.505        .18142E-02** at limit **
  16  Prefactor     13.837        31.029        .10769E-03    .61231E-04
  17  Prefactor     77.504        53.038        .45615E-04    .46656E-04
  18  Prefactor     .10000E-03    248.56        .18142E-02** at limit **
  19  norm          .10000E-03    .15083        .57380E-04** at limit **
  20  norm          20.473        5.6199        .88516E-04    .12754E-03
  21  Prefactor     4.1052        4.7461        .17413E-03    .65289E-05
  22  Normalizat    1.2802        .24087        .22907E-03    .50606E-03
  23  Prefactor     .52864        .19662        .29531E-03    .20073E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.57771
  Prefactor  = 0.000100001
  norm       = 2.48892
  Prefactor  = 7.83222
  Prefactor  = 5.2401
  Prefactor  = 8.8617
  Prefactor  = 11.6492
  Prefactor  = 29.4562
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.7399
  Prefactor  = 122.434
  Prefactor  = 0.0001
  Prefactor  = 13.8365
  Prefactor  = 77.5039
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 20.4733
  Prefactor  = 4.10525
  Normalizat = 1.28016
  Prefactor  = 0.528637
 **********
 **   18 **HESSE 
 **********

 FCN=   5883.535     FROM HESSE     STATUS=OK           358 CALLS     3385 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    14.561        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.5777        .90081        .21160E-05   -1.5457    
   3  Prefactor     .10000E-03    42.599        .75505E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.4889        1.8825        .20344E-05   -1.5392    
   5  Prefactor     7.8322        30.358        .57331E-05   -1.5148    
   6  Prefactor     5.2401        9.8694        .35129E-04   -1.5250    
   7  Prefactor     8.8617        9.6469        .53858E-05   -1.5113    
   8  Prefactor     11.649        13.783        .46957E-05   -1.5025    
   9  Prefactor     29.456        49.202        .14775E-04   -1.4622    
  10  Prefactor     .10000E-03    29.865        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.124        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    7.6074        .52426E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.7399        3.5588        .39428E-05   -1.5189    
  14  Prefactor     122.43        59.747        .72746E-05   -1.3490    
  15  Prefactor     .10000E-03    13.506        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.837        31.024        .43075E-05   -1.4964    
  17  Prefactor     77.504        53.037        .91230E-05   -1.3945    
  18  Prefactor     .10000E-03    248.62        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .15083        .11476E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          20.473        5.6200        .35407E-05   -1.4803    
  21  Prefactor     4.1052        4.7461        .69652E-05   -1.5303    
  22  Normalizat    1.2802        .24105        .45815E-04   -.84160    
  23  Prefactor     .52864        .19677        .11812E-04   -1.1068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.49005e-10
Minuit parameter uncertainties:
  1  1.44779e-05
  2  0.900813
  3  0.000453764
  4  1.88255
  5  30.4177
  6  9.87246
  7  9.64855
  8  13.7866
  9  49.2696
  10  9.49114e-05
  11  4.23974e-06
  12  9.01412e-05
  13  3.55891
  14  59.7767
  15  4.14394e-05
  16  31.0603
  17  53.0697
  18  0.000896698
  19  6.4257e-07
  20  5.62016
  21  4.7465
  22  0.241261
  23  0.197022
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  5.286e-01  1.970e-01  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  1.280e+00  2.413e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/766661/likelihoodResults_613872001_614131201_4FGL_J2321.5-1619_daily_bin1445.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5883.53471661
delta logL = -0.000159531989993

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5883.27220542
delta logL = 0.262351658101

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36392       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5270       1.0000          .0000       10.000    
     3 'Normalizat'    1.2357       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54950       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=   5883.272     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      287 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35624        8.4529        .10702E-01    .18221E-02
   2  Index         3.5332        2.1192        .90173E-01    .19640E-03
   3  Normalizat    1.2356        .33091E-01    .52558E-01    .39354E-05
   4  Prefactor     .54960        .28720E-01    .65506E-01    .28203E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.356242
  Index      = 3.53321
  Normalizat = 1.23558
  Prefactor  = 0.549602
 **********
 **   18 **HESSE 
 **********

 FCN=   5883.272     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      320 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .35624        35.263        .63270E-04   -1.5589    
   2  Index         3.5332        6.7633        .49971E-02   -.29774    
   3  Normalizat    1.2356        .17123        .23238E-03   -.85510    
   4  Prefactor     .54960        .14723        .28990E-03   -1.0975    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.43848e-09
Minuit parameter uncertainties:
  1  7.09194
  2  6.33053
  3  0.171303
  4  0.147336
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/766661': 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) = 5883.27220097
delta logL = 0.262356108668

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  5.496e-01  1.473e-01  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  1.236e+00  1.713e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 350.385 -16.318

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/766661/cmap_HighResolution_613872001_614131201_4FGL_J2321.5-1619_daily_bin1445.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.04e-03', job_status='DONE', photon_flux_upper_limit='5.46e-08', time_completed='2021-09-29 12:22:54.142668', job_id='766661', GAL2='0.55', fit_tolerance='1e-08', EG2='1.24', EG='1.28', time_epoch_completed='1632943374.14', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.53', dlogl='2.62e-01', ts2='0.55', photon_index_error='0.00', photon_index='1.83' WHERE bin_id='1445' AND source_name='4FGL J2321.5-1619' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 12:22:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 766661: <4FGL_J2321.5-1619_daily_bin1445> in cluster <slac> Done

Job <4FGL_J2321.5-1619_daily_bin1445> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 12:10:30 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 12:10:31 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:31 2021
Terminated at Wed Sep 29 12:22:54 2021
Results reported at Wed Sep 29 12:22:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.5-1619_daily_bin1445 350.385 -16.3176 613872001 614131201 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 :                                   625.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             285.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   743 sec.
    Turnaround time :                            744 sec.

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

