/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 7 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7422
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2321.5-1619_daily_bin135
RA = 350.385, Dec = -16.3176
tmin = 274320001, tmax = 274579201
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='758298', job_status='RUN', time_executed='2021-09-29 11:50:55.522669', time_epoch_executed='1632941455.52' WHERE source_name='4FGL J2321.5-1619' and cadence='daily' and bin_id='135'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/758298

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/758298/ft1_4FGL_J2321.5-1619_daily_bin135.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/758298/ft2_4FGL_J2321.5-1619_daily_bin135.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/758298/ft1_4FGL_J2321.5-1619_daily_bin135.fits outfile=/scratch/kocevski/758298/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin135.fits ra=350.385 dec=-16.3176 rad=12.0 tmin=274320001.0 tmax=274579201.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.61
user 3.37
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/758298/ft1_filtered_4FGL_J2321.5-1619_daily_bin135.fits" evtable="EVENTS" scfile=/scratch/kocevski/758298/ft2_4FGL_J2321.5-1619_daily_bin135.fits sctable="SC_DATA" outfile=/scratch/kocevski/758298/ltcube_274320001_274579201_4FGL_J2321.5-1619_daily_bin135.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/758298/ft2_4FGL_J2321.5-1619_daily_bin135.fits
.....................!
real 11.94
user 11.57
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/758298/ft1_filtered_4FGL_J2321.5-1619_daily_bin135.fits evtable="EVENTS" scfile=/scratch/kocevski/758298/ft2_4FGL_J2321.5-1619_daily_bin135.fits sctable="SC_DATA" expcube=/scratch/kocevski/758298/ltcube_274320001_274579201_4FGL_J2321.5-1619_daily_bin135.fits outfile=/scratch/kocevski/758298/expmap_274320001_274579201_4FGL_J2321.5-1619_daily_bin135.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/758298/ltcube_274320001_274579201_4FGL_J2321.5-1619_daily_bin135.fits
.....................!
real 190.66
user 185.55
sys 4.78

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/758298/ft1_filtered_4FGL_J2321.5-1619_daily_bin135.fits scfile=/scratch/kocevski/758298/ft2_4FGL_J2321.5-1619_daily_bin135.fits outfile=/scratch/kocevski/758298/cmap_274320001_274579201_4FGL_J2321.5-1619_daily_bin135.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/758298/ft1_filtered_4FGL_J2321.5-1619_daily_bin135.fits scfile=/scratch/kocevski/758298/ft2_4FGL_J2321.5-1619_daily_bin135.fits outfile=/scratch/kocevski/758298/cmap_HighResolution_274320001_274579201_4FGL_J2321.5-1619_daily_bin135.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/758298/ft1_filtered_4FGL_J2321.5-1619_daily_bin135.fits evtable="EVENTS" scfile=/scratch/kocevski/758298/ft2_4FGL_J2321.5-1619_daily_bin135.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/758298/Model_4FGL_J2321.5-1619_daily_bin135.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/758298/ft1_filtered_4FGL_J2321.5-1619_daily_bin135.fits.....................!
real 37.53
user 35.81
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    49.659       1.0000         .10000E-03   10000.    
     2 'norm      '    .10129E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .55102       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.4954       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.798       1.0000         .10000E-03   10000.    
    12 'norm      '    1.1686       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14691E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.427       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.5366       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .56130       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2548       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=   3879.600     FROM MIGRAD    STATUS=CONVERGED    513 CALLS     2595 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          49.661        47.388        .15876E-05    .53430E-05
   2  norm          .10000E-03    .67236       -.25554E-07** at limit **
   3  Prefactor     .10000E-03    10.724       -.99815E-06** at limit **
   4  norm          .10000E-03    .63900       -.38684E-07** at limit **
   5  Prefactor     .10000E-03    21.316       -.92781E-05** at limit **
   6  Prefactor     .54157        12.283        .18765E-06   -.10480E-03
   7  Prefactor     .10000E-03    10.676       -.40548E-05** at limit **
   8  Prefactor     3.4854        23.361       -.63264E-05   -.26797E-04
   9  Prefactor     .10000E-03    49.419       -.85965E-05** at limit **
  10  Prefactor     .10000E-03    14.710       -.10479E-04** at limit **
  11  Prefactor     13.793        10.610        .81821E-07    .65156E-04
  12  norm          1.1711        2.1040        .11831E-05   -.26959E-02
  13  norm          .10000E-03    3.0776       -.69189E-07** at limit **
  14  Prefactor     .10000E-03    50.308       -.12070E-04** at limit **
  15  Prefactor     24.416        27.475       -.84165E-05   -.78243E-06
  16  Prefactor     .10000E-03    12.181        .13083E-04** at limit **
  17  Prefactor     .10000E-03    24.564        .16284E-04** at limit **
  18  Prefactor     .10000E-03    46.388        .14319E-04** at limit **
  19  norm          .10000E-03    .34626        .16084E-06** at limit **
  20  norm          5.5382        4.6700       -.30713E-06   -.14800E-03
  21  Prefactor     .10000E-03    3.9231       -.12075E-06** at limit **
  22  Normalizat    .56153        .22431        .34583E-05    .46695E-04
  23  Prefactor     1.2545        .20318       -.22815E-06    .16736E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 49.661
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.541572
  Prefactor  = 0.0001
  Prefactor  = 3.48535
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.7935
  norm       = 1.17111
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.4163
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.53822
  Prefactor  = 0.0001
  Normalizat = 0.561527
  Prefactor  = 1.25454
 **********
 **   18 **HESSE 
 **********

 FCN=   3879.600     FROM HESSE     STATUS=OK           368 CALLS     2963 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          49.661        47.373        .56907E-04   -1.4297    
   2  norm          .10000E-03    1.3804        .98912E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.1255        .95933E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    21.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .54157        54.306        .41584E-02   -1.5561    
   7  Prefactor     .10000E-03    10.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.4854        23.314        .21626E-03   -1.5335    
   9  Prefactor     .10000E-03    49.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.793        11.097        .10783E-03   -1.4965    
  12  norm          1.1711        7.6965        .15765E-02   -1.5492    
  13  norm          .10000E-03    3.1390        .10660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    50.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     24.416        27.395        .81049E-04   -1.4719    
  16  Prefactor     .10000E-03    12.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    24.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    46.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .57578        .69021E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.5382        4.5673        .11587E-03   -1.5237    
  21  Prefactor     .10000E-03    3.9668        .12048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .56153        .25557        .31068E-03   -1.0964    
  23  Prefactor     1.2545        .23304        .19797E-03   -.84669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31124e-08
