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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1744
RA = 338.568, Dec = -41.9411
tmin = 691372801, tmax = 691632001
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='595761', job_status='RUN', time_executed='2022-12-02 01:59:06.465208', time_epoch_executed='1669975146.47' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1744'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/595761

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/595761/ft1_4FGL_J2234.2-4156_daily_bin1744.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/595761/ft2_4FGL_J2234.2-4156_daily_bin1744.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/595761/ft1_4FGL_J2234.2-4156_daily_bin1744.fits outfile=/scratch/kocevski/595761/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1744.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=691372801.0 tmax=691632001.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 2.21
user 1.84
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/595761/ft2_4FGL_J2234.2-4156_daily_bin1744.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/595761/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1744.fits evtable="EVENTS" outfile="/scratch/kocevski/595761/ft1_filtered_4FGL_J2234.2-4156_daily_bin1744.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.57
user 0.28
sys 0.14

Number of photons that the gtmktime cut: 633

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/595761/ft1_filtered_4FGL_J2234.2-4156_daily_bin1744.fits" evtable="EVENTS" scfile=/scratch/kocevski/595761/ft2_4FGL_J2234.2-4156_daily_bin1744.fits sctable="SC_DATA" outfile=/scratch/kocevski/595761/ltcube_691372801_691632001_4FGL_J2234.2-4156_daily_bin1744.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/595761/ft2_4FGL_J2234.2-4156_daily_bin1744.fits
.....................!
real 10.58
user 10.05
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/595761/ft1_filtered_4FGL_J2234.2-4156_daily_bin1744.fits evtable="EVENTS" scfile=/scratch/kocevski/595761/ft2_4FGL_J2234.2-4156_daily_bin1744.fits sctable="SC_DATA" expcube=/scratch/kocevski/595761/ltcube_691372801_691632001_4FGL_J2234.2-4156_daily_bin1744.fits outfile=/scratch/kocevski/595761/expmap_691372801_691632001_4FGL_J2234.2-4156_daily_bin1744.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/595761/ltcube_691372801_691632001_4FGL_J2234.2-4156_daily_bin1744.fits
.....................!
real 153.76
user 148.97
sys 4.35

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/595761/ft1_filtered_4FGL_J2234.2-4156_daily_bin1744.fits scfile=/scratch/kocevski/595761/ft2_4FGL_J2234.2-4156_daily_bin1744.fits outfile=/scratch/kocevski/595761/cmap_691372801_691632001_4FGL_J2234.2-4156_daily_bin1744.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.49
user 0.30
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/595761/ft1_filtered_4FGL_J2234.2-4156_daily_bin1744.fits scfile=/scratch/kocevski/595761/ft2_4FGL_J2234.2-4156_daily_bin1744.fits outfile=/scratch/kocevski/595761/cmap_HighResolution_691372801_691632001_4FGL_J2234.2-4156_daily_bin1744.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.61
user 0.32
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/595761/ft1_filtered_4FGL_J2234.2-4156_daily_bin1744.fits evtable="EVENTS" scfile=/scratch/kocevski/595761/ft2_4FGL_J2234.2-4156_daily_bin1744.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/595761/Model_4FGL_J2234.2-4156_daily_bin1744.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/595761/ft1_filtered_4FGL_J2234.2-4156_daily_bin1744.fits.....................!
real 42.56
user 40.93
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/595761/ft1_filtered_4FGL_J2234.2-4156_daily_bin1744.fits', '/scratch/kocevski/595761/ft2_4FGL_J2234.2-4156_daily_bin1744.fits', expMap='/scratch/kocevski/595761/expmap_691372801_691632001_4FGL_J2234.2-4156_daily_bin1744.fits', expCube='/scratch/kocevski/595761/ltcube_691372801_691632001_4FGL_J2234.2-4156_daily_bin1744.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/595761/Model_4FGL_J2234.2-4156_daily_bin1744.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/595761/ft1_filtered_4FGL_J2234.2-4156_daily_bin1744.fits
Spacecraft file(s): /scratch/kocevski/595761/ft2_4FGL_J2234.2-4156_daily_bin1744.fits
Exposure map: /scratch/kocevski/595761/expmap_691372801_691632001_4FGL_J2234.2-4156_daily_bin1744.fits
Exposure cube: /scratch/kocevski/595761/ltcube_691372801_691632001_4FGL_J2234.2-4156_daily_bin1744.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/595761/Model_4FGL_J2234.2-4156_daily_bin1744.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) = 6978.01539019

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11398E-01   1.0000          .0000       .10000E+07
     2 'norm      '    42.353       1.0000          .0000       .10000E+07
     3 'Prefactor '    .64562E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    .37857E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    8.1108       1.0000          .0000       .10000E+07
     6 'Prefactor '    8.2011       1.0000          .0000       .10000E+07
     7 'Prefactor '    .68468       1.0000          .0000       .10000E+07
     8 'norm      '    .90589E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.5745       1.0000          .0000       .10000E+07
    10 'Prefactor '    .42047E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .11144       1.0000          .0000       .10000E+07
    12 'Prefactor '    1.3551       1.0000          .0000       .10000E+07
    13 'Prefactor '    21.334       1.0000          .0000       .10000E+07
    14 'Prefactor '    30.939       1.0000          .0000       .10000E+07
    15 'Prefactor '    17.575       1.0000          .0000       .10000E+07
    16 'Prefactor '    9.7146       1.0000          .0000       .10000E+07
    17 'Prefactor '    .18801E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    3.5023       1.0000          .0000       .10000E+07
    19 'Prefactor '    .12920E-03   1.0000          .0000       .10000E+07
    20 'norm      '    .34826E-04   1.0000          .0000       .10000E+07
    21 'norm      '    2.9666       1.0000          .0000       .10000E+07
    22 'norm      '    .23847E-04   1.0000          .0000       .10000E+07
    23 'norm      '    .12545E-05   1.0000          .0000       .10000E+07
    24 'Prefactor '    7.9757       1.0000          .0000       .10000E+07
    25 'Prefactor '    17.755       1.0000          .0000       .10000E+07
    26 'norm      '    10.335       1.0000          .0000       .10000E+07
    27 'Prefactor '    .56602E-04   1.0000          .0000       .10000E+07
    28 'norm      '    1.2853       1.0000          .0000       .10000E+07
    29 'Normalizat'    .55190       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.4855       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=   6977.933     FROM MIGRAD    STATUS=CONVERGED    199 CALLS     2236 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12768E-08    22.061        .11900E-06** at limit **
   2  norm          42.327        6.9246       -.51880E-07   -.74475E-01
   3  Prefactor     .11020E-05    32.418        .32570E-06** at limit **
   4  Prefactor     .38858E-09    14.696        .53195E-07** at limit **
   5  Prefactor     8.2033        2.9422       -.25684E-07   -.41788E-02
   6  Prefactor     8.1977        7.8164        .79613E-10    .18626E-01
   7  Prefactor     .16986E-07    298.61       -.10470E-06** at limit **
   8  norm          .33307E-09    6.1604        .27659E-07** at limit **
   9  Prefactor     1.5458        8.2670       -.25320E-06    .12086E-01
  10  Prefactor     .11102E-09    3.9863       -.60208E-07** at limit **
  11  Prefactor     .59119E-07    46.953       -.21233E-06** at limit **
  12  Prefactor     1.4194        6.3694        .11140E-06    .96217E-03
  13  Prefactor     21.273        5.7965       -.16935E-07    .43852E-01
  14  Prefactor     30.719        11.924        .42690E-07    .76402E-02
  15  Prefactor     17.273        22.097        .96264E-07    .75333E-02
  16  Prefactor     9.6622        2.7603        .22762E-08   -.20735E-02
  17  Prefactor     .55511E-10    2.5589       -.46124E-07** at limit **
  18  Prefactor     3.2204        23.209        .26532E-06   -.50313E-03
  19  Prefactor     .16653E-09    6.4800        .20483E-06** at limit **
  20  norm           .0000        2.5870       -.49909E-07** at limit **
  21  norm          2.9663        3.0432        .23102E-07    .30399E-03
  22  norm           .0000        2.0374        .48279E-07** at limit **
  23  norm          .94369E-09    5.6388       -.10505E-06** at limit **
  24  Prefactor     8.0537        4.6217        .45114E-07    .10169E-02
  25  Prefactor     17.172        32.484        .19659E-06   -.47049E-02
  26  norm          10.393        5.9104       -.58559E-07    .13468E-02
  27  Prefactor      .0000        2.9488        .29979E-07** at limit **
  28  norm          1.2768        4.6330        .29338E-07    .99372E-04
  29  Normalizat    .55248        .22183        .29057E-05    .23123E-05
  30  Prefactor     1.4859        .21316       -.20595E-05   -.20959E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.27676e-09
  norm       = 42.3271
  Prefactor  = 1.10195e-06
  Prefactor  = 3.88578e-10
  Prefactor  = 8.20326
  Prefactor  = 8.19773
  Prefactor  = 1.69864e-08
  norm       = 3.33067e-10
  Prefactor  = 1.54577
  Prefactor  = 1.11022e-10
  Prefactor  = 5.91194e-08
  Prefactor  = 1.41939
  Prefactor  = 21.273
  Prefactor  = 30.7194
  Prefactor  = 17.273
  Prefactor  = 9.66221
  Prefactor  = 5.55112e-11
  Prefactor  = 3.22044
  Prefactor  = 1.66533e-10
  norm       = 0
  norm       = 2.96631
  norm       = 0
  norm       = 9.4369e-10
  Prefactor  = 8.05369
  Prefactor  = 17.1722
  norm       = 10.3926
  Prefactor  = 0
  norm       = 1.27677
  Normalizat = 0.552478
  Prefactor  = 1.48588
 **********
 **   18 **HESSE 
 **********

 FCN=   6977.933     FROM HESSE     STATUS=OK           658 CALLS     2894 TOTAL
                     EDM=   .71E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12768E-08    22.078        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          42.327        8.6789        .15367E-03   -1.5578    
   3  Prefactor     .11020E-05    3.6096        .10344E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .38858E-09    14.598        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.2033        54.995        .35180E-03   -1.5651    
   6  Prefactor     8.1977        9.0078        .34985E-03   -1.5651    
   7  Prefactor     .16986E-07    298.74        .61961E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .33307E-09    6.2058        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.5458        13.766        .84655E-03   -1.5683    
  10  Prefactor     .11102E-09    3.9537        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .59119E-07    52.628        .13632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.4194        6.9543        .93871E-03   -1.5684    
  13  Prefactor     21.273        18.894        .21657E-03   -1.5616    
  14  Prefactor     30.719        24.903        .17981E-03   -1.5597    
  15  Prefactor     17.273        26.378        .23863E-03   -1.5625    
  16  Prefactor     9.6622        10.428        .32127E-03   -1.5646    
  17  Prefactor     .55511E-10    2.5586        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.2204        105.64        .54000E-03   -1.5672    
  19  Prefactor     .16653E-09    6.5025        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm           .0000        2.5879        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.9663        3.0351        .58928E-03   -1.5674    
  22  norm           .0000        2.0369        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .94369E-09    5.6923        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.0537        4.6222        .35479E-03   -1.5651    
  25  Prefactor     17.172        37.853        .23742E-03   -1.5625    
  26  norm          10.393        6.2348        .31143E-03   -1.5643    
  27  Prefactor      .0000        2.9506        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          1.2768        4.7617        .97758E-03   -1.5685    
  29  Normalizat    .55248        .20257        .78593E-01   -1.1004    
  30  Prefactor     1.4859        .18346        .50288E-01   -.77936    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.08789e-08
