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


Performing analysis on: 4FGL_J1231.7+2847_weekly_bin760
RA = 187.935, Dec = 28.7917
tmin = 698630401, tmax = 699235201
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='22419', job_status='RUN', time_executed='2023-02-28 01:12:07.724132', time_epoch_executed='1677575527.72' WHERE source_name='4FGL J1231.7+2847' and cadence='weekly' and bin_id='760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/22419

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

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=698630401.0 && nMetStart<699235201.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<699235201.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/22419/ft1_4FGL_J1231.7+2847_weekly_bin760.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/22419/ft2_4FGL_J1231.7+2847_weekly_bin760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/22419/ft1_4FGL_J1231.7+2847_weekly_bin760.fits outfile=/scratch/kocevski/22419/ft1_filteredMKT_4FGL_J1231.7+2847_weekly_bin760.fits ra=187.935 dec=28.7917 rad=12.0 tmin=698630401.0 tmax=699235201.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 6.27
user 5.93
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/22419/ft2_4FGL_J1231.7+2847_weekly_bin760.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/22419/ft1_filteredMKT_4FGL_J1231.7+2847_weekly_bin760.fits evtable="EVENTS" outfile="/scratch/kocevski/22419/ft1_filtered_4FGL_J1231.7+2847_weekly_bin760.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.58
user 0.38
sys 0.17

