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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin1721
RA = 320.921, Dec = 5.592
tmin = 685411201, tmax = 685670401
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='70544', job_status='RUN', time_executed='2022-09-24 01:13:37.485485', time_epoch_executed='1664007217.49' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='1721'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70544

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70544/ft1_4FGL_J2123.6+0535_daily_bin1721.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70544/ft2_4FGL_J2123.6+0535_daily_bin1721.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70544/ft1_4FGL_J2123.6+0535_daily_bin1721.fits outfile=/scratch/kocevski/70544/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1721.fits ra=320.921 dec=5.592 rad=12.0 tmin=685411201.0 tmax=685670401.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 5.29
user 5.03
sys 0.22

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

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

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

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

Number of photons that the gtmktime cut: 755

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/70544/ft1_filtered_4FGL_J2123.6+0535_daily_bin1721.fits" evtable="EVENTS" scfile=/scratch/kocevski/70544/ft2_4FGL_J2123.6+0535_daily_bin1721.fits sctable="SC_DATA" outfile=/scratch/kocevski/70544/ltcube_685411201_685670401_4FGL_J2123.6+0535_daily_bin1721.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/70544/ft2_4FGL_J2123.6+0535_daily_bin1721.fits
.....................!
real 13.38
user 12.98
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70544/ft1_filtered_4FGL_J2123.6+0535_daily_bin1721.fits evtable="EVENTS" scfile=/scratch/kocevski/70544/ft2_4FGL_J2123.6+0535_daily_bin1721.fits sctable="SC_DATA" expcube=/scratch/kocevski/70544/ltcube_685411201_685670401_4FGL_J2123.6+0535_daily_bin1721.fits outfile=/scratch/kocevski/70544/expmap_685411201_685670401_4FGL_J2123.6+0535_daily_bin1721.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/70544/ltcube_685411201_685670401_4FGL_J2123.6+0535_daily_bin1721.fits
.....................!
real 192.45
user 187.41
sys 4.60

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/70544/ft1_filtered_4FGL_J2123.6+0535_daily_bin1721.fits scfile=/scratch/kocevski/70544/ft2_4FGL_J2123.6+0535_daily_bin1721.fits outfile=/scratch/kocevski/70544/cmap_685411201_685670401_4FGL_J2123.6+0535_daily_bin1721.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.57
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/70544/ft1_filtered_4FGL_J2123.6+0535_daily_bin1721.fits scfile=/scratch/kocevski/70544/ft2_4FGL_J2123.6+0535_daily_bin1721.fits outfile=/scratch/kocevski/70544/cmap_HighResolution_685411201_685670401_4FGL_J2123.6+0535_daily_bin1721.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.61
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36304E-07   1.0000          .0000       .10000E+07
     2 'norm      '    6.1198       1.0000          .0000       .10000E+07
     3 'Prefactor '    7.6376       1.0000          .0000       .10000E+07
     4 'Prefactor '    16.867       1.0000          .0000       .10000E+07
     5 'Prefactor '    4.8449       1.0000          .0000       .10000E+07
     6 'Prefactor '    .26202E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    64.461       1.0000          .0000       .10000E+07
     8 'Prefactor '    .26139E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    31.504       1.0000          .0000       .10000E+07
    10 'Prefactor '    .92841       1.0000          .0000       .10000E+07
    11 'Prefactor '    .15646       1.0000          .0000       .10000E+07
    12 'Prefactor '    25.414       1.0000          .0000       .10000E+07
    13 'Prefactor '    .22675E-02   1.0000          .0000       .10000E+07
    14 'norm      '    1.9995       1.0000          .0000       .10000E+07
    15 'norm      '    .77208E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .98421E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    .33842E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .45369E-02   1.0000          .0000       .10000E+07
    19 'Normalizat'    .52388       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1139       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=   8215.775     FROM MIGRAD    STATUS=CONVERGED    141 CALLS     1564 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .85931E-07    17.156        .68461E-07** at limit **
   2  norm          6.0782        9.0533       -.41379E-07   -.26250E-03
   3  Prefactor     7.6373        4.4379       -.44138E-08    .13183E-02
   4  Prefactor     16.910        1.7273       -.34810E-08    .10571E-02
   5  Prefactor     4.7550        1.9525       -.99401E-08   -.36853E-02
   6  Prefactor     .56899E-07    5.3658       -.30256E-07** at limit **
   7  Prefactor     66.423        51.186       -.49622E-07   -.10796E-01
   8  Prefactor     .61889E-06    26.662        .18104E-06** at limit **
   9  Prefactor     32.155        6.8856       -.32748E-07    .23242    
  10  Prefactor     .95205        6.9899       -.62691E-07   -.29531E-01
  11  Prefactor     .14818        2.7479        .88131E-07** at limit **
  12  Prefactor     25.634        1.9716       -.14202E-08    .68564E-02
  13  Prefactor     .40246E-07    6.1134       -.25550E-07** at limit **
  14  norm          2.0024        1.7284        .78864E-08    .53749E-02
  15  norm          .83267E-09    4.6700       -.70641E-07** at limit **
  16  Prefactor      .0000        1.2885        .12945E-07** at limit **
  17  Prefactor     .10142E-06    10.923       -.53762E-07** at limit **
  18  Prefactor     .14433E-08    7.6810       -.67262E-07** at limit **
  19  Normalizat    .52115        .24663        .55070E-05    .54985E-03
  20  Prefactor     1.1144        .11649       -.38306E-06    .13259E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.59313e-08
  norm       = 6.07818
  Prefactor  = 7.63733
  Prefactor  = 16.9105
  Prefactor  = 4.75498
  Prefactor  = 5.68989e-08
  Prefactor  = 66.4231
  Prefactor  = 6.18894e-07
  Prefactor  = 32.1552
  Prefactor  = 0.952053
  Prefactor  = 0.148183
  Prefactor  = 25.6338
  Prefactor  = 4.02456e-08
  norm       = 2.00241
  norm       = 8.32667e-10
  Prefactor  = 0
  Prefactor  = 1.01419e-07
  Prefactor  = 1.44329e-09
  Normalizat = 0.521149
  Prefactor  = 1.11439
 **********
 **   18 **HESSE 
 **********

 FCN=   8215.775     FROM HESSE     STATUS=OK           337 CALLS     1901 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .85931E-07    17.243        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.0782        9.0784        .40560E-03   -1.5659    
   3  Prefactor     7.6373        4.4534        .36263E-03   -1.5653    
   4  Prefactor     16.910        18.572        .24360E-03   -1.5626    
   5  Prefactor     4.7550        18.877        .45678E-03   -1.5664    
   6  Prefactor     .56899E-07    11.448        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     66.423        51.508        .12456E-03   -1.5545    
   8  Prefactor     .61889E-06    27.052        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     32.155        32.499        .17819E-03   -1.5595    
  10  Prefactor     .95205        7.2483        .43815E-03   -1.5688    
  11  Prefactor     .14818        1.2738        .30950E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.634        27.053        .19840E-03   -1.5607    
  13  Prefactor     .40246E-07    11.522        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.0024        1.7398        .73216E-03   -1.5680    
  15  norm          .83267E-09    4.6635        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        1.2899        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10142E-06    10.967        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .14433E-08    7.6841        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .52115        .24501        .10369       -1.1144    
  20  Prefactor     1.1144        .10841        .37082E-01   -.89008    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80826e-06
