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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1745
RA = 338.568, Dec = -41.9411
tmin = 691632001, tmax = 691891201
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='657676', job_status='RUN', time_executed='2022-12-05 01:28:57.238783', time_epoch_executed='1670232537.24' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/657676

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/657676/ft1_4FGL_J2234.2-4156_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/657676/ft2_4FGL_J2234.2-4156_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/657676/ft1_4FGL_J2234.2-4156_daily_bin1745.fits outfile=/scratch/kocevski/657676/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1745.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=691632001.0 tmax=691891201.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.35
user 2.14
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/657676/ft2_4FGL_J2234.2-4156_daily_bin1745.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/657676/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1745.fits evtable="EVENTS" outfile="/scratch/kocevski/657676/ft1_filtered_4FGL_J2234.2-4156_daily_bin1745.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 521

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/657676/ft1_filtered_4FGL_J2234.2-4156_daily_bin1745.fits" evtable="EVENTS" scfile=/scratch/kocevski/657676/ft2_4FGL_J2234.2-4156_daily_bin1745.fits sctable="SC_DATA" outfile=/scratch/kocevski/657676/ltcube_691632001_691891201_4FGL_J2234.2-4156_daily_bin1745.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/657676/ft2_4FGL_J2234.2-4156_daily_bin1745.fits
.....................!
real 12.43
user 12.08
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/657676/ft1_filtered_4FGL_J2234.2-4156_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/657676/ft2_4FGL_J2234.2-4156_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/657676/ltcube_691632001_691891201_4FGL_J2234.2-4156_daily_bin1745.fits outfile=/scratch/kocevski/657676/expmap_691632001_691891201_4FGL_J2234.2-4156_daily_bin1745.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/657676/ltcube_691632001_691891201_4FGL_J2234.2-4156_daily_bin1745.fits
.....................!
real 191.04
user 185.18
sys 5.43

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/657676/ft1_filtered_4FGL_J2234.2-4156_daily_bin1745.fits scfile=/scratch/kocevski/657676/ft2_4FGL_J2234.2-4156_daily_bin1745.fits outfile=/scratch/kocevski/657676/cmap_691632001_691891201_4FGL_J2234.2-4156_daily_bin1745.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/657676/ft1_filtered_4FGL_J2234.2-4156_daily_bin1745.fits scfile=/scratch/kocevski/657676/ft2_4FGL_J2234.2-4156_daily_bin1745.fits outfile=/scratch/kocevski/657676/cmap_HighResolution_691632001_691891201_4FGL_J2234.2-4156_daily_bin1745.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/657676/ft1_filtered_4FGL_J2234.2-4156_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/657676/ft2_4FGL_J2234.2-4156_daily_bin1745.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/657676/Model_4FGL_J2234.2-4156_daily_bin1745.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/657676/ft1_filtered_4FGL_J2234.2-4156_daily_bin1745.fits.....................!
real 46.20
user 44.87
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.020       1.0000          .0000       .10000E+07
     2 'norm      '    25.894       1.0000          .0000       .10000E+07
     3 'Prefactor '    .82245E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    6.4234       1.0000          .0000       .10000E+07
     5 'Prefactor '    22.576       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.4394       1.0000          .0000       .10000E+07
     7 'Prefactor '    .13256E-02   1.0000          .0000       .10000E+07
     8 'norm      '    1.6411       1.0000          .0000       .10000E+07
     9 'Prefactor '    5.9151       1.0000          .0000       .10000E+07
    10 'Prefactor '    9.2103       1.0000          .0000       .10000E+07
    11 'Prefactor '    .41331E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .14077E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .41568E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    .93107E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    11.672       1.0000          .0000       .10000E+07
    16 'Prefactor '    22.951       1.0000          .0000       .10000E+07
    17 'Prefactor '    .93766E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    1.0965       1.0000          .0000       .10000E+07
    19 'Prefactor '    4.5207       1.0000          .0000       .10000E+07
    20 'norm      '    .99139E-03   1.0000          .0000       .10000E+07
    21 'norm      '    .32791E-03   1.0000          .0000       .10000E+07
    22 'norm      '    .75536E-05   1.0000          .0000       .10000E+07
    23 'norm      '    .66475E-06   1.0000          .0000       .10000E+07
    24 'Prefactor '    3.4473       1.0000          .0000       .10000E+07
    25 'Prefactor '    23.692       1.0000          .0000       .10000E+07
    26 'norm      '    1.4760       1.0000          .0000       .10000E+07
    27 'Prefactor '    .55109E-04   1.0000          .0000       .10000E+07
    28 'norm      '    .36837E-05   1.0000          .0000       .10000E+07
    29 'Normalizat'    1.0283       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .87299       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=   5736.997     FROM MIGRAD    STATUS=CONVERGED    244 CALLS     2242 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.852        60.483       -.16252E-05    .20945E-01
   2  norm          25.977        8.3523        .70221E-07    .45968E-02
   3  Prefactor     .49960E-08    6.4514       -.10712E-05** at limit **
   4  Prefactor     6.4336        8.6608       -.42876E-06   -.17941E-02
   5  Prefactor     24.235        32.018        .22752E-06    .47257E-02
   6  Prefactor     2.3795        7.3787        .85613E-06    .37199E-03
   7  Prefactor     .46991E-05    281.76       -.77930E-05** at limit **
   8  norm          1.6284        7.1502       -.58429E-06    .52919E-03
   9  Prefactor     5.9228        8.2496       -.39166E-07    .33334E-02
  10  Prefactor     9.3114        5.2133       -.56933E-07    .22679E-02
  11  Prefactor     .27756E-08    28.288       -.11551E-05** at limit **
  12  Prefactor      .0000        1.3201        .27969E-06** at limit **
  13  Prefactor     .20136E-05    56.673        .38748E-05** at limit **
  14  Prefactor     .18929E-07    32.870        .10342E-05** at limit **
  15  Prefactor     12.038        19.487        .29244E-06   -.26861E-02
  16  Prefactor     23.352        7.3061       -.38851E-06    .14251    
  17  Prefactor      .0000        2.1705       -.45851E-06** at limit **
  18  Prefactor     .28192E-02    353.67       -.58041E-05** at limit **
  19  Prefactor     4.5646        10.128        .59064E-06    .37560E-01
  20  norm          .99920E-09    4.2261        .37685E-06** at limit **
  21  norm           .0000        2.3476       -.26613E-07** at limit **
  22  norm           .0000        2.9569       -.60976E-07** at limit **
  23  norm           .0000        3.9963        .25521E-06** at limit **
  24  Prefactor     3.4433        3.9582       -.28391E-06   -.22052E-03
  25  Prefactor     24.423        12.935        .88635E-07   -.32737E-01
  26  norm          1.4617        2.7180       -.37142E-06    .34286E-03
  27  Prefactor     .61062E-09    7.0964        .78697E-06** at limit **
  28  norm           .0000        2.2018       -.52795E-06** at limit **
  29  Normalizat    1.0251        .22136       -.80580E-05   -.97522E-04
  30  Prefactor     .87426        .20316        .69481E-05   -.10012E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.8518
  norm       = 25.9771
  Prefactor  = 4.996e-09
  Prefactor  = 6.43364
  Prefactor  = 24.2353
  Prefactor  = 2.37951
  Prefactor  = 4.69907e-06
  norm       = 1.62844
  Prefactor  = 5.92282
  Prefactor  = 9.3114
  Prefactor  = 2.77556e-09
  Prefactor  = 0
  Prefactor  = 2.01356e-06
  Prefactor  = 1.89293e-08
  Prefactor  = 12.0381
  Prefactor  = 23.3522
  Prefactor  = 0
  Prefactor  = 0.00281923
  Prefactor  = 4.56463
  norm       = 9.99201e-10
  norm       = 0
  norm       = 0
  norm       = 0
  Prefactor  = 3.44334
  Prefactor  = 24.4235
  norm       = 1.46171
  Prefactor  = 6.10623e-10
  norm       = 0
  Normalizat = 1.02508
  Prefactor  = 0.874265
 **********
 **   18 **HESSE 
 **********

 FCN=   5736.997     FROM HESSE     STATUS=OK           658 CALLS     2900 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.852        71.373        .27735E-03   -1.5639    
   2  norm          25.977        8.5266        .19656E-03   -1.5606    
   3  Prefactor     .49960E-08    6.4526        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.4336        8.6685        .39577E-03   -1.5657    
   5  Prefactor     24.235        34.371        .21052E-03   -1.5610    
   6  Prefactor     2.3795        7.4555        .65481E-03   -1.5677    
   7  Prefactor     .46991E-05    285.82        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.6284        7.1901        .82444E-03   -1.5682    
   9  Prefactor     5.9228        8.3144        .41266E-03   -1.5659    
  10  Prefactor     9.3114        5.2165        .32999E-03   -1.5647    
  11  Prefactor     .27756E-08    28.306        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        1.3228        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .20136E-05    15.499        .10303E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .18929E-07    32.883        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.038        19.511        .29297E-03   -1.5639    
  16  Prefactor     23.352        12.684        .20879E-03   -1.5611    
  17  Prefactor      .0000        2.1682        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .28192E-02    30.145        .14607E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.5646        11.217        .47327E-03   -1.5665    
  20  norm          .99920E-09    4.2357        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm           .0000        2.3488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm           .0000        2.9533        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm           .0000        3.9973        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.4433        3.9631        .54448E-03   -1.5671    
  25  Prefactor     24.423        33.476        .20549E-03   -1.5609    
  26  norm          1.4617        2.8930        .88361E-03   -1.5684    
  27  Prefactor     .61062E-09    7.0925        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm           .0000        2.1989        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0251        .19426        .42342E-01   -.92195    
  30  Prefactor     .87426        .17556        .44660E-01   -.97046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00987e-07
