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


Performing analysis on: 4FGL_J1248.3+5820_daily_bin488
RA = 192.084, Dec = 58.3432
tmin = 365817601, tmax = 366076801
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='910137', job_status='RUN', time_executed='2021-09-06 05:11:04.285213', time_epoch_executed='1630930264.29' WHERE source_name='4FGL J1248.3+5820' and cadence='daily' and bin_id='488'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/910137

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/910137/ft1_4FGL_J1248.3+5820_daily_bin488.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/910137/ft2_4FGL_J1248.3+5820_daily_bin488.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/910137/ft1_4FGL_J1248.3+5820_daily_bin488.fits outfile=/scratch/kocevski/910137/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin488.fits ra=192.084 dec=58.3432 rad=12.0 tmin=365817601.0 tmax=366076801.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.53
user 3.27
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/910137/ft2_4FGL_J1248.3+5820_daily_bin488.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/910137/ft2_4FGL_J1248.3+5820_daily_bin488.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/910137/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin488.fits evtable="EVENTS" outfile="/scratch/kocevski/910137/ft1_filtered_4FGL_J1248.3+5820_daily_bin488.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.53
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/910137/ft1_filtered_4FGL_J1248.3+5820_daily_bin488.fits" evtable="EVENTS" scfile=/scratch/kocevski/910137/ft2_4FGL_J1248.3+5820_daily_bin488.fits sctable="SC_DATA" outfile=/scratch/kocevski/910137/ltcube_365817601_366076801_4FGL_J1248.3+5820_daily_bin488.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/910137/ft2_4FGL_J1248.3+5820_daily_bin488.fits
.....................!
real 11.95
user 11.43
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/910137/ft1_filtered_4FGL_J1248.3+5820_daily_bin488.fits evtable="EVENTS" scfile=/scratch/kocevski/910137/ft2_4FGL_J1248.3+5820_daily_bin488.fits sctable="SC_DATA" expcube=/scratch/kocevski/910137/ltcube_365817601_366076801_4FGL_J1248.3+5820_daily_bin488.fits outfile=/scratch/kocevski/910137/expmap_365817601_366076801_4FGL_J1248.3+5820_daily_bin488.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/910137/ltcube_365817601_366076801_4FGL_J1248.3+5820_daily_bin488.fits
.....................!
real 190.81
user 185.46
sys 4.84

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 219 point sources and 0 extended sources

