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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin1766
RA = 192.244, Dec = 48.67
tmin = 697075201, tmax = 697334401
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='847885', job_status='RUN', time_executed='2023-02-06 00:51:16.532785', time_epoch_executed='1675673476.53' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='1766'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/847885

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/847885/ft1_4FGL_J1248.9+4840_daily_bin1766.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/847885/ft2_4FGL_J1248.9+4840_daily_bin1766.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/847885/ft1_4FGL_J1248.9+4840_daily_bin1766.fits outfile=/scratch/kocevski/847885/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin1766.fits ra=192.244 dec=48.67 rad=12.0 tmin=697075201.0 tmax=697334401.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.77
user 3.46
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/847885/ft2_4FGL_J1248.9+4840_daily_bin1766.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/847885/ft2_4FGL_J1248.9+4840_daily_bin1766.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/847885/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin1766.fits evtable="EVENTS" outfile="/scratch/kocevski/847885/ft1_filtered_4FGL_J1248.9+4840_daily_bin1766.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.52
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 538

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/847885/ft1_filtered_4FGL_J1248.9+4840_daily_bin1766.fits" evtable="EVENTS" scfile=/scratch/kocevski/847885/ft2_4FGL_J1248.9+4840_daily_bin1766.fits sctable="SC_DATA" outfile=/scratch/kocevski/847885/ltcube_697075201_697334401_4FGL_J1248.9+4840_daily_bin1766.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/847885/ft2_4FGL_J1248.9+4840_daily_bin1766.fits
.....................!
real 14.31
user 13.76
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/847885/ft1_filtered_4FGL_J1248.9+4840_daily_bin1766.fits evtable="EVENTS" scfile=/scratch/kocevski/847885/ft2_4FGL_J1248.9+4840_daily_bin1766.fits sctable="SC_DATA" expcube=/scratch/kocevski/847885/ltcube_697075201_697334401_4FGL_J1248.9+4840_daily_bin1766.fits outfile=/scratch/kocevski/847885/expmap_697075201_697334401_4FGL_J1248.9+4840_daily_bin1766.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/847885/ltcube_697075201_697334401_4FGL_J1248.9+4840_daily_bin1766.fits
.....................!
real 193.56
user 186.69
sys 5.32

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

