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 100 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J2234.7+0943_daily_bin1707
RA = 338.691, Dec = 9.732
tmin = 681782401, tmax = 682041601
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='551507', job_status='RUN', time_executed='2022-08-13 00:37:10.652716', time_epoch_executed='1660376230.65' WHERE source_name='4FGL J2234.7+0943' and cadence='daily' and bin_id='1707'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/551507

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/551507/ft1_4FGL_J2234.7+0943_daily_bin1707.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/551507/ft2_4FGL_J2234.7+0943_daily_bin1707.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/551507/ft1_4FGL_J2234.7+0943_daily_bin1707.fits outfile=/scratch/kocevski/551507/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin1707.fits ra=338.691 dec=9.732 rad=12.0 tmin=681782401.0 tmax=682041601.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 5.44
user 5.18
sys 0.23

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

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

Number of photons that the gtmktime cut: 550

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/551507/ft1_filtered_4FGL_J2234.7+0943_daily_bin1707.fits" evtable="EVENTS" scfile=/scratch/kocevski/551507/ft2_4FGL_J2234.7+0943_daily_bin1707.fits sctable="SC_DATA" outfile=/scratch/kocevski/551507/ltcube_681782401_682041601_4FGL_J2234.7+0943_daily_bin1707.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/551507/ft2_4FGL_J2234.7+0943_daily_bin1707.fits
.....................!
real 11.97
user 11.61
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/551507/ft1_filtered_4FGL_J2234.7+0943_daily_bin1707.fits evtable="EVENTS" scfile=/scratch/kocevski/551507/ft2_4FGL_J2234.7+0943_daily_bin1707.fits sctable="SC_DATA" expcube=/scratch/kocevski/551507/ltcube_681782401_682041601_4FGL_J2234.7+0943_daily_bin1707.fits outfile=/scratch/kocevski/551507/expmap_681782401_682041601_4FGL_J2234.7+0943_daily_bin1707.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/551507/ltcube_681782401_682041601_4FGL_J2234.7+0943_daily_bin1707.fits
.....................!
real 190.70
user 184.35
sys 6.00

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/551507/ft1_filtered_4FGL_J2234.7+0943_daily_bin1707.fits scfile=/scratch/kocevski/551507/ft2_4FGL_J2234.7+0943_daily_bin1707.fits outfile=/scratch/kocevski/551507/cmap_681782401_682041601_4FGL_J2234.7+0943_daily_bin1707.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/551507/ft1_filtered_4FGL_J2234.7+0943_daily_bin1707.fits scfile=/scratch/kocevski/551507/ft2_4FGL_J2234.7+0943_daily_bin1707.fits outfile=/scratch/kocevski/551507/cmap_HighResolution_681782401_682041601_4FGL_J2234.7+0943_daily_bin1707.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/551507/ft1_filtered_4FGL_J2234.7+0943_daily_bin1707.fits evtable="EVENTS" scfile=/scratch/kocevski/551507/ft2_4FGL_J2234.7+0943_daily_bin1707.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/551507/Model_4FGL_J2234.7+0943_daily_bin1707.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/551507/ft1_filtered_4FGL_J2234.7+0943_daily_bin1707.fits.....................!
real 64.96
user 63.57
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/551507/ft1_filtered_4FGL_J2234.7+0943_daily_bin1707.fits', '/scratch/kocevski/551507/ft2_4FGL_J2234.7+0943_daily_bin1707.fits', expMap='/scratch/kocevski/551507/expmap_681782401_682041601_4FGL_J2234.7+0943_daily_bin1707.fits', expCube='/scratch/kocevski/551507/ltcube_681782401_682041601_4FGL_J2234.7+0943_daily_bin1707.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/551507/Model_4FGL_J2234.7+0943_daily_bin1707.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/551507/ft1_filtered_4FGL_J2234.7+0943_daily_bin1707.fits
Spacecraft file(s): /scratch/kocevski/551507/ft2_4FGL_J2234.7+0943_daily_bin1707.fits
Exposure map: /scratch/kocevski/551507/expmap_681782401_682041601_4FGL_J2234.7+0943_daily_bin1707.fits
Exposure cube: /scratch/kocevski/551507/ltcube_681782401_682041601_4FGL_J2234.7+0943_daily_bin1707.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/551507/Model_4FGL_J2234.7+0943_daily_bin1707.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) = 6158.45477523

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10650E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    29.093       1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    44.303       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.0880       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .90696       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.1595       1.0000         .10000E-03   10000.    
    12 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    65.049       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.7433       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .95992       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.7882       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.4744       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.1281       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .54565       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0693       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.

 FCN=   6158.453     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     2363 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.0555       -.16716E-07** at limit **
   2  norm          29.092        34.262       -.53512E-06   -.23390E-04
   3  norm          .10000E-03    .42997       -.57625E-08** at limit **
   4  Prefactor     .10000E-03    6.5560        .17480E-05** at limit **
   5  Prefactor     44.303        27.026       -.21975E-06   -.23949E-04
   6  Prefactor     .10000E-03    20.364       -.33648E-05** at limit **
   7  norm          2.0881        3.1001        .36100E-06    .10142E-03
   8  Prefactor     .10000E-03    6.7179       -.16300E-05** at limit **
   9  Prefactor     .10000E-03    5.5828       -.16334E-06** at limit **
  10  Prefactor     .90698        .28552       -.34254E-07    .20119E-03
  11  Prefactor     5.1598        10.725        .20281E-05   -.70472E-03
  12  norm          .10000E-03    .83462        .54743E-07** at limit **
  13  Prefactor     .10000E-03    17.332        .53414E-05** at limit **
  14  Prefactor     65.044        23.674       -.15992E-05   -.39252E-03
  15  Prefactor     5.7394        20.832       -.46756E-05   -.13677E-03
  16  Prefactor     .95989        .22294        .32034E-07   -.86237E-03
  17  Prefactor     .10000E-03    14.810       -.18057E-05** at limit **
  18  Prefactor     7.7895        9.3346       -.80294E-08   -.34434E-04
  19  Prefactor     4.4745        7.2767        .10752E-05   -.85193E-03
  20  Prefactor     9.1272        31.152       -.12102E-05   -.23213E-04
  21  Normalizat    .54569        .25926        .84427E-06   -.20783E-06
  22  Prefactor     1.0692        .14035       -.17397E-06    .16772E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 29.0916
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.303
  Prefactor  = 0.000100001
  norm       = 2.08812
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.906985
  Prefactor  = 5.15985
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 65.0444
  Prefactor  = 5.73941
  Prefactor  = 0.959893
  Prefactor  = 0.0001
  Prefactor  = 7.78946
  Prefactor  = 4.4745
  Prefactor  = 9.12723
  Normalizat = 0.545685
  Prefactor  = 1.06924
 **********
 **   18 **HESSE 
 **********

 FCN=   6158.453     FROM HESSE     STATUS=OK           346 CALLS     2709 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.0885        .10959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          29.092        34.195        .74279E-04   -1.4629    
   3  norm          .10000E-03    .44857        .10038E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.5934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     44.303        27.028        .60233E-04   -1.4376    
   6  Prefactor     .10000E-03    20.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.0881        3.0808        .16347E-03   -1.5419    
   8  Prefactor     .10000E-03    6.7661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.5886        .18108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .90698        .28967        .21269E-04   -1.5517    
  11  Prefactor     5.1598        13.086        .88493E-03   -1.5254    
  12  norm          .10000E-03    1.5836        .13916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     65.044        23.811        .49759E-04   -1.4093    
  15  Prefactor     5.7394        21.029        .16760E-03   -1.5229    
  16  Prefactor     .95989        .22266        .16306E-04   -1.5512    
  17  Prefactor     .10000E-03    14.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.7895        9.3320        .14369E-03   -1.5150    
  19  Prefactor     4.4745        8.1987        .95176E-03   -1.5285    
  20  Prefactor     9.1272        31.159        .13266E-03   -1.5104    
  21  Normalizat    .54569        .28038        .44210E-03   -1.1034    
  22  Prefactor     1.0692        .15554        .18106E-03   -.90456    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47832e-09
