/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 223 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 = 7378
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2321.9+3204_daily_bin29
RA = 350.478, Dec = 32.0737
tmin = 246844801, tmax = 247104001
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='781057', job_status='RUN', time_executed='2021-09-29 12:59:19.176698', time_epoch_executed='1632945559.18' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='29'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/781057

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/781057/ft1_4FGL_J2321.9+3204_daily_bin29.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/781057/ft2_4FGL_J2321.9+3204_daily_bin29.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/781057/ft1_4FGL_J2321.9+3204_daily_bin29.fits outfile=/scratch/kocevski/781057/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin29.fits ra=350.478 dec=32.0737 rad=12.0 tmin=246844801.0 tmax=247104001.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 1.42
user 1.26
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/781057/ft2_4FGL_J2321.9+3204_daily_bin29.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/781057/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin29.fits evtable="EVENTS" outfile="/scratch/kocevski/781057/ft1_filtered_4FGL_J2321.9+3204_daily_bin29.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.32
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/781057/ft1_filtered_4FGL_J2321.9+3204_daily_bin29.fits evtable="EVENTS" scfile=/scratch/kocevski/781057/ft2_4FGL_J2321.9+3204_daily_bin29.fits sctable="SC_DATA" expcube=/scratch/kocevski/781057/ltcube_246844801_247104001_4FGL_J2321.9+3204_daily_bin29.fits outfile=/scratch/kocevski/781057/expmap_246844801_247104001_4FGL_J2321.9+3204_daily_bin29.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/781057/ltcube_246844801_247104001_4FGL_J2321.9+3204_daily_bin29.fits
.....................!
real 189.99
user 185.05
sys 4.64

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/781057/ft1_filtered_4FGL_J2321.9+3204_daily_bin29.fits scfile=/scratch/kocevski/781057/ft2_4FGL_J2321.9+3204_daily_bin29.fits outfile=/scratch/kocevski/781057/cmap_246844801_247104001_4FGL_J2321.9+3204_daily_bin29.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=350.478 yref=32.0737 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/781057/ft1_filtered_4FGL_J2321.9+3204_daily_bin29.fits scfile=/scratch/kocevski/781057/ft2_4FGL_J2321.9+3204_daily_bin29.fits outfile=/scratch/kocevski/781057/cmap_HighResolution_246844801_247104001_4FGL_J2321.9+3204_daily_bin29.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.55
user 0.37
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8702       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.1204       1.0000         .10000E-03   10000.    
     4 'Prefactor '    49.146       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.8096       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.9579       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.010       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.311       1.0000         .10000E-03   10000.    
    11 'norm      '    2.3166       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .31325E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.5210       1.0000         .10000E-03   10000.    
    15 'norm      '    24.730       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.6223       1.0000         .10000E-03   10000.    
    18 'norm      '    5.4543       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    43.871       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5351       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .80945       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=   7630.928     FROM MIGRAD    STATUS=CONVERGED    991 CALLS     3205 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8714        59.984        .30457E-03   -.23255E-04
   2  Prefactor     .10000E-03    7.1835        .18142E-02** at limit **
   3  norm          2.1203        1.2229        .70782E-04    .20077E-04
   4  Prefactor     49.089        65.480        .28601E-03    .35337E-04
   5  Prefactor     .10000E-03    10.169        .18142E-02** at limit **
   6  norm          1.8103        4.1031        .25519E-03   -.30339E-04
   7  Prefactor     8.9617        31.522        .13392E-03   -.13328E-04
   8  Prefactor     .10000E-03    10.681        .36285E-03** at limit **
   9  Prefactor     10.011        12.707        .12665E-03    .42727E-04
  10  Prefactor     10.310        28.118        .12478E-03    .29155E-05
  11  norm          2.3163        2.0579        .10974E-03   -.15467E-03
  12  Prefactor     .10001E-03    22.458        .10251    ** at limit **
  13  Prefactor     .10000E-03    7.2401        .18142E-02** at limit **
  14  Prefactor     8.5089        20.868        .13733E-03    .14570E-04
  15  norm          24.729        10.904        .80552E-04   -.12053E-03
  16  norm          .10000E-03    4.2939        .17667E-02** at limit **
  17  Prefactor     5.6282        36.862        .16942E-03    .20131E-06
  18  norm          5.4540        2.9874        .10806E-03    .17569E-04
  19  Prefactor     .10000E-03    8.1746        .18142E-02** at limit **
  20  Prefactor     43.863        38.515        .60527E-04    .20473E-04
  21  Prefactor     .10000E-03    24.287        .18142E-02** at limit **
  22  Prefactor     .10000E-03    2.4187        .13257E-02** at limit **
  23  Normalizat    1.5351        .27915        .31455E-03    .12675E-03
  24  Prefactor     .80951        .12788        .19597E-03    .14700E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.87143
  Prefactor  = 0.0001
  norm       = 2.12033
  Prefactor  = 49.0885
  Prefactor  = 0.0001
  norm       = 1.81028
  Prefactor  = 8.96167
  Prefactor  = 0.0001
  Prefactor  = 10.0109
  Prefactor  = 10.31
  norm       = 2.31626
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 8.50892
  norm       = 24.7293
  norm       = 0.0001
  Prefactor  = 5.62824
  norm       = 5.45397
  Prefactor  = 0.0001
  Prefactor  = 43.8626
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.53507
  Prefactor  = 0.809507
 **********
 **   18 **HESSE 
 **********

 FCN=   7630.928     FROM HESSE     STATUS=OK           383 CALLS     3588 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8714        59.946        .12183E-04   -1.5434    
   2  Prefactor     .10000E-03    7.1879        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.1203        1.2229        .28313E-05   -1.5417    
   4  Prefactor     49.089        65.482        .11440E-04   -1.4306    
   5  Prefactor     .10000E-03    10.169        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.8103        4.1026        .10208E-04   -1.5439    
   7  Prefactor     8.9617        31.524        .53567E-05   -1.5109    
   8  Prefactor     .10000E-03    10.682        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.011        12.707        .50661E-05   -1.5075    
  10  Prefactor     10.310        28.119        .49911E-05   -1.5066    
  11  norm          2.3163        2.0576        .43897E-05   -1.5404    
  12  Prefactor     .10001E-03    21.154        .10654       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.2422        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.5089        20.868        .54931E-05   -1.5124    
  15  norm          24.729        10.895        .32221E-05   -1.4713    
  16  norm          .10000E-03    4.2941        .35334E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.6282        36.775        .67768E-05   -1.5233    
  18  norm          5.4540        2.9874        .43225E-05   -1.5241    
  19  Prefactor     .10000E-03    8.1748        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     43.863        38.532        .24211E-05   -1.4382    
  21  Prefactor     .10000E-03    24.288        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.4188        .26513E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5351        .27933        .12582E-04   -.76797    
  24  Prefactor     .80951        .12800        .78387E-05   -.99379    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1298e-10
