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


Performing analysis on: 4FGL_J1231.7+2847_daily_bin1710
RA = 187.935, Dec = 28.7917
tmin = 682560001, tmax = 682819201
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='120541', job_status='RUN', time_executed='2022-09-16 16:51:33.729311', time_epoch_executed='1663372293.73' WHERE source_name='4FGL J1231.7+2847' and cadence='daily' and bin_id='1710'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/120541

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/120541/ft1_4FGL_J1231.7+2847_daily_bin1710.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/120541/ft2_4FGL_J1231.7+2847_daily_bin1710.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/120541/ft1_4FGL_J1231.7+2847_daily_bin1710.fits outfile=/scratch/kocevski/120541/ft1_filteredMKT_4FGL_J1231.7+2847_daily_bin1710.fits ra=187.935 dec=28.7917 rad=12.0 tmin=682560001.0 tmax=682819201.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.67
user 3.42
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/120541/ft2_4FGL_J1231.7+2847_daily_bin1710.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/120541/ft1_filteredMKT_4FGL_J1231.7+2847_daily_bin1710.fits evtable="EVENTS" outfile="/scratch/kocevski/120541/ft1_filtered_4FGL_J1231.7+2847_daily_bin1710.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 638

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/120541/ft1_filtered_4FGL_J1231.7+2847_daily_bin1710.fits" evtable="EVENTS" scfile=/scratch/kocevski/120541/ft2_4FGL_J1231.7+2847_daily_bin1710.fits sctable="SC_DATA" outfile=/scratch/kocevski/120541/ltcube_682560001_682819201_4FGL_J1231.7+2847_daily_bin1710.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/120541/ft2_4FGL_J1231.7+2847_daily_bin1710.fits
.....................!
real 13.27
user 12.81
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/120541/ft1_filtered_4FGL_J1231.7+2847_daily_bin1710.fits evtable="EVENTS" scfile=/scratch/kocevski/120541/ft2_4FGL_J1231.7+2847_daily_bin1710.fits sctable="SC_DATA" expcube=/scratch/kocevski/120541/ltcube_682560001_682819201_4FGL_J1231.7+2847_daily_bin1710.fits outfile=/scratch/kocevski/120541/expmap_682560001_682819201_4FGL_J1231.7+2847_daily_bin1710.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/120541/ltcube_682560001_682819201_4FGL_J1231.7+2847_daily_bin1710.fits
.....................!
real 194.18
user 188.34
sys 5.33

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/120541/ft1_filtered_4FGL_J1231.7+2847_daily_bin1710.fits scfile=/scratch/kocevski/120541/ft2_4FGL_J1231.7+2847_daily_bin1710.fits outfile=/scratch/kocevski/120541/cmap_682560001_682819201_4FGL_J1231.7+2847_daily_bin1710.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/120541/ft1_filtered_4FGL_J1231.7+2847_daily_bin1710.fits scfile=/scratch/kocevski/120541/ft2_4FGL_J1231.7+2847_daily_bin1710.fits outfile=/scratch/kocevski/120541/cmap_HighResolution_682560001_682819201_4FGL_J1231.7+2847_daily_bin1710.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.58
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/120541/ft1_filtered_4FGL_J1231.7+2847_daily_bin1710.fits evtable="EVENTS" scfile=/scratch/kocevski/120541/ft2_4FGL_J1231.7+2847_daily_bin1710.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/120541/Model_4FGL_J1231.7+2847_daily_bin1710.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/120541/ft1_filtered_4FGL_J1231.7+2847_daily_bin1710.fits.....................!
real 61.44
user 60.02
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/120541/ft1_filtered_4FGL_J1231.7+2847_daily_bin1710.fits', '/scratch/kocevski/120541/ft2_4FGL_J1231.7+2847_daily_bin1710.fits', expMap='/scratch/kocevski/120541/expmap_682560001_682819201_4FGL_J1231.7+2847_daily_bin1710.fits', expCube='/scratch/kocevski/120541/ltcube_682560001_682819201_4FGL_J1231.7+2847_daily_bin1710.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/120541/Model_4FGL_J1231.7+2847_daily_bin1710.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/120541/ft1_filtered_4FGL_J1231.7+2847_daily_bin1710.fits
Spacecraft file(s): /scratch/kocevski/120541/ft2_4FGL_J1231.7+2847_daily_bin1710.fits
Exposure map: /scratch/kocevski/120541/expmap_682560001_682819201_4FGL_J1231.7+2847_daily_bin1710.fits
Exposure cube: /scratch/kocevski/120541/ltcube_682560001_682819201_4FGL_J1231.7+2847_daily_bin1710.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/120541/Model_4FGL_J1231.7+2847_daily_bin1710.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) = 7107.94985196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30566E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    2.6364       1.0000          .0000       .10000E+07
     3 'norm      '    21.063       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.1528       1.0000          .0000       .10000E+07
     5 'Prefactor '    .39449       1.0000          .0000       .10000E+07
     6 'norm      '    14.346       1.0000          .0000       .10000E+07
     7 'Prefactor '    5.0744       1.0000          .0000       .10000E+07
     8 'Prefactor '    .42871E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .32449E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    9.1557       1.0000          .0000       .10000E+07
    11 'norm      '    .28624       1.0000          .0000       .10000E+07
    12 'norm      '    9.1610       1.0000          .0000       .10000E+07
    13 'Prefactor '    15.895       1.0000          .0000       .10000E+07
    14 'Prefactor '    .16893E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .93851       1.0000          .0000       .10000E+07
    16 'Prefactor '    9.5362       1.0000          .0000       .10000E+07
    17 'norm      '    .10331E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    15.052       1.0000          .0000       .10000E+07
    19 'norm      '    6.3265       1.0000          .0000       .10000E+07
    20 'Prefactor '    6.7712       1.0000          .0000       .10000E+07
    21 'norm      '    2.6635       1.0000          .0000       .10000E+07
    22 'norm      '    3.3913       1.0000          .0000       .10000E+07
    23 'norm      '    11.811       1.0000          .0000       .10000E+07
    24 'norm      '    .17750E-02   1.0000          .0000       .10000E+07
    25 'Prefactor '    .44265E-06   1.0000          .0000       .10000E+07
    26 'Prefactor '    .12698E-03   1.0000          .0000       .10000E+07
    27 'Normalizat'    1.3052       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .71585       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=   7107.885     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     2016 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22204E-09    17.376       -.35680E-06** at limit **
   2  Prefactor     2.6369        1.7911       -.87841E-08   -.31841E-02
   3  norm          21.069        2.8663        .10776E-07   -.76995E-02
   4  Prefactor     1.2269        4.6268       -.36214E-06   -.28434E-02
   5  Prefactor     .38450        6.2255        .11488E-05    .83917E-02
   6  norm          14.349        4.2996       -.77146E-08    .23265E-03
   7  Prefactor     5.1454        6.3388       -.10361E-05   -.33886E-01
   8  Prefactor     .55511E-10    .83946       -.16945E-07** at limit **
   9  Prefactor     .11102E-09    1.7269        .14586E-07** at limit **
  10  Prefactor     9.1527        2.3035       -.21308E-07    .12974E-02
  11  norm          .28637        .22909       -.14996E-07   -.92040E-02
  12  norm          9.1761        4.5629        .33246E-06    .10093E-01
  13  Prefactor     15.699        4.0164        .43971E-06   -.69670E-01
  14  Prefactor     .26312E-07    8.6056       -.20698E-06** at limit **
  15  Prefactor     1.0153        1.0157       -.20913E-07    .77337E-02
  16  Prefactor     9.5797        7.1081       -.14405E-06   -.12515E-01
  17  norm          .55511E-10    2.5708        .27771E-07** at limit **
  18  Prefactor     16.470        37.090        .45509E-06    .32166E-02
  19  norm          6.2825        4.3442        .23599E-07   -.19643E-03
  20  Prefactor     6.8972        2.0756       -.72460E-07   -.29189E-04
  21  norm          2.6502        3.7849       -.40354E-08   -.40163E-03
  22  norm          3.1895        5.2859       -.19551E-06    .11354E-01
  23  norm          12.009        4.0304        .33711E-06   -.47692E-01
  24  norm          .11879E-07    7.6884        .26633E-06** at limit **
  25  Prefactor     .27756E-09    5.3689        .52798E-07** at limit **
  26  Prefactor     .16653E-08    15.962        .38179E-07** at limit **
  27  Normalizat    1.3048        .22851       -.64529E-06   -.22059E-03
  28  Prefactor     .71522        .23775        .12600E-06   -.12509E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.22045e-10
  Prefactor  = 2.63695
  norm       = 21.069
  Prefactor  = 1.22687
  Prefactor  = 0.384497
  norm       = 14.3492
  Prefactor  = 5.14543
  Prefactor  = 5.55112e-11
  Prefactor  = 1.11022e-10
  Prefactor  = 9.1527
  norm       = 0.286367
  norm       = 9.17605
  Prefactor  = 15.6992
  Prefactor  = 2.63123e-08
  Prefactor  = 1.01527
  Prefactor  = 9.57966
  norm       = 5.55112e-11
  Prefactor  = 16.4699
  norm       = 6.28252
  Prefactor  = 6.89723
  norm       = 2.65018
  norm       = 3.18952
  norm       = 12.0086
  norm       = 1.18794e-08
  Prefactor  = 2.77556e-10
  Prefactor  = 1.66533e-09
  Normalizat = 1.30481
  Prefactor  = 0.715216
 **********
 **   18 **HESSE 
 **********

 FCN=   7107.885     FROM HESSE     STATUS=OK           591 CALLS     2607 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22204E-09    17.152        .16421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.6369        1.7941        .62772E-03   -1.5675    
   3  norm          21.069        2.8708        .21795E-03   -1.5616    
   4  Prefactor     1.2269        4.7581        .10764E-02   -1.5686    
   5  Prefactor     .38450        3.0264        .42537E-02   -1.5696    
   6  norm          14.349        4.3145        .26418E-03   -1.5632    
   7  Prefactor     5.1454        6.8829        .44612E-03   -1.5663    
   8  Prefactor     .55511E-10    .83824        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .11102E-09    1.7152        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.1527        6.8533        .33098E-03   -1.5647    
  11  norm          .28637        .23578        .77237E-03   -1.5697    
  12  norm          9.1761        5.3065        .33089E-03   -1.5647    
  13  Prefactor     15.699        10.270        .25095E-03   -1.5629    
  14  Prefactor     .26312E-07    8.8404        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.0153        28.152        .43133E-03   -1.5688    
  16  Prefactor     9.5797        7.9364        .32428E-03   -1.5646    
  17  norm          .55511E-10    2.5455        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.470        37.839        .25790E-03   -1.5627    
  19  norm          6.2825        4.4002        .39883E-03   -1.5658    
  20  Prefactor     6.8972        14.425        .38536E-03   -1.5655    
  21  norm          2.6502        3.8137        .62426E-03   -1.5675    
  22  norm          3.1895        8.0323        .54916E-03   -1.5672    
  23  norm          12.009        11.179        .29123E-03   -1.5639    
  24  norm          .11879E-07    7.8242        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .27756E-09    5.3250        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .16653E-08    15.932        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.3048        .19696        .59138E-01   -.83423    
  28  Prefactor     .71522        .20823        .83595E-01   -1.0293    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08907e-07
