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


Performing analysis on: 4FGL_J2234.7+0943_daily_bin1776
RA = 338.691, Dec = 9.732
tmin = 699667201, tmax = 699926401
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='845116', job_status='RUN', time_executed='2023-03-08 01:22:18.469297', time_epoch_executed='1678267338.47' WHERE source_name='4FGL J2234.7+0943' and cadence='daily' and bin_id='1776'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/845116

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/845116/ft1_4FGL_J2234.7+0943_daily_bin1776.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/845116/ft2_4FGL_J2234.7+0943_daily_bin1776.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/845116/ft1_4FGL_J2234.7+0943_daily_bin1776.fits outfile=/scratch/kocevski/845116/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin1776.fits ra=338.691 dec=9.732 rad=12.0 tmin=699667201.0 tmax=699926401.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.91
user 3.67
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/845116/ft2_4FGL_J2234.7+0943_daily_bin1776.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/845116/ft2_4FGL_J2234.7+0943_daily_bin1776.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/845116/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin1776.fits evtable="EVENTS" outfile="/scratch/kocevski/845116/ft1_filtered_4FGL_J2234.7+0943_daily_bin1776.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.48
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 788

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/845116/ft1_filtered_4FGL_J2234.7+0943_daily_bin1776.fits" evtable="EVENTS" scfile=/scratch/kocevski/845116/ft2_4FGL_J2234.7+0943_daily_bin1776.fits sctable="SC_DATA" outfile=/scratch/kocevski/845116/ltcube_699667201_699926401_4FGL_J2234.7+0943_daily_bin1776.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/845116/ft2_4FGL_J2234.7+0943_daily_bin1776.fits
.....................!
real 11.85
user 11.50
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/845116/ft1_filtered_4FGL_J2234.7+0943_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/845116/ft2_4FGL_J2234.7+0943_daily_bin1776.fits sctable="SC_DATA" expcube=/scratch/kocevski/845116/ltcube_699667201_699926401_4FGL_J2234.7+0943_daily_bin1776.fits outfile=/scratch/kocevski/845116/expmap_699667201_699926401_4FGL_J2234.7+0943_daily_bin1776.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/845116/ltcube_699667201_699926401_4FGL_J2234.7+0943_daily_bin1776.fits
.....................!
real 190.52
user 185.24
sys 4.98

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

