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


Performing analysis on: 4FGL_J2321.9+3204_daily_bin1663
RA = 350.478, Dec = 32.0737
tmin = 670377601, tmax = 670636801
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='261641', job_status='RUN', time_executed='2022-04-03 00:36:41.782866', time_epoch_executed='1648971401.78' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='1663'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261641

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261641/ft1_4FGL_J2321.9+3204_daily_bin1663.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261641/ft2_4FGL_J2321.9+3204_daily_bin1663.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261641/ft1_4FGL_J2321.9+3204_daily_bin1663.fits outfile=/scratch/kocevski/261641/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin1663.fits ra=350.478 dec=32.0737 rad=12.0 tmin=670377601.0 tmax=670636801.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.82
user 3.61
sys 0.20

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

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

Number of photons that the gtmktime cut: 861

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261641/ft1_filtered_4FGL_J2321.9+3204_daily_bin1663.fits evtable="EVENTS" scfile=/scratch/kocevski/261641/ft2_4FGL_J2321.9+3204_daily_bin1663.fits sctable="SC_DATA" expcube=/scratch/kocevski/261641/ltcube_670377601_670636801_4FGL_J2321.9+3204_daily_bin1663.fits outfile=/scratch/kocevski/261641/expmap_670377601_670636801_4FGL_J2321.9+3204_daily_bin1663.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/261641/ltcube_670377601_670636801_4FGL_J2321.9+3204_daily_bin1663.fits
.....................!
real 190.83
user 185.39
sys 5.07

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/261641/ft1_filtered_4FGL_J2321.9+3204_daily_bin1663.fits scfile=/scratch/kocevski/261641/ft2_4FGL_J2321.9+3204_daily_bin1663.fits outfile=/scratch/kocevski/261641/cmap_670377601_670636801_4FGL_J2321.9+3204_daily_bin1663.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/261641/ft1_filtered_4FGL_J2321.9+3204_daily_bin1663.fits scfile=/scratch/kocevski/261641/ft2_4FGL_J2321.9+3204_daily_bin1663.fits outfile=/scratch/kocevski/261641/cmap_HighResolution_670377601_670636801_4FGL_J2321.9+3204_daily_bin1663.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/261641/ft1_filtered_4FGL_J2321.9+3204_daily_bin1663.fits evtable="EVENTS" scfile=/scratch/kocevski/261641/ft2_4FGL_J2321.9+3204_daily_bin1663.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261641/Model_4FGL_J2321.9+3204_daily_bin1663.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/261641/ft1_filtered_4FGL_J2321.9+3204_daily_bin1663.fits.....................!
real 100.73
user 99.35
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.3337       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.0412       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.4698       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    46.391       1.0000         .10000E-03   10000.    
    11 'norm      '    2.2815       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10584E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    18.451       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.2336       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11488E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.295       1.0000         .10000E-03   10000.    
    21 'Prefactor '    44.409       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0761       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0331       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=   9293.119     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2676 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.9407       -.20485E-06** at limit **
   2  Prefactor     .10000E-03    5.4860       -.12487E-06** at limit **
   3  norm          4.3336        1.3915        .30691E-07   -.80424E-04
   4  Prefactor     .10000E-03    33.035        .58014E-06** at limit **
   5  Prefactor     .10000E-03    12.962        .88791E-06** at limit **
   6  norm          2.0414        2.6422        .26926E-06   -.48634E-04
   7  Prefactor     .10000E-03    4.6435        .14001E-07** at limit **
   8  Prefactor     2.4696        2.8590       -.55026E-08   -.38800E-05
   9  Prefactor     .10000E-03    3.9145        .57834E-07** at limit **
  10  Prefactor     46.389        28.780        .88347E-07   -.31300E-04
  11  norm          2.2811        1.3134       -.53225E-07   -.16123E-03
  12  Prefactor     .10000E-03    15.216       -.67339E-06** at limit **
  13  Prefactor     .10000E-03    3.8760        .15973E-06** at limit **
  14  Prefactor     .10000E-03    13.875        .93308E-07** at limit **
  15  norm          .10000E-03    3.5664       -.88561E-06** at limit **
  16  norm          18.451        11.709        .11176E-06   -.12050E-04
  17  Prefactor     4.2271        12.961        .93389E-05   -.14079E-03
  18  norm          .10000E-03    .65000        .38350E-07** at limit **
  19  Prefactor     .10000E-03    50.225       -.11669E-05** at limit **
  20  Prefactor     27.256        44.084       -.31854E-05   -.33702E-03
  21  Prefactor     44.404        43.434       -.16647E-06   -.50107E-04
  22  Prefactor     .10000E-03    2.4259       -.14028E-07** at limit **
  23  Normalizat    1.0763        .20772        .12259E-05   -.88633E-04
  24  Prefactor     1.0330        .98232E-01   -.10985E-05    .13957E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.3336
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 2.04143
  Prefactor  = 0.0001
  Prefactor  = 2.46962
  Prefactor  = 0.0001
  Prefactor  = 46.3891
  norm       = 2.28113
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 18.4515
  Prefactor  = 4.22708
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.256
  Prefactor  = 44.404
  Prefactor  = 0.0001
  Normalizat = 1.07628
  Prefactor  = 1.03297
 **********
 **   18 **HESSE 
 **********

 FCN=   9293.119     FROM HESSE     STATUS=OK           389 CALLS     3065 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.9731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.5745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.3336        1.3913        .62206E-04   -1.5292    
   4  Prefactor     .10000E-03    33.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.0414        2.6254        .17314E-03   -1.5422    
   7  Prefactor     .10000E-03    4.6453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.4696        2.8568        .17074E-03   -1.5394    
   9  Prefactor     .10000E-03    3.9258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     46.389        28.795        .58868E-04   -1.4345    
  11  norm          2.2811        1.3083        .80329E-04   -1.5406    
  12  Prefactor     .10000E-03    15.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.8882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.7292        .35808E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          18.451        11.720        .93242E-04   -1.4849    
  17  Prefactor     4.2271        13.074        .97919E-03   -1.5297    
  18  norm          .10000E-03    .65541        .75890E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    51.989        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     27.256        44.504        .76681E-04   -1.4663    
  21  Prefactor     44.404        43.426        .60162E-04   -1.4374    
  22  Prefactor     .10000E-03    2.4327        .14658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0763        .23980        .35959E-03   -.90517    
  24  Prefactor     1.0330        .11306        .17654E-03   -.91638    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27803e-09