Number of photons that the gtmktime cut: 496

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/22419/ft1_filtered_4FGL_J1231.7+2847_weekly_bin760.fits" evtable="EVENTS" scfile=/scratch/kocevski/22419/ft2_4FGL_J1231.7+2847_weekly_bin760.fits sctable="SC_DATA" outfile=/scratch/kocevski/22419/ltcube_698630401_699235201_4FGL_J1231.7+2847_weekly_bin760.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/22419/ft2_4FGL_J1231.7+2847_weekly_bin760.fits
.....................!
real 34.35
user 33.81
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/22419/ft1_filtered_4FGL_J1231.7+2847_weekly_bin760.fits evtable="EVENTS" scfile=/scratch/kocevski/22419/ft2_4FGL_J1231.7+2847_weekly_bin760.fits sctable="SC_DATA" expcube=/scratch/kocevski/22419/ltcube_698630401_699235201_4FGL_J1231.7+2847_weekly_bin760.fits outfile=/scratch/kocevski/22419/expmap_698630401_699235201_4FGL_J1231.7+2847_weekly_bin760.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/22419/ltcube_698630401_699235201_4FGL_J1231.7+2847_weekly_bin760.fits
.....................!
real 192.32
user 186.74
sys 4.82

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/22419/ft1_filtered_4FGL_J1231.7+2847_weekly_bin760.fits scfile=/scratch/kocevski/22419/ft2_4FGL_J1231.7+2847_weekly_bin760.fits outfile=/scratch/kocevski/22419/cmap_698630401_699235201_4FGL_J1231.7+2847_weekly_bin760.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.59
user 0.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/22419/ft1_filtered_4FGL_J1231.7+2847_weekly_bin760.fits scfile=/scratch/kocevski/22419/ft2_4FGL_J1231.7+2847_weekly_bin760.fits outfile=/scratch/kocevski/22419/cmap_HighResolution_698630401_699235201_4FGL_J1231.7+2847_weekly_bin760.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.61
user 0.43
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/22419/ft1_filtered_4FGL_J1231.7+2847_weekly_bin760.fits evtable="EVENTS" scfile=/scratch/kocevski/22419/ft2_4FGL_J1231.7+2847_weekly_bin760.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/22419/Model_4FGL_J1231.7+2847_weekly_bin760.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/22419/ft1_filtered_4FGL_J1231.7+2847_weekly_bin760.fits.....................!
real 51.61
user 49.53
sys 1.36

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31429       1.0000          .0000       .10000E+07
     2 'Prefactor '    .12091E-03   1.0000          .0000       .10000E+07
     3 'norm      '    44.084       1.0000          .0000       .10000E+07
     4 'Prefactor '    .34136E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .49012E-04   1.0000          .0000       .10000E+07
     6 'norm      '    .22279E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .38902E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    4.1597       1.0000          .0000       .10000E+07
     9 'Prefactor '    7.4327       1.0000          .0000       .10000E+07
    10 'Prefactor '    .82559E-03   1.0000          .0000       .10000E+07
    11 'norm      '    .75860E-04   1.0000          .0000       .10000E+07
    12 'norm      '    21.549       1.0000          .0000       .10000E+07
    13 'Prefactor '    41.660       1.0000          .0000       .10000E+07
    14 'Prefactor '    10.915       1.0000          .0000       .10000E+07
    15 'Prefactor '    .50659E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .21922E-04   1.0000          .0000       .10000E+07
    17 'norm      '    .14535E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .20648E-03   1.0000          .0000       .10000E+07
    19 'norm      '    .19557E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    7.4239       1.0000          .0000       .10000E+07
    21 'norm      '    .24120E-04   1.0000          .0000       .10000E+07
    22 'norm      '    47.278       1.0000          .0000       .10000E+07
    23 'norm      '    .45141E-04   1.0000          .0000       .10000E+07
    24 'norm      '    2.1087       1.0000          .0000       .10000E+07
    25 'Prefactor '    .98152E-04   1.0000          .0000       .10000E+07
    26 'Prefactor '    .22729E-04   1.0000          .0000       .10000E+07
    27 'Normalizat'    .28599       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.9029       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=   5660.973     FROM MIGRAD    STATUS=CONVERGED    237 CALLS     2617 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .52824E-06    1.8484        .75257E-08** at limit **
   2  Prefactor     .16154E-07    2.4200        .39201E-07** at limit **
   3  norm          44.094        7.0123       -.48825E-08   -.98978E-01
   4  Prefactor     .80602E-07    3.8898        .14011E-06** at limit **
   5  Prefactor     .70666E-07    2.3611       -.44897E-07** at limit **
   6  norm          .51348E-07    4.1440        .66752E-07** at limit **
   7  Prefactor     .64171E-07    3.6538       -.59593E-07** at limit **
   8  Prefactor     4.1305        3.8681       -.58119E-07   -.56138E-02
   9  Prefactor     7.5005        5.1698        .19912E-07    .65156E-02
  10  Prefactor     .11735E-06    7.2281        .20967E-07** at limit **
  11  norm          .22760E-08    18.058       -.10456E-06** at limit **
  12  norm          21.527        2.6994        .46649E-08    .50257E-02
  13  Prefactor     41.819        2.3171        .23993E-09   -.21647E-01
  14  Prefactor     10.557        23.715       -.38455E-07   -.14508E-01
  15  Prefactor     .82523E-06    3.2811       -.15785E-07** at limit **
  16  Prefactor     .10048E-07    2.5594       -.35076E-07** at limit **
  17  norm          .22204E-09    1.6222       -.64800E-07** at limit **
  18  Prefactor     .84860E-06    5.9528       -.11134E-06** at limit **
  19  norm          .17208E-08    1.9669        .13736E-07** at limit **
  20  Prefactor     7.4172        2.3385       -.57262E-08    .78853E-02
  21  norm          .50404E-07    2.5405       -.57250E-07** at limit **
  22  norm          47.269        6.6580        .28391E-08   -.15928E-01
  23  norm          .13139E-06    3.4204        .14553E-06** at limit **
  24  norm          2.0980        1.6178       -.19230E-07    .29165E-03
  25  Prefactor     .55511E-09    1.5010       -.10731E-06** at limit **
  26  Prefactor     .20595E-07    107.94       -.28988E-06** at limit **
  27  Normalizat    .28571        .28308       -.82430E-05   -.13088E-03
  28  Prefactor     1.9033        .33775        .36099E-05   -.50233E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.28244e-07
  Prefactor  = 1.61537e-08
  norm       = 44.0942
  Prefactor  = 8.06022e-08
  Prefactor  = 7.06657e-08
  norm       = 5.13478e-08
  Prefactor  = 6.41709e-08
  Prefactor  = 4.13054
  Prefactor  = 7.50048
  Prefactor  = 1.17351e-07
  norm       = 2.27596e-09
  norm       = 21.5275
  Prefactor  = 41.8189
  Prefactor  = 10.5574
  Prefactor  = 8.25229e-07
  Prefactor  = 1.00475e-08
  norm       = 2.22045e-10
  Prefactor  = 8.48599e-07
  norm       = 1.72085e-09
  Prefactor  = 7.41723
  norm       = 5.04041e-08
  norm       = 47.269
  norm       = 1.31395e-07
  norm       = 2.09796
  Prefactor  = 5.55112e-10
  Prefactor  = 2.05946e-08
  Normalizat = 0.28571
  Prefactor  = 1.90327
 **********
 **   18 **HESSE 
 **********

 FCN=   5660.973     FROM HESSE     STATUS=OK           579 CALLS     3196 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .52824E-06    55.523        .10018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .16154E-07    3.7184        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          44.094        7.2557        .15062E-03   -1.5575    
   4  Prefactor     .80602E-07    4.5560        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .70666E-07    2.7939        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .51348E-07    6.1257        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .64171E-07    10.646        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.1305        3.9012        .49394E-03   -1.5667    
   9  Prefactor     7.5005        5.5777        .36764E-03   -1.5653    
  10  Prefactor     .11735E-06    8.3749        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .22760E-08    .21976        .29944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          21.527        11.077        .21548E-03   -1.5615    
  13  Prefactor     41.819        24.292        .15495E-03   -1.5579    
  14  Prefactor     10.557        24.293        .30300E-03   -1.5643    
  15  Prefactor     .82523E-06    10.355        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10048E-07    2.6178        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .22204E-09    1.6188        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .84860E-06    11.069        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .17208E-08    3.5315        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.4172        14.694        .36786E-03   -1.5653    
  21  norm          .50404E-07    3.1007        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          47.269        6.8496        .14545E-03   -1.5570    
  23  norm          .13139E-06    5.4767        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.0980        23.678        .71020E-03   -1.5679    
  25  Prefactor     .55511E-09    1.4919        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .20595E-07    105.35        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .28571        .31477        .12606       -1.2370    
  28  Prefactor     1.9033        .35757        .63208E-01   -.66791    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21337e-07
