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


Performing analysis on: 4FGL_J2321.5-1619_daily_bin595
RA = 350.385, Dec = -16.3176
tmin = 393552001, tmax = 393811201
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='763024', job_status='RUN', time_executed='2021-09-29 12:04:12.438003', time_epoch_executed='1632942252.44' WHERE source_name='4FGL J2321.5-1619' and cadence='daily' and bin_id='595'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/763024

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/763024/ft1_4FGL_J2321.5-1619_daily_bin595.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/763024/ft2_4FGL_J2321.5-1619_daily_bin595.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/763024/ft1_4FGL_J2321.5-1619_daily_bin595.fits outfile=/scratch/kocevski/763024/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin595.fits ra=350.385 dec=-16.3176 rad=12.0 tmin=393552001.0 tmax=393811201.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.47
user 3.25
sys 0.21

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/763024/ft1_filtered_4FGL_J2321.5-1619_daily_bin595.fits" evtable="EVENTS" scfile=/scratch/kocevski/763024/ft2_4FGL_J2321.5-1619_daily_bin595.fits sctable="SC_DATA" outfile=/scratch/kocevski/763024/ltcube_393552001_393811201_4FGL_J2321.5-1619_daily_bin595.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/763024/ft2_4FGL_J2321.5-1619_daily_bin595.fits
.....................!
real 11.99
user 11.65
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/763024/ft1_filtered_4FGL_J2321.5-1619_daily_bin595.fits evtable="EVENTS" scfile=/scratch/kocevski/763024/ft2_4FGL_J2321.5-1619_daily_bin595.fits sctable="SC_DATA" expcube=/scratch/kocevski/763024/ltcube_393552001_393811201_4FGL_J2321.5-1619_daily_bin595.fits outfile=/scratch/kocevski/763024/expmap_393552001_393811201_4FGL_J2321.5-1619_daily_bin595.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/763024/ltcube_393552001_393811201_4FGL_J2321.5-1619_daily_bin595.fits
.....................!
real 190.69
user 185.81
sys 4.57

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/763024/ft1_filtered_4FGL_J2321.5-1619_daily_bin595.fits scfile=/scratch/kocevski/763024/ft2_4FGL_J2321.5-1619_daily_bin595.fits outfile=/scratch/kocevski/763024/cmap_393552001_393811201_4FGL_J2321.5-1619_daily_bin595.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/763024/ft1_filtered_4FGL_J2321.5-1619_daily_bin595.fits scfile=/scratch/kocevski/763024/ft2_4FGL_J2321.5-1619_daily_bin595.fits outfile=/scratch/kocevski/763024/cmap_HighResolution_393552001_393811201_4FGL_J2321.5-1619_daily_bin595.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/763024/ft1_filtered_4FGL_J2321.5-1619_daily_bin595.fits evtable="EVENTS" scfile=/scratch/kocevski/763024/ft2_4FGL_J2321.5-1619_daily_bin595.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/763024/Model_4FGL_J2321.5-1619_daily_bin595.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/763024/ft1_filtered_4FGL_J2321.5-1619_daily_bin595.fits.....................!
real 44.04
user 42.74
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4910.77085324

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    50.104       1.0000         .10000E-03   10000.    
     2 'norm      '    .91204       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.6994       1.0000         .10000E-03   10000.    
     4 'norm      '    .66666E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.380       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5112       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.276       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10249E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .24336       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .17395E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10290E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    31.322       1.0000         .10000E-03   10000.    
    17 'Prefactor '    65.046       1.0000         .10000E-03   10000.    
    18 'Prefactor '    63.878       1.0000         .10000E-03   10000.    
    19 'norm      '    2.8862       1.0000         .10000E-03   10000.    
    20 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .99252       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .80434       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=   4910.771     FROM MIGRAD    STATUS=FAILED       930 CALLS     3121 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          50.106        53.575        .56655E-04    .60200E-06
   2  norm          .91246        1.1895        .74467E-04    .10931E-03
   3  Prefactor     6.6427        686.56        .15503E-03   -.35229E-03
   4  norm          .71996E-01    393.89        .10096E-02   -.29633E-03
   5  Prefactor     10.375        29.964        .12436E-03   -.13502E-03
   6  Prefactor     1.5105        11.430        .17396E-02    .43134E-03
   7  Prefactor     14.283        16.697        .10601E-03    .79683E-04
   8  Prefactor     .10000E-03    21.409        .32755E-02** at limit **
   9  Prefactor     .10000E-03    20.239        .18142E-02** at limit **
  10  Prefactor     .10000E-03    27.652        .18142E-02** at limit **
  11  Prefactor     .10000E-03    2.3355        .10719E-02** at limit **
  12  norm          .10000E-03    1.5610        .87549E-03** at limit **
  13  norm          .24659        8.3215        .18879E-02    .20803E-02
  14  Prefactor     .10000E-03    46.798        .13857    ** at limit **
  15  Prefactor     .10000E-03    48.939        .36285E-03** at limit **
  16  Prefactor     31.315        34.720        .71593E-04    .68314E-04
  17  Prefactor     65.058        69.895        .49760E-04    .74436E-04
  18  Prefactor     64.081        135.88        .25105E-03    .26537E-04
  19  norm          2.8866        .87102        .34717E-04   -.10928E-02
  20  norm          .10000E-03    5.4071        .16152E-02** at limit **
  21  Prefactor     .10000E-03    6.6256        .17961E-02** at limit **
  22  Normalizat    .99224        .23144        .24756E-03   -.23759E-03
  23  Prefactor     .80462        .18762        .24060E-03   -.27565E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4910.771     FROM SIMPLEX   STATUS=UNCHANGED    962 CALLS     4083 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          50.106        53.575        .20500E-06    .60200E-06
   2  norm          .91246        1.1895        .91845E-07    .10931E-03
   3  Prefactor     6.6427        686.56        .79990E-05   -.35229E-03
   4  norm          .71996E-01    393.89        .33946E-04   -.29633E-03
   5  Prefactor     10.375        29.964        .23135E-06   -.13502E-03
   6  Prefactor     1.5105        11.430        .28892E-06    .43134E-03
   7  Prefactor     14.283        16.697        .22202E-06    .79683E-04
   8  Prefactor     .10000E-03    21.409        .42957E-03** at limit **
   9  Prefactor     .10000E-03    20.239        .69586E-03** at limit **
  10  Prefactor     .10000E-03    27.652        .21962E-03** at limit **
  11  Prefactor     .10000E-03    2.3355        .15390E-03** at limit **
  12  norm          .10000E-03    1.5610        .14722E-03** at limit **
  13  norm          .24659        8.3215        .85523E-07    .20803E-02
  14  Prefactor     .10000E-03    46.798        .10935E-03** at limit **
  15  Prefactor     .10000E-03    48.939        .71709E-03** at limit **
  16  Prefactor     31.315        34.720        .78799E-07    .68314E-04
  17  Prefactor     65.058        69.895        .76028E-07    .74436E-04
  18  Prefactor     64.081        135.88        .77216E-07    .26537E-04
  19  norm          2.8866        .87102        .82654E-07   -.10928E-02
  20  norm          .10000E-03    5.4071        .63237E-04** at limit **
  21  Prefactor     .10000E-03    6.6256        .15348E-03** at limit **
  22  Normalizat    .99224        .23144        .50473E-07   -.23759E-03
  23  Prefactor     .80462        .18762        .53527E-07   -.27565E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4910.771     FROM MIGRAD    STATUS=CONVERGED    366 CALLS     4449 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          50.106        54.995        .22662E-05    .10033E-05
   2  norm          .91246        1.0902        .29787E-05    .17328E-03
   3  Prefactor     6.6436        118.94        .62011E-05   -.18297E-03
   4  norm          .71934E-01    65.607        .40382E-04   -.32545E-03
   5  Prefactor     10.375        21.076        .49744E-05   -.37481E-04
   6  Prefactor     1.5104        12.041        .34792E-03    .16521E-04
   7  Prefactor     14.282        16.658        .42403E-05    .72390E-04
   8  Prefactor     .10000E-03    22.817        .65510E-03** at limit **
   9  Prefactor     .10000E-03    21.282        .36285E-03** at limit **
  10  Prefactor     .10000E-03    29.086        .36285E-03** at limit **
  11  Prefactor     .10000E-03    2.4558        .21438E-03** at limit **
  12  norm          .10000E-03    1.6415        .17510E-03** at limit **
  13  norm          .24659        8.7548        .37757E-03    .78725E-04
  14  Prefactor     .10001E-03    49.804        .13821    ** at limit **
  15  Prefactor     .10000E-03    51.456        .72569E-04** at limit **
  16  Prefactor     31.315        35.689        .14319E-04    .43669E-04
  17  Prefactor     65.057        71.808        .99520E-05    .47750E-04
  18  Prefactor     64.081        139.75        .10042E-04    .16982E-04
  19  norm          2.8866        .89539        .13887E-05   -.68509E-03
  20  norm          .10000E-03    5.6875        .32305E-03** at limit **
  21  Prefactor     .10000E-03    6.9697        .35922E-03** at limit **
  22  Normalizat    .99224        .24741        .49512E-04   -.11389E-03
  23  Prefactor     .80462        .20814        .48121E-04   -.14667E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 50.1057
  norm       = 0.912455
  Prefactor  = 6.64358
  norm       = 0.0719336
  Prefactor  = 10.3754
  Prefactor  = 1.51045
  Prefactor  = 14.2825
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.24659
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 31.3148
  Prefactor  = 65.0574
  Prefactor  = 64.0811
  norm       = 2.88656
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.992244
  Prefactor  = 0.804624
 **********
 **   18 **HESSE 
 **********

 FCN=   4910.771     FROM HESSE     STATUS=OK           360 CALLS     4809 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          50.106        55.481        .45324E-06   -1.4291    
   2  norm          .91246        1.0833        .59574E-06   -1.5517    
   3  Prefactor     6.6436        100.51        .12402E-05   -1.5192    
   4  norm          .71934E-01    55.288        .16153E-05   -1.5654    
   5  Prefactor     10.375        20.866        .99489E-06   -1.5064    
   6  Prefactor     1.5104        12.036        .69585E-04   -1.5462    
   7  Prefactor     14.282        16.627        .84806E-06   -1.4952    
   8  Prefactor     .10000E-03    22.830        .13102E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.282        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    29.086        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.4558        .42876E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.6415        .35020E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .24659        8.7313        .75515E-04   -1.5609    
  14  Prefactor     .10001E-03    49.752        .13831       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    51.455        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     31.315        35.627        .28637E-05   -1.4588    
  17  Prefactor     65.057        71.882        .19904E-05   -1.4093    
  18  Prefactor     64.081        139.17        .20084E-05   -1.4105    
  19  norm          2.8866        .89522        .36641E-06   -1.5368    
  20  norm          .10000E-03    5.6875        .64610E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.9698        .71844E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .99224        .24631        .99025E-05   -.93291    
  23  Prefactor     .80462        .20748        .96241E-05   -.99558    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.36207e-10
