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


Performing analysis on: 4FGL_J2321.5-1619_daily_bin589
RA = 350.385, Dec = -16.3176
tmin = 391996801, tmax = 392256001
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='763015', job_status='RUN', time_executed='2021-09-29 12:00:33.398696', time_epoch_executed='1632942033.4' WHERE source_name='4FGL J2321.5-1619' and cadence='daily' and bin_id='589'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/763015

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/763015/ft1_4FGL_J2321.5-1619_daily_bin589.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/763015/ft2_4FGL_J2321.5-1619_daily_bin589.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/763015/ft1_4FGL_J2321.5-1619_daily_bin589.fits outfile=/scratch/kocevski/763015/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin589.fits ra=350.385 dec=-16.3176 rad=12.0 tmin=391996801.0 tmax=392256001.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.37
user 5.08
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/763015/ft2_4FGL_J2321.5-1619_daily_bin589.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/763015/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin589.fits evtable="EVENTS" outfile="/scratch/kocevski/763015/ft1_filtered_4FGL_J2321.5-1619_daily_bin589.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/763015/ft1_filtered_4FGL_J2321.5-1619_daily_bin589.fits" evtable="EVENTS" scfile=/scratch/kocevski/763015/ft2_4FGL_J2321.5-1619_daily_bin589.fits sctable="SC_DATA" outfile=/scratch/kocevski/763015/ltcube_391996801_392256001_4FGL_J2321.5-1619_daily_bin589.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/763015/ft2_4FGL_J2321.5-1619_daily_bin589.fits
.....................!
real 11.60
user 11.21
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/763015/ft1_filtered_4FGL_J2321.5-1619_daily_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/763015/ft2_4FGL_J2321.5-1619_daily_bin589.fits sctable="SC_DATA" expcube=/scratch/kocevski/763015/ltcube_391996801_392256001_4FGL_J2321.5-1619_daily_bin589.fits outfile=/scratch/kocevski/763015/expmap_391996801_392256001_4FGL_J2321.5-1619_daily_bin589.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/763015/ltcube_391996801_392256001_4FGL_J2321.5-1619_daily_bin589.fits
.....................!
real 191.69
user 186.73
sys 4.53

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/763015/ft1_filtered_4FGL_J2321.5-1619_daily_bin589.fits scfile=/scratch/kocevski/763015/ft2_4FGL_J2321.5-1619_daily_bin589.fits outfile=/scratch/kocevski/763015/cmap_391996801_392256001_4FGL_J2321.5-1619_daily_bin589.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/763015/ft1_filtered_4FGL_J2321.5-1619_daily_bin589.fits scfile=/scratch/kocevski/763015/ft2_4FGL_J2321.5-1619_daily_bin589.fits outfile=/scratch/kocevski/763015/cmap_HighResolution_391996801_392256001_4FGL_J2321.5-1619_daily_bin589.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=350.385 yref=-16.3176 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10508E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.746       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5499       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.263       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6708       1.0000         .10000E-03   10000.    
    12 'norm      '    .10247E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .97950       1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.757       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.878       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    94.785       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .18145E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.9084       1.0000         .10000E-03   10000.    
    20 'norm      '    2.8081       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.9625       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .61556       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1094       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=   7090.786     FROM MIGRAD    STATUS=CONVERGED    516 CALLS     2911 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    27.142        .58595E-05** at limit **
   2  norm          .10000E-03    .26379       -.38459E-06** at limit **
   3  Prefactor     .10000E-03    4.0749       -.52783E-06** at limit **
   4  norm          .10000E-03    .21967       -.24801E-06** at limit **
   5  Prefactor     .10000E-03    14.218       -.13292E-05** at limit **
   6  Prefactor     12.745        8.4431       -.98536E-07    .58501E-04
   7  Prefactor     .10000E-03    3.7978       -.48995E-06** at limit **
   8  Prefactor     3.5501        5.1148       -.59374E-06    .17956E-03
   9  Prefactor     18.218        51.326       -.70133E-05   -.15117E-04
  10  Prefactor     .10000E-03    6.0694       -.13282E-06** at limit **
  11  Prefactor     1.6748        13.384        .69689E-05   -.11910E-03
  12  norm          .10000E-03    2.8147        .22398E-05** at limit **
  13  norm          .97940        1.5012       -.18901E-05   -.18499E-02
  14  Prefactor     27.760        27.399        .12392E-06    .24346E-04
  15  Prefactor     16.878        11.660        .42073E-07    .30374E-04
  16  Prefactor     .10000E-03    15.394       -.43280E-07** at limit **
  17  Prefactor     94.762        56.588        .79260E-06   -.87572E-05
  18  Prefactor     .10000E-03    81.257        .59791E-05** at limit **
  19  norm          4.9084        .84528        .18436E-07    .12522E-03
  20  norm          2.8082        3.3349       -.10879E-06    .55089E-04
  21  Prefactor     3.9623        5.4604       -.14534E-05    .41164E-03
  22  Normalizat    .61555        .15358        .13941E-05    .17877E-03
  23  Prefactor     1.1094        .14616        .86905E-06    .10591E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.7448
  Prefactor  = 0.0001
  Prefactor  = 3.55011
  Prefactor  = 18.2177
  Prefactor  = 0.0001
  Prefactor  = 1.67475
  norm       = 0.000100001
  norm       = 0.979396
  Prefactor  = 27.7599
  Prefactor  = 16.878
  Prefactor  = 0.0001
  Prefactor  = 94.7619
  Prefactor  = 0.0001
  norm       = 4.90837
  norm       = 2.80824
  Prefactor  = 3.96233
  Normalizat = 0.615551
  Prefactor  = 1.10943
 **********
 **   18 **HESSE 
 **********

 FCN=   7090.786     FROM HESSE     STATUS=OK           376 CALLS     3287 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    68.762        .51537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .38619        .83310E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.0980        .16594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .22612        .76958E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.745        8.4476        .11220E-03   -1.4994    
   7  Prefactor     .10000E-03    3.8177        .16025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.5501        5.1054        .10726E-02   -1.5331    
   9  Prefactor     18.218        54.702        .93721E-04   -1.4854    
  10  Prefactor     .10000E-03    6.0712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.6748        17.680        .16306E-02   -1.5449    
  12  norm          .10000E-03    2.7456        .13546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .97940        1.4544        .13892E-02   -1.5510    
  14  Prefactor     27.760        27.405        .76041E-04   -1.4654    
  15  Prefactor     16.878        11.660        .97490E-04   -1.4886    
  16  Prefactor     .10000E-03    15.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     94.762        56.562        .20641E-03   -1.3758    
  18  Prefactor     .10000E-03    81.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.9084        .84827        .28887E-04   -1.5265    
  20  norm          2.8082        3.3322        .15246E-03   -1.5373    
  21  Prefactor     3.9623        5.4433        .10132E-02   -1.5310    
  22  Normalizat    .61555        .17826        .28441E-03   -1.0733    
  23  Prefactor     1.1094        .16945        .20863E-03   -.89166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49966e-09
