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


Performing analysis on: 4FGL_J1248.3+5820_daily_bin54
RA = 192.084, Dec = 58.3432
tmin = 253324801, tmax = 253584001
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='907044', job_status='RUN', time_executed='2021-09-06 05:03:16.633963', time_epoch_executed='1630929796.63' WHERE source_name='4FGL J1248.3+5820' and cadence='daily' and bin_id='54'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/907044

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/907044/ft1_4FGL_J1248.3+5820_daily_bin54.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/907044/ft2_4FGL_J1248.3+5820_daily_bin54.fits


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

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

Done.
real 1.43
user 1.24
sys 0.16

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/907044/ft1_filtered_4FGL_J1248.3+5820_daily_bin54.fits" evtable="EVENTS" scfile=/scratch/kocevski/907044/ft2_4FGL_J1248.3+5820_daily_bin54.fits sctable="SC_DATA" outfile=/scratch/kocevski/907044/ltcube_253324801_253584001_4FGL_J1248.3+5820_daily_bin54.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/907044/ft2_4FGL_J1248.3+5820_daily_bin54.fits
.....................!
real 12.51
user 12.14
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/907044/ft1_filtered_4FGL_J1248.3+5820_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/907044/ft2_4FGL_J1248.3+5820_daily_bin54.fits sctable="SC_DATA" expcube=/scratch/kocevski/907044/ltcube_253324801_253584001_4FGL_J1248.3+5820_daily_bin54.fits outfile=/scratch/kocevski/907044/expmap_253324801_253584001_4FGL_J1248.3+5820_daily_bin54.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/907044/ltcube_253324801_253584001_4FGL_J1248.3+5820_daily_bin54.fits
.....................!
real 190.02
user 184.91
sys 4.78

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/907044/ft1_filtered_4FGL_J1248.3+5820_daily_bin54.fits scfile=/scratch/kocevski/907044/ft2_4FGL_J1248.3+5820_daily_bin54.fits outfile=/scratch/kocevski/907044/cmap_253324801_253584001_4FGL_J1248.3+5820_daily_bin54.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/907044/ft1_filtered_4FGL_J1248.3+5820_daily_bin54.fits scfile=/scratch/kocevski/907044/ft2_4FGL_J1248.3+5820_daily_bin54.fits outfile=/scratch/kocevski/907044/cmap_HighResolution_253324801_253584001_4FGL_J1248.3+5820_daily_bin54.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1661       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.107       1.0000         .10000E-03   10000.    
     5 'norm      '    6.0793       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.7299       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    117.35       1.0000         .10000E-03   10000.    
    11 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.1713       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.4404       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.113       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    43.387       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.5486       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .33518       1.0000         .10000E-03   10000.    
    26 'Prefactor '    37.167       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    2.5107       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    244.53       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0633       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .53327       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=   4312.175     FROM MIGRAD    STATUS=CONVERGED    880 CALLS     5263 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1662        7.0155        .22867E-07   -.11183E-03
   2  Prefactor     .10000E-03    7.3936       -.49775E-06** at limit **
   3  norm          .10000E-03    3.7255        .34934E-08** at limit **
   4  Prefactor     12.107        6.0441       -.78379E-06   -.21951E-02
   5  norm          6.0791        4.5972        .21053E-06    .15504E-03
   6  Prefactor     .10000E-03    8.1624       -.19019E-05** at limit **
   7  Prefactor     .10000E-03    17.483       -.81263E-05** at limit **
   8  norm          1.7300        1.7628       -.10158E-06   -.31461E-03
   9  Prefactor     .10000E-03    18.955        .15726E-05** at limit **
  10  Prefactor     117.33        81.352       -.77896E-05    .53440E-04
  11  norm          .10000E-03    7.7869        .22166E-05** at limit **
  12  Prefactor     .10000E-03    15.397        .47154E-05** at limit **
  13  Prefactor     .10000E-03    2.1501        .15357E-07** at limit **
  14  norm          2.1713        1.7599        .43594E-07    .12209E-03
  15  Prefactor     .10000E-03    27.738        .13352E-04** at limit **
  16  norm          2.4403        1.8203       -.43392E-07   -.19192E-04
  17  Prefactor     .10000E-03    153.20       -.81945E-05** at limit **
  18  Prefactor     16.112        13.183       -.62110E-06   -.18721E-04
  19  norm          .10000E-03    1.3195       -.53220E-08** at limit **
  20  Prefactor     43.380        76.022       -.80935E-05    .13385E-04
  21  Prefactor     .10000E-03    30.451       -.12462E-04** at limit **
  22  Prefactor     .10000E-03    8.7608        .11550E-06** at limit **
  23  norm          1.5492        3.9597       -.82860E-06   -.58465E-03
  24  Prefactor     .10000E-03    19.806        .76117E-05** at limit **
  25  Prefactor     .33574        3.5064        .89001E-07   -.11369E-03
  26  Prefactor     37.178        55.201        .93114E-05    .80721E-05
  27  Prefactor     .10000E-03    17.994       -.51908E-05** at limit **
  28  norm          .10000E-03    29.490       -.36645E-05** at limit **
  29  norm          2.5115        5.2220       -.18280E-05   -.54619E-03
  30  Prefactor     .10000E-03    69.523        .65283E-05** at limit **
  31  Prefactor     244.48        622.34       -.32825E-04    .75847E-06
  32  Normalizat    1.0632        .18395        .80024E-06   -.27377E-04
  33  Prefactor     .53336        .20502        .10381E-05   -.99024E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.16624
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.1067
  norm       = 6.07909
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.72997
  Prefactor  = 0.0001
  Prefactor  = 117.335
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.17132
  Prefactor  = 0.0001
  norm       = 2.44031
  Prefactor  = 0.0001
  Prefactor  = 16.1122
  norm       = 0.0001
  Prefactor  = 43.3804
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.54918
  Prefactor  = 0.0001
  Prefactor  = 0.335737
  Prefactor  = 37.1776
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.51148
  Prefactor  = 0.0001
  Prefactor  = 244.476
  Normalizat = 1.06322
  Prefactor  = 0.533359
 **********
 **   18 **HESSE 
 **********

 FCN=   4312.175     FROM HESSE     STATUS=OK           691 CALLS     5954 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1662        7.0499        .14030E-03   -1.5136    
   2  Prefactor     .10000E-03    7.3973        .17439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.7263        .12379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.107        6.2057        .56124E-03   -1.5012    
   5  norm          6.0791        4.5860        .11635E-03   -1.5215    
   6  Prefactor     .10000E-03    8.2503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.7300        1.7499        .84352E-04   -1.5445    
   9  Prefactor     .10000E-03    19.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     117.33        81.206        .37144E-04   -1.3537    
  11  norm          .10000E-03    7.9753        .35717E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.1544        .94015E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.1713        1.7629        .75734E-04   -1.5413    
  15  Prefactor     .10000E-03    27.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.4403        1.8219        .74280E-04   -1.5396    
  17  Prefactor     .10000E-03    154.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.112        13.222        .99777E-04   -1.4905    
  19  norm          .10000E-03    1.3229        .73660E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     43.380        75.678        .60863E-04   -1.4390    
  21  Prefactor     .10000E-03    30.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.7673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.5492        3.9562        .20078E-03   -1.5459    
  24  Prefactor     .10000E-03    19.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .33574        19.725        .22439E-02   -1.5592    
  26  Prefactor     37.178        55.361        .65740E-04   -1.4488    
  27  Prefactor     .10000E-03    18.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    29.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          2.5115        5.2640        .20370E-03   -1.5391    
  30  Prefactor     .10000E-03    69.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     244.48        622.58        .12949E-03   -1.2568    
  32  Normalizat    1.0632        .21904        .19240E-03   -.90942    
  33  Prefactor     .53336        .23850        .31292E-03   -1.1047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42483e-09
