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


Performing analysis on: 4FGL_J1248.3+5820_weekly_bin757
RA = 192.084, Dec = 58.3432
tmin = 696816001, tmax = 697420801
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='265687', job_status='RUN', time_executed='2023-02-07 01:16:20.988453', time_epoch_executed='1675761380.99' WHERE source_name='4FGL J1248.3+5820' and cadence='weekly' and bin_id='757'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/265687

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/265687/ft1_4FGL_J1248.3+5820_weekly_bin757.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/265687/ft2_4FGL_J1248.3+5820_weekly_bin757.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/265687/ft1_4FGL_J1248.3+5820_weekly_bin757.fits outfile=/scratch/kocevski/265687/ft1_filteredMKT_4FGL_J1248.3+5820_weekly_bin757.fits ra=192.084 dec=58.3432 rad=12.0 tmin=696816001.0 tmax=697420801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 6.37
user 6.06
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/265687/ft2_4FGL_J1248.3+5820_weekly_bin757.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/265687/ft2_4FGL_J1248.3+5820_weekly_bin757.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/265687/ft1_filteredMKT_4FGL_J1248.3+5820_weekly_bin757.fits evtable="EVENTS" outfile="/scratch/kocevski/265687/ft1_filtered_4FGL_J1248.3+5820_weekly_bin757.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.33
sys 0.15

Number of photons that the gtmktime cut: 1344

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/265687/ft1_filtered_4FGL_J1248.3+5820_weekly_bin757.fits" evtable="EVENTS" scfile=/scratch/kocevski/265687/ft2_4FGL_J1248.3+5820_weekly_bin757.fits sctable="SC_DATA" outfile=/scratch/kocevski/265687/ltcube_696816001_697420801_4FGL_J1248.3+5820_weekly_bin757.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/265687/ft2_4FGL_J1248.3+5820_weekly_bin757.fits
.....................!
real 25.70
user 24.73
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/265687/ft1_filtered_4FGL_J1248.3+5820_weekly_bin757.fits evtable="EVENTS" scfile=/scratch/kocevski/265687/ft2_4FGL_J1248.3+5820_weekly_bin757.fits sctable="SC_DATA" expcube=/scratch/kocevski/265687/ltcube_696816001_697420801_4FGL_J1248.3+5820_weekly_bin757.fits outfile=/scratch/kocevski/265687/expmap_696816001_697420801_4FGL_J1248.3+5820_weekly_bin757.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/265687/ltcube_696816001_697420801_4FGL_J1248.3+5820_weekly_bin757.fits
.....................!
real 158.50
user 152.65
sys 4.71

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

