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


Performing analysis on: 4FGL_J2321.9+3204_daily_bin1607
RA = 350.478, Dec = 32.0737
tmin = 655862401, tmax = 656121601
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='500025', job_status='RUN', time_executed='2021-12-08 09:26:54.543143', time_epoch_executed='1638984414.54' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='1607'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/500025

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/500025/ft1_4FGL_J2321.9+3204_daily_bin1607.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/500025/ft2_4FGL_J2321.9+3204_daily_bin1607.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/500025/ft1_4FGL_J2321.9+3204_daily_bin1607.fits outfile=/scratch/kocevski/500025/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin1607.fits ra=350.478 dec=32.0737 rad=12.0 tmin=655862401.0 tmax=656121601.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.82
user 3.60
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/500025/ft1_filtered_4FGL_J2321.9+3204_daily_bin1607.fits" evtable="EVENTS" scfile=/scratch/kocevski/500025/ft2_4FGL_J2321.9+3204_daily_bin1607.fits sctable="SC_DATA" outfile=/scratch/kocevski/500025/ltcube_655862401_656121601_4FGL_J2321.9+3204_daily_bin1607.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/500025/ft2_4FGL_J2321.9+3204_daily_bin1607.fits
.....................!
real 11.63
user 11.26
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/500025/ft1_filtered_4FGL_J2321.9+3204_daily_bin1607.fits evtable="EVENTS" scfile=/scratch/kocevski/500025/ft2_4FGL_J2321.9+3204_daily_bin1607.fits sctable="SC_DATA" expcube=/scratch/kocevski/500025/ltcube_655862401_656121601_4FGL_J2321.9+3204_daily_bin1607.fits outfile=/scratch/kocevski/500025/expmap_655862401_656121601_4FGL_J2321.9+3204_daily_bin1607.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/500025/ltcube_655862401_656121601_4FGL_J2321.9+3204_daily_bin1607.fits
.....................!
real 157.88
user 153.14
sys 4.32

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/500025/ft1_filtered_4FGL_J2321.9+3204_daily_bin1607.fits scfile=/scratch/kocevski/500025/ft2_4FGL_J2321.9+3204_daily_bin1607.fits outfile=/scratch/kocevski/500025/cmap_655862401_656121601_4FGL_J2321.9+3204_daily_bin1607.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.48
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/500025/ft1_filtered_4FGL_J2321.9+3204_daily_bin1607.fits scfile=/scratch/kocevski/500025/ft2_4FGL_J2321.9+3204_daily_bin1607.fits outfile=/scratch/kocevski/500025/cmap_HighResolution_655862401_656121601_4FGL_J2321.9+3204_daily_bin1607.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.49
user 0.31
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10238E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.8600       1.0000         .10000E-03   10000.    
     3 'norm      '    3.8888       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.8091       1.0000         .10000E-03   10000.    
     6 'norm      '    .45040       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.7681       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.830       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.2701       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10452E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.944       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.559       1.0000         .10000E-03   10000.    
    15 'norm      '    10.777       1.0000         .10000E-03   10000.    
    16 'norm      '    3.8578       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.1132       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.2783       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.1930       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.335       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .82415       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .93926       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=   8882.375     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2723 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    24.588        .71792E-06** at limit **
   2  Prefactor     4.8604        5.8222        .13747E-06   -.80053E-04
   3  norm          3.8889        1.2329        .18115E-07   -.32117E-05
   4  Prefactor     .10001E-03    49.000        .54632E-05** at limit **
   5  Prefactor     8.8093        9.0863        .13630E-07    .99644E-05
   6  norm          .45879        1.9022       -.34333E-06    .27429E-03
   7  Prefactor     .10000E-03    12.294        .45411E-07** at limit **
   8  Prefactor     6.7675        5.5998        .24710E-06    .27879E-03
   9  Prefactor     13.830        9.8169        .96912E-07    .25858E-04
  10  Prefactor     .10000E-03    9.2005       -.99115E-08** at limit **
  11  norm          2.2703        1.2814        .24582E-07   -.73105E-04
  12  Prefactor     .10001E-03    36.989       -.43167E-05** at limit **
  13  Prefactor     16.946        11.320        .51768E-06   -.19655E-03
  14  Prefactor     15.556        21.614       -.70520E-08    .16152E-04
  15  norm          10.778        5.1007        .38440E-06    .52262E-03
  16  norm          3.8574        8.0900        .64282E-05   -.78476E-03
  17  Prefactor     .10000E-03    4.9266        .14232E-06** at limit **
  18  norm          4.1133        2.5849       -.17752E-06   -.12701E-03
  19  Prefactor     .10000E-03    4.7694       -.65001E-07** at limit **
  20  Prefactor     3.2761        45.040        .67265E-06   -.12624E-04
  21  Prefactor     3.1389        62.488       -.16024E-04   -.24495E-03
  22  Prefactor     11.327        8.5764        .89255E-06    .89780E-04
  23  Normalizat    .82405        .18194       -.52702E-06    .40668E-04
  24  Prefactor     .93929        .89821E-01   -.32463E-06    .14195E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 4.86036
  norm       = 3.88885
  Prefactor  = 0.000100011
  Prefactor  = 8.80926
  norm       = 0.458786
  Prefactor  = 0.0001
  Prefactor  = 6.76747
  Prefactor  = 13.8299
  Prefactor  = 0.0001
  norm       = 2.27034
  Prefactor  = 0.000100005
  Prefactor  = 16.9459
  Prefactor  = 15.5561
  norm       = 10.7777
  norm       = 3.8574
  Prefactor  = 0.0001
  norm       = 4.11332
  Prefactor  = 0.0001
  Prefactor  = 3.27612
  Prefactor  = 3.13893
  Prefactor  = 11.3271
  Normalizat = 0.824051
  Prefactor  = 0.939287
 **********
 **   18 **HESSE 
 **********

 FCN=   8882.375     FROM HESSE     STATUS=OK           407 CALLS     3130 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    24.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.8604        5.8176        .18247E-03   -1.5267    
   3  norm          3.8889        1.2330        .56823E-04   -1.5314    
   4  Prefactor     .10001E-03    49.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.8093        9.0884        .13505E-03   -1.5114    
   6  norm          .45879        7.7546        .24154E-02   -1.5573    
   7  Prefactor     .10000E-03    12.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.7675        5.5991        .15423E-03   -1.5188    
   9  Prefactor     13.830        9.8168        .10770E-03   -1.4964    
  10  Prefactor     .10000E-03    9.2080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.2703        1.2754        .76464E-04   -1.5407    
  12  Prefactor     .10001E-03    37.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.946        11.313        .48650E-03   -1.4884    
  14  Prefactor     15.556        21.612        .10154E-03   -1.4919    
  15  norm          10.778        5.1077        .12204E-03   -1.5051    
  16  norm          3.8574        8.4841        .10273E-02   -1.5315    
  17  Prefactor     .10000E-03    4.9354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.1133        2.5828        .11426E-03   -1.5302    
  19  Prefactor     .10000E-03    4.7719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.2761        45.133        .22364E-03   -1.5346    
  21  Prefactor     3.1389        71.639        .22676E-03   -1.5354    
  22  Prefactor     11.327        8.5929        .11899E-03   -1.5035    
  23  Normalizat    .82405        .20818        .35374E-03   -.99183    
  24  Prefactor     .93929        .10458        .16686E-03   -.94782    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.8101e-09
