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


Performing analysis on: 4FGL_J2321.9+3204_daily_bin623
RA = 350.478, Dec = 32.0737
tmin = 400809601, tmax = 401068801
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='783995', job_status='RUN', time_executed='2021-09-29 13:09:13.437469', time_epoch_executed='1632946153.44' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='623'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/783995

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/783995/ft1_4FGL_J2321.9+3204_daily_bin623.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/783995/ft2_4FGL_J2321.9+3204_daily_bin623.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/783995/ft1_4FGL_J2321.9+3204_daily_bin623.fits outfile=/scratch/kocevski/783995/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin623.fits ra=350.478 dec=32.0737 rad=12.0 tmin=400809601.0 tmax=401068801.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.42
user 3.20
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/783995/ft2_4FGL_J2321.9+3204_daily_bin623.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/783995/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin623.fits evtable="EVENTS" outfile="/scratch/kocevski/783995/ft1_filtered_4FGL_J2321.9+3204_daily_bin623.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.34
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/783995/ft1_filtered_4FGL_J2321.9+3204_daily_bin623.fits evtable="EVENTS" scfile=/scratch/kocevski/783995/ft2_4FGL_J2321.9+3204_daily_bin623.fits sctable="SC_DATA" expcube=/scratch/kocevski/783995/ltcube_400809601_401068801_4FGL_J2321.9+3204_daily_bin623.fits outfile=/scratch/kocevski/783995/expmap_400809601_401068801_4FGL_J2321.9+3204_daily_bin623.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/783995/ltcube_400809601_401068801_4FGL_J2321.9+3204_daily_bin623.fits
.....................!
real 192.84
user 187.37
sys 5.15

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/783995/ft1_filtered_4FGL_J2321.9+3204_daily_bin623.fits scfile=/scratch/kocevski/783995/ft2_4FGL_J2321.9+3204_daily_bin623.fits outfile=/scratch/kocevski/783995/cmap_400809601_401068801_4FGL_J2321.9+3204_daily_bin623.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/783995/ft1_filtered_4FGL_J2321.9+3204_daily_bin623.fits scfile=/scratch/kocevski/783995/ft2_4FGL_J2321.9+3204_daily_bin623.fits outfile=/scratch/kocevski/783995/cmap_HighResolution_400809601_401068801_4FGL_J2321.9+3204_daily_bin623.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.780       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.5165       1.0000         .10000E-03   10000.    
     3 'norm      '    .60560       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.1407       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.1000       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6791       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.7171       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    17.199       1.0000         .10000E-03   10000.    
    16 'norm      '    5.4422       1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.081       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.059       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10353E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .84327       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0237       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.

 FCN=   8488.652     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2713 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.778        12.630         .0000        .10395E-02
   2  Prefactor     3.5162        9.7856         .0000        .26482E-03
   3  norm          .60570        .78367         .0000        .39697E-03
   4  Prefactor     .10000E-03    74.338         .0000    ** at limit **
   5  Prefactor     .10000E-03    6.2041         .0000    ** at limit **
   6  norm          5.1403        4.4955         .0000        .22191E-03
   7  Prefactor     2.1003        46.219         .0000        .18636E-02
   8  Prefactor     2.6805        7.8428         .0000        .10121E-01
   9  Prefactor     .10000E-03    5.3983         .0000    ** at limit **
  10  Prefactor     .10000E-03    9.8290         .0000    ** at limit **
  11  norm          5.7171        2.0812         .0000        .28946E-03
  12  Prefactor     .10000E-03    17.583         .0000    ** at limit **
  13  Prefactor     .10000E-03    9.8589         .0000    ** at limit **
  14  Prefactor     .10000E-03    9.6315         .0000    ** at limit **
  15  norm          17.199        8.4214         .0000        .50572E-04
  16  norm          5.4423        5.3842         .0000       -.37908E-02
  17  Prefactor     22.080        26.596         .0000        .62056E-04
  18  norm          .10000E-03    .63515         .0000    ** at limit **
  19  Prefactor     10.060        17.629         .0000        .55511E-03
  20  Prefactor     .10000E-03    15.564         .0000    ** at limit **
  21  Prefactor     .10000E-03    113.19         .0000    ** at limit **
  22  Prefactor     .10000E-03    4.7010         .0000    ** at limit **
  23  Normalizat    .84334        .20866         .0000        .35849E-04
  24  Prefactor     1.0237        .96881E-01     .0000        .10394E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.7776
  Prefactor  = 3.51623
  norm       = 0.605704
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.14027
  Prefactor  = 2.10031
  Prefactor  = 2.68053
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 5.71706
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.1995
  norm       = 5.44227
  Prefactor  = 22.0802
  norm       = 0.0001
  Prefactor  = 10.06
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.843339
  Prefactor  = 1.02368
 **********
 **   18 **HESSE 
 **********

 FCN=   8488.652     FROM HESSE     STATUS=OK           399 CALLS     3112 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.778        12.621        .11205E-03   -1.4993    
   2  Prefactor     3.5162        9.7980        .21558E-03   -1.5333    
   3  norm          .60570        .66997        .89836E-03   -1.5552    
   4  Prefactor     .10000E-03    74.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.2104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.1403        4.4622        .16730E-03   -1.5254    
   7  Prefactor     2.1003        45.766        .14239E-02   -1.5418    
   8  Prefactor     2.6805        7.7230        .12448E-02   -1.5381    
   9  Prefactor     .10000E-03    5.4176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.8374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.7171        2.0780        .74968E-04   -1.5230    
  12  Prefactor     .10000E-03    17.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.6508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          17.199        8.4146        .96575E-04   -1.4878    
  16  norm          5.4423        5.3895        .86123E-03   -1.5241    
  17  Prefactor     22.080        26.664        .85240E-04   -1.4768    
  18  norm          .10000E-03    .63764        .71699E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.060        17.627        .63169E-03   -1.5074    
  20  Prefactor     .10000E-03    15.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    114.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.7943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .84334        .23637        .38380E-03   -.98481    
  24  Prefactor     1.0237        .11097        .16888E-03   -.91944    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47496e-09
