/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 160 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 = 7484
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1248.3+5820_daily_bin55
RA = 192.084, Dec = 58.3432
tmin = 253584001, tmax = 253843201
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='907045', job_status='RUN', time_executed='2021-09-06 05:03:48.982200', time_epoch_executed='1630929828.98' WHERE source_name='4FGL J1248.3+5820' and cadence='daily' and bin_id='55'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/907045

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/907045/ft1_4FGL_J1248.3+5820_daily_bin55.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/907045/ft2_4FGL_J1248.3+5820_daily_bin55.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/907045/ft1_4FGL_J1248.3+5820_daily_bin55.fits outfile=/scratch/kocevski/907045/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin55.fits ra=192.084 dec=58.3432 rad=12.0 tmin=253584001.0 tmax=253843201.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 1.44
user 1.25
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/907045/ft2_4FGL_J1248.3+5820_daily_bin55.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/907045/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin55.fits evtable="EVENTS" outfile="/scratch/kocevski/907045/ft1_filtered_4FGL_J1248.3+5820_daily_bin55.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/907045/ft1_filtered_4FGL_J1248.3+5820_daily_bin55.fits" evtable="EVENTS" scfile=/scratch/kocevski/907045/ft2_4FGL_J1248.3+5820_daily_bin55.fits sctable="SC_DATA" outfile=/scratch/kocevski/907045/ltcube_253584001_253843201_4FGL_J1248.3+5820_daily_bin55.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/907045/ft2_4FGL_J1248.3+5820_daily_bin55.fits
.....................!
real 12.47
user 12.13
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/907045/ft1_filtered_4FGL_J1248.3+5820_daily_bin55.fits evtable="EVENTS" scfile=/scratch/kocevski/907045/ft2_4FGL_J1248.3+5820_daily_bin55.fits sctable="SC_DATA" expcube=/scratch/kocevski/907045/ltcube_253584001_253843201_4FGL_J1248.3+5820_daily_bin55.fits outfile=/scratch/kocevski/907045/expmap_253584001_253843201_4FGL_J1248.3+5820_daily_bin55.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/907045/ltcube_253584001_253843201_4FGL_J1248.3+5820_daily_bin55.fits
.....................!
real 191.80
user 186.88
sys 4.57

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/907045/ft1_filtered_4FGL_J1248.3+5820_daily_bin55.fits scfile=/scratch/kocevski/907045/ft2_4FGL_J1248.3+5820_daily_bin55.fits outfile=/scratch/kocevski/907045/cmap_253584001_253843201_4FGL_J1248.3+5820_daily_bin55.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.81
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/907045/ft1_filtered_4FGL_J1248.3+5820_daily_bin55.fits scfile=/scratch/kocevski/907045/ft2_4FGL_J1248.3+5820_daily_bin55.fits outfile=/scratch/kocevski/907045/cmap_HighResolution_253584001_253843201_4FGL_J1248.3+5820_daily_bin55.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.87
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/907045/ft1_filtered_4FGL_J1248.3+5820_daily_bin55.fits', '/scratch/kocevski/907045/ft2_4FGL_J1248.3+5820_daily_bin55.fits', expMap='/scratch/kocevski/907045/expmap_253584001_253843201_4FGL_J1248.3+5820_daily_bin55.fits', expCube='/scratch/kocevski/907045/ltcube_253584001_253843201_4FGL_J1248.3+5820_daily_bin55.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/907045/Model_4FGL_J1248.3+5820_daily_bin55.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/907045/ft1_filtered_4FGL_J1248.3+5820_daily_bin55.fits
Spacecraft file(s): /scratch/kocevski/907045/ft2_4FGL_J1248.3+5820_daily_bin55.fits
Exposure map: /scratch/kocevski/907045/expmap_253584001_253843201_4FGL_J1248.3+5820_daily_bin55.fits
Exposure cube: /scratch/kocevski/907045/ltcube_253584001_253843201_4FGL_J1248.3+5820_daily_bin55.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/907045/Model_4FGL_J1248.3+5820_daily_bin55.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) = 4685.33487488

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10445E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.416       1.0000         .10000E-03   10000.    
     3 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5792       1.0000         .10000E-03   10000.    
     5 'norm      '    1.8417       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.197       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10320E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.6370       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.8685       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.0492       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.6622       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .23853       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.710       1.0000         .10000E-03   10000.    
    23 'norm      '    2.5325       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.7811       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1812       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0085       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=   4685.313     FROM MIGRAD    STATUS=CONVERGED    910 CALLS     4569 TOTAL
                     EDM=   .75E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0836       -.53258E-07** at limit **
   2  Prefactor     31.416        27.211        .16430E-07   -.17172E-04
   3  norm          .10000E-03    13.742        .46037E-06** at limit **
   4  Prefactor     1.5794        4.1629        .72369E-06   -.52560E-06
   5  norm          1.8352        7.0614        .16580E-05    .15801E-04
   6  Prefactor     10.210        13.768       -.76193E-06   -.73762E-04
   7  Prefactor     .10000E-03    17.141        .24175E-06** at limit **
   8  norm          1.6373        2.2084        .16260E-06   -.21707E-04
   9  Prefactor     .10000E-03    23.126       -.84187E-06** at limit **
  10  Prefactor     .10000E-03    26.517       -.19611E-06** at limit **
  11  norm          7.8684        8.5712        .77527E-07   -.12465E-04
  12  Prefactor     .10000E-03    15.791       -.52770E-06** at limit **
  13  Prefactor     .10000E-03    9.7224       -.49732E-07** at limit **
  14  norm          4.0477        2.7447        .35610E-07   -.13900E-04
  15  Prefactor     9.6637        19.056        .19248E-06   -.70379E-05
  16  norm          .10000E-03    .79622        .20569E-07** at limit **
  17  Prefactor     .10000E-03    102.51        .35938E-05** at limit **
  18  Prefactor     .10000E-03    9.3777        .74388E-07** at limit **
  19  norm          .23600        2.2453        .35940E-06   -.24509E-03
  20  Prefactor     .10000E-03    27.431        .45517E-06** at limit **
  21  Prefactor     .10000E-03    15.239       -.65928E-06** at limit **
  22  Prefactor     17.636        32.367       -.14951E-05    .31297E-04
  23  norm          2.5491        8.2631        .26909E-05    .46280E-04
  24  Prefactor     .10000E-03    47.949        .17447E-05** at limit **
  25  Prefactor     4.7828        5.1089        .11723E-06   -.19084E-04
  26  Prefactor     .10000E-03    91.825       -.34764E-05** at limit **
  27  Prefactor     .10000E-03    5.7139       -.20987E-07** at limit **
  28  norm          .10000E-03    50.529       -.10635E-05** at limit **
  29  norm          .10000E-03    2.4814        .56489E-07** at limit **
  30  Prefactor     .10000E-03    18.041        .77262E-06** at limit **
  31  Prefactor     .10001E-03    475.83       -.12487E-04** at limit **
  32  Normalizat    1.1809        .20280       -.14693E-05   -.17301E-04
  33  Prefactor     1.0089        .23667        .69567E-06   -.93089E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 31.4157
  norm       = 0.0001
  Prefactor  = 1.57937
  norm       = 1.83521
  Prefactor  = 10.21
  Prefactor  = 0.0001
  norm       = 1.63729
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.86838
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.0477
  Prefactor  = 9.66374
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.236
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.6361
  norm       = 2.54907
  Prefactor  = 0.0001
  Prefactor  = 4.78277
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Normalizat = 1.1809
  Prefactor  = 1.00885
 **********
 **   18 **HESSE 
 **********

 FCN=   4685.313     FROM HESSE     STATUS=OK           691 CALLS     5260 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.2029        .17781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     31.416        27.202        .71486E-04   -1.4586    
   3  norm          .10000E-03    13.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5794        4.1404        .21888E-03   -1.5457    
   5  norm          1.8352        6.8702        .27118E-03   -1.5437    
   6  Prefactor     10.210        13.413        .12548E-03   -1.5069    
   7  Prefactor     .10000E-03    17.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.6373        2.1869        .11282E-03   -1.5452    
   9  Prefactor     .10000E-03    23.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    26.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.8684        8.5608        .14295E-03   -1.5147    
  12  Prefactor     .10000E-03    15.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.9688        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.0477        2.7325        .90151E-04   -1.5306    
  15  Prefactor     9.6637        19.059        .12892E-03   -1.5086    
  16  norm          .10000E-03    .79917        .59644E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    103.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.4367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .23600        4.3823        .19804E-02   -1.5611    
  20  Prefactor     .10000E-03    27.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     17.636        32.404        .95173E-04   -1.4868    
  23  norm          2.5491        8.2431        .24497E-03   -1.5389    
  24  Prefactor     .10000E-03    48.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.7828        5.1124        .15365E-03   -1.5271    
  26  Prefactor     .10000E-03    92.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    5.7227        .15974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    50.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    2.4951        .10530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    18.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10001E-03    481.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1809        .24176        .22725E-03   -.87195    
  33  Prefactor     1.0089        .28409        .29601E-03   -.92435    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39646e-08
