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


Performing analysis on: 4FGL_J2321.5-1619_daily_bin1280
RA = 350.385, Dec = -16.3176
tmin = 571104001, tmax = 571363201
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='765240', job_status='RUN', time_executed='2021-09-29 12:06:55.662698', time_epoch_executed='1632942415.66' WHERE source_name='4FGL J2321.5-1619' and cadence='daily' and bin_id='1280'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/765240

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/765240/ft1_4FGL_J2321.5-1619_daily_bin1280.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/765240/ft2_4FGL_J2321.5-1619_daily_bin1280.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/765240/ft1_4FGL_J2321.5-1619_daily_bin1280.fits outfile=/scratch/kocevski/765240/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin1280.fits ra=350.385 dec=-16.3176 rad=12.0 tmin=571104001.0 tmax=571363201.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.98
user 2.78
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/765240/ft1_filtered_4FGL_J2321.5-1619_daily_bin1280.fits" evtable="EVENTS" scfile=/scratch/kocevski/765240/ft2_4FGL_J2321.5-1619_daily_bin1280.fits sctable="SC_DATA" outfile=/scratch/kocevski/765240/ltcube_571104001_571363201_4FGL_J2321.5-1619_daily_bin1280.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/765240/ft2_4FGL_J2321.5-1619_daily_bin1280.fits
.....................!
real 12.11
user 11.66
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/765240/ft1_filtered_4FGL_J2321.5-1619_daily_bin1280.fits evtable="EVENTS" scfile=/scratch/kocevski/765240/ft2_4FGL_J2321.5-1619_daily_bin1280.fits sctable="SC_DATA" expcube=/scratch/kocevski/765240/ltcube_571104001_571363201_4FGL_J2321.5-1619_daily_bin1280.fits outfile=/scratch/kocevski/765240/expmap_571104001_571363201_4FGL_J2321.5-1619_daily_bin1280.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/765240/ltcube_571104001_571363201_4FGL_J2321.5-1619_daily_bin1280.fits
.....................!
real 192.28
user 187.03
sys 4.92

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/765240/ft1_filtered_4FGL_J2321.5-1619_daily_bin1280.fits scfile=/scratch/kocevski/765240/ft2_4FGL_J2321.5-1619_daily_bin1280.fits outfile=/scratch/kocevski/765240/cmap_571104001_571363201_4FGL_J2321.5-1619_daily_bin1280.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/765240/ft1_filtered_4FGL_J2321.5-1619_daily_bin1280.fits scfile=/scratch/kocevski/765240/ft2_4FGL_J2321.5-1619_daily_bin1280.fits outfile=/scratch/kocevski/765240/cmap_HighResolution_571104001_571363201_4FGL_J2321.5-1619_daily_bin1280.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/765240/ft1_filtered_4FGL_J2321.5-1619_daily_bin1280.fits evtable="EVENTS" scfile=/scratch/kocevski/765240/ft2_4FGL_J2321.5-1619_daily_bin1280.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/765240/Model_4FGL_J2321.5-1619_daily_bin1280.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/765240/ft1_filtered_4FGL_J2321.5-1619_daily_bin1280.fits.....................!
real 38.42
user 37.15
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .24701E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    5.0832       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .69201       1.0000         .10000E-03   10000.    
     4 'norm      '    .19812E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    211.42       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19045E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14146E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.333       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .99958E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.9640       1.0000         .10000E-03   10000.    
    13 'norm      '    .95504       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .25538E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.856       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .16451E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    125.86       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12370E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    33.142       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.8132       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5812       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .67987       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=   3890.336     FROM MIGRAD    STATUS=CONVERGED    621 CALLS     2445 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    47.078        .19039E-07** at limit **
   2  norm          5.0856        3.3957        .26095E-05    .13571E-02
   3  Prefactor     .10000E-03    163.36       -.23948E-04** at limit **
   4  norm          .10067E-03    2.1478       -.21879E-05** at limit **
   5  Prefactor     214.98        80.757       -.34790E-06    .55378E-03
   6  Prefactor     .10000E-03    12.763       -.11941E-05** at limit **
   7  Prefactor     .10000E-03    18.200       -.90893E-06** at limit **
   8  Prefactor     .10000E-03    6.3751        .38313E-07** at limit **
   9  Prefactor     16.897        64.186       -.18246E-04   -.10836E-04
  10  Prefactor     .10000E-03    41.750       -.55888E-06** at limit **
  11  Prefactor     .10000E-03    7.6838       -.26844E-06** at limit **
  12  norm          3.9746        4.8901        .14458E-06   -.81617E-05
  13  norm          .97172        3.7566       -.28220E-06   -.13279E-03
  14  Prefactor     .10000E-03    59.677       -.11142E-06** at limit **
  15  Prefactor     11.870        21.685       -.20528E-05    .90734E-05
  16  Prefactor     .10000E-03    22.847        .92730E-07** at limit **
  17  Prefactor     136.59        101.92        .13327E-04    .11766E-03
  18  Prefactor     .10000E-03    126.82       -.20907E-05** at limit **
  19  norm          .10000E-03    .33948       -.55848E-08** at limit **
  20  norm          33.135        8.8367       -.43066E-06    .81735E-04
  21  Prefactor     2.8028        9.2270       -.16380E-05   -.38661E-04
  22  Normalizat    1.5800        .29015        .21483E-05    .43889E-03
  23  Prefactor     .67849        .23986        .53435E-05    .38808E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 5.08564
  Prefactor  = 0.000100004
  norm       = 0.000100669
  Prefactor  = 214.982
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.8974
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.97459
  norm       = 0.97172
  Prefactor  = 0.0001
  Prefactor  = 11.8697
  Prefactor  = 0.0001
  Prefactor  = 136.585
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 33.1352
  Prefactor  = 2.80282
  Normalizat = 1.57996
  Prefactor  = 0.678495
 **********
 **   18 **HESSE 
 **********

 FCN=   3890.336     FROM HESSE     STATUS=OK           362 CALLS     2807 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    47.200        .18292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.0856        3.3955        .89814E-04   -1.5257    
   3  Prefactor     .10000E-03    169.07        .48125E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10067E-03    24.961        .14896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     214.98        81.932        .13903E-03   -1.2765    
   6  Prefactor     .10000E-03    12.804        .20272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.451        .20516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.3762        .15382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.897        64.337        .86720E-04   -1.4886    
  10  Prefactor     .10000E-03    41.902        .20763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.6871        .16839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.9746        4.8816        .73625E-03   -1.5309    
  13  norm          .97172        3.7688        .22452E-03   -1.5511    
  14  Prefactor     .10000E-03    59.720        .18300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.870        21.733        .11634E-03   -1.5019    
  16  Prefactor     .10000E-03    22.879        .20397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     136.59        101.80        .17941E-03   -1.3365    
  18  Prefactor     .10000E-03    127.01        .20616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .37503        .68833E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          33.135        8.6712        .69605E-04   -1.4556    
  21  Prefactor     2.8028        9.2611        .24251E-03   -1.5373    
  22  Normalizat    1.5800        .34692        .26055E-03   -.75556    
  23  Prefactor     .67849        .28158        .32801E-03   -1.0438    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71917e-08
