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


Performing analysis on: 4FGL_J1248.3+5820_daily_bin1401
RA = 192.084, Dec = 58.3432
tmin = 602467201, tmax = 602726401
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='914874', job_status='RUN', time_executed='2021-09-06 05:29:54.379566', time_epoch_executed='1630931394.38' WHERE source_name='4FGL J1248.3+5820' and cadence='daily' and bin_id='1401'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/914874

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/914874/ft1_4FGL_J1248.3+5820_daily_bin1401.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/914874/ft2_4FGL_J1248.3+5820_daily_bin1401.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/914874/ft1_4FGL_J1248.3+5820_daily_bin1401.fits outfile=/scratch/kocevski/914874/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin1401.fits ra=192.084 dec=58.3432 rad=12.0 tmin=602467201.0 tmax=602726401.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.18
user 2.94
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/914874/ft2_4FGL_J1248.3+5820_daily_bin1401.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/914874/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin1401.fits evtable="EVENTS" outfile="/scratch/kocevski/914874/ft1_filtered_4FGL_J1248.3+5820_daily_bin1401.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.32
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/914874/ft1_filtered_4FGL_J1248.3+5820_daily_bin1401.fits evtable="EVENTS" scfile=/scratch/kocevski/914874/ft2_4FGL_J1248.3+5820_daily_bin1401.fits sctable="SC_DATA" expcube=/scratch/kocevski/914874/ltcube_602467201_602726401_4FGL_J1248.3+5820_daily_bin1401.fits outfile=/scratch/kocevski/914874/expmap_602467201_602726401_4FGL_J1248.3+5820_daily_bin1401.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/914874/ltcube_602467201_602726401_4FGL_J1248.3+5820_daily_bin1401.fits
.....................!
real 190.14
user 185.20
sys 4.56

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/914874/ft1_filtered_4FGL_J1248.3+5820_daily_bin1401.fits scfile=/scratch/kocevski/914874/ft2_4FGL_J1248.3+5820_daily_bin1401.fits outfile=/scratch/kocevski/914874/cmap_602467201_602726401_4FGL_J1248.3+5820_daily_bin1401.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.57
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/914874/ft1_filtered_4FGL_J1248.3+5820_daily_bin1401.fits scfile=/scratch/kocevski/914874/ft2_4FGL_J1248.3+5820_daily_bin1401.fits outfile=/scratch/kocevski/914874/cmap_HighResolution_602467201_602726401_4FGL_J1248.3+5820_daily_bin1401.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.54
user 0.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1810.2       1.0000         .10000E-03   10000.    
     2 'Prefactor '    129.84       1.0000         .10000E-03   10000.    
     3 'norm      '    .61391E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12372E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    9999.9       1.0000         .10000E-03   10000.    
     6 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9959.3       1.0000         .10000E-03   10000.    
     8 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9473.5       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15603E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    14.786       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.5813       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.980       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .16145E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13743E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .24928E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    50.386       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.7449       1.0000         .10000E-03   10000.    
    23 'norm      '    5.3758       1.0000         .10000E-03   10000.    
    24 'Prefactor '    57.427       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    32.053       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .70076E-02   1.0000         .10000E-03   10000.    
    29 'norm      '    12.767       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .15391       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .19005E-01   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    .99079       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2445.289     FROM MIGRAD    STATUS=CONVERGED    899 CALLS     4091 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        681.77       -.29691E-04** at limit **
   2  Prefactor    10000.0        2179.6       -.37272E-04** at limit **
   3  norm          .10000E-03    1233.9        .17695E-04** at limit **
   4  Prefactor     .10000E-03    30.905       -.61283E-06** at limit **
   5  norm         10000.0        139.83       -.13241E-05** at limit **
   6  Prefactor    10000.0        365.31        .79704E-05** at limit **
   7  Prefactor    10000.0        437.30        .63961E-05** at limit **
   8  norm          .10000E-03    8.3431       -.64714E-08** at limit **
   9  Prefactor     6418.6        2386.8        .45404E-05    .18473E-05
  10  Prefactor     .10000E-03    324.75       -.32259E-05** at limit **
  11  norm          8.9684        37.067       -.69150E-05    .69745E-05
  12  Prefactor     .10000E-03    879.81        .25105E-04** at limit **
  13  Prefactor     .10000E-03    4.8531       -.19523E-07** at limit **
  14  norm          .10000E-03    1.9971        .13141E-08** at limit **
  15  Prefactor     20.274        60.887        .72231E-06   -.19662E-04
  16  norm          .10000E-03    1.6194        .12550E-07** at limit **
  17  Prefactor     .10000E-03    18.718       -.53247E-06** at limit **
  18  Prefactor     .10000E-03    16.742       -.89346E-07** at limit **
  19  norm          .10000E-03    3.8443        .86364E-07** at limit **
  20  Prefactor     .10000E-03    15.368        .14354E-06** at limit **
  21  Prefactor     47.723        54.487        .82884E-06   -.81760E-05
  22  Prefactor     7.1845        39.549       -.55689E-06   -.19117E-04
  23  norm          5.2208        8.0938       -.10366E-05    .53263E-06
  24  Prefactor     53.487        70.839        .33666E-05   -.34197E-04
  25  Prefactor     .10000E-03    1.0538       -.83998E-07** at limit **
  26  Prefactor     29.601        49.002        .21981E-05   -.20834E-04
  27  Prefactor     .10000E-03    1.7570        .28923E-08** at limit **
  28  norm          .10000E-03    27.704       -.83856E-06** at limit **
  29  norm          12.472        6.0477        .41036E-06   -.14747E-03
  30  Prefactor     .10000E-03    231.52       -.20639E-04** at limit **
  31  Prefactor     .10000E-03    496.37        .92291E-05** at limit **
  32  Normalizat    .10000E-01    .58347E-01   -.19801E-06** at limit **
  33  Prefactor     1.0172        .15578       -.29374E-05   -.51666E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 6418.58
  Prefactor  = 0.000100001
  norm       = 8.96843
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.2745
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.7231
  Prefactor  = 7.18452
  norm       = 5.22075
  Prefactor  = 53.487
  Prefactor  = 0.0001
  Prefactor  = 29.6007
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.4722
  Prefactor  = 0.000100002
  Prefactor  = 0.000100003
  Normalizat = 0.01
  Prefactor  = 1.01718
 **********
 **   18 **HESSE 
 **********

 FCN=   2445.289     FROM HESSE     STATUS=OK           759 CALLS     4850 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        680.51        .25972E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor    10000.0        2165.6        .88334E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1222.4        .10526E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    30.265        .10308E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm         10000.0        139.70        .93412E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor    10000.0        382.16        .94587E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor    10000.0        458.89        .15715E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.0889        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6418.6        2436.5        .44775E-03    .28767    
  10  Prefactor     .10000E-03    323.53        .10220E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.9684        36.558        .26040E-02   -1.6307    
  12  Prefactor     .10000E-03    881.50        .47015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.7965        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.9818        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     20.274        61.410        .18606E-02   -1.4807    
  16  norm          .10000E-03    1.5785        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.867        .10206E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.573        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.7596        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.092        .10733E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     47.723        55.017        .14124E-02   -1.4325    
  22  Prefactor     7.1845        42.199        .33887E-02   -1.5172    
  23  norm          5.2208        8.2452        .43331E-02   -1.5251    
  24  Prefactor     53.487        71.399        .13235E-02   -1.4244    
  25  Prefactor     .10000E-03    1.0755        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     29.601        48.869        .17694E-02   -1.4619    
  27  Prefactor     .10000E-03    1.8078        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    27.620        .93490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          12.472        6.0400        .28027E-02   -1.5002    
  30  Prefactor     .10000E-03    30.030        .97652E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    516.57        .91177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .10000E-01    .55783E-01    .16709       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     1.0172        .16304        .46152E-01   -.92159    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3337e-09
