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


Performing analysis on: 4FGL_J2321.9+3204_daily_bin1357
RA = 350.478, Dec = 32.0737
tmin = 591062401, tmax = 591321601
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='788311', job_status='RUN', time_executed='2021-09-29 13:25:15.854131', time_epoch_executed='1632947115.85' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='1357'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/788311

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/788311/ft1_4FGL_J2321.9+3204_daily_bin1357.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/788311/ft2_4FGL_J2321.9+3204_daily_bin1357.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/788311/ft1_4FGL_J2321.9+3204_daily_bin1357.fits outfile=/scratch/kocevski/788311/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin1357.fits ra=350.478 dec=32.0737 rad=12.0 tmin=591062401.0 tmax=591321601.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.03
user 2.81
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/788311/ft1_filtered_4FGL_J2321.9+3204_daily_bin1357.fits" evtable="EVENTS" scfile=/scratch/kocevski/788311/ft2_4FGL_J2321.9+3204_daily_bin1357.fits sctable="SC_DATA" outfile=/scratch/kocevski/788311/ltcube_591062401_591321601_4FGL_J2321.9+3204_daily_bin1357.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/788311/ft2_4FGL_J2321.9+3204_daily_bin1357.fits
.....................!
real 12.23
user 11.90
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/788311/ft1_filtered_4FGL_J2321.9+3204_daily_bin1357.fits evtable="EVENTS" scfile=/scratch/kocevski/788311/ft2_4FGL_J2321.9+3204_daily_bin1357.fits sctable="SC_DATA" expcube=/scratch/kocevski/788311/ltcube_591062401_591321601_4FGL_J2321.9+3204_daily_bin1357.fits outfile=/scratch/kocevski/788311/expmap_591062401_591321601_4FGL_J2321.9+3204_daily_bin1357.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/788311/ltcube_591062401_591321601_4FGL_J2321.9+3204_daily_bin1357.fits
.....................!
real 190.91
user 185.49
sys 5.07

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/788311/ft1_filtered_4FGL_J2321.9+3204_daily_bin1357.fits scfile=/scratch/kocevski/788311/ft2_4FGL_J2321.9+3204_daily_bin1357.fits outfile=/scratch/kocevski/788311/cmap_591062401_591321601_4FGL_J2321.9+3204_daily_bin1357.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/788311/ft1_filtered_4FGL_J2321.9+3204_daily_bin1357.fits scfile=/scratch/kocevski/788311/ft2_4FGL_J2321.9+3204_daily_bin1357.fits outfile=/scratch/kocevski/788311/cmap_HighResolution_591062401_591321601_4FGL_J2321.9+3204_daily_bin1357.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.56
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/788311/ft1_filtered_4FGL_J2321.9+3204_daily_bin1357.fits', '/scratch/kocevski/788311/ft2_4FGL_J2321.9+3204_daily_bin1357.fits', expMap='/scratch/kocevski/788311/expmap_591062401_591321601_4FGL_J2321.9+3204_daily_bin1357.fits', expCube='/scratch/kocevski/788311/ltcube_591062401_591321601_4FGL_J2321.9+3204_daily_bin1357.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/788311/Model_4FGL_J2321.9+3204_daily_bin1357.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/788311/ft1_filtered_4FGL_J2321.9+3204_daily_bin1357.fits
Spacecraft file(s): /scratch/kocevski/788311/ft2_4FGL_J2321.9+3204_daily_bin1357.fits
Exposure map: /scratch/kocevski/788311/expmap_591062401_591321601_4FGL_J2321.9+3204_daily_bin1357.fits
Exposure cube: /scratch/kocevski/788311/ltcube_591062401_591321601_4FGL_J2321.9+3204_daily_bin1357.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/788311/Model_4FGL_J2321.9+3204_daily_bin1357.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 488.113356892

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 481.83001721

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.4975       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4539       1.0000         .10000E-03   10000.    
     3 'norm      '    10.801       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15585E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.732       1.0000         .10000E-03   10000.    
     6 'norm      '    2.4121       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10948E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    51.392       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4525       1.0000         .10000E-03   10000.    
    11 'norm      '    .19849E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    546.16       1.0000         .10000E-03   10000.    
    13 'Prefactor '    138.20       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .29118       1.0000         .10000E-03   10000.    
    15 'norm      '    101.15       1.0000         .10000E-03   10000.    
    16 'norm      '    .25029E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .59516E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    20.987       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .79448       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.4035       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.8447       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.7714       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .24624       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .58058       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   481.4857     FROM MIGRAD    STATUS=CONVERGED    402 CALLS      720 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          57.673        196.82        .18366E-05   -.45959E-02
   2  Prefactor     2.4539        1.0224         .0000         .0000    
   3  norm          10.905        6.4816        .16206E-06   -.14040E-03
   4  Prefactor     .10000E-03    201.52       -.22688E-04** at limit **
   5  Prefactor     28.222        83.696       -.73943E-05   -.26975E-04
   6  norm          2.2615        10.582        .48340E-05   -.45527E-06
   7  Prefactor     .10000E-03    32.982        .65105E-06** at limit **
   8  Prefactor     .10000E-03    7.2625        .59011E-06** at limit **
   9  Prefactor     50.633        56.765       -.80135E-05   -.84223E-04
  10  Prefactor     .10000E-03    313.00        .15211E-04** at limit **
  11  norm          .10000E-03    22.536        .36258E-05** at limit **
  12  Prefactor     536.36        405.20        .16677E-05    .24268E-01
  13  Prefactor     106.98        123.47        .19257E-04   -.33940E-03
  14  Prefactor     .10000E-03    281.25        .11825E-04** at limit **
  15  norm          98.900        92.898       -.99124E-05    .25836E-03
  16  norm          .10000E-03    64.266        .14340E-04** at limit **
  17  Prefactor     .10000E-03    237.07        .52843E-04** at limit **
  18  norm          16.213        25.032       -.14003E-04    .25868E-04
  19  Prefactor     .10035E-03    1695.3       -.21004E-03** at limit **
  20  Prefactor     7.4035        1.0023         .0000         .0000    
  21  Prefactor     16.241        570.68        .51263E-05   -.73340E-02
  22  Prefactor    10000.0        9460.1       -.78325E-04   -.15549E-03
  23  Normalizat    .11818        6.9263        .59043E-04   -.56389E-05
  24  Prefactor     .61758        .46130        .67127E-06    .37993E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 57.6728
  Prefactor  = 2.4539
  norm       = 10.9052
  Prefactor  = 0.0001
  Prefactor  = 28.2217
  norm       = 2.26149
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.6325
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 536.357
  Prefactor  = 106.981
  Prefactor  = 0.000100002
  norm       = 98.9002
  norm       = 0.000100003
  Prefactor  = 0.000100002
  norm       = 16.2129
  Prefactor  = 0.000100348
  Prefactor  = 7.40346
  Prefactor  = 16.2414
  Prefactor  = 9999.99
  Normalizat = 0.118177
  Prefactor  = 0.617579
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   481.4857     FROM HESSE     STATUS=FAILED        13 CALLS      733 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          57.673        2272.0        .36617E-02   -1.4188    
   2  Prefactor     561.96        559.40         .0000       -1.5395    
   3  norm          10.905        1.0059        .16206E-06   -1.5047    
   4  Prefactor     .10000E-03    .20706       -.22688E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     28.222        .97447       -.73943E-05   -1.4645    
   6  norm          2.2615        .99081        .48340E-05   -1.5407    
   7  Prefactor     .10000E-03    .20601        .65105E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .20571        .59011E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     50.633        .99267       -.80135E-05   -1.4284    
  10  Prefactor     .10000E-03    .10660        .15211E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .25593        .36258E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     536.36        .99150        .16677E-05   -1.1034    
  13  Prefactor     106.98        .88122        .19257E-04   -1.3636    
  14  Prefactor     .10000E-03    .26968        .11825E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          98.900        .98892       -.99124E-05   -1.3716    
  16  norm          .10000E-03    .20919        .14340E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .21699        .52843E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          16.213        .87938       -.14003E-04   -1.4902    
  19  Prefactor     .10035E-03    .38559       -.21004E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.4035        1.0023         .0000       -1.5164    
  21  Prefactor     16.241        1.3568        .51263E-05   -1.6514    
  22  Prefactor    10000.0        .15467       -.78325E-04    1.5685    
  23  Normalizat    .11818        .36276        .59043E-04   -1.7793    
  24  Prefactor     .61758        .95484        .67127E-06   -1.0685    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.36685e-10
