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


Performing analysis on: 4FGL_J1734.3+3858_daily_bin1733
RA = 263.598, Dec = 38.9763
tmin = 688521601, tmax = 688780801
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='826989', job_status='RUN', time_executed='2022-10-30 08:31:28.080495', time_epoch_executed='1667143888.08' WHERE source_name='4FGL J1734.3+3858' and cadence='daily' and bin_id='1733'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/826989

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/826989/ft1_4FGL_J1734.3+3858_daily_bin1733.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/826989/ft2_4FGL_J1734.3+3858_daily_bin1733.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/826989/ft1_4FGL_J1734.3+3858_daily_bin1733.fits outfile=/scratch/kocevski/826989/ft1_filteredMKT_4FGL_J1734.3+3858_daily_bin1733.fits ra=263.598 dec=38.9763 rad=12.0 tmin=688521601.0 tmax=688780801.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.54
user 3.32
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/826989/ft2_4FGL_J1734.3+3858_daily_bin1733.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/826989/ft2_4FGL_J1734.3+3858_daily_bin1733.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/826989/ft1_filteredMKT_4FGL_J1734.3+3858_daily_bin1733.fits evtable="EVENTS" outfile="/scratch/kocevski/826989/ft1_filtered_4FGL_J1734.3+3858_daily_bin1733.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.51
user 0.31
sys 0.17

Number of photons that the gtmktime cut: 765

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/826989/ft1_filtered_4FGL_J1734.3+3858_daily_bin1733.fits" evtable="EVENTS" scfile=/scratch/kocevski/826989/ft2_4FGL_J1734.3+3858_daily_bin1733.fits sctable="SC_DATA" outfile=/scratch/kocevski/826989/ltcube_688521601_688780801_4FGL_J1734.3+3858_daily_bin1733.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/826989/ft2_4FGL_J1734.3+3858_daily_bin1733.fits
.....................!
real 12.06
user 11.72
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/826989/ft1_filtered_4FGL_J1734.3+3858_daily_bin1733.fits evtable="EVENTS" scfile=/scratch/kocevski/826989/ft2_4FGL_J1734.3+3858_daily_bin1733.fits sctable="SC_DATA" expcube=/scratch/kocevski/826989/ltcube_688521601_688780801_4FGL_J1734.3+3858_daily_bin1733.fits outfile=/scratch/kocevski/826989/expmap_688521601_688780801_4FGL_J1734.3+3858_daily_bin1733.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/826989/ltcube_688521601_688780801_4FGL_J1734.3+3858_daily_bin1733.fits
.....................!
real 190.31
user 185.34
sys 4.58

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

Setting source of interest to:
4FGL J1734.3+3858 @ 263.598 38.9763

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/826989/ft1_filtered_4FGL_J1734.3+3858_daily_bin1733.fits scfile=/scratch/kocevski/826989/ft2_4FGL_J1734.3+3858_daily_bin1733.fits outfile=/scratch/kocevski/826989/cmap_688521601_688780801_4FGL_J1734.3+3858_daily_bin1733.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=263.598 yref=38.9763 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/826989/ft1_filtered_4FGL_J1734.3+3858_daily_bin1733.fits scfile=/scratch/kocevski/826989/ft2_4FGL_J1734.3+3858_daily_bin1733.fits outfile=/scratch/kocevski/826989/cmap_HighResolution_688521601_688780801_4FGL_J1734.3+3858_daily_bin1733.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=263.598 yref=38.9763 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/826989/ft1_filtered_4FGL_J1734.3+3858_daily_bin1733.fits evtable="EVENTS" scfile=/scratch/kocevski/826989/ft2_4FGL_J1734.3+3858_daily_bin1733.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/826989/Model_4FGL_J1734.3+3858_daily_bin1733.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/826989/ft1_filtered_4FGL_J1734.3+3858_daily_bin1733.fits.....................!
real 64.70
user 62.64
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/826989/ft1_filtered_4FGL_J1734.3+3858_daily_bin1733.fits', '/scratch/kocevski/826989/ft2_4FGL_J1734.3+3858_daily_bin1733.fits', expMap='/scratch/kocevski/826989/expmap_688521601_688780801_4FGL_J1734.3+3858_daily_bin1733.fits', expCube='/scratch/kocevski/826989/ltcube_688521601_688780801_4FGL_J1734.3+3858_daily_bin1733.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/826989/Model_4FGL_J1734.3+3858_daily_bin1733.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1734.3+3858'

