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


Performing analysis on: 4FGL_J2321.9+3204_daily_bin635
RA = 350.478, Dec = 32.0737
tmin = 403920001, tmax = 404179201
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='784014', job_status='RUN', time_executed='2021-09-29 13:07:56.812396', time_epoch_executed='1632946076.81' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/784014

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

Retrieving the FT1 file...

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

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

Retrieving 39 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/784014/ft1_4FGL_J2321.9+3204_daily_bin635.fits


Retrieving the FT1 file...

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

Retrieving 39 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/784014/ft2_4FGL_J2321.9+3204_daily_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/784014/ft1_4FGL_J2321.9+3204_daily_bin635.fits outfile=/scratch/kocevski/784014/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin635.fits ra=350.478 dec=32.0737 rad=12.0 tmin=403920001.0 tmax=404179201.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 10.12
user 9.80
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/784014/ft2_4FGL_J2321.9+3204_daily_bin635.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/784014/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin635.fits evtable="EVENTS" outfile="/scratch/kocevski/784014/ft1_filtered_4FGL_J2321.9+3204_daily_bin635.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/784014/ft1_filtered_4FGL_J2321.9+3204_daily_bin635.fits" evtable="EVENTS" scfile=/scratch/kocevski/784014/ft2_4FGL_J2321.9+3204_daily_bin635.fits sctable="SC_DATA" outfile=/scratch/kocevski/784014/ltcube_403920001_404179201_4FGL_J2321.9+3204_daily_bin635.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/784014/ft2_4FGL_J2321.9+3204_daily_bin635.fits
.....................!
real 9.11
user 8.77
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/784014/ft1_filtered_4FGL_J2321.9+3204_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/784014/ft2_4FGL_J2321.9+3204_daily_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/784014/ltcube_403920001_404179201_4FGL_J2321.9+3204_daily_bin635.fits outfile=/scratch/kocevski/784014/expmap_403920001_404179201_4FGL_J2321.9+3204_daily_bin635.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/784014/ltcube_403920001_404179201_4FGL_J2321.9+3204_daily_bin635.fits
.....................!
real 190.11
user 184.49
sys 5.31

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/784014/ft1_filtered_4FGL_J2321.9+3204_daily_bin635.fits scfile=/scratch/kocevski/784014/ft2_4FGL_J2321.9+3204_daily_bin635.fits outfile=/scratch/kocevski/784014/cmap_403920001_404179201_4FGL_J2321.9+3204_daily_bin635.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/784014/ft1_filtered_4FGL_J2321.9+3204_daily_bin635.fits scfile=/scratch/kocevski/784014/ft2_4FGL_J2321.9+3204_daily_bin635.fits outfile=/scratch/kocevski/784014/cmap_HighResolution_403920001_404179201_4FGL_J2321.9+3204_daily_bin635.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.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/784014/ft1_filtered_4FGL_J2321.9+3204_daily_bin635.fits', '/scratch/kocevski/784014/ft2_4FGL_J2321.9+3204_daily_bin635.fits', expMap='/scratch/kocevski/784014/expmap_403920001_404179201_4FGL_J2321.9+3204_daily_bin635.fits', expCube='/scratch/kocevski/784014/ltcube_403920001_404179201_4FGL_J2321.9+3204_daily_bin635.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/784014/Model_4FGL_J2321.9+3204_daily_bin635.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/784014/ft1_filtered_4FGL_J2321.9+3204_daily_bin635.fits
Spacecraft file(s): /scratch/kocevski/784014/ft2_4FGL_J2321.9+3204_daily_bin635.fits
Exposure map: /scratch/kocevski/784014/expmap_403920001_404179201_4FGL_J2321.9+3204_daily_bin635.fits
Exposure cube: /scratch/kocevski/784014/ltcube_403920001_404179201_4FGL_J2321.9+3204_daily_bin635.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/784014/Model_4FGL_J2321.9+3204_daily_bin635.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) = 6208.01031196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.7919       1.0000         .10000E-03   10000.    
     3 'norm      '    1.9092       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.808       1.0000         .10000E-03   10000.    
     6 'norm      '    .43844       1.0000         .10000E-03   10000.    
     7 'Prefactor '    43.659       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14023E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1304       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.6474       1.0000         .10000E-03   10000.    
    11 'norm      '    15.801       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.9165       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.625       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    40.788       1.0000         .10000E-03   10000.    
    16 'norm      '    2.6589       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10293E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.5512       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.9566       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.995       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .99037       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .74317       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=   6207.972     FROM MIGRAD    STATUS=CONVERGED    555 CALLS     2753 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.5185       -.31611E-07** at limit **
   2  Prefactor     9.7874        8.3158       -.24779E-07    .14714E-04
   3  norm          1.9089        1.2483       -.31893E-08    .79934E-04
   4  Prefactor     .10000E-03    112.80       -.16482E-05** at limit **
   5  Prefactor     16.790        23.061        .92504E-07    .14671E-04
   6  norm          .40033        5.8079        .32945E-05    .79719E-03
   7  Prefactor     43.664        28.598        .76806E-06    .41765E-03
   8  Prefactor     .10013E-03    41.928       -.12727E-04** at limit **
   9  Prefactor     3.1250        19.018       -.13419E-05   -.37083E-04
  10  Prefactor     6.6477        27.656       -.71790E-07    .30771E-04
  11  norm          15.800        3.0089       -.24357E-07   -.20448E-04
  12  Prefactor     6.8931        26.371       -.15688E-06    .67720E-05
  13  Prefactor     14.622        12.123        .21877E-06    .21806E-03
  14  Prefactor     .10000E-03    18.943       -.22422E-06** at limit **
  15  norm          40.793        9.9048       -.73800E-06   -.67064E-03
  16  norm          2.6588        7.5236       -.13673E-05   -.16411E-03
  17  Prefactor     .10000E-03    61.384       -.82853E-06** at limit **
  18  norm          2.5514        2.4167        .23393E-07    .11829E-03
  19  Prefactor     6.9567        13.368       -.13765E-06    .29281E-05
  20  Prefactor     16.926        34.979        .28965E-05    .18233E-03
  21  Prefactor     .10000E-03    16.379        .13766E-06** at limit **
  22  Prefactor     .10000E-03    1.9983       -.64351E-07** at limit **
  23  Normalizat    .99115        .24317        .27177E-07    .44724E-03
  24  Prefactor     .74286        .11458        .84368E-07    .20905E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 9.78739
  norm       = 1.90887
  Prefactor  = 0.000100001
  Prefactor  = 16.7902
  norm       = 0.40033
  Prefactor  = 43.6643
  Prefactor  = 0.000100125
  Prefactor  = 3.12496
  Prefactor  = 6.64773
  norm       = 15.8003
  Prefactor  = 6.89309
  Prefactor  = 14.6221
  Prefactor  = 0.0001
  norm       = 40.7928
  norm       = 2.65876
  Prefactor  = 0.000100002
  norm       = 2.55141
  Prefactor  = 6.95672
  Prefactor  = 16.9262
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.99115
  Prefactor  = 0.742862
 **********
 **   18 **HESSE 
 **********

 FCN=   6207.972     FROM HESSE     STATUS=OK           401 CALLS     3154 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.5206        .16357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.7874        8.3292        .12806E-03   -1.5082    
   3  norm          1.9089        1.2419        .67196E-04   -1.5432    
   4  Prefactor     .10000E-03    113.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.790        23.037        .97692E-04   -1.4888    
   6  norm          .40033        19.940        .25704E-02   -1.5581    
   7  Prefactor     43.664        28.767        .60674E-04   -1.4385    
   8  Prefactor     .10013E-03    51.507        .33405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.1250        19.123        .22914E-03   -1.5354    
  10  Prefactor     6.6477        27.666        .15564E-03   -1.5192    
  11  norm          15.800        3.0111        .56231E-04   -1.4913    
  12  Prefactor     6.8931        26.435        .15255E-03   -1.5183    
  13  Prefactor     14.622        12.118        .10473E-03   -1.4943    
  14  Prefactor     .10000E-03    18.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          40.793        10.015        .31382E-03   -1.4430    
  16  norm          2.6588        7.5178        .24997E-03   -1.5382    
  17  Prefactor     .10000E-03    61.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.5514        2.4162        .11461E-03   -1.5388    
  19  Prefactor     6.9567        13.362        .15211E-03   -1.5180    
  20  Prefactor     16.926        35.353        .97153E-04   -1.4885    
  21  Prefactor     .10000E-03    16.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.0016        .10877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .99115        .26575        .33416E-03   -.93327    
  24  Prefactor     .74286        .12488        .18102E-03   -1.0187    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.03694e-09