Minuit parameter uncertainties:
  1  0.0036006
  2  0.0100812
  3  0.000956431
  4  1.62135e-05
  5  0.000141632
  6  0.00086065
  7  0.000880867
  8  1.28001e-06
  9  2555.78
  10  0.00118006
  11  36.2524
  12  0.00354121
  13  4.46377e-07
  14  1.18923e-07
  15  61.6023
  16  2.92187e-07
  17  1.66268e-05
  18  2.00103e-05
  19  1.46046e-05
  20  7.6271e-06
  21  55.0754
  22  34.8609
  23  8.24699
  24  71.5135
  25  3.01642e-08
  26  48.9349
  27  4.01993e-08
  28  3.15454e-05
  29  6.04026
  30  0.000527865
  31  0.00240078
  32  7.51251e-09
  33  0.163114
Done.

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

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  1.000e-04  1.189e-07  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.017e+00  1.631e-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.000e-02  7.513e-09  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 192.084 58.343
Photon Flux Upper Limit: 1.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.00e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/914874/likelihoodResults_602467201_602726401_4FGL_J1248.3+5820_daily_bin1401.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) = 2445.29106022
delta logL = -0.00225901769909

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2445.2888013
delta logL = -9.74478098215e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8016       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0171       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=   2445.289     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      242 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    307.45        .68233E-03** at limit **
   2  alpha         1.5882        4.0689        .50000       -.19438E-06
   3  Normalizat    .10000E-01    .25097E-01    .66595E-02** at limit **
   4  Prefactor     1.0172        .88680E-01    .21703E-03    .10567E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.58815
  Normalizat = 0.01
  Prefactor  = 1.01718
 **********
 **   18 **HESSE 
 **********

 FCN=   2445.289     FROM HESSE     STATUS=OK            27 CALLS      269 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6576        .13647E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5882        2.7946        .50000       -.37335    
   3  Normalizat    .10000E-01    .58811E-01    .13319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0172        .13577        .43406E-04   -.92159    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47064e-10
Minuit parameter uncertainties:
  1  4.93775e-07
  2  132.263
  3  1.29934e-07
  4  0.135821
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/914874': 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) = 2445.28880009
delta logL = 1.11144618131e-06

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  1.000e-04  4.938e-07  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  1.588e+00  1.323e+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.017e+00  1.358e-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.000e-02  1.299e-07  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/914874/cmap_HighResolution_602467201_602726401_4FGL_J1248.3+5820_daily_bin1401.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.00e-04', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2021-09-06 05:40:37.214977', job_id='914874', GAL2='1.02', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630932037.22', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.11e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.81' WHERE bin_id='1401' AND source_name='4FGL J1248.3+5820' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:40:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 914874: <4FGL_J1248.3+5820_daily_bin1401> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.3+5820_daily_bin1401 192.084 58.3432 602467201 602726401 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 :                                   630.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             262.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            892 sec.

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

