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


Performing analysis on: 4FGL_J2321.9+3204_daily_bin1664
RA = 350.478, Dec = 32.0737
tmin = 670636801, tmax = 670896001
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='316845', job_status='RUN', time_executed='2022-04-06 00:37:17.510774', time_epoch_executed='1649230637.51' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='1664'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/316845

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/316845/ft1_4FGL_J2321.9+3204_daily_bin1664.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/316845/ft2_4FGL_J2321.9+3204_daily_bin1664.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/316845/ft1_4FGL_J2321.9+3204_daily_bin1664.fits outfile=/scratch/kocevski/316845/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin1664.fits ra=350.478 dec=32.0737 rad=12.0 tmin=670636801.0 tmax=670896001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.37
user 5.11
sys 0.22

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

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

Number of photons that the gtmktime cut: 790

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/316845/ft1_filtered_4FGL_J2321.9+3204_daily_bin1664.fits" evtable="EVENTS" scfile=/scratch/kocevski/316845/ft2_4FGL_J2321.9+3204_daily_bin1664.fits sctable="SC_DATA" outfile=/scratch/kocevski/316845/ltcube_670636801_670896001_4FGL_J2321.9+3204_daily_bin1664.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/316845/ft2_4FGL_J2321.9+3204_daily_bin1664.fits
.....................!
real 11.59
user 11.27
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/316845/ft1_filtered_4FGL_J2321.9+3204_daily_bin1664.fits evtable="EVENTS" scfile=/scratch/kocevski/316845/ft2_4FGL_J2321.9+3204_daily_bin1664.fits sctable="SC_DATA" expcube=/scratch/kocevski/316845/ltcube_670636801_670896001_4FGL_J2321.9+3204_daily_bin1664.fits outfile=/scratch/kocevski/316845/expmap_670636801_670896001_4FGL_J2321.9+3204_daily_bin1664.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/316845/ltcube_670636801_670896001_4FGL_J2321.9+3204_daily_bin1664.fits
.....................!
real 190.82
user 185.82
sys 4.63

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/316845/ft1_filtered_4FGL_J2321.9+3204_daily_bin1664.fits scfile=/scratch/kocevski/316845/ft2_4FGL_J2321.9+3204_daily_bin1664.fits outfile=/scratch/kocevski/316845/cmap_670636801_670896001_4FGL_J2321.9+3204_daily_bin1664.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.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13508E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.0181       1.0000         .10000E-03   10000.    
     3 'norm      '    2.2646       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .32960E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3087       1.0000         .10000E-03   10000.    
     6 'norm      '    .29994       1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.239       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.2839       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10528E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.262       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .39633E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    52.350       1.0000         .10000E-03   10000.    
    15 'norm      '    .12632E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .11834E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13071E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14826E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.3015       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3623       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99119       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=   8611.603     FROM MIGRAD    STATUS=CONVERGED    555 CALLS     2381 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.714       -.52113E-06** at limit **
   2  Prefactor     6.0226        8.5746        .30051E-06    .79029E-04
   3  norm          2.2649        1.1166        .28814E-07    .14280E-03
   4  Prefactor     .10001E-03    207.90        .27919E-05** at limit **
   5  Prefactor     4.3103        10.742        .45606E-06    .60321E-04
   6  norm          .30550        3.0093        .68421E-06   -.16761E-03
   7  Prefactor     18.266        25.521       -.44116E-06   -.16701E-03
   8  Prefactor     9.2880        8.2331       -.15778E-06   -.21481E-03
   9  Prefactor     .10000E-03    17.340        .10455E-05** at limit **
  10  Prefactor     22.270        17.800       -.10486E-06   -.95184E-04
  11  norm          .10000E-03    .59993       -.41100E-08** at limit **
  12  Prefactor     .10003E-03    74.491        .60390E-05** at limit **
  13  Prefactor     .10000E-03    6.1044       -.65318E-07** at limit **
  14  Prefactor     52.425        34.152        .10132E-05    .39676E-03
  15  norm          .10013E-03    7.0146       -.27880E-05** at limit **
  16  norm          .10004E-03    7.5090        .27443E-05** at limit **
  17  Prefactor     .10000E-03    17.316        .74624E-06** at limit **
  18  norm          .10000E-03    .65514       -.72860E-08** at limit **
  19  Prefactor     .10000E-03    6.5846        .65147E-09** at limit **
  20  Prefactor     .10000E-03    16.215       -.74964E-06** at limit **
  21  Prefactor     .10000E-03    46.481       -.12393E-05** at limit **
  22  Prefactor     1.2893        9.2337        .47673E-05    .41651E-03
  23  Normalizat    1.3620        .21882       -.10560E-05    .76712E-05
  24  Prefactor     .99114        .10290        .84985E-07   -.84117E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 6.02264
  norm       = 2.26494
  Prefactor  = 0.000100012
  Prefactor  = 4.31029
  norm       = 0.305504
  Prefactor  = 18.2655
  Prefactor  = 9.28798
  Prefactor  = 0.000100001
  Prefactor  = 22.2696
  norm       = 0.0001
  Prefactor  = 0.000100028
  Prefactor  = 0.0001
  Prefactor  = 52.4246
  norm       = 0.00010013
  norm       = 0.000100042
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 1.2893
  Normalizat = 1.36195
  Prefactor  = 0.991142
 **********
 **   18 **HESSE 
 **********

 FCN=   8611.603     FROM HESSE     STATUS=OK           395 CALLS     2776 TOTAL
                     EDM=   .78E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.0226        8.5885        .16367E-03   -1.5217    
   3  norm          2.2649        1.1150        .66557E-04   -1.5407    
   4  Prefactor     .10001E-03    214.73        .42699E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.3103        10.733        .19407E-03   -1.5293    
   6  norm          .30550        7.8806        .29484E-02   -1.5597    
   7  Prefactor     18.266        25.574        .93781E-04   -1.4853    
   8  Prefactor     9.2880        8.1508        .13153E-03   -1.5098    
   9  Prefactor     .10000E-03    17.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.270        17.806        .84894E-04   -1.4764    
  11  norm          .10000E-03    .61666        .14019E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10003E-03    78.964        .42536E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.1392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     52.425        34.481        .55432E-04   -1.4259    
  15  norm          .10013E-03    22.590        .34864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10004E-03    21.214        .39836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .65905        .73342E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.5906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    46.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.2893        10.294        .38723E-03   -1.5481    
  23  Normalizat    1.3620        .25641        .34341E-03   -.81735    
  24  Prefactor     .99114        .12142        .18453E-03   -.93025    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.76397e-08
