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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin1687
RA = 320.921, Dec = 5.592
tmin = 676598401, tmax = 676857601
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='700170', job_status='RUN', time_executed='2022-06-14 01:36:15.926900', time_epoch_executed='1655195775.93' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='1687'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/700170

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/700170/ft1_4FGL_J2123.6+0535_daily_bin1687.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/700170/ft2_4FGL_J2123.6+0535_daily_bin1687.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/700170/ft1_4FGL_J2123.6+0535_daily_bin1687.fits outfile=/scratch/kocevski/700170/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1687.fits ra=320.921 dec=5.592 rad=12.0 tmin=676598401.0 tmax=676857601.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 2.94
user 2.70
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/700170/ft1_filtered_4FGL_J2123.6+0535_daily_bin1687.fits" evtable="EVENTS" scfile=/scratch/kocevski/700170/ft2_4FGL_J2123.6+0535_daily_bin1687.fits sctable="SC_DATA" outfile=/scratch/kocevski/700170/ltcube_676598401_676857601_4FGL_J2123.6+0535_daily_bin1687.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/700170/ft2_4FGL_J2123.6+0535_daily_bin1687.fits
.....................!
real 16.24
user 15.86
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/700170/ft1_filtered_4FGL_J2123.6+0535_daily_bin1687.fits evtable="EVENTS" scfile=/scratch/kocevski/700170/ft2_4FGL_J2123.6+0535_daily_bin1687.fits sctable="SC_DATA" expcube=/scratch/kocevski/700170/ltcube_676598401_676857601_4FGL_J2123.6+0535_daily_bin1687.fits outfile=/scratch/kocevski/700170/expmap_676598401_676857601_4FGL_J2123.6+0535_daily_bin1687.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/700170/ltcube_676598401_676857601_4FGL_J2123.6+0535_daily_bin1687.fits
.....................!
real 193.82
user 188.21
sys 5.17

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/700170/ft1_filtered_4FGL_J2123.6+0535_daily_bin1687.fits scfile=/scratch/kocevski/700170/ft2_4FGL_J2123.6+0535_daily_bin1687.fits outfile=/scratch/kocevski/700170/cmap_676598401_676857601_4FGL_J2123.6+0535_daily_bin1687.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.56
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/700170/ft1_filtered_4FGL_J2123.6+0535_daily_bin1687.fits scfile=/scratch/kocevski/700170/ft2_4FGL_J2123.6+0535_daily_bin1687.fits outfile=/scratch/kocevski/700170/cmap_HighResolution_676598401_676857601_4FGL_J2123.6+0535_daily_bin1687.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.58
user 0.42
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    78.360       1.0000         .10000E-03   10000.    
     2 'norm      '    .12015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .43565E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    37.036       1.0000         .10000E-03   10000.    
     5 'Prefactor '    56.951       1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.707       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10703E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    77.452       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.6507       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.9045       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1104       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11470E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6407       1.0000         .10000E-03   10000.    
    15 'Prefactor '    69.729       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12715E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    43.239       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    20.493       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    47.414       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .68257       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .95788       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=   7823.712     FROM MIGRAD    STATUS=CONVERGED    655 CALLS     3268 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     78.313        62.259        .54698E-06    .12422E-03
   2  norm          .10000E-03    11.381       -.16639E-05** at limit **
   3  Prefactor     .10000E-03    138.07        .94771E-05** at limit **
   4  Prefactor     36.997        69.631       -.71595E-06   -.12643E-03
   5  Prefactor     56.961        21.429        .16294E-06    .10274E-04
   6  Prefactor     24.705        18.589        .32918E-06    .55885E-04
   7  Prefactor     .10000E-03    9.0946        .18439E-06** at limit **
   8  Prefactor     .10000E-03    16.263        .15480E-06** at limit **
   9  Prefactor     77.486        74.843        .11608E-05    .33154E-04
  10  Prefactor     3.6515        31.044        .28479E-05    .48410E-04
  11  Prefactor     3.7047        107.51        .19053E-05   -.17087E-05
  12  Prefactor     7.1127        5.9464       -.58115E-06   -.32906E-03
  13  Prefactor     .10000E-03    13.125       -.78498E-05** at limit **
  14  Prefactor     2.6406        2.2292       -.24248E-06   -.41063E-03
  15  Prefactor     69.732        37.738       -.55970E-07   -.38085E-04
  16  Prefactor     .10000E-03    84.245       -.23430E-05** at limit **
  17  Prefactor     43.174        48.541       -.39782E-06   -.62039E-04
  18  Prefactor     .10000E-03    31.620        .99855E-06** at limit **
  19  norm          .10000E-03    1.3725        .17856E-05** at limit **
  20  norm          20.471        19.444        .70402E-06    .85928E-04
  21  Prefactor     .10000E-03    2.6003        .32505E-06** at limit **
  22  Prefactor     .10000E-03    4.7690        .34053E-06** at limit **
  23  Prefactor     .10000E-03    4.6664        .17039E-06** at limit **
  24  Prefactor     47.415        25.204       -.82213E-08   -.86918E-04
  25  Normalizat    .68310        .26544        .29936E-06   -.13058E-03
  26  Prefactor     .95762        .10583       -.15652E-05   -.12065E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 78.3127
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 36.9967
  Prefactor  = 56.9613
  Prefactor  = 24.7049
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 77.486
  Prefactor  = 3.6515
  Prefactor  = 3.70467
  Prefactor  = 7.11271
  Prefactor  = 0.000100003
  Prefactor  = 2.64063
  Prefactor  = 69.7322
  Prefactor  = 0.0001
  Prefactor  = 43.174
  Prefactor  = 0.0001
  norm       = 0.000100004
  norm       = 20.4708
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.4154
  Normalizat = 0.683098
  Prefactor  = 0.957623
 **********
 **   18 **HESSE 
 **********

 FCN=   7823.712     FROM HESSE     STATUS=OK           460 CALLS     3728 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     78.313        62.024        .45366E-04   -1.3936    
   2  norm          .10000E-03    11.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.9530        .56455E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     36.997        69.939        .65855E-04   -1.4491    
   5  Prefactor     56.961        21.421        .53158E-04   -1.4197    
   6  Prefactor     24.705        18.592        .80589E-04   -1.4713    
   7  Prefactor     .10000E-03    9.1023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     77.486        74.918        .45629E-04   -1.3945    
  10  Prefactor     3.6515        31.219        .21142E-03   -1.5326    
  11  Prefactor     3.7047        107.00        .20418E-03   -1.5323    
  12  Prefactor     7.1127        5.8578        .15044E-03   -1.5175    
  13  Prefactor     .10000E-03    14.638        .34228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.6406        2.2086        .11039E-03   -1.5383    
  15  Prefactor     69.732        37.803        .48071E-04   -1.4036    
  16  Prefactor     .10000E-03    84.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     43.174        48.403        .30483E-03   -1.4393    
  18  Prefactor     .10000E-03    31.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.1371        .15990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          20.471        19.375        .88478E-04   -1.4803    
  21  Prefactor     .10000E-03    2.6182        .13942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.8048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.6731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     47.415        25.257        .58232E-04   -1.4330    
  25  Normalizat    .68310        .29397        .42382E-03   -1.0456    
  26  Prefactor     .95762        .12268        .16715E-03   -.94156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86499e-09
