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 84 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_J2234.2-4156_weekly_bin737
RA = 338.568, Dec = -41.9411
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='453967', job_status='RUN', time_executed='2022-09-20 01:05:32.892897', time_epoch_executed='1663661132.89' WHERE source_name='4FGL J2234.2-4156' and cadence='weekly' and bin_id='737'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/453967

Creating custom pfile directory:
/scratch/kocevski/453967/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/453967/ft1_4FGL_J2234.2-4156_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/453967/ft2_4FGL_J2234.2-4156_weekly_bin737.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/453967/ft1_4FGL_J2234.2-4156_weekly_bin737.fits outfile=/scratch/kocevski/453967/ft1_filteredMKT_4FGL_J2234.2-4156_weekly_bin737.fits ra=338.568 dec=-41.9411 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 6.61
user 6.30
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/453967/ft2_4FGL_J2234.2-4156_weekly_bin737.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/453967/ft2_4FGL_J2234.2-4156_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/453967/ft1_filteredMKT_4FGL_J2234.2-4156_weekly_bin737.fits evtable="EVENTS" outfile="/scratch/kocevski/453967/ft1_filtered_4FGL_J2234.2-4156_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.56
user 0.39
sys 0.16

Number of photons that the gtmktime cut: 113

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/453967/ft1_filtered_4FGL_J2234.2-4156_weekly_bin737.fits" evtable="EVENTS" scfile=/scratch/kocevski/453967/ft2_4FGL_J2234.2-4156_weekly_bin737.fits sctable="SC_DATA" outfile=/scratch/kocevski/453967/ltcube_684720001_685324801_4FGL_J2234.2-4156_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/453967/ft2_4FGL_J2234.2-4156_weekly_bin737.fits
.....................!
real 34.32
user 33.79
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/453967/ft1_filtered_4FGL_J2234.2-4156_weekly_bin737.fits evtable="EVENTS" scfile=/scratch/kocevski/453967/ft2_4FGL_J2234.2-4156_weekly_bin737.fits sctable="SC_DATA" expcube=/scratch/kocevski/453967/ltcube_684720001_685324801_4FGL_J2234.2-4156_weekly_bin737.fits outfile=/scratch/kocevski/453967/expmap_684720001_685324801_4FGL_J2234.2-4156_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/453967/ltcube_684720001_685324801_4FGL_J2234.2-4156_weekly_bin737.fits
.....................!
real 192.74
user 186.64
sys 5.67

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 180 point sources and 0 extended sources

