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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin1732
RA = 320.921, Dec = 5.592
tmin = 688262401, tmax = 688521601
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='647524', job_status='RUN', time_executed='2022-10-27 00:36:40.867722', time_epoch_executed='1666856200.87' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='1732'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/647524

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/647524/ft1_4FGL_J2123.6+0535_daily_bin1732.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/647524/ft2_4FGL_J2123.6+0535_daily_bin1732.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/647524/ft1_4FGL_J2123.6+0535_daily_bin1732.fits outfile=/scratch/kocevski/647524/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1732.fits ra=320.921 dec=5.592 rad=12.0 tmin=688262401.0 tmax=688521601.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.52
user 3.29
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/647524/ft1_filtered_4FGL_J2123.6+0535_daily_bin1732.fits evtable="EVENTS" scfile=/scratch/kocevski/647524/ft2_4FGL_J2123.6+0535_daily_bin1732.fits sctable="SC_DATA" expcube=/scratch/kocevski/647524/ltcube_688262401_688521601_4FGL_J2123.6+0535_daily_bin1732.fits outfile=/scratch/kocevski/647524/expmap_688262401_688521601_4FGL_J2123.6+0535_daily_bin1732.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/647524/ltcube_688262401_688521601_4FGL_J2123.6+0535_daily_bin1732.fits
.....................!
real 192.99
user 188.01
sys 4.61

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/647524/ft1_filtered_4FGL_J2123.6+0535_daily_bin1732.fits scfile=/scratch/kocevski/647524/ft2_4FGL_J2123.6+0535_daily_bin1732.fits outfile=/scratch/kocevski/647524/cmap_688262401_688521601_4FGL_J2123.6+0535_daily_bin1732.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/647524/ft1_filtered_4FGL_J2123.6+0535_daily_bin1732.fits scfile=/scratch/kocevski/647524/ft2_4FGL_J2123.6+0535_daily_bin1732.fits outfile=/scratch/kocevski/647524/cmap_HighResolution_688262401_688521601_4FGL_J2123.6+0535_daily_bin1732.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62008E-04   1.0000          .0000       .10000E+07
     2 'norm      '    .58777E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .10189E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    46.426       1.0000          .0000       .10000E+07
     5 'Prefactor '    10.151       1.0000          .0000       .10000E+07
     6 'Prefactor '    .93861E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    34.110       1.0000          .0000       .10000E+07
     8 'Prefactor '    13.955       1.0000          .0000       .10000E+07
     9 'Prefactor '    .49175E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .66068E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    2.2845       1.0000          .0000       .10000E+07
    12 'Prefactor '    .66365E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    65.333       1.0000          .0000       .10000E+07
    14 'norm      '    .99806       1.0000          .0000       .10000E+07
    15 'norm      '    .40765E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    3.9716       1.0000          .0000       .10000E+07
    17 'Prefactor '    11.664       1.0000          .0000       .10000E+07
    18 'Prefactor '    .13338E-04   1.0000          .0000       .10000E+07
    19 'Normalizat'    .19634       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1571       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=   6720.537     FROM MIGRAD    STATUS=CONVERGED    155 CALLS     1555 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .43299E-08    11.427       -.17632E-05** at limit **
   2  norm           .0000        4.1942        .14962E-06** at limit **
   3  Prefactor      .0000        3.0751        .86275E-06** at limit **
   4  Prefactor     46.707        2.3994        .11243E-06   -.71131E-02
   5  Prefactor     10.243        4.1234       -.17109E-06    .11397E-01
   6  Prefactor     .24425E-08    21.314        .43702E-06** at limit **
   7  Prefactor     37.617        42.333        .91851E-06   -.60747E-01
   8  Prefactor     13.989        1.7933        .10406E-06   -.69078E-02
   9  Prefactor     .84932E-08    13.871       -.27217E-05** at limit **
  10  Prefactor      .0000        8.5446       -.63515E-06** at limit **
  11  Prefactor     2.2841        1.5726        .81886E-07    .10643E-02
  12  Prefactor     .64948E-08    17.408       -.21113E-05** at limit **
  13  Prefactor     68.821        38.031        .43762E-06    .91369E-01
  14  norm          1.0001        2.0233        .14443E-06    .24810E-02
  15  norm          .23792E-06    90.975        .39944E-05** at limit **
  16  Prefactor     3.7730        7.9877       -.37631E-06   -.23284E-03
  17  Prefactor     11.681        9.8443       -.48040E-06   -.77810E-04
  18  Prefactor     .75495E-08    11.870       -.41689E-07** at limit **
  19  Normalizat    .18965        .26950       -.13315E-04    .56601E-04
  20  Prefactor     1.1584        .12432        .11344E-05    .23240E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.32987e-09
  norm       = 0
  Prefactor  = 0
  Prefactor  = 46.7067
  Prefactor  = 10.2431
  Prefactor  = 2.44249e-09
  Prefactor  = 37.6172
  Prefactor  = 13.9889
  Prefactor  = 8.49321e-09
  Prefactor  = 0
  Prefactor  = 2.28413
  Prefactor  = 6.4948e-09
  Prefactor  = 68.8209
  norm       = 1.00011
  norm       = 2.37921e-07
  Prefactor  = 3.77299
  Prefactor  = 11.6808
  Prefactor  = 7.54952e-09
  Normalizat = 0.189654
  Prefactor  = 1.15837
 **********
 **   18 **HESSE 
 **********

 FCN=   6720.537     FROM HESSE     STATUS=NOT POSDEF   331 CALLS     1886 TOTAL
                     EDM=   .63E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .43299E-08    11.432        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        4.1891        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        3.0694        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     46.707        33.760        .14678E-03   -1.5571    
   5  Prefactor     10.243        30.618        .31425E-03   -1.5644    
   6  Prefactor     .24425E-08    21.472        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     37.617        110.24        .17124E-03   -1.5585    
   8  Prefactor     13.989        28.632        .26786E-03   -1.5633    
   9  Prefactor     .84932E-08    14.029        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        8.8371        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.2841        1.8793        .67896E-03   -1.5678    
  12  Prefactor     .64948E-08    17.573        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     68.821        98.131        .12373E-03   -1.5542    
  14  norm          1.0001        3.8593        .43697E-03   -1.5688    
  15  norm          .23792E-06    91.182        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.7730        8.6659        .50588E-03   -1.5669    
  17  Prefactor     11.681        13.782        .29307E-03   -1.5640    
  18  Prefactor     .75495E-08    11.852        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .18965        6.1461        .16295       -1.3018    
  20  Prefactor     1.1584        .71155        .35735E-01   -.87622    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.28336e-07
