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


Performing analysis on: 4FGL_J2234.7+0943_daily_bin1734
RA = 338.691, Dec = 9.732
tmin = 688780801, tmax = 689040001
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='776469', job_status='RUN', time_executed='2022-11-02 00:37:45.749910', time_epoch_executed='1667374665.75' WHERE source_name='4FGL J2234.7+0943' and cadence='daily' and bin_id='1734'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/776469

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/776469/ft1_4FGL_J2234.7+0943_daily_bin1734.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/776469/ft2_4FGL_J2234.7+0943_daily_bin1734.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/776469/ft1_4FGL_J2234.7+0943_daily_bin1734.fits outfile=/scratch/kocevski/776469/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin1734.fits ra=338.691 dec=9.732 rad=12.0 tmin=688780801.0 tmax=689040001.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.55
user 3.30
sys 0.23

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

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

Number of photons that the gtmktime cut: 903

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/776469/ft1_filtered_4FGL_J2234.7+0943_daily_bin1734.fits" evtable="EVENTS" scfile=/scratch/kocevski/776469/ft2_4FGL_J2234.7+0943_daily_bin1734.fits sctable="SC_DATA" outfile=/scratch/kocevski/776469/ltcube_688780801_689040001_4FGL_J2234.7+0943_daily_bin1734.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/776469/ft2_4FGL_J2234.7+0943_daily_bin1734.fits
.....................!
real 11.99
user 11.63
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/776469/ft1_filtered_4FGL_J2234.7+0943_daily_bin1734.fits evtable="EVENTS" scfile=/scratch/kocevski/776469/ft2_4FGL_J2234.7+0943_daily_bin1734.fits sctable="SC_DATA" expcube=/scratch/kocevski/776469/ltcube_688780801_689040001_4FGL_J2234.7+0943_daily_bin1734.fits outfile=/scratch/kocevski/776469/expmap_688780801_689040001_4FGL_J2234.7+0943_daily_bin1734.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/776469/ltcube_688780801_689040001_4FGL_J2234.7+0943_daily_bin1734.fits
.....................!
real 190.77
user 185.51
sys 4.90

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/776469/ft1_filtered_4FGL_J2234.7+0943_daily_bin1734.fits scfile=/scratch/kocevski/776469/ft2_4FGL_J2234.7+0943_daily_bin1734.fits outfile=/scratch/kocevski/776469/cmap_688780801_689040001_4FGL_J2234.7+0943_daily_bin1734.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/776469/ft1_filtered_4FGL_J2234.7+0943_daily_bin1734.fits scfile=/scratch/kocevski/776469/ft2_4FGL_J2234.7+0943_daily_bin1734.fits outfile=/scratch/kocevski/776469/cmap_HighResolution_688780801_689040001_4FGL_J2234.7+0943_daily_bin1734.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.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/776469/ft1_filtered_4FGL_J2234.7+0943_daily_bin1734.fits evtable="EVENTS" scfile=/scratch/kocevski/776469/ft2_4FGL_J2234.7+0943_daily_bin1734.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/776469/Model_4FGL_J2234.7+0943_daily_bin1734.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/776469/ft1_filtered_4FGL_J2234.7+0943_daily_bin1734.fits.....................!
real 96.96
user 95.54
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .41633E-08   1.0000          .0000       .10000E+07
     2 'norm      '    16.505       1.0000          .0000       .10000E+07
     3 'norm      '    1.9640       1.0000          .0000       .10000E+07
     4 'Prefactor '    30.101       1.0000          .0000       .10000E+07
     5 'norm      '    4.4232       1.0000          .0000       .10000E+07
     6 'Prefactor '    .28509E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    29.932       1.0000          .0000       .10000E+07
     8 'Prefactor '    1.1721       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.0273       1.0000         .10000E-03   10000.    
    10 'norm      '    5.0783       1.0000          .0000       .10000E+07
    11 'Prefactor '    .73137E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .43068E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    4.2137       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .25838E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    14.608       1.0000          .0000       .10000E+07
    16 'Prefactor '    .23269E-03   1.0000          .0000       .10000E+07
    17 'Normalizat'    .90793       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .98307       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=   9664.560     FROM MIGRAD    STATUS=CONVERGED     93 CALLS     1330 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .99132        .39640E-07** at limit **
   2  norm          16.522        1.8065        .12723E-07   -.10632    
   3  norm          1.9632        1.2090        .87557E-07    .61621E-02
   4  Prefactor     30.166        1.2046        .35368E-08   -.61032E-01
   5  norm          4.4902        5.8533       -.17138E-07   -.66925E-02
   6  Prefactor     .49960E-09    5.5821        .12403E-06** at limit **
   7  Prefactor     29.898        1.2550       -.41672E-08    .63207E-01
   8  Prefactor     1.1723        .26174       -.11977E-06   -.15877E-02
   9  Prefactor     7.0257        6.3068       -.40263E-06   -.17565E-02
  10  norm          5.0803        2.4016        .32430E-07    .76239E-03
  11  Prefactor     .15360E-06    5.7891        .90980E-07** at limit **
  12  Prefactor     .11935E-07    7.6113        .14645E-06** at limit **
  13  Prefactor     4.2130        .34409        .33533E-07   -.93335E-04
  14  Prefactor      .0000        16.112       -.13912E-06** at limit **
  15  Prefactor     14.784        8.6575       -.88039E-08   -.10205E-01
  16  Prefactor     .25646E-06    4.9211        .11048E-06** at limit **
  17  Normalizat    .90800        .27373       -.42090E-05   -.90135E-04
  18  Prefactor     .98271        .14850        .35667E-06   -.13675E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 16.5215
  norm       = 1.96321
  Prefactor  = 30.1656
  norm       = 4.49023
  Prefactor  = 4.996e-10
  Prefactor  = 29.8982
  Prefactor  = 1.1723
  Prefactor  = 7.02572
  norm       = 5.08032
  Prefactor  = 1.53599e-07
  Prefactor  = 1.19349e-08
  Prefactor  = 4.21295
  Prefactor  = 0
  Prefactor  = 14.7837
  Prefactor  = 2.56462e-07
  Normalizat = 0.907998
  Prefactor  = 0.982714
 **********
 **   18 **HESSE 
 **********

 FCN=   9664.560     FROM HESSE     STATUS=OK           284 CALLS     1614 TOTAL
                     EDM=   .61E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .98954        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          16.522        24.987        .24626E-03   -1.5627    
   3  norm          1.9632        1.2145        .73978E-03   -1.5680    
   4  Prefactor     30.166        26.004        .18230E-03   -1.5598    
   5  norm          4.4902        5.9319        .47859E-03   -1.5666    
   6  Prefactor     .49960E-09    5.5833        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     29.898        22.100        .18281E-03   -1.5599    
   8  Prefactor     1.1723        .26225        .50984E-02   -1.5491    
   9  Prefactor     7.0257        6.3139        .37833E-02   -1.5178    
  10  norm          5.0803        2.4090        .44594E-03   -1.5663    
  11  Prefactor     .15360E-06    10.672        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .11935E-07    7.6459        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.2130        .34347        .35293E-02   -1.5297    
  14  Prefactor      .0000        16.042        .16679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.784        8.6686        .26180E-03   -1.5631    
  16  Prefactor     .25646E-06    10.503        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .90800        .23875        .96431E-01   -.96180    
  18  Prefactor     .98271        .12565        .46055E-01   -.93308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.06947e-07