Minuit parameter uncertainties:
  1  4.98099e-08
  2  8.33016
  3  1.24196
  4  0.000728001
  5  23.0488
  6  5.65196
  7  28.7764
  8  0.00508044
  9  15.4677
  10  27.1445
  11  3.01114
  12  26.4799
  13  12.1197
  14  1.55962e-05
  15  10.0158
  16  7.52046
  17  0.000610573
  18  2.41625
  19  13.3679
  20  35.3971
  21  3.41503e-05
  22  9.04775e-07
  23  0.266105
  24  0.124927
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  4.079e+01  1.002e+01  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:  7.429e-01  1.249e-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.912e-01  2.661e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 57.23
Ra Dec: 350.478 32.074
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 2.48e-07 +/- 6.10e-08
Energy Flux (Fixed Index): 1.12e-04 +/- 2.74e-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) = 6207.88634352
delta logL = 0.0852586403871

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6207.86786052
delta logL = 0.103741643843

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    42.623       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0207       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0106       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73751       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.

 FCN=   6207.868     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      205 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          42.623        16.096        .15351E-02   -.49728E-02
   2  alpha         2.0208        .35944        .16944        .21224E-04
   3  Normalizat    1.0107        .22033        .74935E-01   -.47636E-04
   4  Prefactor     .73744        .10330        .42898E-01    .21839E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 42.6233
  alpha      = 2.02077
  Normalizat = 1.0107
  Prefactor  = 0.737442
 **********
 **   18 **HESSE 
 **********

 FCN=   6207.868     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          42.623        11.069        .61404E-04   -1.4401    
   2  alpha         2.0208        .25746        .71735E-02   -.19289    
   3  Normalizat    1.0107        .25093        .33159E-03   -.92673    
   4  Prefactor     .73744        .11864        .18168E-03   -1.0208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.13935e-09
