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


Performing analysis on: 4FGL_J1248.3+5820_daily_bin1432
RA = 192.084, Dec = 58.3432
tmin = 610502401, tmax = 610761601
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='916007', job_status='RUN', time_executed='2021-09-06 05:30:50.041994', time_epoch_executed='1630931450.04' WHERE source_name='4FGL J1248.3+5820' and cadence='daily' and bin_id='1432'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/916007

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/916007/ft1_4FGL_J1248.3+5820_daily_bin1432.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/916007/ft2_4FGL_J1248.3+5820_daily_bin1432.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/916007/ft1_4FGL_J1248.3+5820_daily_bin1432.fits outfile=/scratch/kocevski/916007/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin1432.fits ra=192.084 dec=58.3432 rad=12.0 tmin=610502401.0 tmax=610761601.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.63
user 3.38
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/916007/ft2_4FGL_J1248.3+5820_daily_bin1432.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/916007/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin1432.fits evtable="EVENTS" outfile="/scratch/kocevski/916007/ft1_filtered_4FGL_J1248.3+5820_daily_bin1432.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/916007/ft1_filtered_4FGL_J1248.3+5820_daily_bin1432.fits" evtable="EVENTS" scfile=/scratch/kocevski/916007/ft2_4FGL_J1248.3+5820_daily_bin1432.fits sctable="SC_DATA" outfile=/scratch/kocevski/916007/ltcube_610502401_610761601_4FGL_J1248.3+5820_daily_bin1432.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/916007/ft2_4FGL_J1248.3+5820_daily_bin1432.fits
.....................!
real 12.39
user 12.02
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/916007/ft1_filtered_4FGL_J1248.3+5820_daily_bin1432.fits evtable="EVENTS" scfile=/scratch/kocevski/916007/ft2_4FGL_J1248.3+5820_daily_bin1432.fits sctable="SC_DATA" expcube=/scratch/kocevski/916007/ltcube_610502401_610761601_4FGL_J1248.3+5820_daily_bin1432.fits outfile=/scratch/kocevski/916007/expmap_610502401_610761601_4FGL_J1248.3+5820_daily_bin1432.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/916007/ltcube_610502401_610761601_4FGL_J1248.3+5820_daily_bin1432.fits
.....................!
real 193.71
user 186.74
sys 4.35

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/916007/ft1_filtered_4FGL_J1248.3+5820_daily_bin1432.fits scfile=/scratch/kocevski/916007/ft2_4FGL_J1248.3+5820_daily_bin1432.fits outfile=/scratch/kocevski/916007/cmap_610502401_610761601_4FGL_J1248.3+5820_daily_bin1432.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.55
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/916007/ft1_filtered_4FGL_J1248.3+5820_daily_bin1432.fits scfile=/scratch/kocevski/916007/ft2_4FGL_J1248.3+5820_daily_bin1432.fits outfile=/scratch/kocevski/916007/cmap_HighResolution_610502401_610761601_4FGL_J1248.3+5820_daily_bin1432.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.57
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/916007/ft1_filtered_4FGL_J1248.3+5820_daily_bin1432.fits', '/scratch/kocevski/916007/ft2_4FGL_J1248.3+5820_daily_bin1432.fits', expMap='/scratch/kocevski/916007/expmap_610502401_610761601_4FGL_J1248.3+5820_daily_bin1432.fits', expCube='/scratch/kocevski/916007/ltcube_610502401_610761601_4FGL_J1248.3+5820_daily_bin1432.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/916007/Model_4FGL_J1248.3+5820_daily_bin1432.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/916007/ft1_filtered_4FGL_J1248.3+5820_daily_bin1432.fits
Spacecraft file(s): /scratch/kocevski/916007/ft2_4FGL_J1248.3+5820_daily_bin1432.fits
Exposure map: /scratch/kocevski/916007/expmap_610502401_610761601_4FGL_J1248.3+5820_daily_bin1432.fits
Exposure cube: /scratch/kocevski/916007/ltcube_610502401_610761601_4FGL_J1248.3+5820_daily_bin1432.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/916007/Model_4FGL_J1248.3+5820_daily_bin1432.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6782.33318142

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.8093       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.001       1.0000         .10000E-03   10000.    
     3 'norm      '    .41681E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.1200       1.0000         .10000E-03   10000.    
     5 'norm      '    3.4667       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.9982       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.202       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.5861       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.6357       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .29459E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.4511       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.3055       1.0000         .10000E-03   10000.    
    17 'Prefactor '    37.010       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.0816       1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    25.650       1.0000         .10000E-03   10000.    
    23 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .49090       1.0000         .10000E-03   10000.    
    26 'Prefactor '    18.321       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .99028E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    5.0539       1.0000         .10000E-03   10000.    
    30 'Prefactor '    18.135       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .94257       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .91418       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=   6782.295     FROM MIGRAD    STATUS=CONVERGED    910 CALLS     3963 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8092        6.5587        .45073E-06    .97419E-04
   2  Prefactor     15.007        21.830       -.20869E-06    .18438E-04
   3  norm          .10002E-03    16.717       -.10619E-04** at limit **
   4  Prefactor     5.1196        4.7779        .14219E-07    .59751E-03
   5  norm          3.4677        3.1247        .21590E-06    .17023E-03
   6  Prefactor     .10000E-03    3.0876       -.51171E-08** at limit **
   7  Prefactor     .10000E-03    10.774       -.12507E-06** at limit **
   8  norm          2.9984        2.0731        .29440E-07    .32300E-03
   9  Prefactor     16.203        17.677        .19164E-06    .20662E-04
  10  Prefactor     .10000E-03    21.504        .33773E-06** at limit **
  11  norm          2.5857        5.1617        .49392E-05    .34688E-03
  12  Prefactor     8.6339        13.975       -.17279E-05    .64388E-04
  13  Prefactor     .10000E-03    4.0134        .59086E-07** at limit **
  14  norm          6.4545        2.4280        .51844E-07    .55480E-03
  15  Prefactor     .10000E-03    12.251        .32800E-06** at limit **
  16  norm          6.3058        2.5190        .19781E-07    .19154E-03
  17  Prefactor     37.000        30.924        .24192E-07   -.91841E-04
  18  Prefactor     1.0827        6.2634        .10285E-05    .27608E-04
  19  norm          .10000E-03    1.8143       -.36312E-07** at limit **
  20  Prefactor     .10000E-03    30.892       -.45938E-06** at limit **
  21  Prefactor     .10000E-03    16.670       -.58293E-06** at limit **
  22  Prefactor     25.650        15.939        .31290E-06    .16409E-03
  23  norm          .10000E-03    2.2615       -.83023E-07** at limit **
  24  Prefactor     .10002E-03    57.829        .10868E-05** at limit **
  25  Prefactor     .50158        4.7144        .72545E-06   -.14330E-03
  26  Prefactor     18.321        22.058        .38325E-06    .86978E-04
  27  Prefactor     .10000E-03    10.575        .95279E-06** at limit **
  28  norm          .10000E-03    20.943        .30086E-06** at limit **
  29  norm          5.0537        3.4126        .13508E-06    .31962E-03
  30  Prefactor     18.139        21.912        .14218E-07   -.83417E-05
  31  Prefactor     .10001E-03    117.98       -.80414E-06** at limit **
  32  Normalizat    .94249        .15424       -.44791E-06    .35086E-03
  33  Prefactor     .91439        .18120       -.29366E-06    .30646E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.80925
  Prefactor  = 15.0071
  norm       = 0.000100022
  Prefactor  = 5.11962
  norm       = 3.46774
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.99837
  Prefactor  = 16.2026
  Prefactor  = 0.000100002
  norm       = 2.58575
  Prefactor  = 8.63393
  Prefactor  = 0.0001
  norm       = 6.45448
  Prefactor  = 0.000100001
  norm       = 6.30581
  Prefactor  = 37.0003
  Prefactor  = 1.08271
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100004
  Prefactor  = 25.6495
  norm       = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 0.501581
  Prefactor  = 18.321
  Prefactor  = 0.000100002
  norm       = 0.000100001
  norm       = 5.05369
  Prefactor  = 18.1388
  Prefactor  = 0.00010001
  Normalizat = 0.94249
  Prefactor  = 0.914394
 **********
 **   18 **HESSE 
 **********

 FCN=   6782.295     FROM HESSE     STATUS=OK           699 CALLS     4662 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8092        6.5715        .67523E-03   -1.5114    
   2  Prefactor     15.007        21.795        .10341E-03   -1.4933    
   3  norm          .10002E-03    41.776        .43299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.1196        4.7906        .16748E-03   -1.5255    
   5  norm          3.4677        3.1181        .66515E-03   -1.5336    
   6  Prefactor     .10000E-03    3.1016        .14121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.9984        2.0696        .93382E-04   -1.5362    
   9  Prefactor     16.203        17.709        .99502E-04   -1.4903    
  10  Prefactor     .10000E-03    21.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.5857        5.7510        .12688E-02   -1.5386    
  12  Prefactor     8.6339        14.091        .13641E-03   -1.5120    
  13  Prefactor     .10000E-03    8.7084        .30779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.4545        2.3569        .73600E-04   -1.5200    
  15  Prefactor     .10000E-03    12.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.3058        2.5191        .79626E-04   -1.5206    
  17  Prefactor     37.000        30.949        .65879E-04   -1.4491    
  18  Prefactor     1.0827        6.1428        .39472E-03   -1.5500    
  19  norm          .10000E-03    1.8534        .10830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    31.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     25.650        15.945        .79097E-04   -1.4695    
  23  norm          .10000E-03    2.2997        .12069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10002E-03    58.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .50158        5.4524        .24821E-02   -1.5566    
  26  Prefactor     18.321        22.074        .93571E-04   -1.4852    
  27  Prefactor     .10000E-03    33.874        .38390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    21.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          5.0537        3.4103        .12062E-03   -1.5258    
  30  Prefactor     18.139        21.883        .94050E-04   -1.4856    
  31  Prefactor     .10001E-03    118.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .94249        .17909        .22149E-03   -.94983    
  33  Prefactor     .91439        .20960        .27906E-03   -.95640    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54505e-08