Minuit parameter uncertainties:
  1  0.000338679
  2  8.67892
  3  0.00398876
  4  0.000149646
  5  42.4807
  6  9.0078
  7  0.00450455
  8  9.44435e-05
  9  9.22584
  10  3.80927e-05
  11  0.00352757
  12  6.28359
  13  18.8941
  14  24.9031
  15  26.3787
  16  10.4279
  17  1.8079e-05
  18  36.8903
  19  6.99831e-05
  20  1.48612e-05
  21  3.03515
  22  1.31235e-05
  23  0.00014576
  24  4.62219
  25  37.8536
  26  6.23478
  27  5.08639e-06
  28  4.7617
  29  0.202843
  30  0.183542
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  5.912e-08  3.528e-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:  1.486e+00  1.835e-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:  5.525e-01  2.028e-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: 6.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/595761/likelihoodResults_691372801_691632001_4FGL_J2234.2-4156_daily_bin1744.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) = 6977.9420826
delta logL = -0.00912740681451

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6977.39496367
delta logL = 0.537991519178

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6977.395     FROM MIGRAD    STATUS=FAILED       101 CALLS      280 TOTAL
                     EDM=   .94E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1711        56.504        .21425E-04    .24732E-02
   2  Index         3.6782        6.7459        .47793E-02    .98003E-03
   3  Normalizat    .48477        .17073        .37068E-03   -.33737E-06
   4  Prefactor     1.5219        .16873        .22008E-03   -.77487E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6977.395     FROM SIMPLEX   STATUS=UNCHANGED     95 CALLS      375 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1711        56.504        .20864E-04    .24732E-02
   2  Index         3.6782        6.7459        .14400E-02    .98003E-03
   3  Normalizat    .48477        .17073        .27093E-03   -.33737E-06
   4  Prefactor     1.5219        .16873        .62257E-04   -.77487E-06
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6977.395     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      407 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1711        20.391        .42851E-05    .91797E-04
   2  Index         3.6782        2.7961        .95586E-03    .38942E-04
   3  Normalizat    .48477        .21949        .14827E-04   -.30670E-06
   4  Prefactor     1.5219        .21540        .88030E-05   -.77487E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.17105
  Index      = 3.67823
  Normalizat = 0.484766
  Prefactor  = 1.52191
 **********
 **   18 **HESSE 
 **********

 FCN=   6977.395     FROM HESSE     STATUS=OK            27 CALLS      434 TOTAL
                     EDM=   .59E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1711        6.3054        .85701E-06   -1.5686    
   2  Index         3.6782        1.6254        .19117E-03   -.26753    
   3  Normalizat    .48477        .21901        .29654E-05   -1.1313    
   4  Prefactor     1.5219        .21432        .17606E-05   -.76928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.85937e-15
