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 98 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7460
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2234.7+0943_daily_bin1758
RA = 338.691, Dec = 9.732
tmin = 695001601, tmax = 695260801
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='384916', job_status='RUN', time_executed='2023-01-13 01:53:12.173924', time_epoch_executed='1673603592.17' WHERE source_name='4FGL J2234.7+0943' and cadence='daily' and bin_id='1758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384916

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384916/ft1_4FGL_J2234.7+0943_daily_bin1758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384916/ft2_4FGL_J2234.7+0943_daily_bin1758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384916/ft1_4FGL_J2234.7+0943_daily_bin1758.fits outfile=/scratch/kocevski/384916/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin1758.fits ra=338.691 dec=9.732 rad=12.0 tmin=695001601.0 tmax=695260801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.81
user 2.55
sys 0.22

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

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

Number of photons that the gtmktime cut: 1212

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384916/ft1_filtered_4FGL_J2234.7+0943_daily_bin1758.fits" evtable="EVENTS" scfile=/scratch/kocevski/384916/ft2_4FGL_J2234.7+0943_daily_bin1758.fits sctable="SC_DATA" outfile=/scratch/kocevski/384916/ltcube_695001601_695260801_4FGL_J2234.7+0943_daily_bin1758.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/384916/ft2_4FGL_J2234.7+0943_daily_bin1758.fits
.....................!
real 18.21
user 17.79
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384916/ft1_filtered_4FGL_J2234.7+0943_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/384916/ft2_4FGL_J2234.7+0943_daily_bin1758.fits sctable="SC_DATA" expcube=/scratch/kocevski/384916/ltcube_695001601_695260801_4FGL_J2234.7+0943_daily_bin1758.fits outfile=/scratch/kocevski/384916/expmap_695001601_695260801_4FGL_J2234.7+0943_daily_bin1758.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/384916/ltcube_695001601_695260801_4FGL_J2234.7+0943_daily_bin1758.fits
.....................!
real 194.51
user 187.84
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/384916/ft1_filtered_4FGL_J2234.7+0943_daily_bin1758.fits scfile=/scratch/kocevski/384916/ft2_4FGL_J2234.7+0943_daily_bin1758.fits outfile=/scratch/kocevski/384916/cmap_695001601_695260801_4FGL_J2234.7+0943_daily_bin1758.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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384916/ft1_filtered_4FGL_J2234.7+0943_daily_bin1758.fits scfile=/scratch/kocevski/384916/ft2_4FGL_J2234.7+0943_daily_bin1758.fits outfile=/scratch/kocevski/384916/cmap_HighResolution_695001601_695260801_4FGL_J2234.7+0943_daily_bin1758.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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/384916/ft1_filtered_4FGL_J2234.7+0943_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/384916/ft2_4FGL_J2234.7+0943_daily_bin1758.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/384916/Model_4FGL_J2234.7+0943_daily_bin1758.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/384916/ft1_filtered_4FGL_J2234.7+0943_daily_bin1758.fits.....................!
real 121.58
user 119.77
sys 1.37

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .57744       1.0000          .0000       .10000E+07
     2 'norm      '    .10054E-04   1.0000          .0000       .10000E+07
     3 'norm      '    .14017E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    13.823       1.0000          .0000       .10000E+07
     5 'norm      '    1.7916       1.0000          .0000       .10000E+07
     6 'Prefactor '    3.9493       1.0000          .0000       .10000E+07
     7 'Prefactor '    22.360       1.0000          .0000       .10000E+07
     8 'Prefactor '    3.9704       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.2470       1.0000         .10000E-03   10000.    
    10 'norm      '    1.8530       1.0000          .0000       .10000E+07
    11 'Prefactor '    18.502       1.0000          .0000       .10000E+07
    12 'Prefactor '    15.805       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.4303       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .95845E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .30330E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .43081E-05   1.0000          .0000       .10000E+07
    17 'Normalizat'    .95987       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .96235       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=   12618.68     FROM MIGRAD    STATUS=CONVERGED    124 CALLS     1294 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .57743        1.0883        .15288E-06    .12404E-01
   2  norm          .12768E-08    6.5609       -.17875E-06** at limit **
   3  norm           .0000        .16184       -.17670E-07** at limit **
   4  Prefactor     13.923        17.144       -.15685E-05    .77161E-03
   5  norm          1.7918        2.1713        .18260E-06    .14723E-01
   6  Prefactor     4.0097        10.913       -.68406E-05   -.59901E-03
   7  Prefactor     22.236        11.320       -.20830E-06    .56603E-02
   8  Prefactor     3.9699        .34268        .40565E-06    .20582E-02
   9  Prefactor     7.2532        6.5782       -.79037E-06   -.30663E-03
  10  norm          1.8501        1.2436       -.25865E-06   -.26125E-01
  11  Prefactor     19.325        27.827        .58699E-05   -.99132E-03
  12  Prefactor     15.812        8.0176        .21035E-05   -.88551E-02
  13  Prefactor     1.4288        .18162       -.48076E-06   -.14228E-02
  14  Prefactor     .10714E-07    63.954       -.67750E-05** at limit **
  15  Prefactor     .55511E-10    1.9468       -.48663E-08** at limit **
  16  Prefactor     .41078E-08    55.557        .11845E-04** at limit **
  17  Normalizat    .96026        .22516        .15292E-04   -.19661E-03
  18  Prefactor     .96213        .12216       -.60713E-05   -.49156E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.577429
  norm       = 1.27676e-09
  norm       = 0
  Prefactor  = 13.9234
  norm       = 1.79177
  Prefactor  = 4.00969
  Prefactor  = 22.2363
  Prefactor  = 3.96994
  Prefactor  = 7.2532
  norm       = 1.8501
  Prefactor  = 19.3252
  Prefactor  = 15.8116
  Prefactor  = 1.42879
  Prefactor  = 1.07137e-08
  Prefactor  = 5.55112e-11
  Prefactor  = 4.10783e-09
  Normalizat = 0.960263
  Prefactor  = 0.962134
 **********
 **   18 **HESSE 
 **********

 FCN=   12618.68     FROM HESSE     STATUS=OK           288 CALLS     1582 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .57743        1.3522        .36436E-02   -1.5693    
   2  norm          .12768E-08    6.5801        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        .16115        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.923        17.141        .26914E-03   -1.5633    
   5  norm          1.7918        2.1852        .78108E-03   -1.5681    
   6  Prefactor     4.0097        12.732        .50735E-03   -1.5668    
   7  Prefactor     22.236        12.348        .21153E-03   -1.5614    
   8  Prefactor     3.9699        .34359        .40150E-02   -1.5309    
   9  Prefactor     7.2532        6.5780        .37250E-02   -1.5169    
  10  norm          1.8501        1.2634        .76551E-03   -1.5681    
  11  Prefactor     19.325        27.731        .23257E-03   -1.5620    
  12  Prefactor     15.812        12.589        .25167E-03   -1.5628    
  13  Prefactor     1.4288        .18087        .35657E-02   -1.5469    
  14  Prefactor     .10714E-07    63.745        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .55511E-10    1.9458        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .41078E-08    55.322        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .96026        .19223        .89576E-01   -.94374    
  18  Prefactor     .96213        .10379        .45795E-01   -.94003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86021e-08
