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


Performing analysis on: 4FGL_J1248.3+5820_daily_bin1434
RA = 192.084, Dec = 58.3432
tmin = 611020801, tmax = 611280001
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='916010', job_status='RUN', time_executed='2021-09-06 05:30:52.918399', time_epoch_executed='1630931452.92' WHERE source_name='4FGL J1248.3+5820' and cadence='daily' and bin_id='1434'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/916010

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/916010/ft1_4FGL_J1248.3+5820_daily_bin1434.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/916010/ft2_4FGL_J1248.3+5820_daily_bin1434.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/916010/ft1_4FGL_J1248.3+5820_daily_bin1434.fits outfile=/scratch/kocevski/916010/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin1434.fits ra=192.084 dec=58.3432 rad=12.0 tmin=611020801.0 tmax=611280001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.53
user 3.27
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/916010/ft1_filtered_4FGL_J1248.3+5820_daily_bin1434.fits" evtable="EVENTS" scfile=/scratch/kocevski/916010/ft2_4FGL_J1248.3+5820_daily_bin1434.fits sctable="SC_DATA" outfile=/scratch/kocevski/916010/ltcube_611020801_611280001_4FGL_J1248.3+5820_daily_bin1434.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/916010/ft2_4FGL_J1248.3+5820_daily_bin1434.fits
.....................!
real 11.81
user 11.45
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/916010/ft1_filtered_4FGL_J1248.3+5820_daily_bin1434.fits evtable="EVENTS" scfile=/scratch/kocevski/916010/ft2_4FGL_J1248.3+5820_daily_bin1434.fits sctable="SC_DATA" expcube=/scratch/kocevski/916010/ltcube_611020801_611280001_4FGL_J1248.3+5820_daily_bin1434.fits outfile=/scratch/kocevski/916010/expmap_611020801_611280001_4FGL_J1248.3+5820_daily_bin1434.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/916010/ltcube_611020801_611280001_4FGL_J1248.3+5820_daily_bin1434.fits
.....................!
real 192.01
user 186.94
sys 4.69

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/916010/ft1_filtered_4FGL_J1248.3+5820_daily_bin1434.fits scfile=/scratch/kocevski/916010/ft2_4FGL_J1248.3+5820_daily_bin1434.fits outfile=/scratch/kocevski/916010/cmap_611020801_611280001_4FGL_J1248.3+5820_daily_bin1434.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/916010/ft1_filtered_4FGL_J1248.3+5820_daily_bin1434.fits scfile=/scratch/kocevski/916010/ft2_4FGL_J1248.3+5820_daily_bin1434.fits outfile=/scratch/kocevski/916010/cmap_HighResolution_611020801_611280001_4FGL_J1248.3+5820_daily_bin1434.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8903       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.6578       1.0000         .10000E-03   10000.    
     3 'norm      '    8.7677       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.1438       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.6042       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.1972       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .81326       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.104       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.1511       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.784       1.0000         .10000E-03   10000.    
    16 'norm      '    .75893       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.9593       1.0000         .10000E-03   10000.    
    19 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.352       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.5092       1.0000         .10000E-03   10000.    
    23 'norm      '    2.7045       1.0000         .10000E-03   10000.    
    24 'Prefactor '    38.823       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.5443       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10255E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10141E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    37.672       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0285       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .83010       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=   6269.548     FROM MIGRAD    STATUS=CONVERGED    876 CALLS     4571 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8878        3.8759        .14180E-05   -.27902E-02
   2  Prefactor     3.6411        33.746        .67178E-05    .43568E-04
   3  norm          8.7673        10.713       -.11760E-06   -.11229E-04
   4  Prefactor     .10000E-03    2.0048       -.56832E-08** at limit **
   5  norm          2.1431        3.3234       -.80103E-06   -.24493E-03
   6  Prefactor     6.6042        4.9014        .15106E-05    .38740E-03
   7  Prefactor     .10000E-03    7.4399       -.10791E-05** at limit **
   8  norm          2.1971        1.6181       -.80302E-07   -.51283E-04
   9  Prefactor     .79475        8.3600       -.22106E-06   -.49810E-05
  10  Prefactor     .10000E-03    28.138       -.97326E-05** at limit **
  11  norm          .10000E-03    6.5338       -.69221E-06** at limit **
  12  Prefactor     12.099        16.773        .12648E-05    .69772E-04
  13  Prefactor     .10000E-03    2.1127       -.10641E-07** at limit **
  14  norm          2.1511        1.4431       -.36688E-07    .40306E-04
  15  Prefactor     12.782        18.612        .38533E-06    .13293E-04
  16  norm          .75803        1.4624        .44545E-07   -.16397E-03
  17  Prefactor     .10000E-03    11.883       -.84023E-07** at limit **
  18  Prefactor     3.9590        6.1459        .91391E-06   -.13019E-02
  19  norm          .10000E-03    2.3571        .11215E-06** at limit **
  20  Prefactor     23.339        46.778       -.10005E-04   -.83500E-04
  21  Prefactor     .10000E-03    31.527        .10434E-04** at limit **
  22  Prefactor     7.5093        15.433        .13153E-05    .66673E-05
  23  norm          2.7045        2.7955       -.93678E-07   -.59105E-04
  24  Prefactor     38.813        50.246       -.71809E-05   -.68252E-04
  25  Prefactor     1.5428        3.7923       -.84662E-06   -.32503E-03
  26  Prefactor     .10000E-03    24.883       -.68703E-05** at limit **
  27  Prefactor     .10000E-03    7.0178        .16836E-05** at limit **
  28  norm          .10000E-03    22.892        .72972E-05** at limit **
  29  norm          .10000E-03    2.5697        .53617E-07** at limit **
  30  Prefactor     37.669        40.413       -.17721E-05   -.46524E-04
  31  Prefactor     .10000E-03    148.05       -.54017E-05** at limit **
  32  Normalizat    1.0285        .15153        .42139E-06    .12538E-04
  33  Prefactor     .83015        .17894       -.25999E-06    .63735E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.88779
  Prefactor  = 3.64105
  norm       = 8.76734
  Prefactor  = 0.0001
  norm       = 2.14314
  Prefactor  = 6.60417
  Prefactor  = 0.0001
  norm       = 2.19715
  Prefactor  = 0.794746
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 12.0991
  Prefactor  = 0.0001
  norm       = 2.15109
  Prefactor  = 12.7822
  norm       = 0.758027
  Prefactor  = 0.0001
  Prefactor  = 3.95901
  norm       = 0.0001
  Prefactor  = 23.3393
  Prefactor  = 0.000100001
  Prefactor  = 7.50928
  norm       = 2.70454
  Prefactor  = 38.8129
  Prefactor  = 1.54283
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 37.6691
  Prefactor  = 0.0001
  Normalizat = 1.02854
  Prefactor  = 0.830151
 **********
 **   18 **HESSE 
 **********

 FCN=   6269.548     FROM HESSE     STATUS=OK           699 CALLS     5270 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8878        6.0107        .11952E-02   -1.5368    
   2  Prefactor     3.6411        34.656        .21121E-03   -1.5326    
   3  norm          8.7673        10.711        .13537E-03   -1.5116    
   4  Prefactor     .10000E-03    2.0216        .10946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.1431        3.3004        .16915E-03   -1.5415    
   6  Prefactor     6.6042        4.9083        .14546E-03   -1.5194    
   7  Prefactor     .10000E-03    7.4604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.1971        1.6161        .82900E-04   -1.5412    
   9  Prefactor     .79475        58.177        .43517E-02   -1.5530    
  10  Prefactor     .10000E-03    28.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.6193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.099        16.747        .11514E-03   -1.5012    
  13  Prefactor     .10000E-03    2.1240        .11235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.1511        1.4470        .75587E-04   -1.5415    
  15  Prefactor     12.782        18.644        .11203E-03   -1.4993    
  16  norm          .75803        1.1837        .12837E-02   -1.5534    
  17  Prefactor     .10000E-03    11.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.9590        6.5500        .10136E-02   -1.5310    
  19  norm          .10000E-03    2.4187        .23732E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     23.339        46.840        .82891E-04   -1.4741    
  21  Prefactor     .10000E-03    31.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.5093        15.375        .14635E-03   -1.5160    
  23  norm          2.7045        2.7792        .12414E-03   -1.5379    
  24  Prefactor     38.813        50.626        .64327E-04   -1.4461    
  25  Prefactor     1.5428        3.7648        .22349E-03   -1.5460    
  26  Prefactor     .10000E-03    24.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    7.0874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    22.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    2.6135        .12382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     37.669        40.294        .65299E-04   -1.4480    
  31  Prefactor     .10000E-03    148.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0285        .18257        .20381E-03   -.92080    
  33  Prefactor     .83015        .21312        .27913E-03   -.98626    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17611e-08
