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


Performing analysis on: 4FGL_J2321.9+3204_weekly_bin740
RA = 350.478, Dec = 32.0737
tmin = 686534401, tmax = 687139201
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='835773', job_status='RUN', time_executed='2022-10-11 00:58:43.002227', time_epoch_executed='1665475123.0' WHERE source_name='4FGL J2321.9+3204' and cadence='weekly' and bin_id='740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/835773

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/835773/ft1_4FGL_J2321.9+3204_weekly_bin740.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/835773/ft2_4FGL_J2321.9+3204_weekly_bin740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/835773/ft1_4FGL_J2321.9+3204_weekly_bin740.fits outfile=/scratch/kocevski/835773/ft1_filteredMKT_4FGL_J2321.9+3204_weekly_bin740.fits ra=350.478 dec=32.0737 rad=12.0 tmin=686534401.0 tmax=687139201.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 7.20
user 6.87
sys 0.29

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

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

Number of photons that the gtmktime cut: 698

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/835773/ft1_filtered_4FGL_J2321.9+3204_weekly_bin740.fits evtable="EVENTS" scfile=/scratch/kocevski/835773/ft2_4FGL_J2321.9+3204_weekly_bin740.fits sctable="SC_DATA" expcube=/scratch/kocevski/835773/ltcube_686534401_687139201_4FGL_J2321.9+3204_weekly_bin740.fits outfile=/scratch/kocevski/835773/expmap_686534401_687139201_4FGL_J2321.9+3204_weekly_bin740.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/835773/ltcube_686534401_687139201_4FGL_J2321.9+3204_weekly_bin740.fits
.....................!
real 191.59
user 185.41
sys 5.70

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/835773/ft1_filtered_4FGL_J2321.9+3204_weekly_bin740.fits scfile=/scratch/kocevski/835773/ft2_4FGL_J2321.9+3204_weekly_bin740.fits outfile=/scratch/kocevski/835773/cmap_686534401_687139201_4FGL_J2321.9+3204_weekly_bin740.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.58
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/835773/ft1_filtered_4FGL_J2321.9+3204_weekly_bin740.fits scfile=/scratch/kocevski/835773/ft2_4FGL_J2321.9+3204_weekly_bin740.fits outfile=/scratch/kocevski/835773/cmap_HighResolution_686534401_687139201_4FGL_J2321.9+3204_weekly_bin740.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.58
user 0.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .34497E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .82281E-03   1.0000          .0000       .10000E+07
     3 'norm      '    .90897       1.0000          .0000       .10000E+07
     4 'norm      '    .24446E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .43521E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    4.3443       1.0000          .0000       .10000E+07
     7 'Prefactor '    17.227       1.0000          .0000       .10000E+07
     8 'norm      '    3.4261       1.0000          .0000       .10000E+07
     9 'Prefactor '    66.602       1.0000          .0000       .10000E+07
    10 'Prefactor '    .24623E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    45.883       1.0000          .0000       .10000E+07
    12 'norm      '    .76739E-06   1.0000          .0000       .10000E+07
    13 'norm      '    .44835E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .11150       1.0000          .0000       .10000E+07
    15 'norm      '    .70255E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .21310E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .23454E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    .24092E-07   1.0000          .0000       .10000E+07
    19 'Normalizat'    .87258       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0139       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=   7790.847     FROM MIGRAD    STATUS=CONVERGED    155 CALLS     1556 TOTAL
                     EDM=   .85E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        18.235       -.10099E-05** at limit **
   2  Prefactor     .55511E-10    9.2884       -.47988E-06** at limit **
   3  norm          .91241        1.0214        .34375E-07    .95643E-04
   4  norm           .0000        1.5702       -.37286E-06** at limit **
   5  Prefactor      .0000        5.4493       -.65385E-06** at limit **
   6  Prefactor     4.3590        4.7909        .37838E-06   -.57414E-03
   7  Prefactor     17.376        1.5637       -.58655E-08    .42288E-01
   8  norm          3.4303        1.7922        .85787E-08   -.30889E-03
   9  Prefactor     68.244        38.275       -.15707E-06    .93214E-03
  10  Prefactor     .55511E-09    12.097       -.38373E-07** at limit **
  11  Prefactor     47.834        46.782       -.42754E-07   -.12555E-02
  12  norm          .33307E-09    4.6775        .31025E-06** at limit **
  13  norm           .0000        8.3659       -.46073E-06** at limit **
  14  Prefactor     .25813E-06    1.0478        .11267E-06** at limit **
  15  norm           .0000        2.2621        .22477E-06** at limit **
  16  Prefactor     .55511E-10    26.664        .12829E-06** at limit **
  17  Prefactor      .0000        31.490        .20111E-06** at limit **
  18  Prefactor      .0000        4.5442        .38294E-06** at limit **
  19  Normalizat    .86945        .25320        .32575E-05    .79129E-05
  20  Prefactor     1.0139        .11263       -.35975E-05    .23326E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 5.55112e-11
  norm       = 0.912414
  norm       = 0
  Prefactor  = 0
  Prefactor  = 4.35901
  Prefactor  = 17.3759
  norm       = 3.43032
  Prefactor  = 68.2444
  Prefactor  = 5.55112e-10
  Prefactor  = 47.8344
  norm       = 3.33067e-10
  norm       = 0
  Prefactor  = 2.58127e-07
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 0
  Normalizat = 0.869449
  Prefactor  = 1.01393
 **********
 **   18 **HESSE 
 **********

 FCN=   7790.847     FROM HESSE     STATUS=OK           327 CALLS     1883 TOTAL
                     EDM=   .91E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        18.048        .16222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .55511E-10    9.2854        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .91241        1.0270        .45142E-03   -1.5689    
   4  norm           .0000        1.5641        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        5.4507        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.3590        4.7858        .48303E-03   -1.5666    
   7  Prefactor     17.376        17.057        .24103E-03   -1.5625    
   8  norm          3.4303        1.8003        .54624E-03   -1.5671    
   9  Prefactor     68.244        38.252        .12254E-03   -1.5543    
  10  Prefactor     .55511E-09    12.118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     47.834        46.830        .14764E-03   -1.5570    
  12  norm          .33307E-09    4.6955        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        8.3588        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .25813E-06    46.889        .13630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        2.2370        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55511E-10    26.673        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        31.426        .16819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        4.5392        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .86945        .22315        .88825E-01   -.97542    
  20  Prefactor     1.0139        .98295E-01    .42806E-01   -.92266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.05341e-08
