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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin1749
RA = 192.46, Dec = 37.1306
tmin = 692668801, tmax = 692928001
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='953013', job_status='RUN', time_executed='2022-12-17 00:47:46.578762', time_epoch_executed='1671266866.58' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953013

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953013/ft1_4FGL_J1249.8+3707_daily_bin1749.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953013/ft2_4FGL_J1249.8+3707_daily_bin1749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953013/ft1_4FGL_J1249.8+3707_daily_bin1749.fits outfile=/scratch/kocevski/953013/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin1749.fits ra=192.46 dec=37.1306 rad=12.0 tmin=692668801.0 tmax=692928001.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.71
user 3.49
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/953013/ft2_4FGL_J1249.8+3707_daily_bin1749.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/953013/ft2_4FGL_J1249.8+3707_daily_bin1749.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/953013/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin1749.fits evtable="EVENTS" outfile="/scratch/kocevski/953013/ft1_filtered_4FGL_J1249.8+3707_daily_bin1749.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.32
sys 0.17

Number of photons that the gtmktime cut: 680

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/953013/ft1_filtered_4FGL_J1249.8+3707_daily_bin1749.fits" evtable="EVENTS" scfile=/scratch/kocevski/953013/ft2_4FGL_J1249.8+3707_daily_bin1749.fits sctable="SC_DATA" outfile=/scratch/kocevski/953013/ltcube_692668801_692928001_4FGL_J1249.8+3707_daily_bin1749.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/953013/ft2_4FGL_J1249.8+3707_daily_bin1749.fits
.....................!
real 12.02
user 11.64
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953013/ft1_filtered_4FGL_J1249.8+3707_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/953013/ft2_4FGL_J1249.8+3707_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/953013/ltcube_692668801_692928001_4FGL_J1249.8+3707_daily_bin1749.fits outfile=/scratch/kocevski/953013/expmap_692668801_692928001_4FGL_J1249.8+3707_daily_bin1749.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/953013/ltcube_692668801_692928001_4FGL_J1249.8+3707_daily_bin1749.fits
.....................!
real 190.71
user 185.55
sys 4.84

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