Minuit parameter uncertainties:
  1  757.232
  2  1.02243
  3  1.0059
  4  1.16233e-05
  5  0.974474
  6  0.990821
  7  4.05285e-06
  8  3.16408e-06
  9  0.992673
  10  1.37285e-05
  11  1.81801e-05
  12  0.991496
  13  0.881217
  14  4.80775e-05
  15  0.988921
  16  4.62953e-05
  17  3.87859e-05
  18  0.879384
  19  0.000732737
  20  1.0023
  21  1.35677
  22  0.0896855
  23  0.370652
  24  0.981844
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 481.485682761

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  9.890e+01  9.889e-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:  6.176e-01  9.818e-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.182e-01  3.707e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.09
Ra Dec: 350.478 32.074
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 6.02e-07 +/- 6.02e-09
Energy Flux (Fixed Index): 2.71e-04 +/- 2.71e-06

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) = 480.544239953
delta logL = 0.941442807706

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 480.408560257
delta logL = 1.07712250438

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    48.703       1.0000         .10000E-03   10000.    
     2 'alpha     '    .80865       1.0000          .0000       5.0000    
     3 'Normalizat'    .19180       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60998       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=   480.4086     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      254 TOTAL
                     EDM=   .70E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          48.903        75.231        .28730E-03    .42885E-05
   2  alpha         .81064        .78399        .60989E-03   -.51960E-06
   3  Normalizat    .19273        1.7103        .78813E-03   -.69005E-05
   4  Prefactor     .60976        .43110        .16634E-03   -.31656E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 48.9034
  alpha      = 0.810644
  Normalizat = 0.192727
  Prefactor  = 0.609762
 **********
 **   18 **HESSE 
 **********

 FCN=   480.4086     FROM HESSE     STATUS=OK            23 CALLS      277 TOTAL
                     EDM=   .70E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          48.903        75.240        .11492E-04   -1.4308    
   2  alpha         .81064        .78408        .24396E-04   -.74197    
   3  Normalizat    .19273        1.7004        .31525E-04   -1.2995    
   4  Prefactor     .60976        .42977        .33269E-04   -1.0718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.98807e-12