Setting source of interest to:
4FGL J1248.9+4840 @ 192.244 48.67

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/847885/ft1_filtered_4FGL_J1248.9+4840_daily_bin1766.fits scfile=/scratch/kocevski/847885/ft2_4FGL_J1248.9+4840_daily_bin1766.fits outfile=/scratch/kocevski/847885/cmap_697075201_697334401_4FGL_J1248.9+4840_daily_bin1766.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.244 yref=48.67 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.58
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/847885/ft1_filtered_4FGL_J1248.9+4840_daily_bin1766.fits scfile=/scratch/kocevski/847885/ft2_4FGL_J1248.9+4840_daily_bin1766.fits outfile=/scratch/kocevski/847885/cmap_HighResolution_697075201_697334401_4FGL_J1248.9+4840_daily_bin1766.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.244 yref=48.67 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.58
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/847885/ft1_filtered_4FGL_J1248.9+4840_daily_bin1766.fits evtable="EVENTS" scfile=/scratch/kocevski/847885/ft2_4FGL_J1248.9+4840_daily_bin1766.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/847885/Model_4FGL_J1248.9+4840_daily_bin1766.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/847885/ft1_filtered_4FGL_J1248.9+4840_daily_bin1766.fits.....................!
real 51.22
user 49.52
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/847885/ft1_filtered_4FGL_J1248.9+4840_daily_bin1766.fits', '/scratch/kocevski/847885/ft2_4FGL_J1248.9+4840_daily_bin1766.fits', expMap='/scratch/kocevski/847885/expmap_697075201_697334401_4FGL_J1248.9+4840_daily_bin1766.fits', expCube='/scratch/kocevski/847885/ltcube_697075201_697334401_4FGL_J1248.9+4840_daily_bin1766.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/847885/Model_4FGL_J1248.9+4840_daily_bin1766.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1248.9+4840'

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  3.227e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  2.450e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/847885/ft1_filtered_4FGL_J1248.9+4840_daily_bin1766.fits
Spacecraft file(s): /scratch/kocevski/847885/ft2_4FGL_J1248.9+4840_daily_bin1766.fits
Exposure map: /scratch/kocevski/847885/expmap_697075201_697334401_4FGL_J1248.9+4840_daily_bin1766.fits
Exposure cube: /scratch/kocevski/847885/ltcube_697075201_697334401_4FGL_J1248.9+4840_daily_bin1766.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/847885/Model_4FGL_J1248.9+4840_daily_bin1766.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) = 5915.63183273

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .76574E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .92465E-03   1.0000          .0000       .10000E+07
     3 'norm      '    .21427E-05   1.0000          .0000       .10000E+07
     4 'norm      '    .34070E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    8.1854       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.5684       1.0000          .0000       .10000E+07
     7 'norm      '    .58097       1.0000          .0000       .10000E+07
     8 'Prefactor '    .59850E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .19538E-03   1.0000          .0000       .10000E+07
    10 'norm      '    3.3022       1.0000          .0000       .10000E+07
    11 'Prefactor '    .20231E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .15535E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .76278E-04   1.0000          .0000       .10000E+07
    14 'norm      '    17.289       1.0000          .0000       .10000E+07
    15 'norm      '    4.2989       1.0000          .0000       .10000E+07
    16 'Prefactor '    3.2231       1.0000          .0000       .10000E+07
    17 'Prefactor '    75.771       1.0000          .0000       .10000E+07
    18 'norm      '    .73189E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .13509E-02   1.0000          .0000       .10000E+07
    20 'norm      '    .39302E-07   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0788       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .81453       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5915.519     FROM MIGRAD    STATUS=CONVERGED    193 CALLS     1764 TOTAL
                     EDM=   .32E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.6171       -.89300E-07** at limit **
   2  Prefactor      .0000        40.251        .56953E-06** at limit **
   3  norm           .0000        .71881       -.10973E-07** at limit **
   4  norm           .0000        4.6701        .65657E-07** at limit **
   5  Prefactor     8.1645        12.487       -.86173E-07    .33943E-03
   6  Prefactor     1.5668        2.3717        .46691E-07   -.62464E-04
   7  norm          .58101        1.0829       -.42008E-07    .53601E-03
   8  Prefactor     .55511E-10    102.16       -.66602E-06** at limit **
   9  Prefactor      .0000        5.9154        .17291E-06** at limit **
  10  norm          3.3026        2.2866       -.21822E-08   -.81785E-04
  11  Prefactor      .0000        2.7715       -.26105E-07** at limit **
  12  Prefactor      .0000        2.2696       -.10092E-06** at limit **
  13  Prefactor      .0000        10.203       -.23287E-07** at limit **
  14  norm          17.107        14.053        .83230E-07    .10007E-03
  15  norm          4.3220        3.9140       -.84406E-07    .20976E-02
  16  Prefactor     .99365E-08    494.32       -.19959E-06** at limit **
  17  Prefactor     77.590        38.080        .54152E-06    .98383E-03
  18  norm           .0000        1.3424       -.27163E-07** at limit **
  19  Prefactor      .0000        26.871       -.52389E-06** at limit **
  20  norm           .0000        .34792       -.10481E-07** at limit **
  21  Normalizat    1.0800        .18320       -.12999E-05    .79519E-04
  22  Prefactor     .81424        .22445        .22755E-05    .33384E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  norm       = 0
  Prefactor  = 8.16446
  Prefactor  = 1.56679
  norm       = 0.58101
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 3.30264
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 17.1067
  norm       = 4.32203
  Prefactor  = 9.9365e-09
  Prefactor  = 77.5903
  norm       = 0
  Prefactor  = 0
  norm       = 0
  Normalizat = 1.07996
  Prefactor  = 0.814244
 **********
 **   18 **HESSE 
 **********

 FCN=   5915.519     FROM HESSE     STATUS=OK           388 CALLS     2152 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.6110        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        40.273        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        .71286        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        4.6482        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.1645        12.512        .35019E-03   -1.5651    
   6  Prefactor     1.5668        2.4013        .84870E-03   -1.5683    
   7  norm          .58101        1.1092        .70950E-03   -1.5693    
   8  Prefactor     .55511E-10    14.107        .96059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        5.9141        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.3026        2.2883        .55687E-03   -1.5672    
  11  Prefactor      .0000        2.7712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        2.2688        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        10.204        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          17.107        14.054        .24060E-03   -1.5625    
  15  norm          4.3220        3.9074        .48564E-03   -1.5666    
  16  Prefactor     .99365E-08    480.48        .56401E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     77.590        37.997        .11489E-03   -1.5532    
  18  norm           .0000        1.3420        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        26.859        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm           .0000        .34598        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0800        .15392        .38935E-01   -.90398    
  22  Prefactor     .81424        .18882        .64440E-01   -.99205    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76832e-10
