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


Performing analysis on: 4FGL_J2321.9+3204_daily_bin974
RA = 350.478, Dec = 32.0737
tmin = 491788801, tmax = 492048001
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='786673', job_status='RUN', time_executed='2021-09-29 13:18:15.283080', time_epoch_executed='1632946695.28' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='974'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/786673

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/786673/ft1_4FGL_J2321.9+3204_daily_bin974.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/786673/ft2_4FGL_J2321.9+3204_daily_bin974.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/786673/ft1_4FGL_J2321.9+3204_daily_bin974.fits outfile=/scratch/kocevski/786673/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin974.fits ra=350.478 dec=32.0737 rad=12.0 tmin=491788801.0 tmax=492048001.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 4.24
user 4.00
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/786673/ft1_filtered_4FGL_J2321.9+3204_daily_bin974.fits" evtable="EVENTS" scfile=/scratch/kocevski/786673/ft2_4FGL_J2321.9+3204_daily_bin974.fits sctable="SC_DATA" outfile=/scratch/kocevski/786673/ltcube_491788801_492048001_4FGL_J2321.9+3204_daily_bin974.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/786673/ft2_4FGL_J2321.9+3204_daily_bin974.fits
.....................!
real 11.61
user 11.22
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/786673/ft1_filtered_4FGL_J2321.9+3204_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/786673/ft2_4FGL_J2321.9+3204_daily_bin974.fits sctable="SC_DATA" expcube=/scratch/kocevski/786673/ltcube_491788801_492048001_4FGL_J2321.9+3204_daily_bin974.fits outfile=/scratch/kocevski/786673/expmap_491788801_492048001_4FGL_J2321.9+3204_daily_bin974.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/786673/ltcube_491788801_492048001_4FGL_J2321.9+3204_daily_bin974.fits
.....................!
real 190.54
user 184.81
sys 5.41

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    42.388       1.0000         .10000E-03   10000.    
     2 'Prefactor '    65.933       1.0000         .10000E-03   10000.    
     3 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11351E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    54.681       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    43.027       1.0000         .10000E-03   10000.    
    10 'Prefactor '    70.716       1.0000         .10000E-03   10000.    
    11 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10525E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10990E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10395E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    12.082       1.0000         .10000E-03   10000.    
    19 'Prefactor '    36.583       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .23573E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .75821E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    26.015       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0088       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .81653       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=   497.9720     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     3059 TOTAL
                     EDM=   .87E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          42.109        438.85        .10084E-05   -.48411E-05
   2  Prefactor     65.911        69.804       -.20763E-06   -.81887E-05
   3  norm          .10000E-03    5.7324       -.18146E-06** at limit **
   4  Prefactor     .10000E-03    176.82        .26986E-06** at limit **
   5  Prefactor     .10000E-03    327.30       -.15208E-05** at limit **
   6  norm          54.676        32.462        .30089E-07   -.12565E-05
   7  Prefactor     .10000E-03    55.839        .13774E-06** at limit **
   8  Prefactor     .10000E-03    14.197        .74901E-07** at limit **
   9  Prefactor     43.020        113.74       -.17565E-05    .24467E-05
  10  Prefactor     70.758        200.50        .23872E-06    .95169E-06
  11  norm          .10000E-03    3.3512        .12688E-06** at limit **
  12  Prefactor     .10000E-03    89.175       -.11686E-06** at limit **
  13  Prefactor     .10000E-03    29.308        .30264E-06** at limit **
  14  Prefactor     .10000E-03    77.865       -.11877E-06** at limit **
  15  norm          .10000E-03    13.759        .97371E-07** at limit **
  16  norm          .10000E-03    45.131        .14928E-06** at limit **
  17  Prefactor     .10000E-03    35.951        .11555E-06** at limit **
  18  norm          12.073        14.825        .33450E-06   -.93458E-05
  19  Prefactor     36.673        230.76       -.48046E-06    .38288E-05
  20  Prefactor     .10000E-03    186.78        .15232E-05** at limit **
  21  Prefactor     .10007E-03    6618.7        .36562E-04** at limit **
  22  Prefactor     26.141        104.46       -.11270E-04   -.38004E-05
  23  Normalizat    1.0079        1.0583        .81189E-05   -.22948E-04
  24  Prefactor     .81681        .45514       -.51866E-05    .26268E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 42.1095
  Prefactor  = 65.9109
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 54.6764
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.0205
  Prefactor  = 70.7581
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 12.0733
  Prefactor  = 36.6734
  Prefactor  = 0.0001
  Prefactor  = 0.000100068
  Prefactor  = 26.1413
  Normalizat = 1.00787
  Prefactor  = 0.816809
 **********
 **   18 **HESSE 
 **********

 FCN=   497.9720     FROM HESSE     STATUS=OK           385 CALLS     3444 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          42.109        446.27        .61573E-04   -1.4409    
   2  Prefactor     65.911        70.046        .24713E-03   -1.4082    
   3  norm          .10000E-03    5.7501        .52180E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    176.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    327.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          54.676        32.464        .54244E-04   -1.4228    
   7  Prefactor     .10000E-03    55.837        .16307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.197        .82169E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     43.020        117.07        .61116E-04   -1.4395    
  10  Prefactor     70.758        202.05        .47737E-04   -1.4024    
  11  norm          .10000E-03    3.3521        .39911E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    89.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    29.312        .11809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    77.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    13.760        .80894E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    45.140        .14656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    35.948        .13080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          12.073        14.840        .91829E-04   -1.5013    
  19  Prefactor     36.673        242.59        .66261E-04   -1.4496    
  20  Prefactor     .10000E-03    186.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10007E-03    6664.0        .18568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     26.141        107.26        .78541E-04   -1.4685    
  23  Normalizat    1.0079        1.3230        .36550E-03   -.92767    
  24  Prefactor     .81681        .56776        .18767E-03   -.99112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75533e-10
