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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1766
RA = 338.568, Dec = -41.9411
tmin = 697075201, tmax = 697334401
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='860760', job_status='RUN', time_executed='2023-02-06 01:31:59.483109', time_epoch_executed='1675675919.48' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1766'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/860760

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/860760/ft1_4FGL_J2234.2-4156_daily_bin1766.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/860760/ft2_4FGL_J2234.2-4156_daily_bin1766.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/860760/ft1_4FGL_J2234.2-4156_daily_bin1766.fits outfile=/scratch/kocevski/860760/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1766.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=697075201.0 tmax=697334401.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.13
user 2.82
sys 0.21

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

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

Number of photons that the gtmktime cut: 415

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/860760/ft1_filtered_4FGL_J2234.2-4156_daily_bin1766.fits" evtable="EVENTS" scfile=/scratch/kocevski/860760/ft2_4FGL_J2234.2-4156_daily_bin1766.fits sctable="SC_DATA" outfile=/scratch/kocevski/860760/ltcube_697075201_697334401_4FGL_J2234.2-4156_daily_bin1766.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/860760/ft2_4FGL_J2234.2-4156_daily_bin1766.fits
.....................!
real 12.80
user 12.31
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/860760/ft1_filtered_4FGL_J2234.2-4156_daily_bin1766.fits evtable="EVENTS" scfile=/scratch/kocevski/860760/ft2_4FGL_J2234.2-4156_daily_bin1766.fits sctable="SC_DATA" expcube=/scratch/kocevski/860760/ltcube_697075201_697334401_4FGL_J2234.2-4156_daily_bin1766.fits outfile=/scratch/kocevski/860760/expmap_697075201_697334401_4FGL_J2234.2-4156_daily_bin1766.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/860760/ltcube_697075201_697334401_4FGL_J2234.2-4156_daily_bin1766.fits
.....................!
real 158.03
user 153.73
sys 3.87

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/860760/ft1_filtered_4FGL_J2234.2-4156_daily_bin1766.fits scfile=/scratch/kocevski/860760/ft2_4FGL_J2234.2-4156_daily_bin1766.fits outfile=/scratch/kocevski/860760/cmap_697075201_697334401_4FGL_J2234.2-4156_daily_bin1766.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.48
user 0.34
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/860760/ft1_filtered_4FGL_J2234.2-4156_daily_bin1766.fits scfile=/scratch/kocevski/860760/ft2_4FGL_J2234.2-4156_daily_bin1766.fits outfile=/scratch/kocevski/860760/cmap_HighResolution_697075201_697334401_4FGL_J2234.2-4156_daily_bin1766.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.49
user 0.34
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/860760/ft1_filtered_4FGL_J2234.2-4156_daily_bin1766.fits evtable="EVENTS" scfile=/scratch/kocevski/860760/ft2_4FGL_J2234.2-4156_daily_bin1766.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/860760/Model_4FGL_J2234.2-4156_daily_bin1766.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/860760/ft1_filtered_4FGL_J2234.2-4156_daily_bin1766.fits.....................!
real 32.50
user 31.39
sys 1.01

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32956E-02   1.0000          .0000       .10000E+07
     2 'norm      '    7.3043       1.0000          .0000       .10000E+07
     3 'Prefactor '    3.5424       1.0000          .0000       .10000E+07
     4 'Prefactor '    .75359E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .83351E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .10083E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    77.552       1.0000          .0000       .10000E+07
     8 'norm      '    .21277E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .98213E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    2.2585       1.0000          .0000       .10000E+07
    11 'Prefactor '    .11927E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .21648E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    3.5740       1.0000          .0000       .10000E+07
    14 'Prefactor '    .27762E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .52727E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    6.1073       1.0000          .0000       .10000E+07
    17 'Prefactor '    .12816E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .31342       1.0000          .0000       .10000E+07
    19 'Prefactor '    .15484E-02   1.0000          .0000       .10000E+07
    20 'norm      '    .33159E-05   1.0000          .0000       .10000E+07
    21 'norm      '    .72554E-04   1.0000          .0000       .10000E+07
    22 'norm      '    .29973E-04   1.0000          .0000       .10000E+07
    23 'norm      '    .10009E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    .61513E-04   1.0000          .0000       .10000E+07
    25 'Prefactor '    27.914       1.0000          .0000       .10000E+07
    26 'norm      '    1.4445       1.0000          .0000       .10000E+07
    27 'Prefactor '    .20388E-02   1.0000          .0000       .10000E+07
    28 'norm      '    1.0107       1.0000          .0000       .10000E+07
    29 'Normalizat'    1.2967       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .78990       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=   4556.156     FROM MIGRAD    STATUS=CONVERGED    191 CALLS     2781 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12829E-05    10.160        .12088E-06** at limit **
   2  norm          7.3273        5.3003       -.26641E-07    .25994E-03
   3  Prefactor     3.5334        7.6991       -.19279E-07    .34230E-04
   4  Prefactor     .55511E-10    3.2628       -.45408E-07** at limit **
   5  Prefactor     .13212E-06    4.1069       -.12951E-06** at limit **
   6  Prefactor     .15515E-06    4.0530       -.30277E-06** at limit **
   7  Prefactor     77.557        4.8327        .26880E-06   -.43938E-01
   8  norm          .22691E-05    5.8029        .47091E-06** at limit **
   9  Prefactor     .15579E-05    5.3836       -.72072E-06** at limit **
  10  Prefactor     2.2354        4.7623        .21440E-06    .26233E-03
  11  Prefactor     .10558E-06    63.792       -.20006E-05** at limit **
  12  Prefactor      .0000        1.9598        .25243E-06** at limit **
  13  Prefactor     3.4686        2.0729       -.23714E-06    .98327E-02
  14  Prefactor     .61062E-09    6.5539        .78651E-06** at limit **
  15  Prefactor     .15729E-05    14.076       -.55457E-06** at limit **
  16  Prefactor     6.0890        3.0197       -.22132E-06   -.34084E-03
  17  Prefactor     .13259E-05    5.6542       -.22729E-05** at limit **
  18  Prefactor     .51903E-07    3.6300       -.61850E-06** at limit **
  19  Prefactor     .27756E-09    4.4012       -.69363E-06** at limit **
  20  norm          .16653E-09    3.6804       -.46044E-06** at limit **
  21  norm           .0000        2.1744        .19174E-06** at limit **
  22  norm           .0000        1.9187        .20518E-06** at limit **
  23  norm          .13878E-06    4.3278       -.32211E-06** at limit **
  24  Prefactor      .0000        2.1264        .61436E-06** at limit **
  25  Prefactor     26.721        52.496       -.49042E-05    .10899E-01
  26  norm          1.5387        6.6359        .32145E-05    .27602E-02
  27  Prefactor     .74774E-07    11.886        .10616E-06** at limit **
  28  norm          1.0341        5.5620        .86768E-06   -.58085E-02
  29  Normalizat    1.2977        .25419       -.45519E-06    .69944E-04
  30  Prefactor     .78950        .23397       -.58916E-05    .35869E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.28292e-06
  norm       = 7.32729
  Prefactor  = 3.53339
  Prefactor  = 5.55112e-11
  Prefactor  = 1.32117e-07
  Prefactor  = 1.55154e-07
  Prefactor  = 77.5572
  norm       = 2.26913e-06
  Prefactor  = 1.55786e-06
  Prefactor  = 2.23535
  Prefactor  = 1.05582e-07
  Prefactor  = 0
  Prefactor  = 3.46858
  Prefactor  = 6.10623e-10
  Prefactor  = 1.57285e-06
  Prefactor  = 6.08904
  Prefactor  = 1.32594e-06
  Prefactor  = 5.19029e-08
  Prefactor  = 2.77556e-10
  norm       = 1.66533e-10
  norm       = 0
  norm       = 0
  norm       = 1.38778e-07
  Prefactor  = 0
  Prefactor  = 26.7212
  norm       = 1.53868
  Prefactor  = 7.47735e-08
  norm       = 1.03408
  Normalizat = 1.29774
  Prefactor  = 0.789504
 **********
 **   18 **HESSE 
 **********

 FCN=   4556.156     FROM HESSE     STATUS=OK           636 CALLS     3417 TOTAL
                     EDM=   .98E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12829E-05    20.738        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.3273        5.3017        .37088E-03   -1.5654    
   3  Prefactor     3.5334        7.7190        .53680E-03   -1.5670    
   4  Prefactor     .55511E-10    3.2613        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .13212E-06    14.987        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .15515E-06    15.218        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     77.557        94.125        .11356E-03   -1.5532    
   8  norm          .22691E-05    19.787        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .15579E-05    8.0520        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.2354        4.7985        .68331E-03   -1.5678    
  11  Prefactor     .10558E-06    63.933        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        1.9582        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.4686        44.595        .53432E-03   -1.5671    
  14  Prefactor     .61062E-09    16.012        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .15729E-05    21.906        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.0890        16.974        .40602E-03   -1.5659    
  17  Prefactor     .13259E-05    8.0308        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .51903E-07    75.354        .10029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .27756E-09    4.3964        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .16653E-09    3.6796        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm           .0000        2.1745        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm           .0000        1.9203        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .13878E-06    15.030        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor      .0000        2.1246        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     26.721        57.562        .18931E-03   -1.5605    
  26  norm          1.5387        8.0802        .89676E-03   -1.5683    
  27  Prefactor     .74774E-07    12.457        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          1.0341        5.7588        .44145E-03   -1.5688    
  29  Normalizat    1.2977        .21551        .50906E-01   -.83634    
  30  Prefactor     .78950        .19568        .43586E-01   -1.0012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.81932e-07
