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


Performing analysis on: 4FGL_J2321.9+3204_daily_bin1164
RA = 350.478, Dec = 32.0737
tmin = 541036801, tmax = 541296001
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='788008', job_status='RUN', time_executed='2021-09-29 13:22:53.899553', time_epoch_executed='1632946973.9' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='1164'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/788008

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/788008/ft1_4FGL_J2321.9+3204_daily_bin1164.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/788008/ft2_4FGL_J2321.9+3204_daily_bin1164.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/788008/ft1_4FGL_J2321.9+3204_daily_bin1164.fits outfile=/scratch/kocevski/788008/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin1164.fits ra=350.478 dec=32.0737 rad=12.0 tmin=541036801.0 tmax=541296001.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.64
user 3.42
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/788008/ft2_4FGL_J2321.9+3204_daily_bin1164.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/788008/ft2_4FGL_J2321.9+3204_daily_bin1164.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/788008/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin1164.fits evtable="EVENTS" outfile="/scratch/kocevski/788008/ft1_filtered_4FGL_J2321.9+3204_daily_bin1164.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/788008/ft1_filtered_4FGL_J2321.9+3204_daily_bin1164.fits" evtable="EVENTS" scfile=/scratch/kocevski/788008/ft2_4FGL_J2321.9+3204_daily_bin1164.fits sctable="SC_DATA" outfile=/scratch/kocevski/788008/ltcube_541036801_541296001_4FGL_J2321.9+3204_daily_bin1164.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/788008/ft2_4FGL_J2321.9+3204_daily_bin1164.fits
.....................!
real 11.98
user 11.62
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/788008/ft1_filtered_4FGL_J2321.9+3204_daily_bin1164.fits evtable="EVENTS" scfile=/scratch/kocevski/788008/ft2_4FGL_J2321.9+3204_daily_bin1164.fits sctable="SC_DATA" expcube=/scratch/kocevski/788008/ltcube_541036801_541296001_4FGL_J2321.9+3204_daily_bin1164.fits outfile=/scratch/kocevski/788008/expmap_541036801_541296001_4FGL_J2321.9+3204_daily_bin1164.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/788008/ltcube_541036801_541296001_4FGL_J2321.9+3204_daily_bin1164.fits
.....................!
real 190.07
user 184.76
sys 5.01

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 166 point sources and 0 extended sources