Setting source of interest to:
4FGL J2234.2-4156 @ 338.568 -41.9411

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/453967/ft1_filtered_4FGL_J2234.2-4156_weekly_bin737.fits scfile=/scratch/kocevski/453967/ft2_4FGL_J2234.2-4156_weekly_bin737.fits outfile=/scratch/kocevski/453967/cmap_684720001_685324801_4FGL_J2234.2-4156_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=338.568 yref=-41.9411 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.59
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/453967/ft1_filtered_4FGL_J2234.2-4156_weekly_bin737.fits scfile=/scratch/kocevski/453967/ft2_4FGL_J2234.2-4156_weekly_bin737.fits outfile=/scratch/kocevski/453967/cmap_HighResolution_684720001_685324801_4FGL_J2234.2-4156_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=338.568 yref=-41.9411 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.43
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/453967/ft1_filtered_4FGL_J2234.2-4156_weekly_bin737.fits evtable="EVENTS" scfile=/scratch/kocevski/453967/ft2_4FGL_J2234.2-4156_weekly_bin737.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/453967/Model_4FGL_J2234.2-4156_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/453967/ft1_filtered_4FGL_J2234.2-4156_weekly_bin737.fits.......................!
real 22.55
user 21.21
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/453967/ft1_filtered_4FGL_J2234.2-4156_weekly_bin737.fits', '/scratch/kocevski/453967/ft2_4FGL_J2234.2-4156_weekly_bin737.fits', expMap='/scratch/kocevski/453967/expmap_684720001_685324801_4FGL_J2234.2-4156_weekly_bin737.fits', expCube='/scratch/kocevski/453967/ltcube_684720001_685324801_4FGL_J2234.2-4156_weekly_bin737.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/453967/Model_4FGL_J2234.2-4156_weekly_bin737.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2234.2-4156'

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  4.331e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
286        Index:  1.992e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  2.380e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/453967/ft1_filtered_4FGL_J2234.2-4156_weekly_bin737.fits
Spacecraft file(s): /scratch/kocevski/453967/ft2_4FGL_J2234.2-4156_weekly_bin737.fits
Exposure map: /scratch/kocevski/453967/expmap_684720001_685324801_4FGL_J2234.2-4156_weekly_bin737.fits
Exposure cube: /scratch/kocevski/453967/ltcube_684720001_685324801_4FGL_J2234.2-4156_weekly_bin737.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/453967/Model_4FGL_J2234.2-4156_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) = 1333.14356944

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .51967       1.0000          .0000       .10000E+07
     2 'norm      '    .10145E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    5.2303       1.0000          .0000       .10000E+07
     4 'Prefactor '    .70419E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .10241E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .16092E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    47.576       1.0000          .0000       .10000E+07
     8 'norm      '    .13711E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    .61325E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .28072E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .98994E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .20059E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .23077E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    29.425       1.0000          .0000       .10000E+07
    15 'Prefactor '    72.801       1.0000          .0000       .10000E+07
    16 'Prefactor '    .64357E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .26146E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    2.5666       1.0000          .0000       .10000E+07
    19 'Prefactor '    .65989E-02   1.0000          .0000       .10000E+07
    20 'norm      '    .80962E-02   1.0000          .0000       .10000E+07
    21 'norm      '    .10256E-01   1.0000          .0000       .10000E+07
    22 'norm      '    .33476       1.0000          .0000       .10000E+07
    23 'norm      '    106.08       1.0000          .0000       .10000E+07
    24 'Prefactor '    .70103E-03   1.0000          .0000       .10000E+07
    25 'Prefactor '    1.6779       1.0000          .0000       .10000E+07
    26 'norm      '    4.4361       1.0000          .0000       .10000E+07
    27 'Prefactor '    .29937E-02   1.0000          .0000       .10000E+07
    28 'norm      '    25563.       1.0000          .0000       .10000E+07
    29 'Normalizat'    .87364       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .67192       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1333.087     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     3119 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16989        2454.1        .12556E-05** at limit **
   2  norm           .0000        3.1951        .51334E-09** at limit **
   3  Prefactor     5.2986        14.111        .26628E-06    .12759E-02
   4  Prefactor     .26020E-05    180.87       -.24386E-05** at limit **
   5  Prefactor     .78548E-07    57.836        .36835E-05** at limit **
   6  Prefactor      .0000        31.196        .54535E-06** at limit **
   7  Prefactor     60.043        158.85       -.66220E-06    .36416E-01
   8  norm           .0000        4.8180        .23220E-07** at limit **
   9  Prefactor     .22204E-09    14.838        .88082E-07** at limit **
  10  Prefactor     .11102E-09    25.737        .99333E-07** at limit **
  11  Prefactor     .20417E-06    68.713        .60597E-06** at limit **
  12  Prefactor     .19767E-01    66.601       -.45636E-05** at limit **
  13  Prefactor     .79936E-08    49.087        .60404E-06** at limit **
  14  Prefactor     27.264        32.772       -.92289E-06   -.88512E-01
  15  Prefactor     67.899        77.876       -.67189E-06    .14471    
  16  Prefactor     .83822E-08    85.721        .20091E-05** at limit **
  17  Prefactor      .0000        17.022        .14571E-06** at limit **
  18  Prefactor     .12269E-01    782.62       -.13226E-04** at limit **
  19  Prefactor     .11990E-07    61.994       -.48532E-06** at limit **
  20  norm          .33796E-05    81.096       -.55367E-06** at limit **
  21  norm          .24425E-08    45.211       -.17628E-06** at limit **
  22  norm          .66613E-09    190.43        .37065E-06** at limit **
  23  norm          .66502E-06    1932.9        .24901E-05** at limit **
  24  Prefactor     .49738E-07    53.645       -.16412E-06** at limit **
  25  Prefactor     .13199E-01    1236.7       -.20985E-04** at limit **
  26  norm          .47345E-04    262.23       -.20359E-05** at limit **
  27  Prefactor     .11910E-03    66.788       -.50027E-06** at limit **
  28  norm          25556.        29.818        .42650E-08    1.1071    
  29  Normalizat    .87684        .46970       -.39229E-05    .30615E-04
  30  Prefactor     .66942        .33332        .78648E-05    .99941E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.169891
  norm       = 0
  Prefactor  = 5.29862
  Prefactor  = 2.60197e-06
  Prefactor  = 7.85483e-08
  Prefactor  = 0
  Prefactor  = 60.0426
  norm       = 0
  Prefactor  = 2.22045e-10
  Prefactor  = 1.11022e-10
  Prefactor  = 2.0417e-07
  Prefactor  = 0.0197669
  Prefactor  = 7.99361e-09
  Prefactor  = 27.2642
  Prefactor  = 67.8989
  Prefactor  = 8.38218e-09
  Prefactor  = 0
  Prefactor  = 0.0122694
  Prefactor  = 1.19904e-08
  norm       = 3.37957e-06
  norm       = 2.44249e-09
  norm       = 6.66134e-10
  norm       = 6.65024e-07
  Prefactor  = 4.9738e-08
  Prefactor  = 0.0131992
  norm       = 4.73454e-05
  Prefactor  = 0.0001191
  norm       = 25555.9
  Normalizat = 0.876842
  Prefactor  = 0.669419
 **********
 **   18 **HESSE 
 **********

 FCN=   1333.087     FROM HESSE     STATUS=OK           656 CALLS     3775 TOTAL
                     EDM=   .83E-02    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16989        94.805        .89781E-02   -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        3.1985        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.2986        14.713        .43929E-03   -1.5662    
   4  Prefactor     .26020E-05    36.758        .52421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .78548E-07    58.335        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        24.303        .50290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     60.043        189.38        .14499E-03   -1.5553    
   8  norm           .0000        4.8088        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .22204E-09    14.929        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .11102E-09    14.211        .47646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .20417E-06    69.213        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .19767E-01    65.222        .55788E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .79936E-08    49.230        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     27.264        65.927        .18438E-03   -1.5604    
  15  Prefactor     67.899        93.148        .11721E-03   -1.5543    
  16  Prefactor     .83822E-08    85.471        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        17.092        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .12269E-01    1791.2        .63691E-03   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .11990E-07    62.366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .33796E-05    81.524        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .24425E-08    45.171        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .66613E-09    190.44        .97472E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .66502E-06    1988.4        .97098E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .49738E-07    53.473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .13199E-01    1829.5        .81309E-03   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .47345E-04    359.92        .47787E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .11910E-03    273.66        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          25556.        12986.        .63361E-05   -1.2497    
  29  Normalizat    .87684        .41439        .44564E-01   -.97279    
  30  Prefactor     .66942        .28307        .42026E-01   -1.0474    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.00830487
