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


Performing analysis on: 4FGL_J2321.5-1619_daily_bin1110
RA = 350.385, Dec = -16.3176
tmin = 527040001, tmax = 527299201
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='764984', job_status='RUN', time_executed='2021-09-29 12:09:27.732954', time_epoch_executed='1632942567.73' WHERE source_name='4FGL J2321.5-1619' and cadence='daily' and bin_id='1110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/764984

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/764984/ft1_4FGL_J2321.5-1619_daily_bin1110.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/764984/ft2_4FGL_J2321.5-1619_daily_bin1110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/764984/ft1_4FGL_J2321.5-1619_daily_bin1110.fits outfile=/scratch/kocevski/764984/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin1110.fits ra=350.385 dec=-16.3176 rad=12.0 tmin=527040001.0 tmax=527299201.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.97
user 5.67
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/764984/ft2_4FGL_J2321.5-1619_daily_bin1110.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/764984/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin1110.fits evtable="EVENTS" outfile="/scratch/kocevski/764984/ft1_filtered_4FGL_J2321.5-1619_daily_bin1110.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.57
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/764984/ft1_filtered_4FGL_J2321.5-1619_daily_bin1110.fits" evtable="EVENTS" scfile=/scratch/kocevski/764984/ft2_4FGL_J2321.5-1619_daily_bin1110.fits sctable="SC_DATA" outfile=/scratch/kocevski/764984/ltcube_527040001_527299201_4FGL_J2321.5-1619_daily_bin1110.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/764984/ft2_4FGL_J2321.5-1619_daily_bin1110.fits
.....................!
real 12.01
user 11.64
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/764984/ft1_filtered_4FGL_J2321.5-1619_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/764984/ft2_4FGL_J2321.5-1619_daily_bin1110.fits sctable="SC_DATA" expcube=/scratch/kocevski/764984/ltcube_527040001_527299201_4FGL_J2321.5-1619_daily_bin1110.fits outfile=/scratch/kocevski/764984/expmap_527040001_527299201_4FGL_J2321.5-1619_daily_bin1110.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/764984/ltcube_527040001_527299201_4FGL_J2321.5-1619_daily_bin1110.fits
.....................!
real 190.05
user 185.01
sys 4.64

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/764984/ft1_filtered_4FGL_J2321.5-1619_daily_bin1110.fits scfile=/scratch/kocevski/764984/ft2_4FGL_J2321.5-1619_daily_bin1110.fits outfile=/scratch/kocevski/764984/cmap_527040001_527299201_4FGL_J2321.5-1619_daily_bin1110.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/764984/ft1_filtered_4FGL_J2321.5-1619_daily_bin1110.fits scfile=/scratch/kocevski/764984/ft2_4FGL_J2321.5-1619_daily_bin1110.fits outfile=/scratch/kocevski/764984/cmap_HighResolution_527040001_527299201_4FGL_J2321.5-1619_daily_bin1110.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.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/764984/ft1_filtered_4FGL_J2321.5-1619_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/764984/ft2_4FGL_J2321.5-1619_daily_bin1110.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/764984/Model_4FGL_J2321.5-1619_daily_bin1110.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/764984/ft1_filtered_4FGL_J2321.5-1619_daily_bin1110.fits.....................!
real 36.22
user 34.84
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    89.470       1.0000         .10000E-03   10000.    
     2 'norm      '    .58261       1.0000         .10000E-03   10000.    
     3 'Prefactor '    230.97       1.0000         .10000E-03   10000.    
     4 'norm      '    .75586E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.913       1.0000         .10000E-03   10000.    
     8 'Prefactor '    52.029       1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.850       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    32.950       1.0000         .10000E-03   10000.    
    13 'norm      '    6.9236       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    38.420       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.531       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.0426       1.0000         .10000E-03   10000.    
    20 'norm      '    .16763E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    46.751       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .20416       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2460       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3101.528     FROM MIGRAD    STATUS=FAILED       890 CALLS     3427 TOTAL
                     EDM=   .89E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          89.361        149.20        .21240E-03   -.11776E-04
   2  norm          .58269        1.1228        .76459E-04    .26854E-03
   3  Prefactor     230.82        38.867        .13315E-03    .87384E-03
   4  norm          .10809E-03    90.245        .97346E-03** at limit **
   5  Prefactor     .10000E-03    37.375        .18142E-02** at limit **
   6  Prefactor     .10000E-03    7.4797        .14859E-02** at limit **
   7  Prefactor     12.919        21.423        .11147E-03    .86741E-04
   8  Prefactor     52.014        27.028        .55602E-04    .11450E-04
   9  Prefactor     29.668        137.57        .73333E-04   -.10852E-04
  10  Prefactor     .10000E-03    17.741        .18142E-02** at limit **
  11  Prefactor     .10000E-03    13.786        .18142E-02** at limit **
  12  norm          32.951        18.966        .69807E-04   -.88106E-04
  13  norm          6.9205        9.2289        .15247E-03   -.56146E-04
  14  Prefactor     .10000E-03    124.12        .18142E-02** at limit **
  15  Prefactor     38.434        51.451        .64663E-04   -.80418E-04
  16  Prefactor     .10000E-03    26.511        .18142E-02** at limit **
  17  Prefactor     19.551        94.095        .90628E-04   -.38260E-05
  18  Prefactor     .10000E-03    106.54        .18142E-02** at limit **
  19  norm          2.0407        1.5527        .56439E-04   -.64147E-03
  20  norm          .10011E-03    85.094        .35079E-02** at limit **
  21  Prefactor     46.744        26.033        .58642E-04   -.28964E-04
  22  Normalizat    .20439        .36774        .65256E-03   -.46603E-05
  23  Prefactor     1.2459        .30451        .23791E-03    .23085E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3101.528     FROM SIMPLEX   STATUS=PROGRESS    1122 CALLS     4549 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          89.362        149.20        .25660E-06   -1.3815    
   2  norm          .58269        1.1228        .14632E-06   -1.5555    
   3  Prefactor     230.82        38.867        .30569E-06   -1.2658    
   4  norm          .10809E-03    90.245        .17535E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    37.375        .93109E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.4797        .54469E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.919        21.423        .13085E-06   -1.4989    
   8  Prefactor     52.014        27.028        .12426E-06   -1.4264    
   9  Prefactor     29.668        137.57        .13780E-06   -1.4618    
  10  Prefactor     .10000E-03    17.741        .60097E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.786        .29885E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          32.951        18.966        .12814E-06   -1.4559    
  13  norm          6.9205        9.2289        .13395E-06   -1.5182    
  14  Prefactor     .10000E-03    124.12        .66823E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     38.434        51.451        .13090E-06   -1.4467    
  16  Prefactor     .10000E-03    26.511        .82778E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.551        94.095        .12887E-06   -1.4823    
  18  Prefactor     .10000E-03    106.54        .12616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.0407        1.5527        .13391E-06   -1.5422    
  20  norm          .10011E-03    85.094        .78750E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     46.744        26.033        .12463E-06   -1.4340    
  22  Normalizat    .20439        .36774        .11138E-06   -1.2909    
  23  Prefactor     1.2459        .30451        .73540E-07   -.84929    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3101.528     FROM MIGRAD    STATUS=CONVERGED    349 CALLS     4898 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          89.361        149.16        .84959E-05   -.58878E-05
   2  norm          .58269        1.1227        .30583E-05    .50666E-03
   3  Prefactor     230.82        38.349        .26629E-04    .21026E-02
   4  norm          .10000E-03    90.055        .38938E-04** at limit **
   5  Prefactor     .10000E-03    37.375        .36285E-03** at limit **
   6  Prefactor     .10000E-03    7.4801        .29718E-03** at limit **
   7  Prefactor     12.919        21.423        .44588E-05    .17440E-03
   8  Prefactor     52.014        27.027        .22241E-05    .10734E-04
   9  Prefactor     29.668        137.53        .14667E-04    .99218E-05
  10  Prefactor     .10000E-03    17.741        .36285E-03** at limit **
  11  Prefactor     .10000E-03    13.786        .36285E-03** at limit **
  12  norm          32.951        18.966        .27923E-05    .28500E-04
  13  norm          6.9205        9.2277        .60988E-05   -.14913E-05
  14  Prefactor     .10000E-03    124.12        .36285E-03** at limit **
  15  Prefactor     38.435        51.440        .12933E-04   -.26372E-05
  16  Prefactor     .10000E-03    26.511        .36285E-03** at limit **
  17  Prefactor     19.551        94.236        .36251E-05    .94083E-06
  18  Prefactor     .10000E-03    106.54        .36285E-03** at limit **
  19  norm          2.0407        1.5497        .22575E-05   -.22359E-03
  20  norm          .10000E-03    85.769        .70158E-03** at limit **
  21  Prefactor     46.744        26.031        .11728E-04   -.55252E-05
  22  Normalizat    .20439        .36683        .26102E-04    .88633E-04
  23  Prefactor     1.2459        .30401        .47582E-04    .31465E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 89.3614
  norm       = 0.582688
  Prefactor  = 230.823
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.9193
  Prefactor  = 52.0137
  Prefactor  = 29.6679
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 32.9512
  norm       = 6.92051
  Prefactor  = 0.0001
  Prefactor  = 38.4347
  Prefactor  = 0.0001
  Prefactor  = 19.5511
  Prefactor  = 0.0001
  norm       = 2.0407
  norm       = 0.0001
  Prefactor  = 46.7437
  Normalizat = 0.204386
  Prefactor  = 1.24595
 **********
 **   18 **HESSE 
 **********

 FCN=   3101.528     FROM HESSE     STATUS=OK           346 CALLS     5244 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          89.361        149.15        .16992E-05   -1.3815    
   2  norm          .58269        1.1227        .61167E-06   -1.5555    
   3  Prefactor     230.82        38.347        .53258E-05   -1.2658    
   4  norm          .10000E-03    90.086        .77877E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    37.375        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.4801        .59435E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.919        21.433        .89176E-06   -1.4989    
   8  Prefactor     52.014        27.094        .44482E-06   -1.4264    
   9  Prefactor     29.668        137.90        .29333E-05   -1.4618    
  10  Prefactor     .10000E-03    17.741        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.786        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          32.951        18.974        .55846E-06   -1.4559    
  13  norm          6.9205        9.2291        .12198E-05   -1.5182    
  14  Prefactor     .10000E-03    124.12        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     38.435        51.433        .25865E-05   -1.4467    
  16  Prefactor     .10000E-03    26.511        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.551        92.141        .72502E-06   -1.4823    
  18  Prefactor     .10000E-03    106.54        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.0407        1.5497        .45151E-06   -1.5422    
  20  norm          .10000E-03    85.796        .14032E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     46.744        26.032        .23457E-05   -1.4340    
  22  Normalizat    .20439        .36672        .52205E-05   -1.2909    
  23  Prefactor     1.2459        .30408        .95164E-05   -.84929    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48608e-09
