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


Performing analysis on: 4FGL_J2321.5-1619_daily_bin330
RA = 350.385, Dec = -16.3176
tmin = 324864001, tmax = 325123201
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='761522', job_status='RUN', time_executed='2021-09-29 11:59:05.442444', time_epoch_executed='1632941945.44' WHERE source_name='4FGL J2321.5-1619' and cadence='daily' and bin_id='330'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/761522

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/761522/ft1_4FGL_J2321.5-1619_daily_bin330.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/761522/ft2_4FGL_J2321.5-1619_daily_bin330.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/761522/ft1_4FGL_J2321.5-1619_daily_bin330.fits outfile=/scratch/kocevski/761522/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin330.fits ra=350.385 dec=-16.3176 rad=12.0 tmin=324864001.0 tmax=325123201.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.69
user 5.43
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/761522/ft1_filtered_4FGL_J2321.5-1619_daily_bin330.fits" evtable="EVENTS" scfile=/scratch/kocevski/761522/ft2_4FGL_J2321.5-1619_daily_bin330.fits sctable="SC_DATA" outfile=/scratch/kocevski/761522/ltcube_324864001_325123201_4FGL_J2321.5-1619_daily_bin330.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/761522/ft2_4FGL_J2321.5-1619_daily_bin330.fits
.....................!
real 11.64
user 11.31
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/761522/ft1_filtered_4FGL_J2321.5-1619_daily_bin330.fits evtable="EVENTS" scfile=/scratch/kocevski/761522/ft2_4FGL_J2321.5-1619_daily_bin330.fits sctable="SC_DATA" expcube=/scratch/kocevski/761522/ltcube_324864001_325123201_4FGL_J2321.5-1619_daily_bin330.fits outfile=/scratch/kocevski/761522/expmap_324864001_325123201_4FGL_J2321.5-1619_daily_bin330.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/761522/ltcube_324864001_325123201_4FGL_J2321.5-1619_daily_bin330.fits
.....................!
real 190.50
user 185.81
sys 4.34

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/761522/ft1_filtered_4FGL_J2321.5-1619_daily_bin330.fits scfile=/scratch/kocevski/761522/ft2_4FGL_J2321.5-1619_daily_bin330.fits outfile=/scratch/kocevski/761522/cmap_324864001_325123201_4FGL_J2321.5-1619_daily_bin330.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/761522/ft1_filtered_4FGL_J2321.5-1619_daily_bin330.fits scfile=/scratch/kocevski/761522/ft2_4FGL_J2321.5-1619_daily_bin330.fits outfile=/scratch/kocevski/761522/cmap_HighResolution_324864001_325123201_4FGL_J2321.5-1619_daily_bin330.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.58
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/761522/ft1_filtered_4FGL_J2321.5-1619_daily_bin330.fits evtable="EVENTS" scfile=/scratch/kocevski/761522/ft2_4FGL_J2321.5-1619_daily_bin330.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/761522/Model_4FGL_J2321.5-1619_daily_bin330.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/761522/ft1_filtered_4FGL_J2321.5-1619_daily_bin330.fits.....................!
real 40.95
user 39.58
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    90.897       1.0000         .10000E-03   10000.    
     2 'norm      '    .34560       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10239E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    84.064       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.681       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1169       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.185       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.4066       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    44.152       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10350E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    72.730       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.0839       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.9455       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .96364       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .82811       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.303     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2586 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          90.900        64.050        .67307E-06    .23073E-05
   2  norm          .34569        .51504        .11912E-07    .11760E-03
   3  Prefactor     .10000E-03    5.8835       -.28427E-06** at limit **
   4  norm          .10000E-03    .44804       -.27132E-06** at limit **
   5  Prefactor     84.051        36.463       -.88551E-07   -.20581E-03
   6  Prefactor     13.682        12.511        .24193E-06    .10321E-04
   7  Prefactor     .10000E-03    4.6579       -.37476E-07** at limit **
   8  Prefactor     3.1166        13.240        .12391E-05   -.13861E-04
   9  Prefactor     .10000E-03    14.066        .11344E-06** at limit **
  10  Prefactor     23.187        22.426       -.21319E-06   -.10344E-04
  11  Prefactor     .10000E-03    3.2189        .13311E-06** at limit **
  12  norm          4.4076        5.9922        .12732E-05    .43878E-03
  13  norm          .10000E-03    1.1317        .10214E-06** at limit **
  14  Prefactor     44.211        66.427        .93251E-05    .28722E-03
  15  Prefactor     .10000E-03    39.600        .68315E-05** at limit **
  16  Prefactor     .10000E-03    22.617       -.18252E-06** at limit **
  17  Prefactor     72.726        77.455       -.38739E-06   -.32371E-04
  18  Prefactor     .10000E-03    68.120       -.27788E-06** at limit **
  19  norm          3.0839        .90703       -.88535E-07   -.69057E-03
  20  norm          .10000E-03    3.5075        .82823E-07** at limit **
  21  Prefactor     4.9410        9.6862        .66975E-05   -.30422E-03
  22  Normalizat    .96353        .21810       -.37151E-05    .13306E-04
  23  Prefactor     .82816        .18386        .91287E-06   -.13383E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 90.9001
  norm       = 0.345695
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 84.0511
  Prefactor  = 13.6819
  Prefactor  = 0.0001
  Prefactor  = 3.11664
  Prefactor  = 0.0001
  Prefactor  = 23.1865
  Prefactor  = 0.0001
  norm       = 4.4076
  norm       = 0.0001
  Prefactor  = 44.211
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 72.7261
  Prefactor  = 0.0001
  norm       = 3.08395
  norm       = 0.0001
  Prefactor  = 4.94097
  Normalizat = 0.96353
  Prefactor  = 0.828159
 **********
 **   18 **HESSE 
 **********

 FCN=   4504.303     FROM HESSE     STATUS=OK           364 CALLS     2950 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          90.900        64.086        .42148E-04   -1.3798    
   2  norm          .34569        .46718        .57138E-03   -1.5590    
   3  Prefactor     .10000E-03    5.8903        .15884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .45196        .86919E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     84.051        36.359        .43812E-04   -1.3872    
   6  Prefactor     13.682        12.522        .10829E-03   -1.4968    
   7  Prefactor     .10000E-03    4.6639        .14145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.1166        13.239        .22966E-03   -1.5355    
   9  Prefactor     .10000E-03    14.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     23.187        22.437        .83188E-04   -1.4745    
  11  Prefactor     .10000E-03    3.2235        .11756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.4076        6.0363        .18438E-03   -1.5288    
  13  norm          .10000E-03    1.1399        .69714E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     44.211        69.280        .60336E-04   -1.4377    
  15  Prefactor     .10000E-03    39.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    22.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     72.726        77.512        .47076E-04   -1.4000    
  18  Prefactor     .10000E-03    68.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.0839        .90866        .32960E-04   -1.5357    
  20  norm          .10000E-03    3.5399        .12250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.9410        9.9565        .90425E-03   -1.5263    
  22  Normalizat    .96353        .24869        .25876E-03   -.94262    
  23  Prefactor     .82816        .21083        .24432E-03   -.98699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51234e-09
