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


Performing analysis on: 4FGL_J1249.3-0545_daily_bin1748
RA = 192.326, Dec = -5.7621
tmin = 692409601, tmax = 692668801
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='886332', job_status='RUN', time_executed='2022-12-14 00:44:14.376520', time_epoch_executed='1671007454.38' WHERE source_name='4FGL J1249.3-0545' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/886332

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/886332/ft1_4FGL_J1249.3-0545_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/886332/ft2_4FGL_J1249.3-0545_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/886332/ft1_4FGL_J1249.3-0545_daily_bin1748.fits outfile=/scratch/kocevski/886332/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin1748.fits ra=192.326 dec=-5.7621 rad=12.0 tmin=692409601.0 tmax=692668801.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.56
user 3.33
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/886332/ft2_4FGL_J1249.3-0545_daily_bin1748.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/886332/ft2_4FGL_J1249.3-0545_daily_bin1748.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/886332/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin1748.fits evtable="EVENTS" outfile="/scratch/kocevski/886332/ft1_filtered_4FGL_J1249.3-0545_daily_bin1748.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.34
sys 0.14

Number of photons that the gtmktime cut: 800

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/886332/ft1_filtered_4FGL_J1249.3-0545_daily_bin1748.fits" evtable="EVENTS" scfile=/scratch/kocevski/886332/ft2_4FGL_J1249.3-0545_daily_bin1748.fits sctable="SC_DATA" outfile=/scratch/kocevski/886332/ltcube_692409601_692668801_4FGL_J1249.3-0545_daily_bin1748.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/886332/ft2_4FGL_J1249.3-0545_daily_bin1748.fits
.....................!
real 11.98
user 11.63
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/886332/ft1_filtered_4FGL_J1249.3-0545_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/886332/ft2_4FGL_J1249.3-0545_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/886332/ltcube_692409601_692668801_4FGL_J1249.3-0545_daily_bin1748.fits outfile=/scratch/kocevski/886332/expmap_692409601_692668801_4FGL_J1249.3-0545_daily_bin1748.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/886332/ltcube_692409601_692668801_4FGL_J1249.3-0545_daily_bin1748.fits
.....................!
real 190.84
user 185.75
sys 4.73

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 199 point sources and 0 extended sources