Minuit parameter uncertainties:
  1  0.0103161
  2  5.30175
  3  7.71906
  4  2.64098e-05
  5  0.00281441
  6  0.00307344
  7  94.1271
  8  0.0134013
  9  0.00708347
  10  4.79853
  11  0.00519596
  12  1.62561e-06
  13  24.8745
  14  0.00020027
  15  0.0117398
  16  16.974
  17  0.00652637
  18  0.00395453
  19  6.75163e-05
  20  4.67026e-05
  21  9.87123e-07
  22  2.12858e-06
  23  0.00288825
  24  4.08058e-06
  25  57.5628
  26  7.05205
  27  0.00192991
  28  4.8806
  29  0.215658
  30  0.195857
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.056e-07  5.196e-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:  7.895e-01  1.959e-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:  1.298e+00  2.157e-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: 7.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/860760/likelihoodResults_697075201_697334401_4FGL_J2234.2-4156_daily_bin1766.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) = 4556.16357803
delta logL = -0.0075543517396

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4555.46042976
delta logL = 0.695593924554

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .83992       1.0000          .0000       .10000E+07
     2 'Index     '    3.9889       1.0000          .0000       10.000    
     3 'Normalizat'    1.1820       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85408       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.

 FCN=   4555.460     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      230 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83895        13.468        .50006E-03    .20360E-01
   2  Index         3.9892        2.1280        .91843E-01    .26162E-03
   3  Normalizat    1.1820        .54656E-01    .52984E-01   -.28763E-04
   4  Prefactor     .85408        .50473E-01    .44417E-01   -.89626E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.838948
  Index      = 3.98919
  Normalizat = 1.18196
  Prefactor  = 0.854082
 **********
 **   18 **HESSE 
 **********

 FCN=   4555.460     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      263 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83895        30.240        .51880E-05   -1.5690    
   2  Index         3.9892        3.7708        .31753E-02   -.20357    
   3  Normalizat    1.1820        .23422        .23427E-03   -.87162    
   4  Prefactor     .85408        .21146        .25228E-03   -.97765    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.45162e-10
