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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin500
RA = 192.244, Dec = 48.67
tmin = 368928001, tmax = 369187201
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='919175', job_status='RUN', time_executed='2021-09-06 05:43:50.346757', time_epoch_executed='1630932230.35' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='500'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919175

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919175/ft1_4FGL_J1248.9+4840_daily_bin500.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919175/ft2_4FGL_J1248.9+4840_daily_bin500.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919175/ft1_4FGL_J1248.9+4840_daily_bin500.fits outfile=/scratch/kocevski/919175/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin500.fits ra=192.244 dec=48.67 rad=12.0 tmin=368928001.0 tmax=369187201.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.33
user 3.12
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919175/ft1_filtered_4FGL_J1248.9+4840_daily_bin500.fits" evtable="EVENTS" scfile=/scratch/kocevski/919175/ft2_4FGL_J1248.9+4840_daily_bin500.fits sctable="SC_DATA" outfile=/scratch/kocevski/919175/ltcube_368928001_369187201_4FGL_J1248.9+4840_daily_bin500.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/919175/ft2_4FGL_J1248.9+4840_daily_bin500.fits
.....................!
real 11.91
user 11.55
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919175/ft1_filtered_4FGL_J1248.9+4840_daily_bin500.fits evtable="EVENTS" scfile=/scratch/kocevski/919175/ft2_4FGL_J1248.9+4840_daily_bin500.fits sctable="SC_DATA" expcube=/scratch/kocevski/919175/ltcube_368928001_369187201_4FGL_J1248.9+4840_daily_bin500.fits outfile=/scratch/kocevski/919175/expmap_368928001_369187201_4FGL_J1248.9+4840_daily_bin500.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/919175/ltcube_368928001_369187201_4FGL_J1248.9+4840_daily_bin500.fits
.....................!
real 190.27
user 185.22
sys 4.56

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/919175/ft1_filtered_4FGL_J1248.9+4840_daily_bin500.fits scfile=/scratch/kocevski/919175/ft2_4FGL_J1248.9+4840_daily_bin500.fits outfile=/scratch/kocevski/919175/cmap_368928001_369187201_4FGL_J1248.9+4840_daily_bin500.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/919175/ft1_filtered_4FGL_J1248.9+4840_daily_bin500.fits scfile=/scratch/kocevski/919175/ft2_4FGL_J1248.9+4840_daily_bin500.fits outfile=/scratch/kocevski/919175/cmap_HighResolution_368928001_369187201_4FGL_J1248.9+4840_daily_bin500.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .43361       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.4007       1.0000         .10000E-03   10000.    
     4 'norm      '    1.6488       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.5931       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.460       1.0000         .10000E-03   10000.    
     7 'norm      '    6.3201       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.927       1.0000         .10000E-03   10000.    
    10 'norm      '    4.2882       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.986       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4604       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10385E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.5182       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4854       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10119E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    31.998       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .64232       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3402       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=   6144.384     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     2845 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .43511        4.1388        .33442E-05   -.13660E-03
   2  Prefactor     .10000E-03    7.6287       -.15422E-06** at limit **
   3  norm          7.4001        2.9662       -.64727E-07   -.23277E-03
   4  norm          1.6497        6.4092        .18521E-05   -.59007E-04
   5  Prefactor     9.5893        18.750       -.79670E-06   -.60131E-04
   6  Prefactor     14.458        7.5667       -.57316E-07   -.36153E-04
   7  norm          6.3199        3.1979       -.23598E-07   -.55100E-04
   8  Prefactor     .10000E-03    12.244       -.62925E-07** at limit **
   9  Prefactor     15.929        16.522        .18411E-06   -.70826E-05
  10  norm          4.2881        2.0686       -.58600E-08   -.46166E-04
  11  Prefactor     .10000E-03    10.666        .36313E-06** at limit **
  12  Prefactor     19.927        59.368       -.10437E-05   -.86962E-04
  13  Prefactor     2.4610        14.763        .16110E-05   -.10887E-04
  14  Prefactor     .10000E-03    35.104        .78528E-06** at limit **
  15  norm          .10000E-03    15.130       -.15580E-05** at limit **
  16  norm          5.5181        3.7725        .34148E-07   -.81040E-05
  17  Prefactor     .10000E-03    10.962        .12711E-07** at limit **
  18  Prefactor     1.4791        41.259        .40169E-05   -.66538E-05
  19  Prefactor     .10000E-03    7.9619       -.66354E-07** at limit **
  20  norm          .10000E-03    1.8582       -.11691E-06** at limit **
  21  Prefactor     .10000E-03    19.968        .13837E-06** at limit **
  22  norm          31.998        3.5918        .20605E-07    .68783E-04
  23  norm          .10000E-03    38.410       -.99681E-07** at limit **
  24  Normalizat    .64249        .17806        .71039E-06   -.25857E-03
  25  Prefactor     1.3399        .21960       -.23163E-05   -.80575E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.435106
  Prefactor  = 0.0001
  norm       = 7.40014
  norm       = 1.64972
  Prefactor  = 9.58931
  Prefactor  = 14.4585
  norm       = 6.31986
  Prefactor  = 0.0001
  Prefactor  = 15.9286
  norm       = 4.28813
  Prefactor  = 0.0001
  Prefactor  = 19.9268
  Prefactor  = 2.46103
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.51813
  Prefactor  = 0.0001
  Prefactor  = 1.47908
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 31.9979
  norm       = 0.0001
  Normalizat = 0.642494
  Prefactor  = 1.33989
 **********
 **   18 **HESSE 
 **********

 FCN=   6144.384     FROM HESSE     STATUS=OK           427 CALLS     3272 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .43511        4.1992        .30105E-03   -1.5576    
   2  Prefactor     .10000E-03    7.6421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.4001        2.9682        .81302E-04   -1.5164    
   4  norm          1.6497        6.3406        .32885E-03   -1.5451    
   5  Prefactor     9.5893        18.636        .12938E-03   -1.5089    
   6  Prefactor     14.458        7.5617        .10533E-03   -1.4947    
   7  norm          6.3199        3.1909        .92720E-04   -1.5205    
   8  Prefactor     .10000E-03    12.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.929        16.506        .10036E-03   -1.4910    
  10  norm          4.2881        2.0695        .76174E-04   -1.5294    
  11  Prefactor     .10000E-03    10.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     19.927        59.488        .89592E-04   -1.4815    
  13  Prefactor     2.4610        14.680        .26074E-03   -1.5394    
  14  Prefactor     .10000E-03    35.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    15.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.5181        3.7692        .12177E-03   -1.5238    
  17  Prefactor     .10000E-03    10.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.4791        41.944        .35196E-03   -1.5465    
  19  Prefactor     .10000E-03    7.9641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.8843        .10402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    19.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          31.998        3.5926        .48117E-04   -1.4576    
  23  norm          .10000E-03    38.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .64249        .20897        .29096E-03   -1.0621    
  25  Prefactor     1.3399        .25632        .26822E-03   -.82128    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61156e-10