Minuit parameter uncertainties:
  1  62.0755
  2  6.33664e-05
  3  0.000361759
  4  70.0951
  5  21.4243
  6  18.596
  7  1.58603e-05
  8  1.85142e-05
  9  75.0091
  10  21.3686
  11  39.8974
  12  5.85827
  13  0.000389217
  14  2.20864
  15  37.8163
  16  0.000365773
  17  48.4469
  18  0.000106692
  19  0.000276056
  20  19.3809
  21  1.56518e-05
  22  3.64499e-05
  23  1.20878e-05
  24  25.2626
  25  0.294649
  26  0.122716
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  3.652e+00  2.137e+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:  9.576e-01  1.227e-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:  6.831e-01  2.946e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/700170/likelihoodResults_676598401_676857601_4FGL_J2123.6+0535_daily_bin1687.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) = 7823.62662347
delta logL = 0.0853255368638

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7823.60536539
delta logL = 0.106583622218

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0253       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3797       1.0000          .0000       10.000    
     3 'Normalizat'    .65076       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96563       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7823.605     FROM MIGRAD    STATUS=FAILED        84 CALLS      247 TOTAL
                     EDM=   .78E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0253        23.160        .23331E-03    .23781E-02
   2  Index         3.3800        2.7364        .42723E-02   -.84008E-04
   3  Normalizat    .65075        .26987        .43373E-03   -.30814E-03
   4  Prefactor     .96564        .12164        .16654E-03   -.92963E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7823.605     FROM SIMPLEX   STATUS=UNCHANGED     81 CALLS      328 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0253        23.160        .29470E-03   -1.5360    
   2  Index         3.3800        2.7364        .18373E-02   -.32995    
   3  Normalizat    .65075        .26987        .37515E-03   -1.0587    
   4  Prefactor     .96564        .12164        .10222E-03   -.93884    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7823.605     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      355 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0229        12.405        .93325E-05    .43830E-03
   2  Index         3.3804        2.0601        .17089E-03    .75027E-04
   3  Normalizat    .65075        .26944        .17349E-04   -.18898E-03
   4  Prefactor     .96564        .12125        .33307E-04   -.51322E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.02294
  Index      = 3.38043
  Normalizat = 0.650747
  Prefactor  = 0.965644
 **********
 **   18 **HESSE 
 **********

 FCN=   7823.605     FROM HESSE     STATUS=OK            23 CALLS      378 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0229        12.224        .18665E-05   -1.5360    
   2  Index         3.3804        2.0454        .34178E-04   -.32986    
   3  Normalizat    .65075        .26940        .34698E-05   -1.0587    
   4  Prefactor     .96564        .12124        .66614E-05   -.93884    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.18958e-10
Minuit parameter uncertainties:
  1  12.1618
  2  2.11519
  3  0.269952
  4  0.121269
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/700170': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7823.60536527
delta logL = 0.106583734731

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  3.023e+00  1.216e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  3.380e+00  2.115e+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:  9.656e-01  1.213e-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:  6.507e-01  2.700e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/700170/cmap_HighResolution_676598401_676857601_4FGL_J2123.6+0535_daily_bin1687.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.39e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2022-06-14 01:51:06.970888', job_id='700170', GAL2='0.97', fit_tolerance='1e-08', EG2='0.65', EG='0.68', time_epoch_completed='1655196666.97', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.07e-01', ts2='0.26', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1687' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jun 14 01:51:07 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 700170: <4FGL_J2123.6+0535_daily_bin1687> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin1687> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Jun 14 01:35:13 2022
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jun 14 01:35:16 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jun 14 01:35:16 2022
Terminated at Tue Jun 14 01:51:07 2022
Results reported at Tue Jun 14 01:51:07 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin1687 320.921 5.592 676598401 676857601 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 :                                   893.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            954 sec.

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

