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


Performing analysis on: 4FGL_J1248.3+5820_daily_bin1524
RA = 192.084, Dec = 58.3432
tmin = 634348801, tmax = 634608001
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='916138', job_status='RUN', time_executed='2021-09-06 05:32:58.380477', time_epoch_executed='1630931578.38' WHERE source_name='4FGL J1248.3+5820' and cadence='daily' and bin_id='1524'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/916138

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/916138/ft1_4FGL_J1248.3+5820_daily_bin1524.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/916138/ft2_4FGL_J1248.3+5820_daily_bin1524.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/916138/ft1_4FGL_J1248.3+5820_daily_bin1524.fits outfile=/scratch/kocevski/916138/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin1524.fits ra=192.084 dec=58.3432 rad=12.0 tmin=634348801.0 tmax=634608001.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 4.07
user 3.51
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/916138/ft1_filtered_4FGL_J1248.3+5820_daily_bin1524.fits" evtable="EVENTS" scfile=/scratch/kocevski/916138/ft2_4FGL_J1248.3+5820_daily_bin1524.fits sctable="SC_DATA" outfile=/scratch/kocevski/916138/ltcube_634348801_634608001_4FGL_J1248.3+5820_daily_bin1524.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/916138/ft2_4FGL_J1248.3+5820_daily_bin1524.fits
.....................!
real 12.53
user 11.91
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/916138/ft1_filtered_4FGL_J1248.3+5820_daily_bin1524.fits evtable="EVENTS" scfile=/scratch/kocevski/916138/ft2_4FGL_J1248.3+5820_daily_bin1524.fits sctable="SC_DATA" expcube=/scratch/kocevski/916138/ltcube_634348801_634608001_4FGL_J1248.3+5820_daily_bin1524.fits outfile=/scratch/kocevski/916138/expmap_634348801_634608001_4FGL_J1248.3+5820_daily_bin1524.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/916138/ltcube_634348801_634608001_4FGL_J1248.3+5820_daily_bin1524.fits
.....................!
real 190.74
user 185.40
sys 4.91

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/916138/ft1_filtered_4FGL_J1248.3+5820_daily_bin1524.fits scfile=/scratch/kocevski/916138/ft2_4FGL_J1248.3+5820_daily_bin1524.fits outfile=/scratch/kocevski/916138/cmap_634348801_634608001_4FGL_J1248.3+5820_daily_bin1524.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.54
user 0.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.337       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .46094E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .17599E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.988       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    67.834       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.4088       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .11741E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11883E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.746       1.0000         .10000E-03   10000.    
    19 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.351       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    43.295       1.0000         .10000E-03   10000.    
    23 'norm      '    .10641E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    19.701       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .83971E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10330E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .26839       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .57030E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .82600       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1573       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3013.734     FROM MIGRAD    STATUS=CONVERGED   1666 CALLS     5405 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.346        17.692        .71577E-04    .14057E-04
   2  Prefactor     .10000E-03    16.562        .18142E-02** at limit **
   3  norm          .10000E-03    8.7828        .15892E-02** at limit **
   4  Prefactor     .10004E-03    68.814        .37291E-02** at limit **
   5  norm          .10000E-03    5.5041        .12551E-02** at limit **
   6  Prefactor     .10000E-03    10.892        .17647E-02** at limit **
   7  Prefactor     .10000E-03    33.741        .18142E-02** at limit **
   8  norm          .10000E-03    22.921        .21110E-02** at limit **
   9  Prefactor     25.992        40.297        .78581E-04    .79571E-05
  10  Prefactor     .10000E-03    54.282        .18142E-02** at limit **
  11  norm          67.826        23.701        .24367E-03    .10403E-03
  12  Prefactor     .10000E-03    50.057        .18142E-02** at limit **
  13  Prefactor     7.4086        9.9860        .14735E-03    .78313E-04
  14  norm          .10000E-03    1.7835        .71548E-03** at limit **
  15  Prefactor     .10000E-03    15.932        .18142E-02** at limit **
  16  norm          .10002E-03    9.3274        .21907E-02** at limit **
  17  Prefactor     .10000E-03    157.06        .18142E-02** at limit **
  18  Prefactor     25.739        23.100        .78949E-04    .85896E-04
  19  norm          .10000E-03    5.7049        .12681E-02** at limit **
  20  Prefactor     22.379        35.511        .84724E-04    .40913E-04
  21  Prefactor     .10000E-03    28.785        .18142E-02** at limit **
  22  Prefactor     43.264        30.942        .60928E-04   -.11942E-04
  23  norm          .10000E-03    20.597        .22485E-02** at limit **
  24  Prefactor     19.867        82.324        .90236E-04    .18709E-04
  25  Prefactor     .10000E-03    2.9278        .18087E-03** at limit **
  26  Prefactor     .10002E-03    296.06        .41746E-03** at limit **
  27  Prefactor     .10000E-03    9.6814        .16485E-02** at limit **
  28  norm          .10000E-03    34.033        .18142E-02** at limit **
  29  norm          .10000E-03    2.1014        .77397E-03** at limit **
  30  Prefactor     .10021E-03    58.753        .10401    ** at limit **
  31  Prefactor     .10001E-03    862.92        .21091E-02** at limit **
  32  Normalizat    .82577        .28590        .24207E-03    .11835E-03
  33  Prefactor     1.1579        .33688        .25670E-03    .19490E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.3464
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010004
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 25.9922
  Prefactor  = 0.0001
  norm       = 67.8264
  Prefactor  = 0.0001
  Prefactor  = 7.40856
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100025
  Prefactor  = 0.0001
  Prefactor  = 25.7392
  norm       = 0.0001
  Prefactor  = 22.3792
  Prefactor  = 0.0001
  Prefactor  = 43.264
  norm       = 0.000100001
  Prefactor  = 19.8665
  Prefactor  = 0.0001
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100208
  Prefactor  = 0.00010001
  Normalizat = 0.82577
  Prefactor  = 1.1579
 **********
 **   18 **HESSE 
 **********

 FCN=   3013.734     FROM HESSE     STATUS=OK           671 CALLS     6076 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.346        17.691        .28631E-05   -1.4588    
   2  Prefactor     .10000E-03    16.562        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    8.7828        .31783E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10004E-03    70.307        .74581E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.5045        .25101E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.894        .35295E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    33.746        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    23.062        .42220E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.992        40.297        .31432E-05   -1.4688    
  10  Prefactor     .10000E-03    54.282        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          67.826        23.700        .48733E-04   -1.4059    
  12  Prefactor     .10000E-03    50.059        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.4086        9.9859        .58939E-05   -1.5164    
  14  norm          .10000E-03    1.7835        .14310E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.933        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10002E-03    9.3763        .43814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    157.07        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     25.739        23.102        .31580E-05   -1.4693    
  19  norm          .10000E-03    5.7070        .25362E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     22.379        35.510        .16945E-04   -1.4761    
  21  Prefactor     .10000E-03    28.785        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     43.264        30.903        .24371E-05   -1.4392    
  23  norm          .10000E-03    20.654        .44969E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     19.867        82.284        .36094E-05   -1.4816    
  25  Prefactor     .10000E-03    2.9278        .36174E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10002E-03    296.07        .83492E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    9.6878        .32971E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    34.033        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    2.1015        .15479E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10021E-03    54.018        .10980       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10001E-03    863.00        .42181E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .82577        .28616        .96830E-05   -.99120    
  33  Prefactor     1.1579        .33708        .51339E-04   -.87637    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61646e-09