Minuit parameter uncertainties:
  1  0.000154134
  2  3.39559
  3  0.00160061
  4  0.0081786
  5  81.9754
  6  2.02827e-05
  7  5.61296e-05
  8  5.17017e-06
  9  64.6034
  10  0.000104671
  11  6.72855e-05
  12  4.88205
  13  3.76974
  14  4.00114e-05
  15  21.7477
  16  5.66719e-05
  17  101.927
  18  0.000323267
  19  2.83561e-06
  20  8.67156
  21  9.26588
  22  0.347451
  23  0.282174
Done.

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

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  1.047e-04  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:  6.785e-01  2.822e-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.580e+00  3.475e-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: 8.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/765240/likelihoodResults_571104001_571363201_4FGL_J2321.5-1619_daily_bin1280.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) = 3890.3362397
delta logL = -0.000113604432045

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3890.33612589
delta logL = 2.03888703254e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8885       1.0000          .0000       10.000    
     3 'Normalizat'    1.5800       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67849       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=   3890.336     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      246 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10017E-03    1090.3        .90712E-02** at limit **
   2  Index         1.9889        8.6818        .50000       -.21164E-04
   3  Normalizat    1.5800        .24984E-01    .58923E-01    .19635E-03
   4  Prefactor     .67849        .21743E-01    .74099E-01    .16057E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100169
  Index      = 1.98892
  Normalizat = 1.57996
  Prefactor  = 0.678492
 **********
 **   18 **HESSE 
 **********

 FCN=   3890.336     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      277 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10017E-03    6209.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9889        7.1276        .50000       -.64627    
   3  Normalizat    1.5800        .38552E-01    .26055E-03   -.75556    
   4  Prefactor     .67849        .33495E-01    .32801E-03   -1.0438    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.13646e-07
Minuit parameter uncertainties:
  1  0.0422415
  2  21.4968
  3  0.0385524
  4  0.0334964
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/765240': 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) = 3890.33612543
delta logL = 6.624109119e-07

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.002e-04  4.224e-02  1.000e-04  1.000e+04 ( 1.000e-14)
352        Index:  1.989e+00  2.150e+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:  6.785e-01  3.350e-02  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.580e+00  3.855e-02  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/765240/cmap_HighResolution_571104001_571363201_4FGL_J2321.5-1619_daily_bin1280.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.38e-03', job_status='DONE', photon_flux_upper_limit='8.63e-08', time_completed='2021-09-29 12:15:16.020474', job_id='765240', GAL2='0.68', fit_tolerance='1e-08', EG2='1.58', EG='1.58', time_epoch_completed='1632942916.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='6.62e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.83' WHERE bin_id='1280' AND source_name='4FGL J2321.5-1619' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 12:15:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 765240: <4FGL_J2321.5-1619_daily_bin1280> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.5-1619_daily_bin1280 350.385 -16.3176 571104001 571363201 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 :                                   496.18 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             280.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   544 sec.
    Turnaround time :                            546 sec.

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