Minuit parameter uncertainties:
  1  55.5383
  2  1.08337
  3  51.7863
  4  3.98945
  5  20.8806
  6  8.5296
  7  16.6322
  8  0.000177146
  9  2.68905e-05
  10  0.000181847
  11  4.5644e-06
  12  2.53245e-06
  13  2.93452
  14  0.00103016
  15  2.85633e-05
  16  35.6511
  17  71.9782
  18  139.889
  19  0.895226
  20  9.09346e-05
  21  7.09828e-05
  22  0.246595
  23  0.207679
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  8.046e-01  2.077e-01  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  9.922e-01  2.466e-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: 5.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/763024/likelihoodResults_393552001_393811201_4FGL_J2321.5-1619_daily_bin595.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) = 4910.77101011
delta logL = -0.000163837657965

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4910.77084823
delta logL = -1.95265420189e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20920E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9524       1.0000          .0000       10.000    
     3 'Normalizat'    .99224       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80462       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.

 FCN=   4910.771     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      226 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.7014        .90712E-02** at limit **
   2  Index         1.9420        5.7552        .50000        .26771E-05
   3  Normalizat    .99224        .26700E-02    .46070E-01   -.88098E-05
   4  Prefactor     .80462        .23730E-02    .43777E-01   -.64243E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.94195
  Normalizat = 0.992245
  Prefactor  = 0.804624
 **********
 **   18 **HESSE 
 **********

 FCN=   4910.771     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      259 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    84.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9420        5.9114        .50000       -.65809    
   3  Normalizat    .99224        .83128E-02    .24756E-03   -.93291    
   4  Prefactor     .80462        .73882E-02    .24061E-03   -.99558    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.05075e-09
Minuit parameter uncertainties:
  1  0.000428175
  2  103.896
  3  0.00831285
  4  0.00738816
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/763024': 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) = 4910.7708463
delta logL = -2.95813151752e-08

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  4.282e-04  1.000e-04  1.000e+04 ( 1.000e-14)
352        Index:  1.942e+00  1.039e+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:  8.046e-01  7.388e-03  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  9.922e-01  8.313e-03  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/763024/cmap_HighResolution_393552001_393811201_4FGL_J2321.5-1619_daily_bin595.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.70e-03', job_status='DONE', photon_flux_upper_limit='5.01e-08', time_completed='2021-09-29 12:14:51.333839', job_id='763024', GAL2='0.80', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1632942891.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='-2.96e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.83' WHERE bin_id='595' AND source_name='4FGL J2321.5-1619' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 12:14:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 763024: <4FGL_J2321.5-1619_daily_bin595> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.5-1619_daily_bin595 350.385 -16.3176 393552001 393811201 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 :                                   638.54 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            874 sec.

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

