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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin1748
RA = 320.921, Dec = 5.592
tmin = 692409601, tmax = 692668801
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='896894', job_status='RUN', time_executed='2022-12-14 01:17:57.005632', time_epoch_executed='1671009477.01' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/896894

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/896894/ft1_4FGL_J2123.6+0535_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/896894/ft2_4FGL_J2123.6+0535_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/896894/ft1_4FGL_J2123.6+0535_daily_bin1748.fits outfile=/scratch/kocevski/896894/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1748.fits ra=320.921 dec=5.592 rad=12.0 tmin=692409601.0 tmax=692668801.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.55
user 3.35
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/896894/ft2_4FGL_J2123.6+0535_daily_bin1748.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/896894/ft2_4FGL_J2123.6+0535_daily_bin1748.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/896894/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1748.fits evtable="EVENTS" outfile="/scratch/kocevski/896894/ft1_filtered_4FGL_J2123.6+0535_daily_bin1748.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.15

Number of photons that the gtmktime cut: 626

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/896894/ft1_filtered_4FGL_J2123.6+0535_daily_bin1748.fits" evtable="EVENTS" scfile=/scratch/kocevski/896894/ft2_4FGL_J2123.6+0535_daily_bin1748.fits sctable="SC_DATA" outfile=/scratch/kocevski/896894/ltcube_692409601_692668801_4FGL_J2123.6+0535_daily_bin1748.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/896894/ft2_4FGL_J2123.6+0535_daily_bin1748.fits
.....................!
real 12.25
user 11.86
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/896894/ft1_filtered_4FGL_J2123.6+0535_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/896894/ft2_4FGL_J2123.6+0535_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/896894/ltcube_692409601_692668801_4FGL_J2123.6+0535_daily_bin1748.fits outfile=/scratch/kocevski/896894/expmap_692409601_692668801_4FGL_J2123.6+0535_daily_bin1748.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/896894/ltcube_692409601_692668801_4FGL_J2123.6+0535_daily_bin1748.fits
.....................!
real 191.76
user 185.82
sys 5.64

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 174 point sources and 0 extended sources

