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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin1778
RA = 192.244, Dec = 48.67
tmin = 700185601, tmax = 700444801
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='962170', job_status='RUN', time_executed='2023-03-14 00:55:26.468826', time_epoch_executed='1678780526.47' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='1778'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/962170

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/962170/ft1_4FGL_J1248.9+4840_daily_bin1778.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/962170/ft2_4FGL_J1248.9+4840_daily_bin1778.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/962170/ft1_4FGL_J1248.9+4840_daily_bin1778.fits outfile=/scratch/kocevski/962170/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin1778.fits ra=192.244 dec=48.67 rad=12.0 tmin=700185601.0 tmax=700444801.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.94
user 3.68
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/962170/ft2_4FGL_J1248.9+4840_daily_bin1778.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/962170/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin1778.fits evtable="EVENTS" outfile="/scratch/kocevski/962170/ft1_filtered_4FGL_J1248.9+4840_daily_bin1778.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 536

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/962170/ft1_filtered_4FGL_J1248.9+4840_daily_bin1778.fits" evtable="EVENTS" scfile=/scratch/kocevski/962170/ft2_4FGL_J1248.9+4840_daily_bin1778.fits sctable="SC_DATA" outfile=/scratch/kocevski/962170/ltcube_700185601_700444801_4FGL_J1248.9+4840_daily_bin1778.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/962170/ft2_4FGL_J1248.9+4840_daily_bin1778.fits
.....................!
real 12.90
user 12.49
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/962170/ft1_filtered_4FGL_J1248.9+4840_daily_bin1778.fits evtable="EVENTS" scfile=/scratch/kocevski/962170/ft2_4FGL_J1248.9+4840_daily_bin1778.fits sctable="SC_DATA" expcube=/scratch/kocevski/962170/ltcube_700185601_700444801_4FGL_J1248.9+4840_daily_bin1778.fits outfile=/scratch/kocevski/962170/expmap_700185601_700444801_4FGL_J1248.9+4840_daily_bin1778.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/962170/ltcube_700185601_700444801_4FGL_J1248.9+4840_daily_bin1778.fits
.....................!
real 191.86
user 185.67
sys 5.23

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/962170/ft1_filtered_4FGL_J1248.9+4840_daily_bin1778.fits scfile=/scratch/kocevski/962170/ft2_4FGL_J1248.9+4840_daily_bin1778.fits outfile=/scratch/kocevski/962170/cmap_700185601_700444801_4FGL_J1248.9+4840_daily_bin1778.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/962170/ft1_filtered_4FGL_J1248.9+4840_daily_bin1778.fits scfile=/scratch/kocevski/962170/ft2_4FGL_J1248.9+4840_daily_bin1778.fits outfile=/scratch/kocevski/962170/cmap_HighResolution_700185601_700444801_4FGL_J1248.9+4840_daily_bin1778.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27460E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    26.106       1.0000          .0000       .10000E+07
     3 'norm      '    .16864E-06   1.0000          .0000       .10000E+07
     4 'norm      '    12.840       1.0000          .0000       .10000E+07
     5 'Prefactor '    .28406E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    4.5330       1.0000          .0000       .10000E+07
     7 'norm      '    2.9537       1.0000          .0000       .10000E+07
     8 'Prefactor '    .14794E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.0258       1.0000          .0000       .10000E+07
    10 'norm      '    2.0202       1.0000          .0000       .10000E+07
    11 'Prefactor '    7.5967       1.0000          .0000       .10000E+07
    12 'Prefactor '    .14572E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .20141E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .54642E-04   1.0000          .0000       .10000E+07
    15 'norm      '    .46008E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    13.325       1.0000          .0000       .10000E+07
    17 'Prefactor '    3.3309       1.0000          .0000       .10000E+07
    18 'norm      '    .16735E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .46371E-03   1.0000          .0000       .10000E+07
    20 'norm      '    1.0957       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.2560       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .77959       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=   5905.694     FROM MIGRAD    STATUS=CONVERGED    181 CALLS     1402 TOTAL
                     EDM=   .42E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.2068       -.18906E-06** at limit **
   2  Prefactor     25.663        20.632       -.71336E-06   -.51587E-03
   3  norm           .0000        .81130        .79680E-07** at limit **
   4  norm          12.834        7.6687       -.79618E-07    .27909E-03
   5  Prefactor     .22204E-09    49.956        .15960E-05** at limit **
   6  Prefactor     4.6025        5.5105       -.32034E-07   -.13978E-03
   7  norm          2.9443        2.0149       -.73567E-07    .62814E-03
   8  Prefactor      .0000        4.7621        .95171E-07** at limit **
   9  Prefactor     1.0756        52.596        .49686E-06    .14890E-03
  10  norm          2.0194        1.3779       -.55934E-07   -.20438E-03
  11  Prefactor     7.5148        9.6212        .31576E-06    .62855E-03
  12  Prefactor      .0000        3.0623        .80522E-07** at limit **
  13  Prefactor      .0000        31.694       -.10368E-05** at limit **
  14  norm           .0000        4.8478       -.21588E-06** at limit **
  15  norm           .0000        1.6156        .25254E-06** at limit **
  16  Prefactor     15.265        44.526        .27596E-05   -.23813E-03
  17  Prefactor     1.3769        326.34       -.23087E-04    .15940E-03
  18  norm           .0000        2.1126        .42932E-07** at limit **
  19  Prefactor      .0000        27.981        .38549E-06** at limit **
  20  norm          1.0980        1.1935        .89093E-07   -.57467E-03
  21  Normalizat    1.2564        .19811        .11796E-04    .95501E-07
  22  Prefactor     .77960        .23478       -.11706E-04   -.13116E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 25.6633
  norm       = 0
  norm       = 12.8337
  Prefactor  = 2.22045e-10
  Prefactor  = 4.60246
  norm       = 2.94427
  Prefactor  = 0
  Prefactor  = 1.07557
  norm       = 2.0194
  Prefactor  = 7.51478
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  norm       = 0
  Prefactor  = 15.2649
  Prefactor  = 1.37687
  norm       = 0
  Prefactor  = 0
  norm       = 1.09803
  Normalizat = 1.2564
  Prefactor  = 0.779599
 **********
 **   18 **HESSE 
 **********

 FCN=   5905.694     FROM HESSE     STATUS=OK           390 CALLS     1792 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.2038        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.663        20.659        .19576E-03   -1.5607    
   3  norm           .0000        .80883        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.834        8.0645        .27929E-03   -1.5636    
   5  Prefactor     .22204E-09    17.930        .10243E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.6025        5.5274        .47261E-03   -1.5665    
   7  norm          2.9443        2.0160        .59064E-03   -1.5674    
   8  Prefactor      .0000        4.7595        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.0756        51.336        .12626E-02   -1.5687    
  10  norm          2.0194        1.3716        .72782E-03   -1.5680    
  11  Prefactor     7.5148        9.6790        .36361E-03   -1.5653    
  12  Prefactor      .0000        3.0589        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        31.655        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        4.8457        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        1.6114        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.265        48.973        .27414E-03   -1.5630    
  17  Prefactor     1.3769        401.05        .55435E-03   -1.5684    
  18  norm           .0000        2.1134        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        27.998        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.0980        1.1956        .11383E-03   -1.5687    
  21  Normalizat    1.2564        .17146        .33644E-01   -.84877    
  22  Prefactor     .77960        .20382        .70031E-01   -1.0048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8059e-09
