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


Performing analysis on: 4FGL_J2123.6+0535_weekly_bin737
RA = 320.921, Dec = 5.592
tmin = 684720001, tmax = 685324801
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='453848', job_status='RUN', time_executed='2022-09-20 01:03:17.634138', time_epoch_executed='1663660997.63' WHERE source_name='4FGL J2123.6+0535' and cadence='weekly' and bin_id='737'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/453848

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/453848/ft1_4FGL_J2123.6+0535_weekly_bin737.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/453848/ft2_4FGL_J2123.6+0535_weekly_bin737.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/453848/ft1_4FGL_J2123.6+0535_weekly_bin737.fits outfile=/scratch/kocevski/453848/ft1_filteredMKT_4FGL_J2123.6+0535_weekly_bin737.fits ra=320.921 dec=5.592 rad=12.0 tmin=684720001.0 tmax=685324801.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 7.28
user 6.29
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/453848/ft2_4FGL_J2123.6+0535_weekly_bin737.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/453848/ft1_filteredMKT_4FGL_J2123.6+0535_weekly_bin737.fits evtable="EVENTS" outfile="/scratch/kocevski/453848/ft1_filtered_4FGL_J2123.6+0535_weekly_bin737.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.59
user 0.40
sys 0.15

Number of photons that the gtmktime cut: 836

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/453848/ft1_filtered_4FGL_J2123.6+0535_weekly_bin737.fits" evtable="EVENTS" scfile=/scratch/kocevski/453848/ft2_4FGL_J2123.6+0535_weekly_bin737.fits sctable="SC_DATA" outfile=/scratch/kocevski/453848/ltcube_684720001_685324801_4FGL_J2123.6+0535_weekly_bin737.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/453848/ft2_4FGL_J2123.6+0535_weekly_bin737.fits
.....................!
real 34.48
user 34.04
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/453848/ft1_filtered_4FGL_J2123.6+0535_weekly_bin737.fits evtable="EVENTS" scfile=/scratch/kocevski/453848/ft2_4FGL_J2123.6+0535_weekly_bin737.fits sctable="SC_DATA" expcube=/scratch/kocevski/453848/ltcube_684720001_685324801_4FGL_J2123.6+0535_weekly_bin737.fits outfile=/scratch/kocevski/453848/expmap_684720001_685324801_4FGL_J2123.6+0535_weekly_bin737.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/453848/ltcube_684720001_685324801_4FGL_J2123.6+0535_weekly_bin737.fits
.....................!
real 192.08
user 186.20
sys 5.47

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/453848/ft1_filtered_4FGL_J2123.6+0535_weekly_bin737.fits scfile=/scratch/kocevski/453848/ft2_4FGL_J2123.6+0535_weekly_bin737.fits outfile=/scratch/kocevski/453848/cmap_684720001_685324801_4FGL_J2123.6+0535_weekly_bin737.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.61
user 0.43
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/453848/ft1_filtered_4FGL_J2123.6+0535_weekly_bin737.fits scfile=/scratch/kocevski/453848/ft2_4FGL_J2123.6+0535_weekly_bin737.fits outfile=/scratch/kocevski/453848/cmap_HighResolution_684720001_685324801_4FGL_J2123.6+0535_weekly_bin737.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.60
user 0.42
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57523E-02   1.0000          .0000       .10000E+07
     2 'norm      '    2.5853       1.0000          .0000       .10000E+07
     3 'Prefactor '    7.4582       1.0000          .0000       .10000E+07
     4 'Prefactor '    33.931       1.0000          .0000       .10000E+07
     5 'Prefactor '    12.869       1.0000          .0000       .10000E+07
     6 'Prefactor '    .85402E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .98142E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .48399E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    4.5896       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.9745       1.0000          .0000       .10000E+07
    11 'Prefactor '    .84274       1.0000          .0000       .10000E+07
    12 'Prefactor '    .51797E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    54.254       1.0000          .0000       .10000E+07
    14 'norm      '    3.8615       1.0000          .0000       .10000E+07
    15 'norm      '    .51341E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .27200E-08   1.0000          .0000       .10000E+07
    17 'Prefactor '    .23872E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .70226E-01   1.0000          .0000       .10000E+07
    19 'Normalizat'    .35640       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .87954       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=   9905.129     FROM MIGRAD    STATUS=CONVERGED    156 CALLS     1547 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .48071E-04    53.222        .78974E-06** at limit **
   2  norm          2.5998        6.1806        .21195E-05   -.18578E-02
   3  Prefactor     7.4546        5.2520        .10832E-06    .18756E-02
   4  Prefactor     33.981        12.548        .19688E-06   -.20580E-02
   5  Prefactor     12.962        18.860        .14551E-05   -.46410E-03
   6  Prefactor     .58265E-06    30.392       -.60047E-05** at limit **
   7  Prefactor     .23638E-04    52.962        .16731E-05** at limit **
   8  Prefactor     .23870E-08    7.5680        .10830E-05** at limit **
   9  Prefactor     4.7623        3.5335        .14623E-05   -.84405E-02
  10  Prefactor     1.9703        4.1426       -.72904E-06    .47417E-02
  11  Prefactor     .84271        1.4988        .87587E-06    .56942E-02
  12  Prefactor     .51875E-06    15.247       -.41920E-05** at limit **
  13  Prefactor     55.067        47.061        .46322E-05   -.93765E-01
  14  norm          3.8585        2.6300        .68086E-07    .13446E-02
  15  norm          .15862E-05    21.833        .10771E-04** at limit **
  16  Prefactor     .77716E-09    3.4891        .55546E-06** at limit **
  17  Prefactor     .59952E-08    9.0361        .47331E-06** at limit **
  18  Prefactor     .27756E-09    43.377       -.13047E-06** at limit **
  19  Normalizat    .35525        .23923       -.41667E-04    .55501E-04
  20  Prefactor     .87969        .95574E-01    .34831E-05    .15166E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.8071e-05
  norm       = 2.59981
  Prefactor  = 7.4546
  Prefactor  = 33.981
  Prefactor  = 12.962
  Prefactor  = 5.82645e-07
  Prefactor  = 2.3638e-05
  Prefactor  = 2.38698e-09
  Prefactor  = 4.76232
  Prefactor  = 1.97035
  Prefactor  = 0.842707
  Prefactor  = 5.18752e-07
  Prefactor  = 55.0669
  norm       = 3.8585
  norm       = 1.58623e-06
  Prefactor  = 7.77156e-10
  Prefactor  = 5.9952e-09
  Prefactor  = 2.77556e-10
  Normalizat = 0.355251
  Prefactor  = 0.879694
 **********
 **   18 **HESSE 
 **********

 FCN=   9905.129     FROM HESSE     STATUS=OK           333 CALLS     1880 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .48071E-04    83.235        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.5998        6.2629        .63440E-03   -1.5676    
   3  Prefactor     7.4546        5.3191        .36700E-03   -1.5653    
   4  Prefactor     33.981        12.836        .17170E-03   -1.5591    
   5  Prefactor     12.962        19.153        .27897E-03   -1.5636    
   6  Prefactor     .58265E-06    30.581        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .23638E-04    68.809        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .23870E-08    7.5984        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.7623        59.789        .46961E-03   -1.5664    
  10  Prefactor     1.9703        4.2353        .73750E-03   -1.5680    
  11  Prefactor     .84271        1.5399        .49802E-03   -1.5690    
  12  Prefactor     .51875E-06    22.858        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     55.067        59.243        .13577E-03   -1.5560    
  14  norm          3.8585        2.6880        .51328E-03   -1.5669    
  15  norm          .15862E-05    24.268        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .77716E-09    3.5044        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .59952E-08    23.524        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .27756E-09    43.209        .14811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .35525        .27558        .11874       -1.1968    
  20  Prefactor     .87969        .10132        .32279E-01   -.96854    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94279e-06
