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


Performing analysis on: 4FGL_J2321.9+3204_daily_bin979
RA = 350.478, Dec = 32.0737
tmin = 493084801, tmax = 493344001
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='786680', job_status='RUN', time_executed='2021-09-29 13:15:51.090505', time_epoch_executed='1632946551.09' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='979'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/786680

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/786680/ft1_4FGL_J2321.9+3204_daily_bin979.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/786680/ft2_4FGL_J2321.9+3204_daily_bin979.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/786680/ft1_4FGL_J2321.9+3204_daily_bin979.fits outfile=/scratch/kocevski/786680/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin979.fits ra=350.478 dec=32.0737 rad=12.0 tmin=493084801.0 tmax=493344001.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.59
user 3.33
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/786680/ft1_filtered_4FGL_J2321.9+3204_daily_bin979.fits evtable="EVENTS" scfile=/scratch/kocevski/786680/ft2_4FGL_J2321.9+3204_daily_bin979.fits sctable="SC_DATA" expcube=/scratch/kocevski/786680/ltcube_493084801_493344001_4FGL_J2321.9+3204_daily_bin979.fits outfile=/scratch/kocevski/786680/expmap_493084801_493344001_4FGL_J2321.9+3204_daily_bin979.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/786680/ltcube_493084801_493344001_4FGL_J2321.9+3204_daily_bin979.fits
.....................!
real 192.09
user 187.13
sys 4.49

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/786680/ft1_filtered_4FGL_J2321.9+3204_daily_bin979.fits scfile=/scratch/kocevski/786680/ft2_4FGL_J2321.9+3204_daily_bin979.fits outfile=/scratch/kocevski/786680/cmap_493084801_493344001_4FGL_J2321.9+3204_daily_bin979.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/786680/ft1_filtered_4FGL_J2321.9+3204_daily_bin979.fits scfile=/scratch/kocevski/786680/ft2_4FGL_J2321.9+3204_daily_bin979.fits outfile=/scratch/kocevski/786680/cmap_HighResolution_493084801_493344001_4FGL_J2321.9+3204_daily_bin979.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.54
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .30472E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.2313       1.0000         .10000E-03   10000.    
     3 'norm      '    2.8394       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    14.201       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10335E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.9778       1.0000         .10000E-03   10000.    
    11 'norm      '    .78509       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .33665E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.457       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    57.036       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.3568       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    33.235       1.0000         .10000E-03   10000.    
    21 'Prefactor '    65.264       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6638       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .75621       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=   9501.646     FROM MIGRAD    STATUS=CONVERGED    985 CALLS     3171 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    107.76        .64445E-02** at limit **
   2  Prefactor     6.2318        7.2265        .16081E-03    .10039E-04
   3  norm          2.8396        1.2946        .72500E-04   -.32585E-03
   4  Prefactor     .10000E-03    20.243        .18142E-02** at limit **
   5  Prefactor     .10000E-03    7.6366        .18142E-02** at limit **
   6  norm          14.203        5.5118        .10629E-03   -.26950E-03
   7  Prefactor     .10000E-03    5.3551        .18142E-02** at limit **
   8  Prefactor     .10000E-03    3.0876        .60310E-01** at limit **
   9  Prefactor     .10000E-03    6.2089        .18142E-02** at limit **
  10  Prefactor     9.9807        15.543        .12686E-03   -.31725E-04
  11  norm          .78525        .87118        .95082E-04    .29557E-03
  12  Prefactor     .10000E-03    125.30        .74660E-02** at limit **
  13  Prefactor     10.461        14.340        .12391E-03   -.10313E-03
  14  Prefactor     .10000E-03    51.873        .18142E-02** at limit **
  15  norm          .10000E-03    2.3392        .14456E-02** at limit **
  16  norm          57.050        20.933        .53118E-04   -.55219E-04
  17  Prefactor     .10000E-03    6.9639        .18142E-02** at limit **
  18  norm          1.3569        2.6260        .20816E-03   -.19989E-03
  19  Prefactor     .10000E-03    6.4810        .18142E-02** at limit **
  20  Prefactor     33.266        39.974        .69508E-04   -.75368E-04
  21  Prefactor     65.350        48.558        .24839E-03    .35426E-04
  22  Prefactor     .10000E-03    3.8350        .18142E-02** at limit **
  23  Normalizat    1.6640        .25473        .31569E-03   -.27496E-03
  24  Prefactor     .75600        .11608        .20341E-03   -.15045E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 6.23175
  norm       = 2.83959
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.2025
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 9.98069
  norm       = 0.785251
  Prefactor  = 0.0001
  Prefactor  = 10.4613
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 57.0498
  Prefactor  = 0.0001
  norm       = 1.35689
  Prefactor  = 0.0001
  Prefactor  = 33.266
  Prefactor  = 65.3497
  Prefactor  = 0.0001
  Normalizat = 1.66403
  Prefactor  = 0.756002
 **********
 **   18 **HESSE 
 **********

 FCN=   9501.646     FROM HESSE     STATUS=OK           383 CALLS     3554 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    111.02        .25778E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.2318        7.2262        .64325E-05   -1.5209    
   3  norm          2.8396        1.2946        .29000E-05   -1.5371    
   4  Prefactor     .10000E-03    20.243        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.6370        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          14.203        5.5118        .21258E-04   -1.4954    
   7  Prefactor     .10000E-03    5.3552        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.0885        .60290E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.2103        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.9807        15.543        .50742E-05   -1.5076    
  11  norm          .78525        .87116        .38033E-05   -1.5531    
  12  Prefactor     .10000E-03    129.67        .29864E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.461        14.337        .49562E-05   -1.5061    
  14  Prefactor     .10000E-03    51.914        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.3401        .28913E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          57.050        20.929        .21247E-05   -1.4196    
  17  Prefactor     .10000E-03    6.9645        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.3569        2.6255        .83266E-05   -1.5475    
  19  Prefactor     .10000E-03    6.4813        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     33.266        39.974        .13902E-04   -1.4554    
  21  Prefactor     65.350        48.424        .99354E-05   -1.4089    
  22  Prefactor     .10000E-03    3.8355        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.6640        .25483        .63138E-04   -.73268    
  24  Prefactor     .75600        .11618        .81366E-05   -1.0137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.79044e-10
