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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin1779
RA = 192.244, Dec = 48.67
tmin = 700444801, tmax = 700704001
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='26346', job_status='RUN', time_executed='2023-03-17 01:40:51.448252', time_epoch_executed='1679042451.45' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='1779'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/26346

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/26346/ft1_4FGL_J1248.9+4840_daily_bin1779.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/26346/ft2_4FGL_J1248.9+4840_daily_bin1779.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/26346/ft1_4FGL_J1248.9+4840_daily_bin1779.fits outfile=/scratch/kocevski/26346/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin1779.fits ra=192.244 dec=48.67 rad=12.0 tmin=700444801.0 tmax=700704001.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 5.32
user 5.03
sys 0.23

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

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

Number of photons that the gtmktime cut: 462

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/26346/ft1_filtered_4FGL_J1248.9+4840_daily_bin1779.fits" evtable="EVENTS" scfile=/scratch/kocevski/26346/ft2_4FGL_J1248.9+4840_daily_bin1779.fits sctable="SC_DATA" outfile=/scratch/kocevski/26346/ltcube_700444801_700704001_4FGL_J1248.9+4840_daily_bin1779.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/26346/ft2_4FGL_J1248.9+4840_daily_bin1779.fits
.....................!
real 12.33
user 11.94
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/26346/ft1_filtered_4FGL_J1248.9+4840_daily_bin1779.fits evtable="EVENTS" scfile=/scratch/kocevski/26346/ft2_4FGL_J1248.9+4840_daily_bin1779.fits sctable="SC_DATA" expcube=/scratch/kocevski/26346/ltcube_700444801_700704001_4FGL_J1248.9+4840_daily_bin1779.fits outfile=/scratch/kocevski/26346/expmap_700444801_700704001_4FGL_J1248.9+4840_daily_bin1779.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/26346/ltcube_700444801_700704001_4FGL_J1248.9+4840_daily_bin1779.fits
.....................!
real 189.98
user 185.13
sys 4.43

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/26346/ft1_filtered_4FGL_J1248.9+4840_daily_bin1779.fits scfile=/scratch/kocevski/26346/ft2_4FGL_J1248.9+4840_daily_bin1779.fits outfile=/scratch/kocevski/26346/cmap_700444801_700704001_4FGL_J1248.9+4840_daily_bin1779.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/26346/ft1_filtered_4FGL_J1248.9+4840_daily_bin1779.fits scfile=/scratch/kocevski/26346/ft2_4FGL_J1248.9+4840_daily_bin1779.fits outfile=/scratch/kocevski/26346/cmap_HighResolution_700444801_700704001_4FGL_J1248.9+4840_daily_bin1779.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.54
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/26346/ft1_filtered_4FGL_J1248.9+4840_daily_bin1779.fits', '/scratch/kocevski/26346/ft2_4FGL_J1248.9+4840_daily_bin1779.fits', expMap='/scratch/kocevski/26346/expmap_700444801_700704001_4FGL_J1248.9+4840_daily_bin1779.fits', expCube='/scratch/kocevski/26346/ltcube_700444801_700704001_4FGL_J1248.9+4840_daily_bin1779.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/26346/Model_4FGL_J1248.9+4840_daily_bin1779.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/26346/ft1_filtered_4FGL_J1248.9+4840_daily_bin1779.fits
Spacecraft file(s): /scratch/kocevski/26346/ft2_4FGL_J1248.9+4840_daily_bin1779.fits
Exposure map: /scratch/kocevski/26346/expmap_700444801_700704001_4FGL_J1248.9+4840_daily_bin1779.fits
Exposure cube: /scratch/kocevski/26346/ltcube_700444801_700704001_4FGL_J1248.9+4840_daily_bin1779.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/26346/Model_4FGL_J1248.9+4840_daily_bin1779.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) = 5162.45641754

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20595E-07   1.0000          .0000       .10000E+07
     2 'Prefactor '    25.191       1.0000          .0000       .10000E+07
     3 'norm      '    .10164E-06   1.0000          .0000       .10000E+07
     4 'norm      '    6.9263       1.0000          .0000       .10000E+07
     5 'Prefactor '    .70987E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.1551       1.0000          .0000       .10000E+07
     7 'norm      '    1.0471       1.0000          .0000       .10000E+07
     8 'Prefactor '    .24060E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    12.734       1.0000          .0000       .10000E+07
    10 'norm      '    3.5380       1.0000          .0000       .10000E+07
    11 'Prefactor '    .52715E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    .29728E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    15.264       1.0000          .0000       .10000E+07
    14 'norm      '    .19157       1.0000          .0000       .10000E+07
    15 'norm      '    2.0135       1.0000          .0000       .10000E+07
    16 'Prefactor '    .96004E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    4.1304       1.0000          .0000       .10000E+07
    18 'norm      '    5.4233       1.0000          .0000       .10000E+07
    19 'Prefactor '    .61982E-02   1.0000          .0000       .10000E+07
    20 'norm      '    .92523       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.2360       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .71860       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=   5162.404     FROM MIGRAD    STATUS=CONVERGED    135 CALLS     1734 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.4094       -.96668E-06** at limit **
   2  Prefactor     25.049        1.9071       -.74790E-07    .33040E-02
   3  norm          .11102E-09    2.0477       -.10808E-05** at limit **
   4  norm          6.9253        8.5161        .24509E-06    .40268E-03
   5  Prefactor     .98088E-07    6.4440        .23548E-05** at limit **
   6  Prefactor     1.1407        4.9448        .64427E-07   -.62474E-04
   7  norm          1.0482        1.4797       -.40571E-06   -.33871E-02
   8  Prefactor     .12768E-06    5.6720        .19444E-05** at limit **
   9  Prefactor     12.770        1.2093       -.96647E-07   -.36878E-01
  10  norm          3.5361        2.1954        .18468E-06    .12030E-02
  11  Prefactor      .0000        3.8709        .17586E-05** at limit **
  12  Prefactor      .0000        5.8983        .11551E-05** at limit **
  13  Prefactor     15.249        1.0582       -.56415E-08    .92850E-03
  14  norm          .75145E-01    10.396        .18511E-05** at limit **
  15  norm          2.0147        2.1963        .36533E-06    .23900E-02
  16  Prefactor     .32752E-08    13.983       -.31792E-05** at limit **
  17  Prefactor     2.9632        106.20        .35155E-05    .25521E-02
  18  norm          5.4090        4.9373       -.80607E-07   -.10231E-02
  19  Prefactor     .22204E-09    20.485        .34489E-05** at limit **
  20  norm          .95173        1.8963        .45502E-06    .37686E-02
  21  Normalizat    1.2369        .20839        .42632E-04    .28358E-03
  22  Prefactor     .71849        .24461       -.42530E-04    .14684E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 25.0491
  norm       = 1.11022e-10
  norm       = 6.9253
  Prefactor  = 9.80882e-08
  Prefactor  = 1.14075
  norm       = 1.04815
  Prefactor  = 1.27676e-07
  Prefactor  = 12.7699
  norm       = 3.53611
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 15.2489
  norm       = 0.0751449
  norm       = 2.01466
  Prefactor  = 3.27516e-09
  Prefactor  = 2.96322
  norm       = 5.40896
  Prefactor  = 2.22045e-10
  norm       = 0.951731
  Normalizat = 1.23692
  Prefactor  = 0.718489
 **********
 **   18 **HESSE 
 **********

 FCN=   5162.404     FROM HESSE     STATUS=OK           394 CALLS     2128 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.4035        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.049        21.477        .19928E-03   -1.5608    
   3  norm          .11102E-09    2.0226        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.9253        8.5418        .38097E-03   -1.5655    
   5  Prefactor     .98088E-07    11.971        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.1407        5.1938        .10742E-02   -1.5687    
   7  norm          1.0482        1.7540        .23084E-02   -1.5687    
   8  Prefactor     .12768E-06    12.104        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.770        14.623        .28045E-03   -1.5636    
  10  norm          3.5361        2.1982        .53715E-03   -1.5670    
  11  Prefactor      .0000        3.8624        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        5.8856        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.249        19.747        .25609E-03   -1.5630    
  14  norm          .75145E-01    9.1283        .11928E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.0147        2.1942        .72922E-03   -1.5680    
  16  Prefactor     .32752E-08    14.202        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.9632        116.55        .49575E-03   -1.5674    
  18  norm          5.4090        4.9571        .43126E-03   -1.5661    
  19  Prefactor     .22204E-09    20.638        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .95173        1.9211        .44031E-03   -1.5688    
  21  Normalizat    1.2369        .18145        .34062E-01   -.85469    
  22  Prefactor     .71849        .21362        .70766E-01   -1.0281    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.36744e-08
