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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin1737
RA = 320.921, Dec = 5.592
tmin = 689558401, tmax = 689817601
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='163068', job_status='RUN', time_executed='2022-11-11 00:58:36.611596', time_epoch_executed='1668157116.61' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='1737'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/163068

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/163068/ft1_4FGL_J2123.6+0535_daily_bin1737.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/163068/ft2_4FGL_J2123.6+0535_daily_bin1737.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/163068/ft1_4FGL_J2123.6+0535_daily_bin1737.fits outfile=/scratch/kocevski/163068/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1737.fits ra=320.921 dec=5.592 rad=12.0 tmin=689558401.0 tmax=689817601.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.69
user 3.44
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/163068/ft2_4FGL_J2123.6+0535_daily_bin1737.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/163068/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1737.fits evtable="EVENTS" outfile="/scratch/kocevski/163068/ft1_filtered_4FGL_J2123.6+0535_daily_bin1737.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.50
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 790

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/163068/ft1_filtered_4FGL_J2123.6+0535_daily_bin1737.fits" evtable="EVENTS" scfile=/scratch/kocevski/163068/ft2_4FGL_J2123.6+0535_daily_bin1737.fits sctable="SC_DATA" outfile=/scratch/kocevski/163068/ltcube_689558401_689817601_4FGL_J2123.6+0535_daily_bin1737.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/163068/ft2_4FGL_J2123.6+0535_daily_bin1737.fits
.....................!
real 13.61
user 13.12
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/163068/ft1_filtered_4FGL_J2123.6+0535_daily_bin1737.fits evtable="EVENTS" scfile=/scratch/kocevski/163068/ft2_4FGL_J2123.6+0535_daily_bin1737.fits sctable="SC_DATA" expcube=/scratch/kocevski/163068/ltcube_689558401_689817601_4FGL_J2123.6+0535_daily_bin1737.fits outfile=/scratch/kocevski/163068/expmap_689558401_689817601_4FGL_J2123.6+0535_daily_bin1737.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/163068/ltcube_689558401_689817601_4FGL_J2123.6+0535_daily_bin1737.fits
.....................!
real 191.09
user 185.28
sys 5.18

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/163068/ft1_filtered_4FGL_J2123.6+0535_daily_bin1737.fits scfile=/scratch/kocevski/163068/ft2_4FGL_J2123.6+0535_daily_bin1737.fits outfile=/scratch/kocevski/163068/cmap_689558401_689817601_4FGL_J2123.6+0535_daily_bin1737.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.61
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/163068/ft1_filtered_4FGL_J2123.6+0535_daily_bin1737.fits scfile=/scratch/kocevski/163068/ft2_4FGL_J2123.6+0535_daily_bin1737.fits outfile=/scratch/kocevski/163068/cmap_HighResolution_689558401_689817601_4FGL_J2123.6+0535_daily_bin1737.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.56
user 0.37
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/163068/ft1_filtered_4FGL_J2123.6+0535_daily_bin1737.fits', '/scratch/kocevski/163068/ft2_4FGL_J2123.6+0535_daily_bin1737.fits', expMap='/scratch/kocevski/163068/expmap_689558401_689817601_4FGL_J2123.6+0535_daily_bin1737.fits', expCube='/scratch/kocevski/163068/ltcube_689558401_689817601_4FGL_J2123.6+0535_daily_bin1737.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/163068/Model_4FGL_J2123.6+0535_daily_bin1737.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/163068/ft1_filtered_4FGL_J2123.6+0535_daily_bin1737.fits
Spacecraft file(s): /scratch/kocevski/163068/ft2_4FGL_J2123.6+0535_daily_bin1737.fits
Exposure map: /scratch/kocevski/163068/expmap_689558401_689817601_4FGL_J2123.6+0535_daily_bin1737.fits
Exposure cube: /scratch/kocevski/163068/ltcube_689558401_689817601_4FGL_J2123.6+0535_daily_bin1737.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/163068/Model_4FGL_J2123.6+0535_daily_bin1737.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) = 8704.78259609

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30973E-03   1.0000          .0000       .10000E+07
     2 'norm      '    3.8388       1.0000          .0000       .10000E+07
     3 'Prefactor '    .76756E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    24.824       1.0000          .0000       .10000E+07
     5 'Prefactor '    38.639       1.0000          .0000       .10000E+07
     6 'Prefactor '    .24351E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .17259       1.0000          .0000       .10000E+07
     8 'Prefactor '    .15897E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    22.113       1.0000          .0000       .10000E+07
    10 'Prefactor '    .22748E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .26892E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .64703E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    112.59       1.0000          .0000       .10000E+07
    14 'norm      '    .45519E-05   1.0000          .0000       .10000E+07
    15 'norm      '    .17180       1.0000          .0000       .10000E+07
    16 'Prefactor '    9.7661       1.0000          .0000       .10000E+07
    17 'Prefactor '    .74014E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    21.915       1.0000          .0000       .10000E+07
    19 'Normalizat'    .65737       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0326       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=   8704.775     FROM MIGRAD    STATUS=CONVERGED    156 CALLS     1641 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16309E-06    10.596       -.70080E-05** at limit **
   2  norm          3.8129        7.5646       -.54472E-06   -.22717E-02
   3  Prefactor     .55511E-10    8.4525        .59300E-05** at limit **
   4  Prefactor     24.822        2.6015       -.31541E-06   -.89340E-02
   5  Prefactor     38.627        2.0519        .46025E-06   -.11161E-01
   6  Prefactor     .87874E-07    9.2061       -.45865E-05** at limit **
   7  Prefactor     .22760E-08    40.932        .16685E-05** at limit **
   8  Prefactor     .51342E-06    11.531        .11426E-04** at limit **
   9  Prefactor     22.269        19.572       -.33938E-05    .13598    
  10  Prefactor     .15093E-06    3.3368        .32796E-05** at limit **
  11  Prefactor     .21649E-08    11.525        .22845E-05** at limit **
  12  Prefactor     .11935E-06    5.2414        .56433E-06** at limit **
  13  Prefactor     113.41        61.163        .56120E-05   -.65531E-01
  14  norm          .11102E-09    1.7858        .14249E-06** at limit **
  15  norm          .84609E-04    246.05        .29315E-04** at limit **
  16  Prefactor     9.7263        7.5065       -.61871E-06    .18295E-02
  17  Prefactor     .19540E-07    8.4809       -.34384E-05** at limit **
  18  Prefactor     21.886        6.2762       -.24905E-05    .57722E-01
  19  Normalizat    .65716        .24874       -.23050E-04   -.83692E-04
  20  Prefactor     1.0327        .11191        .74210E-05   -.57403E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.63092e-07
  norm       = 3.8129
  Prefactor  = 5.55112e-11
  Prefactor  = 24.8223
  Prefactor  = 38.6269
  Prefactor  = 8.78742e-08
  Prefactor  = 2.27596e-09
  Prefactor  = 5.13423e-07
  Prefactor  = 22.2685
  Prefactor  = 1.50935e-07
  Prefactor  = 2.16493e-09
  Prefactor  = 1.19349e-07
  Prefactor  = 113.411
  norm       = 1.11022e-10
  norm       = 8.46093e-05
  Prefactor  = 9.72633
  Prefactor  = 1.95399e-08
  Prefactor  = 21.8856
  Normalizat = 0.657165
  Prefactor  = 1.03271
 **********
 **   18 **HESSE 
 **********

 FCN=   8704.775     FROM HESSE     STATUS=OK           337 CALLS     1978 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16309E-06    15.168        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.8129        7.5686        .51486E-03   -1.5669    
   3  Prefactor     .55511E-10    10.602        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     24.822        16.662        .20075E-03   -1.5608    
   5  Prefactor     38.627        20.769        .16089E-03   -1.5584    
   6  Prefactor     .87874E-07    10.052        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .22760E-08    40.761        .12285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .51342E-06    13.902        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.269        35.836        .21271E-03   -1.5614    
  10  Prefactor     .15093E-06    10.452        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .21649E-08    .91912        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .11935E-06    14.746        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     113.41        66.722        .94249E-04   -1.5495    
  14  norm          .11102E-09    1.7628        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .84609E-04    14.102        .12301E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.7263        7.5777        .32042E-03   -1.5646    
  17  Prefactor     .19540E-07    8.4805        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     21.886        20.277        .21367E-03   -1.5614    
  19  Normalizat    .65716        .22382        .94163E-01   -1.0561    
  20  Prefactor     1.0327        .97867E-01    .41057E-01   -.91647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50797e-06
