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


Performing analysis on: 4FGL_J2321.5-1619_daily_bin1660
RA = 350.385, Dec = -16.3176
tmin = 669600001, tmax = 669859201
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='993365', job_status='RUN', time_executed='2022-03-25 00:38:56.910615', time_epoch_executed='1648193936.91' WHERE source_name='4FGL J2321.5-1619' and cadence='daily' and bin_id='1660'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993365

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993365/ft1_4FGL_J2321.5-1619_daily_bin1660.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993365/ft2_4FGL_J2321.5-1619_daily_bin1660.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993365/ft1_4FGL_J2321.5-1619_daily_bin1660.fits outfile=/scratch/kocevski/993365/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin1660.fits ra=350.385 dec=-16.3176 rad=12.0 tmin=669600001.0 tmax=669859201.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.61
user 4.37
sys 0.22

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

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

Number of photons that the gtmktime cut: 381

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993365/ft1_filtered_4FGL_J2321.5-1619_daily_bin1660.fits" evtable="EVENTS" scfile=/scratch/kocevski/993365/ft2_4FGL_J2321.5-1619_daily_bin1660.fits sctable="SC_DATA" outfile=/scratch/kocevski/993365/ltcube_669600001_669859201_4FGL_J2321.5-1619_daily_bin1660.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/993365/ft2_4FGL_J2321.5-1619_daily_bin1660.fits
.....................!
real 11.93
user 11.58
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993365/ft1_filtered_4FGL_J2321.5-1619_daily_bin1660.fits evtable="EVENTS" scfile=/scratch/kocevski/993365/ft2_4FGL_J2321.5-1619_daily_bin1660.fits sctable="SC_DATA" expcube=/scratch/kocevski/993365/ltcube_669600001_669859201_4FGL_J2321.5-1619_daily_bin1660.fits outfile=/scratch/kocevski/993365/expmap_669600001_669859201_4FGL_J2321.5-1619_daily_bin1660.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/993365/ltcube_669600001_669859201_4FGL_J2321.5-1619_daily_bin1660.fits
.....................!
real 190.13
user 185.24
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/993365/ft1_filtered_4FGL_J2321.5-1619_daily_bin1660.fits scfile=/scratch/kocevski/993365/ft2_4FGL_J2321.5-1619_daily_bin1660.fits outfile=/scratch/kocevski/993365/cmap_669600001_669859201_4FGL_J2321.5-1619_daily_bin1660.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993365/ft1_filtered_4FGL_J2321.5-1619_daily_bin1660.fits scfile=/scratch/kocevski/993365/ft2_4FGL_J2321.5-1619_daily_bin1660.fits outfile=/scratch/kocevski/993365/cmap_HighResolution_669600001_669859201_4FGL_J2321.5-1619_daily_bin1660.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/993365/ft1_filtered_4FGL_J2321.5-1619_daily_bin1660.fits evtable="EVENTS" scfile=/scratch/kocevski/993365/ft2_4FGL_J2321.5-1619_daily_bin1660.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/993365/Model_4FGL_J2321.5-1619_daily_bin1660.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/993365/ft1_filtered_4FGL_J2321.5-1619_daily_bin1660.fits.....................!
real 41.32
user 39.94
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10273E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.6068       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.4514       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.195       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.6330       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .18821E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .30136E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    184.49       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11480E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    88.989       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10311E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    15.660       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1419       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .81372       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=   4396.667     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2549 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    55.365       -.49192E-06** at limit **
   2  norm          1.6067        1.0220        .30272E-07    .70084E-04
   3  Prefactor     .10000E-03    57.287       -.51604E-06** at limit **
   4  norm          3.4504        1.6595        .21177E-06    .88176E-04
   5  Prefactor     .10000E-03    69.218        .45528E-06** at limit **
   6  Prefactor     16.195        14.851        .13305E-06    .34407E-06
   7  Prefactor     .10000E-03    5.8988       -.37009E-07** at limit **
   8  Prefactor     4.6328        13.676        .88048E-05    .86061E-04
   9  Prefactor     .10003E-03    315.18       -.23085E-05** at limit **
  10  Prefactor     .10000E-03    11.332        .19128E-06** at limit **
  11  Prefactor     .10000E-03    13.569        .54879E-06** at limit **
  12  norm          .10000E-03    2.9427        .14847E-06** at limit **
  13  norm          .10001E-03    2.5071        .16789E-06** at limit **
  14  Prefactor     184.56        104.00        .28215E-05    .43803E-04
  15  Prefactor     .10000E-03    35.766        .46278E-05** at limit **
  16  Prefactor     .10000E-03    45.828       -.96269E-06** at limit **
  17  Prefactor     89.058        100.82        .93849E-06    .69992E-04
  18  Prefactor     .10000E-03    98.325        .18854E-06** at limit **
  19  norm          .10000E-03    .21182        .23020E-08** at limit **
  20  norm          15.657        6.5208        .13565E-06   -.25152E-03
  21  Prefactor     .10000E-03    6.9359        .53794E-07** at limit **
  22  Normalizat    1.1423        .25927       -.72373E-05    .10937E-04
  23  Prefactor     .81342        .20918        .39361E-05   -.30065E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.60675
  Prefactor  = 0.0001
  norm       = 3.45039
  Prefactor  = 0.000100001
  Prefactor  = 16.1945
  Prefactor  = 0.0001
  Prefactor  = 4.63276
  Prefactor  = 0.000100035
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100008
  Prefactor  = 184.557
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 89.0583
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 15.6574
  Prefactor  = 0.0001
  Normalizat = 1.14226
  Prefactor  = 0.813418
 **********
 **   18 **HESSE 
 **********

 FCN=   4396.667     FROM HESSE     STATUS=OK           362 CALLS     2911 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    56.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.6067        1.0189        .51649E-04   -1.5454    
   3  Prefactor     .10000E-03    57.844        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.4504        1.6445        .55048E-04   -1.5336    
   5  Prefactor     .10000E-03    69.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.195        14.867        .99526E-04   -1.4903    
   7  Prefactor     .10000E-03    5.9085        .15727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.6328        13.847        .93493E-03   -1.5277    
   9  Prefactor     .10003E-03    319.89        .20283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.9505        .11109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10001E-03    17.915        .19887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     184.56        103.79        .14862E-03   -1.2983    
  15  Prefactor     .10000E-03    35.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    45.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     89.058        101.05        .21297E-03   -1.3818    
  18  Prefactor     .10000E-03    98.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .21185        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          15.657        6.5234        .10121E-03   -1.4916    
  21  Prefactor     .10000E-03    7.0172        .17053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1423        .28803        .25974E-03   -.88406    
  23  Prefactor     .81342        .23814        .26030E-03   -.99236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46746e-09
