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


Performing analysis on: 4FGL_J1231.7+2847_daily_bin1709
RA = 187.935, Dec = 28.7917
tmin = 682300801, tmax = 682560001
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='120539', job_status='RUN', time_executed='2022-09-16 16:52:57.308062', time_epoch_executed='1663372377.31' WHERE source_name='4FGL J1231.7+2847' and cadence='daily' and bin_id='1709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/120539

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/120539/ft1_4FGL_J1231.7+2847_daily_bin1709.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/120539/ft2_4FGL_J1231.7+2847_daily_bin1709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/120539/ft1_4FGL_J1231.7+2847_daily_bin1709.fits outfile=/scratch/kocevski/120539/ft1_filteredMKT_4FGL_J1231.7+2847_daily_bin1709.fits ra=187.935 dec=28.7917 rad=12.0 tmin=682300801.0 tmax=682560001.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.77
user 3.49
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/120539/ft2_4FGL_J1231.7+2847_daily_bin1709.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/120539/ft2_4FGL_J1231.7+2847_daily_bin1709.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/120539/ft1_filteredMKT_4FGL_J1231.7+2847_daily_bin1709.fits evtable="EVENTS" outfile="/scratch/kocevski/120539/ft1_filtered_4FGL_J1231.7+2847_daily_bin1709.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.34
sys 0.15

Number of photons that the gtmktime cut: 601

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/120539/ft1_filtered_4FGL_J1231.7+2847_daily_bin1709.fits" evtable="EVENTS" scfile=/scratch/kocevski/120539/ft2_4FGL_J1231.7+2847_daily_bin1709.fits sctable="SC_DATA" outfile=/scratch/kocevski/120539/ltcube_682300801_682560001_4FGL_J1231.7+2847_daily_bin1709.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/120539/ft2_4FGL_J1231.7+2847_daily_bin1709.fits
.....................!
real 13.25
user 12.80
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/120539/ft1_filtered_4FGL_J1231.7+2847_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/120539/ft2_4FGL_J1231.7+2847_daily_bin1709.fits sctable="SC_DATA" expcube=/scratch/kocevski/120539/ltcube_682300801_682560001_4FGL_J1231.7+2847_daily_bin1709.fits outfile=/scratch/kocevski/120539/expmap_682300801_682560001_4FGL_J1231.7+2847_daily_bin1709.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/120539/ltcube_682300801_682560001_4FGL_J1231.7+2847_daily_bin1709.fits
.....................!
real 194.72
user 187.96
sys 6.04

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

