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


Performing analysis on: 4FGL_J2321.5-1619_daily_bin1309
RA = 350.385, Dec = -16.3176
tmin = 578620801, tmax = 578880001
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='765283', job_status='RUN', time_executed='2021-09-29 12:06:29.737397', time_epoch_executed='1632942389.74' WHERE source_name='4FGL J2321.5-1619' and cadence='daily' and bin_id='1309'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/765283

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/765283/ft1_4FGL_J2321.5-1619_daily_bin1309.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/765283/ft2_4FGL_J2321.5-1619_daily_bin1309.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/765283/ft1_4FGL_J2321.5-1619_daily_bin1309.fits outfile=/scratch/kocevski/765283/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin1309.fits ra=350.385 dec=-16.3176 rad=12.0 tmin=578620801.0 tmax=578880001.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.85
user 3.30
sys 0.53

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/765283/ft1_filtered_4FGL_J2321.5-1619_daily_bin1309.fits evtable="EVENTS" scfile=/scratch/kocevski/765283/ft2_4FGL_J2321.5-1619_daily_bin1309.fits sctable="SC_DATA" expcube=/scratch/kocevski/765283/ltcube_578620801_578880001_4FGL_J2321.5-1619_daily_bin1309.fits outfile=/scratch/kocevski/765283/expmap_578620801_578880001_4FGL_J2321.5-1619_daily_bin1309.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/765283/ltcube_578620801_578880001_4FGL_J2321.5-1619_daily_bin1309.fits
.....................!
real 192.64
user 187.16
sys 5.16

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/765283/ft1_filtered_4FGL_J2321.5-1619_daily_bin1309.fits scfile=/scratch/kocevski/765283/ft2_4FGL_J2321.5-1619_daily_bin1309.fits outfile=/scratch/kocevski/765283/cmap_578620801_578880001_4FGL_J2321.5-1619_daily_bin1309.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/765283/ft1_filtered_4FGL_J2321.5-1619_daily_bin1309.fits scfile=/scratch/kocevski/765283/ft2_4FGL_J2321.5-1619_daily_bin1309.fits outfile=/scratch/kocevski/765283/cmap_HighResolution_578620801_578880001_4FGL_J2321.5-1619_daily_bin1309.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/765283/ft1_filtered_4FGL_J2321.5-1619_daily_bin1309.fits evtable="EVENTS" scfile=/scratch/kocevski/765283/ft2_4FGL_J2321.5-1619_daily_bin1309.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/765283/Model_4FGL_J2321.5-1619_daily_bin1309.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/765283/ft1_filtered_4FGL_J2321.5-1619_daily_bin1309.fits.....................!
real 51.72
user 50.40
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.7519       1.0000         .10000E-03   10000.    
     3 'Prefactor '    84.676       1.0000         .10000E-03   10000.    
     4 'norm      '    1.5212       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.3600       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .50506E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.951       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.1177       1.0000         .10000E-03   10000.    
    12 'norm      '    4.9082       1.0000         .10000E-03   10000.    
    13 'norm      '    .58254E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.497       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    73.149       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12326E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    12.669       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.833       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1941       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .69090       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=   5967.637     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     2655 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    14.678       -.25185E-08** at limit **
   2  norm          4.7518        1.4486       -.11045E-06    .26610E-03
   3  Prefactor     84.751        52.363       -.26870E-05    .26638E-03
   4  norm          1.5154        3.6719        .40018E-05    .61397E-03
   5  Prefactor     6.3287        92.873       -.32467E-04   -.17859E-04
   6  Prefactor     .10000E-03    10.622       -.26529E-06** at limit **
   7  Prefactor     .10000E-03    5.8521        .12596E-06** at limit **
   8  Prefactor     .11083E-03    11.257        .26319E-05** at limit **
   9  Prefactor     .10000E-03    38.943        .52833E-06** at limit **
  10  Prefactor     14.959        22.361       -.58806E-06   -.16376E-05
  11  Prefactor     9.1179        7.8552        .10013E-06   -.11134E-05
  12  norm          4.9080        4.7719       -.48037E-07   -.15064E-04
  13  norm          .10002E-03    1.8145        .35357E-06** at limit **
  14  Prefactor     32.501        35.801        .12241E-06   -.21796E-04
  15  Prefactor     .10000E-03    5.7104       -.30377E-08** at limit **
  16  Prefactor     73.082        43.916       -.52888E-05   -.13137E-03
  17  Prefactor     .10000E-03    19.052       -.13301E-06** at limit **
  18  Prefactor     .10000E-03    76.085       -.23874E-05** at limit **
  19  norm          .10000E-03    .20709        .22583E-08** at limit **
  20  norm          12.669        5.0273       -.46966E-07   -.36115E-04
  21  Prefactor     12.833        9.6437        .28679E-06   -.35245E-03
  22  Normalizat    1.1939        .20422        .23833E-05   -.48270E-03
  23  Prefactor     .69107        .16944       -.12582E-05   -.13918E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 4.75178
  Prefactor  = 84.7507
  norm       = 1.51542
  Prefactor  = 6.32873
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000110826
  Prefactor  = 0.0001
  Prefactor  = 14.9586
  Prefactor  = 9.11789
  norm       = 4.90795
  norm       = 0.000100018
  Prefactor  = 32.5012
  Prefactor  = 0.0001
  Prefactor  = 73.0817
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.6687
  Prefactor  = 12.8328
  Normalizat = 1.1939
  Prefactor  = 0.691066
 **********
 **   18 **HESSE 
 **********

 FCN=   5967.637     FROM HESSE     STATUS=OK           378 CALLS     3033 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    14.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.7518        1.4485        .48971E-04   -1.5272    
   3  Prefactor     84.751        52.801        .43655E-04   -1.3864    
   4  norm          1.5154        3.7149        .10013E-03   -1.5462    
   5  Prefactor     6.3287        92.048        .15916E-03   -1.5205    
   6  Prefactor     .10000E-03    10.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.8716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .11083E-03    16.743        .72872E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    39.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.959        22.367        .10358E-03   -1.4934    
  11  Prefactor     9.1179        7.8513        .13273E-03   -1.5104    
  12  norm          4.9080        4.7687        .15787E-03   -1.5265    
  13  norm          .10002E-03    9.0827        .19357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     32.501        35.893        .70291E-04   -1.4567    
  15  Prefactor     .10000E-03    5.7157        .18024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     73.082        43.417        .46942E-04   -1.3996    
  17  Prefactor     .10000E-03    19.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    76.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .23838        .66706E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          12.669        4.9178        .10198E-03   -1.4996    
  21  Prefactor     12.833        9.6984        .55909E-03   -1.4991    
  22  Normalizat    1.1939        .24640        .25311E-03   -.86792    
  23  Prefactor     .69107        .20216        .28398E-03   -1.0388    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.50725e-09