Setting source of interest to:
4FGL J2234.7+0943 @ 338.691 9.732

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/845116/ft1_filtered_4FGL_J2234.7+0943_daily_bin1776.fits scfile=/scratch/kocevski/845116/ft2_4FGL_J2234.7+0943_daily_bin1776.fits outfile=/scratch/kocevski/845116/cmap_699667201_699926401_4FGL_J2234.7+0943_daily_bin1776.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.691 yref=9.732 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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/845116/ft1_filtered_4FGL_J2234.7+0943_daily_bin1776.fits scfile=/scratch/kocevski/845116/ft2_4FGL_J2234.7+0943_daily_bin1776.fits outfile=/scratch/kocevski/845116/cmap_HighResolution_699667201_699926401_4FGL_J2234.7+0943_daily_bin1776.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.691 yref=9.732 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/845116/ft1_filtered_4FGL_J2234.7+0943_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/845116/ft2_4FGL_J2234.7+0943_daily_bin1776.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/845116/Model_4FGL_J2234.7+0943_daily_bin1776.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/845116/ft1_filtered_4FGL_J2234.7+0943_daily_bin1776.fits.....................!
real 86.61
user 85.28
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/845116/ft1_filtered_4FGL_J2234.7+0943_daily_bin1776.fits', '/scratch/kocevski/845116/ft2_4FGL_J2234.7+0943_daily_bin1776.fits', expMap='/scratch/kocevski/845116/expmap_699667201_699926401_4FGL_J2234.7+0943_daily_bin1776.fits', expCube='/scratch/kocevski/845116/ltcube_699667201_699926401_4FGL_J2234.7+0943_daily_bin1776.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/845116/Model_4FGL_J2234.7+0943_daily_bin1776.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2234.7+0943'

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  3.256e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  9.408e-01  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.647e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
282    Expfactor:  1.040e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
283       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/845116/ft1_filtered_4FGL_J2234.7+0943_daily_bin1776.fits
Spacecraft file(s): /scratch/kocevski/845116/ft2_4FGL_J2234.7+0943_daily_bin1776.fits
Exposure map: /scratch/kocevski/845116/expmap_699667201_699926401_4FGL_J2234.7+0943_daily_bin1776.fits
Exposure cube: /scratch/kocevski/845116/ltcube_699667201_699926401_4FGL_J2234.7+0943_daily_bin1776.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/845116/Model_4FGL_J2234.7+0943_daily_bin1776.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) = 8613.65254603

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6399       1.0000          .0000       .10000E+07
     2 'norm      '    .37173E-04   1.0000          .0000       .10000E+07
     3 'norm      '    2.0944       1.0000          .0000       .10000E+07
     4 'Prefactor '    6.2103       1.0000          .0000       .10000E+07
     5 'norm      '    2.8317       1.0000          .0000       .10000E+07
     6 'Prefactor '    9.2724       1.0000          .0000       .10000E+07
     7 'Prefactor '    33.103       1.0000          .0000       .10000E+07
     8 'Prefactor '    2.2093       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.3029       1.0000         .10000E-03   10000.    
    10 'norm      '    .40523E-08   1.0000          .0000       .10000E+07
    11 'Prefactor '    19.561       1.0000          .0000       .10000E+07
    12 'Prefactor '    .23324E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .48184       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .48897E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    5.8554       1.0000          .0000       .10000E+07
    16 'Prefactor '    .92223E-04   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.2965       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .84509       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8613.596     FROM MIGRAD    STATUS=CONVERGED     94 CALLS     1277 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6430        2.2320        .10830E-05    .47647E-02
   2  norm          .94369E-09    9.2680       -.91860E-06** at limit **
   3  norm          2.0938        1.1573        .30126E-06    .10537E-01
   4  Prefactor     6.2980        1.0728        .24588E-06    .19844E-01
   5  norm          2.8319        5.4251        .92198E-06    .36713E-03
   6  Prefactor     9.5408        5.5449       -.39386E-05   -.50107E-01
   7  Prefactor     33.681        17.912       -.68257E-05    .36063E-01
   8  Prefactor     2.2078        .33587        .95175E-06   -.19624E-02
   9  Prefactor     7.3174        6.3105        .96407E-06    .62116E-04
  10  norm          .49960E-09    .64812       -.28553E-07** at limit **
  11  Prefactor     19.878        7.6449       -.37124E-05    .23211E-01
  12  Prefactor     .29177E-06    4.0108        .15670E-05** at limit **
  13  Prefactor     .48190        .16990        .88553E-06    .54144E-03
  14  Prefactor     .17819E-07    26.373       -.61315E-05** at limit **
  15  Prefactor     5.7738        8.6076       -.98734E-06   -.82145E-03
  16  Prefactor     .36943E-06    3.5837       -.17424E-05** at limit **
  17  Normalizat    1.2949        .27316        .43175E-04    .59135E-03
  18  Prefactor     .84540        .14213       -.25512E-04    .72453E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.64305
  norm       = 9.4369e-10
  norm       = 2.09381
  Prefactor  = 6.29797
  norm       = 2.83194
  Prefactor  = 9.5408
  Prefactor  = 33.6807
  Prefactor  = 2.20783
  Prefactor  = 7.31736
  norm       = 4.996e-10
  Prefactor  = 19.8783
  Prefactor  = 2.91767e-07
  Prefactor  = 0.481899
  Prefactor  = 1.78191e-08
  Prefactor  = 5.77381
  Prefactor  = 3.69427e-07
  Normalizat = 1.29491
  Prefactor  = 0.845399
 **********
 **   18 **HESSE 
 **********

 FCN=   8613.596     FROM HESSE     STATUS=OK           284 CALLS     1561 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6430        2.2541        .82483E-03   -1.5682    
   2  norm          .94369E-09    9.3342        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.0938        1.1608        .71296E-03   -1.5679    
   4  Prefactor     6.2980        14.487        .40259E-03   -1.5658    
   5  norm          2.8319        5.4572        .60407E-03   -1.5674    
   6  Prefactor     9.5408        16.494        .32888E-03   -1.5646    
   7  Prefactor     33.681        20.792        .17383E-03   -1.5592    
   8  Prefactor     2.2078        .34583        .44378E-02   -1.5411    
   9  Prefactor     7.3174        6.3064        .37106E-02   -1.5167    
  10  norm          .49960E-09    .64529        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.878        21.533        .22618E-03   -1.5619    
  12  Prefactor     .29177E-06    7.3591        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .48190        .17297        .48514E-02   -1.5569    
  14  Prefactor     .17819E-07    26.522        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.7738        8.6016        .41479E-03   -1.5660    
  16  Prefactor     .36943E-06    7.1931        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2949        .23055        .76660E-01   -.83718    
  18  Prefactor     .84540        .11919        .44301E-01   -.98076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23349e-07
