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


Performing analysis on: 4FGL_J2321.5-1619_daily_bin1275
RA = 350.385, Dec = -16.3176
tmin = 569808001, tmax = 570067201
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='765233', job_status='RUN', time_executed='2021-09-29 12:06:45.237445', time_epoch_executed='1632942405.24' WHERE source_name='4FGL J2321.5-1619' and cadence='daily' and bin_id='1275'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/765233

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/765233/ft1_4FGL_J2321.5-1619_daily_bin1275.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/765233/ft2_4FGL_J2321.5-1619_daily_bin1275.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/765233/ft1_4FGL_J2321.5-1619_daily_bin1275.fits outfile=/scratch/kocevski/765233/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin1275.fits ra=350.385 dec=-16.3176 rad=12.0 tmin=569808001.0 tmax=570067201.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.54
user 3.33
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/765233/ft2_4FGL_J2321.5-1619_daily_bin1275.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/765233/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin1275.fits evtable="EVENTS" outfile="/scratch/kocevski/765233/ft1_filtered_4FGL_J2321.5-1619_daily_bin1275.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/765233/ft1_filtered_4FGL_J2321.5-1619_daily_bin1275.fits" evtable="EVENTS" scfile=/scratch/kocevski/765233/ft2_4FGL_J2321.5-1619_daily_bin1275.fits sctable="SC_DATA" outfile=/scratch/kocevski/765233/ltcube_569808001_570067201_4FGL_J2321.5-1619_daily_bin1275.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/765233/ft2_4FGL_J2321.5-1619_daily_bin1275.fits
.....................!
real 12.21
user 11.87
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/765233/ft1_filtered_4FGL_J2321.5-1619_daily_bin1275.fits evtable="EVENTS" scfile=/scratch/kocevski/765233/ft2_4FGL_J2321.5-1619_daily_bin1275.fits sctable="SC_DATA" expcube=/scratch/kocevski/765233/ltcube_569808001_570067201_4FGL_J2321.5-1619_daily_bin1275.fits outfile=/scratch/kocevski/765233/expmap_569808001_570067201_4FGL_J2321.5-1619_daily_bin1275.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/765233/ltcube_569808001_570067201_4FGL_J2321.5-1619_daily_bin1275.fits
.....................!
real 190.61
user 185.50
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/765233/ft1_filtered_4FGL_J2321.5-1619_daily_bin1275.fits scfile=/scratch/kocevski/765233/ft2_4FGL_J2321.5-1619_daily_bin1275.fits outfile=/scratch/kocevski/765233/cmap_569808001_570067201_4FGL_J2321.5-1619_daily_bin1275.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/765233/ft1_filtered_4FGL_J2321.5-1619_daily_bin1275.fits scfile=/scratch/kocevski/765233/ft2_4FGL_J2321.5-1619_daily_bin1275.fits outfile=/scratch/kocevski/765233/cmap_HighResolution_569808001_570067201_4FGL_J2321.5-1619_daily_bin1275.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=350.385 yref=-16.3176 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/765233/ft1_filtered_4FGL_J2321.5-1619_daily_bin1275.fits evtable="EVENTS" scfile=/scratch/kocevski/765233/ft2_4FGL_J2321.5-1619_daily_bin1275.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/765233/Model_4FGL_J2321.5-1619_daily_bin1275.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/765233/ft1_filtered_4FGL_J2321.5-1619_daily_bin1275.fits.....................!
real 53.56
user 52.14
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .25011E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    1.4661       1.0000         .10000E-03   10000.    
     3 'Prefactor '    91.599       1.0000         .10000E-03   10000.    
     4 'norm      '    .88189       1.0000         .10000E-03   10000.    
     5 'Prefactor '    42.438       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .23566E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.903       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.1470       1.0000         .10000E-03   10000.    
    12 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .82037       1.0000         .10000E-03   10000.    
    14 'Prefactor '    57.826       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10407E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .38325E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .25159E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .75158E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .93687       1.0000         .10000E-03   10000.    
    20 'norm      '    41.872       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.8591       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0526       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .83035       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=   6143.226     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2307 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    40.436        .62103E-05** at limit **
   2  norm          1.4655        1.0213       -.73173E-06   -.37180E-03
   3  Prefactor     91.661        47.255        .11218E-04   -.43213E-04
   4  norm          .88408        3.0656        .27884E-05   -.24632E-03
   5  Prefactor     42.277        47.460       -.33629E-04   -.55799E-04
   6  Prefactor     .10000E-03    7.5897       -.78388E-06** at limit **
   7  Prefactor     .10000E-03    6.9533        .67148E-06** at limit **
   8  Prefactor     .10000E-03    13.407        .13926E-05** at limit **
   9  Prefactor     26.912        51.061        .45386E-05    .21131E-05
  10  Prefactor     .10000E-03    8.9595        .10540E-05** at limit **
  11  Prefactor     7.1608        10.781       -.54685E-05   -.50779E-04
  12  norm          .10000E-03    3.9771        .25287E-06** at limit **
  13  norm          .82311        3.4672        .13711E-05   -.69968E-04
  14  Prefactor     57.850        52.731        .58213E-05   -.31636E-04
  15  Prefactor     .10000E-03    5.7341       -.13424E-06** at limit **
  16  Prefactor     .10000E-03    31.167        .35959E-05** at limit **
  17  Prefactor     .10000E-03    35.836       -.65437E-05** at limit **
  18  Prefactor     .10000E-03    36.402       -.18741E-04** at limit **
  19  norm          .93673        .77781        .31128E-07   -.16642E-03
  20  norm          41.876        8.9413       -.13407E-06   -.16651E-03
  21  Prefactor     6.8891        7.7496        .64976E-05    .12948E-04
  22  Normalizat    1.0523        .20080       -.39271E-05   -.94382E-04
  23  Prefactor     .83044        .17144       -.61912E-06   -.27329E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.46546
  Prefactor  = 91.6605
  norm       = 0.884083
  Prefactor  = 42.2773
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.9121
  Prefactor  = 0.0001
  Prefactor  = 7.16075
  norm       = 0.0001
  norm       = 0.823107
  Prefactor  = 57.8498
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.936732
  norm       = 41.8759
  Prefactor  = 6.88913
  Normalizat = 1.05234
  Prefactor  = 0.83044
 **********
 **   18 **HESSE 
 **********

 FCN=   6143.226     FROM HESSE     STATUS=OK           364 CALLS     2671 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    40.604        .20017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.4655        1.0233        .63204E-04   -1.5466    
   3  Prefactor     91.661        48.103        .41988E-04   -1.3790    
   4  norm          .88408        3.1474        .12717E-03   -1.5520    
   5  Prefactor     42.277        47.724        .61537E-04   -1.4407    
   6  Prefactor     .10000E-03    7.6301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.1167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     26.912        50.881        .77236E-04   -1.4670    
  10  Prefactor     .10000E-03    8.9625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.1608        10.724        .15005E-03   -1.5173    
  12  norm          .10000E-03    4.0172        .15247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .82311        3.4971        .26847E-03   -1.5527    
  14  Prefactor     57.850        52.825        .52756E-04   -1.4185    
  15  Prefactor     .10000E-03    5.7364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    31.354        .21283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    35.871        .21462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    36.402        .20939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .93673        .74315        .53130E-04   -1.5514    
  20  norm          41.876        8.7810        .61950E-04   -1.4413    
  21  Prefactor     6.8891        7.7459        .15319E-03   -1.5183    
  22  Normalizat    1.0523        .23558        .27111E-03   -.91297    
  23  Prefactor     .83044        .20174        .26845E-03   -.98616    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.1389e-10
