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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin343
RA = 192.244, Dec = 48.67
tmin = 328233601, tmax = 328492801
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='917853', job_status='RUN', time_executed='2021-09-06 05:35:52.243519', time_epoch_executed='1630931752.24' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='343'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917853

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917853/ft1_4FGL_J1248.9+4840_daily_bin343.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917853/ft2_4FGL_J1248.9+4840_daily_bin343.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917853/ft1_4FGL_J1248.9+4840_daily_bin343.fits outfile=/scratch/kocevski/917853/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin343.fits ra=192.244 dec=48.67 rad=12.0 tmin=328233601.0 tmax=328492801.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.90
user 3.65
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917853/ft1_filtered_4FGL_J1248.9+4840_daily_bin343.fits evtable="EVENTS" scfile=/scratch/kocevski/917853/ft2_4FGL_J1248.9+4840_daily_bin343.fits sctable="SC_DATA" expcube=/scratch/kocevski/917853/ltcube_328233601_328492801_4FGL_J1248.9+4840_daily_bin343.fits outfile=/scratch/kocevski/917853/expmap_328233601_328492801_4FGL_J1248.9+4840_daily_bin343.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/917853/ltcube_328233601_328492801_4FGL_J1248.9+4840_daily_bin343.fits
.....................!
real 190.86
user 185.48
sys 5.01

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/917853/ft1_filtered_4FGL_J1248.9+4840_daily_bin343.fits scfile=/scratch/kocevski/917853/ft2_4FGL_J1248.9+4840_daily_bin343.fits outfile=/scratch/kocevski/917853/cmap_328233601_328492801_4FGL_J1248.9+4840_daily_bin343.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/917853/ft1_filtered_4FGL_J1248.9+4840_daily_bin343.fits scfile=/scratch/kocevski/917853/ft2_4FGL_J1248.9+4840_daily_bin343.fits outfile=/scratch/kocevski/917853/cmap_HighResolution_328233601_328492801_4FGL_J1248.9+4840_daily_bin343.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.57
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.373       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.8089       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .57693E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    1.3860       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.3389       1.0000         .10000E-03   10000.    
    12 'Prefactor '    70.584       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16130E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7905       1.0000         .10000E-03   10000.    
    15 'norm      '    7.7100       1.0000         .10000E-03   10000.    
    16 'norm      '    3.5329       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.922       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.727       1.0000         .10000E-03   10000.    
    22 'norm      '    2.4391       1.0000         .10000E-03   10000.    
    23 'norm      '    10.597       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .78661       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3424       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=   7135.982     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2918 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.373        5.7732       -.13646E-07   -.16203E-03
   2  Prefactor     .10000E-03    12.316       -.24183E-06** at limit **
   3  norm          4.8092        2.4687        .24559E-07   -.75164E-04
   4  norm          .10000E-03    4.3277       -.31810E-07** at limit **
   5  Prefactor     .10000E-03    22.334       -.41497E-07** at limit **
   6  Prefactor     .34394E-01    3.6601        .25061E-06   -.25184E-03
   7  norm          1.3867        1.3733       -.16968E-07   -.38468E-03
   8  Prefactor     .10000E-03    17.504        .17293E-06** at limit **
   9  Prefactor     .10000E-03    10.319       -.26416E-06** at limit **
  10  norm          .10000E-03    .90406       -.85422E-08** at limit **
  11  Prefactor     6.3370        11.248        .52290E-05    .11610E-04
  12  Prefactor     70.598        51.187        .15882E-06    .46213E-04
  13  Prefactor     .10010E-03    5.6886        .11550E-05** at limit **
  14  Prefactor     1.7919        82.817       -.10401E-04   -.50248E-04
  15  norm          7.7096        7.6346       -.48294E-07    .57386E-05
  16  norm          3.5324        3.1566        .47334E-07   -.16520E-04
  17  Prefactor     12.923        24.374       -.66078E-07   -.58578E-05
  18  Prefactor     .10000E-03    4.5697       -.11474E-06** at limit **
  19  Prefactor     .10000E-03    19.987       -.14225E-06** at limit **
  20  norm          .10000E-03    .97821       -.42598E-07** at limit **
  21  Prefactor     22.710        40.867       -.27635E-06   -.49179E-04
  22  norm          2.4390        1.3554        .25479E-07   -.19171E-04
  23  norm          10.675        112.38        .22865E-05    .59658E-04
  24  Normalizat    .78664        .15932        .96512E-06   -.16107E-03
  25  Prefactor     1.3424        .19578       -.11968E-05   -.35451E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.3729
  Prefactor  = 0.0001
  norm       = 4.80922
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0343943
  norm       = 1.38669
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.33703
  Prefactor  = 70.5984
  Prefactor  = 0.000100097
  Prefactor  = 1.79191
  norm       = 7.70959
  norm       = 3.53243
  Prefactor  = 12.9233
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.71
  norm       = 2.43898
  norm       = 10.6747
  Normalizat = 0.786644
  Prefactor  = 1.34241
 **********
 **   18 **HESSE 
 **********

 FCN=   7135.982     FROM HESSE     STATUS=OK           437 CALLS     3355 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.373        5.7721        .70425E-04   -1.4569    
   2  Prefactor     .10000E-03    12.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.8092        2.4706        .89938E-04   -1.5269    
   4  norm          .10000E-03    4.3983        .17154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .34394E-01    3.6823        .49178E-01   -1.5671    
   7  norm          1.3867        1.3761        .94028E-04   -1.5472    
   8  Prefactor     .10000E-03    17.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .92446        .78391E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.3370        11.332        .79712E-03   -1.5204    
  12  Prefactor     70.598        51.245        .47781E-04   -1.4026    
  13  Prefactor     .10010E-03    32.516        .37679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.7919        83.709        .31259E-03   -1.5440    
  15  norm          7.7096        7.6374        .14442E-03   -1.5153    
  16  norm          3.5324        3.1497        .13511E-03   -1.5332    
  17  Prefactor     12.923        24.334        .11143E-03   -1.4989    
  18  Prefactor     .10000E-03    4.5778        .17634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    20.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .98319        .81574E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     22.710        40.985        .84022E-04   -1.4755    
  22  norm          2.4390        1.3505        .70516E-04   -1.5396    
  23  norm          10.675        112.74        .12308E-03   -1.5054    
  24  Normalizat    .78664        .18585        .26038E-03   -1.0057    
  25  Prefactor     1.3424        .22849        .26360E-03   -.82055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23244e-09