Minuit parameter uncertainties:
  1  12.6238
  2  9.8025
  3  0.66998
  4  0.000191495
  5  6.71396e-07
  6  4.46245
  7  19.625
  8  7.72587
  9  1.48507e-06
  10  0.00019023
  11  2.07807
  12  1.99263e-05
  13  9.26071e-05
  14  8.6066e-05
  15  8.41515
  16  5.38994
  17  26.6785
  18  2.11593e-08
  19  17.6363
  20  1.00886e-05
  21  0.000281842
  22  1.60152e-07
  23  0.236658
  24  0.110998
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.720e+01  8.415e+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.024e+00  1.110e-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:  8.433e-01  2.367e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.70
Ra Dec: 350.478 32.074
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 1.05e-07 +/- 5.12e-08
Energy Flux (Fixed Index): 4.71e-05 +/- 2.30e-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) = 8488.54403108
delta logL = 0.107578733776

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8488.53610043
delta logL = 0.115509383862

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.580       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3791       1.0000          .0000       5.0000    
     3 'Normalizat'    .81522       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0299       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=   8488.536     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      260 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.581        7.4409        .98361E-04    .73972E-05
   2  alpha         2.3789        .49984        .12781E-01    .26483E-03
   3  Normalizat    .81525        .23142        .38933E-03   -.40297E-05
   4  Prefactor     1.0299        .10855        .16833E-03   -.34175E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 16.5807
  alpha      = 2.3789
  Normalizat = 0.815249
  Prefactor  = 1.02994
 **********
 **   18 **HESSE 
 **********

 FCN=   8488.536     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.581        7.3084        .39344E-05   -1.4893    
   2  alpha         2.3789        .49017        .25561E-02   -.48460E-01
   3  Normalizat    .81525        .23117        .15573E-04   -.99506    
   4  Prefactor     1.0299        .10853        .67331E-05   -.91738    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2208e-12
Minuit parameter uncertainties:
  1  7.3088
  2  0.493377
  3  0.231451
  4  0.108555
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/783995': 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) = 8488.53610036
delta logL = 0.115509452513

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.658e+01  7.309e+00  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  2.379e+00  4.934e-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.030e+00  1.086e-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:  8.152e-01  2.315e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.06
Ra Dec: 350.478 32.074
Photon Index (Free Index): 2.38 +/- 0.49
Photon Flux (Free Index): 1.35e-07 +/- 8.30e-08
Energy Flux (Free Index): 4.61e-05 +/- 1.87e-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/783995/cmap_HighResolution_400809601_401068801_4FGL_J2321.9+3204_daily_bin623.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.05e-07', energy_flux2='4.61e-05', photon_flux_error='5.12e-08', dlogl='1.16e-01', energy_flux='4.71e-05', photon_flux2='1.35e-07', job_status='DONE', time_completed='2021-09-29 13:20:56.475781', photon_index_error2='0.49', photon_index2='2.38', ts='13.70', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.87e-05', EG='0.84', time_epoch_completed='1632946856.48', return_code='0', job_id='783995', GAL2='1.03', EG2='0.82', return_code2='0', energy_flux_error='2.30e-05', photon_flux_error2='8.30e-08', ts2='14.06', photon_index='2.14' WHERE bin_id='623' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:20:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 783995: <4FGL_J2321.9+3204_daily_bin623> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin623 350.478 32.0737 400809601 401068801 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 :                                   702.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             268.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            917 sec.

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