Setting source of interest to:
4FGL J1248.3+5820 @ 192.084 58.3432

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/265687/ft1_filtered_4FGL_J1248.3+5820_weekly_bin757.fits scfile=/scratch/kocevski/265687/ft2_4FGL_J1248.3+5820_weekly_bin757.fits outfile=/scratch/kocevski/265687/cmap_696816001_697420801_4FGL_J1248.3+5820_weekly_bin757.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.084 yref=58.3432 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.50
user 0.34
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/265687/ft1_filtered_4FGL_J1248.3+5820_weekly_bin757.fits scfile=/scratch/kocevski/265687/ft2_4FGL_J1248.3+5820_weekly_bin757.fits outfile=/scratch/kocevski/265687/cmap_HighResolution_696816001_697420801_4FGL_J1248.3+5820_weekly_bin757.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.084 yref=58.3432 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.51
user 0.35
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/265687/ft1_filtered_4FGL_J1248.3+5820_weekly_bin757.fits evtable="EVENTS" scfile=/scratch/kocevski/265687/ft2_4FGL_J1248.3+5820_weekly_bin757.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/265687/Model_4FGL_J1248.3+5820_weekly_bin757.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/265687/ft1_filtered_4FGL_J1248.3+5820_weekly_bin757.fits.....................!
real 93.97
user 91.70
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/265687/ft1_filtered_4FGL_J1248.3+5820_weekly_bin757.fits', '/scratch/kocevski/265687/ft2_4FGL_J1248.3+5820_weekly_bin757.fits', expMap='/scratch/kocevski/265687/expmap_696816001_697420801_4FGL_J1248.3+5820_weekly_bin757.fits', expCube='/scratch/kocevski/265687/ltcube_696816001_697420801_4FGL_J1248.3+5820_weekly_bin757.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/265687/Model_4FGL_J1248.3+5820_weekly_bin757.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1248.3+5820'

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  3.611e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
365        alpha:  1.811e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
366         beta:  4.589e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
367           Eb:  1.135e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/265687/ft1_filtered_4FGL_J1248.3+5820_weekly_bin757.fits
Spacecraft file(s): /scratch/kocevski/265687/ft2_4FGL_J1248.3+5820_weekly_bin757.fits
Exposure map: /scratch/kocevski/265687/expmap_696816001_697420801_4FGL_J1248.3+5820_weekly_bin757.fits
Exposure cube: /scratch/kocevski/265687/ltcube_696816001_697420801_4FGL_J1248.3+5820_weekly_bin757.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/265687/Model_4FGL_J1248.3+5820_weekly_bin757.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) = 14738.6581484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2788       1.0000          .0000       .10000E+07
     2 'Prefactor '    18.341       1.0000          .0000       .10000E+07
     3 'norm      '    .29426E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .21654E-04   1.0000          .0000       .10000E+07
     5 'norm      '    .14716E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    4.8345       1.0000          .0000       .10000E+07
     7 'Prefactor '    .39519E-03   1.0000          .0000       .10000E+07
     8 'norm      '    .20606E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .40783       1.0000          .0000       .10000E+07
    10 'norm      '    2.9900       1.0000          .0000       .10000E+07
    11 'Prefactor '    .44131E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    3.7556       1.0000          .0000       .10000E+07
    13 'norm      '    1.3204       1.0000          .0000       .10000E+07
    14 'Prefactor '    .27311E-04   1.0000          .0000       .10000E+07
    15 'norm      '    2.0457       1.0000          .0000       .10000E+07
    16 'Prefactor '    .95757E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    .34787E-04   1.0000          .0000       .10000E+07
    18 'norm      '    1.6793       1.0000          .0000       .10000E+07
    19 'Prefactor '    .49560E-06   1.0000          .0000       .10000E+07
    20 'Prefactor '    31.867       1.0000          .0000       .10000E+07
    21 'norm      '    .52408E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    .79570E-04   1.0000          .0000       .10000E+07
    23 'Prefactor '    .49644E-03   1.0000          .0000       .10000E+07
    24 'norm      '    .16805E-04   1.0000          .0000       .10000E+07
    25 'Prefactor '    .30684E-03   1.0000          .0000       .10000E+07
    26 'Normalizat'    .94799       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0448       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14738.59     FROM MIGRAD    STATUS=CONVERGED    168 CALLS     1877 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2950        3.7525        .35965E-07    .16147E-02
   2  Prefactor     18.256        2.1656        .57740E-08   -.46953E-01
   3  norm           .0000        1.6496        .67596E-07** at limit **
   4  Prefactor      .0000        .96456        .10013E-06** at limit **
   5  norm          .12768E-08    4.1508       -.58694E-07** at limit **
   6  Prefactor     4.8435        3.6352       -.36772E-07   -.56350E-03
   7  Prefactor     .24980E-07    2.3217        .39074E-07** at limit **
   8  norm           .0000        1.7636        .24939E-07** at limit **
   9  Prefactor     .44116        2.4121        .10763E-07   -.16352E-01
  10  norm          2.9923        3.0734       -.51516E-07   -.11568E-02
  11  Prefactor     .26751E-06    3.6704        .14181E-07** at limit **
  12  Prefactor     3.7575        2.5716        .13888E-07    .69421E-05
  13  norm          1.3206        .89402       -.39996E-07   -.43063E-02
  14  Prefactor     .28311E-08    4.3163        .29803E-07** at limit **
  15  norm          2.0462        1.0491       -.10938E-07   -.12180E-02
  16  Prefactor     .15604E-06    5.8547        .17689E-06** at limit **
  17  Prefactor      .0000        1.1268       -.83086E-07** at limit **
  18  norm          1.6582        1.7533        .25826E-07    .10665E-02
  19  Prefactor     .11069E-06    19.587       -.41467E-07** at limit **
  20  Prefactor     33.742        27.595        .64526E-07   -.26107E-01
  21  norm           .0000        .72893        .14996E-06** at limit **
  22  Prefactor     .35599E-06    24.560       -.85048E-07** at limit **
  23  Prefactor     .22204E-09    3.5996       -.16076E-07** at limit **
  24  norm           .0000        1.4441        .41903E-07** at limit **
  25  Prefactor     .46868E-06    2.2882        .92609E-07** at limit **
  26  Normalizat    .94727        .11519       -.12339E-05    .42218E-04
  27  Prefactor     1.0450        .14483        .20381E-05    .86160E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.295
  Prefactor  = 18.2559
  norm       = 0
  Prefactor  = 0
  norm       = 1.27676e-09
  Prefactor  = 4.84351
  Prefactor  = 2.498e-08
  norm       = 0
  Prefactor  = 0.441158
  norm       = 2.99235
  Prefactor  = 2.67508e-07
  Prefactor  = 3.75749
  norm       = 1.32057
  Prefactor  = 2.83107e-09
  norm       = 2.04618
  Prefactor  = 1.56042e-07
  Prefactor  = 0
  norm       = 1.65819
  Prefactor  = 1.10689e-07
  Prefactor  = 33.742
  norm       = 0
  Prefactor  = 3.55993e-07
  Prefactor  = 2.22045e-10
  norm       = 0
  Prefactor  = 4.68681e-07
  Normalizat = 0.947269
  Prefactor  = 1.045
 **********
 **   18 **HESSE 
 **********

 FCN=   14738.59     FROM HESSE     STATUS=OK           544 CALLS     2421 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2950        3.7904        .43723E-03   -1.5662    
   2  Prefactor     18.256        14.238        .23359E-03   -1.5623    
   3  norm           .0000        1.6526        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        .96351        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .12768E-08    4.0507        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.8435        3.6476        .45728E-03   -1.5664    
   7  Prefactor     .24980E-07    6.4894        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        1.6978        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .44116        3.8446        .13005E-01   -1.5695    
  10  norm          2.9923        3.0830        .58683E-03   -1.5673    
  11  Prefactor     .26751E-06    6.3194        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.7575        2.5713        .52073E-03   -1.5669    
  13  norm          1.3206        .90864        .95726E-03   -1.5685    
  14  Prefactor     .28311E-08    4.3260        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.0462        1.0494        .72259E-04   -1.5679    
  16  Prefactor     .15604E-06    7.1397        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        1.1290        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.6582        1.7759        .81266E-03   -1.5682    
  19  Prefactor     .11069E-06    20.039        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     33.742        28.754        .17717E-03   -1.5592    
  21  norm           .0000        .72689        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .35599E-06    25.931        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .22204E-09    3.5005        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm           .0000        1.4344        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .46868E-06    6.6569        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .94727        .95998E-01    .45512E-01   -.94819    
  27  Prefactor     1.0450        .11937        .58581E-01   -.91244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13714e-07