Minuit parameter uncertainties:
  1  0.000122614
  2  1.79412
  3  2.87075
  4  4.75813
  5  2.15746
  6  4.31448
  7  6.88294
  8  1.04218e-05
  9  2.56425e-05
  10  6.85334
  11  0.235781
  12  5.3065
  13  10.2696
  14  0.000964323
  15  10.6924
  16  7.93638
  17  2.47669e-05
  18  37.8394
  19  4.40018
  20  14.4249
  21  3.8137
  22  8.03231
  23  11.1787
  24  0.000609319
  25  7.93453e-05
  26  0.000326933
  27  0.197077
  28  0.20846
Done.

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

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  1.570e+01  1.027e+01  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:  7.152e-01  2.085e-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:  1.305e+00  1.971e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.11
Ra Dec: 187.935 28.792
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 3.99e-08 +/- 2.61e-08
Energy Flux (Fixed Index): 2.77e-05 +/- 1.81e-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) = 7107.08073311
delta logL = 0.803826854756

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7106.87499182
delta logL = 1.00956814548

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .84553       1.0000          .0000       .10000E+07
     2 'Index     '    .34202       1.0000          .0000       10.000    
     3 'Normalizat'    1.3167       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73319       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.

 FCN=   7106.875     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      253 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .84558        1.1209        .49601E-03    .68458E-01
   2  Index         .34170        .49831        .32608        .43107E-04
   3  Normalizat    1.3168        .18558        .58982E-01    .14471E-05
   4  Prefactor     .73321        .20200        .82887E-01    .30693E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.845578
  Index      = 0.341704
  Normalizat = 1.3168
  Prefactor  = 0.733206
 **********
 **   18 **HESSE 
 **********

 FCN=   7106.875     FROM HESSE     STATUS=OK            33 CALLS      286 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .84558        2.6905        .74983E-05   -1.5690    
   2  Index         .34170        .95884        .17093E-01   -1.1990    
   3  Normalizat    1.3168        .21651        .26083E-03   -.83066    
   4  Prefactor     .73321        .23521        .36707E-03   -1.0224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.31758e-08
