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


Performing analysis on: 4FGL_J2321.5-1619_daily_bin1061
RA = 350.385, Dec = -16.3176
tmin = 514339201, tmax = 514598401
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='764908', job_status='RUN', time_executed='2021-09-29 12:09:35.054493', time_epoch_executed='1632942575.05' WHERE source_name='4FGL J2321.5-1619' and cadence='daily' and bin_id='1061'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/764908

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/764908/ft1_4FGL_J2321.5-1619_daily_bin1061.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/764908/ft2_4FGL_J2321.5-1619_daily_bin1061.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/764908/ft1_4FGL_J2321.5-1619_daily_bin1061.fits outfile=/scratch/kocevski/764908/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin1061.fits ra=350.385 dec=-16.3176 rad=12.0 tmin=514339201.0 tmax=514598401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.14
user 3.88
sys 0.23

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/764908/ft1_filtered_4FGL_J2321.5-1619_daily_bin1061.fits" evtable="EVENTS" scfile=/scratch/kocevski/764908/ft2_4FGL_J2321.5-1619_daily_bin1061.fits sctable="SC_DATA" outfile=/scratch/kocevski/764908/ltcube_514339201_514598401_4FGL_J2321.5-1619_daily_bin1061.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/764908/ft2_4FGL_J2321.5-1619_daily_bin1061.fits
.....................!
real 11.86
user 11.51
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/764908/ft1_filtered_4FGL_J2321.5-1619_daily_bin1061.fits evtable="EVENTS" scfile=/scratch/kocevski/764908/ft2_4FGL_J2321.5-1619_daily_bin1061.fits sctable="SC_DATA" expcube=/scratch/kocevski/764908/ltcube_514339201_514598401_4FGL_J2321.5-1619_daily_bin1061.fits outfile=/scratch/kocevski/764908/expmap_514339201_514598401_4FGL_J2321.5-1619_daily_bin1061.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/764908/ltcube_514339201_514598401_4FGL_J2321.5-1619_daily_bin1061.fits
.....................!
real 190.17
user 185.31
sys 4.44

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/764908/ft1_filtered_4FGL_J2321.5-1619_daily_bin1061.fits scfile=/scratch/kocevski/764908/ft2_4FGL_J2321.5-1619_daily_bin1061.fits outfile=/scratch/kocevski/764908/cmap_514339201_514598401_4FGL_J2321.5-1619_daily_bin1061.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/764908/ft1_filtered_4FGL_J2321.5-1619_daily_bin1061.fits scfile=/scratch/kocevski/764908/ft2_4FGL_J2321.5-1619_daily_bin1061.fits outfile=/scratch/kocevski/764908/cmap_HighResolution_514339201_514598401_4FGL_J2321.5-1619_daily_bin1061.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/764908/ft1_filtered_4FGL_J2321.5-1619_daily_bin1061.fits evtable="EVENTS" scfile=/scratch/kocevski/764908/ft2_4FGL_J2321.5-1619_daily_bin1061.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/764908/Model_4FGL_J2321.5-1619_daily_bin1061.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/764908/ft1_filtered_4FGL_J2321.5-1619_daily_bin1061.fits.....................!
real 45.37
user 44.01
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    43.798       1.0000         .10000E-03   10000.    
     2 'norm      '    .44628E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.548       1.0000         .10000E-03   10000.    
     4 'norm      '    5.6393       1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.501       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.376       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.5347       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    37.995       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.4043       1.0000         .10000E-03   10000.    
    16 'Prefactor '    77.838       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.2922       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.023       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1156       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .70835       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=   4965.859     FROM MIGRAD    STATUS=CONVERGED    508 CALLS     2519 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          43.795        43.862        .72018E-06   -.90316E-05
   2  norm          .39113E-01    .60575       -.47648E-06    .19949E-02
   3  Prefactor     13.623        43.376        .26125E-05    .91186E-05
   4  norm          5.6353        3.6093       -.17385E-05   -.53305E-03
   5  Prefactor     30.490        52.772        .12049E-04    .47419E-04
   6  Prefactor     19.374        12.064       -.15217E-06    .41880E-05
   7  Prefactor     5.5336        8.0533       -.11934E-06    .26289E-04
   8  Prefactor     .10000E-03    7.2250        .36788E-06** at limit **
   9  Prefactor     .10000E-03    32.074        .10406E-05** at limit **
  10  Prefactor     .10000E-03    7.2586       -.45508E-06** at limit **
  11  Prefactor     37.993        12.899        .13950E-07   -.23954E-04
  12  norm          .10000E-03    1.9691       -.98293E-08** at limit **
  13  norm          .10000E-03    1.1986       -.46685E-07** at limit **
  14  Prefactor     .10000E-03    18.844       -.45739E-07** at limit **
  15  Prefactor     9.4039        12.931        .16045E-06    .21146E-05
  16  Prefactor     77.838        42.172        .65269E-06   -.12832E-04
  17  Prefactor     .10000E-03    78.191       -.16836E-05** at limit **
  18  Prefactor     .10000E-03    33.125       -.95545E-06** at limit **
  19  norm          1.2922        .61671        .19871E-07    .59291E-04
  20  norm          .10000E-03    3.9178       -.94540E-07** at limit **
  21  Prefactor     13.022        9.7416        .28700E-06   -.81382E-05
  22  Normalizat    1.1157        .21533       -.31690E-05    .11495E-03
  23  Prefactor     .70834        .18129        .24099E-05   -.67804E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 43.7951
  norm       = 0.0391133
  Prefactor  = 13.623
  norm       = 5.63531
  Prefactor  = 30.4901
  Prefactor  = 19.3742
  Prefactor  = 5.53358
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.9931
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.40392
  Prefactor  = 77.8378
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.29219
  norm       = 0.0001
  Prefactor  = 13.0215
  Normalizat = 1.11566
  Prefactor  = 0.708337
 **********
 **   18 **HESSE 
 **********

 FCN=   4965.859     FROM HESSE     STATUS=OK           374 CALLS     2893 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          43.795        43.891        .60578E-04   -1.4383    
   2  norm          .39113E-01    5.3841        .99303E-03   -1.5668    
   3  Prefactor     13.623        43.567        .10882E-03   -1.4970    
   4  norm          5.6353        3.6089        .49699E-04   -1.5233    
   5  Prefactor     30.490        52.892        .72548E-04   -1.4603    
   6  Prefactor     19.374        12.065        .90990E-04   -1.4827    
   7  Prefactor     5.5336        8.0467        .17078E-03   -1.5237    
   8  Prefactor     .10000E-03    7.2476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    32.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.2573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     37.993        12.902        .65022E-04   -1.4474    
  12  norm          .10000E-03    1.9722        .96552E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.2064        .75282E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.4039        12.927        .13068E-03   -1.5095    
  16  Prefactor     77.838        42.481        .45517E-04   -1.3941    
  17  Prefactor     .10000E-03    78.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    33.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.2922        .61280        .36655E-04   -1.5481    
  20  norm          .10000E-03    3.9875        .27131E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.022        9.7687        .11099E-03   -1.4986    
  22  Normalizat    1.1157        .25225        .25412E-03   -.89251    
  23  Prefactor     .70834        .21208        .27170E-03   -1.0320    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.68945e-09