Minuit parameter uncertainties:
  1  8.02672
  2  1.13809e-06
  3  14.7132
  4  0.0195596
  5  0.00428147
  6  2.1599e-05
  7  189.4
  8  1.94925e-05
  9  0.000109652
  10  8.16923e-05
  11  0.00751844
  12  2.27091
  13  0.00125574
  14  65.9287
  15  93.1501
  16  0.00169534
  17  2.17506e-05
  18  9.37878
  19  0.00173138
  20  0.0331977
  21  0.0006637
  22  0.000700008
  23  0.0727534
  24  0.00326183
  25  9.83112
  26  0.261093
  27  0.361089
  28  13000.8
  29  0.415908
  30  0.283679
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  2.042e-07  7.518e-03  0.000e+00  1.000e+06 ( 1.000e-14)
286        Index:  1.992e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  2.380e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  6.694e-01  2.837e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  8.768e-01  4.159e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 338.568 -41.941
Photon Flux Upper Limit: 2.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.51e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/453967/likelihoodResults_684720001_685324801_4FGL_J2234.2-4156_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) = 1333.09416292
delta logL = -0.00688959102536

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1333.08727347
delta logL = -1.40613565236e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19545E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.8403       1.0000          .0000       10.000    
     3 'Normalizat'    .87677       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66939       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1333.087     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      221 TOTAL
                     EDM=   .35E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        93.270       -.26916E-05** at limit **
   2  Index         1.4034        8.0112       -.75142E-05     .0000    
   3  Normalizat    .87684        .44183        .19274E-04   -.13604E-05
   4  Prefactor     .66942        .32972       -.46550E-04    .17685E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.40339
  Normalizat = 0.876844
  Prefactor  = 0.669417
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1333.087     FROM HESSE     STATUS=FAILED        11 CALLS      232 TOTAL
                     EDM=   .35E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        93.224        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .16545        1.3663       -.75142E-05   -.80283    
   3  Normalizat    .87684        1.2132        .19274E-04   -.97279    
   4  Prefactor     .66942        1.0189       -.46550E-04   -1.0474    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.48329e-12
Minuit parameter uncertainties:
  1  4.84068e-06
  2  0.930795
  3  1.25435
  4  1.04947
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/453967': 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) = 1333.08727333
delta logL = 1.51408130478e-09

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  0.000e+00  4.841e-06  0.000e+00  1.000e+06 ( 1.000e-14)
286        Index:  1.403e+00  9.308e-01  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  2.380e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  6.694e-01  1.049e+00  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  8.768e-01  1.254e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 338.568 -41.941

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/453967/cmap_HighResolution_684720001_685324801_4FGL_J2234.2-4156_weekly_bin737.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.51e-02', job_status='DONE', photon_flux_upper_limit='2.01e-07', time_completed='2022-09-20 01:13:22.838993', job_id='453967', GAL2='0.67', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1663661602.84', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='1.51e-09', ts2='0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='737' AND source_name='4FGL J2234.2-4156' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 20 01:13:22 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 453967: <4FGL_J2234.2-4156_weekly_bin737> in cluster <slac> Done

Job <4FGL_J2234.2-4156_weekly_bin737> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 20 01:00:35 2022
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 20 01:04:00 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:04:00 2022
Terminated at Tue Sep 20 01:13:23 2022
Results reported at Tue Sep 20 01:13:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_weekly_bin737 338.568 -41.9411 684720001 685324801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2234.2-4156 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   471.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   563 sec.
    Turnaround time :                            768 sec.

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