Setting source of interest to:
4FGL J1249.3-0545 @ 192.326 -5.7621

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/886332/ft1_filtered_4FGL_J1249.3-0545_daily_bin1748.fits scfile=/scratch/kocevski/886332/ft2_4FGL_J1249.3-0545_daily_bin1748.fits outfile=/scratch/kocevski/886332/cmap_692409601_692668801_4FGL_J1249.3-0545_daily_bin1748.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=192.326 yref=-5.7621 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/886332/ft1_filtered_4FGL_J1249.3-0545_daily_bin1748.fits scfile=/scratch/kocevski/886332/ft2_4FGL_J1249.3-0545_daily_bin1748.fits outfile=/scratch/kocevski/886332/cmap_HighResolution_692409601_692668801_4FGL_J1249.3-0545_daily_bin1748.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=192.326 yref=-5.7621 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/886332/ft1_filtered_4FGL_J1249.3-0545_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/886332/ft2_4FGL_J1249.3-0545_daily_bin1748.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/886332/Model_4FGL_J1249.3-0545_daily_bin1748.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/886332/ft1_filtered_4FGL_J1249.3-0545_daily_bin1748.fits....................!
real 65.24
user 63.87
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/886332/ft1_filtered_4FGL_J1249.3-0545_daily_bin1748.fits', '/scratch/kocevski/886332/ft2_4FGL_J1249.3-0545_daily_bin1748.fits', expMap='/scratch/kocevski/886332/expmap_692409601_692668801_4FGL_J1249.3-0545_daily_bin1748.fits', expCube='/scratch/kocevski/886332/ltcube_692409601_692668801_4FGL_J1249.3-0545_daily_bin1748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/886332/Model_4FGL_J1249.3-0545_daily_bin1748.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1249.3-0545'

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  6.563e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
332        Index:  2.058e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  2.757e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/886332/ft1_filtered_4FGL_J1249.3-0545_daily_bin1748.fits
Spacecraft file(s): /scratch/kocevski/886332/ft2_4FGL_J1249.3-0545_daily_bin1748.fits
Exposure map: /scratch/kocevski/886332/expmap_692409601_692668801_4FGL_J1249.3-0545_daily_bin1748.fits
Exposure cube: /scratch/kocevski/886332/ltcube_692409601_692668801_4FGL_J1249.3-0545_daily_bin1748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/886332/Model_4FGL_J1249.3-0545_daily_bin1748.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) = 8659.77395266

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33862E-08   1.0000          .0000       .10000E+07
     2 'Prefactor '    .13065E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .52646E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .56548E-05   1.0000          .0000       .10000E+07
     5 'norm      '    .44409E-08   1.0000          .0000       .10000E+07
     6 'norm      '    19.862       1.0000          .0000       .10000E+07
     7 'Prefactor '    .40645E-06   1.0000          .0000       .10000E+07
     8 'norm      '    .95666       1.0000          .0000       .10000E+07
     9 'Prefactor '    9.5190       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.8214       1.0000          .0000       .10000E+07
    11 'Prefactor '    7.6858       1.0000          .0000       .10000E+07
    12 'norm      '    2.4579       1.0000          .0000       .10000E+07
    13 'Prefactor '    21.543       1.0000          .0000       .10000E+07
    14 'Prefactor '    .44966E-02   1.0000          .0000       .10000E+07
    15 'norm      '    9.1894       1.0000          .0000       .10000E+07
    16 'norm      '    .26694       1.0000          .0000       .10000E+07
    17 'Prefactor '    .10669E-04   1.0000          .0000       .10000E+07
    18 'norm      '    .33307E-09   1.0000          .0000       .10000E+07
    19 'norm      '    .33669       1.0000          .0000       .10000E+07
    20 'Prefactor '    11.883       1.0000          .0000       .10000E+07
    21 'Prefactor '    .55966       1.0000          .0000       .10000E+07
    22 'Prefactor '    .39780       1.0000          .0000       .10000E+07
    23 'norm      '    .51570E-07   1.0000          .0000       .10000E+07
    24 'Normalizat'    1.1709       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96852       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8659.658     FROM MIGRAD    STATUS=CONVERGED    147 CALLS     1698 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26645E-08    5.6448        .46916E-06** at limit **
   2  Prefactor     .17375E-07    24.452       -.14710E-05** at limit **
   3  Prefactor     .60785E-07    6.1011        .64656E-06** at limit **
   4  Prefactor     .30254E-07    2.9789       -.50516E-06** at limit **
   5  norm           .0000        .62357       -.30979E-06** at limit **
   6  norm          20.356        33.800        .20425E-05   -.15601E-01
   7  Prefactor     .99809E-07    6.9538       -.35807E-06** at limit **
   8  norm          .95449        .52587       -.34944E-07   -.29889E-02
   9  Prefactor     9.5187        2.4179        .25084E-05    .84339E-04
  10  Prefactor     2.8581        4.5712        .22156E-06    .16483E-01
  11  Prefactor     7.7363        7.0106        .23087E-06   -.32093E-02
  12  norm          2.4572        1.5594       -.50229E-09   -.82426E-03
  13  Prefactor     21.591        7.0794        .11479E-06    .62817E-01
  14  Prefactor     .45630E-07    14.364       -.12469E-05** at limit **
  15  norm          9.2624        1.3801        .37699E-07    .42594E-02
  16  norm          .26691        .15177        .55602E-07    .41785E-02
  17  Prefactor     .25369E-07    11.249        .33589E-06** at limit **
  18  norm          .25535E-07    3.1184       -.38977E-06** at limit **
  19  norm          .35297        .61763       -.30703E-07   -.99519E-03
  20  Prefactor     11.833        4.9655       -.23986E-06   -.16144    
  21  Prefactor     .51954        .75927        .36010E-07    .29663E-02
  22  Prefactor     .38487        .95397       -.27184E-06   -.86727E-02
  23  norm           .0000        1.1395        .16090E-06** at limit **
  24  Normalizat    1.1709        .22747        .16117E-04    .44333E-04
  25  Prefactor     .96841        .15301       -.17584E-04   -.10986E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.66454e-09
  Prefactor  = 1.7375e-08
  Prefactor  = 6.07847e-08
  Prefactor  = 3.02536e-08
  norm       = 0
  norm       = 20.3561
  Prefactor  = 9.9809e-08
  norm       = 0.95449
  Prefactor  = 9.51872
  Prefactor  = 2.85806
  Prefactor  = 7.73634
  norm       = 2.45724
  Prefactor  = 21.591
  Prefactor  = 4.56302e-08
  norm       = 9.26243
  norm       = 0.266906
  Prefactor  = 2.53686e-08
  norm       = 2.55351e-08
  norm       = 0.352971
  Prefactor  = 11.8327
  Prefactor  = 0.519542
  Prefactor  = 0.384872
  norm       = 0
  Normalizat = 1.17087
  Prefactor  = 0.968408
 **********
 **   18 **HESSE 
 **********

 FCN=   8659.658     FROM HESSE     STATUS=OK           483 CALLS     2181 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .26645E-08    5.6651        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .17375E-07    24.533        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .60785E-07    6.3589        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .30254E-07    3.1015        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        .62283        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          20.356        34.800        .22446E-03   -1.5618    
   7  Prefactor     .99809E-07    7.3247        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .95449        .53180        .42225E-03   -1.5688    
   9  Prefactor     9.5187        2.4198        .32472E-02   -1.5091    
  10  Prefactor     2.8581        11.988        .60524E-03   -1.5674    
  11  Prefactor     7.7363        7.0342        .36148E-03   -1.5652    
  12  norm          2.4572        1.5703        .65211E-03   -1.5677    
  13  Prefactor     21.591        10.303        .21551E-03   -1.5615    
  14  Prefactor     .45630E-07    14.561        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.2624        20.625        .33037E-03   -1.5647    
  16  norm          .26691        .15476        .59202E-03   -1.5698    
  17  Prefactor     .25369E-07    11.361        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .25535E-07    3.2207        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .35297        4.6578        .97222E-02   -1.5696    
  20  Prefactor     11.833        8.5852        .29035E-03   -1.5639    
  21  Prefactor     .51954        54.135        .72922E-03   -1.5694    
  22  Prefactor     .38487        3.5767        .89742E-02   -1.5696    
  23  norm           .0000        1.1173        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1709        .19421        .66916E-01   -.87508    
  25  Prefactor     .96841        .12884        .45872E-01   -.93790    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43665e-07
