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


Performing analysis on: 4FGL_J1231.7+2847_daily_bin1751
RA = 187.935, Dec = 28.7917
tmin = 693187201, tmax = 693446401
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='77699', job_status='RUN', time_executed='2022-12-23 00:40:42.096277', time_epoch_executed='1671784842.1' WHERE source_name='4FGL J1231.7+2847' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/77699

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/77699/ft1_4FGL_J1231.7+2847_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/77699/ft2_4FGL_J1231.7+2847_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/77699/ft1_4FGL_J1231.7+2847_daily_bin1751.fits outfile=/scratch/kocevski/77699/ft1_filteredMKT_4FGL_J1231.7+2847_daily_bin1751.fits ra=187.935 dec=28.7917 rad=12.0 tmin=693187201.0 tmax=693446401.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.75
user 3.40
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/77699/ft2_4FGL_J1231.7+2847_daily_bin1751.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/77699/ft1_filteredMKT_4FGL_J1231.7+2847_daily_bin1751.fits evtable="EVENTS" outfile="/scratch/kocevski/77699/ft1_filtered_4FGL_J1231.7+2847_daily_bin1751.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.49
user 0.33
sys 0.14

Number of photons that the gtmktime cut: 778

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/77699/ft1_filtered_4FGL_J1231.7+2847_daily_bin1751.fits" evtable="EVENTS" scfile=/scratch/kocevski/77699/ft2_4FGL_J1231.7+2847_daily_bin1751.fits sctable="SC_DATA" outfile=/scratch/kocevski/77699/ltcube_693187201_693446401_4FGL_J1231.7+2847_daily_bin1751.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/77699/ft2_4FGL_J1231.7+2847_daily_bin1751.fits
.....................!
real 11.81
user 11.46
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/77699/ft1_filtered_4FGL_J1231.7+2847_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/77699/ft2_4FGL_J1231.7+2847_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/77699/ltcube_693187201_693446401_4FGL_J1231.7+2847_daily_bin1751.fits outfile=/scratch/kocevski/77699/expmap_693187201_693446401_4FGL_J1231.7+2847_daily_bin1751.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/77699/ltcube_693187201_693446401_4FGL_J1231.7+2847_daily_bin1751.fits
.....................!
real 189.63
user 185.15
sys 4.12

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/77699/ft1_filtered_4FGL_J1231.7+2847_daily_bin1751.fits scfile=/scratch/kocevski/77699/ft2_4FGL_J1231.7+2847_daily_bin1751.fits outfile=/scratch/kocevski/77699/cmap_693187201_693446401_4FGL_J1231.7+2847_daily_bin1751.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/77699/ft1_filtered_4FGL_J1231.7+2847_daily_bin1751.fits scfile=/scratch/kocevski/77699/ft2_4FGL_J1231.7+2847_daily_bin1751.fits outfile=/scratch/kocevski/77699/cmap_HighResolution_693187201_693446401_4FGL_J1231.7+2847_daily_bin1751.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/77699/ft1_filtered_4FGL_J1231.7+2847_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/77699/ft2_4FGL_J1231.7+2847_daily_bin1751.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/77699/Model_4FGL_J1231.7+2847_daily_bin1751.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/77699/ft1_filtered_4FGL_J1231.7+2847_daily_bin1751.fits.....................!
real 66.61
user 65.30
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13665E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .69167E-07   1.0000          .0000       .10000E+07
     3 'norm      '    25.012       1.0000          .0000       .10000E+07
     4 'Prefactor '    .14213E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .96884E-06   1.0000          .0000       .10000E+07
     6 'norm      '    4.1674       1.0000          .0000       .10000E+07
     7 'Prefactor '    3.3781       1.0000          .0000       .10000E+07
     8 'Prefactor '    .90783       1.0000          .0000       .10000E+07
     9 'Prefactor '    2.0553       1.0000          .0000       .10000E+07
    10 'Prefactor '    .74459       1.0000          .0000       .10000E+07
    11 'norm      '    .22120       1.0000          .0000       .10000E+07
    12 'norm      '    13.358       1.0000          .0000       .10000E+07
    13 'Prefactor '    8.3819       1.0000          .0000       .10000E+07
    14 'Prefactor '    .54167E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .37832E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .10786E-03   1.0000          .0000       .10000E+07
    17 'norm      '    3.5384       1.0000          .0000       .10000E+07
    18 'Prefactor '    35.657       1.0000          .0000       .10000E+07
    19 'norm      '    1.1835       1.0000          .0000       .10000E+07
    20 'Prefactor '    .29554E-05   1.0000          .0000       .10000E+07
    21 'norm      '    .67964E-03   1.0000          .0000       .10000E+07
    22 'norm      '    28.000       1.0000          .0000       .10000E+07
    23 'norm      '    18.566       1.0000          .0000       .10000E+07
    24 'norm      '    55.903       1.0000          .0000       .10000E+07
    25 'Prefactor '    3.1476       1.0000          .0000       .10000E+07
    26 'Prefactor '    .89502E-04   1.0000          .0000       .10000E+07
    27 'Normalizat'    1.2423       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .73608       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=   8035.109     FROM MIGRAD    STATUS=CONVERGED    129 CALLS     2080 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31031E-07    6.2351        .26494E-05** at limit **
   2  Prefactor      .0000        .51612       -.12621E-06** at limit **
   3  norm          25.013        2.6891       -.76649E-07   -.21227E-02
   4  Prefactor     .55511E-10    1.6751       -.68519E-06** at limit **
   5  Prefactor      .0000        .98728        .41600E-07** at limit **
   6  norm          4.1602        2.7897        .21581E-08   -.53512E-02
   7  Prefactor     3.3774        6.9013       -.37514E-05    .38080E-02
   8  Prefactor     .91270        1.5708       -.17773E-06   -.40415E-02
   9  Prefactor     2.0553        1.3836        .12243E-06   -.59264E-02
  10  Prefactor     .74136        .71996        .21473E-06   -.50135E-02
  11  norm          .22127        .17898       -.98121E-07** at limit **
  12  norm          13.362        4.8829       -.47665E-07    .20187E-02
  13  Prefactor     8.3809        2.4206       -.88160E-06   -.33667E-01
  14  Prefactor     .87652E-07    2.4333       -.16143E-05** at limit **
  15  Prefactor     .27478E-07    2.0354        .12821E-05** at limit **
  16  Prefactor     .11102E-09    2.2458       -.89401E-07** at limit **
  17  norm          3.5464        4.0300       -.57005E-06    .76115E-02
  18  Prefactor     35.616        2.9288        .56591E-06   -.22810    
  19  norm          1.1849        2.0226       -.55541E-06    .11587E-02
  20  Prefactor     .20273E-06    31.865        .15215E-05** at limit **
  21  norm          .38858E-08    3.2409        .19440E-05** at limit **
  22  norm          28.006        2.1944       -.51361E-06   -.11642    
  23  norm          18.560        1.3251       -.23408E-06   -.68319E-01
  24  norm          55.572        3.3399       -.29091E-06    .19642    
  25  Prefactor     3.1547        3.4765       -.60932E-07    .82059E-02
  26  Prefactor     .11102E-09    3.3769       -.25078E-05** at limit **
  27  Normalizat    1.2422        .20404        .17315E-04   -.49585E-04
  28  Prefactor     .73633        .22085       -.71521E-05   -.13483E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.10307e-08
  Prefactor  = 0
  norm       = 25.0132
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 4.16018
  Prefactor  = 3.37737
  Prefactor  = 0.912698
  Prefactor  = 2.05532
  Prefactor  = 0.741362
  norm       = 0.221267
  norm       = 13.3622
  Prefactor  = 8.38086
  Prefactor  = 8.76521e-08
  Prefactor  = 2.7478e-08
  Prefactor  = 1.11022e-10
  norm       = 3.54645
  Prefactor  = 35.6163
  norm       = 1.18489
  Prefactor  = 2.02727e-07
  norm       = 3.88578e-09
  norm       = 28.006
  norm       = 18.5603
  norm       = 55.5725
  Prefactor  = 3.15466
  Prefactor  = 1.11022e-10
  Normalizat = 1.24225
  Prefactor  = 0.736326
 **********
 **   18 **HESSE 
 **********

 FCN=   8035.109     FROM HESSE     STATUS=OK           581 CALLS     2661 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .31031E-07    6.5010        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        .51729        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          25.013        2.6810        .19999E-03   -1.5608    
   4  Prefactor     .55511E-10    1.6806        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        .99118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.1602        2.7740        .49347E-03   -1.5667    
   7  Prefactor     3.3774        7.6162        .55028E-03   -1.5671    
   8  Prefactor     .91270        1.5692        .45220E-03   -1.5689    
   9  Prefactor     2.0553        1.3885        .72066E-03   -1.5679    
  10  Prefactor     .74136        6.4449        .57160E-03   -1.5691    
  11  norm          .22127        .19084        .73970E-03   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          13.362        5.1805        .27380E-03   -1.5635    
  13  Prefactor     8.3809        6.9733        .34603E-03   -1.5650    
  14  Prefactor     .87652E-07    5.3352        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .27478E-07    5.0815        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .11102E-09    2.2653        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.5464        4.3488        .53712E-03   -1.5670    
  18  Prefactor     35.616        28.307        .16748E-03   -1.5589    
  19  norm          1.1849        2.0796        .10493E-02   -1.5686    
  20  Prefactor     .20273E-06    31.976        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .38858E-08    5.4179        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          28.006        9.0625        .18902E-03   -1.5602    
  23  norm          18.560        14.083        .23217E-03   -1.5622    
  24  norm          55.572        27.117        .13376E-03   -1.5559    
  25  Prefactor     3.1547        3.6348        .57110E-03   -1.5672    
  26  Prefactor     .11102E-09    5.8086        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.2422        .17485        .58217E-01   -.85307    
  28  Prefactor     .73633        .18972        .82132E-01   -1.0212    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2444e-06