4FGL J1734.3+3858
   Spectrum: LogParabola
325         norm:  8.023e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
326        alpha:  2.228e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
327         beta:  8.534e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  7.306e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/826989/ft1_filtered_4FGL_J1734.3+3858_daily_bin1733.fits
Spacecraft file(s): /scratch/kocevski/826989/ft2_4FGL_J1734.3+3858_daily_bin1733.fits
Exposure map: /scratch/kocevski/826989/expmap_688521601_688780801_4FGL_J1734.3+3858_daily_bin1733.fits
Exposure cube: /scratch/kocevski/826989/ltcube_688521601_688780801_4FGL_J1734.3+3858_daily_bin1733.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/826989/Model_4FGL_J1734.3+3858_daily_bin1733.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) = 8054.25126599

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .54457       1.0000          .0000       .10000E+07
     2 'norm      '    .38225E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .15660E-03   1.0000          .0000       .10000E+07
     4 'norm      '    8.0976       1.0000          .0000       .10000E+07
     5 'Prefactor '    .15932E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    3.5121       1.0000          .0000       .10000E+07
     7 'Prefactor '    .80413       1.0000          .0000       .10000E+07
     8 'norm      '    3.8247       1.0000          .0000       .10000E+07
     9 'norm      '    .89749       1.0000          .0000       .10000E+07
    10 'Prefactor '    .36874E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .10657       1.0000          .0000       .10000E+07
    12 'norm      '    11.444       1.0000          .0000       .10000E+07
    13 'norm      '    6.3185       1.0000          .0000       .10000E+07
    14 'Prefactor '    8.7280       1.0000          .0000       .10000E+07
    15 'norm      '    7.5999       1.0000          .0000       .10000E+07
    16 'Prefactor '    .91278E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .10465       1.0000          .0000       .10000E+07
    18 'norm      '    .81082E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .27368E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    .96661E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .79717       1.0000          .0000       .10000E+07
    22 'Prefactor '    .21424E-04   1.0000          .0000       .10000E+07
    23 'Prefactor '    50.524       1.0000          .0000       .10000E+07
    24 'norm      '    .47740E-08   1.0000          .0000       .10000E+07
    25 'norm      '    82.217       1.0000          .0000       .10000E+07
    26 'norm      '    14.591       1.0000          .0000       .10000E+07
    27 'Prefactor '    .18504E-04   1.0000          .0000       .10000E+07
    28 'Prefactor '    6.5504       1.0000          .0000       .10000E+07
    29 'Normalizat'    .87183       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .93249       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8054.234     FROM MIGRAD    STATUS=CONVERGED    204 CALLS     2857 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .54473        .17222       -.58265E-07    .16991E-01
   2  norm           .0000        6.2938       -.97500E-06** at limit **
   3  Prefactor     .11102E-09    5.8047       -.29016E-06** at limit **
   4  norm          8.0723        1.6262       -.72815E-06   -.41903E-02
   5  Prefactor      .0000        .64143       -.41984E-07** at limit **
   6  Prefactor     3.5117        1.2447        .21336E-07    .23014E-02
   7  Prefactor     .81279        2.3550       -.29966E-06   -.27463E-02
   8  norm          3.8243        1.6175        .28112E-06   -.31271E-01
   9  norm          .89750        .76996       -.56111E-07   -.10001E-02
  10  Prefactor     .66613E-09    4.3443       -.61853E-06** at limit **
  11  norm          .10640        .84146        .17707E-06** at limit **
  12  norm          11.458        9.0644       -.19222E-06   -.96858E-04
  13  norm          6.3187        1.9941       -.45719E-07   -.41301E-02
  14  Prefactor     8.7271        4.1073       -.16109E-06   -.43615E-02
  15  norm          7.6319        5.1143        .15436E-06    .35154E-02
  16  Prefactor     .22204E-09    29.306        .42819E-05** at limit **
  17  Prefactor     .36082E-08    73.856        .70721E-05** at limit **
  18  norm          .17236E-01    5.0413       -.57339E-05** at limit **
  19  Prefactor     .33307E-09    12.101        .34745E-06** at limit **
  20  Prefactor     .99920E-08    41.179       -.17002E-04** at limit **
  21  Prefactor     .79767        .98928       -.33826E-06   -.13745E-01
  22  Prefactor     .55511E-10    47.450        .91730E-05** at limit **
  23  Prefactor     50.999        50.965        .10240E-04    .16956E-01
  24  norm           .0000        .44704        .11921E-07** at limit **
  25  norm          82.273        21.892        .38463E-05   -.44253E-01
  26  norm          14.564        8.8500        .43060E-06    .51569E-02
  27  Prefactor     .55511E-10    2.7998       -.15617E-06** at limit **
  28  Prefactor     6.5426        4.1266        .49206E-07    .22038E-02
  29  Normalizat    .87154        .22751        .21091E-04    .18211E-04
  30  Prefactor     .93253        .14132       -.21089E-04   -.16354E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.544735
  norm       = 0
  Prefactor  = 1.11022e-10
  norm       = 8.07229
  Prefactor  = 0
  Prefactor  = 3.51172
  Prefactor  = 0.812794
  norm       = 3.82434
  norm       = 0.897505
  Prefactor  = 6.66134e-10
  norm       = 0.1064
  norm       = 11.4578
  norm       = 6.31873
  Prefactor  = 8.72705
  norm       = 7.63187
  Prefactor  = 2.22045e-10
  Prefactor  = 3.60822e-09
  norm       = 0.0172357
  Prefactor  = 3.33067e-10
  Prefactor  = 9.99201e-09
  Prefactor  = 0.797666
  Prefactor  = 5.55112e-11
  Prefactor  = 50.9987
  norm       = 0
  norm       = 82.2732
  norm       = 14.5645
  Prefactor  = 5.55112e-11
  Prefactor  = 6.54265
  Normalizat = 0.87154
  Prefactor  = 0.932527
 **********
 **   18 **HESSE 
 **********

 FCN=   8054.234     FROM HESSE     STATUS=OK           662 CALLS     3519 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .54473        .17196        .44909E-03   -1.5693    
   2  norm           .0000        6.3010        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .11102E-09    5.8067        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.0723        25.879        .35209E-03   -1.5651    
   5  Prefactor      .0000        .63650        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.5117        1.2558        .53921E-03   -1.5670    
   7  Prefactor     .81279        2.3800        .52627E-03   -1.5690    
   8  norm          3.8243        1.6186        .51584E-03   -1.5669    
   9  norm          .89750        .77251        .45934E-03   -1.5689    
  10  Prefactor     .66613E-09    4.3492        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10640        .42760        .21377E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.458        9.0798        .29589E-03   -1.5640    
  13  norm          6.3187        1.9994        .39909E-03   -1.5658    
  14  Prefactor     8.7271        4.1381        .33905E-03   -1.5649    
  15  norm          7.6319        5.1226        .36353E-03   -1.5653    
  16  Prefactor     .22204E-09    29.379        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .36082E-08    73.534        .13806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .17236E-01    3.6738        .56780E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .33307E-09    12.138        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .99920E-08    40.997        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .79767        13.243        .53146E-03   -1.5690    
  22  Prefactor     .55511E-10    47.182        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     50.999        54.760        .14070E-03   -1.5565    
  24  norm           .0000        .44650        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          82.273        61.420        .11029E-03   -1.5527    
  26  norm          14.564        9.2301        .26195E-03   -1.5632    
  27  Prefactor     .55511E-10    2.7977        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     6.5426        4.1237        .39187E-03   -1.5657    
  29  Normalizat    .87154        .19183        .71577E-01   -.97468    
  30  Prefactor     .93253        .11762        .45418E-01   -.95014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01473e-06
