/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 214 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin1177
RA = 192.244, Dec = 48.67
tmin = 544406401, tmax = 544665601
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='922959', job_status='RUN', time_executed='2021-09-06 05:54:40.812833', time_epoch_executed='1630932880.81' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='1177'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/922959

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

Retrieving the FT1 file...

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

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

Retrieving 36 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/922959/ft1_4FGL_J1248.9+4840_daily_bin1177.fits


Retrieving the FT1 file...

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

Retrieving 36 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/922959/ft2_4FGL_J1248.9+4840_daily_bin1177.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/922959/ft1_4FGL_J1248.9+4840_daily_bin1177.fits outfile=/scratch/kocevski/922959/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin1177.fits ra=192.244 dec=48.67 rad=12.0 tmin=544406401.0 tmax=544665601.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 7.63
user 7.33
sys 0.28

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/922959/ft1_filtered_4FGL_J1248.9+4840_daily_bin1177.fits evtable="EVENTS" scfile=/scratch/kocevski/922959/ft2_4FGL_J1248.9+4840_daily_bin1177.fits sctable="SC_DATA" expcube=/scratch/kocevski/922959/ltcube_544406401_544665601_4FGL_J1248.9+4840_daily_bin1177.fits outfile=/scratch/kocevski/922959/expmap_544406401_544665601_4FGL_J1248.9+4840_daily_bin1177.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/922959/ltcube_544406401_544665601_4FGL_J1248.9+4840_daily_bin1177.fits
.....................!
real 191.12
user 186.37
sys 4.41

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/922959/ft1_filtered_4FGL_J1248.9+4840_daily_bin1177.fits scfile=/scratch/kocevski/922959/ft2_4FGL_J1248.9+4840_daily_bin1177.fits outfile=/scratch/kocevski/922959/cmap_544406401_544665601_4FGL_J1248.9+4840_daily_bin1177.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.63
user 0.36
sys 0.15

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/922959/ft1_filtered_4FGL_J1248.9+4840_daily_bin1177.fits', '/scratch/kocevski/922959/ft2_4FGL_J1248.9+4840_daily_bin1177.fits', expMap='/scratch/kocevski/922959/expmap_544406401_544665601_4FGL_J1248.9+4840_daily_bin1177.fits', expCube='/scratch/kocevski/922959/ltcube_544406401_544665601_4FGL_J1248.9+4840_daily_bin1177.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/922959/Model_4FGL_J1248.9+4840_daily_bin1177.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  1.000e-04  1.000e+04 ( 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/922959/ft1_filtered_4FGL_J1248.9+4840_daily_bin1177.fits
Spacecraft file(s): /scratch/kocevski/922959/ft2_4FGL_J1248.9+4840_daily_bin1177.fits
Exposure map: /scratch/kocevski/922959/expmap_544406401_544665601_4FGL_J1248.9+4840_daily_bin1177.fits
Exposure cube: /scratch/kocevski/922959/ltcube_544406401_544665601_4FGL_J1248.9+4840_daily_bin1177.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/922959/Model_4FGL_J1248.9+4840_daily_bin1177.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 14.2981961472

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 14.2084212709

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1222       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.0050       1.0000         .10000E-03   10000.    
     3 'norm      '    2.7286       1.0000         .10000E-03   10000.    
     4 'norm      '    3.4797       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.3500       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1042       1.0000         .10000E-03   10000.    
     7 'norm      '    3.6111       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2273       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3124       1.0000         .10000E-03   10000.    
    10 'norm      '    3.0027       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .41862       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.3085       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9880       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .76491       1.0000         .10000E-03   10000.    
    15 'norm      '    7.8283       1.0000         .10000E-03   10000.    
    16 'norm      '    4.4517       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.4615       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.6048       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.0629       1.0000         .10000E-03   10000.    
    20 'norm      '    2.5428       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.7312       1.0000         .10000E-03   10000.    
    22 'norm      '    4.1194       1.0000         .10000E-03   10000.    
    23 'norm      '    3.8570       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4936       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .24894E-04   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=   14.18303     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      178 TOTAL
                     EDM=   .10E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1222        1.0134         .0000         .0000    
   2  Prefactor     5.0050        1.0051         .0000         .0000    
   3  norm          2.7286        1.0179         .0000         .0000    
   4  norm          3.4797        1.0107         .0000         .0000    
   5  Prefactor     7.3500        1.0023         .0000         .0000    
   6  Prefactor     1.1042        1.1851         .0000         .0000    
   7  norm          3.6111        1.0099         .0000         .0000    
   8  Prefactor     3.2273        1.0125         .0000         .0000    
   9  Prefactor     .10000E-03    .23128        .31072E-05** at limit **
  10  norm          3.0027        1.0146         .0000         .0000    
  11  Prefactor     .10000E-03    .29887       -.68438E-08** at limit **
  12  Prefactor     4.3085        1.0069         .0000         .0000    
  13  Prefactor     1.9880        1.0358         .0000         .0000    
  14  Prefactor     .10000E-03    .37874        .23694E-06** at limit **
  15  norm          .10000E-03    .32092E-01   -.58211E-05** at limit **
  16  norm          4.4517        1.0064         .0000         .0000    
  17  Prefactor     9.4615        1.0014         .0000         .0000    
  18  Prefactor     4.6048        1.0060         .0000         .0000    
  19  Prefactor     8.0629        1.0019         .0000         .0000    
  20  norm          2.5428        1.0208         .0000         .0000    
  21  Prefactor     7.7312        1.0021         .0000         .0000    
  22  norm          .10000E-03    .61637E-01    .25960E-05** at limit **
  23  norm          3.8570        1.0087         .0000         .0000    
  24  Normalizat    1.5179        1.0574        .64669E-05    .22817E-05
  25  Prefactor     .23331E-11    .25505        .10210E-03** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.12224
  Prefactor  = 5.005
  norm       = 2.72859
  norm       = 3.47972
  Prefactor  = 7.34996
  Prefactor  = 1.10422
  norm       = 3.61115
  Prefactor  = 3.22733
  Prefactor  = 0.0001
  norm       = 3.00268
  Prefactor  = 0.0001
  Prefactor  = 4.30848
  Prefactor  = 1.98797
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.45174
  Prefactor  = 9.46154
  Prefactor  = 4.60476
  Prefactor  = 8.06286
  norm       = 2.54278
  Prefactor  = 7.73116
  norm       = 0.0001
  norm       = 3.85705
  Normalizat = 1.51793
  Prefactor  = 2.33313e-12
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   14.18303     FROM HESSE     STATUS=FAILED         9 CALLS      187 TOTAL
                     EDM=   .10E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     552.76        549.55         .0000       -1.5355    
   2  Prefactor     5.0050        1.0051         .0000       -1.5260    
   3  norm          2.7286        1.0179         .0000       -1.5378    
   4  norm          3.4797        1.0107         .0000       -1.5335    
   5  Prefactor     7.3500        1.0023         .0000       -1.5166    
   6  Prefactor     1.1042        1.1851         .0000       -1.5498    
   7  norm          3.6111        1.0099         .0000       -1.5328    
   8  Prefactor     3.2273        1.0125         .0000       -1.5349    
   9  Prefactor     .10000E-03    .23128        .31072E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.0027        1.0146         .0000       -1.5361    
  11  Prefactor     .10000E-03    .29887       -.68438E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.3085        1.0069         .0000       -1.5293    
  13  Prefactor     1.9880        1.0358         .0000       -1.5426    
  14  Prefactor     .10000E-03    .37874        .23694E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .32092E-01   -.58211E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.4517        1.0064         .0000       -1.5286    
  17  Prefactor     9.4615        1.0014         .0000       -1.5093    
  18  Prefactor     4.6048        1.0060         .0000       -1.5279    
  19  Prefactor     8.0629        1.0019         .0000       -1.5140    
  20  norm          2.5428        1.0208         .0000       -1.5389    
  21  Prefactor     7.7312        1.0021         .0000       -1.5152    
  22  norm          .10000E-03    .61637E-01    .25960E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.8570        1.0087         .0000       -1.5315    
  24  Normalizat    1.5179        1.0574        .64669E-05   -.77276    
  25  Prefactor     .23331E-11    .25505        .10210E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.04897e-12
Minuit parameter uncertainties:
  1  1.01343
  2  1.00508
  3  1.01786
  4  1.01071
  5  1.00233
  6  1.18513
  7  1.00992
  8  1.01253
  9  3.48009e-06
  10  1.01458
  11  1.13428e-07
  12  1.0069
  13  1.03576
  14  1.30564e-06
  15  3.02908e-06
  16  1.00645
  17  1.0014
  18  1.00602
  19  1.00193
  20  1.02077
  21  1.00211
  22  2.09732e-06
  23  1.00866
  24  1.07346
  25  1.5495e-06
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 14.1830284776

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  3.227e+00  1.013e+00  1.000e-04  1.000e+04 ( 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:  2.333e-12  1.550e-06  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.518e+00  1.073e+00  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = 1.7763568394e-15

TS (Fixed Index): 0.00
Ra Dec: 192.244 48.670
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.75e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/922959/likelihoodResults_544406401_544665601_4FGL_J1248.9+4840_daily_bin1177.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): 101
logL (Free Index) = 14.1831314583
delta logL = -0.00010298070951

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 14.1831314583
delta logL = -0.00010298070951

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    2.4501       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. 

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   14.18313     FROM MIGRAD    STATUS=CONVERGED     15 CALLS       62 TOTAL
                     EDM=   .00E+00  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       2.4501        1.0104        .23715         .0000    
                               ERR DEF=  .500    
Final values: 
  Index      = 2.4501
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   14.18313     FROM HESSE     STATUS=FAILED         7 CALLS       69 TOTAL
                     EDM=   .00E+00  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       .67497        1.8465        .23715       -.53516    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 0
Minuit parameter uncertainties:
  1  1.01996
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/922959': 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) = 14.1831314583
delta logL = -0.00010298070951

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  3.227e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13) fixed
332        Index:  2.450e+00  1.020e+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:  1.215e-04  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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.515e+00  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


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/922959/cmap_HighResolution_544406401_544665601_4FGL_J1248.9+4840_daily_bin1177.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.75e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-09-06 06:00:26.618626', job_id='922959', GAL2='0.00', fit_tolerance='1e-08', EG2='1.52', EG='1.52', time_epoch_completed='1630933226.62', return_code2='101', ts='0.00', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='-1.03e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1177' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:00:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 922959: <4FGL_J1248.9+4840_daily_bin1177> in cluster <slac> Done

Job <4FGL_J1248.9+4840_daily_bin1177> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 05:50:55 2021
Job was executed on host(s) <bullet0296>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:50:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 05:50:56 2021
Terminated at Mon Sep  6 06:00:26 2021
Results reported at Mon Sep  6 06:00:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin1177 192.244 48.67 544406401 544665601 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 :                                   341.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             256.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   570 sec.
    Turnaround time :                            571 sec.

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

