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


Performing analysis on: 4FGL_J2321.5-1619_daily_bin1307
RA = 350.385, Dec = -16.3176
tmin = 578102401, tmax = 578361601
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='765280', job_status='RUN', time_executed='2021-09-29 12:08:07.648172', time_epoch_executed='1632942487.65' WHERE source_name='4FGL J2321.5-1619' and cadence='daily' and bin_id='1307'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/765280

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/765280/ft1_4FGL_J2321.5-1619_daily_bin1307.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/765280/ft2_4FGL_J2321.5-1619_daily_bin1307.fits


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

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

Done.
real 5.00
user 4.77
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/765280/ft2_4FGL_J2321.5-1619_daily_bin1307.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/765280/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin1307.fits evtable="EVENTS" outfile="/scratch/kocevski/765280/ft1_filtered_4FGL_J2321.5-1619_daily_bin1307.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.52
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/765280/ft1_filtered_4FGL_J2321.5-1619_daily_bin1307.fits" evtable="EVENTS" scfile=/scratch/kocevski/765280/ft2_4FGL_J2321.5-1619_daily_bin1307.fits sctable="SC_DATA" outfile=/scratch/kocevski/765280/ltcube_578102401_578361601_4FGL_J2321.5-1619_daily_bin1307.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/765280/ft2_4FGL_J2321.5-1619_daily_bin1307.fits
.....................!
real 11.66
user 11.33
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/765280/ft1_filtered_4FGL_J2321.5-1619_daily_bin1307.fits evtable="EVENTS" scfile=/scratch/kocevski/765280/ft2_4FGL_J2321.5-1619_daily_bin1307.fits sctable="SC_DATA" expcube=/scratch/kocevski/765280/ltcube_578102401_578361601_4FGL_J2321.5-1619_daily_bin1307.fits outfile=/scratch/kocevski/765280/expmap_578102401_578361601_4FGL_J2321.5-1619_daily_bin1307.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/765280/ltcube_578102401_578361601_4FGL_J2321.5-1619_daily_bin1307.fits
.....................!
real 190.21
user 185.32
sys 4.52

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/765280/ft1_filtered_4FGL_J2321.5-1619_daily_bin1307.fits scfile=/scratch/kocevski/765280/ft2_4FGL_J2321.5-1619_daily_bin1307.fits outfile=/scratch/kocevski/765280/cmap_578102401_578361601_4FGL_J2321.5-1619_daily_bin1307.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/765280/ft1_filtered_4FGL_J2321.5-1619_daily_bin1307.fits scfile=/scratch/kocevski/765280/ft2_4FGL_J2321.5-1619_daily_bin1307.fits outfile=/scratch/kocevski/765280/cmap_HighResolution_578102401_578361601_4FGL_J2321.5-1619_daily_bin1307.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.56
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/765280/ft1_filtered_4FGL_J2321.5-1619_daily_bin1307.fits evtable="EVENTS" scfile=/scratch/kocevski/765280/ft2_4FGL_J2321.5-1619_daily_bin1307.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/765280/Model_4FGL_J2321.5-1619_daily_bin1307.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/765280/ft1_filtered_4FGL_J2321.5-1619_daily_bin1307.fits.....................!
real 42.69
user 41.31
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.243       1.0000         .10000E-03   10000.    
     2 'norm      '    1.1541       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    13.714       1.0000         .10000E-03   10000.    
     5 'Prefactor '    50.683       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.997       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2978       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    76.967       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.1007       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.444       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    21.336       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.4614       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .89490       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .85654       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=   4504.023     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2558 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.244        39.971        .75845E-07    .34551E-05
   2  norm          1.1540        1.0642        .37358E-07    .13955E-03
   3  Prefactor     .10000E-03    45.413       -.25220E-05** at limit **
   4  norm          13.713        3.2240        .14941E-06    .67999E-03
   5  Prefactor     50.701        68.312       -.18063E-05    .96238E-04
   6  Prefactor     13.995        17.698        .36737E-06    .23152E-04
   7  Prefactor     2.2969        15.950        .71331E-05   -.28045E-04
   8  Prefactor     .10000E-03    4.6629       -.26092E-07** at limit **
   9  Prefactor     76.976        75.856       -.23029E-05   -.83762E-04
  10  Prefactor     .10000E-03    6.9001       -.16205E-07** at limit **
  11  Prefactor     .10000E-03    28.058        .24914E-05** at limit **
  12  norm          5.1000        6.2703        .89825E-07   -.15186E-03
  13  norm          .10000E-03    2.3309       -.99836E-07** at limit **
  14  Prefactor     12.449        36.324       -.63493E-06    .15815E-04
  15  Prefactor     .10000E-03    7.6242        .12117E-06** at limit **
  16  Prefactor     .10000E-03    15.696       -.94195E-07** at limit **
  17  Prefactor     .10000E-03    59.411        .61192E-05** at limit **
  18  Prefactor     .10000E-03    45.473       -.31268E-05** at limit **
  19  norm          .10000E-03    .32808       -.28820E-06** at limit **
  20  norm          21.343        7.7726        .30903E-06    .33339E-03
  21  Prefactor     3.4622        12.318        .21130E-06    .88042E-06
  22  Normalizat    .89472        .22929       -.21870E-06    .11285E-04
  23  Prefactor     .85670        .19568       -.27443E-06    .43926E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 16.2435
  norm       = 1.15404
  Prefactor  = 0.0001
  norm       = 13.7133
  Prefactor  = 50.701
  Prefactor  = 13.9946
  Prefactor  = 2.29689
  Prefactor  = 0.0001
  Prefactor  = 76.9756
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.10003
  norm       = 0.0001
  Prefactor  = 12.4487
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 21.3432
  Prefactor  = 3.4622
  Normalizat = 0.894721
  Prefactor  = 0.856696
 **********
 **   18 **HESSE 
 **********

 FCN=   4504.023     FROM HESSE     STATUS=OK           368 CALLS     2926 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.244        39.970        .99378E-04   -1.4902    
   2  norm          1.1540        1.0468        .63920E-04   -1.5493    
   3  Prefactor     .10000E-03    45.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          13.713        3.2694        .43202E-04   -1.4967    
   5  Prefactor     50.701        68.970        .56332E-04   -1.4283    
   6  Prefactor     13.995        17.710        .10706E-03   -1.4960    
   7  Prefactor     2.2969        15.945        .13537E-02   -1.5405    
   8  Prefactor     .10000E-03    4.6697        .14154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     76.976        76.247        .45772E-04   -1.3951    
  10  Prefactor     .10000E-03    6.9002        .17219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    28.785        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.1000        6.2456        .17326E-03   -1.5256    
  13  norm          .10000E-03    2.3748        .99996E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.449        36.293        .11355E-03   -1.5002    
  15  Prefactor     .10000E-03    7.6266        .18088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    58.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    45.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .36033        .72093E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          21.343        7.5626        .86713E-04   -1.4784    
  21  Prefactor     3.4622        12.296        .21737E-03   -1.5336    
  22  Normalizat    .89472        .26278        .28183E-03   -.96646    
  23  Prefactor     .85670        .22447        .25475E-03   -.97671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46794e-10