Minuit parameter uncertainties:
  1  0.171965
  2  1.28286e-05
  3  4.86178e-05
  4  25.879
  5  1.63211e-07
  6  1.25579
  7  2.37996
  8  1.61856
  9  0.772506
  10  0.000105469
  11  0.426598
  12  9.0798
  13  1.99942
  14  4.13807
  15  5.12262
  16  0.000166051
  17  0.00102635
  18  0.503273
  19  0.00013039
  20  0.00127956
  21  6.50039
  22  0.000123078
  23  54.7601
  24  4.81036e-06
  25  61.4206
  26  9.23015
  27  2.43272e-05
  28  4.12373
  29  0.191983
  30  0.117655
Done.

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

Extracting fit parameters...

4FGL J1734.3+3858
   Spectrum: LogParabola
325         norm:  7.632e+00  5.123e+00  0.000e+00  1.000e+06 ( 1.000e-12)
326        alpha:  2.228e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
327         beta:  8.534e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  7.306e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  9.325e-01  1.177e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  8.715e-01  1.920e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.16
Ra Dec: 263.598 38.976
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 4.42e-08 +/- 2.97e-08
Energy Flux (Fixed Index): 1.73e-05 +/- 1.16e-05

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) = 8053.82226266
delta logL = 0.411712097654

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8053.82167113
delta logL = 0.412303627627

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6654       1.0000          .0000       .10000E+07
     2 'alpha     '    2.9343       1.0000          .0000       5.0000    
     3 'Normalizat'    .82059       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95149       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8053.822     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      271 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6646        46.055        .42179E-03    .29405E-02
   2  alpha         2.9345        3.9549        .36113        .71559E-04
   3  Normalizat    .82035        .73580E-01    .73504E-01    .29733E-04
   4  Prefactor     .95169        .39661E-01    .45658E-01    .33779E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.66465
  alpha      = 2.93453
  Normalizat = 0.820349
  Prefactor  = 0.951689
 **********
 **   18 **HESSE 
 **********

 FCN=   8053.822     FROM HESSE     STATUS=OK            33 CALLS      304 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6646        5.6968        .10756E-04   -1.5660    
   2  alpha         2.9345        .88614        .12665E-01    .17470    
   3  Normalizat    .82035        .22488        .32530E-03   -.99318    
   4  Prefactor     .95169        .14066        .19453E-03   -.94358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11033e-08