Minuit parameter uncertainties:
  1  17.6942
  2  1.43427e-05
  3  1.33375e-06
  4  0.00335373
  5  9.3013e-06
  6  1.13525e-05
  7  9.92557e-07
  8  0.00036607
  9  40.3395
  10  8.31757e-05
  11  23.703
  12  0.000265917
  13  9.98811
  14  2.60027e-06
  15  2.42357e-05
  16  0.000962478
  17  0.000384672
  18  23.1098
  19  2.20399e-05
  20  35.5438
  21  8.44543e-05
  22  30.9148
  23  0.000285846
  24  81.055
  25  1.23782e-05
  26  0.00495506
  27  3.87382e-05
  28  4.99173e-05
  29  2.42967e-05
  30  0.0067124
  31  0.00589825
  32  0.286684
  33  0.337709
Done.

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

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  1.000e-04  2.600e-06  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.158e+00  3.377e-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:  8.258e-01  2.867e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 192.084 58.343
Photon Flux Upper Limit: 8.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 8.61e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/916138/likelihoodResults_634348801_634608001_4FGL_J1248.3+5820_daily_bin1524.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) = 3013.73651203
delta logL = -0.00237749123198

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3013.73413452
delta logL = 1.70334715222e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8071       1.0000          .0000       5.0000    
     3 'Normalizat'    .82577       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1579       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3013.734     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      237 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    261.02        .71594E-03** at limit **
   2  alpha         1.7191        2.8138        .50000        .14517E-06
   3  Normalizat    .82577        .85229E-01    .24207E-03   -.14099E-02
   4  Prefactor     1.1579        .10569        .25670E-03   -.13533E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.71909
  Normalizat = 0.825768
  Prefactor  = 1.15789
 **********
 **   18 **HESSE 
 **********

 FCN=   3013.734     FROM HESSE     STATUS=OK            29 CALLS      266 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.3493        .14319E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7191        3.2608        .50000       -.31768    
   3  Normalizat    .82577        .26474        .48414E-04   -.99120    
   4  Prefactor     1.1579        .32825        .51339E-04   -.87637    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46784e-09
Minuit parameter uncertainties:
  1  3.79677e-05
  2  126.797
  3  0.265152
  4  0.328826
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/916138': 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) = 3013.73413431
delta logL = 2.20572474063e-07

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  1.000e-04  3.797e-05  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  1.719e+00  1.268e+02  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.158e+00  3.288e-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:  8.258e-01  2.652e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 192.084 58.343

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/916138/cmap_HighResolution_634348801_634608001_4FGL_J1248.3+5820_daily_bin1524.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.61e-05', job_status='DONE', photon_flux_upper_limit='8.60e-08', time_completed='2021-09-06 05:45:45.782903', job_id='916138', GAL2='1.16', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1630932345.78', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='2.21e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.81' WHERE bin_id='1524' AND source_name='4FGL J1248.3+5820' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:45:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 916138: <4FGL_J1248.3+5820_daily_bin1524> in cluster <slac> Done

Job <4FGL_J1248.3+5820_daily_bin1524> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 05:30:45 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:30: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:30:46 2021
Terminated at Mon Sep  6 05:45:46 2021
Results reported at Mon Sep  6 05:45:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.3+5820_daily_bin1524 192.084 58.3432 634348801 634608001 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 :                                   743.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             324.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            901 sec.

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