Minuit parameter uncertainties:
  1  2.53173e-06
  2  20.6592
  3  1.63284e-06
  4  8.06455
  5  0.000119842
  6  5.52738
  7  2.01601
  8  1.11319e-06
  9  14.8616
  10  1.37157
  11  9.67907
  12  1.49367e-06
  13  1.33575e-05
  14  8.08724e-06
  15  2.88703e-06
  16  48.9744
  17  47.0006
  18  2.09074e-06
  19  1.39493e-05
  20  1.19562
  21  0.171538
  22  0.204014
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  0.000e+00  1.113e-06  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.796e-01  2.040e-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.256e+00  1.715e-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.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/962170/likelihoodResults_700185601_700444801_4FGL_J1248.9+4840_daily_bin1778.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) = 5905.69386555
delta logL = -0.000358274047358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5905.69350788
delta logL = -5.9631838667e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62528E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.1872       1.0000          .0000       10.000    
     3 'Normalizat'    1.2565       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77939       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=   5905.694     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      243 TOTAL
                     EDM=   .22E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.5160        .42118E-03** at limit **
   2  Index         2.4960        1.4816        .10758E-04     .0000    
   3  Normalizat    1.2564        1.0895        .36417E-05   -.69478E-04
   4  Prefactor     .77960        1.1286       -.25701E-05   -.39401E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.496
  Normalizat = 1.2564
  Prefactor  = 0.7796
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5905.694     FROM HESSE     STATUS=FAILED         9 CALLS      252 TOTAL
                     EDM=   .22E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.5160        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .70191        1.9454        .10758E-04   -.52452    
   3  Normalizat    1.2564        1.0895        .36417E-05   -.84877    
   4  Prefactor     .77960        1.1286       -.25701E-05   -1.0048    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.16655e-12
Minuit parameter uncertainties:
  1  7.45546e-07
  2  1.51215
  3  1.1103
  4  1.16489
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/962170': 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) = 5905.69350728
delta logL = -9.09494701773e-13

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  0.000e+00  7.455e-07  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  2.496e+00  1.512e+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.796e-01  1.165e+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.256e+00  1.110e+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/962170/cmap_HighResolution_700185601_700444801_4FGL_J1248.9+4840_daily_bin1778.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.05e-03', job_status='DONE', photon_flux_upper_limit='3.93e-08', time_completed='2023-03-14 01:05:14.727577', job_id='962170', GAL2='0.78', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1678781114.73', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='-9.09e-13', ts2='0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1778' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Mar 14 01:05:14 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 962170: <4FGL_J1248.9+4840_daily_bin1778> in cluster <slac> Done

Job <4FGL_J1248.9+4840_daily_bin1778> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Mar 14 00:55:15 2023
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 14 00:55:17 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 14 00:55:17 2023
Terminated at Tue Mar 14 01:05:15 2023
Results reported at Tue Mar 14 01:05:15 2023

Your job looked like:

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

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

