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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin1735
RA = 320.921, Dec = 5.592
tmin = 689040001, tmax = 689299201
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='866515', job_status='RUN', time_executed='2022-11-05 00:38:47.081522', time_epoch_executed='1667633927.08' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='1735'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/866515

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/866515/ft1_4FGL_J2123.6+0535_daily_bin1735.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/866515/ft2_4FGL_J2123.6+0535_daily_bin1735.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/866515/ft1_4FGL_J2123.6+0535_daily_bin1735.fits outfile=/scratch/kocevski/866515/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1735.fits ra=320.921 dec=5.592 rad=12.0 tmin=689040001.0 tmax=689299201.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.46
sys 0.19

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

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

Number of photons that the gtmktime cut: 741

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/866515/ft1_filtered_4FGL_J2123.6+0535_daily_bin1735.fits evtable="EVENTS" scfile=/scratch/kocevski/866515/ft2_4FGL_J2123.6+0535_daily_bin1735.fits sctable="SC_DATA" expcube=/scratch/kocevski/866515/ltcube_689040001_689299201_4FGL_J2123.6+0535_daily_bin1735.fits outfile=/scratch/kocevski/866515/expmap_689040001_689299201_4FGL_J2123.6+0535_daily_bin1735.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/866515/ltcube_689040001_689299201_4FGL_J2123.6+0535_daily_bin1735.fits
.....................!
real 191.02
user 185.83
sys 4.13

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/866515/ft1_filtered_4FGL_J2123.6+0535_daily_bin1735.fits scfile=/scratch/kocevski/866515/ft2_4FGL_J2123.6+0535_daily_bin1735.fits outfile=/scratch/kocevski/866515/cmap_689040001_689299201_4FGL_J2123.6+0535_daily_bin1735.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/866515/ft1_filtered_4FGL_J2123.6+0535_daily_bin1735.fits scfile=/scratch/kocevski/866515/ft2_4FGL_J2123.6+0535_daily_bin1735.fits outfile=/scratch/kocevski/866515/cmap_HighResolution_689040001_689299201_4FGL_J2123.6+0535_daily_bin1735.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3605       1.0000          .0000       .10000E+07
     2 'norm      '    10.915       1.0000          .0000       .10000E+07
     3 'Prefactor '    .83345E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    .34153E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .44400E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    9.0987       1.0000          .0000       .10000E+07
     7 'Prefactor '    .55201E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .13679E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.8930       1.0000          .0000       .10000E+07
    10 'Prefactor '    .61721       1.0000          .0000       .10000E+07
    11 'Prefactor '    2.2628       1.0000          .0000       .10000E+07
    12 'Prefactor '    52.292       1.0000          .0000       .10000E+07
    13 'Prefactor '    .21322E-01   1.0000          .0000       .10000E+07
    14 'norm      '    2.4308       1.0000          .0000       .10000E+07
    15 'norm      '    .71047E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .43249E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    .65534E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    36.508       1.0000          .0000       .10000E+07
    19 'Normalizat'    .50552       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1755       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=   8332.119     FROM MIGRAD    STATUS=CONVERGED    136 CALLS     1557 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1550        6.0592        .85411E-06   -.21874E-02
   2  norm          10.934        8.2312       -.36231E-06    .42231E-02
   3  Prefactor     .55511E-10    3.0890        .50218E-06** at limit **
   4  Prefactor     .20206E-07    179.30        .63965E-06** at limit **
   5  Prefactor     .21960E-05    1.4111        .11695E-05** at limit **
   6  Prefactor     9.0482        1.5060       -.68881E-07   -.22847E-02
   7  Prefactor     .15543E-08    17.547       -.76641E-06** at limit **
   8  Prefactor     .44409E-09    21.997       -.49152E-06** at limit **
   9  Prefactor     3.0946        6.9673       -.12118E-05   -.19220E-02
  10  Prefactor     .68484        20.009        .82446E-05    .56803E-03
  11  Prefactor     2.2518        2.0019       -.59808E-07    .44313E-02
  12  Prefactor     53.316        28.453       -.11379E-05    .33917E-01
  13  Prefactor     .55511E-10    40.803       -.26868E-06** at limit **
  14  norm          2.4366        2.4033       -.18001E-07   -.60502E-02
  15  norm          .55511E-10    27.155       -.81873E-06** at limit **
  16  Prefactor      .0000        2.0196       -.17810E-06** at limit **
  17  Prefactor     .55511E-10    7.9936        .19433E-05** at limit **
  18  Prefactor     37.079        18.430       -.88815E-06   -.38507E-01
  19  Normalizat    .50228        .27590       -.60249E-05    .23614E-03
  20  Prefactor     1.1762        .12161        .25563E-05    .72037E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.15499
  norm       = 10.9345
  Prefactor  = 5.55112e-11
  Prefactor  = 2.02061e-08
  Prefactor  = 2.19597e-06
  Prefactor  = 9.04821
  Prefactor  = 1.55431e-09
  Prefactor  = 4.44089e-10
  Prefactor  = 3.09457
  Prefactor  = 0.684838
  Prefactor  = 2.25176
  Prefactor  = 53.3164
  Prefactor  = 5.55112e-11
  norm       = 2.43657
  norm       = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 37.0794
  Normalizat = 0.502279
  Prefactor  = 1.17623
 **********
 **   18 **HESSE 
 **********

 FCN=   8332.119     FROM HESSE     STATUS=OK           337 CALLS     1894 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1550        97.867        .55179E-03   -1.5672    
   2  norm          10.934        8.4686        .30301E-03   -1.5642    
   3  Prefactor     .55511E-10    3.0883        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .20206E-07    172.84        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .21960E-05    15.168        .15771E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.0482        23.108        .33202E-03   -1.5648    
   7  Prefactor     .15543E-08    17.648        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .44409E-09    22.010        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.0946        153.27        .59721E-03   -1.5673    
  10  Prefactor     .68484        20.685        .67700E-03   -1.5691    
  11  Prefactor     2.2518        2.1109        .68258E-03   -1.5678    
  12  Prefactor     53.316        36.000        .13830E-03   -1.5562    
  13  Prefactor     .55511E-10    40.249        .16951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.4366        2.4405        .65608E-03   -1.5677    
  15  norm          .55511E-10    27.257        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        2.0213        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .55511E-10    8.0328        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     37.079        33.234        .16552E-03   -1.5586    
  19  Normalizat    .50228        .27950        .11233       -1.1231    
  20  Prefactor     1.1762        .11668        .35237E-01   -.87066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52785e-07