Minuit parameter uncertainties:
  1  2.70333
  2  2.14556e-05
  3  2.96824
  4  6.34316
  5  18.647
  6  7.56217
  7  3.19097
  8  1.20346e-05
  9  16.5108
  10  2.0695
  11  1.61793e-05
  12  59.6661
  13  12.0255
  14  0.000111911
  15  1.67099e-05
  16  3.76932
  17  1.1698e-05
  18  15.7646
  19  1.99172e-05
  20  6.94459e-06
  21  2.54834e-05
  22  3.59265
  23  6.47279e-05
  24  0.209231
  25  0.256561
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  1.203e-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:  1.340e+00  2.566e-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.425e-01  2.092e-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: 6.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/919175/likelihoodResults_368928001_369187201_4FGL_J1248.9+4840_daily_bin500.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) = 6144.38419381
delta logL = -0.00038771583786

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6144.3838061
delta logL = -7.19410309102e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4498       1.0000          .0000       10.000    
     3 'Normalizat'    .64250       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3399       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=   6144.384     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      214 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.288        .90712E-02** at limit **
   2  Index         2.4494        8.4783        .50000        .23645E-06
   3  Normalizat    .64250        .68360E-02    .65751E-01    .17128E-04
   4  Prefactor     1.3399        .88237E-02    .60653E-01   -.52745E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.44943
  Normalizat = 0.642497
  Prefactor  = 1.33989
 **********
 **   18 **HESSE 
 **********

 FCN=   6144.384     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      247 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    259.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4494        5.5171        .50000       -.53532    
   3  Normalizat    .64250        .19482E-01    .29095E-03   -1.0621    
   4  Prefactor     1.3399        .25179E-01    .26822E-03   -.82129    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.08872e-09
Minuit parameter uncertainties:
  1  2.31431e-05
  2  1027.94
  3  0.0194823
  4  0.0251793
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919175': 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) = 6144.38380609
delta logL = 1.62799551617e-10

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  2.314e-05  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.449e+00  1.028e+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:  1.340e+00  2.518e-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:  6.425e-01  1.948e-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/919175/cmap_HighResolution_368928001_369187201_4FGL_J1248.9+4840_daily_bin500.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.80e-03', job_status='DONE', photon_flux_upper_limit='6.20e-08', time_completed='2021-09-06 05:56:53.271441', job_id='919175', GAL2='1.34', fit_tolerance='1e-08', EG2='0.64', EG='0.64', time_epoch_completed='1630933013.27', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.34', dlogl='1.63e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='500' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:56:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 919175: <4FGL_J1248.9+4840_daily_bin500> in cluster <slac> Done

Job <4FGL_J1248.9+4840_daily_bin500> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 05:40:31 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:40: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:40:32 2021
Terminated at Mon Sep  6 05:56:54 2021
Results reported at Mon Sep  6 05:56:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin500 192.244 48.67 368928001 369187201 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 :                                   779.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            983 sec.

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