Minuit parameter uncertainties:
  1  2.25407
  2  0.000186051
  3  1.16083
  4  14.4867
  5  5.4572
  6  16.4946
  7  20.7918
  8  0.345831
  9  6.30701
  10  3.49042e-05
  11  21.5332
  12  0.00293074
  13  0.172973
  14  0.00137445
  15  8.60161
  16  0.00326016
  17  0.23073
  18  0.119226
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  7.317e+00  6.307e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  9.408e-01  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.647e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
282    Expfactor:  1.040e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
283       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  8.454e-01  1.192e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  1.295e+00  2.307e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.15
Ra Dec: 338.691 9.732
Photon Index (Fixed Index): 0.94 +/- 0.00
Photon Flux (Fixed Index): 1.88e-08 +/- 1.62e-08
Energy Flux (Fixed Index): 1.39e-05 +/- 1.20e-05

TS (Fixed Index): 3.15
Ra Dec: 338.691 9.732
Photon Flux Upper Limit: 6.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.63e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/845116/likelihoodResults_699667201_699926401_4FGL_J2234.7+0943_daily_bin1776.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) = 8613.50439298
delta logL = 0.0917432697042

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8613.50247569
delta logL = 0.0936605525458

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4679       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.3494       1.0000          .0000       10.000    
     3 'Normalizat'    1.2881       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84542       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8613.502     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      293 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4681        6.3093        .15781E-03   -.29667E-03
   2  Index1        1.3493        .92687        .14913E-01   -.15387E-04
   3  Normalizat    1.2881        .26492        .33994E-03   -.26353E-04
   4  Prefactor     .84541        .14168        .21849E-03   -.18107E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.46815
  Index1     = 1.34927
  Normalizat = 1.28808
  Prefactor  = 0.84541
 **********
 **   18 **HESSE 
 **********

 FCN=   8613.502     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4681        6.0842        .63123E-05   -1.5199    
   2  Index1        1.3493        .89425        .59651E-03   -.81854    
   3  Normalizat    1.2881        .26491        .13598E-04   -.83923    
   4  Prefactor     .84541        .14180        .87398E-05   -.98076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.46725e-11
Minuit parameter uncertainties:
  1  6.08481
  2  0.904792
  3  0.26519
  4  0.141865
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/845116': 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) = 8613.50247568
delta logL = 0.0936605640891

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  6.468e+00  6.085e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  1.349e+00  9.048e-01  0.000e+00  1.000e+01 (-1.000e+00)
281        Scale:  1.647e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
282    Expfactor:  1.040e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
283       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  8.454e-01  1.419e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  1.288e+00  2.652e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.34
Ra Dec: 338.691 9.732
Photon Index (Free Index): 1.35 +/- 0.90
Photon Flux (Free Index): 3.15e-08 +/- 4.32e-08
Energy Flux (Free Index): 1.47e-05 +/- 1.22e-05

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/845116/cmap_HighResolution_699667201_699926401_4FGL_J2234.7+0943_daily_bin1776.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.63e-05', comment='SUCCESS', photon_flux='1.88e-08', energy_flux2='1.47e-05', photon_flux_error='1.62e-08', dlogl='9.37e-02', energy_flux='1.39e-05', photon_flux2='3.15e-08', job_status='DONE', time_completed='2023-03-08 01:32:06.826738', photon_index_error2='0.90', photon_index2='1.35', ts='3.15', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='6.28e-08', energy_flux_error2='1.22e-05', EG='1.29', time_epoch_completed='1678267926.83', return_code='0', job_id='845116', GAL2='0.85', EG2='1.29', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='4.32e-08', ts2='3.34', photon_index='0.94' WHERE bin_id='1776' AND source_name='4FGL J2234.7+0943' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar  8 01:32:06 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 845116: <4FGL_J2234.7+0943_daily_bin1776> in cluster <slac> Done

Job <4FGL_J2234.7+0943_daily_bin1776> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Mar  8 01:20:27 2023
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Mar  8 01:20:39 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Mar  8 01:20:39 2023
Terminated at Wed Mar  8 01:32:07 2023
Results reported at Wed Mar  8 01:32:07 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.7+0943_daily_bin1776 338.691 9.732 699667201 699926401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2234.7+0943 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   590.43 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             310.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   688 sec.
    Turnaround time :                            700 sec.

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