Minuit parameter uncertainties:
  1  35.1444
  2  8.4686
  3  2.28137e-05
  4  0.00373846
  5  0.0115428
  6  23.108
  7  0.000332239
  8  0.000198774
  9  43.5584
  10  7.52763
  11  2.11088
  12  35.9999
  13  9.98692e-05
  14  2.4405
  15  6.41488e-05
  16  1.0781e-05
  17  4.15108e-05
  18  33.2342
  19  0.280288
  20  0.116702
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  4.441e-10  1.988e-04  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.176e+00  1.167e-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:  5.023e-01  2.803e-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: 9.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/866515/likelihoodResults_689040001_689299201_4FGL_J2123.6+0535_daily_bin1735.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) = 8332.1407793
delta logL = -0.0222460848381

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8332.11853347
delta logL = -2.48197466135e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .66276E-05   1.0000          .0000       .10000E+07
     2 'Index     '    3.2859       1.0000          .0000       10.000    
     3 'Normalizat'    .50238       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1762       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=   8332.119     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      217 TOTAL
                     EDM=   .59E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        16.715        .42118E-03** at limit **
   2  Index         2.0581        .86350        .13706E-03     .0000    
   3  Normalizat    .50228        .83379       -.22534E-04    .81161E-06
   4  Prefactor     1.1762        1.1113        .15812E-05   -.75211E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.05809
  Normalizat = 0.502278
  Prefactor  = 1.17623
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8332.119     FROM HESSE     STATUS=FAILED         9 CALLS      226 TOTAL
                     EDM=   .59E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        16.715        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .45881        1.6672        .13706E-03   -.62906    
   3  Normalizat    .50228        .83379       -.22534E-04   -1.1231    
   4  Prefactor     1.1762        1.1113        .15812E-05   -.87066    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.89193e-12
Minuit parameter uncertainties:
  1  3.72273e-05
  2  0.8702
  3  0.855975
  4  1.13465
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/866515': 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) = 8332.11853322
delta logL = 9.45874489844e-11

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  1.176e+00  1.135e+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:  5.023e-01  8.560e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/866515/cmap_HighResolution_689040001_689299201_4FGL_J2123.6+0535_daily_bin1735.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.11e-03', job_status='DONE', photon_flux_upper_limit='9.21e-08', time_completed='2022-11-05 00:49:15.145861', job_id='866515', GAL2='1.18', fit_tolerance='1e-08', EG2='0.50', EG='0.50', time_epoch_completed='1667634555.15', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='9.46e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1735' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Nov  5 00:49:15 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 866515: <4FGL_J2123.6+0535_daily_bin1735> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin1735> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Nov  5 00:35:12 2022
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Nov  5 00:35:13 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Nov  5 00:35:13 2022
Terminated at Sat Nov  5 00:49:15 2022
Results reported at Sat Nov  5 00:49:15 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin1735 320.921 5.592 689040001 689299201 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 :                                   629.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             271.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            843 sec.

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