Minuit parameter uncertainties:
  1  0.000206365
  2  5.81828
  3  1.233
  4  0.00146084
  5  9.08987
  6  3.77253
  7  2.73464e-06
  8  5.59958
  9  9.81795
  10  1.6174e-06
  11  1.27537
  12  0.000900093
  13  11.3147
  14  21.6224
  15  5.10789
  16  8.48675
  17  1.80907e-06
  18  2.58291
  19  4.63697e-06
  20  24.3417
  21  30.0314
  22  8.59384
  23  0.208378
  24  0.104599
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.078e+01  5.108e+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:  9.393e-01  1.046e-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:  8.241e-01  2.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.76
Ra Dec: 350.478 32.074
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 6.56e-08 +/- 3.11e-08
Energy Flux (Fixed Index): 2.95e-05 +/- 1.40e-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) = 8881.99978491
delta logL = 0.375462571013

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8881.99254839
delta logL = 0.382699095531

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.030       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7532       1.0000          .0000       5.0000    
     3 'Normalizat'    .84631       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93229       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=   8881.993     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      216 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.028        10.356        .28874E-02    .65847E-04
   2  alpha         1.7532        .65203        .35691       -.12957E-04
   3  Normalizat    .84630        .17937        .78966E-01    .14581E-04
   4  Prefactor     .93229        .89112E-01    .45415E-01   -.49807E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.0278
  alpha      = 1.7532
  Normalizat = 0.846298
  Prefactor  = 0.93229
 **********
 **   18 **HESSE 
 **********

 FCN=   8881.993     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.028        5.6767        .11550E-03   -1.5014    
   2  alpha         1.7532        .41072        .13701E-01   -.30335    
   3  Normalizat    .84630        .20021        .34956E-03   -.98374    
   4  Prefactor     .93229        .10079        .16739E-03   -.95022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.12025e-11
Minuit parameter uncertainties:
  1  5.67699
  2  0.412777
  3  0.200386
  4  0.100813
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/500025': 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) = 8881.99254832
delta logL = 0.382699157271

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.203e+01  5.677e+00  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  1.753e+00  4.128e-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:  9.323e-01  1.008e-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:  8.463e-01  2.004e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.54
Ra Dec: 350.478 32.074
Photon Index (Free Index): 1.75 +/- 0.41
Photon Flux (Free Index): 5.01e-08 +/- 2.90e-08
Energy Flux (Free Index): 4.20e-05 +/- 2.75e-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/500025/cmap_HighResolution_655862401_656121601_4FGL_J2321.9+3204_daily_bin1607.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.56e-08', energy_flux2='4.20e-05', photon_flux_error='3.11e-08', dlogl='3.83e-01', energy_flux='2.95e-05', photon_flux2='5.01e-08', job_status='DONE', time_completed='2021-12-08 09:37:18.483573', photon_index_error2='0.41', photon_index2='1.75', ts='8.76', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='2.75e-05', EG='0.82', time_epoch_completed='1638985038.48', return_code='0', job_id='500025', GAL2='0.93', EG2='0.85', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='2.90e-08', ts2='9.54', photon_index='2.14' WHERE bin_id='1607' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 09:37:18 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 500025: <4FGL_J2321.9+3204_daily_bin1607> in cluster <slac> Done

Job <4FGL_J2321.9+3204_daily_bin1607> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Wed Dec  8 09:25:18 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 09:25:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 09:25:25 2021
Terminated at Wed Dec  8 09:37:19 2021
Results reported at Wed Dec  8 09:37:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin1607 350.478 32.0737 655862401 656121601 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 :                                   623.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             281.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            721 sec.

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