Minuit parameter uncertainties:
  1  0.000118699
  2  1.02335
  3  48.123
  4  3.14799
  5  47.7675
  6  0.000100392
  7  2.05249e-05
  8  7.09842e-05
  9  50.9635
  10  3.60727e-06
  11  10.7273
  12  7.49157e-05
  13  3.39335
  14  52.8681
  15  9.31012e-06
  16  2.89675e-05
  17  9.44954e-05
  18  1.56108e-05
  19  0.74316
  20  8.78125
  21  7.74707
  22  0.235809
  23  0.201919
Done.

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

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
510   Normalization:  1.052e+00  2.358e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 350.385 -16.318
Photon Flux Upper Limit: 3.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/765233/likelihoodResults_569808001_570067201_4FGL_J2321.5-1619_daily_bin1275.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) = 6143.22656394
delta logL = -0.000526912745045

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6143.22603702
delta logL = 4.22187440563e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8130       1.0000          .0000       10.000    
     3 'Normalizat'    1.0523       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83045       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=   6143.226     FROM MIGRAD    STATUS=FAILED        90 CALLS      244 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1450.2        .18142E-02** at limit **
   2  Index         1.7962        5.5773        .50000        .13441E-04
   3  Normalizat    1.0523        .84961E-01    .27111E-03    .12907E-03
   4  Prefactor     .83044        .76054E-01    .26845E-03   -.46499E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6143.226     FROM SIMPLEX   STATUS=UNCHANGED    193 CALLS      437 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1450.2        .43727E-03** at limit **
   2  Index         1.7962        5.5773        .23655E-06    .13441E-04
   3  Normalizat    1.0523        .84961E-01    .78957E-08    .12907E-03
   4  Prefactor     .83044        .76054E-01    .68177E-08   -.46499E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6143.226     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      471 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.595        .36285E-03** at limit **
   2  Index         1.7961        5.8192        .50000        .13438E-04
   3  Normalizat    1.0523        .22133        .10845E-04    .12957E-03
   4  Prefactor     .83044        .19814        .10738E-04   -.45949E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 1.79608
  Normalizat = 1.05234
  Prefactor  = 0.830441
 **********
 **   18 **HESSE 
 **********

 FCN=   6143.226     FROM HESSE     STATUS=OK            29 CALLS      500 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.2041        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7961        5.8773        .50000       -.69552    
   3  Normalizat    1.0523        .22121        .21689E-05   -.91297    
   4  Prefactor     .83044        .19802        .21476E-05   -.98616    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.82335e-10
Minuit parameter uncertainties:
  1  0.000247375
  2  3.85465
  3  0.221403
  4  0.198191
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/765233': 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) = 6143.22603691
delta logL = 1.20878212329e-07

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  2.474e-04  1.000e-04  1.000e+04 ( 1.000e-14)
352        Index:  1.796e+00  3.855e+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:  8.304e-01  1.982e-01  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  1.052e+00  2.214e-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/765233/cmap_HighResolution_569808001_570067201_4FGL_J2321.5-1619_daily_bin1275.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.86e-03', job_status='DONE', photon_flux_upper_limit='3.87e-08', time_completed='2021-09-29 12:17:00.761889', job_id='765233', GAL2='0.83', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1632943020.76', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='1.21e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.83' WHERE bin_id='1275' AND source_name='4FGL J2321.5-1619' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 12:17:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 765233: <4FGL_J2321.5-1619_daily_bin1275> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.5-1619_daily_bin1275 350.385 -16.3176 569808001 570067201 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 :                                   610.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             359.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   649 sec.
    Turnaround time :                            651 sec.

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

