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


Performing analysis on: 4FGL_J2321.9+3204_daily_bin1699
RA = 350.478, Dec = 32.0737
tmin = 679708801, tmax = 679968001
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='1467', job_status='RUN', time_executed='2022-07-20 00:38:28.622293', time_epoch_executed='1658302708.62' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='1699'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1467

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1467/ft1_4FGL_J2321.9+3204_daily_bin1699.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1467/ft2_4FGL_J2321.9+3204_daily_bin1699.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1467/ft1_4FGL_J2321.9+3204_daily_bin1699.fits outfile=/scratch/kocevski/1467/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin1699.fits ra=350.478 dec=32.0737 rad=12.0 tmin=679708801.0 tmax=679968001.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.80
user 3.57
sys 0.21

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

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

Number of photons that the gtmktime cut: 934

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/1467/ft1_filtered_4FGL_J2321.9+3204_daily_bin1699.fits" evtable="EVENTS" scfile=/scratch/kocevski/1467/ft2_4FGL_J2321.9+3204_daily_bin1699.fits sctable="SC_DATA" outfile=/scratch/kocevski/1467/ltcube_679708801_679968001_4FGL_J2321.9+3204_daily_bin1699.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/1467/ft2_4FGL_J2321.9+3204_daily_bin1699.fits
.....................!
real 12.15
user 11.81
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1467/ft1_filtered_4FGL_J2321.9+3204_daily_bin1699.fits evtable="EVENTS" scfile=/scratch/kocevski/1467/ft2_4FGL_J2321.9+3204_daily_bin1699.fits sctable="SC_DATA" expcube=/scratch/kocevski/1467/ltcube_679708801_679968001_4FGL_J2321.9+3204_daily_bin1699.fits outfile=/scratch/kocevski/1467/expmap_679708801_679968001_4FGL_J2321.9+3204_daily_bin1699.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/1467/ltcube_679708801_679968001_4FGL_J2321.9+3204_daily_bin1699.fits
.....................!
real 192.91
user 187.73
sys 4.75

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/1467/ft1_filtered_4FGL_J2321.9+3204_daily_bin1699.fits scfile=/scratch/kocevski/1467/ft2_4FGL_J2321.9+3204_daily_bin1699.fits outfile=/scratch/kocevski/1467/cmap_HighResolution_679708801_679968001_4FGL_J2321.9+3204_daily_bin1699.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.56
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.733       1.0000         .10000E-03   10000.    
     3 'norm      '    .62640       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .17182       1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.800       1.0000         .10000E-03   10000.    
     6 'norm      '    5.8125       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.9960       1.0000         .10000E-03   10000.    
    10 'Prefactor '    32.385       1.0000         .10000E-03   10000.    
    11 'norm      '    2.4359       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .57459E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    14.516       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.9982       1.0000         .10000E-03   10000.    
    18 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.727       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.418       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0048       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0425       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=   10207.90     FROM MIGRAD    STATUS=CONVERGED    143 CALLS     2027 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.3738       -.82947E-06** at limit **
   2  Prefactor     16.733        1.4782        .17444E-06    .18014E-02
   3  norm          .62678        1.1358       -.87954E-07   -.16955E-04
   4  Prefactor     .10104E-03    1801.6        .56920E-04** at limit **
   5  Prefactor     26.802        11.567       -.13316E-05    .68754E-02
   6  norm          5.8119        4.0844        .88826E-06    .72461E-04
   7  Prefactor     .10000E-03    6.2655        .48196E-06** at limit **
   8  Prefactor     .10000E-03    3.7757       -.51450E-06** at limit **
   9  Prefactor     1.9960        4.8036       -.10769E-05   -.14465E-04
  10  Prefactor     32.382        2.7276        .28616E-06   -.40031E-02
  11  norm          2.4359        1.2918       -.15193E-06    .16052E-04
  12  Prefactor     .10067E-03    495.55        .18046E-04** at limit **
  13  Prefactor     .10000E-03    3.7754        .63875E-06** at limit **
  14  Prefactor     .10000E-03    39.803        .14367E-05** at limit **
  15  norm          .10000E-03    4.0266        .40374E-06** at limit **
  16  norm          14.517        10.317        .13411E-05    .24796E-02
  17  Prefactor     4.0031        12.741        .24460E-05    .25129E-02
  18  norm          .10000E-03    2.2956        .13950E-06** at limit **
  19  Prefactor     .10000E-03    4.9084       -.51515E-06** at limit **
  20  Prefactor     22.726        1.1620        .27224E-07    .44071E-03
  21  Prefactor     .10000E-03    22.055        .20672E-05** at limit **
  22  Prefactor     11.418        7.3136       -.19732E-06    .21290E-03
  23  Normalizat    1.0048        .22053       -.62484E-05    .22700E-04
  24  Prefactor     1.0425        .10657        .56086E-05    .93906E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 16.7331
  norm       = 0.626776
  Prefactor  = 0.00010104
  Prefactor  = 26.8017
  norm       = 5.81185
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.99604
  Prefactor  = 32.3817
  norm       = 2.43589
  Prefactor  = 0.000100671
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 14.5172
  Prefactor  = 4.00314
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.7256
  Prefactor  = 0.0001
  Prefactor  = 11.4177
  Normalizat = 1.00478
  Prefactor  = 1.04245
 **********
 **   18 **HESSE 
 **********

 FCN=   10207.90     FROM HESSE     STATUS=OK           469 CALLS     2496 TOTAL
                     EDM=   .42E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.3525        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.733        9.0004        .24478E-02   -1.4890    
   3  norm          .62678        1.1797        .11776E-01   -1.5550    
   4  Prefactor     .10104E-03    49.430        .20297       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     26.802        18.751        .19346E-02   -1.4672    
   6  norm          5.8119        4.0856        .41646E-02   -1.5226    
   7  Prefactor     .10000E-03    6.2592        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.7176        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.9960        4.8434        .73299E-02   -1.5425    
  10  Prefactor     32.382        21.570        .17603E-02   -1.4569    
  11  norm          2.4359        1.3013        .65542E-02   -1.5396    
  12  Prefactor     .10067E-03    16.946        .12230       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.7625        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    39.481        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.9253        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          14.517        10.652        .26281E-02   -1.4946    
  17  Prefactor     4.0031        16.041        .50424E-02   -1.5308    
  18  norm          .10000E-03    1.1812        .39639E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.9056        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     22.726        34.525        .21005E-02   -1.4754    
  21  Prefactor     .10000E-03    22.043        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.418        7.3333        .29640E-02   -1.5032    
  23  Normalizat    1.0048        .20200        .82959E-01   -.92871    
  24  Prefactor     1.0425        .92999E-01    .40372E-01   -.91328    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.23273e-07