Minuit parameter uncertainties:
  1  0.0031458
  2  7.56857
  3  3.82887e-05
  4  16.6622
  5  20.7692
  6  0.00187971
  7  0.000608817
  8  0.00534329
  9  35.8359
  10  0.00251186
  11  8.90352e-05
  12  0.00265324
  13  66.7223
  14  2.88822e-05
  15  0.0690851
  16  7.57767
  17  0.000814268
  18  20.2767
  19  0.224134
  20  0.097884
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  5.134e-07  5.343e-03  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:  1.033e+00  9.788e-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:  6.572e-01  2.241e-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: 7.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/163068/likelihoodResults_689558401_689817601_4FGL_J2123.6+0535_daily_bin1737.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) = 8704.81031361
delta logL = -0.0350765220846

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8704.77523735
delta logL = -2.65314156422e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .59969E-05   1.0000          .0000       .10000E+07
     2 'Index     '    2.3644       1.0000          .0000       10.000    
     3 'Normalizat'    .65720       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0327       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8704.775     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      188 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        13.610        .42118E-03** at limit **
   2  Index         2.6678        1.0532        .10171E-03     .0000    
   3  Normalizat    .65717        .99628       -.16617E-04   -.80564E-04
   4  Prefactor     1.0327        1.2144        .54849E-06   -.15837E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.66784
  Normalizat = 0.657166
  Prefactor  = 1.03271
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8704.775     FROM HESSE     STATUS=FAILED         9 CALLS      197 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        13.610        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .80551        1.9294        .10171E-03   -.48525    
   3  Normalizat    .65717        .99628       -.16617E-04   -1.0561    
   4  Prefactor     1.0327        1.2144        .54849E-06   -.91647    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.24056e-11