Minuit parameter uncertainties:
  1  5.52487e-06
  2  21.4775
  3  3.21064e-05
  4  8.54181
  5  0.00216734
  6  4.86818
  7  1.75397
  8  0.00248603
  9  14.6235
  10  2.19818
  11  5.17517e-06
  12  9.41386e-06
  13  19.7466
  14  1.65644
  15  2.19421
  16  0.000429595
  17  37.1684
  18  4.95708
  19  0.000134549
  20  1.92114
  21  0.181538
  22  0.213864
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.277e-07  2.486e-03  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:  7.185e-01  2.139e-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.237e+00  1.815e-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.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/26346/likelihoodResults_700444801_700704001_4FGL_J1248.9+4840_daily_bin1779.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) = 5162.44419816
delta logL = -0.0399990598034

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5162.40419949
delta logL = -3.89947672375e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13653E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.1884       1.0000          .0000       10.000    
     3 'Normalizat'    1.2369       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71859       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5162.404     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      209 TOTAL
                     EDM=   .47E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        9.6973        .42118E-03** at limit **
   2  Index         2.7794        1.5324       -.17094E-04     .0000    
   3  Normalizat    1.2369        1.0948        .83440E-05   -.59498E-04
   4  Prefactor     .71849        1.0683       -.12791E-04   -.57361E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.77938
  Normalizat = 1.23692
  Prefactor  = 0.718489
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5162.404     FROM HESSE     STATUS=FAILED         9 CALLS      218 TOTAL
                     EDM=   .47E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        9.6973        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .87502        2.0383       -.17094E-04   -.46020    
   3  Normalizat    1.2369        1.0948        .83440E-05   -.85469    
   4  Prefactor     .71849        1.0683       -.12791E-04   -1.0281    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.66391e-12
Minuit parameter uncertainties:
  1  3.09443e-07
  2  1.564
  3  1.11625
  4  1.10134
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/26346': 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): 101
logL (Free Index) = 5162.40419909
delta logL = 5.30235411134e-09

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  0.000e+00  3.094e-07  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  2.779e+00  1.564e+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:  7.185e-01  1.101e+00  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.237e+00  1.116e+00  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/26346/cmap_HighResolution_700444801_700704001_4FGL_J1248.9+4840_daily_bin1779.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.89e-03', job_status='DONE', photon_flux_upper_limit='6.31e-08', time_completed='2023-03-17 01:50:31.146121', job_id='26346', GAL2='0.72', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1679043031.15', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='5.30e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1779' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Mar 17 01:50:31 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 26346: <4FGL_J1248.9+4840_daily_bin1779> in cluster <slac> Done

Job <4FGL_J1248.9+4840_daily_bin1779> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Mar 17 01:40:12 2023
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Mar 17 01:40:14 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Mar 17 01:40:14 2023
Terminated at Fri Mar 17 01:50:31 2023
Results reported at Fri Mar 17 01:50:31 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin1779 192.244 48.67 700444801 700704001 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 :                                   581.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   617 sec.
    Turnaround time :                            619 sec.

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

