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


Performing analysis on: 4FGL_J2321.9+3204_daily_bin748
RA = 350.478, Dec = 32.0737
tmin = 433209601, tmax = 433468801
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='785294', job_status='RUN', time_executed='2021-09-29 13:14:32.682863', time_epoch_executed='1632946472.68' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/785294

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/785294/ft1_4FGL_J2321.9+3204_daily_bin748.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/785294/ft2_4FGL_J2321.9+3204_daily_bin748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/785294/ft1_4FGL_J2321.9+3204_daily_bin748.fits outfile=/scratch/kocevski/785294/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin748.fits ra=350.478 dec=32.0737 rad=12.0 tmin=433209601.0 tmax=433468801.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 5.96
user 5.65
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/785294/ft2_4FGL_J2321.9+3204_daily_bin748.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/785294/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin748.fits evtable="EVENTS" outfile="/scratch/kocevski/785294/ft1_filtered_4FGL_J2321.9+3204_daily_bin748.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/785294/ft1_filtered_4FGL_J2321.9+3204_daily_bin748.fits" evtable="EVENTS" scfile=/scratch/kocevski/785294/ft2_4FGL_J2321.9+3204_daily_bin748.fits sctable="SC_DATA" outfile=/scratch/kocevski/785294/ltcube_433209601_433468801_4FGL_J2321.9+3204_daily_bin748.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/785294/ft2_4FGL_J2321.9+3204_daily_bin748.fits
.....................!
real 11.93
user 11.58
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/785294/ft1_filtered_4FGL_J2321.9+3204_daily_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/785294/ft2_4FGL_J2321.9+3204_daily_bin748.fits sctable="SC_DATA" expcube=/scratch/kocevski/785294/ltcube_433209601_433468801_4FGL_J2321.9+3204_daily_bin748.fits outfile=/scratch/kocevski/785294/expmap_433209601_433468801_4FGL_J2321.9+3204_daily_bin748.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/785294/ltcube_433209601_433468801_4FGL_J2321.9+3204_daily_bin748.fits
.....................!
real 192.33
user 186.64
sys 5.36

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/785294/ft1_filtered_4FGL_J2321.9+3204_daily_bin748.fits scfile=/scratch/kocevski/785294/ft2_4FGL_J2321.9+3204_daily_bin748.fits outfile=/scratch/kocevski/785294/cmap_433209601_433468801_4FGL_J2321.9+3204_daily_bin748.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.53
user 0.35
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10245E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.1515       1.0000         .10000E-03   10000.    
     4 'Prefactor '    135.25       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.098       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.589       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .26726E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    77.765       1.0000         .10000E-03   10000.    
    11 'norm      '    5.6450       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.2090       1.0000         .10000E-03   10000.    
    16 'norm      '    33.783       1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.073       1.0000         .10000E-03   10000.    
    18 'norm      '    .11426E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.197       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    60.694       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .54669       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0770       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=   4478.335     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     2729 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    14.195       -.17422E-05** at limit **
   2  Prefactor     .10000E-03    5.4535       -.27951E-06** at limit **
   3  norm          3.1528        2.6952       -.25569E-06    .99370E-05
   4  Prefactor     135.21        146.73        .48724E-05    .28839E-04
   5  Prefactor     17.023        40.520        .50448E-05    .65480E-04
   6  norm          .10000E-03    2.5895       -.51878E-07** at limit **
   7  Prefactor     14.561        28.696       -.29528E-06   -.33809E-04
   8  Prefactor     .10006E-03    35.813       -.43894E-05** at limit **
   9  Prefactor     .10000E-03    15.271        .21332E-05** at limit **
  10  Prefactor     77.748        52.421        .15404E-05    .36631E-04
  11  norm          5.6461        2.6714       -.73292E-07   -.72504E-04
  12  Prefactor     .10000E-03    10.014       -.19319E-06** at limit **
  13  Prefactor     .10000E-03    6.2793        .20283E-07** at limit **
  14  Prefactor     .10000E-03    19.040       -.17257E-05** at limit **
  15  norm          1.1895        5.4844        .23263E-05   -.89309E-03
  16  norm          33.782        20.853        .71428E-07   -.72369E-05
  17  Prefactor     28.133        31.523       -.16341E-05   -.18378E-04
  18  norm          .10000E-03    2.9963       -.37585E-06** at limit **
  19  Prefactor     32.201        30.130        .27684E-06    .10794E-04
  20  Prefactor     .10000E-03    44.024       -.30952E-05** at limit **
  21  Prefactor     60.685        55.335       -.12787E-06    .19098E-05
  22  Prefactor     .10000E-03    2.8470        .15563E-06** at limit **
  23  Normalizat    .54628        .30882        .61348E-05    .43287E-04
  24  Prefactor     1.0772        .15133       -.15495E-05    .21471E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.15279
  Prefactor  = 135.21
  Prefactor  = 17.0228
  norm       = 0.0001
  Prefactor  = 14.5608
  Prefactor  = 0.000100063
  Prefactor  = 0.0001
  Prefactor  = 77.7476
  norm       = 5.64606
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.18954
  norm       = 33.7817
  Prefactor  = 28.1329
  norm       = 0.0001
  Prefactor  = 32.2011
  Prefactor  = 0.000100001
  Prefactor  = 60.6851
  Prefactor  = 0.0001
  Normalizat = 0.546276
  Prefactor  = 1.07715
 **********
 **   18 **HESSE 
 **********

 FCN=   4478.335     FROM HESSE     STATUS=OK           395 CALLS     3124 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    14.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.4839        .15271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.1528        2.6873        .88986E-04   -1.5353    
   4  Prefactor     135.21        146.56        .17315E-03   -1.3377    
   5  Prefactor     17.023        40.565        .96861E-04   -1.4883    
   6  norm          .10000E-03    2.5953        .10513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.561        28.602        .10486E-03   -1.4945    
   8  Prefactor     .10006E-03    43.104        .39487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     77.748        52.346        .45538E-04   -1.3942    
  11  norm          5.6461        2.6742        .71123E-04   -1.5233    
  12  Prefactor     .10000E-03    10.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.2885        .16375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.1895        17.158        .20584E-02   -1.5490    
  16  norm          33.782        20.885        .68943E-04   -1.4545    
  17  Prefactor     28.133        33.956        .75613E-04   -1.4647    
  18  norm          .10000E-03    3.1432        .22620E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     32.201        30.128        .70616E-04   -1.4572    
  20  Prefactor     .10000E-03    44.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     60.685        55.361        .51502E-04   -1.4148    
  22  Prefactor     .10000E-03    2.8489        .11024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .54628        .32356        .46461E-03   -1.1032    
  24  Prefactor     1.0772        .16121        .16568E-03   -.90200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.79307e-09