Minuit parameter uncertainties:
  1  58.1698
  2  8.52662
  3  0.000359822
  4  8.6685
  5  34.3713
  6  7.45558
  7  0.0732993
  8  6.84358
  9  8.31444
  10  5.21653
  11  0.000561444
  12  3.91381e-06
  13  0.0111727
  14  0.00157752
  15  19.5113
  16  12.6838
  17  2.38269e-06
  18  0.583045
  19  11.2166
  20  0.00013085
  21  3.37046e-06
  22  7.91795e-06
  23  1.15516e-05
  24  3.96315
  25  33.4761
  26  2.89302
  27  0.000128643
  28  2.1225e-06
  29  0.194393
  30  0.17567
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  2.776e-09  5.614e-04  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:  8.743e-01  1.757e-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.025e+00  1.944e-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: 4.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/657676/likelihoodResults_691632001_691891201_4FGL_J2234.2-4156_daily_bin1745.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) = 5737.01372606
delta logL = -0.0170357727629

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5736.97994106
delta logL = 0.0167492219325

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23769       1.0000          .0000       .10000E+07
     2 'Index     '    3.6099       1.0000          .0000       10.000    
     3 'Normalizat'    1.0154       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87894       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=   5736.980     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      241 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23756        7.9735        .25740E-02** at limit **
   2  Index         3.6099        1.7193        .21015       -.13618E-03
   3  Normalizat    1.0153        .13473E-01    .44138E-01   -.47552E-04
   4  Prefactor     .87898        .12756E-01    .44736E-01   -.23357E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.237563
  Index      = 3.60993
  Normalizat = 1.01533
  Prefactor  = 0.878985
 **********
 **   18 **HESSE 
 **********

 FCN=   5736.980     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      276 TOTAL
                     EDM=   .93E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23756        308.65        .14134E-03   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.6099        7.0822        .91622E-02   -.28173    
   3  Normalizat    1.0153        .10473        .24881E-03   -.92519    
   4  Prefactor     .87898        .98735E-01    .25004E-03   -.96879    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.3116e-07
