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


Performing analysis on: 4FGL_J1231.7+2847_daily_bin1772
RA = 187.935, Dec = 28.7917
tmin = 698630401, tmax = 698889601
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='632039', job_status='RUN', time_executed='2023-02-24 01:36:53.884914', time_epoch_executed='1677231413.88' WHERE source_name='4FGL J1231.7+2847' and cadence='daily' and bin_id='1772'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/632039

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/632039/ft1_4FGL_J1231.7+2847_daily_bin1772.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/632039/ft2_4FGL_J1231.7+2847_daily_bin1772.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/632039/ft1_4FGL_J1231.7+2847_daily_bin1772.fits outfile=/scratch/kocevski/632039/ft1_filteredMKT_4FGL_J1231.7+2847_daily_bin1772.fits ra=187.935 dec=28.7917 rad=12.0 tmin=698630401.0 tmax=698889601.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.07
user 2.79
sys 0.15

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

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

Number of photons that the gtmktime cut: 211

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/632039/ft1_filtered_4FGL_J1231.7+2847_daily_bin1772.fits" evtable="EVENTS" scfile=/scratch/kocevski/632039/ft2_4FGL_J1231.7+2847_daily_bin1772.fits sctable="SC_DATA" outfile=/scratch/kocevski/632039/ltcube_698630401_698889601_4FGL_J1231.7+2847_daily_bin1772.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/632039/ft2_4FGL_J1231.7+2847_daily_bin1772.fits
.....................!
real 12.72
user 12.37
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/632039/ft1_filtered_4FGL_J1231.7+2847_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/632039/ft2_4FGL_J1231.7+2847_daily_bin1772.fits sctable="SC_DATA" expcube=/scratch/kocevski/632039/ltcube_698630401_698889601_4FGL_J1231.7+2847_daily_bin1772.fits outfile=/scratch/kocevski/632039/expmap_698630401_698889601_4FGL_J1231.7+2847_daily_bin1772.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/632039/ltcube_698630401_698889601_4FGL_J1231.7+2847_daily_bin1772.fits
.....................!
real 191.14
user 186.17
sys 4.65

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/632039/ft1_filtered_4FGL_J1231.7+2847_daily_bin1772.fits scfile=/scratch/kocevski/632039/ft2_4FGL_J1231.7+2847_daily_bin1772.fits outfile=/scratch/kocevski/632039/cmap_698630401_698889601_4FGL_J1231.7+2847_daily_bin1772.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.53
user 0.38
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39183       1.0000          .0000       .10000E+07
     2 'Prefactor '    .12764E-02   1.0000          .0000       .10000E+07
     3 'norm      '    38.767       1.0000          .0000       .10000E+07
     4 'Prefactor '    .53913E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .68781E-03   1.0000          .0000       .10000E+07
     6 'norm      '    5.5318       1.0000          .0000       .10000E+07
     7 'Prefactor '    .21025E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .10209E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    13.735       1.0000          .0000       .10000E+07
    10 'Prefactor '    .40529E-06   1.0000          .0000       .10000E+07
    11 'norm      '    .73912E-01   1.0000          .0000       .10000E+07
    12 'norm      '    43.500       1.0000          .0000       .10000E+07
    13 'Prefactor '    23.990       1.0000          .0000       .10000E+07
    14 'Prefactor '    3.6266       1.0000          .0000       .10000E+07
    15 'Prefactor '    .81074E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .68567E-04   1.0000          .0000       .10000E+07
    17 'norm      '    .87443E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    .14699E-03   1.0000          .0000       .10000E+07
    19 'norm      '    .21143E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    15.448       1.0000          .0000       .10000E+07
    21 'norm      '    .39509E-04   1.0000          .0000       .10000E+07
    22 'norm      '    41.304       1.0000          .0000       .10000E+07
    23 'norm      '    .39355E-03   1.0000          .0000       .10000E+07
    24 'norm      '    .62279E-03   1.0000          .0000       .10000E+07
    25 'Prefactor '    .11027E-03   1.0000          .0000       .10000E+07
    26 'Prefactor '    .98755E-03   1.0000          .0000       .10000E+07
    27 'Normalizat'    .52330       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.6279       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=   2400.549     FROM MIGRAD    STATUS=CONVERGED    189 CALLS     2538 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21597E-04    14.092        .11765E-06** at limit **
   2  Prefactor     .80702E-06    6.4112        .23242E-06** at limit **
   3  norm          38.786        1.9319       -.13109E-07   -.74703E-02
   4  Prefactor     .66397E-06    3.1840        .21781E-06** at limit **
   5  Prefactor     .35028E-07    5.8510        .10965E-06** at limit **
   6  norm          5.5026        5.4221       -.10996E-06    .18918E-02
   7  Prefactor     .24580E-06    3.3903        .16504E-06** at limit **
   8  Prefactor     .50665E-06    6.0949        .37289E-06** at limit **
   9  Prefactor     13.693        5.9089       -.59925E-07   -.15106E-02
  10  Prefactor     .16084E-05    48.979       -.15317E-06** at limit **
  11  norm          .76307E-01    2.4810        .62728E-06** at limit **
  12  norm          43.276        6.2074       -.37446E-07   -.25066E-01
  13  Prefactor     24.667        4.1113       -.12218E-07    .20795E-01
  14  Prefactor     4.5628        14.688        .22126E-06   -.45910E-01
  15  Prefactor     .13672E-05    6.7870        .59842E-07** at limit **
  16  Prefactor     .12101E-07    4.3536        .81118E-07** at limit **
  17  norm          .16653E-09    2.4552       -.48106E-06** at limit **
  18  Prefactor     .26701E-07    13.991       -.16356E-06** at limit **
  19  norm          .11102E-09    2.0981       -.29286E-06** at limit **
  20  Prefactor     15.271        1.4308       -.69532E-08    .10479E-01
  21  norm          .17764E-07    4.6998        .12309E-06** at limit **
  22  norm          41.227        9.7181        .31977E-07    .13267E-01
  23  norm          .98960E-06    4.7457        .14195E-06** at limit **
  24  norm          .67168E-06    10.602       -.27685E-06** at limit **
  25  Prefactor     .83211E-07    2.4061        .12396E-06** at limit **
  26  Prefactor     .17342E-06    15.589       -.54369E-06** at limit **
  27  Normalizat    .52452        .42370        .26433E-04   -.17573E-04
  28  Prefactor     1.6257        .50509       -.22156E-04   -.58292E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.15968e-05
  Prefactor  = 8.07021e-07
  norm       = 38.7857
  Prefactor  = 6.63969e-07
  Prefactor  = 3.50275e-08
  norm       = 5.50263
  Prefactor  = 2.45803e-07
  Prefactor  = 5.0665e-07
  Prefactor  = 13.6926
  Prefactor  = 1.60844e-06
  norm       = 0.0763072
  norm       = 43.2761
  Prefactor  = 24.6672
  Prefactor  = 4.56279
  Prefactor  = 1.36724e-06
  Prefactor  = 1.21014e-08
  norm       = 1.66533e-10
  Prefactor  = 2.67009e-08
  norm       = 1.11022e-10
  Prefactor  = 15.2706
  norm       = 1.77636e-08
  norm       = 41.2274
  norm       = 9.89597e-07
  norm       = 6.71685e-07
  Prefactor  = 8.32112e-08
  Prefactor  = 1.73417e-07
  Normalizat = 0.524522
  Prefactor  = 1.62573
 **********
 **   18 **HESSE 
 **********

 FCN=   2400.549     FROM HESSE     STATUS=OK           571 CALLS     3109 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .21597E-04    167.24        .90439E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .80702E-06    13.062        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          38.786        11.029        .16063E-03   -1.5583    
   4  Prefactor     .66397E-06    8.3113        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .35028E-07    5.9489        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.5026        11.644        .42694E-03   -1.5661    
   7  Prefactor     .24580E-06    8.7159        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .50665E-06    7.2391        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.693        11.803        .27001E-03   -1.5634    
  10  Prefactor     .16084E-05    54.154        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .76307E-01    .66193        .21297E-02   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          43.276        21.315        .15163E-03   -1.5576    
  13  Prefactor     24.667        32.571        .20421E-03   -1.5609    
  14  Prefactor     4.5628        107.37        .53027E-03   -1.5665    
  15  Prefactor     .13672E-05    14.401        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .12101E-07    4.3765        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .16653E-09    2.4594        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .26701E-07    28.545        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .11102E-09    2.0992        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.271        22.327        .25456E-03   -1.5630    
  21  norm          .17764E-07    4.7245        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          41.227        9.7914        .15561E-03   -1.5580    
  23  norm          .98960E-06    9.5732        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .67168E-06    26.966        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .83211E-07    14.702        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .17342E-06    21.985        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .52452        .37691        .94195E-01   -1.1129    
  28  Prefactor     1.6257        .43025        .66550E-01   -.74077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58517e-06
