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


Performing analysis on: 4FGL_J2321.9+3204_daily_bin567
RA = 350.478, Dec = 32.0737
tmin = 386294401, tmax = 386553601
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='783909', job_status='RUN', time_executed='2021-09-29 13:05:45.552413', time_epoch_executed='1632945945.55' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='567'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/783909

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/783909/ft1_4FGL_J2321.9+3204_daily_bin567.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/783909/ft2_4FGL_J2321.9+3204_daily_bin567.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/783909/ft1_4FGL_J2321.9+3204_daily_bin567.fits outfile=/scratch/kocevski/783909/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin567.fits ra=350.478 dec=32.0737 rad=12.0 tmin=386294401.0 tmax=386553601.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.95
user 3.71
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/783909/ft1_filtered_4FGL_J2321.9+3204_daily_bin567.fits" evtable="EVENTS" scfile=/scratch/kocevski/783909/ft2_4FGL_J2321.9+3204_daily_bin567.fits sctable="SC_DATA" outfile=/scratch/kocevski/783909/ltcube_386294401_386553601_4FGL_J2321.9+3204_daily_bin567.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/783909/ft2_4FGL_J2321.9+3204_daily_bin567.fits
.....................!
real 11.73
user 11.36
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/783909/ft1_filtered_4FGL_J2321.9+3204_daily_bin567.fits evtable="EVENTS" scfile=/scratch/kocevski/783909/ft2_4FGL_J2321.9+3204_daily_bin567.fits sctable="SC_DATA" expcube=/scratch/kocevski/783909/ltcube_386294401_386553601_4FGL_J2321.9+3204_daily_bin567.fits outfile=/scratch/kocevski/783909/expmap_386294401_386553601_4FGL_J2321.9+3204_daily_bin567.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/783909/ltcube_386294401_386553601_4FGL_J2321.9+3204_daily_bin567.fits
.....................!
real 191.01
user 185.34
sys 5.27

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/783909/ft1_filtered_4FGL_J2321.9+3204_daily_bin567.fits scfile=/scratch/kocevski/783909/ft2_4FGL_J2321.9+3204_daily_bin567.fits outfile=/scratch/kocevski/783909/cmap_386294401_386553601_4FGL_J2321.9+3204_daily_bin567.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/783909/ft1_filtered_4FGL_J2321.9+3204_daily_bin567.fits scfile=/scratch/kocevski/783909/ft2_4FGL_J2321.9+3204_daily_bin567.fits outfile=/scratch/kocevski/783909/cmap_HighResolution_386294401_386553601_4FGL_J2321.9+3204_daily_bin567.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.54
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.1575       1.0000         .10000E-03   10000.    
     3 'norm      '    4.0801       1.0000         .10000E-03   10000.    
     4 'Prefactor '    84.072       1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.920       1.0000         .10000E-03   10000.    
     6 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .71710       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.0259       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.129       1.0000         .10000E-03   10000.    
    11 'norm      '    2.1277       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .94923E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.682       1.0000         .10000E-03   10000.    
    16 'norm      '    16.082       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.576       1.0000         .10000E-03   10000.    
    18 'norm      '    2.3567       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    55.018       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .36086E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.1075       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .44477       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1283       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=   8363.498     FROM MIGRAD    STATUS=CONVERGED    962 CALLS     3556 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.2194        .18142E-02** at limit **
   2  Prefactor     7.1580        6.7754        .14994E-03   -.23809E-04
   3  norm          4.0802        1.4652        .61416E-04   -.14142E-03
   4  Prefactor     84.108        66.810        .21905E-03   -.43492E-04
   5  Prefactor     21.921        20.101        .85551E-04   -.25780E-04
   6  norm          .10000E-03    2.2668        .13338E-02** at limit **
   7  Prefactor     .10000E-03    7.3416        .18142E-02** at limit **
   8  Prefactor     .72077        12.634        .29810E-02    .63889E-03
   9  Prefactor     6.0265        7.5104        .16357E-03   -.14735E-04
  10  Prefactor     14.125        20.535        .10656E-03    .54626E-04
  11  norm          2.1279        1.2912        .77581E-04    .57443E-04
  12  Prefactor     .10000E-03    5.6564        .18142E-02** at limit **
  13  Prefactor     .10001E-03    49.357        .38073E-02** at limit **
  14  Prefactor     .10000E-03    9.5787        .18142E-02** at limit **
  15  norm          10.682        6.0362        .12258E-03   -.43960E-04
  16  norm          16.083        11.073        .99872E-04    .68755E-04
  17  Prefactor     16.581        17.730        .98375E-04   -.32820E-04
  18  norm          2.3571        2.1536        .12372E-03    .33725E-03
  19  Prefactor     .10000E-03    8.7211        .18142E-02** at limit **
  20  Prefactor     55.035        37.773        .54078E-04   -.72738E-04
  21  Prefactor     .10001E-03    45.628        .15550    ** at limit **
  22  Prefactor     6.1119        7.9468        .81228E-03    .71408E-04
  23  Normalizat    .44469        .22675        .47622E-03    .16444E-03
  24  Prefactor     1.1283        .11360        .15638E-03    .57736E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 7.15804
  norm       = 4.08021
  Prefactor  = 84.1084
  Prefactor  = 21.921
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.720769
  Prefactor  = 6.02651
  Prefactor  = 14.1255
  norm       = 2.12794
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  norm       = 10.6817
  norm       = 16.083
  Prefactor  = 16.5808
  norm       = 2.35714
  Prefactor  = 0.0001
  Prefactor  = 55.0352
  Prefactor  = 0.00010001
  Prefactor  = 6.11192
  Normalizat = 0.44469
  Prefactor  = 1.12831
 **********
 **   18 **HESSE 
 **********

 FCN=   8363.498     FROM HESSE     STATUS=OK           387 CALLS     3943 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.2199        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.1580        6.7751        .59974E-05   -1.5173    
   3  norm          4.0802        1.4650        .24567E-05   -1.5304    
   4  Prefactor     84.108        66.805        .87620E-05   -1.3871    
   5  Prefactor     21.921        20.094        .34221E-05   -1.4771    
   6  norm          .10000E-03    2.2673        .26676E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.3420        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .72077        12.591        .11924E-03   -1.5538    
   9  Prefactor     6.0265        7.5099        .65427E-05   -1.5217    
  10  Prefactor     14.125        20.533        .42623E-05   -1.4956    
  11  norm          2.1279        1.2911        .31032E-05   -1.5416    
  12  Prefactor     .10000E-03    5.6568        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    50.176        .76146E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.5792        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.682        6.0361        .49034E-05   -1.5054    
  16  norm          16.083        11.072        .39949E-05   -1.4906    
  17  Prefactor     16.581        17.728        .39350E-05   -1.4893    
  18  norm          2.3571        2.1530        .49487E-05   -1.5401    
  19  Prefactor     .10000E-03    8.7227        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     55.035        37.769        .10816E-04   -1.4223    
  21  Prefactor     .10001E-03    45.684        .15532       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.1119        7.9444        .32491E-04   -1.5213    
  23  Normalizat    .44469        .22666        .19049E-04   -1.1505    
  24  Prefactor     1.1283        .11337        .31275E-04   -.88567    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75714e-09