Setting source of interest to:
4FGL J1248.3+5820 @ 192.084 58.3432

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/910137/ft1_filtered_4FGL_J1248.3+5820_daily_bin488.fits scfile=/scratch/kocevski/910137/ft2_4FGL_J1248.3+5820_daily_bin488.fits outfile=/scratch/kocevski/910137/cmap_365817601_366076801_4FGL_J1248.3+5820_daily_bin488.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.084 yref=58.3432 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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/910137/ft1_filtered_4FGL_J1248.3+5820_daily_bin488.fits scfile=/scratch/kocevski/910137/ft2_4FGL_J1248.3+5820_daily_bin488.fits outfile=/scratch/kocevski/910137/cmap_HighResolution_365817601_366076801_4FGL_J1248.3+5820_daily_bin488.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.084 yref=58.3432 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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/910137/ft1_filtered_4FGL_J1248.3+5820_daily_bin488.fits evtable="EVENTS" scfile=/scratch/kocevski/910137/ft2_4FGL_J1248.3+5820_daily_bin488.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/910137/Model_4FGL_J1248.3+5820_daily_bin488.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/910137/ft1_filtered_4FGL_J1248.3+5820_daily_bin488.fits.....................!
real 56.25
user 54.85
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/910137/ft1_filtered_4FGL_J1248.3+5820_daily_bin488.fits', '/scratch/kocevski/910137/ft2_4FGL_J1248.3+5820_daily_bin488.fits', expMap='/scratch/kocevski/910137/expmap_365817601_366076801_4FGL_J1248.3+5820_daily_bin488.fits', expCube='/scratch/kocevski/910137/ltcube_365817601_366076801_4FGL_J1248.3+5820_daily_bin488.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/910137/Model_4FGL_J1248.3+5820_daily_bin488.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1248.3+5820'

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  3.611e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  1.811e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
366         beta:  4.589e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
367           Eb:  1.135e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/910137/ft1_filtered_4FGL_J1248.3+5820_daily_bin488.fits
Spacecraft file(s): /scratch/kocevski/910137/ft2_4FGL_J1248.3+5820_daily_bin488.fits
Exposure map: /scratch/kocevski/910137/expmap_365817601_366076801_4FGL_J1248.3+5820_daily_bin488.fits
Exposure cube: /scratch/kocevski/910137/ltcube_365817601_366076801_4FGL_J1248.3+5820_daily_bin488.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/910137/Model_4FGL_J1248.3+5820_daily_bin488.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) = 6447.96056471

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8655       1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.303       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0670       1.0000         .10000E-03   10000.    
     5 'norm      '    1.2782       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.0739       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.7687       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15834E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.6642       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.2658       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .21775E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10104E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.095       1.0000         .10000E-03   10000.    
    23 'norm      '    4.7257       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10550E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    28.271       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    4.8620       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .78102       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1426       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6447.958     FROM MIGRAD    STATUS=CONVERGED    890 CALLS     4589 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8657        6.2861        .15452E-05   -.77915E-04
   2  Prefactor     22.303        19.166       -.24914E-06   -.26737E-04
   3  norm          .10000E-03    2.8194       -.21035E-08** at limit **
   4  Prefactor     1.0671        3.8626        .16601E-05   -.64698E-04
   5  norm          1.2782        3.2708        .56473E-06   -.14854E-04
   6  Prefactor     9.0754        7.2711       -.61659E-08   -.12930E-03
   7  Prefactor     .10000E-03    17.266       -.71032E-06** at limit **
   8  norm          1.7688        2.0514        .10819E-06   -.11738E-03
   9  Prefactor     .10001E-03    8.7847       -.91033E-07** at limit **
  10  Prefactor     .10000E-03    49.450       -.39796E-06** at limit **
  11  norm          .10000E-03    1.3025        .30960E-08** at limit **
  12  Prefactor     .10000E-03    4.1925        .82646E-08** at limit **
  13  Prefactor     .10000E-03    2.5744        .35912E-07** at limit **
  14  norm          6.6652        2.4507       -.24224E-07    .69314E-05
  15  Prefactor     .10000E-03    18.512       -.31328E-06** at limit **
  16  norm          2.2659        1.8094        .34537E-07   -.12538E-04
  17  Prefactor     .10000E-03    14.208        .40567E-07** at limit **
  18  Prefactor     .10000E-03    21.363       -.95856E-07** at limit **
  19  norm          .10000E-03    2.0968        .17446E-06** at limit **
  20  Prefactor     .10000E-03    23.465        .16772E-06** at limit **
  21  Prefactor     .10000E-03    17.422        .11750E-06** at limit **
  22  Prefactor     21.096        20.985        .12021E-06   -.23525E-05
  23  norm          4.7260        3.7785        .29539E-07    .24124E-04
  24  Prefactor     .10000E-03    49.114       -.18089E-06** at limit **
  25  Prefactor     .10000E-03    1.5407        .10469E-06** at limit **
  26  Prefactor     28.266        38.634        .15896E-06   -.63728E-05
  27  Prefactor     .10000E-03    3.1700        .89357E-07** at limit **
  28  norm          .10000E-03    23.956        .15202E-06** at limit **
  29  norm          4.8627        3.7145        .85005E-07   -.48195E-04
  30  Prefactor     .10000E-03    67.230        .12705E-05** at limit **
  31  Prefactor     .10000E-03    185.64       -.51370E-06** at limit **
  32  Normalizat    .78088        .15037       -.77798E-06   -.78228E-04
  33  Prefactor     1.1427        .18111       -.27522E-06   -.86669E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.86566
  Prefactor  = 22.3034
  norm       = 0.0001
  Prefactor  = 1.06711
  norm       = 1.2782
  Prefactor  = 9.07537
  Prefactor  = 0.0001
  norm       = 1.76881
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.66521
  Prefactor  = 0.0001
  norm       = 2.26593
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.0964
  norm       = 4.72603
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.2663
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.86271
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Normalizat = 0.780881
  Prefactor  = 1.14275
 **********
 **   18 **HESSE 
 **********

 FCN=   6447.958     FROM HESSE     STATUS=OK           701 CALLS     5290 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8657        6.2680        .30502E-03   -1.5435    
   2  Prefactor     22.303        19.136        .84815E-04   -1.4763    
   3  norm          .10000E-03    2.8195        .13168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0671        3.8544        .28659E-03   -1.5501    
   5  norm          1.2782        3.2109        .20641E-03   -1.5482    
   6  Prefactor     9.0754        7.1643        .13305E-03   -1.5105    
   7  Prefactor     .10000E-03    17.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.7688        2.0292        .11617E-03   -1.5442    
   9  Prefactor     .10001E-03    53.210        .45604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    49.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.3037        .89494E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.1945        .16058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.5932        .12577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.6652        2.4492        .73608E-04   -1.5192    
  15  Prefactor     .10000E-03    18.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.2659        1.8055        .93411E-04   -1.5407    
  17  Prefactor     .10000E-03    14.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    22.171        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.0856        .41939E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    23.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     21.096        20.960        .87207E-04   -1.4789    
  23  norm          4.7260        3.7694        .12537E-03   -1.5273    
  24  Prefactor     .10000E-03    49.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.5722        .97370E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     28.266        38.679        .75348E-04   -1.4644    
  27  Prefactor     .10000E-03    3.1904        .13964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    23.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          4.8627        3.7080        .12923E-03   -1.5267    
  30  Prefactor     .10000E-03    67.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    185.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .78088        .17842        .23149E-03   -1.0078    
  33  Prefactor     1.1427        .21712        .24837E-03   -.88112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65554e-10