Minuit parameter uncertainties:
  1  0.000898232
  2  5.79886e-07
  3  2.68096
  4  2.35417e-05
  5  3.94832e-06
  6  2.77396
  7  7.61622
  8  1.56917
  9  1.38854
  10  4.37172
  11  0.190842
  12  5.18053
  13  6.97327
  14  0.0013675
  15  0.000747108
  16  3.20535e-05
  17  4.34876
  18  28.3067
  19  2.07961
  20  0.00509201
  21  0.000290841
  22  9.06255
  23  14.0834
  24  27.1169
  25  3.63477
  26  5.30107e-05
  27  0.174936
  28  0.189886
Done.

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

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  8.381e+00  6.973e+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

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  7.363e-01  1.899e-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.242e+00  1.749e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.42
Ra Dec: 187.935 28.792
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.13e-08 +/- 1.77e-08
Energy Flux (Fixed Index): 1.48e-05 +/- 1.23e-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) = 8035.10598858
delta logL = 0.00253569698725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8035.10550385
delta logL = 0.00302042822568

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8035.106     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      254 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6076        7.8339        .13656E-04    .64434E-03
   2  Index         1.9500        .62312        .10094E-01    .11847E-04
   3  Normalizat    1.2435        .19684        .25735E-03    .96835E-04
   4  Prefactor     .73568        .21982        .36387E-03    .75423E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.60756
  Index      = 1.94999
  Normalizat = 1.24348
  Prefactor  = 0.73568
 **********
 **   18 **HESSE 
 **********

 FCN=   8035.106     FROM HESSE     STATUS=OK            25 CALLS      279 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6076        7.6760        .54626E-06   -1.5649    
   2  Index         1.9500        .61072        .40374E-03   -.65606    
   3  Normalizat    1.2435        .19693        .10294E-04   -.85270    
   4  Prefactor     .73568        .21998        .14555E-04   -1.0214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21271e-11