Minuit parameter uncertainties:
  1  64.1353
  2  0.467187
  3  1.83619e-05
  4  2.91826e-06
  5  36.3691
  6  12.5245
  7  8.18838e-06
  8  12.8518
  9  1.11865e-05
  10  22.4449
  11  3.42756e-06
  12  6.03713
  13  1.0263e-06
  14  69.4066
  15  0.000647393
  16  1.83038e-05
  17  77.6197
  18  5.49124e-05
  19  0.90866
  20  1.69351e-06
  21  9.95988
  22  0.248988
  23  0.211032
Done.

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

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  2.319e+01  2.244e+01  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.282e-01  2.110e-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:  9.635e-01  2.490e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.41
Ra Dec: 350.385 -16.318
Photon Index (Fixed Index): 1.83 +/- 0.00
Photon Flux (Fixed Index): 1.86e-08 +/- 1.80e-08
Energy Flux (Fixed Index): 2.04e-05 +/- 1.98e-05

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): 0
logL (Free Index) = 4504.02709943
delta logL = 0.276023400597

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4504.01139457
delta logL = 0.291728254765

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.037       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3347       1.0000          .0000       10.000    
     3 'Normalizat'    .97025       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82741       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.011     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      279 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.047        29.788        .73105E-04    .17106E-05
   2  Index         1.3344        .62852        .10568E-01    .43728E-04
   3  Normalizat    .97040        .23445        .25795E-03   -.45396E-05
   4  Prefactor     .82734        .20790        .24443E-03    .43627E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.0472
  Index      = 1.33442
  Normalizat = 0.970397
  Prefactor  = 0.827342
 **********
 **   18 **HESSE 
 **********

 FCN=   4504.011     FROM HESSE     STATUS=OK            25 CALLS      304 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.047        29.818        .29242E-05   -1.4611    
   2  Index         1.3344        .62930        .21136E-02   -.82289    
   3  Normalizat    .97040        .23467        .10318E-04   -.94029    
   4  Prefactor     .82734        .20811        .97772E-05   -.98728    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29547e-11
Minuit parameter uncertainties:
  1  29.8332
  2  0.632952
  3  0.234922
  4  0.208304
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/761522': 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): 0
logL (Free Index) = 4504.01139412
delta logL = 0.291728704276

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  8.273e-01  2.083e-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:  9.704e-01  2.349e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.99
Ra Dec: 350.385 -16.318
Photon Index (Free Index): 1.33 +/- 0.63
Photon Flux (Free Index): 9.31e-09 +/- 1.24e-08
Energy Flux (Free Index): 5.10e-05 +/- 7.78e-05

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/761522/cmap_HighResolution_324864001_325123201_4FGL_J2321.5-1619_daily_bin330.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.86e-08', energy_flux2='5.10e-05', photon_flux_error='1.80e-08', dlogl='2.92e-01', energy_flux='2.04e-05', photon_flux2='9.31e-09', job_status='DONE', time_completed='2021-09-29 12:07:23.493534', photon_index_error2='0.63', photon_index2='1.33', ts='8.41', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='7.78e-05', EG='0.96', time_epoch_completed='1632942443.49', return_code='0', job_id='761522', GAL2='0.83', EG2='0.97', return_code2='0', energy_flux_error='1.98e-05', photon_flux_error2='1.24e-08', ts2='8.99', photon_index='1.83' WHERE bin_id='330' AND source_name='4FGL J2321.5-1619' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 12:07:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 761522: <4FGL_J2321.5-1619_daily_bin330> in cluster <slac> Done

Job <4FGL_J2321.5-1619_daily_bin330> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 11:55:16 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:55:17 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:55:17 2021
Terminated at Wed Sep 29 12:07:24 2021
Results reported at Wed Sep 29 12:07:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.5-1619_daily_bin330 350.385 -16.3176 324864001 325123201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2321.5-1619 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   496.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   726 sec.
    Turnaround time :                            728 sec.

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