Minuit parameter uncertainties:
  1  149.785
  2  1.12277
  3  38.3516
  4  1.78873e-05
  5  9.97298e-07
  6  5.22714e-08
  7  21.4458
  8  27.1005
  9  128.412
  10  3.0065e-07
  11  1.01604e-06
  12  18.9771
  13  9.23096
  14  1.28573e-05
  15  51.4926
  16  2.25757e-07
  17  85.1018
  18  1.28622e-07
  19  1.54976
  20  0.000145092
  21  26.0387
  22  0.371178
  23  0.30451
Done.

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

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  3.007e-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.246e+00  3.045e-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:  2.044e-01  3.712e-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: 8.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/764984/likelihoodResults_527040001_527299201_4FGL_J2321.5-1619_daily_bin1110.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) = 3101.52852983
delta logL = -0.000262527400992

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3101.52827173
delta logL = -4.42157715952e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15553E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2121       1.0000          .0000       10.000    
     3 'Normalizat'    .20438       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2459       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3101.528     FROM MIGRAD    STATUS=FAILED        93 CALLS      281 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12090E-03    4.8447        .18142E-01** at limit **
   2  Index         1.8339        7.5988        .50000        .14500E-04
   3  Normalizat    .20439        .38940E-02    .65235E-03   -.70981E-04
   4  Prefactor     1.2459        .33806E-02    .23791E-03   -.45861E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3101.528     FROM SIMPLEX   STATUS=PROGRESS      81 CALLS      362 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11002E-03    4.8447        .78938E-03** at limit **
   2  Index         1.6509        7.5988        .67935E-01    .14500E-04
   3  Normalizat    .20428        .38940E-02    .11322E-03   -.70981E-04
   4  Prefactor     1.2459        .33806E-02    .34298E-04   -.45861E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3101.528     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      398 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10063E-03    14.129        .22859E-01** at limit **
   2  Index         1.5085        9.1085        .50000        .42784E-05
   3  Normalizat    .20428        .58085E-02    .26094E-04   -.96150E-02
   4  Prefactor     1.2459        .50417E-02    .47582E-04   -.26435E-01
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010063
  Index      = 1.50848
  Normalizat = 0.204282
  Prefactor  = 1.24586
 **********
 **   18 **HESSE 
 **********

 FCN=   3101.528     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      427 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10063E-03    229.63        .26187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5085        9.2314        .50000       -.77302    
   3  Normalizat    .20428        .23730E-01    .52188E-05   -1.2910    
   4  Prefactor     1.2459        .20595E-01    .95165E-05   -.84932    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.46425e-07
Minuit parameter uncertainties:
  1  0.0241527
  2  689.11
  3  0.0237315
  4  0.0205956
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/764984': 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) = 3101.52826738
delta logL = -7.13957888365e-08

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.006e-04  2.415e-02  1.000e-04  1.000e+04 ( 1.000e-14)
352        Index:  1.508e+00  6.891e+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.246e+00  2.060e-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:  2.043e-01  2.373e-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/764984/cmap_HighResolution_527040001_527299201_4FGL_J2321.5-1619_daily_bin1110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.03e-03', job_status='DONE', photon_flux_upper_limit='8.16e-08', time_completed='2021-09-29 12:21:00.352508', job_id='764984', GAL2='1.25', fit_tolerance='1e-08', EG2='0.20', EG='0.20', time_epoch_completed='1632943260.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='-7.14e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.83' WHERE bin_id='1110' AND source_name='4FGL J2321.5-1619' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 12:21:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 764984: <4FGL_J2321.5-1619_daily_bin1110> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.5-1619_daily_bin1110 350.385 -16.3176 527040001 527299201 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 :                                   543.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             213.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            913 sec.

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