Minuit parameter uncertainties:
  1  6.57203
  2  21.8065
  3  0.00193855
  4  4.79098
  5  3.11825
  6  7.46027e-07
  7  7.44976e-05
  8  2.06969
  9  17.7149
  10  0.000431347
  11  5.7522
  12  14.096
  13  2.37662e-06
  14  2.3569
  15  0.000210939
  16  2.51913
  17  30.9624
  18  5.15842
  19  3.67862e-06
  20  0.000594975
  21  0.000534262
  22  15.948
  23  1.01041e-05
  24  0.00187877
  25  3.30751
  26  22.0838
  27  0.000576837
  28  0.000350094
  29  3.41045
  30  21.8924
  31  0.00221275
  32  0.179204
  33  0.209787
Done.

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

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  6.454e+00  2.357e+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:  9.144e-01  2.098e-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:  9.425e-01  1.792e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 32.11
Ra Dec: 192.084 58.343
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 5.70e-08 +/- 2.08e-08
Energy Flux (Fixed Index): 5.70e-05 +/- 2.08e-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) = 6782.08618887
delta logL = 0.208537964708

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6782.05238203
delta logL = 0.242344799417

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3578       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6013       1.0000          .0000       5.0000    
     3 'Normalizat'    .95524       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90765       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=   6782.052     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      198 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3578        2.5318        .39796E-02   -.17219E-02
   2  alpha         1.6013        .28614        .22462       -.16876E-04
   3  Normalizat    .95523        .14491        .45604E-01    .11102E-04
   4  Prefactor     .90766        .17999        .45102E-01    .15502E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.35785
  alpha      = 1.60127
  Normalizat = 0.95523
  Prefactor  = 0.907657
 **********
 **   18 **HESSE 
 **********

 FCN=   6782.052     FROM HESSE     STATUS=OK            31 CALLS      229 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3578        2.4639        .76302E-04   -1.5204    
   2  alpha         1.6013        .29738        .92649E-02   -.36772    
   3  Normalizat    .95523        .16797        .22024E-03   -.94546    
   4  Prefactor     .90766        .20879        .28009E-03   -.95874    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67984e-10
