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 50 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7485
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2123.6+0535_daily_bin1663
RA = 320.921, Dec = 5.592
tmin = 670377601, tmax = 670636801
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='261448', job_status='RUN', time_executed='2022-04-03 00:36:28.381411', time_epoch_executed='1648971388.38' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='1663'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261448

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261448/ft1_4FGL_J2123.6+0535_daily_bin1663.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261448/ft2_4FGL_J2123.6+0535_daily_bin1663.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261448/ft1_4FGL_J2123.6+0535_daily_bin1663.fits outfile=/scratch/kocevski/261448/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1663.fits ra=320.921 dec=5.592 rad=12.0 tmin=670377601.0 tmax=670636801.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.82
user 3.59
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/261448/ft2_4FGL_J2123.6+0535_daily_bin1663.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/261448/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1663.fits evtable="EVENTS" outfile="/scratch/kocevski/261448/ft1_filtered_4FGL_J2123.6+0535_daily_bin1663.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 757

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261448/ft1_filtered_4FGL_J2123.6+0535_daily_bin1663.fits" evtable="EVENTS" scfile=/scratch/kocevski/261448/ft2_4FGL_J2123.6+0535_daily_bin1663.fits sctable="SC_DATA" outfile=/scratch/kocevski/261448/ltcube_670377601_670636801_4FGL_J2123.6+0535_daily_bin1663.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/261448/ft2_4FGL_J2123.6+0535_daily_bin1663.fits
.....................!
real 12.04
user 11.67
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261448/ft1_filtered_4FGL_J2123.6+0535_daily_bin1663.fits evtable="EVENTS" scfile=/scratch/kocevski/261448/ft2_4FGL_J2123.6+0535_daily_bin1663.fits sctable="SC_DATA" expcube=/scratch/kocevski/261448/ltcube_670377601_670636801_4FGL_J2123.6+0535_daily_bin1663.fits outfile=/scratch/kocevski/261448/expmap_670377601_670636801_4FGL_J2123.6+0535_daily_bin1663.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/261448/ltcube_670377601_670636801_4FGL_J2123.6+0535_daily_bin1663.fits
.....................!
real 191.04
user 185.81
sys 4.85

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/261448/ft1_filtered_4FGL_J2123.6+0535_daily_bin1663.fits scfile=/scratch/kocevski/261448/ft2_4FGL_J2123.6+0535_daily_bin1663.fits outfile=/scratch/kocevski/261448/cmap_670377601_670636801_4FGL_J2123.6+0535_daily_bin1663.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261448/ft1_filtered_4FGL_J2123.6+0535_daily_bin1663.fits scfile=/scratch/kocevski/261448/ft2_4FGL_J2123.6+0535_daily_bin1663.fits outfile=/scratch/kocevski/261448/cmap_HighResolution_670377601_670636801_4FGL_J2123.6+0535_daily_bin1663.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.36
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/261448/ft1_filtered_4FGL_J2123.6+0535_daily_bin1663.fits', '/scratch/kocevski/261448/ft2_4FGL_J2123.6+0535_daily_bin1663.fits', expMap='/scratch/kocevski/261448/expmap_670377601_670636801_4FGL_J2123.6+0535_daily_bin1663.fits', expCube='/scratch/kocevski/261448/ltcube_670377601_670636801_4FGL_J2123.6+0535_daily_bin1663.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/261448/Model_4FGL_J2123.6+0535_daily_bin1663.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  1.000e-04  1.000e+04 ( 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/261448/ft1_filtered_4FGL_J2123.6+0535_daily_bin1663.fits
Spacecraft file(s): /scratch/kocevski/261448/ft2_4FGL_J2123.6+0535_daily_bin1663.fits
Exposure map: /scratch/kocevski/261448/expmap_670377601_670636801_4FGL_J2123.6+0535_daily_bin1663.fits
Exposure cube: /scratch/kocevski/261448/ltcube_670377601_670636801_4FGL_J2123.6+0535_daily_bin1663.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/261448/Model_4FGL_J2123.6+0535_daily_bin1663.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) = 8224.12770719

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.140       1.0000         .10000E-03   10000.    
     2 'norm      '    16.103       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.2088       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .20128E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.948       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.605       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    60.473       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11227E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .17103E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.3841       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    24.506       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1982       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .87180       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8224.101     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     3095 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.139        39.938       -.53548E-07   -.11988E-04
   2  norm          16.104        10.924        .97899E-07   -.38499E-04
   3  Prefactor     .10000E-03    5.3530        .79989E-07** at limit **
   4  Prefactor     .10000E-03    55.313       -.95082E-06** at limit **
   5  Prefactor     5.2104        15.516        .79450E-05   -.81574E-04
   6  Prefactor     .10001E-03    69.912        .37952E-05** at limit **
   7  Prefactor     .10000E-03    9.8298        .54426E-06** at limit **
   8  Prefactor     22.945        36.899       -.19823E-05   -.43452E-04
   9  Prefactor     .10000E-03    14.753       -.10824E-06** at limit **
  10  Prefactor     12.606        23.053        .62449E-06   -.10324E-04
  11  Prefactor     .10000E-03    19.685       -.66255E-06** at limit **
  12  Prefactor     .10000E-03    2.2387       -.21944E-07** at limit **
  13  Prefactor     .10000E-03    8.9586       -.43595E-06** at limit **
  14  Prefactor     .10000E-03    1.3512       -.80830E-07** at limit **
  15  Prefactor     60.465        35.567       -.96675E-07   -.42922E-04
  16  Prefactor     .10000E-03    10.938       -.27014E-06** at limit **
  17  Prefactor     .10000E-03    18.169        .34424E-06** at limit **
  18  Prefactor     .10001E-03    122.58       -.26939E-05** at limit **
  19  norm          .10000E-03    .66006        .18220E-07** at limit **
  20  norm          .10000E-03    7.5091        .14249E-07** at limit **
  21  Prefactor     .10017E-03    4.1562       -.34662E-06** at limit **
  22  Prefactor     8.3847        11.751        .17814E-06    .13723E-04
  23  Prefactor     .10000E-03    17.980        .45486E-06** at limit **
  24  Prefactor     24.505        26.540        .10495E-06    .86487E-05
  25  Normalizat    1.1983        .22556       -.39609E-06   -.51897E-05
  26  Prefactor     .87176        .97836E-01   -.22233E-06   -.61711E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.1394
  norm       = 16.1044
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 5.2104
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 22.9451
  Prefactor  = 0.0001
  Prefactor  = 12.6061
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 60.4647
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100171
  Prefactor  = 8.38474
  Prefactor  = 0.0001
  Prefactor  = 24.5045
  Normalizat = 1.19831
  Prefactor  = 0.871761
 **********
 **   18 **HESSE 
 **********

 FCN=   8224.101     FROM HESSE     STATUS=OK           450 CALLS     3545 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.139        39.921        .64899E-04   -1.4472    
   2  norm          16.104        10.917        .99808E-04   -1.4905    
   3  Prefactor     .10000E-03    5.5313        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    55.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.2104        15.564        .88066E-03   -1.5251    
   6  Prefactor     .10001E-03    71.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.8526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.945        36.927        .83616E-04   -1.4750    
   9  Prefactor     .10000E-03    14.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.606        23.069        .11283E-03   -1.4998    
  11  Prefactor     .10000E-03    19.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.2518        .13246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.1889        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.3921        .20527E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     60.465        35.727        .51595E-04   -1.4151    
  16  Prefactor     .10000E-03    10.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    123.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .66473        .71916E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    7.5223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10017E-03    68.499        .34914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.3847        11.731        .13845E-03   -1.5129    
  23  Prefactor     .10000E-03    18.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     24.505        26.538        .80919E-04   -1.4718    
  25  Normalizat    1.1983        .27115        .33737E-03   -.86655    
  26  Prefactor     .87176        .11853        .17529E-03   -.97135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86439e-09