Minuit parameter uncertainties:
  1  3.79036
  2  14.2385
  3  9.65102e-06
  4  6.06894e-06
  5  0.000143919
  6  3.64763
  7  0.000805051
  8  7.0845e-07
  9  2.60468
  10  3.08296
  11  0.00260037
  12  2.5713
  13  0.908642
  14  0.00022049
  15  1.04943
  16  0.0021112
  17  5.71898e-06
  18  1.77586
  19  0.00297897
  20  28.7544
  21  8.59667e-06
  22  0.00607664
  23  5.36681e-05
  24  4.3702e-06
  25  0.00353261
  26  0.0960149
  27  0.119403
Done.

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

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  1.321e+00  9.086e-01  0.000e+00  1.000e+06 ( 1.000e-12)
365        alpha:  1.811e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
366         beta:  4.589e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
367           Eb:  1.135e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
695    Prefactor:  1.045e+00  1.194e-01  0.000e+00  1.000e+01 ( 1.000e+00)
696        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
697        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
694   Normalization:  9.473e-01  9.601e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.41
Ra Dec: 192.084 58.343
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 1.17e-08 +/- 8.02e-09
Energy Flux (Fixed Index): 1.17e-05 +/- 8.02e-06

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) = 14738.418629
delta logL = 0.17070318605

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14738.4169255
delta logL = 0.172406755704

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1869       1.0000          .0000       .10000E+07
     2 'alpha     '    2.1024       1.0000          .0000       5.0000    
     3 'Normalizat'    .94272       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0482       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14738.42     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      233 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1869        13.276        .10465E-02    .38322E-02
   2  alpha         2.1024        3.5509        .41829        .79370E-04
   3  Normalizat    .94272        .31489E-01    .45445E-01    .77274E-04
   4  Prefactor     1.0482        .35674E-01    .58500E-01   -.11083E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.18692
  alpha      = 2.10237
  Normalizat = 0.942721
  Prefactor  = 1.04816
 **********
 **   18 **HESSE 
 **********

 FCN=   14738.42     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1869        .89259        .84439E-05   -1.5686    
   2  alpha         2.1024        .52945        .16570E-01   -.15973    
   3  Normalizat    .94272        .11392        .21466E-03   -.94975    
   4  Prefactor     1.0482        .14424        .25869E-03   -.91141    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3472e-10