Minuit parameter uncertainties:
  1  5.77221
  2  4.05979e-06
  3  2.47063
  4  1.2659e-07
  5  1.74564e-05
  6  0.710769
  7  1.37613
  8  1.54631e-05
  9  4.48893e-05
  10  1.63044e-07
  11  11.3361
  12  51.2773
  13  0.00355318
  14  24.5306
  15  7.63836
  16  3.1498
  17  24.3524
  18  6.38715e-07
  19  2.97073e-05
  20  2.56868e-07
  21  41.0357
  22  1.35052
  23  69.5488
  24  0.186001
  25  0.228658
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  1.546e-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.342e+00  2.287e-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:  7.866e-01  1.860e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/917853/likelihoodResults_328233601_328492801_4FGL_J1248.9+4840_daily_bin343.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) = 7135.98261785
delta logL = -0.000270127900876

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7135.98234777
delta logL = -4.18167473981e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4838       1.0000          .0000       10.000    
     3 'Normalizat'    .78657       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3425       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=   7135.982     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      246 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    6576.1        .18142E-02** at limit **
   2  Index         2.5215        6.2347        .50000       -.19320E-04
   3  Normalizat    .78664        .73415E-01    .26037E-03   -.13562E-03
   4  Prefactor     1.3424        .94625E-01    .26361E-03   -.11575E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Index      = 2.52152
  Normalizat = 0.786645
  Prefactor  = 1.34241
 **********
 **   18 **HESSE 
 **********

 FCN=   7135.982     FROM HESSE     STATUS=OK            29 CALLS      275 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    22.597        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5215        6.2601        .50000       -.51864    
   3  Normalizat    .78664        .17557        .10415E-04   -1.0057    
   4  Prefactor     1.3424        .22651        .52721E-04   -.82055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.66904e-10
Minuit parameter uncertainties:
  1  0.0008226
  2  4.6663
  3  0.175693
  4  0.226681
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917853': 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) = 7135.98234742
delta logL = 2.98680788546e-07

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  8.226e-04  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.522e+00  4.666e+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.342e+00  2.267e-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:  7.866e-01  1.757e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/917853/cmap_HighResolution_328233601_328492801_4FGL_J1248.9+4840_daily_bin343.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.58e-03', job_status='DONE', photon_flux_upper_limit='5.91e-08', time_completed='2021-09-06 05:50:16.591952', job_id='917853', GAL2='1.34', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1630932616.59', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.34', dlogl='2.99e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='343' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:50:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 917853: <4FGL_J1248.9+4840_daily_bin343> in cluster <slac> Done

Job <4FGL_J1248.9+4840_daily_bin343> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 05:35:41 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:35:42 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:42 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_bin343 192.244 48.67 328233601 328492801 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 :                                   857.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            876 sec.

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

