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


Performing analysis on: 4FGL_J2321.9+3204_daily_bin1620
RA = 350.478, Dec = 32.0737
tmin = 659232001, tmax = 659491201
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='500044', job_status='RUN', time_executed='2021-12-08 09:25:41.066887', time_epoch_executed='1638984341.07' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='1620'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/500044

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/500044/ft1_4FGL_J2321.9+3204_daily_bin1620.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/500044/ft2_4FGL_J2321.9+3204_daily_bin1620.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/500044/ft1_4FGL_J2321.9+3204_daily_bin1620.fits outfile=/scratch/kocevski/500044/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin1620.fits ra=350.478 dec=32.0737 rad=12.0 tmin=659232001.0 tmax=659491201.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 2.85
user 2.64
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/500044/ft1_filtered_4FGL_J2321.9+3204_daily_bin1620.fits evtable="EVENTS" scfile=/scratch/kocevski/500044/ft2_4FGL_J2321.9+3204_daily_bin1620.fits sctable="SC_DATA" expcube=/scratch/kocevski/500044/ltcube_659232001_659491201_4FGL_J2321.9+3204_daily_bin1620.fits outfile=/scratch/kocevski/500044/expmap_659232001_659491201_4FGL_J2321.9+3204_daily_bin1620.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/500044/ltcube_659232001_659491201_4FGL_J2321.9+3204_daily_bin1620.fits
.....................!
real 191.72
user 186.41
sys 4.48

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/500044/ft1_filtered_4FGL_J2321.9+3204_daily_bin1620.fits scfile=/scratch/kocevski/500044/ft2_4FGL_J2321.9+3204_daily_bin1620.fits outfile=/scratch/kocevski/500044/cmap_659232001_659491201_4FGL_J2321.9+3204_daily_bin1620.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/500044/ft1_filtered_4FGL_J2321.9+3204_daily_bin1620.fits scfile=/scratch/kocevski/500044/ft2_4FGL_J2321.9+3204_daily_bin1620.fits outfile=/scratch/kocevski/500044/cmap_HighResolution_659232001_659491201_4FGL_J2321.9+3204_daily_bin1620.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.183       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.711       1.0000         .10000E-03   10000.    
     3 'norm      '    9.7856       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    34.339       1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .21787E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16188E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6752       1.0000         .10000E-03   10000.    
    10 'Prefactor '    43.984       1.0000         .10000E-03   10000.    
    11 'norm      '    4.6299       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.669       1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.337       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10469E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .11681E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .18420E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.6156       1.0000         .10000E-03   10000.    
    18 'norm      '    1.2178       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.384       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12097E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    76.248       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10674E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0825       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .96629       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=   10767.15     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     2769 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.188        23.609        .89752E-05    .35286E-04
   2  Prefactor     21.715        13.760       -.13836E-06    .23942E-03
   3  norm          9.7853        1.6292       -.10893E-07    .10209E-03
   4  Prefactor     .10000E-03    19.098        .33776E-06** at limit **
   5  Prefactor     34.356        19.302       -.15256E-05    .35865E-05
   6  norm          .10000E-03    1.6646       -.34648E-07** at limit **
   7  Prefactor     .10085E-03    6.6349        .12711E-05** at limit **
   8  Prefactor     .10000E-03    2.6352       -.45519E-06** at limit **
   9  Prefactor     4.6753        5.4044       -.20676E-06    .73783E-06
  10  Prefactor     43.945        24.376       -.60858E-05   -.10158E-04
  11  norm          4.6299        1.6040        .41605E-10   -.46273E-04
  12  Prefactor     10.658        24.436       -.60124E-05   -.48668E-05
  13  Prefactor     22.332        12.112       -.22955E-06    .68711E-04
  14  Prefactor     .10000E-03    21.607        .15091E-05** at limit **
  15  norm          .10000E-03    2.2911       -.80434E-07** at limit **
  16  norm          .10002E-03    5.5361       -.70012E-06** at limit **
  17  Prefactor     9.6087        12.786       -.68723E-06    .44563E-04
  18  norm          1.2183        1.7313       -.25577E-06   -.86159E-03
  19  Prefactor     15.378        23.233       -.15435E-05    .58731E-04
  20  Prefactor     .10000E-03    146.33       -.51123E-04** at limit **
  21  Prefactor     76.208        56.931       -.33650E-04    .21892E-06
  22  Prefactor     .10000E-03    6.0808        .90398E-06** at limit **
  23  Normalizat    1.0828        .21011        .31344E-05    .21282E-03
  24  Prefactor     .96606        .91437E-01    .61986E-06    .39381E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 21.1877
  Prefactor  = 21.7155
  norm       = 9.78529
  Prefactor  = 0.0001
  Prefactor  = 34.356
  norm       = 0.0001
  Prefactor  = 0.00010085
  Prefactor  = 0.000100001
  Prefactor  = 4.67525
  Prefactor  = 43.9446
  norm       = 4.62993
  Prefactor  = 10.6581
  Prefactor  = 22.3317
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100016
  Prefactor  = 9.60872
  norm       = 1.21833
  Prefactor  = 15.3781
  Prefactor  = 0.000100002
  Prefactor  = 76.2083
  Prefactor  = 0.000100002
  Normalizat = 1.08284
  Prefactor  = 0.966064
 **********
 **   18 **HESSE 
 **********

 FCN=   10767.15     FROM HESSE     STATUS=OK           415 CALLS     3184 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.188        23.593        .87026E-04   -1.4787    
   2  Prefactor     21.715        13.833        .85962E-04   -1.4776    
   3  norm          9.7853        1.6307        .51137E-04   -1.5082    
   4  Prefactor     .10000E-03    19.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     34.356        19.312        .68385E-04   -1.4535    
   6  norm          .10000E-03    1.7363        .26127E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10085E-03    83.960        .51338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.490        .32362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.6753        5.4021        .18612E-03   -1.5275    
  10  Prefactor     43.945        24.364        .30225E-03   -1.4381    
  11  norm          4.6299        1.6007        .73010E-04   -1.5278    
  12  Prefactor     10.658        24.534        .12266E-03   -1.5055    
  13  Prefactor     22.332        12.090        .84752E-04   -1.4762    
  14  Prefactor     .10000E-03    21.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.6051        .29663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10002E-03    37.680        .47130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.6087        12.527        .12923E-03   -1.5088    
  18  norm          1.2183        1.6946        .15684E-03   -1.5487    
  19  Prefactor     15.378        23.227        .10212E-03   -1.4923    
  20  Prefactor     .10000E-03    149.15        .41264E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     76.208        56.955        .22993E-03   -1.3960    
  22  Prefactor     .10000E-03    6.1307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0828        .24379        .37687E-03   -.90305    
  24  Prefactor     .96606        .10561        .18459E-03   -.93869    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05693e-08
