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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin1747
RA = 353.557, Dec = 7.602
tmin = 692150401, tmax = 692409601
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='817392', job_status='RUN', time_executed='2022-12-11 01:56:08.133186', time_epoch_executed='1670752568.13' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='1747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/817392

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/817392/ft1_4FGL_J2334.2+0736_daily_bin1747.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/817392/ft2_4FGL_J2334.2+0736_daily_bin1747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/817392/ft1_4FGL_J2334.2+0736_daily_bin1747.fits outfile=/scratch/kocevski/817392/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin1747.fits ra=353.557 dec=7.602 rad=12.0 tmin=692150401.0 tmax=692409601.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.98
user 3.76
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/817392/ft2_4FGL_J2334.2+0736_daily_bin1747.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/817392/ft2_4FGL_J2334.2+0736_daily_bin1747.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/817392/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin1747.fits evtable="EVENTS" outfile="/scratch/kocevski/817392/ft1_filtered_4FGL_J2334.2+0736_daily_bin1747.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.32
sys 0.17

Number of photons that the gtmktime cut: 632

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/817392/ft1_filtered_4FGL_J2334.2+0736_daily_bin1747.fits" evtable="EVENTS" scfile=/scratch/kocevski/817392/ft2_4FGL_J2334.2+0736_daily_bin1747.fits sctable="SC_DATA" outfile=/scratch/kocevski/817392/ltcube_692150401_692409601_4FGL_J2334.2+0736_daily_bin1747.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/817392/ft2_4FGL_J2334.2+0736_daily_bin1747.fits
.....................!
real 11.83
user 11.47
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/817392/ft1_filtered_4FGL_J2334.2+0736_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/817392/ft2_4FGL_J2334.2+0736_daily_bin1747.fits sctable="SC_DATA" expcube=/scratch/kocevski/817392/ltcube_692150401_692409601_4FGL_J2334.2+0736_daily_bin1747.fits outfile=/scratch/kocevski/817392/expmap_692150401_692409601_4FGL_J2334.2+0736_daily_bin1747.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/817392/ltcube_692150401_692409601_4FGL_J2334.2+0736_daily_bin1747.fits
.....................!
real 191.80
user 186.57
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 154 point sources and 0 extended sources