Minuit parameter uncertainties:
  1  0.120202
  2  0.0064936
  3  11.0288
  4  0.00469831
  5  0.000913189
  6  11.6445
  7  0.00292754
  8  0.00383016
  9  11.8035
  10  0.0186661
  11  0.449488
  12  21.3149
  13  32.5717
  14  44.269
  15  0.00887468
  16  0.000460687
  17  4.20648e-05
  18  0.00174584
  19  3.11342e-05
  20  22.3272
  21  0.000579459
  22  9.79144
  23  0.00615591
  24  0.0085118
  25  0.00221217
  26  0.00390531
  27  0.378767
  28  0.43123
Done.

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

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  2.467e+01  3.257e+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:  1.626e+00  4.312e-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:  5.245e-01  3.788e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.08
Ra Dec: 187.935 28.792
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 6.26e-08 +/- 8.27e-08
Energy Flux (Fixed Index): 4.35e-05 +/- 5.75e-05

TS (Fixed Index): 1.08
Ra Dec: 187.935 28.792
Photon Flux Upper Limit: 2.67e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.00e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/632039/likelihoodResults_698630401_698889601_4FGL_J1231.7+2847_daily_bin1772.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) = 2398.7759697
delta logL = 1.77276236347

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2398.75377187
delta logL = 1.79496019135

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4928       1.0000          .0000       .10000E+07
     2 'Index     '    3.3390       1.0000          .0000       10.000    
     3 'Normalizat'    .31065       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.7658       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=   2398.754     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      282 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4819        92.391        .36615E-03    .75157E-03
   2  Index         3.3393        2.8207        .57593E-01    .81009E-04
   3  Normalizat    .31088        .17624        .12023        .25096E-04
   4  Prefactor     1.7657        .18903        .63970E-01   -.24336E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.48188
  Index      = 3.3393
  Normalizat = 0.310881
  Prefactor  = 1.76572
 **********
 **   18 **HESSE 
 **********

 FCN=   2398.754     FROM HESSE     STATUS=OK            33 CALLS      315 TOTAL
                     EDM=   .72E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4819        15.120        .73149E-05   -1.5653    
   2  Index         3.3393        .91573        .24258E-02   -.33857    
   3  Normalizat    .31088        .43123        .53244E-03   -1.2219    
   4  Prefactor     1.7657        .49971        .28281E-03   -.70345    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.16137e-12
