aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 38 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J2321.9+3204_daily_bin1750
RA = 350.478, Dec = 32.0737
tmin = 692928001, tmax = 693187201
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='28483', job_status='RUN', time_executed='2022-12-20 01:56:11.137323', time_epoch_executed='1671530171.14' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='1750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/28483

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/28483/ft1_4FGL_J2321.9+3204_daily_bin1750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/28483/ft2_4FGL_J2321.9+3204_daily_bin1750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/28483/ft1_4FGL_J2321.9+3204_daily_bin1750.fits outfile=/scratch/kocevski/28483/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin1750.fits ra=350.478 dec=32.0737 rad=12.0 tmin=692928001.0 tmax=693187201.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.52
user 3.31
sys 0.18

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

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

Number of photons that the gtmktime cut: 903

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/28483/ft1_filtered_4FGL_J2321.9+3204_daily_bin1750.fits" evtable="EVENTS" scfile=/scratch/kocevski/28483/ft2_4FGL_J2321.9+3204_daily_bin1750.fits sctable="SC_DATA" outfile=/scratch/kocevski/28483/ltcube_692928001_693187201_4FGL_J2321.9+3204_daily_bin1750.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/28483/ft2_4FGL_J2321.9+3204_daily_bin1750.fits
.....................!
real 11.86
user 11.49
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/28483/ft1_filtered_4FGL_J2321.9+3204_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/28483/ft2_4FGL_J2321.9+3204_daily_bin1750.fits sctable="SC_DATA" expcube=/scratch/kocevski/28483/ltcube_692928001_693187201_4FGL_J2321.9+3204_daily_bin1750.fits outfile=/scratch/kocevski/28483/expmap_692928001_693187201_4FGL_J2321.9+3204_daily_bin1750.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/28483/ltcube_692928001_693187201_4FGL_J2321.9+3204_daily_bin1750.fits
.....................!
real 191.31
user 186.44
sys 4.54

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/28483/ft1_filtered_4FGL_J2321.9+3204_daily_bin1750.fits scfile=/scratch/kocevski/28483/ft2_4FGL_J2321.9+3204_daily_bin1750.fits outfile=/scratch/kocevski/28483/cmap_692928001_693187201_4FGL_J2321.9+3204_daily_bin1750.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/28483/ft1_filtered_4FGL_J2321.9+3204_daily_bin1750.fits scfile=/scratch/kocevski/28483/ft2_4FGL_J2321.9+3204_daily_bin1750.fits outfile=/scratch/kocevski/28483/cmap_HighResolution_692928001_693187201_4FGL_J2321.9+3204_daily_bin1750.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.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/28483/ft1_filtered_4FGL_J2321.9+3204_daily_bin1750.fits', '/scratch/kocevski/28483/ft2_4FGL_J2321.9+3204_daily_bin1750.fits', expMap='/scratch/kocevski/28483/expmap_692928001_693187201_4FGL_J2321.9+3204_daily_bin1750.fits', expCube='/scratch/kocevski/28483/ltcube_692928001_693187201_4FGL_J2321.9+3204_daily_bin1750.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/28483/Model_4FGL_J2321.9+3204_daily_bin1750.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  0.000e+00  1.000e+06 ( 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 -5.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/28483/ft1_filtered_4FGL_J2321.9+3204_daily_bin1750.fits
Spacecraft file(s): /scratch/kocevski/28483/ft2_4FGL_J2321.9+3204_daily_bin1750.fits
Exposure map: /scratch/kocevski/28483/expmap_692928001_693187201_4FGL_J2321.9+3204_daily_bin1750.fits
Exposure cube: /scratch/kocevski/28483/ltcube_692928001_693187201_4FGL_J2321.9+3204_daily_bin1750.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/28483/Model_4FGL_J2321.9+3204_daily_bin1750.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) = 9598.98663024

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11285E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .78778E-03   1.0000          .0000       .10000E+07
     3 'norm      '    .60345       1.0000          .0000       .10000E+07
     4 'norm      '    .17149       1.0000          .0000       .10000E+07
     5 'Prefactor '    .10881E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    3.6145       1.0000          .0000       .10000E+07
     7 'Prefactor '    11.321       1.0000          .0000       .10000E+07
     8 'norm      '    1.3047       1.0000          .0000       .10000E+07
     9 'Prefactor '    9.9712       1.0000          .0000       .10000E+07
    10 'Prefactor '    .49157E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    70.612       1.0000          .0000       .10000E+07
    12 'norm      '    .31431E-04   1.0000          .0000       .10000E+07
    13 'norm      '    .46556E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .19934E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .64236E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .33892E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .36743       1.0000          .0000       .10000E+07
    18 'Prefactor '    .95432E-03   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.3103       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0054       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9598.950     FROM MIGRAD    STATUS=CONVERGED    154 CALLS     1565 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17580E-06    53.744        .10569E-06** at limit **
   2  Prefactor     .55511E-10    3.3546        .16953E-06** at limit **
   3  norm          .60376        .70335        .11233E-08    .32118E-03
   4  norm          .16531        8.0660        .25629E-07** at limit **
   5  Prefactor     .67168E-08    5.5868        .48690E-08** at limit **
   6  Prefactor     3.6258        3.7250       -.10223E-06   -.26745E-02
   7  Prefactor     11.325        1.5021       -.39005E-08    .16187E-02
   8  norm          1.3046        1.1838        .66653E-08    .54495E-03
   9  Prefactor     10.014        24.946       -.93335E-07   -.52908E-01
  10  Prefactor      .0000        3.9292       -.74039E-07** at limit **
  11  Prefactor     71.250        28.729        .37748E-07   -.12734    
  12  norm          .84932E-08    9.2401       -.17479E-07** at limit **
  13  norm           .0000        2.2240        .67021E-08** at limit **
  14  Prefactor     .40523E-08    9.3156       -.11451E-06** at limit **
  15  norm           .0000        1.5682       -.15323E-07** at limit **
  16  Prefactor     .58287E-08    12.976       -.14156E-06** at limit **
  17  Prefactor     .15501E-05    4.6095       -.10789E-06** at limit **
  18  Prefactor     .11435E-07    5.8008       -.64468E-07** at limit **
  19  Normalizat    1.3099        .23133        .19165E-05    .10190E-04
  20  Prefactor     1.0054        .11207       -.10589E-05   -.72428E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.75804e-07
  Prefactor  = 5.55112e-11
  norm       = 0.603758
  norm       = 0.165307
  Prefactor  = 6.71685e-09
  Prefactor  = 3.62579
  Prefactor  = 11.3248
  norm       = 1.30456
  Prefactor  = 10.0144
  Prefactor  = 0
  Prefactor  = 71.2499
  norm       = 8.49321e-09
  norm       = 0
  Prefactor  = 4.05231e-09
  norm       = 0
  Prefactor  = 5.82867e-09
  Prefactor  = 1.55009e-06
  Prefactor  = 1.14353e-08
  Normalizat = 1.3099
  Prefactor  = 1.00535
 **********
 **   18 **HESSE 
 **********

 FCN=   9598.950     FROM HESSE     STATUS=OK           335 CALLS     1900 TOTAL
                     EDM=   .49E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .17580E-06    53.835        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .55511E-10    3.3541        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .60376        .71127        .68920E-03   -1.5692    
   4  norm          .16531        1.3758        .60960E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .67168E-08    5.6664        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.6258        3.7454        .53120E-03   -1.5670    
   7  Prefactor     11.325        11.380        .29750E-03   -1.5641    
   8  norm          1.3046        1.1983        .96612E-03   -1.5685    
   9  Prefactor     10.014        29.039        .31708E-03   -1.5645    
  10  Prefactor      .0000        3.9247        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     71.250        40.391        .11901E-03   -1.5539    
  12  norm          .84932E-08    8.9565        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        2.2315        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .40523E-08    9.3761        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        1.5575        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .58287E-08    13.705        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .15501E-05    67.766        .93362E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .11435E-07    5.8681        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3099        .20014        .75826E-01   -.83271    
  20  Prefactor     1.0054        .95041E-01    .44113E-01   -.92551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.87339e-07