Minuit parameter uncertainties:
  1  0.000244916
  2  0.00130534
  3  0.00124317
  4  0.000612884
  5  4.95051e-07
  6  34.7999
  7  0.00171002
  8  0.531804
  9  2.41979
  10  11.7069
  11  7.03418
  12  1.57031
  13  10.3032
  14  0.00163021
  15  20.6251
  16  0.15476
  17  0.00107366
  18  0.000573477
  19  2.56444
  20  8.58517
  21  10.6068
  22  2.34653
  23  7.22777e-08
  24  0.194325
  25  0.128881
Done.

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

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  4.563e-08  1.630e-03  0.000e+00  1.000e+06 ( 1.000e-14)
332        Index:  2.058e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  2.757e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  9.684e-01  1.289e-01  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  1.171e+00  1.943e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 192.326 -5.762
Photon Flux Upper Limit: 5.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/886332/likelihoodResults_692409601_692668801_4FGL_J1249.3-0545_daily_bin1748.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) = 8659.69078379
delta logL = -0.0329235187746

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8659.6578613
delta logL = -1.0307339835e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25576E-05   1.0000          .0000       .10000E+07
     2 'Index     '    .29372       1.0000          .0000       10.000    
     3 'Normalizat'    1.1707       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96857       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8659.445     FROM MIGRAD    STATUS=CONVERGED    126 CALLS      305 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .72770E-02    .13692E-01    .26465E-03** at limit **
   2  Index         5.0934        .48981        .91819E-01    .27367E-03
   3  Normalizat    1.1204        .20043        .68192E-01    .18591E-03
   4  Prefactor     .99038        .13036        .45873E-01    .24812E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00727702
  Index      = 5.09335
  Normalizat = 1.12041
  Prefactor  = 0.990379
 **********
 **   18 **HESSE 
 **********

 FCN=   8659.445     FROM HESSE     STATUS=OK            33 CALLS      338 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .72770E-02    .84976E-01    .11284E-04   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.0934        2.1719        .63197E-02    .18672E-01
   3  Normalizat    1.1204        .23214        .30171E-03   -.89099    
   4  Prefactor     .99038        .15584        .22075E-03   -.93051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35702e-07
Minuit parameter uncertainties:
  1  0.049734
  2  2.24677
  3  0.232357
  4  0.155916
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/886332': 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) = 8659.44478791
delta logL = 0.213072367211

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  7.277e-03  4.973e-02  0.000e+00  1.000e+06 ( 1.000e-14)
332        Index:  5.093e+00  2.247e+00  0.000e+00  1.000e+01 (-1.000e+00)
333        Scale:  2.757e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  9.904e-01  1.559e-01  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  1.120e+00  2.324e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 192.326 -5.762

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/886332/cmap_HighResolution_692409601_692668801_4FGL_J1249.3-0545_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.94e-03', job_status='DONE', photon_flux_upper_limit='5.22e-08', time_completed='2022-12-14 00:56:48.163046', job_id='886332', GAL2='0.99', fit_tolerance='1e-08', EG2='1.12', EG='1.17', time_epoch_completed='1671008208.16', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.13e-01', ts2='0.47', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1748' AND source_name='4FGL J1249.3-0545' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 00:56:48 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 886332: <4FGL_J1249.3-0545_daily_bin1748> in cluster <slac> Done

Job <4FGL_J1249.3-0545_daily_bin1748> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Dec 14 00:40:16 2022
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 00:40:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 00:40:17 2022
Terminated at Wed Dec 14 00:56:49 2022
Results reported at Wed Dec 14 00:56:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.3-0545_daily_bin1748 192.326 -5.7621 692409601 692668801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1249.3-0545 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   756.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            993 sec.

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

