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


Performing analysis on: 4FGL_J2321.9+3204_daily_bin1762
RA = 350.478, Dec = 32.0737
tmin = 696038401, tmax = 696297601
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='123347', job_status='RUN', time_executed='2023-01-25 01:46:29.272306', time_epoch_executed='1674639989.27' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='1762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/123347

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/123347/ft1_4FGL_J2321.9+3204_daily_bin1762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/123347/ft2_4FGL_J2321.9+3204_daily_bin1762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/123347/ft1_4FGL_J2321.9+3204_daily_bin1762.fits outfile=/scratch/kocevski/123347/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin1762.fits ra=350.478 dec=32.0737 rad=12.0 tmin=696038401.0 tmax=696297601.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.74
user 3.44
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/123347/ft2_4FGL_J2321.9+3204_daily_bin1762.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/123347/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin1762.fits evtable="EVENTS" outfile="/scratch/kocevski/123347/ft1_filtered_4FGL_J2321.9+3204_daily_bin1762.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 826

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/123347/ft1_filtered_4FGL_J2321.9+3204_daily_bin1762.fits" evtable="EVENTS" scfile=/scratch/kocevski/123347/ft2_4FGL_J2321.9+3204_daily_bin1762.fits sctable="SC_DATA" outfile=/scratch/kocevski/123347/ltcube_696038401_696297601_4FGL_J2321.9+3204_daily_bin1762.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/123347/ft2_4FGL_J2321.9+3204_daily_bin1762.fits
.....................!
real 15.07
user 14.54
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/123347/ft1_filtered_4FGL_J2321.9+3204_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/123347/ft2_4FGL_J2321.9+3204_daily_bin1762.fits sctable="SC_DATA" expcube=/scratch/kocevski/123347/ltcube_696038401_696297601_4FGL_J2321.9+3204_daily_bin1762.fits outfile=/scratch/kocevski/123347/expmap_696038401_696297601_4FGL_J2321.9+3204_daily_bin1762.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/123347/ltcube_696038401_696297601_4FGL_J2321.9+3204_daily_bin1762.fits
.....................!
real 194.41
user 187.78
sys 5.99

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/123347/ft1_filtered_4FGL_J2321.9+3204_daily_bin1762.fits scfile=/scratch/kocevski/123347/ft2_4FGL_J2321.9+3204_daily_bin1762.fits outfile=/scratch/kocevski/123347/cmap_696038401_696297601_4FGL_J2321.9+3204_daily_bin1762.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.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/123347/ft1_filtered_4FGL_J2321.9+3204_daily_bin1762.fits scfile=/scratch/kocevski/123347/ft2_4FGL_J2321.9+3204_daily_bin1762.fits outfile=/scratch/kocevski/123347/cmap_HighResolution_696038401_696297601_4FGL_J2321.9+3204_daily_bin1762.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.415       1.0000          .0000       .10000E+07
     2 'Prefactor '    .16709E-03   1.0000          .0000       .10000E+07
     3 'norm      '    2.4268       1.0000          .0000       .10000E+07
     4 'norm      '    4.4296       1.0000          .0000       .10000E+07
     5 'Prefactor '    24.433       1.0000          .0000       .10000E+07
     6 'Prefactor '    .14220E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    .73608E-01   1.0000          .0000       .10000E+07
     8 'norm      '    .63957       1.0000          .0000       .10000E+07
     9 'Prefactor '    .36757E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    6.3330       1.0000          .0000       .10000E+07
    11 'Prefactor '    .16739E-02   1.0000          .0000       .10000E+07
    12 'norm      '    15.284       1.0000          .0000       .10000E+07
    13 'norm      '    1.4377       1.0000          .0000       .10000E+07
    14 'Prefactor '    37.171       1.0000          .0000       .10000E+07
    15 'norm      '    2.1824       1.0000          .0000       .10000E+07
    16 'Prefactor '    .14523E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .34033E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    2.0634       1.0000          .0000       .10000E+07
    19 'Normalizat'    .98576       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .94137       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=   8644.516     FROM MIGRAD    STATUS=CONVERGED    111 CALLS     1496 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.512        4.9000        .62067E-07    .97020E-01
   2  Prefactor      .0000        3.5403       -.19242E-06** at limit **
   3  norm          2.4257        1.0320       -.31264E-07    .10203E-02
   4  norm          4.4309        3.4060       -.13683E-06    .62439E-03
   5  Prefactor     24.432        1.4780        .17435E-07    .55681E-02
   6  Prefactor     .36082E-08    11.161        .18915E-06** at limit **
   7  Prefactor     .12210E-05    7.5681       -.45769E-06** at limit **
   8  norm          .63876        .97106        .32584E-07    .27104E-03
   9  Prefactor     .37415E-07    70.837        .18086E-06** at limit **
  10  Prefactor     6.2818        1.2294       -.67807E-08   -.69641E-02
  11  Prefactor     .22748E-06    18.347       -.47969E-06** at limit **
  12  norm          15.263        6.1550        .54349E-07    .17791E-02
  13  norm          1.4163        9.7888       -.24448E-06   -.14555E-03
  14  Prefactor     37.266        4.5305        .49411E-07   -.79434E-02
  15  norm          2.1790        2.3817       -.11911E-06    .10943E-02
  16  Prefactor     .19795E-06    19.223       -.10653E-05** at limit **
  17  Prefactor      .0000        18.451       -.47047E-06** at limit **
  18  Prefactor     2.0333        5.1923        .49917E-06   -.42203E-02
  19  Normalizat    .98579        .21338       -.23409E-05    .72132E-05
  20  Prefactor     .94154        .10683        .18443E-05    .23259E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 10.5121
  Prefactor  = 0
  norm       = 2.42568
  norm       = 4.43093
  Prefactor  = 24.4315
  Prefactor  = 3.60822e-09
  Prefactor  = 1.22097e-06
  norm       = 0.638759
  Prefactor  = 3.74145e-08
  Prefactor  = 6.28182
  Prefactor  = 2.27485e-07
  norm       = 15.2633
  norm       = 1.41626
  Prefactor  = 37.2662
  norm       = 2.17904
  Prefactor  = 1.97953e-07
  Prefactor  = 0
  Prefactor  = 2.03329
  Normalizat = 0.985788
  Prefactor  = 0.941539
 **********
 **   18 **HESSE 
 **********

 FCN=   8644.516     FROM HESSE     STATUS=OK           343 CALLS     1839 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.512        13.681        .31023E-03   -1.5643    
   2  Prefactor      .0000        3.5477        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.4257        1.0331        .65668E-04   -1.5677    
   4  norm          4.4309        3.4089        .47823E-03   -1.5666    
   5  Prefactor     24.432        18.014        .20235E-03   -1.5609    
   6  Prefactor     .36082E-08    11.049        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .12210E-05    11.711        .14701E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .63876        .98880        .65756E-03   -1.5692    
   9  Prefactor     .37415E-07    12.003        .11296E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.2818        10.698        .39862E-03   -1.5658    
  11  Prefactor     .22748E-06    20.121        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          15.263        6.8160        .25593E-03   -1.5630    
  13  norm          1.4163        9.8178        .89972E-03   -1.5684    
  14  Prefactor     37.266        20.959        .16404E-03   -1.5586    
  15  norm          2.1790        2.4292        .69655E-03   -1.5678    
  16  Prefactor     .19795E-06    21.383        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        18.528        .16245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.0333        5.3401        .71904E-03   -1.5679    
  19  Normalizat    .98579        .19054        .76322E-01   -.93508    
  20  Prefactor     .94154        .92553E-01    .45530E-01   -.94704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39652e-06