Minuit parameter uncertainties:
  1  2.14467e-05
  2  1.06337
  3  1.02578
  4  1.2492
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/163068': 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) = 8704.77523707
delta logL = 1.84572854778e-08

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  0.000e+00  2.145e-05  0.000e+00  1.000e+06 ( 1.000e-13)
314        Index:  2.668e+00  1.063e+00  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:  1.033e+00  1.249e+00  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:  6.572e-01  1.026e+00  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/163068/cmap_HighResolution_689558401_689817601_4FGL_J2123.6+0535_daily_bin1737.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.80e-03', job_status='DONE', photon_flux_upper_limit='7.52e-08', time_completed='2022-11-11 01:09:43.601859', job_id='163068', GAL2='1.03', fit_tolerance='1e-08', EG2='0.66', EG='0.66', time_epoch_completed='1668157783.6', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.85e-08', ts2='0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1737' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Nov 11 01:09:43 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 163068: <4FGL_J2123.6+0535_daily_bin1737> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin1737> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Nov 11 00:55:37 2022
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Nov 11 00:57:39 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Nov 11 00:57:39 2022
Terminated at Fri Nov 11 01:09:44 2022
Results reported at Fri Nov 11 01:09:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin1737 320.921 5.592 689558401 689817601 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 :                                   668.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   724 sec.
    Turnaround time :                            847 sec.

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

