/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 165 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 = 7485
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2321.5-1619_daily_bin270
RA = 350.385, Dec = -16.3176
tmin = 309312001, tmax = 309571201
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='758659', job_status='RUN', time_executed='2021-09-29 11:53:46.666889', time_epoch_executed='1632941626.67' WHERE source_name='4FGL J2321.5-1619' and cadence='daily' and bin_id='270'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/758659

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/758659/ft1_4FGL_J2321.5-1619_daily_bin270.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/758659/ft2_4FGL_J2321.5-1619_daily_bin270.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/758659/ft1_4FGL_J2321.5-1619_daily_bin270.fits outfile=/scratch/kocevski/758659/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin270.fits ra=350.385 dec=-16.3176 rad=12.0 tmin=309312001.0 tmax=309571201.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.03
user 3.77
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/758659/ft1_filtered_4FGL_J2321.5-1619_daily_bin270.fits" evtable="EVENTS" scfile=/scratch/kocevski/758659/ft2_4FGL_J2321.5-1619_daily_bin270.fits sctable="SC_DATA" outfile=/scratch/kocevski/758659/ltcube_309312001_309571201_4FGL_J2321.5-1619_daily_bin270.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/758659/ft2_4FGL_J2321.5-1619_daily_bin270.fits
.....................!
real 12.02
user 11.63
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/758659/ft1_filtered_4FGL_J2321.5-1619_daily_bin270.fits evtable="EVENTS" scfile=/scratch/kocevski/758659/ft2_4FGL_J2321.5-1619_daily_bin270.fits sctable="SC_DATA" expcube=/scratch/kocevski/758659/ltcube_309312001_309571201_4FGL_J2321.5-1619_daily_bin270.fits outfile=/scratch/kocevski/758659/expmap_309312001_309571201_4FGL_J2321.5-1619_daily_bin270.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/758659/ltcube_309312001_309571201_4FGL_J2321.5-1619_daily_bin270.fits
.....................!
real 190.73
user 185.43
sys 4.05

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/758659/ft1_filtered_4FGL_J2321.5-1619_daily_bin270.fits scfile=/scratch/kocevski/758659/ft2_4FGL_J2321.5-1619_daily_bin270.fits outfile=/scratch/kocevski/758659/cmap_309312001_309571201_4FGL_J2321.5-1619_daily_bin270.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/758659/ft1_filtered_4FGL_J2321.5-1619_daily_bin270.fits scfile=/scratch/kocevski/758659/ft2_4FGL_J2321.5-1619_daily_bin270.fits outfile=/scratch/kocevski/758659/cmap_HighResolution_309312001_309571201_4FGL_J2321.5-1619_daily_bin270.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/758659/ft1_filtered_4FGL_J2321.5-1619_daily_bin270.fits evtable="EVENTS" scfile=/scratch/kocevski/758659/ft2_4FGL_J2321.5-1619_daily_bin270.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/758659/Model_4FGL_J2321.5-1619_daily_bin270.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/758659/ft1_filtered_4FGL_J2321.5-1619_daily_bin270.fits.....................!
real 56.77
user 55.15
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.749       1.0000         .10000E-03   10000.    
     2 'norm      '    .57172       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .21710       1.0000         .10000E-03   10000.    
     4 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    35.777       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.8830       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9707       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12485E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11332E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.0459       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .68410E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.3253       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .23597E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.3523       1.0000         .10000E-03   10000.    
    20 'norm      '    4.4829       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10591E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .66898       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0119       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=   7289.886     FROM MIGRAD    STATUS=CONVERGED    943 CALLS     2991 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.745        13.451        .11687E-03    .60310E-05
   2  norm          .57199        .60994        .69446E-03    .43702E-02
   3  Prefactor     .13113        17.454        .60345E-01    .35577E-03
   4  norm          .10000E-03    .41424        .86592E-03** at limit **
   5  Prefactor     35.899        27.074        .67001E-04   -.26470E-04
   6  Prefactor     4.8829        5.1381        .18203E-03    .96369E-04
   7  Prefactor     .10000E-03    2.4344        .12995E-02** at limit **
   8  Prefactor     1.9671        11.543        .14768E-02    .12099E-03
   9  Prefactor     .10000E-03    15.436        .18142E-02** at limit **
  10  Prefactor     .10000E-03    16.982        .18142E-02** at limit **
  11  Prefactor     .10000E-03    3.5223        .15477E-02** at limit **
  12  norm          .10000E-03    .90275        .79162E-03** at limit **
  13  norm          2.0453        1.9590        .11312E-03   -.67333E-04
  14  Prefactor     .10018E-03    293.74        .95379E-02** at limit **
  15  Prefactor     2.2943        19.957        .26897E-03   -.61161E-04
  16  Prefactor     .10000E-03    5.3473        .18142E-02** at limit **
  17  Prefactor     .10002E-03    170.54        .18142E-02** at limit **
  18  Prefactor     .10000E-03    51.907        .18142E-02** at limit **
  19  norm          4.3523        .97156        .29964E-04   -.52358E-04
  20  norm          4.4809        5.9807        .18211E-03   -.17480E-04
  21  Prefactor     .10000E-03    7.7286        .36285E-02** at limit **
  22  Normalizat    .66892        .17438        .26616E-03    .26747E-03
  23  Prefactor     1.0120        .15942        .20829E-03    .88259E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.7446
  norm       = 0.571987
  Prefactor  = 0.131129
  norm       = 0.0001
  Prefactor  = 35.8991
  Prefactor  = 4.8829
  Prefactor  = 0.0001
  Prefactor  = 1.96709
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.04532
  Prefactor  = 0.000100177
  Prefactor  = 2.29428
  Prefactor  = 0.0001
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  norm       = 4.35231
  norm       = 4.48087
  Prefactor  = 0.0001
  Normalizat = 0.668916
  Prefactor  = 1.01203
 **********
 **   18 **HESSE 
 **********

 FCN=   7289.886     FROM HESSE     STATUS=OK           360 CALLS     3351 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.745        13.451        .46749E-05   -1.5022    
   2  norm          .57199        .60966        .13889E-03   -1.5557    
   3  Prefactor     .13113        14.750        .65241E-01   -1.5636    
   4  norm          .10000E-03    .41431        .17318E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     35.899        26.441        .26800E-05   -1.4509    
   6  Prefactor     4.8829        5.1380        .72812E-05   -1.5266    
   7  Prefactor     .10000E-03    2.4345        .25990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.9671        11.521        .59073E-04   -1.5427    
   9  Prefactor     .10000E-03    15.437        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.984        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.5245        .30954E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .90276        .15832E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.0453        1.9589        .45250E-05   -1.5422    
  14  Prefactor     .10018E-03    297.86        .38152E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.2943        19.426        .10759E-04   -1.5405    
  16  Prefactor     .10000E-03    5.3474        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10002E-03    170.70        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    51.913        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.3523        .97118        .11986E-05   -1.5291    
  20  norm          4.4809        5.9782        .72844E-05   -1.5285    
  21  Prefactor     .10000E-03    7.7866        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .66892        .17440        .10646E-04   -1.0513    
  23  Prefactor     1.0120        .15954        .41657E-04   -.92330    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03386e-09
