/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 146 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 = 7393
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1248.9+4840_daily_bin307
RA = 192.244, Dec = 48.67
tmin = 318902401, tmax = 319161601
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='917796', job_status='RUN', time_executed='2021-09-06 05:38:15.665723', time_epoch_executed='1630931895.67' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='307'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917796

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917796/ft1_4FGL_J1248.9+4840_daily_bin307.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917796/ft2_4FGL_J1248.9+4840_daily_bin307.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917796/ft1_4FGL_J1248.9+4840_daily_bin307.fits outfile=/scratch/kocevski/917796/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin307.fits ra=192.244 dec=48.67 rad=12.0 tmin=318902401.0 tmax=319161601.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 4.58
user 3.17
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/917796/ft1_filtered_4FGL_J1248.9+4840_daily_bin307.fits" evtable="EVENTS" scfile=/scratch/kocevski/917796/ft2_4FGL_J1248.9+4840_daily_bin307.fits sctable="SC_DATA" outfile=/scratch/kocevski/917796/ltcube_318902401_319161601_4FGL_J1248.9+4840_daily_bin307.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/917796/ft2_4FGL_J1248.9+4840_daily_bin307.fits
.....................!
real 11.80
user 11.46
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917796/ft1_filtered_4FGL_J1248.9+4840_daily_bin307.fits evtable="EVENTS" scfile=/scratch/kocevski/917796/ft2_4FGL_J1248.9+4840_daily_bin307.fits sctable="SC_DATA" expcube=/scratch/kocevski/917796/ltcube_318902401_319161601_4FGL_J1248.9+4840_daily_bin307.fits outfile=/scratch/kocevski/917796/expmap_318902401_319161601_4FGL_J1248.9+4840_daily_bin307.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/917796/ltcube_318902401_319161601_4FGL_J1248.9+4840_daily_bin307.fits
.....................!
real 190.02
user 185.26
sys 4.28

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/917796/ft1_filtered_4FGL_J1248.9+4840_daily_bin307.fits scfile=/scratch/kocevski/917796/ft2_4FGL_J1248.9+4840_daily_bin307.fits outfile=/scratch/kocevski/917796/cmap_318902401_319161601_4FGL_J1248.9+4840_daily_bin307.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/917796/ft1_filtered_4FGL_J1248.9+4840_daily_bin307.fits scfile=/scratch/kocevski/917796/ft2_4FGL_J1248.9+4840_daily_bin307.fits outfile=/scratch/kocevski/917796/cmap_HighResolution_318902401_319161601_4FGL_J1248.9+4840_daily_bin307.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6309       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2655       1.0000         .10000E-03   10000.    
     3 'norm      '    .26707E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    8.8064       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.1816       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.1098       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.395       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.3381       1.0000         .10000E-03   10000.    
    10 'norm      '    .33209       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.1056       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12988E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13655E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.445       1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.261       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.886       1.0000         .10000E-03   10000.    
    20 'norm      '    6.0472       1.0000         .10000E-03   10000.    
    21 'Prefactor '    86.540       1.0000         .10000E-03   10000.    
    22 'norm      '    3.9162       1.0000         .10000E-03   10000.    
    23 'norm      '    55.921       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .68028       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1739       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=   6168.744     FROM MIGRAD    STATUS=CONVERGED    582 CALLS     2978 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6312        2.6413       -.17461E-08   -.21981E-03
   2  Prefactor     1.2653        20.320       -.35435E-05   -.35942E-03
   3  norm          .26623E-01    .73582       -.18278E-06    .13452E-03
   4  norm          8.8003        7.4130       -.21184E-07   -.12907E-03
   5  Prefactor     6.2226        22.534        .55767E-05   -.38162E-04
   6  Prefactor     .10000E-03    1.7353        .19809E-07** at limit **
   7  norm          4.1099        2.0492        .11561E-07    .43798E-03
   8  Prefactor     14.389        21.213       -.66231E-05    .11203E-03
   9  Prefactor     6.3402        13.865       -.50276E-05    .42672E-04
  10  norm          .33222        1.0877       -.42870E-06   -.95790E-03
  11  Prefactor     4.0997        9.3094        .51961E-05    .20392E-03
  12  Prefactor     .10000E-03    18.781        .46019E-05** at limit **
  13  Prefactor     .10003E-03    4.8393       -.15916E-05** at limit **
  14  Prefactor     .10007E-03    11.439       -.28630E-05** at limit **
  15  norm          .10000E-03    15.874        .11075E-06** at limit **
  16  norm          .10000E-03    1.4283        .31876E-07** at limit **
  17  Prefactor     10.460        23.810        .70512E-05    .26289E-05
  18  Prefactor     23.262        20.029       -.12553E-05    .31478E-04
  19  Prefactor     17.878        34.671       -.14480E-04    .98218E-04
  20  norm          6.0470        3.8158        .12286E-06   -.36539E-05
  21  Prefactor     86.550        60.051        .86621E-05   -.73294E-04
  22  norm          3.9164        1.5330        .22229E-06    .32519E-04
  23  norm          55.917        61.701       -.50304E-05    .38092E-04
  24  Normalizat    .68009        .15550        .35728E-06    .39430E-03
  25  Prefactor     1.1741        .18801        .47457E-06    .32457E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.63116
  Prefactor  = 1.26529
  norm       = 0.0266233
  norm       = 8.80035
  Prefactor  = 6.2226
  Prefactor  = 0.0001
  norm       = 4.10993
  Prefactor  = 14.3894
  Prefactor  = 6.34023
  norm       = 0.332215
  Prefactor  = 4.09969
  Prefactor  = 0.0001
  Prefactor  = 0.000100032
  Prefactor  = 0.000100068
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.4597
  Prefactor  = 23.2624
  Prefactor  = 17.8779
  norm       = 6.04696
  Prefactor  = 86.5502
  norm       = 3.91635
  norm       = 55.9165
  Normalizat = 0.680091
  Prefactor  = 1.17407
 **********
 **   18 **HESSE 
 **********

 FCN=   6168.744     FROM HESSE     STATUS=OK           441 CALLS     3419 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6312        2.6074        .11954E-03   -1.5384    
   2  Prefactor     1.2653        20.903        .39600E-03   -1.5483    
   3  norm          .26623E-01    17.930        .12907E-02   -1.5675    
   4  norm          8.8003        7.3576        .13507E-03   -1.5115    
   5  Prefactor     6.2226        22.298        .16147E-03   -1.5209    
   6  Prefactor     .10000E-03    1.7401        .10098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.1099        2.0373        .76571E-04   -1.5302    
   8  Prefactor     14.389        21.162        .10557E-03   -1.4949    
   9  Prefactor     6.3402        13.819        .15944E-03   -1.5204    
  10  norm          .33222        1.2101        .14338E-02   -1.5593    
  11  Prefactor     4.0997        8.6075        .19896E-03   -1.5303    
  12  Prefactor     .10000E-03    18.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10003E-03    18.031        .33073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10007E-03    97.613        .47116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    16.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.4403        .91617E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.460        23.645        .12398E-03   -1.5061    
  18  Prefactor     23.262        20.020        .83053E-04   -1.4743    
  19  Prefactor     17.878        34.437        .94703E-04   -1.4862    
  20  norm          6.0470        3.8106        .11114E-03   -1.5216    
  21  Prefactor     86.550        59.645        .43186E-04   -1.3845    
  22  norm          3.9164        1.5303        .57614E-04   -1.5312    
  23  norm          55.917        61.629        .53642E-04   -1.4211    
  24  Normalizat    .68009        .18155        .24687E-03   -1.0468    
  25  Prefactor     1.1741        .22352        .24770E-03   -.87133    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.43516e-09