Minuit parameter uncertainties:
  1  9.76156e-05
  2  8.59022
  3  1.11505
  4  0.00323182
  5  10.7375
  6  3.10321
  7  25.5895
  8  8.15176
  9  0.000322409
  10  17.8101
  11  2.02772e-06
  12  0.00296915
  13  6.08048e-06
  14  34.4945
  15  0.00342891
  16  0.00187958
  17  0.000246818
  18  5.21883e-07
  19  2.66152e-06
  20  0.000297715
  21  0.000529558
  22  7.28748
  23  0.256654
  24  0.121453
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.001e-04  3.429e-03  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:  9.911e-01  1.215e-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.362e+00  2.567e-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: 8.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.83e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/316845/likelihoodResults_670636801_670896001_4FGL_J2321.9+3204_daily_bin1664.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) = 8611.60295188
delta logL = -0.000207954784855

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8611.60274428
delta logL = -3.51577909896e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17601E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0235       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3614       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99134       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=   8610.750     FROM MIGRAD    STATUS=CONVERGED    168 CALLS      344 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .37456        .47524        .90473E-03   -.13342E-03
   2  alpha         .35162        .57813        .50000       -.12996E-04
   3  Normalizat    1.3590        .25087        .34353E-03   -.25151E-05
   4  Prefactor     .99035        .11810        .18451E-03    .17006E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.374562
  alpha      = 0.351624
  Normalizat = 1.35899
  Prefactor  = 0.990348
 **********
 **   18 **HESSE 
 **********

 FCN=   8610.750     FROM HESSE     STATUS=OK            29 CALLS      373 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .37456        .78934        .36189E-04   -1.5586    
   2  alpha         .35162        .69334        .41330E-01   -1.0340    
   3  Normalizat    1.3590        .25107        .13741E-04   -.81822    
   4  Prefactor     .99035        .11820        .73803E-05   -.93052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1233e-09
Minuit parameter uncertainties:
  1  0.789357
  2  0.732819
  3  0.251302
  4  0.118229
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/316845': 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) = 8610.74966809
delta logL = 0.853075835283

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  3.746e-01  7.894e-01  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  3.516e-01  7.328e-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:  9.903e-01  1.182e-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.359e+00  2.513e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.71
Ra Dec: 350.478 32.074
Photon Index (Free Index): 0.35 +/- 0.73
Photon Flux (Free Index): 3.07e-09 +/- 3.80e-09
Energy Flux (Free Index): 5.40e-05 +/- 8.60e-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/316845/cmap_HighResolution_670636801_670896001_4FGL_J2321.9+3204_daily_bin1664.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.83e-05', comment='SUCCESS', energy_flux2='5.40e-05', dlogl='8.53e-01', photon_flux2='3.07e-09', job_status='DONE', time_completed='2022-04-06 00:50:25.245951', photon_index_error2='0.73', photon_index2='0.35', ts='-0.00', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='8.52e-08', energy_flux_error2='8.60e-05', EG='1.36', time_epoch_completed='1649231425.25', return_code='0', job_id='316845', GAL2='0.99', EG2='1.36', return_code2='0', photon_flux_error2='3.80e-09', ts2='1.71', photon_index='2.14' WHERE bin_id='1664' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Apr  6 00:50:25 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0176>
Subject: Job 316845: <4FGL_J2321.9+3204_daily_bin1664> in cluster <slac> Done

Job <4FGL_J2321.9+3204_daily_bin1664> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Apr  6 00:35:55 2022
Job was executed on host(s) <bullet0176>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Apr  6 00:35:57 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Apr  6 00:35:57 2022
Terminated at Wed Apr  6 00:50:26 2022
Results reported at Wed Apr  6 00:50:26 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin1664 350.478 32.0737 670636801 670896001 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 :                                   789.09 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             322.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            871 sec.

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