Minuit parameter uncertainties:
  1  7.73863e-07
  2  34.2185
  3  8.57324e-07
  4  9.15691e-05
  5  27.0358
  6  0.000313255
  7  3.08103
  8  8.7728e-05
  9  5.83602e-06
  10  0.289675
  11  13.0937
  12  2.26397e-05
  13  0.000463502
  14  23.815
  15  21.0563
  16  0.222657
  17  0.000143172
  18  9.33378
  19  8.20072
  20  31.2146
  21  0.281112
  22  0.155608
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  5.160e+00  1.309e+01  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:  1.069e+00  1.556e-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:  5.457e-01  2.811e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/551507/likelihoodResults_681782401_682041601_4FGL_J2234.7+0943_daily_bin1707.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) = 6157.34323898
delta logL = 1.10939173782

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6157.33381625
delta logL = 1.11881447513

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0034       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.9655       1.0000          .0000       10.000    
     3 'Normalizat'    .51376       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0609       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.

 FCN=   6157.334     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      230 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0082        99.978        .40969E-02    .35345E-03
   2  Index1        1.9657        3.0415        .11479        .13928E-03
   3  Normalizat    .51381        .10008        .10238        .42232E-04
   4  Prefactor     1.0610        .48923E-01    .39310E-01   -.53340E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.00822
  Index1     = 1.96569
  Normalizat = 0.513808
  Prefactor  = 1.06096
 **********
 **   18 **HESSE 
 **********

 FCN=   6157.334     FROM HESSE     STATUS=OK            33 CALLS      263 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0082        7.8476        .13199E-03   -1.5218    
   2  Index1        1.9657        .65508        .57190E-02   -.65211    
   3  Normalizat    .51381        .27302        .45383E-03   -1.1178    
   4  Prefactor     1.0610        .15345        .18108E-03   -.90724    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.53654e-09
