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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin1696
RA = 320.921, Dec = 5.592
tmin = 678931201, tmax = 679190401
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='792886', job_status='RUN', time_executed='2022-07-11 00:31:05.181884', time_epoch_executed='1657524665.18' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='1696'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/792886

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/792886/ft1_4FGL_J2123.6+0535_daily_bin1696.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/792886/ft2_4FGL_J2123.6+0535_daily_bin1696.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/792886/ft1_4FGL_J2123.6+0535_daily_bin1696.fits outfile=/scratch/kocevski/792886/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1696.fits ra=320.921 dec=5.592 rad=12.0 tmin=678931201.0 tmax=679190401.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.53
user 3.32
sys 0.20

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

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

Number of photons that the gtmktime cut: 622

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/792886/ft1_filtered_4FGL_J2123.6+0535_daily_bin1696.fits" evtable="EVENTS" scfile=/scratch/kocevski/792886/ft2_4FGL_J2123.6+0535_daily_bin1696.fits sctable="SC_DATA" outfile=/scratch/kocevski/792886/ltcube_678931201_679190401_4FGL_J2123.6+0535_daily_bin1696.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/792886/ft2_4FGL_J2123.6+0535_daily_bin1696.fits
.....................!
real 11.80
user 11.46
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/792886/ft1_filtered_4FGL_J2123.6+0535_daily_bin1696.fits evtable="EVENTS" scfile=/scratch/kocevski/792886/ft2_4FGL_J2123.6+0535_daily_bin1696.fits sctable="SC_DATA" expcube=/scratch/kocevski/792886/ltcube_678931201_679190401_4FGL_J2123.6+0535_daily_bin1696.fits outfile=/scratch/kocevski/792886/expmap_678931201_679190401_4FGL_J2123.6+0535_daily_bin1696.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/792886/ltcube_678931201_679190401_4FGL_J2123.6+0535_daily_bin1696.fits
.....................!
real 189.35
user 184.77
sys 4.21

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/792886/ft1_filtered_4FGL_J2123.6+0535_daily_bin1696.fits scfile=/scratch/kocevski/792886/ft2_4FGL_J2123.6+0535_daily_bin1696.fits outfile=/scratch/kocevski/792886/cmap_678931201_679190401_4FGL_J2123.6+0535_daily_bin1696.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/792886/ft1_filtered_4FGL_J2123.6+0535_daily_bin1696.fits scfile=/scratch/kocevski/792886/ft2_4FGL_J2123.6+0535_daily_bin1696.fits outfile=/scratch/kocevski/792886/cmap_HighResolution_678931201_679190401_4FGL_J2123.6+0535_daily_bin1696.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/792886/ft1_filtered_4FGL_J2123.6+0535_daily_bin1696.fits evtable="EVENTS" scfile=/scratch/kocevski/792886/ft2_4FGL_J2123.6+0535_daily_bin1696.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/792886/Model_4FGL_J2123.6+0535_daily_bin1696.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/792886/ft1_filtered_4FGL_J2123.6+0535_daily_bin1696.fits.....................!
real 65.82
user 64.40
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.3050       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.6452       1.0000         .10000E-03   10000.    
     6 'Prefactor '    43.917       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.1061       1.0000         .10000E-03   10000.    
     8 'Prefactor '    37.079       1.0000         .10000E-03   10000.    
     9 'Prefactor '    56.196       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1375       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10584E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16668       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.5012       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.366       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.3214       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.096       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10872E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .33891       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1196       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=   6860.616     FROM MIGRAD    STATUS=CONVERGED    626 CALLS     3252 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.514        .16812E-05** at limit **
   2  norm          6.2996        10.041        .15836E-05    .32509E-04
   3  Prefactor     .10000E-03    2.0387        .21668E-06** at limit **
   4  Prefactor     .10000E-03    27.921        .23745E-05** at limit **
   5  Prefactor     3.6369        12.299        .11503E-04   -.58254E-03
   6  Prefactor     43.804        46.157       -.34764E-05   -.11288E-03
   7  Prefactor     8.2129        69.888        .16262E-04    .12635E-03
   8  Prefactor     37.069        36.176       -.85851E-07    .61711E-05
   9  Prefactor     56.191        72.619        .50796E-05   -.16116E-04
  10  Prefactor     .10000E-03    20.192       -.12368E-05** at limit **
  11  Prefactor     .10000E-03    39.013       -.49695E-05** at limit **
  12  Prefactor     7.1356        5.6803        .74115E-06   -.76454E-04
  13  Prefactor     .10000E-03    3.6514        .80033E-06** at limit **
  14  Prefactor     .14867        1.2800        .99235E-06   -.70560E-03
  15  Prefactor     4.5669        63.011       -.15243E-05   -.75839E-04
  16  Prefactor     .10000E-03    19.059        .22128E-05** at limit **
  17  Prefactor     .10000E-03    20.994       -.19324E-05** at limit **
  18  Prefactor     19.344        43.077        .28930E-05   -.94984E-06
  19  norm          .10000E-03    .67549        .31370E-06** at limit **
  20  norm          .10000E-03    11.097        .38503E-06** at limit **
  21  Prefactor     .10000E-03    3.9847       -.17599E-06** at limit **
  22  Prefactor     9.3225        9.5905        .81492E-06   -.36625E-04
  23  Prefactor     10.090        19.597        .33510E-05    .17955E-04
  24  Prefactor     .10000E-03    48.906        .47570E-05** at limit **
  25  Normalizat    .33912        .29257       -.21865E-04   -.29733E-03
  26  Prefactor     1.1197        .12536        .38122E-05   -.44077E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.29958
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.63692
  Prefactor  = 43.8037
  Prefactor  = 8.21288
  Prefactor  = 37.0694
  Prefactor  = 56.191
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.13562
  Prefactor  = 0.000100001
  Prefactor  = 0.148668
  Prefactor  = 4.56688
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.344
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.32253
  Prefactor  = 10.0897
  Prefactor  = 0.0001
  Normalizat = 0.33912
  Prefactor  = 1.11971
 **********
 **   18 **HESSE 
 **********

 FCN=   6860.616     FROM HESSE     STATUS=OK           456 CALLS     3708 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.2996        10.052        .15986E-03   -1.5206    
   3  Prefactor     .10000E-03    2.0484        .11550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.6369        12.391        .10579E-02   -1.5327    
   6  Prefactor     43.804        46.032        .60496E-04   -1.4383    
   7  Prefactor     8.2129        71.501        .14082E-03   -1.5135    
   8  Prefactor     37.069        36.117        .65818E-04   -1.4490    
   9  Prefactor     56.191        72.009        .53512E-04   -1.4207    
  10  Prefactor     .10000E-03    20.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    39.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.1356        5.5900        .15015E-03   -1.5174    
  13  Prefactor     .10000E-03    8.8285        .30156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .14867        8.1054        .16886E-02   -1.5631    
  15  Prefactor     4.5669        61.345        .18977E-03   -1.5281    
  16  Prefactor     .10000E-03    19.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     19.344        42.756        .91014E-04   -1.4828    
  19  norm          .10000E-03    .68750        .66511E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    11.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.0049        .16125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.3225        9.5798        .13127E-03   -1.5097    
  23  Prefactor     10.090        19.568        .12611E-03   -1.5073    
  24  Prefactor     .10000E-03    49.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .33912        .28015        .53890E-03   -1.2058    
  26  Prefactor     1.1197        .12362        .14848E-03   -.88839    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61629e-09
