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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin976
RA = 192.244, Dec = 48.67
tmin = 492307201, tmax = 492566401
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='922651', job_status='RUN', time_executed='2021-09-06 05:52:45.367965', time_epoch_executed='1630932765.37' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='976'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/922651

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/922651/ft1_4FGL_J1248.9+4840_daily_bin976.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/922651/ft2_4FGL_J1248.9+4840_daily_bin976.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/922651/ft1_4FGL_J1248.9+4840_daily_bin976.fits outfile=/scratch/kocevski/922651/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin976.fits ra=192.244 dec=48.67 rad=12.0 tmin=492307201.0 tmax=492566401.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.70
user 3.47
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/922651/ft1_filtered_4FGL_J1248.9+4840_daily_bin976.fits" evtable="EVENTS" scfile=/scratch/kocevski/922651/ft2_4FGL_J1248.9+4840_daily_bin976.fits sctable="SC_DATA" outfile=/scratch/kocevski/922651/ltcube_492307201_492566401_4FGL_J1248.9+4840_daily_bin976.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/922651/ft2_4FGL_J1248.9+4840_daily_bin976.fits
.....................!
real 11.71
user 11.27
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/922651/ft1_filtered_4FGL_J1248.9+4840_daily_bin976.fits evtable="EVENTS" scfile=/scratch/kocevski/922651/ft2_4FGL_J1248.9+4840_daily_bin976.fits sctable="SC_DATA" expcube=/scratch/kocevski/922651/ltcube_492307201_492566401_4FGL_J1248.9+4840_daily_bin976.fits outfile=/scratch/kocevski/922651/expmap_492307201_492566401_4FGL_J1248.9+4840_daily_bin976.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/922651/ltcube_492307201_492566401_4FGL_J1248.9+4840_daily_bin976.fits
.....................!
real 191.43
user 186.33
sys 4.69

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/922651/ft1_filtered_4FGL_J1248.9+4840_daily_bin976.fits scfile=/scratch/kocevski/922651/ft2_4FGL_J1248.9+4840_daily_bin976.fits outfile=/scratch/kocevski/922651/cmap_492307201_492566401_4FGL_J1248.9+4840_daily_bin976.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.72
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/922651/ft1_filtered_4FGL_J1248.9+4840_daily_bin976.fits scfile=/scratch/kocevski/922651/ft2_4FGL_J1248.9+4840_daily_bin976.fits outfile=/scratch/kocevski/922651/cmap_HighResolution_492307201_492566401_4FGL_J1248.9+4840_daily_bin976.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.85
user 0.36
sys 0.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10461E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.912       1.0000         .10000E-03   10000.    
     3 'norm      '    4.4680       1.0000         .10000E-03   10000.    
     4 'norm      '    21.414       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11235E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.0533       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.3030       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    21.212       1.0000         .10000E-03   10000.    
    16 'norm      '    .10854E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    57.650       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.9060       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11621E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    51.940       1.0000         .10000E-03   10000.    
    22 'norm      '    1.5005       1.0000         .10000E-03   10000.    
    23 'norm      '    93.525       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .88981       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87522       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.

 FCN=   4128.998     FROM MIGRAD    STATUS=CONVERGED    608 CALLS     2954 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5424       -.22847E-06** at limit **
   2  Prefactor     16.912        22.094        .31728E-06    .32291E-05
   3  norm          4.4672        2.5657        .84932E-07    .11344E-04
   4  norm          21.413        11.070       -.22326E-06   -.12907E-03
   5  Prefactor     .10000E-03    58.396       -.63272E-06** at limit **
   6  Prefactor     .10000E-03    2.6191       -.70348E-07** at limit **
   7  norm          4.0526        2.5040        .73517E-07    .42269E-04
   8  Prefactor     .10000E-03    11.334       -.10775E-06** at limit **
   9  Prefactor     .10000E-03    9.6506       -.52477E-07** at limit **
  10  norm          4.3025        2.8431        .51462E-07   -.62646E-04
  11  Prefactor     .10000E-03    7.3506       -.14332E-06** at limit **
  12  Prefactor     .10000E-03    14.525        .36985E-07** at limit **
  13  Prefactor     .10000E-03    10.794       -.19752E-06** at limit **
  14  Prefactor     .10000E-03    16.739       -.17614E-06** at limit **
  15  norm          21.210        18.086        .74996E-07   -.16123E-04
  16  norm          .10000E-03    4.2663        .23672E-05** at limit **
  17  Prefactor     57.610        40.117       -.15225E-05   -.33655E-03
  18  Prefactor     9.8916        22.256        .22252E-07   -.27114E-04
  19  Prefactor     .10000E-03    46.763        .38834E-05** at limit **
  20  norm          .10000E-03    1.3976        .75880E-06** at limit **
  21  Prefactor     51.746        66.870        .72676E-06   -.31225E-04
  22  norm          1.5006        1.2827        .11516E-06    .75755E-04
  23  norm          93.545        100.73        .73009E-07    .84088E-05
  24  Normalizat    .89033        .19431       -.18840E-05   -.28042E-03
  25  Prefactor     .87463        .23298        .14604E-05   -.24709E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 16.912
  norm       = 4.46724
  norm       = 21.4127
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.05255
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.30254
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.2099
  norm       = 0.000100003
  Prefactor  = 57.6097
  Prefactor  = 9.89157
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 51.7457
  norm       = 1.50061
  norm       = 93.5447
  Normalizat = 0.890331
  Prefactor  = 0.874626
 **********
 **   18 **HESSE 
 **********

 FCN=   4128.998     FROM HESSE     STATUS=OK           421 CALLS     3375 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.6665        .23474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.912        22.052        .97390E-04   -1.4885    
   3  norm          4.4672        2.5685        .74546E-04   -1.5285    
   4  norm          21.413        11.055        .86556E-04   -1.4782    
   5  Prefactor     .10000E-03    58.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.6320        .10151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.0526        2.5046        .77480E-04   -1.5305    
   8  Prefactor     .10000E-03    11.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.6531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.3025        2.8420        .84936E-04   -1.5293    
  11  Prefactor     .10000E-03    7.3798        .17012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          21.210        18.089        .86967E-04   -1.4787    
  16  norm          .10000E-03    5.5129        .21035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     57.610        41.591        .52836E-04   -1.4188    
  18  Prefactor     9.8916        22.125        .12732E-03   -1.5079    
  19  Prefactor     .10000E-03    48.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.4221        .74753E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     51.746        66.813        .55649E-04   -1.4268    
  22  norm          1.5006        1.2730        .65274E-04   -1.5463    
  23  norm          93.545        100.72        .41557E-04   -1.3771    
  24  Normalizat    .89033        .22272        .21983E-03   -.96801    
  25  Prefactor     .87463        .26544        .27659E-03   -.97033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.34526e-10