Minuit parameter uncertainties:
  1  2.6589e-06
  2  3.1587e-05
  3  3.84625e-07
  4  3.77271e-06
  5  12.5121
  6  2.4013
  7  1.10916
  8  6.41946e-05
  9  7.18612e-06
  10  2.28827
  11  1.06652e-06
  12  3.12253e-06
  13  2.39553e-06
  14  14.0538
  15  3.90737
  16  0.00437624
  17  37.9971
  18  1.67824e-06
  19  5.44778e-05
  20  9.94172e-08
  21  0.153986
  22  0.18897
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  5.551e-11  6.419e-05  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  2.450e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  8.142e-01  1.890e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  1.080e+00  1.540e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 192.244 48.670
Photon Flux Upper Limit: 6.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/847885/likelihoodResults_697075201_697334401_4FGL_J1248.9+4840_daily_bin1766.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): 102
logL (Free Index) = 5915.52582206
delta logL = -0.00636491611112

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5915.51846332
delta logL = 0.000993832903987

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5915.518     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      253 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .96331        150.73        .17321E-04    .21004E-04
   2  Index         2.0054        5.9928        .28292E-01    .83302E-06
   3  Normalizat    1.0800        .17924        .20255E-03   -.93308E-04
   4  Prefactor     .81336        .22400        .28518E-03    .70361E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.963306
  Index      = 2.00538
  Normalizat = 1.07999
  Prefactor  = 0.813363
 **********
 **   18 **HESSE 
 **********

 FCN=   5915.518     FROM HESSE     STATUS=OK            23 CALLS      276 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .96331        123.80        .69283E-06   -1.5688    
   2  Index         2.0054        3.1986        .11317E-02   -.64216    
   3  Normalizat    1.0800        .17938        .40509E-04   -.90397    
   4  Prefactor     .81336        .22390        .11407E-04   -.99238    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18671e-10
Minuit parameter uncertainties:
  1  21.8414
  2  3.70515
  3  0.179484
  4  0.224147
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/847885': 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) = 5915.51846237
delta logL = 0.000994775004074

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  9.633e-01  2.184e+01  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  2.005e+00  3.705e+00  0.000e+00  1.000e+01 (-1.000e+00)
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  8.134e-01  2.241e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  1.080e+00  1.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 192.244 48.670

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/847885/cmap_HighResolution_697075201_697334401_4FGL_J1248.9+4840_daily_bin1766.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.06e-03', job_status='DONE', photon_flux_upper_limit='6.52e-08', time_completed='2023-02-06 01:01:45.605010', job_id='847885', GAL2='0.81', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1675674105.61', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='9.95e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1766' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb  6 01:01:45 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 847885: <4FGL_J1248.9+4840_daily_bin1766> in cluster <slac> Done

Job <4FGL_J1248.9+4840_daily_bin1766> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Mon Feb  6 00:45:19 2023
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb  6 00:49:29 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb  6 00:49:29 2023
Terminated at Mon Feb  6 01:01:46 2023
Results reported at Mon Feb  6 01:01:46 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin1766 192.244 48.67 697075201 697334401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1248.9+4840 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   628.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             304.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            987 sec.

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

