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


Performing analysis on: 4FGL_J2321.5-1619_daily_bin1124
RA = 350.385, Dec = -16.3176
tmin = 530668801, tmax = 530928001
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='765004', job_status='RUN', time_executed='2021-09-29 12:06:22.324135', time_epoch_executed='1632942382.32' WHERE source_name='4FGL J2321.5-1619' and cadence='daily' and bin_id='1124'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/765004

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/765004/ft1_4FGL_J2321.5-1619_daily_bin1124.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/765004/ft2_4FGL_J2321.5-1619_daily_bin1124.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/765004/ft1_4FGL_J2321.5-1619_daily_bin1124.fits outfile=/scratch/kocevski/765004/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin1124.fits ra=350.385 dec=-16.3176 rad=12.0 tmin=530668801.0 tmax=530928001.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.63
user 3.39
sys 0.19

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/765004/ft1_filtered_4FGL_J2321.5-1619_daily_bin1124.fits" evtable="EVENTS" scfile=/scratch/kocevski/765004/ft2_4FGL_J2321.5-1619_daily_bin1124.fits sctable="SC_DATA" outfile=/scratch/kocevski/765004/ltcube_530668801_530928001_4FGL_J2321.5-1619_daily_bin1124.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/765004/ft2_4FGL_J2321.5-1619_daily_bin1124.fits
.....................!
real 11.47
user 11.03
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/765004/ft1_filtered_4FGL_J2321.5-1619_daily_bin1124.fits evtable="EVENTS" scfile=/scratch/kocevski/765004/ft2_4FGL_J2321.5-1619_daily_bin1124.fits sctable="SC_DATA" expcube=/scratch/kocevski/765004/ltcube_530668801_530928001_4FGL_J2321.5-1619_daily_bin1124.fits outfile=/scratch/kocevski/765004/expmap_530668801_530928001_4FGL_J2321.5-1619_daily_bin1124.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/765004/ltcube_530668801_530928001_4FGL_J2321.5-1619_daily_bin1124.fits
.....................!
real 190.39
user 185.58
sys 4.42

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/765004/ft1_filtered_4FGL_J2321.5-1619_daily_bin1124.fits scfile=/scratch/kocevski/765004/ft2_4FGL_J2321.5-1619_daily_bin1124.fits outfile=/scratch/kocevski/765004/cmap_530668801_530928001_4FGL_J2321.5-1619_daily_bin1124.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/765004/ft1_filtered_4FGL_J2321.5-1619_daily_bin1124.fits scfile=/scratch/kocevski/765004/ft2_4FGL_J2321.5-1619_daily_bin1124.fits outfile=/scratch/kocevski/765004/cmap_HighResolution_530668801_530928001_4FGL_J2321.5-1619_daily_bin1124.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/765004/ft1_filtered_4FGL_J2321.5-1619_daily_bin1124.fits evtable="EVENTS" scfile=/scratch/kocevski/765004/ft2_4FGL_J2321.5-1619_daily_bin1124.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/765004/Model_4FGL_J2321.5-1619_daily_bin1124.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/765004/ft1_filtered_4FGL_J2321.5-1619_daily_bin1124.fits.....................!
real 49.91
user 48.32
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    50.312       1.0000         .10000E-03   10000.    
     2 'norm      '    .33564       1.0000         .10000E-03   10000.    
     3 'Prefactor '    73.434       1.0000         .10000E-03   10000.    
     4 'norm      '    5.7650       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6380       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.8031       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.280       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.8358       1.0000         .10000E-03   10000.    
    14 'Prefactor '    33.337       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .79478E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2271       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12789E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .73664       1.0000         .10000E-03   10000.    
    20 'norm      '    4.6273       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .15345       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .92739       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91364       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=   5876.998     FROM MIGRAD    STATUS=CONVERGED    528 CALLS     2667 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          50.303        52.688       -.25812E-05   -.12312E-03
   2  norm          .33541        .69388        .33165E-06    .41123E-03
   3  Prefactor     73.458        37.586        .27482E-05    .17006E-03
   4  norm          5.7652        2.9314       -.99943E-06   -.46049E-03
   5  Prefactor     1.6169        394.12       -.40492E-05   -.39125E-04
   6  Prefactor     5.8041        9.8051        .22844E-05    .13155E-04
   7  Prefactor     .10000E-03    4.6910        .79935E-08** at limit **
   8  Prefactor     .10000E-03    20.741        .93766E-06** at limit **
   9  Prefactor     20.293        23.660        .42147E-06    .28799E-04
  10  Prefactor     .10000E-03    16.240        .25508E-06** at limit **
  11  Prefactor     .10000E-03    2.2078        .20147E-07** at limit **
  12  norm          .10000E-03    2.8608        .59604E-07** at limit **
  13  norm          2.8368        4.2262        .37331E-06    .93770E-04
  14  Prefactor     33.339        63.970       -.12894E-05    .21361E-03
  15  Prefactor     .10452E-03    21.152       -.24293E-05** at limit **
  16  Prefactor     1.2122        179.32        .10106E-06   -.80486E-05
  17  Prefactor     .10000E-03    18.363       -.58221E-06** at limit **
  18  Prefactor     .10000E-03    100.09        .50526E-05** at limit **
  19  norm          .73654        .51850        .15102E-07    .60814E-03
  20  norm          4.6273        3.8778        .46207E-07    .92763E-04
  21  Prefactor     .19324        5.7647        .75456E-06   -.17768E-03
  22  Normalizat    .92742        .20249       -.93539E-06   -.33237E-05
  23  Prefactor     .91353        .17661       -.51226E-06   -.31186E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 50.303
  norm       = 0.335412
  Prefactor  = 73.4581
  norm       = 5.76519
  Prefactor  = 1.61685
  Prefactor  = 5.80413
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.2929
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.83684
  Prefactor  = 33.3387
  Prefactor  = 0.000104521
  Prefactor  = 1.21218
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.736542
  norm       = 4.62725
  Prefactor  = 0.193245
  Normalizat = 0.927423
  Prefactor  = 0.913533
 **********
 **   18 **HESSE 
 **********

 FCN=   5876.998     FROM HESSE     STATUS=OK           376 CALLS     3043 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          50.303        52.924        .56538E-04   -1.4288    
   2  norm          .33541        .66808        .88744E-03   -1.5592    
   3  Prefactor     73.458        38.954        .46852E-04   -1.3992    
   4  norm          5.7652        2.9250        .53268E-04   -1.5228    
   5  Prefactor     1.6169        380.83        .33021E-03   -1.5454    
   6  Prefactor     5.8041        9.7884        .83360E-03   -1.5226    
   7  Prefactor     .10000E-03    4.7062        .16214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.472        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.293        23.663        .88940E-04   -1.4807    
  10  Prefactor     .10000E-03    16.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.2100        .11124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.8996        .12661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.8368        4.1325        .17038E-03   -1.5371    
  14  Prefactor     33.339        52.669        .69401E-04   -1.4553    
  15  Prefactor     .10452E-03    176.97        .52160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.2122        177.84        .40638E-03   -1.5488    
  17  Prefactor     .10000E-03    18.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    100.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .73654        .51955        .42060E-04   -1.5536    
  20  norm          4.6273        3.8963        .12574E-03   -1.5278    
  21  Prefactor     .19324        44.271        .35092E-02   -1.5620    
  22  Normalizat    .92742        .24151        .26570E-03   -.95503    
  23  Prefactor     .91353        .21246        .24356E-03   -.95670    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48713e-08
