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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin586
RA = 192.244, Dec = 48.67
tmin = 391219201, tmax = 391478401
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='919327', job_status='RUN', time_executed='2021-09-06 05:42:49.306637', time_epoch_executed='1630932169.31' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='586'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919327

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919327/ft1_4FGL_J1248.9+4840_daily_bin586.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919327/ft2_4FGL_J1248.9+4840_daily_bin586.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919327/ft1_4FGL_J1248.9+4840_daily_bin586.fits outfile=/scratch/kocevski/919327/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin586.fits ra=192.244 dec=48.67 rad=12.0 tmin=391219201.0 tmax=391478401.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.34
user 3.15
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919327/ft1_filtered_4FGL_J1248.9+4840_daily_bin586.fits" evtable="EVENTS" scfile=/scratch/kocevski/919327/ft2_4FGL_J1248.9+4840_daily_bin586.fits sctable="SC_DATA" outfile=/scratch/kocevski/919327/ltcube_391219201_391478401_4FGL_J1248.9+4840_daily_bin586.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/919327/ft2_4FGL_J1248.9+4840_daily_bin586.fits
.....................!
real 12.00
user 11.61
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919327/ft1_filtered_4FGL_J1248.9+4840_daily_bin586.fits evtable="EVENTS" scfile=/scratch/kocevski/919327/ft2_4FGL_J1248.9+4840_daily_bin586.fits sctable="SC_DATA" expcube=/scratch/kocevski/919327/ltcube_391219201_391478401_4FGL_J1248.9+4840_daily_bin586.fits outfile=/scratch/kocevski/919327/expmap_391219201_391478401_4FGL_J1248.9+4840_daily_bin586.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/919327/ltcube_391219201_391478401_4FGL_J1248.9+4840_daily_bin586.fits
.....................!
real 190.71
user 185.52
sys 4.73

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/919327/ft1_filtered_4FGL_J1248.9+4840_daily_bin586.fits scfile=/scratch/kocevski/919327/ft2_4FGL_J1248.9+4840_daily_bin586.fits outfile=/scratch/kocevski/919327/cmap_391219201_391478401_4FGL_J1248.9+4840_daily_bin586.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.69
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/919327/ft1_filtered_4FGL_J1248.9+4840_daily_bin586.fits scfile=/scratch/kocevski/919327/ft2_4FGL_J1248.9+4840_daily_bin586.fits outfile=/scratch/kocevski/919327/cmap_HighResolution_391219201_391478401_4FGL_J1248.9+4840_daily_bin586.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/919327/ft1_filtered_4FGL_J1248.9+4840_daily_bin586.fits evtable="EVENTS" scfile=/scratch/kocevski/919327/ft2_4FGL_J1248.9+4840_daily_bin586.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/919327/Model_4FGL_J1248.9+4840_daily_bin586.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/919327/ft1_filtered_4FGL_J1248.9+4840_daily_bin586.fits.....................!
real 52.82
user 51.27
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5037       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.3111       1.0000         .10000E-03   10000.    
     4 'norm      '    7.6422       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.2610       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.0693       1.0000         .10000E-03   10000.    
    10 'norm      '    4.2721       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .65563E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .46562E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    11.030       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.905       1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.300       1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.338       1.0000         .10000E-03   10000.    
    20 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    10.420       1.0000         .10000E-03   10000.    
    23 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .92852       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92782       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=   6544.578     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     2491 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5026        2.6955       -.52356E-06   -.95296E-03
   2  Prefactor     .10000E-03    8.0403        .43892E-07** at limit **
   3  norm          1.3111        1.4511       -.82696E-07   -.46199E-03
   4  norm          7.6429        5.4535        .22766E-07   -.72378E-04
   5  Prefactor     .10000E-03    11.465        .25065E-06** at limit **
   6  Prefactor     .10000E-03    1.1300       -.91157E-10** at limit **
   7  norm          4.2612        1.8425        .10067E-08    .13411E-03
   8  Prefactor     .10000E-03    13.570       -.50010E-06** at limit **
   9  Prefactor     5.0685        11.969       -.33878E-05   -.14666E-03
  10  norm          4.2723        2.1652       -.21738E-07   -.10632E-03
  11  Prefactor     .10240E-03    5.8470        .10402E-05** at limit **
  12  Prefactor     .10000E-03    17.119        .40269E-06** at limit **
  13  Prefactor     .10000E-03    2.7541       -.48198E-08** at limit **
  14  Prefactor     .10402E-03    17.260        .31867E-05** at limit **
  15  norm          11.030        13.441       -.54259E-06   -.52416E-04
  16  norm          .10000E-03    .93586        .14100E-07** at limit **
  17  Prefactor     20.904        23.462       -.12571E-06   -.10884E-04
  18  Prefactor     18.294        12.235       -.26621E-05   -.19537E-04
  19  Prefactor     18.335        21.963        .51280E-06   -.78092E-05
  20  norm          .10000E-03    2.1282        .26634E-06** at limit **
  21  Prefactor     .10000E-03    67.748       -.61584E-05** at limit **
  22  norm          10.420        2.2730       -.22043E-07   -.61699E-04
  23  norm          .10000E-03    192.46       -.10853E-03** at limit **
  24  Normalizat    .92862        .14940        .41603E-06   -.23737E-03
  25  Prefactor     .92770        .18242        .20012E-06   -.11798E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.50257
  Prefactor  = 0.0001
  norm       = 1.31108
  norm       = 7.64288
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.2612
  Prefactor  = 0.0001
  Prefactor  = 5.06851
  norm       = 4.27226
  Prefactor  = 0.000102398
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000104019
  norm       = 11.0295
  norm       = 0.0001
  Prefactor  = 20.9044
  Prefactor  = 18.2939
  Prefactor  = 18.335
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.4195
  norm       = 0.0001
  Normalizat = 0.928617
  Prefactor  = 0.927696
 **********
 **   18 **HESSE 
 **********

 FCN=   6544.578     FROM HESSE     STATUS=OK           439 CALLS     2930 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5026        2.6893        .16942E-03   -1.5463    
   2  Prefactor     .10000E-03    8.0581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.3111        1.4318        .98484E-04   -1.5479    
   4  norm          7.6429        5.4503        .14506E-03   -1.5155    
   5  Prefactor     .10000E-03    11.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.1314        .83973E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.2612        1.8438        .70321E-04   -1.5295    
   8  Prefactor     .10000E-03    13.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.0685        11.976        .17858E-03   -1.5258    
  10  norm          4.2723        2.1636        .81973E-04   -1.5295    
  11  Prefactor     .10240E-03    5.4756        .64475E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.7643        .13110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10402E-03    166.71        .61002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.030        13.443        .12063E-03   -1.5044    
  16  norm          .10000E-03    .93824        .76412E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.904        23.451        .87602E-04   -1.4793    
  18  Prefactor     18.294        12.206        .93626E-04   -1.4852    
  19  Prefactor     18.335        21.953        .93530E-04   -1.4851    
  20  norm          .10000E-03    2.1887        .22959E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    68.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          10.420        2.2740        .54441E-04   -1.5062    
  23  norm          .10000E-03    191.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .92862        .17339        .22147E-03   -.95462    
  25  Prefactor     .92770        .21221        .27697E-03   -.95180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3058e-08