Minuit parameter uncertainties:
  1  13.4543
  2  0.609669
  3  2.78109
  4  1.52416e-05
  5  26.45
  6  5.13844
  7  5.89935e-06
  8  9.52344
  9  3.27158e-05
  10  4.20161e-05
  11  1.89329e-05
  12  1.72677e-06
  13  1.95898
  14  0.0146019
  15  13.3574
  16  8.4041e-06
  17  0.00374049
  18  0.000184699
  19  0.971181
  20  5.97895
  21  5.85113e-05
  22  0.174543
  23  0.159611
Done.

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

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  4.202e-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:  1.012e+00  1.596e-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:  6.689e-01  1.745e-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.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/758659/likelihoodResults_309312001_309571201_4FGL_J2321.5-1619_daily_bin270.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) = 7289.88640598
delta logL = -0.000280600068436

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7288.13764889
delta logL = 1.74847649454

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62227E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    4.9792       1.0000          .0000       10.000    
     3 'Normalizat'    .55503       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0786       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=   7288.138     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      325 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61746E-02    .48257E-01    .94423E-03    .13116E-01
   2  Index         4.9815        1.3742        .65556E-01    .31939E-03
   3  Normalizat    .55521        .36675E-01    .65606E-01    .93181E-04
   4  Prefactor     1.0785        .34744E-01    .38464E-01    .87287E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00617461
  Index      = 4.98152
  Normalizat = 0.555206
  Prefactor  = 1.07852
 **********
 **   18 **HESSE 
 **********

 FCN=   7288.138     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      358 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .61746E-02    .10863        .39836E-04   -1.5692    
   2  Index         4.9815        2.4012        .25236E-02   -.36951E-02
   3  Normalizat    .55521        .13227        .29034E-03   -1.0992    
   4  Prefactor     1.0785        .12302        .20241E-03   -.90156    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.21096e-11
Minuit parameter uncertainties:
  1  0.0513777
  2  2.50464
  3  0.132347
  4  0.123051
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/758659': 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) = 7288.13764687
delta logL = 1.74847850895

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  6.175e-03  5.138e-02  1.000e-04  1.000e+04 ( 1.000e-14)
352        Index:  4.982e+00  2.505e+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:  1.079e+00  1.231e-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:  5.552e-01  1.323e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.88
Ra Dec: 350.385 -16.318
Photon Index (Free Index): 4.98 +/- 2.50
Photon Flux (Free Index): 7.71e-08 +/- 4.51e-08
Energy Flux (Free Index): 1.03e-05 +/- 6.48e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/758659/cmap_HighResolution_309312001_309571201_4FGL_J2321.5-1619_daily_bin270.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.07e-03', comment='SUCCESS', energy_flux2='1.03e-05', dlogl='1.75e+00', photon_flux2='7.71e-08', job_status='DONE', time_completed='2021-09-29 12:05:32.908986', photon_index_error2='2.50', photon_index2='4.98', ts='-0.00', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='4.15e-08', energy_flux_error2='6.48e-06', EG='0.67', time_epoch_completed='1632942332.91', return_code='0', job_id='758659', GAL2='1.08', EG2='0.56', return_code2='102', photon_flux_error2='4.51e-08', ts2='3.88', photon_index='1.83' WHERE bin_id='270' AND source_name='4FGL J2321.5-1619' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 12:05:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 758659: <4FGL_J2321.5-1619_daily_bin270> in cluster <slac> Done

Job <4FGL_J2321.5-1619_daily_bin270> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 11:50:50 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:50:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 11:50:53 2021
Terminated at Wed Sep 29 12:05:33 2021
Results reported at Wed Sep 29 12:05:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.5-1619_daily_bin270 350.385 -16.3176 309312001 309571201 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 :                                   699.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            883 sec.

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

