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


Performing analysis on: 4FGL_J1231.7+2847_daily_bin1712
RA = 187.935, Dec = 28.7917
tmin = 683078401, tmax = 683337601
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='120543', job_status='RUN', time_executed='2022-09-16 16:54:45.234250', time_epoch_executed='1663372485.23' WHERE source_name='4FGL J1231.7+2847' and cadence='daily' and bin_id='1712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/120543

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/120543/ft1_4FGL_J1231.7+2847_daily_bin1712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/120543/ft2_4FGL_J1231.7+2847_daily_bin1712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/120543/ft1_4FGL_J1231.7+2847_daily_bin1712.fits outfile=/scratch/kocevski/120543/ft1_filteredMKT_4FGL_J1231.7+2847_daily_bin1712.fits ra=187.935 dec=28.7917 rad=12.0 tmin=683078401.0 tmax=683337601.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.91
user 3.67
sys 0.22

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

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

Number of photons that the gtmktime cut: 642

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/120543/ft1_filtered_4FGL_J1231.7+2847_daily_bin1712.fits" evtable="EVENTS" scfile=/scratch/kocevski/120543/ft2_4FGL_J1231.7+2847_daily_bin1712.fits sctable="SC_DATA" outfile=/scratch/kocevski/120543/ltcube_683078401_683337601_4FGL_J1231.7+2847_daily_bin1712.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/120543/ft2_4FGL_J1231.7+2847_daily_bin1712.fits
.....................!
real 11.38
user 11.00
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/120543/ft1_filtered_4FGL_J1231.7+2847_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/120543/ft2_4FGL_J1231.7+2847_daily_bin1712.fits sctable="SC_DATA" expcube=/scratch/kocevski/120543/ltcube_683078401_683337601_4FGL_J1231.7+2847_daily_bin1712.fits outfile=/scratch/kocevski/120543/expmap_683078401_683337601_4FGL_J1231.7+2847_daily_bin1712.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/120543/ltcube_683078401_683337601_4FGL_J1231.7+2847_daily_bin1712.fits
.....................!
real 155.68
user 151.43
sys 3.89

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/120543/ft1_filtered_4FGL_J1231.7+2847_daily_bin1712.fits scfile=/scratch/kocevski/120543/ft2_4FGL_J1231.7+2847_daily_bin1712.fits outfile=/scratch/kocevski/120543/cmap_683078401_683337601_4FGL_J1231.7+2847_daily_bin1712.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.49
user 0.34
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/120543/ft1_filtered_4FGL_J1231.7+2847_daily_bin1712.fits scfile=/scratch/kocevski/120543/ft2_4FGL_J1231.7+2847_daily_bin1712.fits outfile=/scratch/kocevski/120543/cmap_HighResolution_683078401_683337601_4FGL_J1231.7+2847_daily_bin1712.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.50
user 0.33
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/120543/ft1_filtered_4FGL_J1231.7+2847_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/120543/ft2_4FGL_J1231.7+2847_daily_bin1712.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/120543/Model_4FGL_J1231.7+2847_daily_bin1712.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/120543/ft1_filtered_4FGL_J1231.7+2847_daily_bin1712.fits.....................!
real 50.39
user 49.23
sys 1.04

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2353       1.0000          .0000       .10000E+07
     2 'Prefactor '    2.1721       1.0000          .0000       .10000E+07
     3 'norm      '    32.724       1.0000          .0000       .10000E+07
     4 'Prefactor '    .12285E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .84037E-03   1.0000          .0000       .10000E+07
     6 'norm      '    5.4190       1.0000          .0000       .10000E+07
     7 'Prefactor '    .64958E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .26095       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.6629       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.7340       1.0000          .0000       .10000E+07
    11 'norm      '    .24014       1.0000          .0000       .10000E+07
    12 'norm      '    3.6555       1.0000          .0000       .10000E+07
    13 'Prefactor '    2.1941       1.0000          .0000       .10000E+07
    14 'Prefactor '    .92368E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    13.636       1.0000          .0000       .10000E+07
    16 'Prefactor '    .77941E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .20177E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    9.8866       1.0000          .0000       .10000E+07
    19 'norm      '    .10441E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    .46320E-04   1.0000          .0000       .10000E+07
    21 'norm      '    .75471E-05   1.0000          .0000       .10000E+07
    22 'norm      '    17.484       1.0000          .0000       .10000E+07
    23 'norm      '    .28147       1.0000          .0000       .10000E+07
    24 'norm      '    10.918       1.0000          .0000       .10000E+07
    25 'Prefactor '    .86633E-04   1.0000          .0000       .10000E+07
    26 'Prefactor '    .80244E-03   1.0000          .0000       .10000E+07
    27 'Normalizat'    1.1923       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1059       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=   7014.609     FROM MIGRAD    STATUS=CONVERGED    186 CALLS     2100 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5934        26.113        .20299E-05    .77858E-03
   2  Prefactor     2.1338        2.6775       -.88895E-07    .25434E-03
   3  norm          32.678        3.6042        .22670E-07    .52769E-02
   4  Prefactor     .12935E-05    18.937        .42151E-06** at limit **
   5  Prefactor     .93814E-08    6.5031       -.19574E-07** at limit **
   6  norm          5.4209        3.3024       -.27039E-07    .13885E-02
   7  Prefactor     .57992E-06    9.6627       -.49111E-07** at limit **
   8  Prefactor     .26186        3.9200        .28379E-06    .10744E-02
   9  Prefactor     1.6629        2.0085        .14429E-06    .22571E-02
  10  Prefactor     1.7368        3.5539        .29366E-06    .17182E-02
  11  norm          .24002        .19603       -.36067E-07** at limit **
  12  norm          3.6609        3.2734        .34110E-07    .90438E-03
  13  Prefactor     2.1820        7.5489       -.35402E-06    .34725E-03
  14  Prefactor     .13634E-06    6.7825        .22719E-08** at limit **
  15  Prefactor     13.621        10.224        .26551E-06    .10726    
  16  Prefactor     .54956E-08    4.8686       -.17159E-06** at limit **
  17  norm          .49960E-09    2.5686        .15188E-08** at limit **
  18  Prefactor     8.3402        20.425       -.14165E-05   -.15123E-01
  19  norm          .28766E-06    9.1767       -.17082E-06** at limit **
  20  Prefactor     .48522E-06    7.4278       -.12840E-06** at limit **
  21  norm          .11102E-09    1.4626        .13959E-06** at limit **
  22  norm          17.729        6.6718       -.29912E-08   -.14046E-01
  23  norm          .73871E-01    59.270       -.35841E-05** at limit **
  24  norm          10.935        1.1231        .60061E-08    .81709E-03
  25  Prefactor     .49960E-09    2.9893       -.11599E-07** at limit **
  26  Prefactor     .85015E-06    16.043        .13240E-06** at limit **
  27  Normalizat    1.1924        .23955       -.10744E-05   -.52513E-04
  28  Prefactor     1.1061        .26576        .21182E-05   -.46046E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.59337
  Prefactor  = 2.13384
  norm       = 32.6777
  Prefactor  = 1.29347e-06
  Prefactor  = 9.38138e-09
  norm       = 5.42089
  Prefactor  = 5.79925e-07
  Prefactor  = 0.261858
  Prefactor  = 1.66294
  Prefactor  = 1.73678
  norm       = 0.240023
  norm       = 3.66095
  Prefactor  = 2.18204
  Prefactor  = 1.36335e-07
  Prefactor  = 13.6213
  Prefactor  = 5.4956e-09
  norm       = 4.996e-10
  Prefactor  = 8.34017
  norm       = 2.87659e-07
  Prefactor  = 4.85223e-07
  norm       = 1.11022e-10
  norm       = 17.7291
  norm       = 0.0738715
  norm       = 10.9352
  Prefactor  = 4.996e-10
  Prefactor  = 8.50153e-07
  Normalizat = 1.19242
  Prefactor  = 1.10611
 **********
 **   18 **HESSE 
 **********

 FCN=   7014.609     FROM HESSE     STATUS=OK           595 CALLS     2695 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5934        47.634        .40177E-03   -1.5653    
   2  Prefactor     2.1338        2.8188        .69841E-03   -1.5679    
   3  norm          32.678        3.6587        .17483E-03   -1.5594    
   4  Prefactor     .12935E-05    29.123        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .93814E-08    6.4518        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.4209        3.3412        .43143E-03   -1.5661    
   7  Prefactor     .57992E-06    11.372        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .26186        1.8984        .36320E-02   -1.5698    
   9  Prefactor     1.6629        2.0467        .81765E-03   -1.5682    
  10  Prefactor     1.7368        3.5967        .79675E-03   -1.5682    
  11  norm          .24002        .20493        .73250E-03   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.6609        3.2811        .52809E-03   -1.5670    
  13  Prefactor     2.1820        7.6215        .69445E-03   -1.5678    
  14  Prefactor     .13634E-06    13.814        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.621        11.719        .27099E-03   -1.5634    
  16  Prefactor     .54956E-08    4.8812        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .49960E-09    2.5813        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.3402        30.678        .31845E-03   -1.5650    
  19  norm          .28766E-06    2.4430        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .48522E-06    15.041        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .11102E-09    1.4719        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          17.729        8.0045        .23925E-03   -1.5624    
  23  norm          .73871E-01    10.869        .73057E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          10.935        15.381        .30296E-03   -1.5642    
  25  Prefactor     .49960E-09    2.9779        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .85015E-06    19.529        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1924        .20569        .65826E-01   -.86837    
  28  Prefactor     1.1061        .22437        .76522E-01   -.89271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.42762e-07