Minuit parameter uncertainties:
  1  0.126512
  2  6.26295
  3  5.31915
  4  12.8358
  5  19.1534
  6  0.00844242
  7  0.080661
  8  0.000270521
  9  33.7485
  10  4.23528
  11  1.53988
  12  0.00688697
  13  59.2441
  14  2.68802
  15  0.0124088
  16  0.000102694
  17  0.000749981
  18  0.000210228
  19  0.276641
  20  0.101337
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  2.387e-09  2.705e-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:  8.797e-01  1.013e-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.553e-01  2.766e-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: 5.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/453848/likelihoodResults_684720001_685324801_4FGL_J2123.6+0535_weekly_bin737.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) = 9905.13315552
delta logL = -0.0043019375662

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9905.12885359
delta logL = -2.21007212531e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26257E-07   1.0000          .0000       .10000E+07
     2 'Index     '    2.9041       1.0000          .0000       10.000    
     3 'Normalizat'    .35525       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87970       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=   9905.129     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      261 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-09    4.8689        .42118E-03** at limit **
   2  Index         1.2299        5.3666        .50000       -.22737E-09
   3  Normalizat    .35526        .50719E-02    .11874        .52965E-03
   4  Prefactor     .87969        .21358E-02    .32279E-01    .99643E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-10
  Index      = 1.22987
  Normalizat = 0.355256
  Prefactor  = 0.879693
 **********
 **   18 **HESSE 
 **********

 FCN=   9905.129     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      292 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-09    23.600        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.2299        6.6870        .50000       -.85417    
   3  Normalizat    .35526        .11199E-01    .52577E-03   -1.1968    
   4  Prefactor     .87969        .47257E-02    .14264E-03   -.96854    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.32471e-10
Minuit parameter uncertainties:
  1  0.000157576
  2  148428
  3  0.0111996
  4  0.00472566
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/453848': 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) = 9905.12885359
delta logL = -2.47382558882e-10

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  2.776e-10  1.576e-04  0.000e+00  1.000e+06 ( 1.000e-13)
314        Index:  1.230e+00  1.484e+05  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:  8.797e-01  4.726e-03  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.553e-01  1.120e-02  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/453848/cmap_HighResolution_684720001_685324801_4FGL_J2123.6+0535_weekly_bin737.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.56e-03', job_status='DONE', photon_flux_upper_limit='5.90e-08', time_completed='2022-09-20 01:15:39.807659', job_id='453848', GAL2='0.88', fit_tolerance='1e-08', EG2='0.36', EG='0.36', time_epoch_completed='1663661739.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='-2.47e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='737' AND source_name='4FGL J2123.6+0535' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 20 01:15:39 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 453848: <4FGL_J2123.6+0535_weekly_bin737> in cluster <slac> Done

Job <4FGL_J2123.6+0535_weekly_bin737> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 20 01:00:27 2022
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 20 01:02:40 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 20 01:02:40 2022
Terminated at Tue Sep 20 01:15:40 2022
Results reported at Tue Sep 20 01:15:40 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_weekly_bin737 320.921 5.592 684720001 685324801 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 :                                   742.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            913 sec.

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