Minuit parameter uncertainties:
  1  4.82105e-05
  2  1.01896
  3  3.87334e-05
  4  1.64457
  5  0.000637702
  6  14.8701
  7  7.31091e-06
  8  13.8569
  9  0.00669742
  10  6.98518e-06
  11  8.04079e-05
  12  8.46599e-06
  13  0.000778352
  14  103.891
  15  0.000275871
  16  0.000333645
  17  101.244
  18  0.000451263
  19  1.34606e-08
  20  6.52368
  21  2.20585e-05
  22  0.288432
  23  0.238443
Done.

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

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  6.985e-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.134e-01  2.384e-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.142e+00  2.884e-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: 4.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993365/likelihoodResults_669600001_669859201_4FGL_J2321.5-1619_daily_bin1660.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) = 4396.66704552
delta logL = -0.000414075202571

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4396.66663141
delta logL = 3.18441379932e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7994       1.0000          .0000       10.000    
     3 'Normalizat'    1.1422       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81347       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=   4396.667     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      241 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10219E-03    103.94        .18142E-02** at limit **
   2  Index         1.7297        6.2023        .50000        .16075E-04
   3  Normalizat    1.1423        .16376E-01    .25974E-03   -.14006E-05
   4  Prefactor     .81342        .14170E-01    .26030E-03    .82110E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102187
  Index      = 1.72969
  Normalizat = 1.14226
  Prefactor  = 0.813424
 **********
 **   18 **HESSE 
 **********

 FCN=   4396.667     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 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     .10219E-03    438.78        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7297        8.6638        .50000       -.71294    
   3  Normalizat    1.1423        .34873E-01    .10390E-04   -.88406    
   4  Prefactor     .81342        .30175E-01    .10412E-04   -.99235    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.91798e-08
Minuit parameter uncertainties:
  1  0.0624196
  2  606.873
  3  0.0348737
  4  0.0301752
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993365': 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) = 4396.66663105
delta logL = 3.91952198697e-07

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.022e-04  6.242e-02  1.000e-04  1.000e+04 ( 1.000e-14)
352        Index:  1.730e+00  6.069e+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.134e-01  3.018e-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.142e+00  3.487e-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/993365/cmap_HighResolution_669600001_669859201_4FGL_J2321.5-1619_daily_bin1660.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.68e-03', job_status='DONE', photon_flux_upper_limit='4.98e-08', time_completed='2022-03-25 00:47:35.585258', job_id='993365', GAL2='0.81', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1648194455.59', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='3.92e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.83' WHERE bin_id='1660' AND source_name='4FGL J2321.5-1619' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Mar 25 00:47:35 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 993365: <4FGL_J2321.5-1619_daily_bin1660> in cluster <slac> Done

Job <4FGL_J2321.5-1619_daily_bin1660> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Mar 25 00:35:52 2022
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Mar 25 00:35:54 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Mar 25 00:35:54 2022
Terminated at Fri Mar 25 00:47:37 2022
Results reported at Fri Mar 25 00:47:37 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.5-1619_daily_bin1660 350.385 -16.3176 669600001 669859201 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 :                                   521.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   702 sec.
    Turnaround time :                            705 sec.

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