Setting source of interest to:
4FGL J2321.9+3204 @ 350.478 32.0737

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/788008/ft1_filtered_4FGL_J2321.9+3204_daily_bin1164.fits scfile=/scratch/kocevski/788008/ft2_4FGL_J2321.9+3204_daily_bin1164.fits outfile=/scratch/kocevski/788008/cmap_541036801_541296001_4FGL_J2321.9+3204_daily_bin1164.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.478 yref=32.0737 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/788008/ft1_filtered_4FGL_J2321.9+3204_daily_bin1164.fits scfile=/scratch/kocevski/788008/ft2_4FGL_J2321.9+3204_daily_bin1164.fits outfile=/scratch/kocevski/788008/cmap_HighResolution_541036801_541296001_4FGL_J2321.9+3204_daily_bin1164.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.478 yref=32.0737 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/788008/ft1_filtered_4FGL_J2321.9+3204_daily_bin1164.fits evtable="EVENTS" scfile=/scratch/kocevski/788008/ft2_4FGL_J2321.9+3204_daily_bin1164.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/788008/Model_4FGL_J2321.9+3204_daily_bin1164.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/788008/ft1_filtered_4FGL_J2321.9+3204_daily_bin1164.fits.....................!
real 94.71
user 93.38
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/788008/ft1_filtered_4FGL_J2321.9+3204_daily_bin1164.fits', '/scratch/kocevski/788008/ft2_4FGL_J2321.9+3204_daily_bin1164.fits', expMap='/scratch/kocevski/788008/expmap_541036801_541296001_4FGL_J2321.9+3204_daily_bin1164.fits', expCube='/scratch/kocevski/788008/ltcube_541036801_541296001_4FGL_J2321.9+3204_daily_bin1164.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/788008/Model_4FGL_J2321.9+3204_daily_bin1164.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2321.9+3204'

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  6.933e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/788008/ft1_filtered_4FGL_J2321.9+3204_daily_bin1164.fits
Spacecraft file(s): /scratch/kocevski/788008/ft2_4FGL_J2321.9+3204_daily_bin1164.fits
Exposure map: /scratch/kocevski/788008/expmap_541036801_541296001_4FGL_J2321.9+3204_daily_bin1164.fits
Exposure cube: /scratch/kocevski/788008/ltcube_541036801_541296001_4FGL_J2321.9+3204_daily_bin1164.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/788008/Model_4FGL_J2321.9+3204_daily_bin1164.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) = 8986.93352292

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.3353       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    12.969       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.7126       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.078       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.0219       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .30286E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.2048       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.6743       1.0000         .10000E-03   10000.    
    16 'norm      '    4.0604       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    45.321       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.5643       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .90551       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1167       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8986.925     FROM MIGRAD    STATUS=CONVERGED    516 CALLS     2653 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.2493        .43013E-07** at limit **
   2  Prefactor     .10000E-03    4.6101        .64347E-06** at limit **
   3  norm          6.3356        1.5722        .21326E-07    .28022E-03
   4  Prefactor     .10000E-03    25.290        .63348E-07** at limit **
   5  Prefactor     .10000E-03    12.376       -.16918E-06** at limit **
   6  norm          12.969        5.2695       -.35134E-07    .27484E-04
   7  Prefactor     .10000E-03    21.823       -.82289E-06** at limit **
   8  Prefactor     4.7126        5.1751        .46260E-06    .62602E-03
   9  Prefactor     10.076        8.9975        .19779E-06    .31986E-03
  10  Prefactor     .10000E-03    9.4267        .27977E-06** at limit **
  11  norm          5.0226        1.8953        .15993E-06    .16979E-02
  12  Prefactor     .10003E-03    66.563       -.30299E-04** at limit **
  13  Prefactor     9.2079        11.043        .42046E-06    .27185E-03
  14  Prefactor     .10000E-03    10.071       -.56070E-06** at limit **
  15  norm          9.6754        5.0041        .13639E-06    .66198E-03
  16  norm          4.0606        7.7285        .95837E-06    .51407E-03
  17  Prefactor     .10000E-03    11.709        .41245E-06** at limit **
  18  norm          .10000E-03    .72525       -.52253E-07** at limit **
  19  Prefactor     .10000E-03    14.071        .83826E-06** at limit **
  20  Prefactor     45.336        40.187       -.95997E-06    .15088E-04
  21  Prefactor     .10000E-03    13.021        .30150E-06** at limit **
  22  Prefactor     3.5650        4.9164        .12935E-05    .14601E-02
  23  Normalizat    .90510        .21467       -.31349E-05    .21150E-03
  24  Prefactor     1.1168        .10311        .11093E-05    .96835E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 6.33565
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.9694
  Prefactor  = 0.0001
  Prefactor  = 4.71255
  Prefactor  = 10.0765
  Prefactor  = 0.0001
  norm       = 5.02256
  Prefactor  = 0.000100031
  Prefactor  = 9.20789
  Prefactor  = 0.0001
  norm       = 9.67537
  norm       = 4.0606
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.3365
  Prefactor  = 0.0001
  Prefactor  = 3.56498
  Normalizat = 0.905098
  Prefactor  = 1.11681
 **********
 **   18 **HESSE 
 **********

 FCN=   8986.925     FROM HESSE     STATUS=OK           395 CALLS     3048 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.2537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.7110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.3356        1.5720        .57291E-04   -1.5204    
   4  Prefactor     .10000E-03    25.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          12.969        5.2671        .11123E-03   -1.4988    
   7  Prefactor     .10000E-03    21.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.7126        5.1849        .18536E-03   -1.5274    
   9  Prefactor     10.076        8.9996        .12622E-03   -1.5073    
  10  Prefactor     .10000E-03    9.4302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.0226        1.8959        .75822E-04   -1.5260    
  12  Prefactor     .10003E-03    66.594        .66315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.2079        11.030        .13210E-03   -1.5101    
  14  Prefactor     .10000E-03    10.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.6754        5.0028        .12884E-03   -1.5086    
  16  norm          4.0606        7.7569        .20010E-03   -1.5305    
  17  Prefactor     .10000E-03    11.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .72979        .78828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     45.336        40.216        .59556E-04   -1.4360    
  21  Prefactor     .10000E-03    13.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.5650        5.0033        .21407E-03   -1.5330    
  23  Normalizat    .90510        .23681        .38396E-03   -.96281    
  24  Prefactor     1.1168        .11660        .17602E-03   -.88931    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4476e-09