Minuit parameter uncertainties:
  1  13.6808
  2  8.18949e-06
  3  1.03311
  4  3.40893
  5  18.0144
  6  0.000399881
  7  0.00756264
  8  0.9888
  9  0.00133994
  10  10.6982
  11  0.00427908
  12  6.81597
  13  7.45777
  14  20.9588
  15  2.42919
  16  0.00411503
  17  2.69399e-05
  18  5.34011
  19  0.190676
  20  0.0925686
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.526e+01  6.816e+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

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  9.415e-01  9.257e-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:  9.858e-01  1.907e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.19
Ra Dec: 350.478 32.074
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 9.29e-08 +/- 4.15e-08
Energy Flux (Fixed Index): 4.18e-05 +/- 1.87e-05

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) = 8644.44548689
delta logL = 0.0709829075222

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8644.44230387
delta logL = 0.0741659327505

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.671       1.0000          .0000       .10000E+07
     2 'alpha     '    1.9836       1.0000          .0000       5.0000    
     3 'Normalizat'    .99711       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93904       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.

 FCN=   8644.442     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      207 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.671        140.32        .25274E-03   -.24440E-02
   2  alpha         1.9836        3.2368        .33075        .14950E-04
   3  Normalizat    .99712        .30207        .75971E-01    .25225E-04
   4  Prefactor     .93904        .94919E-01    .45501E-01    .13025E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 15.6712
  alpha      = 1.98357
  Normalizat = 0.99712
  Prefactor  = 0.939041
 **********
 **   18 **HESSE 
 **********

 FCN=   8644.442     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.671        6.5994        .10110E-04   -1.5629    
   2  alpha         1.9836        .40048        .12473E-01   -.20807    
   3  Normalizat    .99712        .21362        .33618E-03   -.93127    
   4  Prefactor     .93904        .10533        .17038E-03   -.94790    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22359e-10
Minuit parameter uncertainties:
  1  6.59936
  2  0.402292
  3  0.213803
  4  0.105355
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/123347': 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) = 8644.44230386
delta logL = 0.0741659347659

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.567e+01  6.599e+00  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  1.984e+00  4.023e-01  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:  9.390e-01  1.054e-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:  9.971e-01  2.138e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.44
Ra Dec: 350.478 32.074
Photon Index (Free Index): 1.98 +/- 0.40
Photon Flux (Free Index): 8.07e-08 +/- 4.58e-08
Energy Flux (Free Index): 4.53e-05 +/- 2.19e-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/123347/cmap_HighResolution_696038401_696297601_4FGL_J2321.9+3204_daily_bin1762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.29e-08', energy_flux2='4.53e-05', photon_flux_error='4.15e-08', dlogl='7.42e-02', energy_flux='4.18e-05', photon_flux2='8.07e-08', job_status='DONE', time_completed='2023-01-25 01:56:43.762629', photon_index_error2='0.40', photon_index2='1.98', ts='19.19', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='2.19e-05', EG='0.99', time_epoch_completed='1674640603.76', return_code='0', job_id='123347', GAL2='0.94', EG2='1.00', return_code2='0', energy_flux_error='1.87e-05', photon_flux_error2='4.58e-08', ts2='19.44', photon_index='2.14' WHERE bin_id='1762' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan 25 01:56:43 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 123347: <4FGL_J2321.9+3204_daily_bin1762> in cluster <slac> Done

Job <4FGL_J2321.9+3204_daily_bin1762> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Jan 25 01:45:19 2023
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan 25 01:46:08 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan 25 01:46:08 2023
Terminated at Wed Jan 25 01:56:44 2023
Results reported at Wed Jan 25 01:56:44 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin1762 350.478 32.0737 696038401 696297601 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 :                                   616.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             368.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   636 sec.
    Turnaround time :                            685 sec.

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