Minuit parameter uncertainties:
  1  2.97308e-05
  2  4.5076e-05
  3  1.027
  4  3.27274e-06
  5  1.33682e-05
  6  4.78578
  7  17.0569
  8  1.80028
  9  38.2524
  10  0.000167811
  11  46.8304
  12  7.89087e-05
  13  1.99949e-05
  14  0.00695771
  15  3.09545e-06
  16  8.16532e-05
  17  1.53294e-05
  18  7.51685e-06
  19  0.223385
  20  0.0983128
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.014e+00  9.831e-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:  8.694e-01  2.234e-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: 6.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.14e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/835773/likelihoodResults_686534401_687139201_4FGL_J2321.9+3204_weekly_bin740.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) = 7790.84702898
delta logL = -3.93694472223e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7790.8470005
delta logL = -1.08960639409e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .21929E-04   1.0000          .0000       .10000E+07
     2 'alpha     '    1.4223       1.0000          .0000       5.0000    
     3 'Normalizat'    .86855       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0143       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7790.847     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      257 TOTAL
                     EDM=   .86E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .32032        .29244E-02** at limit **
   2  alpha         3.9945        .91652        .68103E-04     .0000    
   3  Normalizat    .86945        1.2058       -.35147E-05    .23147E-04
   4  Prefactor     1.0139        1.2519        .23681E-05    .79374E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 3.99455
  Normalizat = 0.869449
  Prefactor  = 1.01393
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7790.847     FROM HESSE     STATUS=FAILED         9 CALLS      266 TOTAL
                     EDM=   .86E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .32032        .29244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8260        1.0031        .68103E-04    .64078    
   3  Normalizat    .86945        1.2058       -.35147E-05   -.97542    
   4  Prefactor     1.0139        1.2519        .23681E-05   -.92266    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.63916e-12
Minuit parameter uncertainties:
  1  4.78976e-06
  2  0.951912
  3  1.24653
  4  1.2909
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/835773': 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): 101
logL (Free Index) = 7790.84698961
delta logL = 3.36513039656e-11

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  0.000e+00  4.790e-06  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  3.995e+00  9.519e-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:  1.014e+00  1.291e+00  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:  8.694e-01  1.247e+00  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/835773/cmap_HighResolution_686534401_687139201_4FGL_J2321.9+3204_weekly_bin740.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.14e-05', job_status='DONE', photon_flux_upper_limit='6.98e-08', time_completed='2022-10-11 01:09:43.074802', job_id='835773', GAL2='1.01', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1665475783.07', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='3.37e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='740' AND source_name='4FGL J2321.9+3204' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 11 01:09:43 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 835773: <4FGL_J2321.9+3204_weekly_bin740> in cluster <slac> Done

Job <4FGL_J2321.9+3204_weekly_bin740> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Oct 11 00:55:28 2022
Job was executed on host(s) <bullet0195>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 11 00:55:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 11 00:55:29 2022
Terminated at Tue Oct 11 01:09:43 2022
Results reported at Tue Oct 11 01:09:43 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_weekly_bin740 350.478 32.0737 686534401 687139201 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 :                                   661.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            855 sec.

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