Minuit parameter uncertainties:
  1  4.62684e-06
  2  6.7758
  3  1.46502
  4  66.8649
  5  20.0999
  6  5.21129e-06
  7  6.62698e-06
  8  6.02599
  9  7.51108
  10  20.5432
  11  1.29111
  12  1.66969e-05
  13  0.00142303
  14  2.14143e-05
  15  6.03645
  16  11.0731
  17  17.7332
  18  2.1531
  19  4.69837e-06
  20  37.7856
  21  0.00133846
  22  7.94578
  23  0.227133
  24  0.113398
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.068e+01  6.036e+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.128e+00  1.134e-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:  4.447e-01  2.271e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.34
Ra Dec: 350.478 32.074
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 6.50e-08 +/- 3.67e-08
Energy Flux (Fixed Index): 2.92e-05 +/- 1.65e-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) = 8363.48392123
delta logL = 0.014517383348

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8363.48295502
delta logL = 0.0154835898829

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.504       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2343       1.0000          .0000       5.0000    
     3 'Normalizat'    .43795       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1298       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=   8363.483     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      257 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.504        5.5942        .12362E-03    .78536E-04
   2  alpha         2.2343        .54466        .14974E-01    .19863E-03
   3  Normalizat    .43797        .21697        .47963E-03    .21854E-04
   4  Prefactor     1.1298        .10936        .15626E-03    .10389E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.5037
  alpha      = 2.23433
  Normalizat = 0.437974
  Prefactor  = 1.12979
 **********
 **   18 **HESSE 
 **********

 FCN=   8363.483     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .55E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.504        5.5303        .49449E-05   -1.5060    
   2  alpha         2.2343        .53804        .29948E-02   -.10647    
   3  Normalizat    .43797        .21679        .19185E-04   -1.1538    
   4  Prefactor     1.1298        .10931        .62506E-05   -.88520    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.53244e-12
Minuit parameter uncertainties:
  1  5.53059
  2  0.542336
  3  0.217204
  4  0.109334
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/783909': 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) = 8363.48295501
delta logL = 0.0154836031816

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.050e+01  5.531e+00  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  2.234e+00  5.423e-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.130e+00  1.093e-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:  4.380e-01  2.172e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.39
Ra Dec: 350.478 32.074
Photon Index (Free Index): 2.23 +/- 0.54
Photon Flux (Free Index): 7.16e-08 +/- 5.14e-08
Energy Flux (Free Index): 2.85e-05 +/- 1.50e-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/783909/cmap_HighResolution_386294401_386553601_4FGL_J2321.9+3204_daily_bin567.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.50e-08', energy_flux2='2.85e-05', photon_flux_error='3.67e-08', dlogl='1.55e-02', energy_flux='2.92e-05', photon_flux2='7.16e-08', job_status='DONE', time_completed='2021-09-29 13:18:55.121590', photon_index_error2='0.54', photon_index2='2.23', ts='9.34', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='1.50e-05', EG='0.44', time_epoch_completed='1632946735.12', return_code='0', job_id='783909', GAL2='1.13', EG2='0.44', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='5.14e-08', ts2='9.39', photon_index='2.14' WHERE bin_id='567' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:18:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 783909: <4FGL_J2321.9+3204_daily_bin567> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin567 350.478 32.0737 386294401 386553601 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 :                                   787.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             342.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            802 sec.

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