Minuit parameter uncertainties:
  1  0.000446141
  2  6.84056e-06
  3  2.14666e-06
  4  33.7605
  5  30.6184
  6  0.000458451
  7  110.244
  8  28.6323
  9  0.000690675
  10  1.73973e-05
  11  1.87933
  12  0.00067615
  13  98.1329
  14  3.85929
  15  0.00931541
  16  8.66594
  17  13.7819
  18  0.000597412
  19  1.74256
  20  0.71755
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6720.537007

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.399e+01  2.863e+01  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.158e+00  7.176e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.897e-01  1.743e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/647524/likelihoodResults_688262401_688521601_4FGL_J2123.6+0535_daily_bin1732.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) = 6720.52958642
delta logL = 0.00742057404932

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6720.52164082
delta logL = 0.0153661821359

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.031       1.0000          .0000       .10000E+07
     2 'Index     '    2.7796       1.0000          .0000       10.000    
     3 'Normalizat'    .17108       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1643       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6720.522     FROM MIGRAD    STATUS=FAILED       104 CALLS      269 TOTAL
                     EDM=   .59E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9939        737.37        .12645E-04   -.35062E-04
   2  Index         2.7844        7.0165        .85334E-02    .25169E-03
   3  Normalizat    .17074        .50922        .74450E-03    .72839E-05
   4  Prefactor     1.1645        .18674        .14410E-03    .38975E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6720.522     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      360 TOTAL
                     EDM=   .99E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9939        737.37        .31230E-04   -.35062E-04
   2  Index         2.7844        7.0165        .14777E-02    .25169E-03
   3  Normalizat    .17074        .50922        .79996E-03    .72839E-05
   4  Prefactor     1.1645        .18674        .96327E-04    .38975E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6720.522     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      392 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9939        68.318        .50582E-06   -.35356E-04
   2  Index         2.7844        3.6158        .17067E-02   -.12723E-05
   3  Normalizat    .17074        .31670        .29780E-04    .71007E-05
   4  Prefactor     1.1645        .14011        .57639E-05    .39053E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.99392
  Index      = 2.78441
  Normalizat = 0.17074
  Prefactor  = 1.16447
 **********
 **   18 **HESSE 
 **********

 FCN=   6720.522     FROM HESSE     STATUS=OK            23 CALLS      415 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9939        44.103        .37300E-06   -1.5645    
   2  Index         2.7844        3.0654        .68267E-04   -.45907    
   3  Normalizat    .17074        .29709        .59560E-05   -1.3164    
   4  Prefactor     1.1645        .13417        .11528E-05   -.87432    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72255e-12
Minuit parameter uncertainties:
  1  41.9894
  2  3.37551
  3  0.299924
  4  0.134211
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/647524': 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) = 6720.52163852
delta logL = 0.0153684797242

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  9.994e+00  4.199e+01  0.000e+00  1.000e+06 ( 1.000e-13)
314        Index:  2.784e+00  3.376e+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.164e+00  1.342e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.707e-01  2.999e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.68
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/647524/cmap_HighResolution_688262401_688521601_4FGL_J2123.6+0535_daily_bin1732.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.02e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2022-10-27 00:47:05.794870', job_id='647524', GAL2='1.16', fit_tolerance='1e-08', EG2='0.17', EG='0.19', time_epoch_completed='1666856825.79', return_code2='0', ts='0.68', comment='SUCCESS', return_code='102', GAL='1.16', dlogl='1.54e-02', ts2='0.73', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1732' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Oct 27 00:47:05 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0053>
Subject: Job 647524: <4FGL_J2123.6+0535_daily_bin1732> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin1732> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Oct 27 00:35:33 2022
Job was executed on host(s) <bullet0053>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct 27 00:35:34 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Oct 27 00:35:34 2022
Terminated at Thu Oct 27 00:47:06 2022
Results reported at Thu Oct 27 00:47:06 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin1732 320.921 5.592 688262401 688521601 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 :                                   627.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   692 sec.
    Turnaround time :                            693 sec.

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

