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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin1755
RA = 192.244, Dec = 48.67
tmin = 694224001, tmax = 694483201
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='822239', job_status='RUN', time_executed='2023-01-04 00:56:59.585140', time_epoch_executed='1672822619.59' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='1755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/822239

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/822239/ft1_4FGL_J1248.9+4840_daily_bin1755.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/822239/ft2_4FGL_J1248.9+4840_daily_bin1755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/822239/ft1_4FGL_J1248.9+4840_daily_bin1755.fits outfile=/scratch/kocevski/822239/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin1755.fits ra=192.244 dec=48.67 rad=12.0 tmin=694224001.0 tmax=694483201.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.07
user 2.79
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/822239/ft2_4FGL_J1248.9+4840_daily_bin1755.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/822239/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin1755.fits evtable="EVENTS" outfile="/scratch/kocevski/822239/ft1_filtered_4FGL_J1248.9+4840_daily_bin1755.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: 638

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/822239/ft1_filtered_4FGL_J1248.9+4840_daily_bin1755.fits" evtable="EVENTS" scfile=/scratch/kocevski/822239/ft2_4FGL_J1248.9+4840_daily_bin1755.fits sctable="SC_DATA" outfile=/scratch/kocevski/822239/ltcube_694224001_694483201_4FGL_J1248.9+4840_daily_bin1755.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/822239/ft2_4FGL_J1248.9+4840_daily_bin1755.fits
.....................!
real 18.13
user 17.56
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/822239/ft1_filtered_4FGL_J1248.9+4840_daily_bin1755.fits evtable="EVENTS" scfile=/scratch/kocevski/822239/ft2_4FGL_J1248.9+4840_daily_bin1755.fits sctable="SC_DATA" expcube=/scratch/kocevski/822239/ltcube_694224001_694483201_4FGL_J1248.9+4840_daily_bin1755.fits outfile=/scratch/kocevski/822239/expmap_694224001_694483201_4FGL_J1248.9+4840_daily_bin1755.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/822239/ltcube_694224001_694483201_4FGL_J1248.9+4840_daily_bin1755.fits
.....................!
real 194.45
user 187.71
sys 4.94

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/822239/ft1_filtered_4FGL_J1248.9+4840_daily_bin1755.fits scfile=/scratch/kocevski/822239/ft2_4FGL_J1248.9+4840_daily_bin1755.fits outfile=/scratch/kocevski/822239/cmap_694224001_694483201_4FGL_J1248.9+4840_daily_bin1755.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.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/822239/ft1_filtered_4FGL_J1248.9+4840_daily_bin1755.fits scfile=/scratch/kocevski/822239/ft2_4FGL_J1248.9+4840_daily_bin1755.fits outfile=/scratch/kocevski/822239/cmap_HighResolution_694224001_694483201_4FGL_J1248.9+4840_daily_bin1755.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.60
user 0.41
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .43076E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    6.5490       1.0000          .0000       .10000E+07
     3 'norm      '    .17755E-03   1.0000          .0000       .10000E+07
     4 'norm      '    .50767E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    46.782       1.0000          .0000       .10000E+07
     6 'Prefactor '    .34084E-05   1.0000          .0000       .10000E+07
     7 'norm      '    .22488E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .19981E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    9.8230       1.0000          .0000       .10000E+07
    10 'norm      '    .75963       1.0000          .0000       .10000E+07
    11 'Prefactor '    .29903E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .14794E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    15.061       1.0000          .0000       .10000E+07
    14 'norm      '    .15471E-04   1.0000          .0000       .10000E+07
    15 'norm      '    .78676E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    29.891       1.0000          .0000       .10000E+07
    17 'Prefactor '    3.8440       1.0000          .0000       .10000E+07
    18 'norm      '    1.3593       1.0000          .0000       .10000E+07
    19 'Prefactor '    38.159       1.0000          .0000       .10000E+07
    20 'norm      '    .10779E-05   1.0000          .0000       .10000E+07
    21 'Normalizat'    .92667       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0681       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=   7070.694     FROM MIGRAD    STATUS=CONVERGED    155 CALLS     1764 TOTAL
                     EDM=   .84E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.5365       -.20325E-06** at limit **
   2  Prefactor     6.7561        16.823       -.11368E-06   -.29761E-02
   3  norm           .0000        2.0761        .19008E-07** at limit **
   4  norm           .0000        2.7659        .19343E-07** at limit **
   5  Prefactor     47.363        21.174        .73544E-07    .53015E-02
   6  Prefactor     .11102E-09    3.8722        .27572E-06** at limit **
   7  norm           .0000        .90984       -.27285E-06** at limit **
   8  Prefactor      .0000        4.0799        .20620E-06** at limit **
   9  Prefactor     9.7982        1.4233        .29909E-08   -.26193E-02
  10  norm          .75785        1.8898        .60280E-08    .10794E-03
  11  Prefactor     .11102E-09    3.7775        .16166E-06** at limit **
  12  Prefactor     .53291E-08    31.784        .24448E-06** at limit **
  13  Prefactor     15.157        3.6747        .17602E-07    .29029E-01
  14  norm           .0000        6.3758       -.97509E-07** at limit **
  15  norm           .0000        .99755       -.92897E-07** at limit **
  16  Prefactor     30.138        5.7902       -.11290E-07    .33834E-01
  17  Prefactor     3.6865        5.1089        .81559E-07   -.15067E-01
  18  norm          1.3571        1.9107        .20640E-06    .15617E-03
  19  Prefactor     39.537        39.557        .27996E-07   -.90857E-02
  20  norm           .0000        .33908       -.50476E-07** at limit **
  21  Normalizat    .92486        .16878        .27370E-05    .99446E-05
  22  Prefactor     1.0687        .20712       -.20405E-05    .59505E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 6.7561
  norm       = 0
  norm       = 0
  Prefactor  = 47.3631
  Prefactor  = 1.11022e-10
  norm       = 0
  Prefactor  = 0
  Prefactor  = 9.7982
  norm       = 0.757854
  Prefactor  = 1.11022e-10
  Prefactor  = 5.32907e-09
  Prefactor  = 15.1571
  norm       = 0
  norm       = 0
  Prefactor  = 30.1384
  Prefactor  = 3.68648
  norm       = 1.35715
  Prefactor  = 39.5375
  norm       = 0
  Normalizat = 0.924859
  Prefactor  = 1.06872
 **********
 **   18 **HESSE 
 **********

 FCN=   7070.694     FROM HESSE     STATUS=OK           384 CALLS     2148 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.5325        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.7561        17.050        .39191E-03   -1.5656    
   3  norm           .0000        2.0471        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        2.7715        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     47.363        21.625        .14622E-03   -1.5570    
   6  Prefactor     .11102E-09    3.8555        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        .90500        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        4.0899        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.7982        18.285        .31948E-03   -1.5645    
  10  norm          .75785        1.8962        .55994E-03   -1.5691    
  11  Prefactor     .11102E-09    3.7799        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .53291E-08    31.242        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.157        16.501        .25782E-03   -1.5630    
  14  norm           .0000        6.3903        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        1.0001        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.138        30.197        .18294E-03   -1.5598    
  17  Prefactor     3.6865        43.375        .51450E-03   -1.5670    
  18  norm          1.3571        1.9506        .93661E-03   -1.5685    
  19  Prefactor     39.537        39.955        .16190E-03   -1.5582    
  20  norm           .0000        .33557        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .92486        .14234        .45242E-01   -.95592    
  22  Prefactor     1.0687        .17309        .58707E-01   -.90473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27785e-07