Setting source of interest to:
4FGL J1231.7+2847 @ 187.935 28.7917

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/120539/ft1_filtered_4FGL_J1231.7+2847_daily_bin1709.fits scfile=/scratch/kocevski/120539/ft2_4FGL_J1231.7+2847_daily_bin1709.fits outfile=/scratch/kocevski/120539/cmap_682300801_682560001_4FGL_J1231.7+2847_daily_bin1709.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=187.935 yref=28.7917 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/120539/ft1_filtered_4FGL_J1231.7+2847_daily_bin1709.fits scfile=/scratch/kocevski/120539/ft2_4FGL_J1231.7+2847_daily_bin1709.fits outfile=/scratch/kocevski/120539/cmap_HighResolution_682300801_682560001_4FGL_J1231.7+2847_daily_bin1709.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=187.935 yref=28.7917 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.56
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/120539/ft1_filtered_4FGL_J1231.7+2847_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/120539/ft2_4FGL_J1231.7+2847_daily_bin1709.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/120539/Model_4FGL_J1231.7+2847_daily_bin1709.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/120539/ft1_filtered_4FGL_J1231.7+2847_daily_bin1709.fits.....................!
real 58.53
user 56.77
sys 1.40

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/120539/ft1_filtered_4FGL_J1231.7+2847_daily_bin1709.fits', '/scratch/kocevski/120539/ft2_4FGL_J1231.7+2847_daily_bin1709.fits', expMap='/scratch/kocevski/120539/expmap_682300801_682560001_4FGL_J1231.7+2847_daily_bin1709.fits', expCube='/scratch/kocevski/120539/ltcube_682300801_682560001_4FGL_J1231.7+2847_daily_bin1709.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/120539/Model_4FGL_J1231.7+2847_daily_bin1709.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1231.7+2847'

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  7.388e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  1.998e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/120539/ft1_filtered_4FGL_J1231.7+2847_daily_bin1709.fits
Spacecraft file(s): /scratch/kocevski/120539/ft2_4FGL_J1231.7+2847_daily_bin1709.fits
Exposure map: /scratch/kocevski/120539/expmap_682300801_682560001_4FGL_J1231.7+2847_daily_bin1709.fits
Exposure cube: /scratch/kocevski/120539/ltcube_682300801_682560001_4FGL_J1231.7+2847_daily_bin1709.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/120539/Model_4FGL_J1231.7+2847_daily_bin1709.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) = 6817.83717186

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .47897E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .34595E-06   1.0000          .0000       .10000E+07
     3 'norm      '    17.392       1.0000          .0000       .10000E+07
     4 'Prefactor '    .47467       1.0000          .0000       .10000E+07
     5 'Prefactor '    .24619E-04   1.0000          .0000       .10000E+07
     6 'norm      '    9.9439       1.0000          .0000       .10000E+07
     7 'Prefactor '    .19759E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    1.6431       1.0000          .0000       .10000E+07
     9 'Prefactor '    .22297E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .27177E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .84459E-02   1.0000          .0000       .10000E+07
    12 'norm      '    1.7945       1.0000          .0000       .10000E+07
    13 'Prefactor '    .11096E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .62406E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .68486E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .48967       1.0000          .0000       .10000E+07
    17 'norm      '    8.8953       1.0000          .0000       .10000E+07
    18 'Prefactor '    24.577       1.0000          .0000       .10000E+07
    19 'norm      '    .66995E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .11106E-02   1.0000          .0000       .10000E+07
    21 'norm      '    .51166E-03   1.0000          .0000       .10000E+07
    22 'norm      '    29.769       1.0000          .0000       .10000E+07
    23 'norm      '    .24549E-04   1.0000          .0000       .10000E+07
    24 'norm      '    .19795E-04   1.0000          .0000       .10000E+07
    25 'Prefactor '    .36809E-06   1.0000          .0000       .10000E+07
    26 'Prefactor '    14.999       1.0000          .0000       .10000E+07
    27 'Normalizat'    .69158       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.4507       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6817.678     FROM MIGRAD    STATUS=CONVERGED    239 CALLS     2660 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .63061E-07    20.679        .10987E-06** at limit **
   2  Prefactor     .55511E-10    .73430       -.85764E-07** at limit **
   3  norm          17.397        2.5479        .71505E-08    .38046E-02
   4  Prefactor     .46667        7.3482        .96770E-07   -.12707E-02
   5  Prefactor     .55511E-10    1.5223        .27020E-07** at limit **
   6  norm          9.9325        3.9288        .26944E-07    .49042E-02
   7  Prefactor     .62728E-08    2.0088       -.29748E-07** at limit **
   8  Prefactor     1.6454        1.7392        .29136E-07    .19643E-02
   9  Prefactor     .25535E-07    1.4483       -.21851E-07** at limit **
  10  Prefactor     .45403E-06    2.5042        .35263E-07** at limit **
  11  norm          .87907E-02    1.7977       -.17047E-06** at limit **
  12  norm          1.8302        5.2561       -.17401E-06   -.40369E-03
  13  Prefactor     .52625E-07    6.5850       -.11672E-06** at limit **
  14  Prefactor     .27700E-07    3.7831        .30687E-07** at limit **
  15  Prefactor     .12053E-05    6.3560       -.18932E-07** at limit **
  16  Prefactor     .47552        1.5490        .53371E-07   -.88260E-02
  17  norm          8.8782        5.3321        .92498E-08   -.97170E-02
  18  Prefactor     25.206        7.7388       -.13324E-07    .40447E-01
  19  norm          .12280E-05    37.276        .34508E-07** at limit **
  20  Prefactor     .11102E-09    4.7643       -.20804E-06** at limit **
  21  norm          .15543E-08    1.7965       -.13588E-06** at limit **
  22  norm          29.736        6.4248        .49043E-08    .72546E-01
  23  norm          .41117E-06    4.2991       -.21327E-07** at limit **
  24  norm          .21932E-06    5.3304        .31272E-07** at limit **
  25  Prefactor     .55511E-10    2.5896        .56253E-07** at limit **
  26  Prefactor     15.139        2.0907       -.53807E-08    .16970E-01
  27  Normalizat    .69100        .21655       -.14981E-05   -.22505E-04
  28  Prefactor     1.4509        .24721        .17151E-06   -.15307E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.30607e-08
  Prefactor  = 5.55112e-11
  norm       = 17.3967
  Prefactor  = 0.466668
  Prefactor  = 5.55112e-11
  norm       = 9.93253
  Prefactor  = 6.27276e-09
  Prefactor  = 1.64535
  Prefactor  = 2.55351e-08
  Prefactor  = 4.54026e-07
  norm       = 0.00879074
  norm       = 1.83024
  Prefactor  = 5.26246e-08
  Prefactor  = 2.77001e-08
  Prefactor  = 1.20526e-06
  Prefactor  = 0.475515
  norm       = 8.87822
  Prefactor  = 25.2056
  norm       = 1.22802e-06
  Prefactor  = 1.11022e-10
  norm       = 1.55431e-09
  norm       = 29.7356
  norm       = 4.11171e-07
  norm       = 2.19325e-07
  Prefactor  = 5.55112e-11
  Prefactor  = 15.1392
  Normalizat = 0.690997
  Prefactor  = 1.45085
 **********
 **   18 **HESSE 
 **********

 FCN=   6817.678     FROM HESSE     STATUS=OK           591 CALLS     3251 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .63061E-07    21.147        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .55511E-10    .72658        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          17.397        2.5502        .23989E-03   -1.5625    
   4  Prefactor     .46667        3.6857        .53409E-02   -1.5694    
   5  Prefactor     .55511E-10    1.5283        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.9325        3.9450        .31752E-03   -1.5645    
   7  Prefactor     .62728E-08    2.1755        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.6454        1.7430        .82381E-03   -1.5682    
   9  Prefactor     .25535E-07    2.5982        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .45403E-06    10.213        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .87907E-02    .97443E-01    .20100E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.8302        5.2797        .78032E-03   -1.5681    
  13  Prefactor     .52625E-07    6.8813        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .27700E-07    9.1611        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .12053E-05    13.335        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .47552        11.211        .79755E-03   -1.5694    
  17  norm          8.8782        5.4970        .33582E-03   -1.5648    
  18  Prefactor     25.206        26.713        .20176E-03   -1.5608    
  19  norm          .12280E-05    3.2223        .52055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .11102E-09    4.7741        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .15543E-08    1.8297        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          29.736        7.8017        .18331E-03   -1.5599    
  23  norm          .41117E-06    8.3291        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .21932E-06    11.261        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .55511E-10    2.6517        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     15.139        25.881        .25836E-03   -1.5630    
  27  Normalizat    .69100        .18648        .74061E-01   -1.0425    
  28  Prefactor     1.4509        .20949        .61502E-01   -.78926    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63095e-06