Minuit parameter uncertainties:
  1  1.44955e-05
  2  10.055
  3  5.57002e-06
  4  8.21902e-05
  5  12.3998
  6  46.0697
  7  48.5432
  8  36.1384
  9  72.1212
  10  5.22472e-05
  11  8.28236e-05
  12  5.5904
  13  0.000191268
  14  2.19504
  15  33.5172
  16  4.57578e-05
  17  3.69087e-05
  18  42.8234
  19  3.95459e-06
  20  4.2637e-05
  21  2.06518e-05
  22  9.58133
  23  19.5801
  24  0.000151186
  25  0.281317
  26  0.123655
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  5.225e-05  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:  1.120e+00  1.237e-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:  3.391e-01  2.813e-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.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/792886/likelihoodResults_678931201_679190401_4FGL_J2123.6+0535_daily_bin1696.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) = 6860.6166065
delta logL = -0.000234638877373

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6860.61637374
delta logL = -1.88229205378e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0419       1.0000          .0000       10.000    
     3 'Normalizat'    .33912       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1197       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6860.616     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      289 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    412.51        .18142E-01** at limit **
   2  Index         2.2791        7.7590        .88051E-01    .21562E-07
   3  Normalizat    .33913        .24681E-01    .53884E-03    .14339E-03
   4  Prefactor     1.1197        .12047E-01    .14848E-03    .53995E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.27907
  Normalizat = 0.339127
  Prefactor  = 1.11971
 **********
 **   18 **HESSE 
 **********

 FCN=   6860.616     FROM HESSE     STATUS=OK            23 CALLS      312 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.296        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2791        5.5074        .35220E-02   -.57542    
   3  Normalizat    .33913        .24649        .21554E-04   -1.2058    
   4  Prefactor     1.1197        .12068        .29697E-04   -.88839    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47297e-10
Minuit parameter uncertainties:
  1  0.000285301
  2  422.835
  3  0.247283
  4  0.120705
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/792886': 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) = 6860.61637182
delta logL = 3.63907020073e-08

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  2.853e-04  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.279e+00  4.228e+02  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.120e+00  1.207e-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:  3.391e-01  2.473e-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/792886/cmap_HighResolution_678931201_679190401_4FGL_J2123.6+0535_daily_bin1696.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.82e-03', job_status='DONE', photon_flux_upper_limit='8.83e-08', time_completed='2022-07-11 00:44:03.919402', job_id='792886', GAL2='1.12', fit_tolerance='1e-08', EG2='0.34', EG='0.34', time_epoch_completed='1657525443.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='3.64e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1696' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 11 00:44:03 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 792886: <4FGL_J2123.6+0535_daily_bin1696> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin1696> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Jul 11 00:30:30 2022
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 11 00:30:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul 11 00:30:30 2022
Terminated at Mon Jul 11 00:44:04 2022
Results reported at Mon Jul 11 00:44:04 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin1696 320.921 5.592 678931201 679190401 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 :                                   781.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             369.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            814 sec.

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