Minuit parameter uncertainties:
  1  1.87567e-06
  2  17.0501
  3  6.9113e-07
  4  1.37709e-06
  5  21.6247
  6  3.83944e-05
  7  3.99435e-07
  8  1.32445e-05
  9  18.2846
  10  1.89617
  11  4.45213e-05
  12  0.000815382
  13  16.5015
  14  1.13863e-05
  15  1.76944e-07
  16  30.1968
  17  25.2907
  18  1.95059
  19  39.9556
  20  2.82699e-08
  21  0.142401
  22  0.173181
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  0.000e+00  1.324e-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:  1.069e+00  1.732e-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:  9.249e-01  1.424e-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: 3.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/822239/likelihoodResults_694224001_694483201_4FGL_J1248.9+4840_daily_bin1755.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) = 7070.69419232
delta logL = -0.000190860775547

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7070.69400205
delta logL = -5.89619958191e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19551E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .98532       1.0000          .0000       10.000    
     3 'Normalizat'    .92495       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0685       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7070.249     FROM MIGRAD    STATUS=FAILED       266 CALLS      466 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45757E-05    .67579E-05    .74901E-06** at limit **
   2  Index        10.0000        1.7593        .50000    ** at limit **
   3  Normalizat    .89750        .16743        .22400E-03   -.13297E-04
   4  Prefactor     1.0926        .20892        .25715E-03   -.25023E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7070.249     FROM SIMPLEX   STATUS=UNCHANGED    121 CALLS      587 TOTAL
                     EDM=   .94E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .45757E-05    .67579E-05    .53003E-10   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        1.7593        .10808E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .89750        .16743        .22236E-05   -.96548    
   4  Prefactor     1.0926        .20892        .70224E-06   -.89704    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7070.249     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      638 TOTAL
                     EDM=   .50E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45757E-05    .63108E-05     .0000    ** at limit **
   2  Index        10.0000        1.5541         .0000    ** at limit **
   3  Normalizat    .89750        .16782         .0000       -.60904E-05
   4  Prefactor     1.0926        .20929         .0000       -.26526E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.57573e-06
  Index      = 10
  Normalizat = 0.897501
  Prefactor  = 1.0926
 **********
 **   18 **HESSE 
 **********

 FCN=   7070.249     FROM HESSE     STATUS=OK            29 CALLS      667 TOTAL
                     EDM=   .99E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .45757E-05    .63107E-05    .37451E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        1.5541        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .89750        .16759        .17920E-05   -.96548    
   4  Prefactor     1.0926        .20901        .20572E-05   -.89704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.90593e-06