Minuit parameter uncertainties:
  1  4.38836e-06
  2  27.2127
  3  1.93089e-05
  4  4.14113
  5  6.87312
  6  13.4171
  7  2.95682e-05
  8  2.18696
  9  2.95824e-05
  10  6.45781e-06
  11  8.5621
  12  2.25311e-05
  13  7.01938e-06
  14  2.73263
  15  19.0707
  16  4.16834e-07
  17  0.000516802
  18  8.49835e-06
  19  2.03369
  20  3.71907e-05
  21  4.15397e-05
  22  32.4367
  23  8.24677
  24  0.000128061
  25  5.1129
  26  0.000384533
  27  2.64207e-06
  28  0.000100151
  29  1.66098e-06
  30  4.6014e-05
  31  0.00367282
  32  0.241992
  33  0.284508
Done.

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

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  4.048e+00  2.733e+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.009e+00  2.845e-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:  1.181e+00  2.420e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.97
Ra Dec: 192.084 58.343
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 3.57e-08 +/- 2.41e-08
Energy Flux (Fixed Index): 3.57e-05 +/- 2.41e-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) = 4685.1889143
delta logL = 0.123822740249

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4685.18810555
delta logL = 0.124631495882

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7942       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0590       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1707       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0143       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=   4685.188     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      237 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7947        72.399        .51808E-02    .89068E-04
   2  alpha         2.0591        3.1099        .28432        .22577E-04
   3  Normalizat    1.1706        .13330        .51593E-01   -.90668E-05
   4  Prefactor     1.0146        .12469        .66742E-01   -.24753E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.79467
  alpha      = 2.05907
  Normalizat = 1.1706
  Prefactor  = 1.01456
 **********
 **   18 **HESSE 
 **********

 FCN=   4685.188     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .91E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7947        2.7063        .84304E-04   -1.5318    
   2  alpha         2.0591        .50917        .11007E-01   -.17730    
   3  Normalizat    1.1706        .23336        .22811E-03   -.87516    
   4  Prefactor     1.0146        .28326        .29523E-03   -.92246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.11954e-13