Minuit parameter uncertainties:
  1  15.1204
  2  0.921588
  3  0.435949
  4  0.501147
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/632039': 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) = 2398.75377074
delta logL = 1.7949613252

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  7.482e+00  1.512e+01  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  3.339e+00  9.216e-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:  1.766e+00  5.011e-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:  3.109e-01  4.359e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.00
Ra Dec: 187.935 28.792
Photon Index (Free Index): 3.34 +/- 0.92
Photon Flux (Free Index): 3.34e-07 +/- 2.14e-07
Energy Flux (Free Index): 5.83e-05 +/- 3.51e-05

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/632039/cmap_HighResolution_698630401_698889601_4FGL_J1231.7+2847_daily_bin1772.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.00e-02', comment='SUCCESS', photon_flux='6.26e-08', energy_flux2='5.83e-05', photon_flux_error='8.27e-08', dlogl='1.79e+00', energy_flux='4.35e-05', photon_flux2='3.34e-07', job_status='DONE', time_completed='2023-02-24 01:44:38.537198', photon_index_error2='0.92', photon_index2='3.34', ts='1.08', fit_tolerance='1e-08', GAL='1.63', photon_index_error='0.00', photon_flux_upper_limit='2.67e-07', energy_flux_error2='3.51e-05', EG='0.52', time_epoch_completed='1677231878.54', return_code='0', job_id='632039', GAL2='1.77', EG2='0.31', return_code2='0', energy_flux_error='5.75e-05', photon_flux_error2='2.14e-07', ts2='5.00', photon_index='2.00' WHERE bin_id='1772' AND source_name='4FGL J1231.7+2847' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb 24 01:44:38 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 632039: <4FGL_J1231.7+2847_daily_bin1772> in cluster <slac> Done

Job <4FGL_J1231.7+2847_daily_bin1772> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Feb 24 01:35:19 2023
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb 24 01:35:21 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb 24 01:35:21 2023
Terminated at Fri Feb 24 01:44:39 2023
Results reported at Fri Feb 24 01:44:39 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.7+2847_daily_bin1772 187.935 28.7917 698630401 698889601 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 :                                   467.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             307.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   557 sec.
    Turnaround time :                            560 sec.

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