Setting source of interest to:
4FGL J2123.6+0535 @ 320.921 5.592

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/896894/ft1_filtered_4FGL_J2123.6+0535_daily_bin1748.fits scfile=/scratch/kocevski/896894/ft2_4FGL_J2123.6+0535_daily_bin1748.fits outfile=/scratch/kocevski/896894/cmap_692409601_692668801_4FGL_J2123.6+0535_daily_bin1748.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=320.921 yref=5.592 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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/896894/ft1_filtered_4FGL_J2123.6+0535_daily_bin1748.fits scfile=/scratch/kocevski/896894/ft2_4FGL_J2123.6+0535_daily_bin1748.fits outfile=/scratch/kocevski/896894/cmap_HighResolution_692409601_692668801_4FGL_J2123.6+0535_daily_bin1748.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=320.921 yref=5.592 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/896894/ft1_filtered_4FGL_J2123.6+0535_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/896894/ft2_4FGL_J2123.6+0535_daily_bin1748.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/896894/Model_4FGL_J2123.6+0535_daily_bin1748.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/896894/ft1_filtered_4FGL_J2123.6+0535_daily_bin1748.fits.....................!
real 67.12
user 65.76
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/896894/ft1_filtered_4FGL_J2123.6+0535_daily_bin1748.fits', '/scratch/kocevski/896894/ft2_4FGL_J2123.6+0535_daily_bin1748.fits', expMap='/scratch/kocevski/896894/expmap_692409601_692668801_4FGL_J2123.6+0535_daily_bin1748.fits', expCube='/scratch/kocevski/896894/ltcube_692409601_692668801_4FGL_J2123.6+0535_daily_bin1748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/896894/Model_4FGL_J2123.6+0535_daily_bin1748.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2123.6+0535'

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  5.562e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
314        Index:  2.390e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  1.027e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/896894/ft1_filtered_4FGL_J2123.6+0535_daily_bin1748.fits
Spacecraft file(s): /scratch/kocevski/896894/ft2_4FGL_J2123.6+0535_daily_bin1748.fits
Exposure map: /scratch/kocevski/896894/expmap_692409601_692668801_4FGL_J2123.6+0535_daily_bin1748.fits
Exposure cube: /scratch/kocevski/896894/ltcube_692409601_692668801_4FGL_J2123.6+0535_daily_bin1748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/896894/Model_4FGL_J2123.6+0535_daily_bin1748.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) = 6721.36538718

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.724       1.0000          .0000       .10000E+07
     2 'norm      '    .45303E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    .62728E-08   1.0000          .0000       .10000E+07
     4 'Prefactor '    33.500       1.0000          .0000       .10000E+07
     5 'Prefactor '    .17208E-08   1.0000          .0000       .10000E+07
     6 'Prefactor '    .99920E-09   1.0000          .0000       .10000E+07
     7 'Prefactor '    26.721       1.0000          .0000       .10000E+07
     8 'Prefactor '    .14527E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    3.0525       1.0000          .0000       .10000E+07
    10 'Prefactor '    .28588E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    7.4548       1.0000          .0000       .10000E+07
    12 'Prefactor '    49.082       1.0000          .0000       .10000E+07
    13 'Prefactor '    14.104       1.0000          .0000       .10000E+07
    14 'norm      '    2.9418       1.0000          .0000       .10000E+07
    15 'norm      '    6.6926       1.0000          .0000       .10000E+07
    16 'Prefactor '    .77716E-09   1.0000          .0000       .10000E+07
    17 'Prefactor '    .21372E-07   1.0000          .0000       .10000E+07
    18 'Prefactor '    9.6895       1.0000          .0000       .10000E+07
    19 'Normalizat'    .85873       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .86502       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6721.299     FROM MIGRAD    STATUS=CONVERGED    113 CALLS     1798 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.728        38.954       -.26766E-06    .11092E-01
   2  norm          .49960E-09    21.074        .26769E-06** at limit **
   3  Prefactor      .0000        2.7792       -.73728E-07** at limit **
   4  Prefactor     33.501        1.2262        .66632E-08    .42378E-03
   5  Prefactor     .55511E-10    6.4343        .13244E-06** at limit **
   6  Prefactor     .55511E-10    6.4132       -.95149E-08** at limit **
   7  Prefactor     26.716        6.2471        .53725E-07   -.88731E-02
   8  Prefactor     .55511E-10    24.027        .62134E-06** at limit **
   9  Prefactor     3.0745        7.1282        .17087E-06    .69433E-02
  10  Prefactor      .0000        3.7220        .60428E-06** at limit **
  11  Prefactor     7.4546        3.5026       -.56618E-07    .61765E-03
  12  Prefactor     49.084        5.6824        .35735E-07   -.17546E-01
  13  Prefactor     14.134        10.679       -.12243E-06   -.20091E-01
  14  norm          2.9419        2.0965        .71434E-07   -.79264E-03
  15  norm          6.6838        1.7703        .40881E-07    .12594E-01
  16  Prefactor      .0000        2.7967        .27713E-06** at limit **
  17  Prefactor     .55511E-10    12.526       -.54289E-08** at limit **
  18  Prefactor     9.6896        1.0255        .93470E-09   -.98570E-03
  19  Normalizat    .85843        .26923       -.76484E-05    .89274E-05
  20  Prefactor     .86515        .12191        .33684E-05   -.11718E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.7277
  norm       = 4.996e-10
  Prefactor  = 0
  Prefactor  = 33.5011
  Prefactor  = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 26.716
  Prefactor  = 5.55112e-11
  Prefactor  = 3.07447
  Prefactor  = 0
  Prefactor  = 7.45457
  Prefactor  = 49.0841
  Prefactor  = 14.1339
  norm       = 2.9419
  norm       = 6.68377
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 9.6896
  Normalizat = 0.858429
  Prefactor  = 0.865154
 **********
 **   18 **HESSE 
 **********

 FCN=   6721.299     FROM HESSE     STATUS=OK           333 CALLS     2131 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.728        41.291        .15300E-03   -1.5577    
   2  norm          .49960E-09    20.743        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        2.7888        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     33.501        18.814        .17280E-03   -1.5592    
   5  Prefactor     .55511E-10    6.4326        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-10    6.4130        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.716        42.884        .19349E-03   -1.5605    
   8  Prefactor     .55511E-10    24.040        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.0745        381.83        .58043E-03   -1.5673    
  10  Prefactor      .0000        3.6985        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.4546        4.3694        .36709E-03   -1.5653    
  12  Prefactor     49.084        37.820        .14275E-03   -1.5568    
  13  Prefactor     14.134        51.959        .26644E-03   -1.5633    
  14  norm          2.9419        2.1421        .59191E-03   -1.5674    
  15  norm          6.6838        21.716        .38764E-03   -1.5656    
  16  Prefactor      .0000        2.8010        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .55511E-10    12.490        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.6896        16.838        .32169E-03   -1.5646    
  19  Normalizat    .85843        .24353        .80554E-01   -.97937    
  20  Prefactor     .86515        .10259        .44558E-01   -.97370    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05029e-07
