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


Performing analysis on: 4FGL_J2321.5-1619_daily_bin1433
RA = 350.385, Dec = -16.3176
tmin = 610761601, tmax = 611020801
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='766638', job_status='RUN', time_executed='2021-09-29 12:12:02.286100', time_epoch_executed='1632942722.29' WHERE source_name='4FGL J2321.5-1619' and cadence='daily' and bin_id='1433'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/766638

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/766638/ft1_4FGL_J2321.5-1619_daily_bin1433.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/766638/ft2_4FGL_J2321.5-1619_daily_bin1433.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/766638/ft1_4FGL_J2321.5-1619_daily_bin1433.fits outfile=/scratch/kocevski/766638/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin1433.fits ra=350.385 dec=-16.3176 rad=12.0 tmin=610761601.0 tmax=611020801.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 3.51
user 3.30
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/766638/ft1_filtered_4FGL_J2321.5-1619_daily_bin1433.fits" evtable="EVENTS" scfile=/scratch/kocevski/766638/ft2_4FGL_J2321.5-1619_daily_bin1433.fits sctable="SC_DATA" outfile=/scratch/kocevski/766638/ltcube_610761601_611020801_4FGL_J2321.5-1619_daily_bin1433.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/766638/ft2_4FGL_J2321.5-1619_daily_bin1433.fits
.....................!
real 11.68
user 11.34
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/766638/ft1_filtered_4FGL_J2321.5-1619_daily_bin1433.fits evtable="EVENTS" scfile=/scratch/kocevski/766638/ft2_4FGL_J2321.5-1619_daily_bin1433.fits sctable="SC_DATA" expcube=/scratch/kocevski/766638/ltcube_610761601_611020801_4FGL_J2321.5-1619_daily_bin1433.fits outfile=/scratch/kocevski/766638/expmap_610761601_611020801_4FGL_J2321.5-1619_daily_bin1433.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/766638/ltcube_610761601_611020801_4FGL_J2321.5-1619_daily_bin1433.fits
.....................!
real 190.28
user 184.83
sys 5.13

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/766638/ft1_filtered_4FGL_J2321.5-1619_daily_bin1433.fits scfile=/scratch/kocevski/766638/ft2_4FGL_J2321.5-1619_daily_bin1433.fits outfile=/scratch/kocevski/766638/cmap_610761601_611020801_4FGL_J2321.5-1619_daily_bin1433.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/766638/ft1_filtered_4FGL_J2321.5-1619_daily_bin1433.fits scfile=/scratch/kocevski/766638/ft2_4FGL_J2321.5-1619_daily_bin1433.fits outfile=/scratch/kocevski/766638/cmap_HighResolution_610761601_611020801_4FGL_J2321.5-1619_daily_bin1433.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/766638/ft1_filtered_4FGL_J2321.5-1619_daily_bin1433.fits evtable="EVENTS" scfile=/scratch/kocevski/766638/ft2_4FGL_J2321.5-1619_daily_bin1433.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/766638/Model_4FGL_J2321.5-1619_daily_bin1433.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/766638/ft1_filtered_4FGL_J2321.5-1619_daily_bin1433.fits.....................!
real 51.26
user 49.88
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .33684E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.4060       1.0000         .10000E-03   10000.    
     4 'norm      '    8.4969       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.967       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.281       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .79476E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.3284       1.0000         .10000E-03   10000.    
    13 'norm      '    5.4792       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.2807       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.765       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10375E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .20008E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.2046       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.7028       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0621       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .80528       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=   6082.091     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2290 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    25.107       -.43751E-06** at limit **
   2  norm          .36945E-01    .48211        .10089E-07   -.16751E-03
   3  Prefactor     9.3936        40.774       -.12185E-04    .19194E-04
   4  norm          8.4967        3.4274        .94933E-06   -.72735E-03
   5  Prefactor     .10000E-03    9.9485        .11966E-06** at limit **
   6  Prefactor     14.967        9.9981        .25870E-06    .11076E-04
   7  Prefactor     .10000E-03    15.530        .14841E-06** at limit **
   8  Prefactor     13.280        10.595       -.26394E-07   -.16040E-04
   9  Prefactor     .10000E-03    45.733        .68622E-05** at limit **
  10  Prefactor     .10000E-03    8.3198        .13172E-07** at limit **
  11  Prefactor     .10050E-03    6.2817        .48311E-06** at limit **
  12  norm          6.3315        5.4580       -.18522E-06   -.28176E-03
  13  norm          5.4791        3.3956        .11669E-07   -.13358E-03
  14  Prefactor     .10000E-03    62.685       -.17739E-04** at limit **
  15  Prefactor     7.2818        13.053       -.43613E-06    .60344E-04
  16  Prefactor     13.765        30.253       -.22095E-05   -.27979E-03
  17  Prefactor     .10000E-03    172.05       -.62557E-04** at limit **
  18  Prefactor     .10000E-03    124.21        .58006E-04** at limit **
  19  norm          .10000E-03    .37946        .26468E-07** at limit **
  20  norm          6.2057        4.5740       -.13682E-06   -.21533E-03
  21  Prefactor     6.7024        7.8317       -.10257E-05   -.12401E-03
  22  Normalizat    1.0623        .19103        .13112E-05    .76220E-04
  23  Prefactor     .80515        .16810       -.19135E-06    .15482E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0369446
  Prefactor  = 9.39364
  norm       = 8.49674
  Prefactor  = 0.0001
  Prefactor  = 14.9671
  Prefactor  = 0.0001
  Prefactor  = 13.2798
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100505
  norm       = 6.33145
  norm       = 5.47912
  Prefactor  = 0.0001
  Prefactor  = 7.28185
  Prefactor  = 13.7652
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.2057
  Prefactor  = 6.70245
  Normalizat = 1.06226
  Prefactor  = 0.805147
 **********
 **   18 **HESSE 
 **********

 FCN=   6082.091     FROM HESSE     STATUS=OK           392 CALLS     2682 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    25.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .36945E-01    4.5111        .10221E-02   -1.5670    
   3  Prefactor     9.3936        47.186        .13067E-03   -1.5095    
   4  norm          8.4967        3.7025        .44163E-04   -1.5125    
   5  Prefactor     .10000E-03    9.9543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.967        10.001        .10353E-03   -1.4934    
   7  Prefactor     .10000E-03    15.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.280        10.607        .10991E-03   -1.4979    
   9  Prefactor     .10000E-03    45.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.3229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10050E-03    6.7542        .56994E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.3315        5.4682        .15635E-03   -1.5205    
  13  norm          5.4791        3.3899        .10404E-03   -1.5240    
  14  Prefactor     .10000E-03    62.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.2818        13.040        .14865E-03   -1.5168    
  16  Prefactor     13.765        30.501        .53979E-03   -1.4966    
  17  Prefactor     .10000E-03    172.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    124.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .39655        .13450E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.2057        4.6040        .12210E-03   -1.5210    
  21  Prefactor     6.7024        7.8568        .15499E-03   -1.5190    
  22  Normalizat    1.0623        .22252        .24804E-03   -.90973    
  23  Prefactor     .80515        .19566        .25477E-03   -.99539    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55755e-08