Minuit parameter uncertainties:
  1  5.4347
  2  1.65785
  3  0.219402
  4  0.214451
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/595761': 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) = 6977.39495996
delta logL = 0.53799523526

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.171e+00  5.435e+00  0.000e+00  1.000e+06 ( 1.000e-14)
286        Index:  3.678e+00  1.658e+00  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:  1.522e+00  2.145e-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:  4.848e-01  2.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.24
Ra Dec: 338.568 -41.941
Photon Index (Free Index): 3.68 +/- 1.66
Photon Flux (Free Index): 5.07e-08 +/- 5.37e-08
Energy Flux (Free Index): 8.08e-06 +/- 8.75e-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/595761/cmap_HighResolution_691372801_691632001_4FGL_J2234.2-4156_daily_bin1744.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.61e-03', comment='SUCCESS', energy_flux2='8.08e-06', dlogl='5.38e-01', photon_flux2='5.07e-08', job_status='DONE', time_completed='2022-12-02 02:09:02.049143', photon_index_error2='1.66', photon_index2='3.68', ts='-0.00', fit_tolerance='1e-08', GAL='1.49', photon_index_error='0.00', photon_flux_upper_limit='6.14e-08', energy_flux_error2='8.75e-06', EG='0.55', time_epoch_completed='1669975742.05', return_code='0', job_id='595761', GAL2='1.52', EG2='0.48', return_code2='0', photon_flux_error2='5.37e-08', ts2='1.24', photon_index='1.99' WHERE bin_id='1744' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec  2 02:09:02 PST 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 595761: <4FGL_J2234.2-4156_daily_bin1744> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1744> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Fri Dec  2 01:55:29 2022
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec  2 01:55:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec  2 01:55:30 2022
Terminated at Fri Dec  2 02:09:02 2022
Results reported at Fri Dec  2 02:09:02 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1744 338.568 -41.9411 691372801 691632001 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 :                                   595.12 sec.
    Max Memory :                                 1158 MB
    Average Memory :                             265.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            813 sec.

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