Minuit parameter uncertainties:
  1  41.2916
  2  0.000207874
  3  2.44171e-06
  4  18.8136
  5  3.5266e-05
  6  3.63574e-05
  7  42.885
  8  6.86895e-05
  9  68.5297
  10  1.86247e-05
  11  4.36941
  12  37.8199
  13  51.9603
  14  2.14214
  15  21.7166
  16  7.3121e-06
  17  4.74846e-05
  18  16.8384
  19  0.243841
  20  0.102615
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  5.551e-11  6.869e-05  0.000e+00  1.000e+06 ( 1.000e-13)
314        Index:  2.390e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  1.027e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  8.652e-01  1.026e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  8.584e-01  2.438e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 320.921 5.592
Photon Flux Upper Limit: 8.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/896894/likelihoodResults_692409601_692668801_4FGL_J2123.6+0535_daily_bin1748.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) = 6721.31983327
delta logL = -0.0206113305976

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6721.08735917
delta logL = 0.21186277467

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44986       1.0000          .0000       .10000E+07
     2 'Index     '    4.4108       1.0000          .0000       10.000    
     3 'Normalizat'    .80216       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88060       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6721.087     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      243 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44432        14.535        .83923E-03    .30902E-02
   2  Index         4.4176        3.4129        .14641        .35071E-04
   3  Normalizat    .80205        .43794E-01    .83153E-01   -.51847E-04
   4  Prefactor     .88057        .20165E-01    .44757E-01   -.61634E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.444317
  Index      = 4.41762
  Normalizat = 0.802046
  Prefactor  = 0.880568
 **********
 **   18 **HESSE 
 **********

 FCN=   6721.087     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      274 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44432        53.253        .82640E-05   -1.5695    
   2  Index         4.4176        6.7043        .82118E-02   -.11674    
   3  Normalizat    .80205        .21214        .36818E-03   -.99993    
   4  Prefactor     .88057        .95959E-01    .16158E-03   -.96823    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.77165e-09
Minuit parameter uncertainties:
  1  9.72866
  2  10.4314
  3  0.212358
  4  0.0959775
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/896894': 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): 102
logL (Free Index) = 6721.0873542
delta logL = 0.211867742624

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  4.443e-01  9.729e+00  0.000e+00  1.000e+06 ( 1.000e-13)
314        Index:  4.418e+00  1.043e+01  0.000e+00  1.000e+01 (-1.000e+00)
315        Scale:  1.027e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  8.806e-01  9.598e-02  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  8.020e-01  2.124e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 320.921 5.592

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/896894/cmap_HighResolution_692409601_692668801_4FGL_J2123.6+0535_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.72e-03', job_status='DONE', photon_flux_upper_limit='8.70e-08', time_completed='2022-12-14 01:28:00.917885', job_id='896894', GAL2='0.88', fit_tolerance='1e-08', EG2='0.80', EG='0.86', time_epoch_completed='1671010080.92', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='2.12e-01', ts2='0.46', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1748' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 01:28:00 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 896894: <4FGL_J2123.6+0535_daily_bin1748> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin1748> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Dec 14 01:15:22 2022
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 01:15:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 01:15:23 2022
Terminated at Wed Dec 14 01:28:01 2022
Results reported at Wed Dec 14 01:28:01 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin1748 320.921 5.592 692409601 692668801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2123.6+0535 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   606.12 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             303.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            759 sec.

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