Minuit parameter uncertainties:
  1  38.0373
  2  2.81878
  3  3.65875
  4  0.012275
  5  0.000492035
  6  3.34121
  7  0.00513613
  8  1.41012
  9  2.04667
  10  3.59671
  11  0.204935
  12  3.2811
  13  7.62157
  14  0.00274464
  15  11.7192
  16  0.000327726
  17  6.98729e-05
  18  30.6788
  19  0.00167665
  20  0.00540308
  21  2.24501e-05
  22  8.00447
  23  1.79212
  24  15.3808
  25  7.66973e-05
  26  0.00814928
  27  0.205832
  28  0.224565
Done.

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

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  2.182e+00  7.622e+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:  1.106e+00  2.246e-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.192e+00  2.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/120543/likelihoodResults_683078401_683337601_4FGL_J1231.7+2847_daily_bin1712.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) = 7014.60525788
delta logL = 0.0040933671271

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7014.6049833
delta logL = 0.00436794943289

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3512       1.0000          .0000       .10000E+07
     2 'Index     '    1.8322       1.0000          .0000       10.000    
     3 'Normalizat'    1.1938       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1054       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7014.605     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      295 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3622        7.9422        .13364E-03    .27508E-02
   2  Index         1.8386        1.5758        .87520E-02    .85175E-05
   3  Normalizat    1.1938        .23234        .29105E-03   -.56443E-04
   4  Prefactor     1.1051        .26257        .33879E-03   -.31241E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.36223
  Index      = 1.83855
  Normalizat = 1.19378
  Prefactor  = 1.10511
 **********
 **   18 **HESSE 
 **********

 FCN=   7014.605     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3622        7.9059        .26729E-04   -1.5677    
   2  Index         1.8386        1.5694        .35008E-03   -.68451    
   3  Normalizat    1.1938        .23254        .11642E-04   -.86795    
   4  Prefactor     1.1051        .26281        .13552E-04   -.89303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94934e-11