Minuit parameter uncertainties:
  1  6.31071e-06
  2  1.33139e-05
  3  0.167692
  4  0.209168
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/822239': 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) = 7070.24906668
delta logL = 0.444934777114

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  4.576e-06  6.311e-06  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  1.000e+01  1.331e-05  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:  1.093e+00  2.092e-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:  8.975e-01  1.677e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/822239/cmap_HighResolution_694224001_694483201_4FGL_J1248.9+4840_daily_bin1755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.57e-03', job_status='DONE', photon_flux_upper_limit='3.31e-08', time_completed='2023-01-04 01:09:08.036893', job_id='822239', GAL2='1.09', fit_tolerance='1e-08', EG2='0.90', EG='0.92', time_epoch_completed='1672823348.04', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='4.45e-01', ts2='0.92', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1755' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan  4 01:09:08 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 822239: <4FGL_J1248.9+4840_daily_bin1755> in cluster <slac> Done

Job <4FGL_J1248.9+4840_daily_bin1755> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jan  4 00:55:23 2023
Job was executed on host(s) <bullet0159>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan  4 00:56:28 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan  4 00:56:28 2023
Terminated at Wed Jan  4 01:09:08 2023
Results reported at Wed Jan  4 01:09:08 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin1755 192.244 48.67 694224001 694483201 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 :                                   727.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   760 sec.
    Turnaround time :                            825 sec.

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