Minuit parameter uncertainties:
  1  4.14377e-06
  2  0.000108492
  3  1.572
  4  2.46706e-05
  5  4.22139e-05
  6  5.26731
  7  7.73134e-05
  8  5.18539
  9  9.00079
  10  1.44219e-05
  11  1.89594
  12  0.0028738
  13  11.0329
  14  8.7233e-06
  15  5.00305
  16  7.75878
  17  0.00020096
  18  3.51214e-06
  19  0.000101476
  20  40.2402
  21  1.4917e-05
  22  5.0039
  23  0.237078
  24  0.116629
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  9.675e+00  5.003e+00  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.117e+00  1.166e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  9.051e-01  2.371e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.84
Ra Dec: 350.478 32.074
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 5.89e-08 +/- 3.05e-08
Energy Flux (Fixed Index): 2.65e-05 +/- 1.37e-05

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): 0
logL (Free Index) = 8986.92515919
delta logL = 4.32321758126e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8986.9251566
delta logL = 6.91138848197e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.6798       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1363       1.0000          .0000       5.0000    
     3 'Normalizat'    .90536       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1167       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+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=   8986.925     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      253 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.6793        5.1240        .12880E-03    .23546E-02
   2  alpha         2.1362        .56524        .15308E-01    .21104E-03
   3  Normalizat    .90523        .22973        .38394E-03   -.13396E-03
   4  Prefactor     1.1168        .11534        .17602E-03   -.47262E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.67934
  alpha      = 2.1362
  Normalizat = 0.905231
  Prefactor  = 1.11677
 **********
 **   18 **HESSE 
 **********

 FCN=   8986.925     FROM HESSE     STATUS=OK            23 CALLS      276 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.6793        5.0864        .25760E-04   -1.5086    
   2  alpha         2.1362        .56073        .61230E-03   -.14604    
   3  Normalizat    .90523        .22973        .15358E-04   -.96277    
   4  Prefactor     1.1168        .11539        .35204E-04   -.88932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19717e-09
Minuit parameter uncertainties:
  1  5.08667
  2  0.565653
  3  0.229974
  4  0.115412
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/788008': 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) = 8986.92515635
delta logL = 7.16366412234e-06

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  9.679e+00  5.087e+00  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  2.136e+00  5.657e-01  0.000e+00  5.000e+00 ( 1.000e+00)
435         beta:  1.248e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.117e+00  1.154e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  9.052e-01  2.300e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.83
Ra Dec: 350.478 32.074
Photon Index (Free Index): 2.14 +/- 0.57
Photon Flux (Free Index): 5.88e-08 +/- 4.38e-08
Energy Flux (Free Index): 2.65e-05 +/- 1.47e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/788008/cmap_HighResolution_541036801_541296001_4FGL_J2321.9+3204_daily_bin1164.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.89e-08', energy_flux2='2.65e-05', photon_flux_error='3.05e-08', dlogl='7.16e-06', energy_flux='2.65e-05', photon_flux2='5.88e-08', job_status='DONE', time_completed='2021-09-29 13:37:04.944758', photon_index_error2='0.57', photon_index2='2.14', ts='8.84', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='1.47e-05', EG='0.91', time_epoch_completed='1632947824.94', return_code='0', job_id='788008', GAL2='1.12', EG2='0.91', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='4.38e-08', ts2='8.83', photon_index='2.14' WHERE bin_id='1164' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:37:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 788008: <4FGL_J2321.9+3204_daily_bin1164> in cluster <slac> Done

Job <4FGL_J2321.9+3204_daily_bin1164> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 13:20:43 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 13:20:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 13:20:44 2021
Terminated at Wed Sep 29 13:37:05 2021
Results reported at Wed Sep 29 13:37:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin1164 350.478 32.0737 541036801 541296001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2321.9+3204 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   752.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            982 sec.

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