Minuit parameter uncertainties:
  1  7.05066
  2  1.95169e-06
  3  2.17682e-07
  4  6.20601
  5  4.58629
  6  5.98896e-05
  7  8.41071e-05
  8  1.74997
  9  3.18288e-05
  10  81.2832
  11  4.28914e-05
  12  3.98748e-05
  13  6.55179e-07
  14  1.76299
  15  0.000127856
  16  1.82197
  17  0.000150794
  18  13.2244
  19  1.12965e-06
  20  75.8458
  21  2.57341e-06
  22  8.25965e-06
  23  3.95691
  24  2.17114e-05
  25  5.14788
  26  55.4379
  27  4.85421e-05
  28  1.43444e-06
  29  5.26496
  30  9.38605e-06
  31  640.808
  32  0.219231
  33  0.238945
Done.

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

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  2.171e+00  1.763e+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:  5.334e-01  2.389e-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.063e+00  2.192e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.01
Ra Dec: 192.084 58.343
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 1.92e-08 +/- 1.56e-08
Energy Flux (Fixed Index): 1.92e-05 +/- 1.56e-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) = 4312.0912167
delta logL = 0.0834038719022

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4312.08354891
delta logL = 0.09107165962

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9372       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5212       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0691       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53111       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=   4312.084     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      203 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9351        1.6882        .74582E-02   -.13080E-03
   2  alpha         1.5205        .52673        .37044       -.18216E-04
   3  Normalizat    1.0690        .17173        .39426E-01   -.12620E-04
   4  Prefactor     .53100        .20395        .70855E-01    .15569E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.93507
  alpha      = 1.52046
  Normalizat = 1.069
  Prefactor  = 0.530998
 **********
 **   18 **HESSE 
 **********

 FCN=   4312.084     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9351        1.8480        .75246E-04   -1.5430    
   2  alpha         1.5205        .65424        .14269E-01   -.40260    
   3  Normalizat    1.0690        .19828        .19199E-03   -.90753    
   4  Prefactor     .53100        .23520        .31367E-03   -1.1057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.11376e-10