Minuit parameter uncertainties:
  1  2.69053
  2  1.01009
  3  0.216661
  4  0.235528
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/120541': 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) = 7106.87499092
delta logL = 1.00956904365

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  8.456e-01  2.691e+00  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  3.417e-01  1.010e+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:  7.332e-01  2.355e-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:  1.317e+00  2.167e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.11
Ra Dec: 187.935 28.792
Photon Index (Free Index): 0.34 +/- 1.01
Photon Flux (Free Index): 3.09e-09 +/- 3.23e-09
Energy Flux (Free Index): 1.24e-04 +/- 1.41e-04

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/120541/cmap_HighResolution_682560001_682819201_4FGL_J1231.7+2847_daily_bin1710.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.99e-08', energy_flux2='1.24e-04', photon_flux_error='2.61e-08', dlogl='1.01e+00', energy_flux='2.77e-05', photon_flux2='3.09e-09', job_status='DONE', time_completed='2022-09-16 17:02:32.872844', photon_index_error2='1.01', photon_index2='0.34', ts='10.11', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='1.41e-04', EG='1.30', time_epoch_completed='1663372952.87', return_code='0', job_id='120541', GAL2='0.73', EG2='1.32', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='3.23e-09', ts2='12.11', photon_index='2.00' WHERE bin_id='1710' AND source_name='4FGL J1231.7+2847' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 17:02:32 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 120541: <4FGL_J1231.7+2847_daily_bin1710> in cluster <slac> Done

Job <4FGL_J1231.7+2847_daily_bin1710> 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) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 16:51:05 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:05 2022
Terminated at Fri Sep 16 17:02:33 2022
Results reported at Fri Sep 16 17:02:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.7+2847_daily_bin1710 187.935 28.7917 682560001 682819201 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 :                                   660.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   688 sec.
    Turnaround time :                            735 sec.

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