Minuit parameter uncertainties:
  1  2.60754
  2  10.2894
  3  1.37965
  4  7.35835
  5  22.328
  6  6.29594e-08
  7  2.03736
  8  21.1732
  9  13.8255
  10  1.2102
  11  8.61006
  12  0.000101556
  13  0.00152164
  14  0.00517648
  15  7.24949e-06
  16  4.63262e-06
  17  23.6665
  18  20.026
  19  34.4755
  20  3.81074
  21  59.6865
  22  1.53034
  23  61.699
  24  0.181706
  25  0.223697
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.439e+01  2.117e+01  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:  1.174e+00  2.237e-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:  6.801e-01  1.817e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.59
Ra Dec: 192.244 48.670
Photon Flux Upper Limit: 9.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/917796/likelihoodResults_318902401_319161601_4FGL_J1248.9+4840_daily_bin307.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): 0
logL (Free Index) = 6168.66981581
delta logL = 0.0746017754454

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6168.66823985
delta logL = 0.0761777290827

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.130       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8421       1.0000          .0000       10.000    
     3 'Normalizat'    .66988       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1827       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=   6168.668     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      263 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.126        23.853        .12589E-03   -.10593E-03
   2  Index         2.8411        1.2900        .88130E-02   -.29774E-04
   3  Normalizat    .67004        .17497        .24857E-03   -.12300E-02
   4  Prefactor     1.1825        .22232        .24692E-03   -.11776E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.1256
  Index      = 2.8411
  Normalizat = 0.670044
  Prefactor  = 1.18252
 **********
 **   18 **HESSE 
 **********

 FCN=   6168.668     FROM HESSE     STATUS=OK            25 CALLS      288 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.126        19.774        .50357E-05   -1.5071    
   2  Index         2.8411        1.0722        .35252E-03   -.44647    
   3  Normalizat    .67004        .17498        .49713E-04   -1.0509    
   4  Prefactor     1.1825        .22208        .49385E-04   -.86871    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69163e-09
Minuit parameter uncertainties:
  1  19.787
  2  1.08258
  3  0.175129
  4  0.22226
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917796': 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) = 6168.66823817
delta logL = 0.0761794056234

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.013e+01  1.979e+01  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.841e+00  1.083e+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.183e+00  2.223e-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:  6.700e-01  1.751e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.59
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/917796/cmap_HighResolution_318902401_319161601_4FGL_J1248.9+4840_daily_bin307.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.07e-03', job_status='DONE', photon_flux_upper_limit='9.12e-08', time_completed='2021-09-06 05:51:29.427991', job_id='917796', GAL2='1.18', fit_tolerance='1e-08', EG2='0.67', EG='0.68', time_epoch_completed='1630932689.43', return_code2='0', ts='0.59', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='7.62e-02', ts2='0.75', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='307' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:51:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 917796: <4FGL_J1248.9+4840_daily_bin307> in cluster <slac> Done

Job <4FGL_J1248.9+4840_daily_bin307> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 05:35:37 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:35:38 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:35:38 2021
Terminated at Mon Sep  6 05:51:30 2021
Results reported at Mon Sep  6 05:51:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin307 192.244 48.67 318902401 319161601 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 :                                   788.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            953 sec.

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