Minuit parameter uncertainties:
  1  6.012
  2  22.483
  3  10.7134
  4  3.02903e-06
  5  3.30064
  6  4.90864
  7  3.3916e-05
  8  1.61613
  9  13.6123
  10  0.00040875
  11  4.95587e-05
  12  16.7531
  13  1.84062e-06
  14  1.44707
  15  18.6525
  16  1.18373
  17  1.6016e-06
  18  6.55115
  19  3.8796e-06
  20  46.9138
  21  0.000394127
  22  15.3827
  23  2.77936
  24  50.6823
  25  3.76535
  26  0.000176244
  27  0.000102391
  28  0.000267316
  29  2.01499e-05
  30  40.3234
  31  0.000499491
  32  0.182683
  33  0.213333
Done.

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

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  2.151e+00  1.447e+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:  8.302e-01  2.133e-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.029e+00  1.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.47
Ra Dec: 192.084 58.343
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 1.90e-08 +/- 1.28e-08
Energy Flux (Fixed Index): 1.90e-05 +/- 1.28e-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) = 6269.14260825
delta logL = 0.405533043166

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6269.08202958
delta logL = 0.466111712209

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6657       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2977       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0369       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82734       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=   6269.082     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6669        1.2050        .81688E-02   -.18966E-03
   2  alpha         1.2977        .38170        .33002       -.35998E-04
   3  Normalizat    1.0369        .14206        .41536E-01    .93802E-05
   4  Prefactor     .82725        .17748        .63229E-01    .18903E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.66691
  alpha      = 1.29766
  Normalizat = 1.03694
  Prefactor  = 0.827247
 **********
 **   18 **HESSE 
 **********

 FCN=   6269.082     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6669        1.4848        .71536E-04   -1.5450    
   2  alpha         1.2977        .50703        .13406E-01   -.50172    
   3  Normalizat    1.0369        .16787        .20308E-03   -.91803    
   4  Prefactor     .82725        .20956        .27967E-03   -.98732    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03557e-12