Minuit parameter uncertainties:
  1  2.68949
  2  1.09243e-05
  3  1.43187
  4  5.45067
  5  4.96914e-06
  6  1.88481e-07
  7  1.84387
  8  4.82788e-06
  9  11.9814
  10  2.16362
  11  0.00724794
  12  2.2044e-06
  13  4.16054e-07
  14  0.0519116
  15  13.4467
  16  2.41395e-07
  17  23.4618
  18  12.2077
  19  21.9626
  20  3.6225e-05
  21  0.000156868
  22  2.27402
  23  0.000529467
  24  0.173495
  25  0.212396
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  4.828e-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:  9.277e-01  2.124e-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:  9.286e-01  1.735e-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.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/919327/likelihoodResults_391219201_391478401_4FGL_J1248.9+4840_daily_bin586.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) = 6544.5779327
delta logL = -0.000348723061506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6544.57758753
delta logL = -3.55596239388e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15057E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3945       1.0000          .0000       10.000    
     3 'Normalizat'    .92828       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92815       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6544.555     FROM MIGRAD    STATUS=FAILED       205 CALLS      355 TOTAL
                     EDM=   .50E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5006        6895.7        .18142E-01    .16361E-01
   2  Index         1.3818        9.0696        .33591        .10155E-04
   3  Normalizat    .92967        .10815        .22147E-03   -.18546E-03
   4  Prefactor     .92368        .22359        .27697E-03   -.71545E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6544.555     FROM SIMPLEX   STATUS=UNCHANGED     92 CALLS      447 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5006        6895.7        .58234E-03    .16361E-01
   2  Index         1.3818        9.0696        .30865E-02    .10155E-04
   3  Normalizat    .92967        .10815        .12007E-04   -.18546E-03
   4  Prefactor     .92368        .22359        .85944E-05   -.71545E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6544.555     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      481 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5012        22.950        .36232E-02   -.46338E-04
   2  Index         1.3818        1.2376        .18511E-01   -.44041E-04
   3  Normalizat    .92967        .16819        .88589E-05   -.16760E-03
   4  Prefactor     .92368        .21208        .11079E-04   -.40842E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.50117
  Index      = 1.38176
  Normalizat = 0.929665
  Prefactor  = 0.923683
 **********
 **   18 **HESSE 
 **********

 FCN=   6544.555     FROM HESSE     STATUS=OK            27 CALLS      508 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5012        24.240        .14493E-03   -1.5334    
   2  Index         1.3818        1.2733        .74044E-03   -.80907    
   3  Normalizat    .92967        .16829        .17718E-05   -.95425    
   4  Prefactor     .92368        .21223        .22157E-05   -.95318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.486e-10
Minuit parameter uncertainties:
  1  18.4351
  2  1.30412
  3  0.168381
  4  0.212419
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919327': 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) = 6544.55509276
delta logL = 0.0224912115864

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  3.501e+00  1.844e+01  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  1.382e+00  1.304e+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:  9.237e-01  2.124e-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:  9.297e-01  1.684e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/919327/cmap_HighResolution_391219201_391478401_4FGL_J1248.9+4840_daily_bin586.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.17e-03', job_status='DONE', photon_flux_upper_limit='5.38e-08', time_completed='2021-09-06 05:55:50.328178', job_id='919327', GAL2='0.92', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1630932950.33', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='2.25e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='586' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:55:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 919327: <4FGL_J1248.9+4840_daily_bin586> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin586 192.244 48.67 391219201 391478401 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 :                                   777.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            913 sec.

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