Minuit parameter uncertainties:
  1  0.00019811
  2  7.22716
  3  1.29464
  4  4.34561e-05
  5  1.10398e-05
  6  5.51201
  7  9.28921e-06
  8  0.000108661
  9  4.08461e-05
  10  15.5492
  11  0.871174
  12  8.70721e-05
  13  14.3414
  14  0.000642718
  15  1.60093e-05
  16  20.9322
  17  3.37829e-05
  18  2.62568
  19  6.41431e-06
  20  40.0057
  21  48.4532
  22  5.91193e-05
  23  0.255033
  24  0.116218
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.000e-04  1.601e-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:  7.560e-01  1.162e-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.664e+00  2.550e-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.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.41e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/786680/likelihoodResults_493084801_493344001_4FGL_J2321.9+3204_daily_bin979.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) = 9501.64784901
delta logL = -0.00203558592511

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9501.64581726
delta logL = -3.83577935281e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1420       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6640       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75585       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=   9501.646     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      238 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    208.66        .14463E-02** at limit **
   2  alpha         2.2639        3.7772        .50000       -.13038E-06
   3  Normalizat    1.6640        .58183E-01    .31569E-03   -.34931E-04
   4  Prefactor     .75600        .26703E-01    .20341E-03   -.59690E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.26386
  Normalizat = 1.66403
  Prefactor  = 0.756001
 **********
 **   18 **HESSE 
 **********

 FCN=   9501.646     FROM HESSE     STATUS=OK            29 CALLS      267 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    15.335        .28925E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2639        3.4596        .50000       -.94597E-01
   3  Normalizat    1.6640        .24336        .12628E-04   -.73268    
   4  Prefactor     .75600        .11173        .81366E-05   -1.0137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94909e-10
Minuit parameter uncertainties:
  1  4.07732e-05
  2  408.933
  3  0.243535
  4  0.111765
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/786680': 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) = 9501.64581322
delta logL = 2.05267497222e-07

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.000e-04  4.077e-05  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  2.264e+00  4.089e+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:  7.560e-01  1.118e-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.664e+00  2.435e-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/786680/cmap_HighResolution_493084801_493344001_4FGL_J2321.9+3204_daily_bin979.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.41e-05', job_status='DONE', photon_flux_upper_limit='5.35e-08', time_completed='2021-09-29 13:31:05.631970', job_id='786680', GAL2='0.76', fit_tolerance='1e-08', EG2='1.66', EG='1.66', time_epoch_completed='1632947465.63', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='2.05e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='979' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:31:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 786680: <4FGL_J2321.9+3204_daily_bin979> in cluster <slac> Done

Job <4FGL_J2321.9+3204_daily_bin979> 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) <bullet0066>, 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:31:06 2021
Results reported at Wed Sep 29 13:31:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin979 350.478 32.0737 493084801 493344001 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 :                                   904.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             357.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            930 sec.

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