Minuit parameter uncertainties:
  1  21.2062
  2  2.34297e-05
  3  1.22291
  4  65.5786
  5  1.30226e-05
  6  4.10326
  7  31.5829
  8  8.78489e-05
  9  12.7104
  10  28.1548
  11  2.05769
  12  0.000775996
  13  1.07776e-05
  14  20.8857
  15  10.8957
  16  1.96514e-06
  17  28.7991
  18  2.9875
  19  8.31262e-06
  20  38.5543
  21  7.33574e-05
  22  1.22638e-05
  23  0.279612
  24  0.128045
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  2.473e+01  1.090e+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:  8.095e-01  1.280e-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.535e+00  2.796e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 22.87
Ra Dec: 350.478 32.074
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 1.51e-07 +/- 6.63e-08
Energy Flux (Fixed Index): 6.77e-05 +/- 2.98e-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) = 7629.22006746
delta logL = 1.70791688023

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7629.21925309
delta logL = 1.70873125524

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.672       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8266       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4154       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84216       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=   7629.219     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      284 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.672        8.7121        .98027E-04   -.43885E-03
   2  alpha         2.8267        .40525        .70454E-02   -.80826E-04
   3  Normalizat    1.4154        .26459        .32400E-03    .18492E-04
   4  Prefactor     .84217        .12252        .19224E-03    .11792E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 16.6724
  alpha      = 2.82669
  Normalizat = 1.41539
  Prefactor  = 0.84217
 **********
 **   18 **HESSE 
 **********

 FCN=   7629.219     FROM HESSE     STATUS=OK            25 CALLS      309 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.672        8.1494        .39211E-05   -1.4891    
   2  alpha         2.8267        .37903        .28182E-03    .13105    
   3  Normalizat    1.4154        .26424        .12960E-04   -.80184    
   4  Prefactor     .84217        .12242        .76896E-05   -.98192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.30766e-11
Minuit parameter uncertainties:
  1  8.14989
  2  0.380524
  3  0.264493
  4  0.122458
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/781057': 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) = 7629.219253
delta logL = 1.70873134198

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.667e+01  8.150e+00  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  2.827e+00  3.805e-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:  8.422e-01  1.225e-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.415e+00  2.645e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 26.51
Ra Dec: 350.478 32.074
Photon Index (Free Index): 2.83 +/- 0.38
Photon Flux (Free Index): 2.54e-07 +/- 8.54e-08
Energy Flux (Free Index): 6.08e-05 +/- 1.80e-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/781057/cmap_HighResolution_246844801_247104001_4FGL_J2321.9+3204_daily_bin29.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.51e-07', energy_flux2='6.08e-05', photon_flux_error='6.63e-08', dlogl='1.71e+00', energy_flux='6.77e-05', photon_flux2='2.54e-07', job_status='DONE', time_completed='2021-09-29 13:11:21.754681', photon_index_error2='0.38', photon_index2='2.83', ts='22.87', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='1.80e-05', EG='1.54', time_epoch_completed='1632946281.75', return_code='0', job_id='781057', GAL2='0.84', EG2='1.42', return_code2='0', energy_flux_error='2.98e-05', photon_flux_error2='8.54e-08', ts2='26.51', photon_index='2.14' WHERE bin_id='29' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:11:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 781057: <4FGL_J2321.9+3204_daily_bin29> in cluster <slac> Done

Job <4FGL_J2321.9+3204_daily_bin29> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 12:55:27 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 12:55:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 12:55:28 2021
Terminated at Wed Sep 29 13:11:22 2021
Results reported at Wed Sep 29 13:11:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin29 350.478 32.0737 246844801 247104001 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 :                                   722.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   954 sec.
    Turnaround time :                            955 sec.

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

