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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin836
RA = 192.244, Dec = 48.67
tmin = 456019201, tmax = 456278401
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='920861', job_status='RUN', time_executed='2021-09-06 05:49:01.972615', time_epoch_executed='1630932541.97' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='836'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/920861

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/920861/ft1_4FGL_J1248.9+4840_daily_bin836.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/920861/ft2_4FGL_J1248.9+4840_daily_bin836.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/920861/ft1_4FGL_J1248.9+4840_daily_bin836.fits outfile=/scratch/kocevski/920861/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin836.fits ra=192.244 dec=48.67 rad=12.0 tmin=456019201.0 tmax=456278401.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 6.94
user 6.70
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/920861/ft1_filtered_4FGL_J1248.9+4840_daily_bin836.fits evtable="EVENTS" scfile=/scratch/kocevski/920861/ft2_4FGL_J1248.9+4840_daily_bin836.fits sctable="SC_DATA" expcube=/scratch/kocevski/920861/ltcube_456019201_456278401_4FGL_J1248.9+4840_daily_bin836.fits outfile=/scratch/kocevski/920861/expmap_456019201_456278401_4FGL_J1248.9+4840_daily_bin836.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/920861/ltcube_456019201_456278401_4FGL_J1248.9+4840_daily_bin836.fits
.....................!
real 193.21
user 187.30
sys 5.53

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/920861/ft1_filtered_4FGL_J1248.9+4840_daily_bin836.fits scfile=/scratch/kocevski/920861/ft2_4FGL_J1248.9+4840_daily_bin836.fits outfile=/scratch/kocevski/920861/cmap_456019201_456278401_4FGL_J1248.9+4840_daily_bin836.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/920861/ft1_filtered_4FGL_J1248.9+4840_daily_bin836.fits scfile=/scratch/kocevski/920861/ft2_4FGL_J1248.9+4840_daily_bin836.fits outfile=/scratch/kocevski/920861/cmap_HighResolution_456019201_456278401_4FGL_J1248.9+4840_daily_bin836.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/920861/ft1_filtered_4FGL_J1248.9+4840_daily_bin836.fits evtable="EVENTS" scfile=/scratch/kocevski/920861/ft2_4FGL_J1248.9+4840_daily_bin836.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/920861/Model_4FGL_J1248.9+4840_daily_bin836.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/920861/ft1_filtered_4FGL_J1248.9+4840_daily_bin836.fits.....................!
real 43.60
user 42.15
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .98251       1.0000         .10000E-03   10000.    
     4 'norm      '    .10113E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .81961E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9827       1.0000         .10000E-03   10000.    
     7 'norm      '    1.8258       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10437E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10615E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.3662       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.7021       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.0191       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.573       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.418       1.0000         .10000E-03   10000.    
    15 'norm      '    6.0049       1.0000         .10000E-03   10000.    
    16 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .26037E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.6623       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.6687       1.0000         .10000E-03   10000.    
    20 'norm      '    .10162E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.4770       1.0000         .10000E-03   10000.    
    22 'norm      '    9.6089       1.0000         .10000E-03   10000.    
    23 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2439       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .73438       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=   4780.277     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     2986 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.1407        .77700E-07** at limit **
   2  Prefactor     .10000E-03    34.638       -.39318E-07** at limit **
   3  norm          .98283        2.1881        .22808E-06    .23240E-04
   4  norm          .10000E-03    8.3842        .39284E-07** at limit **
   5  Prefactor     .10017E-03    34.137        .25224E-05** at limit **
   6  Prefactor     2.9845        6.0568        .29739E-05    .35685E-04
   7  norm          1.8260        1.9596       -.89640E-07   -.35977E-04
   8  Prefactor     .10000E-03    22.180       -.47107E-08** at limit **
   9  Prefactor     .10000E-03    99.103        .44678E-06** at limit **
  10  norm          4.3658        2.8664        .11576E-07   -.96065E-04
  11  Prefactor     3.7023        7.5421       -.34139E-06   -.14591E-04
  12  Prefactor     5.0296        78.505        .89763E-06   -.71523E-05
  13  Prefactor     11.566        13.425       -.75028E-08   -.14183E-04
  14  Prefactor     15.430        23.882        .96870E-06   -.10457E-05
  15  norm          6.0050        10.742        .12425E-06   -.12996E-04
  16  norm          .10000E-03    2.1714       -.16948E-06** at limit **
  17  Prefactor     .10000E-03    88.215        .66276E-05** at limit **
  18  Prefactor     2.6608        41.697        .24980E-05   -.67662E-04
  19  Prefactor     1.5560        358.81        .18199E-04   -.16778E-04
  20  norm          .10000E-03    4.9998        .19356E-06** at limit **
  21  Prefactor     3.4414        562.71        .19097E-04    .48853E-06
  22  norm          9.6091        2.7527       -.15814E-06   -.58556E-03
  23  norm          .10000E-03    101.37       -.46667E-06** at limit **
  24  Normalizat    1.2440        .19824       -.10380E-05   -.34547E-03
  25  Prefactor     .73411        .22641       -.95268E-06   -.22876E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.982831
  norm       = 0.0001
  Prefactor  = 0.000100172
  Prefactor  = 2.98449
  norm       = 1.82603
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.36578
  Prefactor  = 3.70229
  Prefactor  = 5.02961
  Prefactor  = 11.5657
  Prefactor  = 15.43
  norm       = 6.00495
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 2.66081
  Prefactor  = 1.55598
  norm       = 0.0001
  Prefactor  = 3.44142
  norm       = 9.60912
  norm       = 0.0001
  Normalizat = 1.24401
  Prefactor  = 0.734106
 **********
 **   18 **HESSE 
 **********

 FCN=   4780.277     FROM HESSE     STATUS=OK           433 CALLS     3419 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.2026        .11954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    34.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .98283        1.9799        .14494E-02   -1.5510    
   4  norm          .10000E-03    8.4606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10017E-03    302.84        .74010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.9845        6.0184        .11612E-02   -1.5362    
   7  norm          1.8260        1.9633        .96778E-04   -1.5438    
   8  Prefactor     .10000E-03    22.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    101.95        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.3658        2.8649        .91824E-04   -1.5290    
  11  Prefactor     3.7023        7.4700        .20989E-03   -1.5323    
  12  Prefactor     5.0296        78.244        .17949E-03   -1.5259    
  13  Prefactor     11.566        13.402        .11776E-03   -1.5028    
  14  Prefactor     15.430        23.840        .51001E-03   -1.4922    
  15  norm          6.0050        10.725        .16386E-03   -1.5218    
  16  norm          .10000E-03    2.1799        .99490E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    85.838        .21449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.6608        41.974        .12490E-02   -1.5382    
  19  Prefactor     1.5560        352.03        .32639E-03   -1.5458    
  20  norm          .10000E-03    5.0925        .30064E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.4414        573.73        .21686E-03   -1.5337    
  22  norm          9.6091        2.7447        .58069E-04   -1.5088    
  23  norm          .10000E-03    101.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2440        .22340        .21354E-03   -.85253    
  25  Prefactor     .73411        .25940        .32093E-03   -1.0220    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.46582e-10