Minuit parameter uncertainties:
  1  39.9492
  2  10.9182
  3  9.25714e-06
  4  0.000658879
  5  15.5756
  6  0.00203048
  7  0.000139681
  8  36.9638
  9  3.63289e-05
  10  23.0855
  11  0.000260321
  12  4.24399e-07
  13  7.97798e-05
  14  4.35546e-06
  15  35.7399
  16  8.52964e-05
  17  0.000145466
  18  0.00225457
  19  9.50976e-07
  20  7.56264e-06
  21  0.00685052
  22  11.7344
  23  0.000169629
  24  26.5512
  25  0.271467
  26  0.118563
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.261e+01  2.309e+01  1.000e-04  1.000e+04 ( 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.718e-01  1.186e-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:  1.198e+00  2.715e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.35
Ra Dec: 320.921 5.592
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/261448/likelihoodResults_670377601_670636801_4FGL_J2123.6+0535_daily_bin1663.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) = 8223.96790508
delta logL = 0.133157135917

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8223.79572644
delta logL = 0.305335777373

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24743E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    8.0133       1.0000          .0000       10.000    
     3 'Normalizat'    1.1531       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89090       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=   8223.796     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      557 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .25016E-03    .41062E-03    .39042E-03** at limit **
   2  Index         8.0105        .60253        .18503        .17996E-03
   3  Normalizat    1.1529        .22336        .77505E-01    .20417E-03
   4  Prefactor     .89097        .98332E-01    .44889E-01   -.18623E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000250159
  Index      = 8.01048
  Normalizat = 1.15286
  Prefactor  = 0.89097
 **********
 **   18 **HESSE 
 **********

 FCN=   8223.796     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      588 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .25016E-03    .30458E-01    .21353E-05   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.0105        8.8858        .93332E-02    .64612    
   3  Normalizat    1.1529        .20687        .34306E-03   -.88072    
   4  Prefactor     .89097        .92797E-01    .17359E-03   -.96457    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.27881e-10