Minuit parameter uncertainties:
  1  43.9232
  2  0.91671
  3  43.6688
  4  3.60907
  5  52.9739
  6  12.0665
  7  8.04826
  8  2.97886e-06
  9  3.78458e-05
  10  7.42438e-06
  11  12.9033
  12  1.23652e-07
  13  5.315e-08
  14  3.16354e-07
  15  12.9311
  16  42.4976
  17  0.000117005
  18  3.23156e-05
  19  0.612804
  20  1.77126e-06
  21  9.76989
  22  0.252528
  23  0.212327
Done.

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

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  7.424e-06  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:  7.083e-01  2.123e-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.116e+00  2.525e-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.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/764908/likelihoodResults_514339201_514598401_4FGL_J2321.5-1619_daily_bin1061.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) = 4965.85973736
delta logL = -0.00063312612474

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4965.85910466
delta logL = -4.2623742047e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11074E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7971       1.0000          .0000       10.000    
     3 'Normalizat'    1.1156       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70837       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=   4965.859     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      243 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10107E-03    39.728        .18142E-02** at limit **
   2  Index         1.7457        8.9139        .50000        .29386E-04
   3  Normalizat    1.1157        .11502E-01    .25412E-03    .26868E-03
   4  Prefactor     .70834        .10060E-01    .27170E-03    .32919E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101069
  Index      = 1.7457
  Normalizat = 1.11566
  Prefactor  = 0.708342
 **********
 **   18 **HESSE 
 **********

 FCN=   4965.859     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10107E-03    176.32        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7457        9.1165        .50000       -.70872    
   3  Normalizat    1.1157        .24732E-01    .50824E-04   -.89251    
   4  Prefactor     .70834        .21632E-01    .54340E-04   -1.0320    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.32923e-08
Minuit parameter uncertainties:
  1  0.0275365
  2  230.207
  3  0.0247321
  4  0.021632
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/764908': 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) = 4965.85910358
delta logL = 6.53205461276e-07

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.011e-04  2.754e-02  1.000e-04  1.000e+04 ( 1.000e-14)
352        Index:  1.746e+00  2.302e+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:  7.083e-01  2.163e-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.116e+00  2.473e-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/764908/cmap_HighResolution_514339201_514598401_4FGL_J2321.5-1619_daily_bin1061.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.50e-03', job_status='DONE', photon_flux_upper_limit='3.39e-08', time_completed='2021-09-29 12:21:14.224719', job_id='764908', GAL2='0.71', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1632943274.22', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='6.53e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.83' WHERE bin_id='1061' AND source_name='4FGL J2321.5-1619' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 12:21:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 764908: <4FGL_J2321.5-1619_daily_bin1061> in cluster <slac> Done

Job <4FGL_J2321.5-1619_daily_bin1061> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 12:05:41 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 12:05:42 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:05:42 2021
Terminated at Wed Sep 29 12:21:19 2021
Results reported at Wed Sep 29 12:21:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.5-1619_daily_bin1061 350.385 -16.3176 514339201 514598401 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 :                                   550.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             191.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            938 sec.

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