Minuit parameter uncertainties:
  1  6.27023
  2  19.1415
  3  3.4142e-07
  4  3.85532
  5  3.21138
  6  7.165
  7  6.09778e-05
  8  2.0293
  9  0.00152082
  10  0.000117969
  11  1.21595e-07
  12  3.09713e-07
  13  3.32954e-06
  14  2.44925
  15  8.59325e-05
  16  1.8055
  17  4.31778e-06
  18  2.77002e-05
  19  5.08776e-06
  20  5.15067e-05
  21  3.25897e-05
  22  20.9674
  23  3.76957
  24  0.000118023
  25  2.63121e-06
  26  38.7134
  27  2.72414e-06
  28  8.0824e-05
  29  3.7082
  30  0.000511167
  31  0.000729386
  32  0.178556
  33  0.217284
Done.

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

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  6.665e+00  2.449e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  1.811e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
366         beta:  4.589e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
367           Eb:  1.135e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
695    Prefactor:  1.143e+00  2.173e-01  0.000e+00  1.000e+01 ( 1.000e+00)
696        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
697        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
694   Normalization:  7.809e-01  1.786e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 48.89
Ra Dec: 192.084 58.343
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 5.88e-08 +/- 2.16e-08
Energy Flux (Fixed Index): 5.88e-05 +/- 2.16e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6447.76308112
delta logL = 0.194959598407

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6447.72225859
delta logL = 0.235782129572

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3212       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5850       1.0000          .0000       5.0000    
     3 'Normalizat'    .79809       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1332       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6447.722     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      213 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3210        2.4525        .39913E-02   -.26235E-03
   2  alpha         1.5849        .28641        .22945       -.26227E-04
   3  Normalizat    .79809        .14249        .43585E-01    .11514E-04
   4  Prefactor     1.1332        .18080        .56394E-01    .32479E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.321
  alpha      = 1.58493
  Normalizat = 0.798092
  Prefactor  = 1.13325
 **********
 **   18 **HESSE 
 **********

 FCN=   6447.722     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3210        2.5956        .75304E-04   -1.5205    
   2  alpha         1.5849        .32483        .94011E-02   -.37474    
   3  Normalizat    .79809        .17012        .22927E-03   -1.0014    
   4  Prefactor     1.1332        .21602        .24937E-03   -.88411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.78568e-12
Minuit parameter uncertainties:
  1  2.59561
  2  0.325893
  3  0.170232
  4  0.216185
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/910137': 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) = 6447.72225857
delta logL = 0.235782155777

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  6.321e+00  2.596e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  1.585e+00  3.259e-01  0.000e+00  5.000e+00 ( 1.000e+00)
366         beta:  4.589e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
367           Eb:  1.135e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
695    Prefactor:  1.133e+00  2.162e-01  0.000e+00  1.000e+01 ( 1.000e+00)
696        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
697        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
694   Normalization:  7.981e-01  1.702e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 49.35
Ra Dec: 192.084 58.343
Photon Index (Free Index): 1.58 +/- 0.33
Photon Flux (Free Index): 4.43e-08 +/- 2.52e-08
Energy Flux (Free Index): 8.22e-05 +/- 5.36e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/910137/cmap_HighResolution_365817601_366076801_4FGL_J1248.3+5820_daily_bin488.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.88e-08', energy_flux2='8.22e-05', photon_flux_error='2.16e-08', dlogl='2.36e-01', energy_flux='5.88e-05', photon_flux2='4.43e-08', job_status='DONE', time_completed='2021-09-06 05:26:59.076384', photon_index_error2='0.33', photon_index2='1.58', ts='48.89', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='5.36e-05', EG='0.78', time_epoch_completed='1630931219.08', return_code='0', job_id='910137', GAL2='1.13', EG2='0.80', return_code2='0', energy_flux_error='2.16e-05', photon_flux_error2='2.52e-08', ts2='49.35', photon_index='1.81' WHERE bin_id='488' AND source_name='4FGL J1248.3+5820' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:26:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 910137: <4FGL_J1248.3+5820_daily_bin488> in cluster <slac> Done

Job <4FGL_J1248.3+5820_daily_bin488> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 05:10:44 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:10:46 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:10:46 2021
Terminated at Mon Sep  6 05:26:59 2021
Results reported at Mon Sep  6 05:26:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.3+5820_daily_bin488 192.084 58.3432 365817601 366076801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1248.3+5820 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   948.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             346.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            975 sec.

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