Minuit parameter uncertainties:
  1  0.0108313
  2  0.000490235
  3  7.25572
  4  0.00121217
  5  0.000888663
  6  0.00112151
  7  0.00165293
  8  3.90121
  9  5.57775
  10  0.00198273
  11  4.4773e-05
  12  11.0766
  13  24.292
  14  24.2928
  15  0.0058465
  16  0.000324259
  17  3.93308e-05
  18  0.00612983
  19  0.000155931
  20  14.6938
  21  0.000790502
  22  6.84965
  23  0.00169653
  24  14.0963
  25  5.72659e-05
  26  0.0029443
  27  0.316741
  28  0.358068
Done.

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

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  4.182e+01  2.429e+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.903e+00  3.581e-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:  2.857e-01  3.167e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.54
Ra Dec: 187.935 28.792
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.06e-07 +/- 6.17e-08
Energy Flux (Fixed Index): 7.38e-05 +/- 4.29e-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) = 5659.35261973
delta logL = 1.62046800206

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5659.34727319
delta logL = 1.62581454275

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.671       1.0000          .0000       .10000E+07
     2 'Index     '    2.7506       1.0000          .0000       10.000    
     3 'Normalizat'    .17250       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.9849       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=   5659.347     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      277 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.687        130.14        .22555E-03    .64580E-02
   2  Index         2.7505        2.2995        .77378E-01    .45904E-03
   3  Normalizat    .17261        .13993        .16218       -.59080E-04
   4  Prefactor     1.9848        .13158        .62042E-01   -.49021E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.687
  Index      = 2.75046
  Normalizat = 0.172611
  Prefactor  = 1.98475
 **********
 **   18 **HESSE 
 **********

 FCN=   5659.347     FROM HESSE     STATUS=OK            31 CALLS      308 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.687        20.096        .90219E-05   -1.5619    
   2  Index         2.7505        .52447        .31616E-02   -.46666    
   3  Normalizat    .17261        .28949        .70632E-03   -1.3149    
   4  Prefactor     1.9848        .34306        .27425E-03   -.64732    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.59116e-10
Minuit parameter uncertainties:
  1  20.096
  2  0.525688
  3  0.292086
  4  0.343487
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/22419': 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) = 5659.34727223
delta logL = 1.62581550288

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  1.969e+01  2.010e+01  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  2.750e+00  5.257e-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.985e+00  3.435e-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.726e-01  2.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.06
Ra Dec: 187.935 28.792
Photon Index (Free Index): 2.75 +/- 0.53
Photon Flux (Free Index): 2.30e-07 +/- 1.13e-07
Energy Flux (Free Index): 5.33e-05 +/- 2.44e-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/22419/cmap_HighResolution_698630401_699235201_4FGL_J1231.7+2847_weekly_bin760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.06e-07', energy_flux2='5.33e-05', photon_flux_error='6.17e-08', dlogl='1.63e+00', energy_flux='7.38e-05', photon_flux2='2.30e-07', job_status='DONE', time_completed='2023-02-28 01:23:24.468570', photon_index_error2='0.53', photon_index2='2.75', ts='5.54', fit_tolerance='1e-08', GAL='1.90', photon_index_error='0.00', energy_flux_error2='2.44e-05', EG='0.29', time_epoch_completed='1677576204.47', return_code='0', job_id='22419', GAL2='1.98', EG2='0.17', return_code2='0', energy_flux_error='4.29e-05', photon_flux_error2='1.13e-07', ts2='9.06', photon_index='2.00' WHERE bin_id='760' AND source_name='4FGL J1231.7+2847' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 28 01:23:24 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 22419: <4FGL_J1231.7+2847_weekly_bin760> in cluster <slac> Done

Job <4FGL_J1231.7+2847_weekly_bin760> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Feb 28 01:10:26 2023
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 28 01:10:27 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 28 01:10:27 2023
Terminated at Tue Feb 28 01:23:24 2023
Results reported at Tue Feb 28 01:23:24 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.7+2847_weekly_bin760 187.935 28.7917 698630401 699235201 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 :                                   677.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             294.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            778 sec.

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