Minuit parameter uncertainties:
  1  276.855
  2  70.1337
  3  9.065e-07
  4  0.000336586
  5  0.00117594
  6  32.4743
  7  2.02352e-05
  8  6.83584e-07
  9  117.708
  10  204.057
  11  6.71421e-08
  12  3.39756e-07
  13  6.98971e-06
  14  7.47926e-05
  15  5.41327e-07
  16  6.65319e-05
  17  2.65975e-05
  18  14.8442
  19  189.771
  20  0.00029454
  21  0.0321391
  22  106.235
  23  1.37029
  24  0.571911
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.000e-04  5.413e-07  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.168e-01  5.719e-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.008e+00  1.370e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 350.478 32.074
Photon Flux Upper Limit: 4.84e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.18e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/786673/likelihoodResults_491788801_492048001_4FGL_J2321.9+3204_daily_bin974.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): 102
logL (Free Index) = 497.972292489
delta logL = -0.000274185656622

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 497.972026111
delta logL = -7.80785251209e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10200E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2282       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0079       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81665       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=   497.9720     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      293 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1530.5        .47602E-02** at limit **
   2  alpha         1.6187        2.7266        .17444        .19409E-07
   3  Normalizat    1.0079        .25570        .36549E-03   -.24493E-04
   4  Prefactor     .81680        .12036        .18767E-03   -.43176E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.61871
  Normalizat = 1.00788
  Prefactor  = 0.816802
 **********
 **   18 **HESSE 
 **********

 FCN=   497.9720     FROM HESSE     STATUS=OK            23 CALLS      316 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    16.231        .87804E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6187        3.3174        .69776E-02   -.36026    
   3  Normalizat    1.0079        1.0924        .14620E-04   -.92767    
   4  Prefactor     .81680        .52267        .37535E-04   -.99112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.44787e-11
Minuit parameter uncertainties:
  1  2.62421e-05
  2  492.31
  3  1.11823
  4  0.525896
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/786673': 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) = 497.972017754
delta logL = 5.49195419808e-07

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.000e-04  2.624e-05  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  1.619e+00  4.923e+02  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.168e-01  5.259e-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.008e+00  1.118e+00  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/786673/cmap_HighResolution_491788801_492048001_4FGL_J2321.9+3204_daily_bin974.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.18e-04', job_status='DONE', photon_flux_upper_limit='4.84e-07', time_completed='2021-09-29 13:24:10.928379', job_id='786673', GAL2='0.82', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1632947050.93', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='5.49e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='974' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:24:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 786673: <4FGL_J2321.9+3204_daily_bin974> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin974 350.478 32.0737 491788801 492048001 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 :                                   351.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             195.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   513 sec.
    Turnaround time :                            515 sec.

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