Minuit parameter uncertainties:
  1  4.36654e-05
  2  1.47582e-05
  3  1.39135
  4  0.000284064
  5  0.000225559
  6  2.62558
  7  3.55484e-06
  8  2.85697
  9  5.46017e-06
  10  28.8033
  11  1.3083
  12  0.000330369
  13  9.92729e-06
  14  3.05156e-05
  15  8.81752e-05
  16  11.7212
  17  13.083
  18  3.73127e-07
  19  0.000130168
  20  44.5579
  21  43.4574
  22  1.7127e-06
  23  0.240043
  24  0.113085
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.000e-04  8.818e-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:  1.033e+00  1.131e-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.076e+00  2.400e-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.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.59e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/261641/likelihoodResults_670377601_670636801_4FGL_J2321.9+3204_daily_bin1663.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) = 9293.12012241
delta logL = -0.0012797020554

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9293.11884257
delta logL = 1.32273271447e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1568       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0763       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0330       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=   9293.119     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      247 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    601.95        .36236E-02** at limit **
   2  alpha         2.6311        3.7613        .83305E-01    .76424E-08
   3  Normalizat    1.0763        .75765E-01    .35959E-03   -.37193E-03
   4  Prefactor     1.0330        .36674E-01    .17654E-03   -.78133E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.63111
  Normalizat = 1.07628
  Prefactor  = 1.03297
 **********
 **   18 **HESSE 
 **********

 FCN=   9293.119     FROM HESSE     STATUS=OK            23 CALLS      270 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.6294        .72471E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6311        3.1063        .33322E-02    .52469E-01
   3  Normalizat    1.0763        .22856        .14383E-04   -.90517    
   4  Prefactor     1.0330        .11100        .35307E-04   -.91638    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31557e-10
Minuit parameter uncertainties:
  1  2.52075e-05
  2  195.094
  3  0.228773
  4  0.11102
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261641': 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) = 9293.11884009
delta logL = 2.60942033492e-06

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.000e-04  2.521e-05  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  2.631e+00  1.951e+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:  1.033e+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.076e+00  2.288e-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/261641/cmap_HighResolution_670377601_670636801_4FGL_J2321.9+3204_daily_bin1663.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.59e-05', job_status='DONE', photon_flux_upper_limit='5.76e-08', time_completed='2022-04-03 00:50:53.491496', job_id='261641', GAL2='1.03', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1648972253.49', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='2.61e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='1663' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Apr  3 00:50:53 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 261641: <4FGL_J2321.9+3204_daily_bin1663> in cluster <slac> Done

Job <4FGL_J2321.9+3204_daily_bin1663> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Apr  3 00:35:45 2022
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr  3 00:35:47 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr  3 00:35:47 2022
Terminated at Sun Apr  3 00:50:54 2022
Results reported at Sun Apr  3 00:50:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin1663 350.478 32.0737 670377601 670636801 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 :                                   850.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             363.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            909 sec.

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