Minuit parameter uncertainties:
  1  1.35222
  2  0.000185115
  3  1.29581e-06
  4  17.1414
  5  2.18524
  6  12.7319
  7  12.3484
  8  0.343593
  9  6.57867
  10  1.26339
  11  27.7311
  12  12.5894
  13  0.180869
  14  0.00165205
  15  2.37392e-05
  16  0.00095572
  17  0.19237
  18  0.103816
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  7.253e+00  6.579e+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.621e-01  1.038e-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.603e-01  1.924e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.87
Ra Dec: 338.691 9.732
Photon Index (Fixed Index): 0.94 +/- 0.00
Photon Flux (Fixed Index): 1.86e-08 +/- 1.69e-08
Energy Flux (Fixed Index): 1.37e-05 +/- 1.25e-05

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

Saving results to:
/scratch/kocevski/384916/likelihoodResults_695001601_695260801_4FGL_J2234.7+0943_daily_bin1758.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) = 12618.3605776
delta logL = 0.317074986095

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12618.3570721
delta logL = 0.320580457734

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8767       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.6920       1.0000          .0000       10.000    
     3 'Normalizat'    .94451       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96238       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=   12618.36     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      324 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8758        6.7204        .16566E-03   -.86608E-04
   2  Index1        1.6923        .95398        .12410E-01    .53212E-04
   3  Normalizat    .94443        .22108        .39910E-03   -.50249E-04
   4  Prefactor     .96249        .12133        .21849E-03   -.38416E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.87577
  Index1     = 1.69227
  Normalizat = 0.944425
  Prefactor  = 0.962486
 **********
 **   18 **HESSE 
 **********

 FCN=   12618.36     FROM HESSE     STATUS=OK            25 CALLS      349 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8758        5.8260        .66263E-05   -1.5223    
   2  Index1        1.6923        .82853        .49642E-03   -.72288    
   3  Normalizat    .94443        .21981        .15964E-04   -.94916    
   4  Prefactor     .96249        .12116        .43699E-04   -.93991    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88324e-10
Minuit parameter uncertainties:
  1  5.82656
  2  0.835423
  3  0.220018
  4  0.121192
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384916': 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) = 12618.3570713
delta logL = 0.320581264603

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  5.876e+00  5.827e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  1.692e+00  8.354e-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:  9.625e-01  1.212e-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.444e-01  2.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.50
Ra Dec: 338.691 9.732
Photon Index (Free Index): 1.69 +/- 0.84
Photon Flux (Free Index): 5.39e-08 +/- 6.28e-08
Energy Flux (Free Index): 1.82e-05 +/- 1.35e-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/384916/cmap_HighResolution_695001601_695260801_4FGL_J2234.7+0943_daily_bin1758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.52e-05', comment='SUCCESS', photon_flux='1.86e-08', energy_flux2='1.82e-05', photon_flux_error='1.69e-08', dlogl='3.21e-01', energy_flux='1.37e-05', photon_flux2='5.39e-08', job_status='DONE', time_completed='2023-01-13 02:05:57.602970', photon_index_error2='0.84', photon_index2='1.69', ts='2.87', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='6.12e-08', energy_flux_error2='1.35e-05', EG='0.96', time_epoch_completed='1673604357.6', return_code='0', job_id='384916', GAL2='0.96', EG2='0.94', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='6.28e-08', ts2='3.50', photon_index='0.94' WHERE bin_id='1758' AND source_name='4FGL J2234.7+0943' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jan 13 02:05:57 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 384916: <4FGL_J2234.7+0943_daily_bin1758> in cluster <slac> Done

Job <4FGL_J2234.7+0943_daily_bin1758> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Jan 13 01:50:17 2023
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jan 13 01:51:25 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jan 13 01:51:25 2023
Terminated at Fri Jan 13 02:05:58 2023
Results reported at Fri Jan 13 02:05:58 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.7+0943_daily_bin1758 338.691 9.732 695001601 695260801 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 :                                   766.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             360.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            941 sec.

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