Setting source of interest to:
4FGL J1249.8+3707 @ 192.46 37.1306

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/953013/ft1_filtered_4FGL_J1249.8+3707_daily_bin1749.fits scfile=/scratch/kocevski/953013/ft2_4FGL_J1249.8+3707_daily_bin1749.fits outfile=/scratch/kocevski/953013/cmap_692668801_692928001_4FGL_J1249.8+3707_daily_bin1749.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.46 yref=37.1306 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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953013/ft1_filtered_4FGL_J1249.8+3707_daily_bin1749.fits scfile=/scratch/kocevski/953013/ft2_4FGL_J1249.8+3707_daily_bin1749.fits outfile=/scratch/kocevski/953013/cmap_HighResolution_692668801_692928001_4FGL_J1249.8+3707_daily_bin1749.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.46 yref=37.1306 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.55
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/953013/ft1_filtered_4FGL_J1249.8+3707_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/953013/ft2_4FGL_J1249.8+3707_daily_bin1749.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/953013/Model_4FGL_J1249.8+3707_daily_bin1749.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/953013/ft1_filtered_4FGL_J1249.8+3707_daily_bin1749.fits....................!
real 58.67
user 57.31
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/953013/ft1_filtered_4FGL_J1249.8+3707_daily_bin1749.fits', '/scratch/kocevski/953013/ft2_4FGL_J1249.8+3707_daily_bin1749.fits', expMap='/scratch/kocevski/953013/expmap_692668801_692928001_4FGL_J1249.8+3707_daily_bin1749.fits', expCube='/scratch/kocevski/953013/ltcube_692668801_692928001_4FGL_J1249.8+3707_daily_bin1749.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/953013/Model_4FGL_J1249.8+3707_daily_bin1749.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1249.8+3707'

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  2.229e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
314        Index:  1.780e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  4.011e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/953013/ft1_filtered_4FGL_J1249.8+3707_daily_bin1749.fits
Spacecraft file(s): /scratch/kocevski/953013/ft2_4FGL_J1249.8+3707_daily_bin1749.fits
Exposure map: /scratch/kocevski/953013/expmap_692668801_692928001_4FGL_J1249.8+3707_daily_bin1749.fits
Exposure cube: /scratch/kocevski/953013/ltcube_692668801_692928001_4FGL_J1249.8+3707_daily_bin1749.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/953013/Model_4FGL_J1249.8+3707_daily_bin1749.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) = 7213.06258302

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.741       1.0000          .0000       .10000E+07
     2 'norm      '    12.184       1.0000          .0000       .10000E+07
     3 'Prefactor '    .70833E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    2.6629       1.0000          .0000       .10000E+07
     5 'Prefactor '    4.3270       1.0000          .0000       .10000E+07
     6 'Prefactor '    .70616E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    .20669E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    7.4344       1.0000          .0000       .10000E+07
     9 'Prefactor '    .26645E-08   1.0000          .0000       .10000E+07
    10 'norm      '    1.9945       1.0000          .0000       .10000E+07
    11 'Prefactor '    6.8951       1.0000          .0000       .10000E+07
    12 'Prefactor '    .29682E-06   1.0000          .0000       .10000E+07
    13 'norm      '    .67168E-08   1.0000          .0000       .10000E+07
    14 'norm      '    12.892       1.0000          .0000       .10000E+07
    15 'norm      '    31.091       1.0000          .0000       .10000E+07
    16 'norm      '    20.251       1.0000          .0000       .10000E+07
    17 'Prefactor '    .11824E-07   1.0000          .0000       .10000E+07
    18 'Prefactor '    .23564E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    .67365E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    17.171       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.2541       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .66762       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7212.961     FROM MIGRAD    STATUS=CONVERGED    114 CALLS     1393 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.137        15.128       -.41891E-05    .14612    
   2  norm          12.185        4.3418       -.49180E-06   -.25452E-02
   3  Prefactor     .44409E-09    5.2242       -.24756E-05** at limit **
   4  Prefactor     2.6631        1.9713        .81273E-08   -.71886E-03
   5  Prefactor     4.3274        2.0708       -.12805E-06   -.13237E-02
   6  Prefactor     .58120E-07    4.0270        .12535E-05** at limit **
   7  Prefactor     .27534E-07    6.5762        .33091E-05** at limit **
   8  Prefactor     7.9935        17.984       -.62889E-05   -.73855E-01
   9  Prefactor     .16653E-09    1.4548        .16326E-05** at limit **
  10  norm          1.9912        3.5165        .24345E-06    .86824E-03
  11  Prefactor     6.9986        3.2567       -.10364E-05   -.52019E-02
  12  Prefactor     .88818E-09    3.0885        .64551E-06** at limit **
  13  norm          .71054E-08    4.6357        .17355E-08** at limit **
  14  norm          12.870        1.3286        .16004E-06    .16414E-01
  15  norm          31.046        5.3784        .64128E-07   -.20196E-01
  16  norm          20.326        3.5061       -.12117E-06    .38805E-01
  17  Prefactor     .10053E-06    3.3670       -.30823E-06** at limit **
  18  Prefactor     .14266E-06    3.4664       -.18931E-05** at limit **
  19  Prefactor     .11046E-05    27.865       -.11086E-05** at limit **
  20  Prefactor     17.174        1.1316       -.22285E-07    .19215E-01
  21  Normalizat    1.2541        .19289       -.24429E-04   -.14320E-04
  22  Prefactor     .66724        .23251        .13970E-04    .15113E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.1367
  norm       = 12.185
  Prefactor  = 4.44089e-10
  Prefactor  = 2.66306
  Prefactor  = 4.32739
  Prefactor  = 5.81202e-08
  Prefactor  = 2.75335e-08
  Prefactor  = 7.99348
  Prefactor  = 1.66533e-10
  norm       = 1.99123
  Prefactor  = 6.99863
  Prefactor  = 8.88178e-10
  norm       = 7.10543e-09
  norm       = 12.8695
  norm       = 31.0462
  norm       = 20.3257
  Prefactor  = 1.00531e-07
  Prefactor  = 1.42664e-07
  Prefactor  = 1.10462e-06
  Prefactor  = 17.1741
  Normalizat = 1.2541
  Prefactor  = 0.66724
 **********
 **   18 **HESSE 
 **********

 FCN=   7212.961     FROM HESSE     STATUS=OK           392 CALLS     1785 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.137        29.644        .23751E-03   -1.5625    
   2  norm          12.185        4.3471        .28673E-03   -1.5638    
   3  Prefactor     .44409E-09    8.7057        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.6631        1.9710        .62434E-03   -1.5675    
   5  Prefactor     4.3274        2.0725        .48402E-03   -1.5666    
   6  Prefactor     .58120E-07    6.2608        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .27534E-07    7.4741        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.9935        20.813        .36759E-03   -1.5651    
   9  Prefactor     .16653E-09    1.4579        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.9912        3.7549        .73323E-03   -1.5680    
  11  Prefactor     6.9986        24.355        .38184E-03   -1.5655    
  12  Prefactor     .88818E-09    3.1035        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .71054E-08    4.6877        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          12.870        11.949        .27872E-03   -1.5636    
  15  norm          31.046        8.6357        .17937E-03   -1.5597    
  16  norm          20.326        13.374        .22229E-03   -1.5618    
  17  Prefactor     .10053E-06    6.7046        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .14266E-06    8.5279        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .11046E-05    28.747        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     17.174        16.112        .24143E-03   -1.5625    
  21  Normalizat    1.2541        .16545        .50422E-01   -.84947    
  22  Prefactor     .66724        .19964        .81376E-01   -1.0483    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48497e-06