Minuit parameter uncertainties:
  1  3.67002e-06
  2  24.9867
  3  1.21449
  4  26.0036
  5  5.93193
  6  0.000104785
  7  22.1004
  8  0.262248
  9  6.31454
  10  2.40903
  11  0.00256079
  12  0.000604239
  13  0.34347
  14  2.35316e-05
  15  8.66859
  16  0.00328231
  17  0.239031
  18  0.125685
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  7.026e+00  6.315e+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:  9.827e-01  1.257e-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:  9.080e-01  2.390e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.01
Ra Dec: 338.691 9.732
Photon Index (Fixed Index): 0.94 +/- 0.00
Photon Flux (Fixed Index): 1.80e-08 +/- 1.62e-08
Energy Flux (Fixed Index): 1.33e-05 +/- 1.20e-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) = 9664.21398613
delta logL = 0.346246853382

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9664.20615544
delta logL = 0.354077545831

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2842       1.0000         .10000E-03   10000.    
     2 'Index1    '    .12252E-02   1.0000          .0000       10.000    
     3 'Normalizat'    .91074       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98523       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=   9664.206     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      223 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3050        5.6381        .30173E-05    .29540E-04
   2  Index1        .13759E-08    1.7349        .39048E-04** at limit **
   3  Normalizat    .91091        .22845       -.67273E-07   -.75801E-04
   4  Prefactor     .98515        .12479       -.11040E-06   -.67372E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.30497
  Index1     = 1.37587e-09
  Normalizat = 0.910913
  Prefactor  = 0.985151
 **********
 **   18 **HESSE 
 **********

 FCN=   9664.206     FROM HESSE     STATUS=OK            35 CALLS      258 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3050        5.8886        .16013E-03   -1.5206    
   2  Index1        .13759E-08    1.6970        .50000       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .91091        .26923        .42675E-03   -.96078    
   4  Prefactor     .98515        .14742        .22338E-03   -.93226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.43338e-11
Minuit parameter uncertainties:
  1  5.8891
  2  9.96075e-05
  3  0.269626
  4  0.147478
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/776469': 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) = 9664.2060619
delta logL = 0.354171078938

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  6.305e+00  5.889e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  1.376e-09  9.961e-05  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:  9.852e-01  1.475e-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:  9.109e-01  2.696e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.72
Ra Dec: 338.691 9.732
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 7.35e-09 +/- 6.86e-09
Energy Flux (Free Index): 1.68e-05 +/- 1.57e-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/776469/cmap_HighResolution_688780801_689040001_4FGL_J2234.7+0943_daily_bin1734.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.80e-08', energy_flux2='1.68e-05', photon_flux_error='1.62e-08', dlogl='3.54e-01', energy_flux='1.33e-05', photon_flux2='7.35e-09', job_status='DONE', time_completed='2022-11-02 00:47:30.000563', photon_index_error2='0.00', photon_index2='0.00', ts='6.01', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.57e-05', EG='0.91', time_epoch_completed='1667375250.0', return_code='0', job_id='776469', GAL2='0.99', EG2='0.91', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='6.86e-09', ts2='6.72', photon_index='0.94' WHERE bin_id='1734' AND source_name='4FGL J2234.7+0943' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Nov  2 00:47:30 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 776469: <4FGL_J2234.7+0943_daily_bin1734> in cluster <slac> Done

Job <4FGL_J2234.7+0943_daily_bin1734> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Nov  2 00:35:27 2022
Job was executed on host(s) <bullet0158>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Nov  2 00:35:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Nov  2 00:35:28 2022
Terminated at Wed Nov  2 00:47:30 2022
Results reported at Wed Nov  2 00:47:30 2022

Your job looked like:

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

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