Minuit parameter uncertainties:
  1  75.3862
  2  0.809904
  3  1.16143
  4  0.43212
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/788311': 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) = 480.408555937
delta logL = 1.0771268235

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  4.890e+01  7.539e+01  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  8.106e-01  8.099e-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:  6.098e-01  4.321e-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.927e-01  1.161e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.21
Ra Dec: 350.478 32.074
Photon Index (Free Index): 0.81 +/- 0.81
Photon Flux (Free Index): 1.96e-07 +/- 2.10e-07
Energy Flux (Free Index): 1.43e-03 +/- 2.48e-03

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/788311/cmap_HighResolution_591062401_591321601_4FGL_J2321.9+3204_daily_bin1357.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.02e-07', energy_flux2='1.43e-03', photon_flux_error='6.02e-09', dlogl='1.08e+00', energy_flux='2.71e-04', photon_flux2='1.96e-07', job_status='DONE', time_completed='2021-09-29 13:30:43.901067', photon_index_error2='0.81', photon_index2='0.81', ts='5.09', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', energy_flux_error2='2.48e-03', EG='0.12', time_epoch_completed='1632947443.9', return_code='101', job_id='788311', GAL2='0.61', EG2='0.19', return_code2='0', energy_flux_error='2.71e-06', photon_flux_error2='2.10e-07', ts2='7.21', photon_index='2.14' WHERE bin_id='1357' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:30:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 788311: <4FGL_J2321.9+3204_daily_bin1357> in cluster <slac> Done

Job <4FGL_J2321.9+3204_daily_bin1357> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 13:21:11 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 13:21:13 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:21:13 2021
Terminated at Wed Sep 29 13:30:44 2021
Results reported at Wed Sep 29 13:30:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin1357 350.478 32.0737 591062401 591321601 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 :                                   322.37 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             218.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   571 sec.
    Turnaround time :                            573 sec.

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