Minuit parameter uncertainties:
  1  29.6443
  2  4.34705
  3  0.000123958
  4  1.97103
  5  2.07255
  6  0.00120645
  7  0.000906869
  8  20.8134
  9  2.87683e-05
  10  3.75487
  11  24.3551
  12  0.000105745
  13  0.000364645
  14  11.9491
  15  8.63571
  16  13.3737
  17  0.0016422
  18  0.0022061
  19  0.0112703
  20  16.1121
  21  0.165516
  22  0.199856
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  7.993e+00  2.081e+01  0.000e+00  1.000e+06 ( 1.000e-14)
314        Index:  1.780e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  4.011e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  6.672e-01  1.999e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  1.254e+00  1.655e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.17
Ra Dec: 192.460 37.131
Photon Flux Upper Limit: 5.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/953013/likelihoodResults_692668801_692928001_4FGL_J1249.8+3707_daily_bin1749.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) = 7211.90425813
delta logL = 1.0571553538

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7211.81453105
delta logL = 1.14688244311

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7211.815     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      304 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16756        1.5005        .53979E-03** at limit **
   2  Index         3.7565        1.3732        .82535E-01    .30235E-03
   3  Normalizat    1.1716        .35912E-01    .51879E-01    .28674E-04
   4  Prefactor     .73152        .43722E-01    .78020E-01    .33580E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.167561
  Index      = 3.75654
  Normalizat = 1.17155
  Prefactor  = 0.731524
 **********
 **   18 **HESSE 
 **********

 FCN=   7211.815     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      339 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16756        4.1720        .24561E-04   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.7565        2.8885        .28814E-02   -.25133    
   3  Normalizat    1.1716        .14754        .22937E-03   -.87486    
   4  Prefactor     .73152        .17662        .34541E-03   -1.0230    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.58858e-11
Minuit parameter uncertainties:
  1  1.6722
  2  3.09489
  3  0.147589
  4  0.176761
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953013': 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): 102
logL (Free Index) = 7211.8145237
delta logL = 1.14688979284

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.676e-01  1.672e+00  0.000e+00  1.000e+06 ( 1.000e-14)
314        Index:  3.757e+00  3.095e+00  0.000e+00  1.000e+01 (-1.000e+00)
315        Scale:  4.011e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  7.315e-01  1.768e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  1.172e+00  1.476e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.64
Ra Dec: 192.460 37.131
Photon Index (Free Index): 3.76 +/- 3.09
Photon Flux (Free Index): 6.42e-08 +/- 4.94e-08
Energy Flux (Free Index): 1.01e-05 +/- 7.53e-06

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/953013/cmap_HighResolution_692668801_692928001_4FGL_J1249.8+3707_daily_bin1749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.99e-03', comment='SUCCESS', energy_flux2='1.01e-05', dlogl='1.15e+00', photon_flux2='6.42e-08', job_status='DONE', time_completed='2022-12-17 00:58:09.941288', photon_index_error2='3.09', photon_index2='3.76', ts='0.17', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', photon_flux_upper_limit='5.42e-08', energy_flux_error2='7.53e-06', EG='1.25', time_epoch_completed='1671267489.94', return_code='0', job_id='953013', GAL2='0.73', EG2='1.17', return_code2='102', photon_flux_error2='4.94e-08', ts2='2.64', photon_index='1.78' WHERE bin_id='1749' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 00:58:09 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 953013: <4FGL_J1249.8+3707_daily_bin1749> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin1749> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Dec 17 00:45:18 2022
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 00:45:19 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 17 00:45:19 2022
Terminated at Sat Dec 17 00:58:10 2022
Results reported at Sat Dec 17 00:58:10 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin1749 192.46 37.1306 692668801 692928001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1249.8+3707 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   625.61 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            772 sec.

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