Setting source of interest to:
4FGL J2334.2+0736 @ 353.557 7.602

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/817392/ft1_filtered_4FGL_J2334.2+0736_daily_bin1747.fits scfile=/scratch/kocevski/817392/ft2_4FGL_J2334.2+0736_daily_bin1747.fits outfile=/scratch/kocevski/817392/cmap_692150401_692409601_4FGL_J2334.2+0736_daily_bin1747.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=353.557 yref=7.602 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/817392/ft1_filtered_4FGL_J2334.2+0736_daily_bin1747.fits scfile=/scratch/kocevski/817392/ft2_4FGL_J2334.2+0736_daily_bin1747.fits outfile=/scratch/kocevski/817392/cmap_HighResolution_692150401_692409601_4FGL_J2334.2+0736_daily_bin1747.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=353.557 yref=7.602 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/817392/ft1_filtered_4FGL_J2334.2+0736_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/817392/ft2_4FGL_J2334.2+0736_daily_bin1747.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/817392/Model_4FGL_J2334.2+0736_daily_bin1747.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/817392/ft1_filtered_4FGL_J2334.2+0736_daily_bin1747.fits.....................!
real 72.42
user 71.06
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/817392/ft1_filtered_4FGL_J2334.2+0736_daily_bin1747.fits', '/scratch/kocevski/817392/ft2_4FGL_J2334.2+0736_daily_bin1747.fits', expMap='/scratch/kocevski/817392/expmap_692150401_692409601_4FGL_J2334.2+0736_daily_bin1747.fits', expCube='/scratch/kocevski/817392/ltcube_692150401_692409601_4FGL_J2334.2+0736_daily_bin1747.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/817392/Model_4FGL_J2334.2+0736_daily_bin1747.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2334.2+0736'

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  5.621e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
431        Index:  2.471e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
432        Scale:  9.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/817392/ft1_filtered_4FGL_J2334.2+0736_daily_bin1747.fits
Spacecraft file(s): /scratch/kocevski/817392/ft2_4FGL_J2334.2+0736_daily_bin1747.fits
Exposure map: /scratch/kocevski/817392/expmap_692150401_692409601_4FGL_J2334.2+0736_daily_bin1747.fits
Exposure cube: /scratch/kocevski/817392/ltcube_692150401_692409601_4FGL_J2334.2+0736_daily_bin1747.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/817392/Model_4FGL_J2334.2+0736_daily_bin1747.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) = 6792.5196546

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.346       1.0000          .0000       .10000E+07
     2 'Prefactor '    .35029E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .33706E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .28123E-03   1.0000          .0000       .10000E+07
     5 'norm      '    1.3076       1.0000          .0000       .10000E+07
     6 'Prefactor '    .17337E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    11.368       1.0000          .0000       .10000E+07
     8 'Prefactor '    .12285E-02   1.0000          .0000       .10000E+07
     9 'norm      '    9.2950       1.0000          .0000       .10000E+07
    10 'Prefactor '    5.6151       1.0000          .0000       .10000E+07
    11 'Prefactor '    18.857       1.0000          .0000       .10000E+07
    12 'norm      '    44.822       1.0000          .0000       .10000E+07
    13 'norm      '    .14380       1.0000          .0000       .10000E+07
    14 'Prefactor '    6.8591       1.0000          .0000       .10000E+07
    15 'Prefactor '    63.957       1.0000          .0000       .10000E+07
    16 'Prefactor '    56.696       1.0000          .0000       .10000E+07
    17 'Prefactor '    .11242E-04   1.0000          .0000       .10000E+07
    18 'Normalizat'    .84787       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0810       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6792.348     FROM MIGRAD    STATUS=CONVERGED    115 CALLS     1361 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.065        14.221       -.10284E-06   -.27169E-01
   2  Prefactor     .98810E-08    12.954       -.62783E-06** at limit **
   3  Prefactor      .0000        1.9750       -.19762E-06** at limit **
   4  Prefactor     .45242E-07    16.446       -.53152E-06** at limit **
   5  norm          1.3128        1.2745        .16289E-06    .18976E-03
   6  Prefactor      .0000        3.0058        .23135E-06** at limit **
   7  Prefactor     11.371        1.6229        .10114E-07    .45462E-02
   8  Prefactor     .27978E-06    26.862       -.81887E-06** at limit **
   9  norm          9.4517        10.809        .11615E-07    .14135E-02
  10  Prefactor     5.5250        9.2078        .31124E-06    .14190E-02
  11  Prefactor     19.278        3.0273        .34210E-07   -.40851E-01
  12  norm          44.224        3.0466       -.15789E-07   -.21253E-01
  13  norm          .89760E-05    4.1996       -.33512E-06** at limit **
  14  Prefactor     6.8630        4.8619       -.19802E-06    .10253E-03
  15  Prefactor     66.054        45.626        .14144E-06    .15162E-01
  16  Prefactor     57.036        4.4558        .67009E-08    .33525    
  17  Prefactor      .0000        1.9889        .12700E-06** at limit **
  18  Normalizat    .84596        .25339        .51939E-05   -.11977E-04
  19  Prefactor     1.0813        .16312        .21577E-06   -.19953E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.0654
  Prefactor  = 9.88098e-09
  Prefactor  = 0
  Prefactor  = 4.52416e-08
  norm       = 1.31283
  Prefactor  = 0
  Prefactor  = 11.3712
  Prefactor  = 2.79776e-07
  norm       = 9.45165
  Prefactor  = 5.52498
  Prefactor  = 19.2777
  norm       = 44.2241
  norm       = 8.97604e-06
  Prefactor  = 6.86299
  Prefactor  = 66.0543
  Prefactor  = 57.0355
  Prefactor  = 0
  Normalizat = 0.845965
  Prefactor  = 1.08128
 **********
 **   18 **HESSE 
 **********

 FCN=   6792.348     FROM HESSE     STATUS=OK           312 CALLS     1673 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.065        14.320        .26418E-03   -1.5633    
   2  Prefactor     .98810E-08    13.123        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        1.9712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .45242E-07    16.841        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.3128        1.3002        .96448E-03   -1.5685    
   6  Prefactor      .0000        3.0039        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.371        19.180        .29688E-03   -1.5641    
   8  Prefactor     .27978E-06    27.414        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          9.4517        11.193        .32848E-03   -1.5646    
  10  Prefactor     5.5250        9.3909        .42371E-03   -1.5661    
  11  Prefactor     19.278        16.995        .23037E-03   -1.5620    
  12  norm          44.224        18.851        .14938E-03   -1.5575    
  13  norm          .89760E-05    31.219        .12876E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.8630        5.3405        .38285E-03   -1.5656    
  15  Prefactor     66.054        45.614        .12505E-03   -1.5545    
  16  Prefactor     57.036        31.654        .13282E-03   -1.5557    
  17  Prefactor      .0000        1.9881        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .84596        .22435        .78370E-01   -.98386    
  19  Prefactor     1.0813        .14205        .38359E-01   -.90067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0373e-06