Minuit parameter uncertainties:
  1  0.00427717
  2  7.61147
  3  0.207012
  4  0.0928133
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261448': 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) = 8223.7957186
delta logL = 0.305343610196

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  2.502e-04  4.277e-03  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  8.010e+00  7.611e+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:  8.910e-01  9.281e-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:  1.153e+00  2.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.01
Ra Dec: 320.921 5.592
Photon Index (Free Index): 8.01 +/- 7.61
Photon Flux (Free Index): 4.63e-08 +/- 1.53e-06
Energy Flux (Free Index): 5.37e-06 +/- 1.78e-04

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/261448/cmap_HighResolution_670377601_670636801_4FGL_J2123.6+0535_daily_bin1663.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.39e-03', comment='SUCCESS', energy_flux2='5.37e-06', dlogl='3.05e-01', photon_flux2='4.63e-08', job_status='DONE', time_completed='2022-04-03 00:51:25.775148', photon_index_error2='7.61', photon_index2='8.01', ts='0.35', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='1.78e-04', EG='1.20', time_epoch_completed='1648972285.78', return_code='0', job_id='261448', GAL2='0.89', EG2='1.15', return_code2='102', photon_flux_error2='1.53e-06', ts2='1.01', photon_index='2.39' WHERE bin_id='1663' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Apr  3 00:51:25 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 261448: <4FGL_J2123.6+0535_daily_bin1663> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin1663> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Apr  3 00:35:27 2022
Job was executed on host(s) <bullet0171>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr  3 00:35:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr  3 00:35:29 2022
Terminated at Sun Apr  3 00:51:26 2022
Results reported at Sun Apr  3 00:51:26 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin1663 320.921 5.592 670377601 670636801 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 :                                   899.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             302.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            959 sec.

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