Minuit parameter uncertainties:
  1  7.84891
  2  0.658083
  3  0.273734
  4  0.153513
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/551507': 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) = 6157.33381387
delta logL = 1.11881685598

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  6.008e+00  7.849e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  1.966e+00  6.581e-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:  1.061e+00  1.535e-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:  5.138e-01  2.737e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.44
Ra Dec: 338.691 9.732
Photon Index (Free Index): 1.97 +/- 0.66
Photon Flux (Free Index): 9.56e-08 +/- 7.44e-08
Energy Flux (Free Index): 2.63e-05 +/- 1.96e-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/551507/cmap_HighResolution_681782401_682041601_4FGL_J2234.7+0943_daily_bin1707.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.52e-05', comment='SUCCESS', energy_flux2='2.63e-05', dlogl='1.12e+00', photon_flux2='9.56e-08', job_status='DONE', time_completed='2022-08-13 00:47:23.464473', photon_index_error2='0.66', photon_index2='1.97', ts='0.20', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='8.84e-08', energy_flux_error2='1.96e-05', EG='0.55', time_epoch_completed='1660376843.46', return_code='0', job_id='551507', GAL2='1.06', EG2='0.51', return_code2='0', photon_flux_error2='7.44e-08', ts2='2.44', photon_index='0.94' WHERE bin_id='1707' AND source_name='4FGL J2234.7+0943' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 13 00:47:23 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 551507: <4FGL_J2234.7+0943_daily_bin1707> in cluster <slac> Done

Job <4FGL_J2234.7+0943_daily_bin1707> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 13 00:35:21 2022
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 13 00:35:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 13 00:35:22 2022
Terminated at Sat Aug 13 00:47:24 2022
Results reported at Sat Aug 13 00:47:24 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.7+0943_daily_bin1707 338.691 9.732 681782401 682041601 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 :                                   615.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   721 sec.
    Turnaround time :                            723 sec.

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