Minuit parameter uncertainties:
  1  8.86708e-05
  2  1.78386e-05
  3  2.68736
  4  146.955
  5  40.6313
  6  5.22166e-06
  7  28.6291
  8  0.00331111
  9  7.38322e-05
  10  52.3766
  11  2.6743
  12  1.4061e-05
  13  1.00099e-05
  14  0.000101335
  15  9.0384
  16  20.89
  17  33.9798
  18  9.71322e-06
  19  30.1426
  20  0.000320385
  21  55.4079
  22  1.64964e-06
  23  0.324687
  24  0.161284
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.190e+00  9.038e+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.077e+00  1.613e-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:  5.463e-01  3.247e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 350.478 32.074
Photon Flux Upper Limit: 1.39e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.24e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/785294/likelihoodResults_433209601_433468801_4FGL_J2321.9+3204_daily_bin748.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) = 4478.33345453
delta logL = 0.00195036075274

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4478.33340736
delta logL = 0.00199752996195

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2465       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3045       1.0000          .0000       5.0000    
     3 'Normalizat'    .54487       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0773       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4478.333     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      272 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2465        13.896        .20050E-02   -.74023E-03
   2  alpha         2.3048        3.5674        .54338E-01    .71223E-05
   3  Normalizat    .54496        .31202        .46511E-03    .51331E-06
   4  Prefactor     1.0773        .15467        .16567E-03   -.95387E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.24654
  alpha      = 2.30476
  Normalizat = 0.54496
  Prefactor  = 1.07728
 **********
 **   18 **HESSE 
 **********

 FCN=   4478.333     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2465        12.155        .80200E-04   -1.5485    
   2  alpha         2.3048        3.5338        .21735E-02   -.78176E-01
   3  Normalizat    .54496        .31199        .18604E-04   -1.1037    
   4  Prefactor     1.0773        .15444        .66267E-05   -.90196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99072e-09
Minuit parameter uncertainties:
  1  7.78687
  2  2.62599
  3  0.313002
  4  0.154507
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/785294': 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) = 4478.3334072
delta logL = 0.00199769432584

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.247e+00  7.787e+00  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  2.305e+00  2.626e+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:  1.077e+00  1.545e-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:  5.450e-01  3.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
Ra Dec: 350.478 32.074

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/785294/cmap_HighResolution_433209601_433468801_4FGL_J2321.9+3204_daily_bin748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.24e-05', job_status='DONE', photon_flux_upper_limit='1.39e-07', time_completed='2021-09-29 13:24:12.315177', job_id='785294', GAL2='1.08', fit_tolerance='1e-08', EG2='0.54', EG='0.55', time_epoch_completed='1632947052.32', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='2.00e-03', ts2='0.03', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='748' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:24:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0139>
Subject: Job 785294: <4FGL_J2321.9+3204_daily_bin748> in cluster <slac> Done

Job <4FGL_J2321.9+3204_daily_bin748> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 13:10:34 2021
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 13:10:36 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:10:36 2021
Terminated at Wed Sep 29 13:24:12 2021
Results reported at Wed Sep 29 13:24:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin748 350.478 32.0737 433209601 433468801 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 :                                   579.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            818 sec.

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