Minuit parameter uncertainties:
  1  14.3198
  2  0.00071945
  3  2.28578e-06
  4  0.00174527
  5  1.30017
  6  2.68925e-06
  7  19.1805
  8  0.00553877
  9  11.1933
  10  9.39092
  11  16.9948
  12  18.8512
  13  0.0334798
  14  5.34046
  15  45.6139
  16  31.6537
  17  3.52105e-07
  18  0.224594
  19  0.142096
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.928e+01  1.699e+01  0.000e+00  1.000e+06 ( 1.000e-13)
431        Index:  2.471e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
432        Scale:  9.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  1.081e+00  1.421e-01  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
501   Normalization:  8.460e-01  2.246e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.22
Ra Dec: 353.557 7.602
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 3.56e-08 +/- 3.13e-08
Energy Flux (Fixed Index): 1.07e-05 +/- 9.41e-06

TS (Fixed Index): 3.22
Ra Dec: 353.557 7.602
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/817392/likelihoodResults_692150401_692409601_4FGL_J2334.2+0736_daily_bin1747.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) = 6791.66148041
delta logL = 0.686657940144

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6791.58128013
delta logL = 0.766858226728

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.269       1.0000          .0000       .10000E+07
     2 'Index     '    1.7468       1.0000          .0000       10.000    
     3 'Normalizat'    .86038       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0762       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6791.581     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      219 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.294        47.512        .18811E-03   -.11181E-04
   2  Index         1.7467        .84048        .25450       -.15324E-04
   3  Normalizat    .86052        .21390        .77787E-01    .24176E-04
   4  Prefactor     1.0761        .14189        .38571E-01    .12163E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.2942
  Index      = 1.74669
  Normalizat = 0.860518
  Prefactor  = 1.07609
 **********
 **   18 **HESSE 
 **********

 FCN=   6791.581     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.294        24.626        .75245E-05   -1.5602    
   2  Index         1.7467        .53998        .90933E-02   -.70846    
   3  Normalizat    .86052        .24262        .34431E-03   -.97862    
   4  Prefactor     1.0761        .16217        .20638E-03   -.90234    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.88743e-11
Minuit parameter uncertainties:
  1  24.6261
  2  0.541817
  3  0.242924
  4  0.162243
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/817392': 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) = 6791.58127938
delta logL = 0.766858970103

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  2.829e+01  2.463e+01  0.000e+00  1.000e+06 ( 1.000e-13)
431        Index:  1.747e+00  5.418e-01  0.000e+00  1.000e+01 (-1.000e+00)
432        Scale:  9.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  1.076e+00  1.622e-01  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
501   Normalization:  8.605e-01  2.429e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.75
Ra Dec: 353.557 7.602
Photon Index (Free Index): 1.75 +/- 0.54
Photon Flux (Free Index): 1.98e-08 +/- 2.17e-08
Energy Flux (Free Index): 2.79e-05 +/- 3.67e-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/817392/cmap_HighResolution_692150401_692409601_4FGL_J2334.2+0736_daily_bin1747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.09e-03', comment='SUCCESS', photon_flux='3.56e-08', energy_flux2='2.79e-05', photon_flux_error='3.13e-08', dlogl='7.67e-01', energy_flux='1.07e-05', photon_flux2='1.98e-08', job_status='DONE', time_completed='2022-12-11 02:05:31.848817', photon_index_error2='0.54', photon_index2='1.75', ts='3.22', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='3.67e-05', EG='0.85', time_epoch_completed='1670753131.85', return_code='0', job_id='817392', GAL2='1.08', EG2='0.86', return_code2='0', energy_flux_error='9.41e-06', photon_flux_error2='2.17e-08', ts2='4.75', photon_index='2.47' WHERE bin_id='1747' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Dec 11 02:05:31 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 817392: <4FGL_J2334.2+0736_daily_bin1747> in cluster <slac> Done

Job <4FGL_J2334.2+0736_daily_bin1747> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Dec 11 01:55:13 2022
Job was executed on host(s) <bullet0152>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Dec 11 01:55:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Dec 11 01:55:15 2022
Terminated at Sun Dec 11 02:05:32 2022
Results reported at Sun Dec 11 02:05:32 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin1747 353.557 7.602 692150401 692409601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2334.2+0736 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   566.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   617 sec.
    Turnaround time :                            619 sec.

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