Minuit parameter uncertainties:
  1  2.46397
  2  0.298192
  3  0.168061
  4  0.208978
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/916007': 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) = 6782.05238202
delta logL = 0.24234481097

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  6.358e+00  2.464e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  1.601e+00  2.982e-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:  9.077e-01  2.090e-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:  9.552e-01  1.681e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 32.55
Ra Dec: 192.084 58.343
Photon Index (Free Index): 1.60 +/- 0.30
Photon Flux (Free Index): 4.52e-08 +/- 2.31e-08
Energy Flux (Free Index): 8.00e-05 +/- 5.11e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/916007/cmap_HighResolution_610502401_610761601_4FGL_J1248.3+5820_daily_bin1432.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.70e-08', energy_flux2='8.00e-05', photon_flux_error='2.08e-08', dlogl='2.42e-01', energy_flux='5.70e-05', photon_flux2='4.52e-08', job_status='DONE', time_completed='2021-09-06 05:46:16.760897', photon_index_error2='0.30', photon_index2='1.60', ts='32.11', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='5.11e-05', EG='0.94', time_epoch_completed='1630932376.76', return_code='0', job_id='916007', GAL2='0.91', EG2='0.96', return_code2='0', energy_flux_error='2.08e-05', photon_flux_error2='2.31e-08', ts2='32.55', photon_index='1.81' WHERE bin_id='1432' AND source_name='4FGL J1248.3+5820' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:46:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 916007: <4FGL_J1248.3+5820_daily_bin1432> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.3+5820_daily_bin1432 192.084 58.3432 610502401 610761601 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 :                                   918.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             347.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            941 sec.

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