Minuit parameter uncertainties:
  1  2.70642
  2  0.512873
  3  0.233568
  4  0.283675
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/907045': 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) = 4685.18810506
delta logL = 0.124631983956

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  3.795e+00  2.706e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  2.059e+00  5.129e-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.015e+00  2.837e-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:  1.171e+00  2.336e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.20
Ra Dec: 192.084 58.343
Photon Index (Free Index): 2.06 +/- 0.51
Photon Flux (Free Index): 4.64e-08 +/- 3.69e-08
Energy Flux (Free Index): 2.66e-05 +/- 2.27e-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/907045/cmap_HighResolution_253584001_253843201_4FGL_J1248.3+5820_daily_bin55.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.57e-08', energy_flux2='2.66e-05', photon_flux_error='2.41e-08', dlogl='1.25e-01', energy_flux='3.57e-05', photon_flux2='4.64e-08', job_status='DONE', time_completed='2021-09-06 05:16:27.657716', photon_index_error2='0.51', photon_index2='2.06', ts='4.97', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='2.27e-05', EG='1.18', time_epoch_completed='1630930587.66', return_code='0', job_id='907045', GAL2='1.01', EG2='1.17', return_code2='0', energy_flux_error='2.41e-05', photon_flux_error2='3.69e-08', ts2='5.20', photon_index='1.81' WHERE bin_id='55' AND source_name='4FGL J1248.3+5820' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:16:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 907045: <4FGL_J1248.3+5820_daily_bin55> in cluster <slac> Done

Job <4FGL_J1248.3+5820_daily_bin55> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 05:00:57 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:00:59 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:00:59 2021
Terminated at Mon Sep  6 05:16:28 2021
Results reported at Mon Sep  6 05:16:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.3+5820_daily_bin55 192.084 58.3432 253584001 253843201 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 :                                   756.03 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             286.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            931 sec.

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