Minuit parameter uncertainties:
  1  1.42787e-06
  2  22.0622
  3  2.56858
  4  11.0559
  5  5.80965e-05
  6  1.14622e-06
  7  2.50471
  8  1.46691e-05
  9  2.10066e-06
  10  2.84211
  11  2.7322e-06
  12  1.01872e-05
  13  5.68946e-06
  14  9.205e-06
  15  18.0941
  16  0.000237556
  17  41.612
  18  22.1433
  19  0.000637684
  20  1.74585e-05
  21  66.91
  22  1.27301
  23  100.905
  24  0.222952
  25  0.265835
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  1.467e-05  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:  8.746e-01  2.658e-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.903e-01  2.230e-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: 5.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/922651/likelihoodResults_492307201_492566401_4FGL_J1248.9+4840_daily_bin976.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) = 4128.99831736
delta logL = -0.000418547894697

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4128.99789876
delta logL = 5.36538209417e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4216       1.0000          .0000       10.000    
     3 'Normalizat'    .89035       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87461       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.

 FCN=   4128.998     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      240 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10275E-03    9.8817        .18142E-01** at limit **
   2  Index         2.3405        7.6915        .50000        .17219E-04
   3  Normalizat    .89033        .39178E-02    .21983E-03   -.10343E-05
   4  Prefactor     .87463        .49179E-02    .27659E-03   -.28772E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102755
  Index      = 2.34053
  Normalizat = 0.890331
  Prefactor  = 0.874627
 **********
 **   18 **HESSE 
 **********

 FCN=   4128.998     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10275E-03    91.485        .22325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3405        8.2623        .50000       -.56084    
   3  Normalizat    .89033        .11927E-01    .87932E-05   -.96801    
   4  Prefactor     .87463        .14972E-01    .11064E-04   -.97033    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.27667e-09
Minuit parameter uncertainties:
  1  0.0318
  2  307.305
  3  0.011927
  4  0.0149716
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/922651': 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): 102
logL (Free Index) = 4128.99789842
delta logL = 3.92476067645e-07

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.028e-04  3.180e-02  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.341e+00  3.073e+02  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:  8.746e-01  1.497e-02  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.903e-01  1.193e-02  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/922651/cmap_HighResolution_492307201_492566401_4FGL_J1248.9+4840_daily_bin976.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.59e-03', job_status='DONE', photon_flux_upper_limit='5.92e-08', time_completed='2021-09-06 06:03:35.272575', job_id='922651', GAL2='0.87', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1630933415.27', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='3.92e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='976' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:03:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 922651: <4FGL_J1248.9+4840_daily_bin976> in cluster <slac> Done

Job <4FGL_J1248.9+4840_daily_bin976> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 05:50:31 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:50:32 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:32 2021
Terminated at Mon Sep  6 06:03:36 2021
Results reported at Mon Sep  6 06:03:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin976 192.244 48.67 492307201 492566401 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 :                                   629.35 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             299.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            785 sec.

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