Minuit parameter uncertainties:
  1  0.000684623
  2  1.26933e-05
  3  9.94137e-06
  4  1.13426e-06
  5  2.09753e-05
  6  8.44836
  7  4.57259e-06
  8  5.10605
  9  54.8529
  10  6.38204e-07
  11  10.8867
  12  9.27207e-05
  13  1.45449
  14  27.4172
  15  11.6617
  16  7.50238e-05
  17  56.5941
  18  0.000176437
  19  0.848272
  20  3.33241
  21  5.44396
  22  0.178424
  23  0.169535
Done.

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

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  6.382e-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:  1.109e+00  1.695e-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.156e-01  1.784e-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: 2.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/763015/likelihoodResults_391996801_392256001_4FGL_J2321.5-1619_daily_bin589.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) = 7090.78651096
delta logL = -0.000779812103247

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7090.78573211
delta logL = -9.57636984822e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10839E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8011       1.0000          .0000       10.000    
     3 'Normalizat'    .61573       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1093       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=   7090.786     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      238 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10073E-03    33.295        .18142E-02** at limit **
   2  Index         1.7609        6.6648        .50000        .28590E-04
   3  Normalizat    .61555        .83565E-02    .28440E-03    .29221E-04
   4  Prefactor     1.1094        .80903E-02    .20863E-03    .38798E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100726
  Index      = 1.76086
  Normalizat = 0.61555
  Prefactor  = 1.10943
 **********
 **   18 **HESSE 
 **********

 FCN=   7090.786     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10073E-03    150.98        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7609        6.3130        .50000       -.70473    
   3  Normalizat    .61555        .18182E-01    .11376E-04   -1.0733    
   4  Prefactor     1.1094        .17603E-01    .41727E-04   -.89166    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.09661e-08
Minuit parameter uncertainties:
  1  0.020994
  2  224.203
  3  0.0181823
  4  0.0176026
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/763015': 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) = 7090.78573064
delta logL = 5.08412085765e-07

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.007e-04  2.099e-02  1.000e-04  1.000e+04 ( 1.000e-14)
352        Index:  1.761e+00  2.242e+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:  1.109e+00  1.760e-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:  6.155e-01  1.818e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/763015/cmap_HighResolution_391996801_392256001_4FGL_J2321.5-1619_daily_bin589.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.01e-03', job_status='DONE', photon_flux_upper_limit='2.72e-08', time_completed='2021-09-29 12:12:09.593094', job_id='763015', GAL2='1.11', fit_tolerance='1e-08', EG2='0.62', EG='0.62', time_epoch_completed='1632942729.59', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='5.08e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.83' WHERE bin_id='589' AND source_name='4FGL J2321.5-1619' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 12:12:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 763015: <4FGL_J2321.5-1619_daily_bin589> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.5-1619_daily_bin589 350.385 -16.3176 391996801 392256001 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 :                                   693.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   712 sec.
    Turnaround time :                            714 sec.

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