Minuit parameter uncertainties:
  1  1.48483
  2  0.511666
  3  0.167953
  4  0.209763
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/916010': 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) = 6269.08202901
delta logL = 0.466112285196

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  1.667e+00  1.485e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  1.298e+00  5.117e-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:  8.272e-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:  1.037e+00  1.680e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.40
Ra Dec: 192.084 58.343
Photon Index (Free Index): 1.30 +/- 0.51
Photon Flux (Free Index): 9.97e-09 +/- 9.55e-09
Energy Flux (Free Index): 4.36e-05 +/- 5.00e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.90e-08', energy_flux2='4.36e-05', photon_flux_error='1.28e-08', dlogl='4.66e-01', energy_flux='1.90e-05', photon_flux2='9.97e-09', job_status='DONE', time_completed='2021-09-06 05:46:56.785196', photon_index_error2='0.51', photon_index2='1.30', ts='14.47', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='5.00e-05', EG='1.03', time_epoch_completed='1630932416.79', return_code='0', job_id='916010', GAL2='0.83', EG2='1.04', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='9.55e-09', ts2='15.40', photon_index='1.81' WHERE bin_id='1434' AND source_name='4FGL J1248.3+5820' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:46:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 916010: <4FGL_J1248.3+5820_daily_bin1434> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.3+5820_daily_bin1434 192.084 58.3432 611020801 611280001 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 :                                   958.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            980 sec.

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