Minuit parameter uncertainties:
  1  8.73439e-06
  2  4.7715e-05
  3  1.98004
  4  3.66584e-06
  5  0.0145116
  6  6.01966
  7  1.96341
  8  5.63087e-06
  9  0.000604667
  10  2.86501
  11  7.47184
  12  39.737
  13  13.405
  14  23.8548
  15  10.7281
  16  7.25708e-06
  17  0.000800039
  18  21.1534
  19  47.0894
  20  7.06639e-06
  21  89.757
  22  2.74474
  23  3.74783e-05
  24  0.223571
  25  0.259827
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  5.631e-06  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:  7.341e-01  2.598e-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.244e+00  2.236e-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: 9.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/920861/likelihoodResults_456019201_456278401_4FGL_J1248.9+4840_daily_bin836.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) = 4780.2776402
delta logL = -0.000214142902223

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4780.27742622
delta logL = -1.62658579939e-07

Fit tolerance = 1e-08

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

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

 FCN=   4780.277     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      247 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.6363        .90712E-02** at limit **
   2  Index         3.3367        7.1029        .50000        .28831E-05
   3  Normalizat    1.2440        .22440E-02    .33891E-01    .26828E-04
   4  Prefactor     .73411        .26760E-02    .72513E-01    .34681E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.33672
  Normalizat = 1.24401
  Prefactor  = 0.734107
 **********
 **   18 **HESSE 
 **********

 FCN=   4780.277     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      278 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1262.4        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.3367        8.2896        .50000       -.33912    
   3  Normalizat    1.2440        .40079E-01    .21354E-03   -.85253    
   4  Prefactor     .73411        .47491E-01    .32093E-03   -1.0220    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.82307e-06
Minuit parameter uncertainties:
  1  9.69246e-05
  2  2212.13
  3  0.0400795
  4  0.0474939
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/920861': 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) = 4780.27742621
delta logL = -1.54168446898e-07

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  9.692e-05  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  3.337e+00  2.212e+03  0.000e+00  1.000e+01 (-1.000e+00)
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  7.341e-01  4.749e-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:  1.244e+00  4.008e-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/920861/cmap_HighResolution_456019201_456278401_4FGL_J1248.9+4840_daily_bin836.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.22e-03', job_status='DONE', photon_flux_upper_limit='9.32e-08', time_completed='2021-09-06 06:00:27.559229', job_id='920861', GAL2='0.73', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1630933227.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='-1.54e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='836' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:00:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 920861: <4FGL_J1248.9+4840_daily_bin836> in cluster <slac> Done

Job <4FGL_J1248.9+4840_daily_bin836> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 05:45:32 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:45:33 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:45:33 2021
Terminated at Mon Sep  6 06:00:28 2021
Results reported at Mon Sep  6 06:00:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin836 192.244 48.67 456019201 456278401 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 :                                   681.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            896 sec.

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