Minuit parameter uncertainties:
  1  0.00615292
  2  3.17532e-05
  3  0.711271
  4  0.953803
  5  0.000389792
  6  3.74538
  7  11.3802
  8  1.19826
  9  29.0392
  10  7.80221e-06
  11  40.3914
  12  0.000551008
  13  3.41677e-06
  14  0.000390315
  15  1.60113e-06
  16  0.000564241
  17  0.0204985
  18  0.000517917
  19  0.200261
  20  0.0950568
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  8.493e-09  5.510e-04  0.000e+00  1.000e+06 ( 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 -5.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.005e+00  9.506e-02  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.310e+00  2.003e-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.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.63e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/28483/likelihoodResults_692928001_693187201_4FGL_J2321.9+3204_daily_bin1750.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) = 9598.90878832
delta logL = 0.0409624041913

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9598.90546811
delta logL = 0.0442826096296

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .79893       1.0000          .0000       .10000E+07
     2 'alpha     '    1.3107       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3142       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0020       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=   9598.905     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      260 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 25.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .79928        2.9804        .35952E-06   -.83246E-02
   2  alpha         1.3111        .99917       -.31723E-04   -.11644E-03
   3  Normalizat    1.3142        .19505        .32544E-06   -.78687E-04
   4  Prefactor     1.0020        .94785E-01   -.24705E-06   -.75935E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.799275
  alpha      = 1.31107
  Normalizat = 1.31417
  Prefactor  = 1.00198
 **********
 **   18 **HESSE 
 **********

 FCN=   9598.905     FROM HESSE     STATUS=OK            31 CALLS      291 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .79928        2.8982        .21206E-04   -1.5690    
   2  alpha         1.3111        1.2228        .48084E-01   -.49561    
   3  Normalizat    1.3142        .22830        .33513E-03   -.83144    
   4  Prefactor     1.0020        .11100        .18182E-03   -.92663    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.36543e-09
Minuit parameter uncertainties:
  1  2.89823
  2  1.29662
  3  0.228471
  4  0.111027
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/28483': 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) = 9598.90546797
delta logL = 0.0442827508996

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  7.993e-01  2.898e+00  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  1.311e+00  1.297e+00  0.000e+00  5.000e+00 ( 1.000e+00)
435         beta:  1.248e-01  0.000e+00 -5.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.002e+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:  1.314e+00  2.285e-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/28483/cmap_HighResolution_692928001_693187201_4FGL_J2321.9+3204_daily_bin1750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.63e-05', job_status='DONE', photon_flux_upper_limit='5.84e-08', time_completed='2022-12-20 02:07:39.184418', job_id='28483', GAL2='1.00', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1671530859.18', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='4.43e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='1750' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 20 02:07:39 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 28483: <4FGL_J2321.9+3204_daily_bin1750> in cluster <slac> Done

Job <4FGL_J2321.9+3204_daily_bin1750> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Dec 20 01:55:23 2022
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 01:55:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 01:55:23 2022
Terminated at Tue Dec 20 02:07:39 2022
Results reported at Tue Dec 20 02:07:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin1750 350.478 32.0737 692928001 693187201 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 :                                   690.27 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             335.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            736 sec.

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