Minuit parameter uncertainties:
  1  23.6032
  2  13.8351
  3  1.63071
  4  1.19979e-05
  5  19.3157
  6  5.17697e-06
  7  0.0169207
  8  0.000319686
  9  5.40268
  10  24.37
  11  1.60068
  12  24.5573
  13  12.091
  14  5.37389e-06
  15  1.6381e-05
  16  0.00157787
  17  12.5306
  18  1.69467
  19  23.2408
  20  0.00111752
  21  56.9955
  22  0.000225476
  23  0.244043
  24  0.105631
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.000e-04  1.638e-05  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.661e-01  1.056e-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.083e+00  2.440e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 350.478 32.074
Photon Flux Upper Limit: 5.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/500044/likelihoodResults_659232001_659491201_4FGL_J2321.9+3204_daily_bin1620.txt

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) = 10767.1505157
delta logL = -0.000622223091341

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10766.7198868
delta logL = 0.430006695076

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .69588       1.0000         .10000E-03   10000.    
     2 'alpha     '    .79999       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0851       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96316       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=   10766.72     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      233 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .69588        2.7040        .30459E-01    .93231E-03
   2  alpha         .79999        1.0956        .50000       -.94311E-04
   3  Normalizat    1.0852        .19181        .85013E-01    .29951E-04
   4  Prefactor     .96316        .89833E-01    .45805E-01    .98931E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.695884
  alpha      = 0.799993
  Normalizat = 1.08515
  Prefactor  = 0.963156
 **********
 **   18 **HESSE 
 **********

 FCN=   10766.72     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .69588        1.7410        .17595E-02   -1.5541    
   2  alpha         .79999        .97471        .34791E-02   -.74777    
   3  Normalizat    1.0852        .22084        .37642E-03   -.90230    
   4  Prefactor     .96316        .10360        .18478E-03   -.93968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32219e-11
Minuit parameter uncertainties:
  1  1.7411
  2  1.02771
  3  0.221031
  4  0.103619
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/500044': 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) = 10766.7198868
delta logL = 0.430006696361

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  6.959e-01  1.741e+00  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  8.000e-01  1.028e+00  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.632e-01  1.036e-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.085e+00  2.210e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 350.478 32.074

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/500044/cmap_HighResolution_659232001_659491201_4FGL_J2321.9+3204_daily_bin1620.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.56e-05', job_status='DONE', photon_flux_upper_limit='5.69e-08', time_completed='2021-12-08 09:41:55.974064', job_id='500044', GAL2='0.96', fit_tolerance='1e-08', EG2='1.09', EG='1.08', time_epoch_completed='1638985315.97', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='4.30e-01', ts2='0.86', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='1620' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 09:41:56 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 500044: <4FGL_J2321.9+3204_daily_bin1620> in cluster <slac> Done

Job <4FGL_J2321.9+3204_daily_bin1620> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Wed Dec  8 09:25:20 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 09:25:31 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:31 2021
Terminated at Wed Dec  8 09:41:56 2021
Results reported at Wed Dec  8 09:41:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin1620 350.478 32.0737 659232001 659491201 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 :                                   972.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            996 sec.

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