Minuit parameter uncertainties:
  1  0.00243481
  2  9.07843
  3  4.45339
  4  18.5721
  5  18.8773
  6  0.00161393
  7  51.5081
  8  0.00818334
  9  32.4991
  10  5.25386
  11  0.868923
  12  27.0528
  13  0.00136178
  14  1.73984
  15  0.000124798
  16  5.36265e-06
  17  0.00210952
  18  0.000211269
  19  0.245522
  20  0.108428
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  1.114e+00  1.084e-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.211e-01  2.455e-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.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/70544/likelihoodResults_685411201_685670401_4FGL_J2123.6+0535_daily_bin1721.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) = 8215.79324029
delta logL = -0.0185568784145

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8215.07298731
delta logL = 0.701696098267

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16939       1.0000          .0000       .10000E+07
     2 'Index     '    5.1102       1.0000          .0000       10.000    
     3 'Normalizat'    .43388       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1392       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=   8215.073     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      255 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16895        2.3159        .74625E-03** at limit **
   2  Index         5.1113        2.5743        .11529        .21178E-03
   3  Normalizat    .43392        .42959E-01    .11327        .68440E-04
   4  Prefactor     1.1392        .20720E-01    .36256E-01   -.92489E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.168953
  Index      = 5.11127
  Normalizat = 0.433922
  Prefactor  = 1.13922
 **********
 **   18 **HESSE 
 **********

 FCN=   8215.073     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      290 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16895        6.9886        .34533E-04   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.1113        7.3752        .61383E-02    .22256E-01
   3  Normalizat    .43392        .16896        .50188E-03   -1.1558    
   4  Prefactor     1.1392        .80455E-01    .15350E-03   -.88223    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.59802e-07
Minuit parameter uncertainties:
  1  2.17325
  2  6.05228
  3  0.169157
  4  0.0804634
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70544': 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) = 8215.07298713
delta logL = 0.701696280417

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  1.139e+00  8.046e-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:  4.339e-01  1.692e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.52
Ra Dec: 320.921 5.592
Photon Index (Free Index): 5.11 +/- 6.05
Photon Flux (Free Index): 6.14e-08 +/- 5.47e-08
Energy Flux (Free Index): 8.08e-06 +/- 8.91e-06

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/70544/cmap_HighResolution_685411201_685670401_4FGL_J2123.6+0535_daily_bin1721.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.38e-03', comment='SUCCESS', energy_flux2='8.08e-06', dlogl='7.02e-01', photon_flux2='6.14e-08', job_status='DONE', time_completed='2022-09-24 01:24:43.225478', photon_index_error2='6.05', photon_index2='5.11', ts='-0.00', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='8.27e-08', energy_flux_error2='8.91e-06', EG='0.52', time_epoch_completed='1664007883.23', return_code='0', job_id='70544', GAL2='1.14', EG2='0.43', return_code2='102', photon_flux_error2='5.47e-08', ts2='1.52', photon_index='2.39' WHERE bin_id='1721' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 24 01:24:43 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 70544: <4FGL_J2123.6+0535_daily_bin1721> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin1721> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Sep 24 01:10:30 2022
Job was executed on host(s) <bullet0195>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 24 01:11:57 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 24 01:11:57 2022
Terminated at Sat Sep 24 01:24:44 2022
Results reported at Sat Sep 24 01:24:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin1721 320.921 5.592 685411201 685670401 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 :                                   667.49 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            854 sec.

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

