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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin334
RA = 192.244, Dec = 48.67
tmin = 325900801, tmax = 326160001
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='917839', job_status='RUN', time_executed='2021-09-06 05:36:03.013306', time_epoch_executed='1630931763.01' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='334'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917839

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917839/ft1_4FGL_J1248.9+4840_daily_bin334.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917839/ft2_4FGL_J1248.9+4840_daily_bin334.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917839/ft1_4FGL_J1248.9+4840_daily_bin334.fits outfile=/scratch/kocevski/917839/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin334.fits ra=192.244 dec=48.67 rad=12.0 tmin=325900801.0 tmax=326160001.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.68
user 3.25
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917839/ft1_filtered_4FGL_J1248.9+4840_daily_bin334.fits evtable="EVENTS" scfile=/scratch/kocevski/917839/ft2_4FGL_J1248.9+4840_daily_bin334.fits sctable="SC_DATA" expcube=/scratch/kocevski/917839/ltcube_325900801_326160001_4FGL_J1248.9+4840_daily_bin334.fits outfile=/scratch/kocevski/917839/expmap_325900801_326160001_4FGL_J1248.9+4840_daily_bin334.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/917839/ltcube_325900801_326160001_4FGL_J1248.9+4840_daily_bin334.fits
.....................!
real 192.66
user 187.32
sys 4.94

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 213 point sources and 0 extended sources

Setting source of interest to:
4FGL J1248.9+4840 @ 192.244 48.67

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/917839/ft1_filtered_4FGL_J1248.9+4840_daily_bin334.fits scfile=/scratch/kocevski/917839/ft2_4FGL_J1248.9+4840_daily_bin334.fits outfile=/scratch/kocevski/917839/cmap_325900801_326160001_4FGL_J1248.9+4840_daily_bin334.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/917839/ft1_filtered_4FGL_J1248.9+4840_daily_bin334.fits scfile=/scratch/kocevski/917839/ft2_4FGL_J1248.9+4840_daily_bin334.fits outfile=/scratch/kocevski/917839/cmap_HighResolution_325900801_326160001_4FGL_J1248.9+4840_daily_bin334.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.681       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.1292       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.7071       1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.802       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.743       1.0000         .10000E-03   10000.    
    10 'norm      '    5.2203       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .90001       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10537E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11151E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    31.277       1.0000         .10000E-03   10000.    
    16 'norm      '    9.2714       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.539       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .15049E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.3755       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .20386       1.0000         .10000E-03   10000.    
    22 'norm      '    1.7744       1.0000         .10000E-03   10000.    
    23 'norm      '    .10498E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0462       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87404       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=   6441.392     FROM MIGRAD    STATUS=CONVERGED   1039 CALLS     3360 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.680        4.4509        .99117E-04    .92906E-05
   2  Prefactor     .10000E-03    35.868        .18142E-02** at limit **
   3  norm          5.1294        2.3149        .78143E-04    .10388E-03
   4  norm          .10000E-03    1.4140        .93108E-03** at limit **
   5  Prefactor     .10000E-03    4.7181        .17020E-02** at limit **
   6  Prefactor     .10000E-03    2.3778        .12057E-02** at limit **
   7  norm          4.7066        2.2395        .80174E-04   -.39704E-05
   8  Prefactor     32.803        21.928        .69964E-04    .21612E-04
   9  Prefactor     12.749        27.952        .11221E-03   -.63424E-04
  10  norm          5.2204        2.4770        .83827E-04    .80152E-04
  11  Prefactor     .88536        59.698        .48212E-02   -.37625E-03
  12  Prefactor     .10000E-03    34.593        .18142E-02** at limit **
  13  Prefactor     .10000E-03    3.8357        .15300E-02** at limit **
  14  Prefactor     .10000E-03    16.870        .18142E-02** at limit **
  15  norm          31.277        18.573        .71644E-04   -.53952E-05
  16  norm          9.2720        5.3699        .12961E-03    .47656E-03
  17  Prefactor     10.508        37.217        .12342E-03    .28556E-05
  18  Prefactor     .10000E-03    23.089        .18142E-02** at limit **
  19  Prefactor     .10001E-03    90.600        .18142E-02** at limit **
  20  norm          3.3749        4.0481        .16729E-03    .29752E-03
  21  Prefactor     .12859        33.649        .13037        .72303E-04
  22  norm          1.7742        1.1597        .67653E-04    .26501E-03
  23  norm          .10000E-03    32.330        .18142E-02** at limit **
  24  Normalizat    1.0463        .19626        .22655E-03    .12019E-03
  25  Prefactor     .87390        .22747        .30055E-03    .24988E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.6798
  Prefactor  = 0.0001
  norm       = 5.12941
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.70656
  Prefactor  = 32.8029
  Prefactor  = 12.7486
  norm       = 5.22037
  Prefactor  = 0.885357
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 31.277
  norm       = 9.27202
  Prefactor  = 10.5083
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 3.37494
  Prefactor  = 0.128589
  norm       = 1.77418
  norm       = 0.000100002
  Normalizat = 1.04632
  Prefactor  = 0.873904
 **********
 **   18 **HESSE 
 **********

 FCN=   6441.392     FROM HESSE     STATUS=OK           413 CALLS     3773 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.680        4.4497        .39647E-05   -1.5024    
   2  Prefactor     .10000E-03    35.878        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.1294        2.3145        .31257E-05   -1.5255    
   4  norm          .10000E-03    1.4140        .18622E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.7182        .34041E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.3779        .24114E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.7066        2.2393        .32069E-05   -1.5274    
   8  Prefactor     32.803        21.924        .27986E-05   -1.4562    
   9  Prefactor     12.749        26.867        .44884E-05   -1.4994    
  10  norm          5.2204        2.4767        .33531E-05   -1.5251    
  11  Prefactor     .88536        55.291        .19285E-03   -1.5520    
  12  Prefactor     .10000E-03    34.595        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.8364        .30601E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.871        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          31.277        18.573        .28658E-05   -1.4589    
  16  norm          9.2720        5.3694        .51844E-05   -1.5099    
  17  Prefactor     10.508        37.212        .49367E-05   -1.5060    
  18  Prefactor     .10000E-03    23.105        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    90.627        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.3749        4.0468        .66917E-05   -1.5341    
  21  Prefactor     .12859        32.882        .13250       -1.5636    
  22  norm          1.7742        1.1596        .27061E-05   -1.5442    
  23  norm          .10000E-03    32.330        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0463        .19631        .90618E-05   -.91495    
  25  Prefactor     .87390        .22767        .12022E-04   -.97059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.47174e-09