Minuit parameter uncertainties:
  1  1.23038e-05
  2  0.815439
  3  42.1599
  4  3.70263
  5  2.47317e-05
  6  10.0019
  7  1.53762e-05
  8  10.6081
  9  7.1031e-05
  10  6.50132e-07
  11  0.003693
  12  5.4686
  13  3.39007
  14  7.87637e-05
  15  13.0451
  16  30.5353
  17  0.00065849
  18  0.000101109
  19  4.68535e-06
  20  4.60425
  21  7.85805
  22  0.222717
  23  0.195831
Done.

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

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  6.501e-07  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.051e-01  1.958e-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.062e+00  2.227e-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.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/766638/likelihoodResults_610761601_611020801_4FGL_J2321.5-1619_daily_bin1433.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) = 6082.09126451
delta logL = -0.000570581789361

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6082.09069409
delta logL = -1.64786797541e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10507E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8057       1.0000          .0000       10.000    
     3 'Normalizat'    1.0623       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80515       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=   6082.091     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      230 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10071E-03    50.073        .18142E-02** at limit **
   2  Index         1.7645        5.8662        .50000        .18492E-04
   3  Normalizat    1.0623        .10692E-01    .24804E-03   -.23057E-03
   4  Prefactor     .80515        .97413E-02    .25477E-03   -.11495E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010071
  Index      = 1.76453
  Normalizat = 1.06226
  Prefactor  = 0.805147
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10071E-03    232.16        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7645        5.2509        .50000       -.70377    
   3  Normalizat    1.0623        .23622E-01    .49607E-04   -.90973    
   4  Prefactor     .80515        .21521E-01    .10191E-04   -.99539    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.21377e-08
Minuit parameter uncertainties:
  1  0.0257696
  2  318.462
  3  0.023622
  4  0.021521
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/766638': 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) = 6082.09069362
delta logL = 3.03853084915e-07

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.007e-04  2.577e-02  1.000e-04  1.000e+04 ( 1.000e-14)
352        Index:  1.765e+00  3.185e+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.051e-01  2.152e-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.062e+00  2.362e-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/766638/cmap_HighResolution_610761601_611020801_4FGL_J2321.5-1619_daily_bin1433.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.61e-03', job_status='DONE', photon_flux_upper_limit='3.54e-08', time_completed='2021-09-29 12:22:19.553877', job_id='766638', GAL2='0.81', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1632943339.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='3.04e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.83' WHERE bin_id='1433' AND source_name='4FGL J2321.5-1619' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 12:22:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 766638: <4FGL_J2321.5-1619_daily_bin1433> in cluster <slac> Done

Job <4FGL_J2321.5-1619_daily_bin1433> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 12:10:28 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 12:10:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 12:10:29 2021
Terminated at Wed Sep 29 12:22:19 2021
Results reported at Wed Sep 29 12:22:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.5-1619_daily_bin1433 350.385 -16.3176 610761601 611020801 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 :                                   594.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            711 sec.

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