Minuit parameter uncertainties:
  1  7.90596
  2  1.61589
  3  0.232746
  4  0.263119
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/120543': 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) = 7014.60497177
delta logL = 0.00437948083072

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  2.362e+00  7.906e+00  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  1.839e+00  1.616e+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.105e+00  2.631e-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.194e+00  2.327e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.10
Ra Dec: 187.935 28.792

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/120543/cmap_HighResolution_683078401_683337601_4FGL_J1231.7+2847_daily_bin1712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.13e-03', job_status='DONE', photon_flux_upper_limit='6.84e-08', time_completed='2022-09-16 17:04:55.591307', job_id='120543', GAL2='1.11', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1663373095.59', return_code2='0', ts='0.10', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='4.38e-03', ts2='0.11', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1712' AND source_name='4FGL J1231.7+2847' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 17:04:55 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 120543: <4FGL_J1231.7+2847_daily_bin1712> in cluster <slac> Done

Job <4FGL_J1231.7+2847_daily_bin1712> 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) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 16:51:08 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:08 2022
Terminated at Fri Sep 16 17:04:56 2022
Results reported at Fri Sep 16 17:04:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.7+2847_daily_bin1712 187.935 28.7917 683078401 683337601 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 :                                   611.38 sec.
    Max Memory :                                 1177 MB
    Average Memory :                             298.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            878 sec.

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