Minuit parameter uncertainties:
  1  4.44984
  2  9.30835e-05
  3  2.31458
  4  8.23281e-07
  5  3.56835e-06
  6  1.21385e-06
  7  2.23931
  8  21.9297
  9  26.8926
  10  2.47677
  11  14.006
  12  5.05146e-05
  13  8.10383e-07
  14  8.55658e-05
  15  18.5764
  16  5.36968
  17  37.294
  18  8.78301e-05
  19  0.00142074
  20  4.04712
  21  4.11325
  22  1.1596
  23  0.000564376
  24  0.196446
  25  0.227921
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  3.280e+01  2.193e+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:  8.739e-01  2.279e-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.046e+00  1.964e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.65
Ra Dec: 192.244 48.670
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 5.02e-08 +/- 3.36e-08
Energy Flux (Fixed Index): 1.54e-05 +/- 1.03e-05

TS (Fixed Index): 3.65
Ra Dec: 192.244 48.670
Photon Flux Upper Limit: 1.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/917839/likelihoodResults_325900801_326160001_4FGL_J1248.9+4840_daily_bin334.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) = 6441.38930956
delta logL = 0.00240662740816

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6441.38578069
delta logL = 0.00593549610949

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.142       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5370       1.0000          .0000       10.000    
     3 'Normalizat'    1.0421       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87792       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=   6441.386     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      263 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.126        37.054        .72977E-04    .40532E-03
   2  Index         2.5384        .94243        .72672E-02    .12406E-03
   3  Normalizat    1.0417        .19159        .22697E-03   -.16602E-02
   4  Prefactor     .87841        .23100        .29988E-03   -.18063E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.1262
  Index      = 2.53838
  Normalizat = 1.0417
  Prefactor  = 0.878415
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.126        32.628        .14595E-04   -1.4610    
   2  Index         2.5384        .83006        .29069E-03   -.51476    
   3  Normalizat    1.0417        .19048        .45395E-04   -.91646    
   4  Prefactor     .87841        .22992        .59976E-04   -.96899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.0027e-09
Minuit parameter uncertainties:
  1  32.6475
  2  0.83518
  3  0.1906
  4  0.230173
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917839': 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) = 6441.38577652
delta logL = 0.00593966849829

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  3.013e+01  3.265e+01  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.538e+00  8.352e-01  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.784e-01  2.302e-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.042e+00  1.906e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.65
Ra Dec: 192.244 48.670
Photon Index (Free Index): 2.54 +/- 0.84
Photon Flux (Free Index): 5.28e-08 +/- 4.19e-08
Energy Flux (Free Index): 1.47e-05 +/- 1.16e-05

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/917839/cmap_HighResolution_325900801_326160001_4FGL_J1248.9+4840_daily_bin334.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.35e-03', comment='SUCCESS', photon_flux='5.02e-08', energy_flux2='1.47e-05', photon_flux_error='3.36e-08', dlogl='5.94e-03', energy_flux='1.54e-05', photon_flux2='5.28e-08', job_status='DONE', time_completed='2021-09-06 05:50:17.087252', photon_index_error2='0.84', photon_index2='2.54', ts='3.65', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='1.16e-05', EG='1.05', time_epoch_completed='1630932617.09', return_code='0', job_id='917839', GAL2='0.88', EG2='1.04', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='4.19e-08', ts2='3.65', photon_index='2.45' WHERE bin_id='334' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:50:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 917839: <4FGL_J1248.9+4840_daily_bin334> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin334 192.244 48.67 325900801 326160001 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 :                                   847.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            877 sec.

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