Minuit parameter uncertainties:
  1  5.69684
  2  0.906479
  3  0.225136
  4  0.140714
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/826989': 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) = 8053.82167004
delta logL = 0.412304718512

Extracting fit parameters...

4FGL J1734.3+3858
   Spectrum: LogParabola
325         norm:  5.665e+00  5.697e+00  0.000e+00  1.000e+06 ( 1.000e-12)
326        alpha:  2.935e+00  9.065e-01  0.000e+00  5.000e+00 ( 1.000e+00)
327         beta:  8.534e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  7.306e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  9.517e-01  1.407e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  8.203e-01  2.251e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.04
Ra Dec: 263.598 38.976
Photon Index (Free Index): 2.93 +/- 0.91
Photon Flux (Free Index): 8.19e-08 +/- 5.63e-08
Energy Flux (Free Index): 1.77e-05 +/- 9.43e-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/826989/cmap_HighResolution_688521601_688780801_4FGL_J1734.3+3858_daily_bin1733.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.42e-08', energy_flux2='1.77e-05', photon_flux_error='2.97e-08', dlogl='4.12e-01', energy_flux='1.73e-05', photon_flux2='8.19e-08', job_status='DONE', time_completed='2022-10-30 08:45:50.064063', photon_index_error2='0.91', photon_index2='2.93', ts='5.16', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='9.43e-06', EG='0.87', time_epoch_completed='1667144750.06', return_code='0', job_id='826989', GAL2='0.95', EG2='0.82', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='5.63e-08', ts2='6.04', photon_index='2.23' WHERE bin_id='1733' AND source_name='4FGL J1734.3+3858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Oct 30 08:45:50 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 826989: <4FGL_J1734.3+3858_daily_bin1733> in cluster <slac> Done

Job <4FGL_J1734.3+3858_daily_bin1733> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Oct 30 08:30:16 2022
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Oct 30 08:30:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Oct 30 08:30:18 2022
Terminated at Sun Oct 30 08:45:50 2022
Results reported at Sun Oct 30 08:45:50 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1734.3+3858_daily_bin1733 263.598 38.9763 688521601 688780801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1734.3+3858 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   861.28 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             320.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            934 sec.

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