Minuit parameter uncertainties:
  1  10.0737
  2  4.3039
  3  0.234427
  4  0.21166
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/860760': 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) = 4555.46042967
delta logL = 0.695594012797

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  8.389e-01  1.007e+01  0.000e+00  1.000e+06 ( 1.000e-14)
286        Index:  3.989e+00  4.304e+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:  8.541e-01  2.117e-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:  1.182e+00  2.344e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.58
Ra Dec: 338.568 -41.941
Photon Index (Free Index): 3.99 +/- 4.30
Photon Flux (Free Index): 8.73e-08 +/- 8.15e-08
Energy Flux (Free Index): 1.31e-05 +/- 1.35e-05

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/860760/cmap_HighResolution_697075201_697334401_4FGL_J2234.2-4156_daily_bin1766.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.72e-03', comment='SUCCESS', energy_flux2='1.31e-05', dlogl='6.96e-01', photon_flux2='8.73e-08', job_status='DONE', time_completed='2023-02-06 01:40:30.725851', photon_index_error2='4.30', photon_index2='3.99', ts='-0.00', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='7.63e-08', energy_flux_error2='1.35e-05', EG='1.30', time_epoch_completed='1675676430.73', return_code='0', job_id='860760', GAL2='0.85', EG2='1.18', return_code2='102', photon_flux_error2='8.15e-08', ts2='1.58', photon_index='1.99' WHERE bin_id='1766' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb  6 01:40:30 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 860760: <4FGL_J2234.2-4156_daily_bin1766> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1766> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Feb  6 01:30:16 2023
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb  6 01:31:33 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb  6 01:31:33 2023
Terminated at Mon Feb  6 01:40:31 2023
Results reported at Mon Feb  6 01:40:31 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1766 338.568 -41.9411 697075201 697334401 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 :                                   511.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   537 sec.
    Turnaround time :                            615 sec.

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