Minuit parameter uncertainties:
  1  40.0363
  2  1.04682
  3  0.000254547
  4  3.26941
  5  69.0785
  6  17.7166
  7  12.108
  8  1.36655e-06
  9  76.3442
  10  1.23693e-06
  11  0.000194119
  12  6.24641
  13  2.01616e-06
  14  36.3578
  15  8.16758e-06
  16  4.45963e-06
  17  0.000459197
  18  0.000194678
  19  5.44005e-06
  20  7.56295
  21  12.3047
  22  0.263157
  23  0.224708
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  8.567e-01  2.247e-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.947e-01  2.632e-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: 3.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/765280/likelihoodResults_578102401_578361601_4FGL_J2321.5-1619_daily_bin1307.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) = 4504.02412564
delta logL = -0.000639070904072

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4504.02348692
delta logL = -3.48832145391e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10899E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7981       1.0000          .0000       10.000    
     3 'Normalizat'    .89466       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85673       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=   4504.023     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      237 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10174E-03    47.930        .18008E-02** at limit **
   2  Index         1.7357        5.3894        .50000        .31347E-04
   3  Normalizat    .89472        .13579E-01    .28183E-03    .14966E-04
   4  Prefactor     .85669        .12105E-01    .25475E-03   -.32711E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101743
  Index      = 1.73572
  Normalizat = 0.894723
  Prefactor  = 0.856694
 **********
 **   18 **HESSE 
 **********

 FCN=   4504.023     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10174E-03    206.31        .36017E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7357        5.3265        .50000       -.71135    
   3  Normalizat    .89472        .28882E-01    .11273E-04   -.96646    
   4  Prefactor     .85669        .25745E-01    .10190E-04   -.97671    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.86481e-08
Minuit parameter uncertainties:
  1  0.0380549
  2  308.748
  3  0.0288826
  4  0.0257456
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/765280': 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) = 4504.02348582
delta logL = 7.45792931411e-07

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.017e-04  3.805e-02  1.000e-04  1.000e+04 ( 1.000e-14)
352        Index:  1.736e+00  3.087e+02  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.567e-01  2.575e-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:  8.947e-01  2.888e-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/765280/cmap_HighResolution_578102401_578361601_4FGL_J2321.5-1619_daily_bin1307.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.44e-03', job_status='DONE', photon_flux_upper_limit='3.30e-08', time_completed='2021-09-29 12:17:09.133044', job_id='765280', GAL2='0.86', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1632943029.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='7.46e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.83' WHERE bin_id='1307' AND source_name='4FGL J2321.5-1619' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 12:17:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 765280: <4FGL_J2321.5-1619_daily_bin1307> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.5-1619_daily_bin1307 350.385 -16.3176 578102401 578361601 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 :                                   536.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             277.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   654 sec.
    Turnaround time :                            655 sec.

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