Minuit parameter uncertainties:
  1  47.4094
  2  1.40878e-05
  3  1.10045e-05
  4  4.12203e-07
  5  8.13695e-05
  6  10.8555
  7  3.18118e-05
  8  18.0386
  9  0.000169092
  10  4.03642e-05
  11  11.0984
  12  6.00533
  13  4.94543e-06
  14  0.000314459
  15  27.4092
  16  9.15965e-05
  17  0.000160148
  18  0.000191953
  19  2.24233e-05
  20  4.56762
  21  4.03294e-06
  22  0.256106
  23  0.233238
Done.

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

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  4.036e-05  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.255e+00  2.332e-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:  5.615e-01  2.561e-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.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/758298/likelihoodResults_274320001_274579201_4FGL_J2321.5-1619_daily_bin135.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) = 3879.59984186
delta logL = -0.000323462920733

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3879.59951852
delta logL = -1.22611254483e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9290       1.0000          .0000       10.000    
     3 'Normalizat'    .56152       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2545       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=   3879.600     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      231 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    408.78        .90712E-02** at limit **
   2  Index         1.9198        7.0573        .50000        .49889E-05
   3  Normalizat    .56153        .29041E-01    .70183E-01    .19691E-04
   4  Prefactor     1.2545        .26886E-01    .33453E-01   -.17756E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.91979
  Normalizat = 0.561529
  Prefactor  = 1.25454
 **********
 **   18 **HESSE 
 **********

 FCN=   3879.600     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      264 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1723.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9198        7.8069        .50000       -.66371    
   3  Normalizat    .56153        .71934E-01    .31068E-03   -1.0964    
   4  Prefactor     1.2545        .66750E-01    .19797E-03   -.84669    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.01077e-09
Minuit parameter uncertainties:
  1  5.30882e-05
  2  44.7866
  3  0.0719463
  4  0.066754
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/758298': 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) = 3879.5995185
delta logL = -1.05983417598e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  1.255e+00  6.675e-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:  5.615e-01  7.195e-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/758298/cmap_HighResolution_274320001_274579201_4FGL_J2321.5-1619_daily_bin135.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.13e-03', job_status='DONE', photon_flux_upper_limit='5.59e-08', time_completed='2021-09-29 11:59:13.323844', job_id='758298', GAL2='1.25', fit_tolerance='1e-08', EG2='0.56', EG='0.56', time_epoch_completed='1632941953.32', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='-1.06e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.83' WHERE bin_id='135' AND source_name='4FGL J2321.5-1619' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:59:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0140>
Subject: Job 758298: <4FGL_J2321.5-1619_daily_bin135> in cluster <slac> Done

Job <4FGL_J2321.5-1619_daily_bin135> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 11:50:34 2021
Job was executed on host(s) <bullet0140>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:50:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 11:50:36 2021
Terminated at Wed Sep 29 11:59:14 2021
Results reported at Wed Sep 29 11:59:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.5-1619_daily_bin135 350.385 -16.3176 274320001 274579201 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 :                                   492.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             321.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   517 sec.
    Turnaround time :                            520 sec.

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