Minuit parameter uncertainties:
  1  1.84805
  2  0.663394
  3  0.198421
  4  0.235633
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/907044': 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) = 4312.08354595
delta logL = 0.0910746212921

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  1.935e+00  1.848e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  1.520e+00  6.634e-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:  5.310e-01  2.356e-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.069e+00  1.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.18
Ra Dec: 192.084 58.343
Photon Index (Free Index): 1.52 +/- 0.66
Photon Flux (Free Index): 1.29e-08 +/- 1.61e-08
Energy Flux (Free Index): 2.89e-05 +/- 3.90e-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/907044/cmap_HighResolution_253324801_253584001_4FGL_J1248.3+5820_daily_bin54.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.92e-08', energy_flux2='2.89e-05', photon_flux_error='1.56e-08', dlogl='9.11e-02', energy_flux='1.92e-05', photon_flux2='1.29e-08', job_status='DONE', time_completed='2021-09-06 05:16:07.042000', photon_index_error2='0.66', photon_index2='1.52', ts='9.01', fit_tolerance='1e-08', GAL='0.53', photon_index_error='0.00', energy_flux_error2='3.90e-05', EG='1.06', time_epoch_completed='1630930567.04', return_code='0', job_id='907044', GAL2='0.53', EG2='1.07', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='1.61e-08', ts2='9.18', photon_index='1.81' WHERE bin_id='54' AND source_name='4FGL J1248.3+5820' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:16:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 907044: <4FGL_J1248.3+5820_daily_bin54> in cluster <slac> Done

Job <4FGL_J1248.3+5820_daily_bin54> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 05:00:57 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:00:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 05:00:59 2021
Terminated at Mon Sep  6 05:16:07 2021
Results reported at Mon Sep  6 05:16:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.3+5820_daily_bin54 192.084 58.3432 253324801 253584001 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 :                                   770.04 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             253.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            910 sec.

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