Minuit parameter uncertainties:
  1  52.9731
  2  0.668099
  3  38.9676
  4  2.92512
  5  49.9516
  6  9.79114
  7  5.26216e-06
  8  0.000116215
  9  23.6743
  10  4.73102e-05
  11  1.438e-06
  12  4.46674e-06
  13  4.13289
  14  52.743
  15  0.0567392
  16  29.4535
  17  5.20947e-05
  18  0.0011619
  19  0.519557
  20  3.89656
  21  5.85268
  22  0.24179
  23  0.212652
Done.

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

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  4.731e-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:  9.135e-01  2.127e-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.274e-01  2.418e-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: 4.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/765004/likelihoodResults_530668801_530928001_4FGL_J2321.5-1619_daily_bin1124.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) = 5876.99788507
delta logL = -0.000292788640763

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5876.87079918
delta logL = 0.126793104395

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35877       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3448       1.0000          .0000       10.000    
     3 'Normalizat'    .89960       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92667       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5876.871     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      315 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35871        74.584        .91249E-04   -.22711E-02
   2  Index         3.3450        6.1210        .73963E-02   -.23100E-03
   3  Normalizat    .89958        .16909        .26933E-03   -.33541E-03
   4  Prefactor     .92670        .15388        .24199E-03   -.28277E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.358713
  Index      = 3.34499
  Normalizat = 0.899584
  Prefactor  = 0.926696
 **********
 **   18 **HESSE 
 **********

 FCN=   5876.871     FROM HESSE     STATUS=OK            25 CALLS      340 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .35871        3.3791        .36500E-05   -1.5588    
   2  Index         3.3450        1.8645        .29585E-03   -.33737    
   3  Normalizat    .89958        .23086        .53866E-04   -.96475    
   4  Prefactor     .92670        .20723        .48398E-04   -.95214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56035e-09
Minuit parameter uncertainties:
  1  2.20179
  2  1.91683
  3  0.231116
  4  0.207408
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/765004': 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): 0
logL (Free Index) = 5876.87079912
delta logL = 0.126793159969

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  3.587e-01  2.202e+00  1.000e-04  1.000e+04 ( 1.000e-14)
352        Index:  3.345e+00  1.917e+00  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:  9.267e-01  2.074e-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:  8.996e-01  2.311e-01  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/765004/cmap_HighResolution_530668801_530928001_4FGL_J2321.5-1619_daily_bin1124.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.57e-03', job_status='DONE', photon_flux_upper_limit='4.83e-08', time_completed='2021-09-29 12:17:15.131889', job_id='765004', GAL2='0.93', fit_tolerance='1e-08', EG2='0.90', EG='0.93', time_epoch_completed='1632943035.13', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.27e-01', ts2='0.27', photon_index_error='0.00', photon_index='1.83' WHERE bin_id='1124' AND source_name='4FGL J2321.5-1619' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 12:17:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 765004: <4FGL_J2321.5-1619_daily_bin1124> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.5-1619_daily_bin1124 350.385 -16.3176 530668801 530928001 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 :                                   607.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             367.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   684 sec.
    Turnaround time :                            685 sec.

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