Minuit parameter uncertainties:
  1  17.1267
  2  25.9993
  3  0.104749
  4  0.0987553
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/657676': 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) = 5736.97994103
delta logL = 0.0167492568489

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  2.376e-01  1.713e+01  0.000e+00  1.000e+06 ( 1.000e-14)
286        Index:  3.610e+00  2.600e+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:  8.790e-01  9.876e-02  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.015e+00  1.047e-01  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/657676/cmap_HighResolution_691632001_691891201_4FGL_J2234.2-4156_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.69e-03', job_status='DONE', photon_flux_upper_limit='4.93e-08', time_completed='2022-12-05 01:39:31.087629', job_id='657676', GAL2='0.88', fit_tolerance='1e-08', EG2='1.02', EG='1.03', time_epoch_completed='1670233171.09', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.67e-02', ts2='0.04', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1745' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 01:39:31 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 657676: <4FGL_J2234.2-4156_daily_bin1745> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1745> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Dec  5 01:25:17 2022
Job was executed on host(s) <bullet0190>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 01:25:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 01:25:18 2022
Terminated at Mon Dec  5 01:39:31 2022
Results reported at Mon Dec  5 01:39:31 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1745 338.568 -41.9411 691632001 691891201 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 :                                   636.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            854 sec.

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