Minuit parameter uncertainties:
  1  7.67605
  2  0.613164
  3  0.197048
  4  0.220238
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/77699': 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) = 8035.10550352
delta logL = 0.00302075789568

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  8.608e+00  7.676e+00  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  1.950e+00  6.132e-01  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.357e-01  2.202e-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.243e+00  1.970e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.42
Ra Dec: 187.935 28.792
Photon Index (Free Index): 1.95 +/- 0.61
Photon Flux (Free Index): 2.01e-08 +/- 2.26e-08
Energy Flux (Free Index): 1.58e-05 +/- 1.88e-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/77699/cmap_HighResolution_693187201_693446401_4FGL_J1231.7+2847_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.13e-08', energy_flux2='1.58e-05', photon_flux_error='1.77e-08', dlogl='3.02e-03', energy_flux='1.48e-05', photon_flux2='2.01e-08', job_status='DONE', time_completed='2022-12-23 00:52:35.652479', photon_index_error2='0.61', photon_index2='1.95', ts='4.42', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='1.88e-05', EG='1.24', time_epoch_completed='1671785555.65', return_code='0', job_id='77699', GAL2='0.74', EG2='1.24', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='2.26e-08', ts2='4.42', photon_index='2.00' WHERE bin_id='1751' AND source_name='4FGL J1231.7+2847' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 00:52:35 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0087>
Subject: Job 77699: <4FGL_J1231.7+2847_daily_bin1751> in cluster <slac> Done

Job <4FGL_J1231.7+2847_daily_bin1751> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Dec 23 00:40:16 2022
Job was executed on host(s) <bullet0087>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 00:40:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 00:40:18 2022
Terminated at Fri Dec 23 00:52:36 2022
Results reported at Fri Dec 23 00:52:36 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.7+2847_daily_bin1751 187.935 28.7917 693187201 693446401 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 :                                   715.43 sec.
    Max Memory :                                 641 MB
    Average Memory :                             325.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2930 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   737 sec.
    Turnaround time :                            740 sec.

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