Minuit parameter uncertainties:
  1  5.228e-06
  2  1.44855
  3  52.8304
  4  3.71544
  5  48.3613
  6  0.000120652
  7  4.03241e-06
  8  0.0269336
  9  4.38096e-05
  10  22.3794
  11  7.85222
  12  4.76905
  13  0.000801901
  14  35.9166
  15  2.5367e-06
  16  43.4363
  17  7.12045e-06
  18  0.000251769
  19  1.34235e-06
  20  4.91798
  21  9.6996
  22  0.246636
  23  0.202379
Done.

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

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.496e+01  2.238e+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:  6.911e-01  2.024e-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.194e+00  2.466e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.69
Ra Dec: 350.385 -16.318
Photon Flux Upper Limit: 6.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/765283/likelihoodResults_578620801_578880001_4FGL_J2321.5-1619_daily_bin1309.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): 0
logL (Free Index) = 5967.6345958
delta logL = 0.00213437605362

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5967.63359458
delta logL = 0.00313559650567

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.822       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8987       1.0000          .0000       10.000    
     3 'Normalizat'    1.1928       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69148       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=   5967.634     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      294 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.820        27.871        .10774E-03    .90962E-04
   2  Index         1.8989        .95785        .10477E-01    .78891E-04
   3  Normalizat    1.1925        .22494        .25323E-03   -.17464E-04
   4  Prefactor     .69172        .19792        .28386E-03   -.72091E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.8202
  Index      = 1.8989
  Normalizat = 1.19254
  Prefactor  = 0.691716
 **********
 **   18 **HESSE 
 **********

 FCN=   5967.634     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.820        25.695        .43094E-05   -1.4964    
   2  Index         1.8989        .88443        .41909E-03   -.66902    
   3  Normalizat    1.1925        .22485        .10129E-04   -.86834    
   4  Prefactor     .69172        .19795        .11354E-04   -1.0385    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6938e-10
Minuit parameter uncertainties:
  1  25.7159
  2  0.8921
  3  0.225035
  4  0.198152
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/765283': 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) = 5967.6335938
delta logL = 0.00313637722866

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.382e+01  2.572e+01  1.000e-04  1.000e+04 ( 1.000e-14)
352        Index:  1.899e+00  8.921e-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:  6.917e-01  1.982e-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.193e+00  2.250e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.69
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/765283/cmap_HighResolution_578620801_578880001_4FGL_J2321.5-1619_daily_bin1309.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.62e-03', job_status='DONE', photon_flux_upper_limit='6.26e-08', time_completed='2021-09-29 12:16:50.405601', job_id='765283', GAL2='0.69', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1632943010.41', return_code2='0', ts='0.69', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='3.14e-03', ts2='0.69', photon_index_error='0.00', photon_index='1.83' WHERE bin_id='1309' AND source_name='4FGL J2321.5-1619' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 12:16:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 765283: <4FGL_J2321.5-1619_daily_bin1309> in cluster <slac> Done

Job <4FGL_J2321.5-1619_daily_bin1309> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 12:06:14 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 12:06:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 12:06:16 2021
Terminated at Wed Sep 29 12:16:51 2021
Results reported at Wed Sep 29 12:16:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.5-1619_daily_bin1309 350.385 -16.3176 578620801 578880001 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 :                                   614.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   634 sec.
    Turnaround time :                            637 sec.

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