Minuit parameter uncertainties:
  1  1.97283e-06
  2  9.00118
  3  1.17974
  4  0.0143535
  5  18.7547
  6  4.08581
  7  2.90736e-07
  8  1.62359e-06
  9  4.84438
  10  21.5747
  11  1.30129
  12  0.00674741
  13  4.23545e-07
  14  0.000116131
  15  2.68172e-07
  16  10.6531
  17  16.0343
  18  1.27097e-07
  19  1.10365e-06
  20  34.5554
  21  1.06493e-05
  22  7.33388
  23  0.202156
  24  0.0930132
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.000e-04  2.682e-07  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.042e+00  9.301e-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.005e+00  2.022e-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.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.49e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/1467/likelihoodResults_679708801_679968001_4FGL_J2321.9+3204_daily_bin1699.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) = 10207.9032538
delta logL = -0.00118643771202

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10207.9020672
delta logL = 1.11096596811e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1534       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0048       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0425       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=   10207.90     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      248 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    444.73        .36285E-02** at limit **
   2  alpha         2.4411        2.6543        .16665       -.27833E-07
   3  Normalizat    1.0048        .58189E-01    .36724E-03   -.34276E-03
   4  Prefactor     1.0424        .28278E-01    .17434E-03   -.72237E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.44109
  Normalizat = 1.00478
  Prefactor  = 1.04245
 **********
 **   18 **HESSE 
 **********

 FCN=   10207.90     FROM HESSE     STATUS=OK            23 CALLS      271 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.4223        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4411        3.6535        .66660E-02   -.23568E-01
   3  Normalizat    1.0048        .21542        .14690E-04   -.92871    
   4  Prefactor     1.0424        .10476        .34868E-04   -.91328    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8551e-10
Minuit parameter uncertainties:
  1  2.16412e-05
  2  208.836
  3  0.215611
  4  0.104776
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1467': 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) = 10207.9020662
delta logL = 1.11020381155e-06

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.000e-04  2.164e-05  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  2.441e+00  2.088e+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.042e+00  1.048e-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.005e+00  2.156e-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/1467/cmap_HighResolution_679708801_679968001_4FGL_J2321.9+3204_daily_bin1699.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.49e-05', job_status='DONE', photon_flux_upper_limit='5.54e-08', time_completed='2022-07-20 00:52:24.244361', job_id='1467', GAL2='1.04', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1658303544.24', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.11e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='1699' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jul 20 00:52:24 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 1467: <4FGL_J2321.9+3204_daily_bin1699> in cluster <slac> Done

Job <4FGL_J2321.9+3204_daily_bin1699> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Jul 20 00:35:47 2022
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jul 20 00:35:48 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jul 20 00:35:48 2022
Terminated at Wed Jul 20 00:52:25 2022
Results reported at Wed Jul 20 00:52:25 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin1699 350.478 32.0737 679708801 679968001 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 :                                   837.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             306.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   996 sec.
    Turnaround time :                            998 sec.

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