Minuit parameter uncertainties:
  1  0.00230946
  2  1.22776e-05
  3  2.55022
  4  2.62298
  5  2.25402e-05
  6  3.94502
  7  0.000234111
  8  1.74301
  9  0.000515385
  10  0.00430669
  11  0.0585352
  12  5.27976
  13  0.00120354
  14  0.00100795
  15  0.00801805
  16  4.61785
  17  5.49698
  18  26.7129
  19  0.0039785
  20  4.66979e-05
  21  0.000107262
  22  7.80173
  23  0.00370122
  24  0.00314301
  25  2.69976e-05
  26  25.8813
  27  0.186653
  28  0.20961
Done.

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

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  5.262e-08  1.204e-03  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  1.998e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  1.451e+00  2.096e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  6.910e-01  1.867e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 187.935 28.792
Photon Flux Upper Limit: 5.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/120539/likelihoodResults_682300801_682560001_4FGL_J1231.7+2847_daily_bin1709.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) = 6817.68150703
delta logL = -0.00323417613072

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6817.67827361
delta logL = -7.53511812945e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6817.678     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      224 TOTAL
                     EDM=   .80E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.8134        .42118E-03** at limit **
   2  Index         2.9673        1.1225        .52275E-05     .0000    
   3  Normalizat    .69100        1.0306       -.37390E-05   -.14804E-04
   4  Prefactor     1.4509        1.0540        .55147E-05   -.26056E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.9673
  Normalizat = 0.690997
  Prefactor  = 1.45085
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6817.678     FROM HESSE     STATUS=FAILED         9 CALLS      233 TOTAL
                     EDM=   .80E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.8134        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .99590        2.0337        .52275E-05   -.41866    
   3  Normalizat    .69100        1.0306       -.37390E-05   -1.0425    
   4  Prefactor     1.4509        1.0540        .55147E-05   -.78926    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.99519e-13
Minuit parameter uncertainties:
  1  3.31107e-06
  2  1.13406
  3  1.06177
  4  1.07041
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/120539': 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): 101
logL (Free Index) = 6817.67827285
delta logL = 3.81896825274e-09

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  0.000e+00  3.311e-06  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  2.967e+00  1.134e+00  0.000e+00  1.000e+01 (-1.000e+00)
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  1.451e+00  1.070e+00  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  6.910e-01  1.062e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 187.935 28.792

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/120539/cmap_HighResolution_682300801_682560001_4FGL_J1231.7+2847_daily_bin1709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.28e-03', job_status='DONE', photon_flux_upper_limit='5.71e-08', time_completed='2022-09-16 17:05:47.919913', job_id='120539', GAL2='1.45', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1663373147.92', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.45', dlogl='3.82e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1709' AND source_name='4FGL J1231.7+2847' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 17:05:47 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 120539: <4FGL_J1231.7+2847_daily_bin1709> in cluster <slac> Done

Job <4FGL_J1231.7+2847_daily_bin1709> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 16 16:50:18 2022
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 16:51:03 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 16:51:03 2022
Terminated at Fri Sep 16 17:05:48 2022
Results reported at Fri Sep 16 17:05:48 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.7+2847_daily_bin1709 187.935 28.7917 682300801 682560001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1231.7+2847 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   771.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            930 sec.

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