Minuit parameter uncertainties:
  1  11.0697
  2  0.257932
  3  0.251222
  4  0.118683
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/784014': 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) = 6207.86786034
delta logL = 0.103741818409

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  4.262e+01  1.107e+01  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  2.021e+00  2.579e-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:  7.374e-01  1.187e-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:  1.011e+00  2.512e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 57.61
Ra Dec: 350.478 32.074
Photon Index (Free Index): 2.02 +/- 0.26
Photon Flux (Free Index): 2.28e-07 +/- 7.14e-08
Energy Flux (Free Index): 1.21e-04 +/- 3.80e-05

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/784014/cmap_HighResolution_403920001_404179201_4FGL_J2321.9+3204_daily_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.48e-07', energy_flux2='1.21e-04', photon_flux_error='6.10e-08', dlogl='1.04e-01', energy_flux='1.12e-04', photon_flux2='2.28e-07', job_status='DONE', time_completed='2021-09-29 13:18:48.354845', photon_index_error2='0.26', photon_index2='2.02', ts='57.23', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='3.80e-05', EG='0.99', time_epoch_completed='1632946728.35', return_code='0', job_id='784014', GAL2='0.74', EG2='1.01', return_code2='0', energy_flux_error='2.74e-05', photon_flux_error2='7.14e-08', ts2='57.61', photon_index='2.14' WHERE bin_id='635' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:18:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 784014: <4FGL_J2321.9+3204_daily_bin635> in cluster <slac> Done

Job <4FGL_J2321.9+3204_daily_bin635> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 13:05:41 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 13:05:42 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:05:42 2021
Terminated at Wed Sep 29 13:18:49 2021
Results reported at Wed Sep 29 13:18:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin635 350.478 32.0737 403920001 404179201 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 :                                   648.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            788 sec.

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