Minuit parameter uncertainties:
  1  0.892588
  2  0.533594
  3  0.113949
  4  0.144293
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/265687': 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) = 14738.4169255
delta logL = 0.172406756128

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  1.187e+00  8.926e-01  0.000e+00  1.000e+06 ( 1.000e-12)
365        alpha:  2.102e+00  5.336e-01  0.000e+00  5.000e+00 ( 1.000e+00)
366         beta:  4.589e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
367           Eb:  1.135e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
695    Prefactor:  1.048e+00  1.443e-01  0.000e+00  1.000e+01 ( 1.000e+00)
696        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
697        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
694   Normalization:  9.427e-01  1.139e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.76
Ra Dec: 192.084 58.343
Photon Index (Free Index): 2.10 +/- 0.53
Photon Flux (Free Index): 1.55e-08 +/- 1.18e-08
Energy Flux (Free Index): 8.17e-06 +/- 7.10e-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/265687/cmap_HighResolution_696816001_697420801_4FGL_J1248.3+5820_weekly_bin757.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.17e-08', energy_flux2='8.17e-06', photon_flux_error='8.02e-09', dlogl='1.72e-01', energy_flux='1.17e-05', photon_flux2='1.55e-08', job_status='DONE', time_completed='2023-02-07 01:31:37.048169', photon_index_error2='0.53', photon_index2='2.10', ts='4.41', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='7.10e-06', EG='0.95', time_epoch_completed='1675762297.05', return_code='0', job_id='265687', GAL2='1.05', EG2='0.94', return_code2='0', energy_flux_error='8.02e-06', photon_flux_error2='1.18e-08', ts2='4.76', photon_index='1.81' WHERE bin_id='757' AND source_name='4FGL J1248.3+5820' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb  7 01:31:37 PST 2023


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 265687: <4FGL_J1248.3+5820_weekly_bin757> in cluster <slac> Done

Job <4FGL_J1248.3+5820_weekly_bin757> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Feb  7 01:15:24 2023
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb  7 01:15:55 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb  7 01:15:55 2023
Terminated at Tue Feb  7 01:31:37 2023
Results reported at Tue Feb  7 01:31:37 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.3+5820_weekly_bin757 192.084 58.3432 696816001 697420801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1248.3+5820 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   912.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             317.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            973 sec.

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

