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


Performing analysis on: 4FGL_J1248.3+5820_daily_bin1285
RA = 192.084, Dec = 58.3432
tmin = 572400001, tmax = 572659201
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='914679', job_status='RUN', time_executed='2021-09-06 05:27:53.177004', time_epoch_executed='1630931273.18' WHERE source_name='4FGL J1248.3+5820' and cadence='daily' and bin_id='1285'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/914679

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/914679/ft1_4FGL_J1248.3+5820_daily_bin1285.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/914679/ft2_4FGL_J1248.3+5820_daily_bin1285.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/914679/ft1_4FGL_J1248.3+5820_daily_bin1285.fits outfile=/scratch/kocevski/914679/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin1285.fits ra=192.084 dec=58.3432 rad=12.0 tmin=572400001.0 tmax=572659201.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.24
user 2.87
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/914679/ft1_filtered_4FGL_J1248.3+5820_daily_bin1285.fits evtable="EVENTS" scfile=/scratch/kocevski/914679/ft2_4FGL_J1248.3+5820_daily_bin1285.fits sctable="SC_DATA" expcube=/scratch/kocevski/914679/ltcube_572400001_572659201_4FGL_J1248.3+5820_daily_bin1285.fits outfile=/scratch/kocevski/914679/expmap_572400001_572659201_4FGL_J1248.3+5820_daily_bin1285.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/914679/ltcube_572400001_572659201_4FGL_J1248.3+5820_daily_bin1285.fits
.....................!
real 157.73
user 152.37
sys 4.44

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/914679/ft1_filtered_4FGL_J1248.3+5820_daily_bin1285.fits scfile=/scratch/kocevski/914679/ft2_4FGL_J1248.3+5820_daily_bin1285.fits outfile=/scratch/kocevski/914679/cmap_572400001_572659201_4FGL_J1248.3+5820_daily_bin1285.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.47
user 0.31
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/914679/ft1_filtered_4FGL_J1248.3+5820_daily_bin1285.fits scfile=/scratch/kocevski/914679/ft2_4FGL_J1248.3+5820_daily_bin1285.fits outfile=/scratch/kocevski/914679/cmap_HighResolution_572400001_572659201_4FGL_J1248.3+5820_daily_bin1285.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.47
user 0.31
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    35.819       1.0000         .10000E-03   10000.    
     3 'norm      '    .10877E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6400       1.0000         .10000E-03   10000.    
     5 'norm      '    .10671E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.581       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.828       1.0000         .10000E-03   10000.    
     8 'norm      '    .10253E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.3473       1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.708       1.0000         .10000E-03   10000.    
    11 'norm      '    .11192E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.3666       1.0000         .10000E-03   10000.    
    14 'norm      '    4.0968       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11071E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.2122       1.0000         .10000E-03   10000.    
    17 'Prefactor '    37.929       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13041E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.8003       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .50791E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .31453E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.547       1.0000         .10000E-03   10000.    
    23 'norm      '    .12409E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .16908E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .13998E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .12563       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .24791E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    7.4894       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .14063E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .60777E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0074       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0606       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=   6882.856     FROM MIGRAD    STATUS=CONVERGED    937 CALLS     4606 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7280       -.48666E-06** at limit **
   2  Prefactor     35.893        23.006        .11651E-04    .27587E-04
   3  norm          .10000E-03    2.6718        .18678E-07** at limit **
   4  Prefactor     2.6396        3.3761       -.49300E-06   -.36153E-03
   5  norm          .10000E-03    2.0994       -.73490E-07** at limit **
   6  Prefactor     10.589        7.5289       -.17897E-05    .11555E-04
   7  Prefactor     16.804        19.118        .38412E-05    .20529E-04
   8  norm          .10000E-03    .84215       -.75914E-07** at limit **
   9  Prefactor     9.3519        14.064       -.13088E-06    .22114E-04
  10  Prefactor     34.798        36.778       -.21585E-04    .24770E-04
  11  norm          .10000E-03    2.4914       -.80042E-07** at limit **
  12  Prefactor     .10000E-03    5.0723       -.12793E-07** at limit **
  13  Prefactor     9.3740        7.2036        .57796E-06    .47169E-05
  14  norm          4.0953        2.3375        .22421E-07    .17023E-03
  15  Prefactor     .10000E-03    13.252        .17327E-06** at limit **
  16  norm          2.2141        2.0415       -.23058E-06   -.20222E-03
  17  Prefactor     38.054        42.149       -.36946E-04    .35820E-04
  18  Prefactor     .10000E-03    3.1451       -.18723E-07** at limit **
  19  norm          3.8018        4.3774       -.29903E-06   -.99141E-04
  20  Prefactor     .10000E-03    38.088       -.63340E-04** at limit **
  21  Prefactor     .10000E-03    168.48       -.32675E-04** at limit **
  22  Prefactor     12.643        19.627       -.98930E-05    .83866E-04
  23  norm          .10000E-03    3.8052        .56838E-06** at limit **
  24  Prefactor     .10000E-03    18.597       -.75808E-06** at limit **
  25  Prefactor     .10000E-03    3.8984       -.11214E-06** at limit **
  26  Prefactor     .15611E-03    25.193       -.52181E-05** at limit **
  27  Prefactor     .10000E-03    4.8482       -.33756E-07** at limit **
  28  norm          .10000E-03    27.040        .95411E-05** at limit **
  29  norm          7.4919        4.8623        .40087E-06    .16536E-03
  30  Prefactor     .10000E-03    11.807       -.15751E-06** at limit **
  31  Prefactor     .10000E-03    126.97       -.14378E-04** at limit **
  32  Normalizat    1.0070        .15638        .32328E-05    .57669E-03
  33  Prefactor     1.0610        .18987        .17647E-05    .57671E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 35.8927
  norm       = 0.0001
  Prefactor  = 2.63965
  norm       = 0.0001
  Prefactor  = 10.5893
  Prefactor  = 16.804
  norm       = 0.0001
  Prefactor  = 9.3519
  Prefactor  = 34.7981
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.37404
  norm       = 4.09534
  Prefactor  = 0.0001
  norm       = 2.21406
  Prefactor  = 38.0539
  Prefactor  = 0.0001
  norm       = 3.80184
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 12.6426
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000156107
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.49189
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.00696
  Prefactor  = 1.06096
 **********
 **   18 **HESSE 
 **********

 FCN=   6882.856     FROM HESSE     STATUS=OK           697 CALLS     5303 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7874        .17610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     35.893        23.010        .66961E-04   -1.4509    
   3  norm          .10000E-03    2.6720        .13244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.6396        3.3654        .16737E-03   -1.5383    
   5  norm          .10000E-03    2.1251        .11716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.589        7.5157        .12317E-03   -1.5057    
   7  Prefactor     16.804        19.102        .97634E-04   -1.4888    
   8  norm          .10000E-03    .86249        .14856E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.3519        14.068        .13108E-03   -1.5096    
  10  Prefactor     34.798        36.774        .34011E-03   -1.4527    
  11  norm          .10000E-03    2.5123        .12787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.0766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.3740        7.2042        .13095E-03   -1.5096    
  14  norm          4.0953        2.3362        .88626E-04   -1.5303    
  15  Prefactor     .10000E-03    13.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.2141        2.0355        .10979E-03   -1.5410    
  17  Prefactor     38.054        42.200        .65079E-04   -1.4473    
  18  Prefactor     .10000E-03    3.1505        .14366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.8018        4.3665        .17874E-03   -1.5318    
  20  Prefactor     .10000E-03    38.163        .21150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    169.99        .21370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.643        19.557        .11309E-03   -1.4997    
  23  norm          .10000E-03    3.8388        .15725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    18.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.0554        .31936E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .15611E-03    27.449        .12528       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    4.8809        .17834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    27.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          7.4919        4.8596        .14051E-03   -1.5160    
  30  Prefactor     .10000E-03    11.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    126.97        .21057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0070        .18732        .22864E-03   -.92798    
  33  Prefactor     1.0610        .22694        .27824E-03   -.90724    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40944e-09
Minuit parameter uncertainties:
  1  0.000109952
  2  23.0155
  3  4.43716e-06
  4  3.36568
  5  6.03054e-06
  6  7.51635
  7  19.1088
  8  9.6265e-06
  9  14.0725
  10  36.7981
  11  1.05552e-05
  12  8.54354e-06
  13  7.2049
  14  2.33629
  15  3.84556e-05
  16  2.03557
  17  42.2331
  18  1.12064e-06
  19  4.36691
  20  6.50014e-05
  21  0.0012808
  22  19.5673
  23  0.000114286
  24  2.72129e-05
  25  5.0749e-06
  26  0.0785238
  27  9.95576e-06
  28  5.52971e-06
  29  4.85988
  30  6.845e-06
  31  2.19652e-05
  32  0.187441
  33  0.227141
Done.

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

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  4.095e+00  2.336e+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:  1.061e+00  2.271e-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.007e+00  1.874e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.20
Ra Dec: 192.084 58.343
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 3.61e-08 +/- 2.06e-08
Energy Flux (Fixed Index): 3.62e-05 +/- 2.06e-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) = 6882.48407679
delta logL = 0.372164968064

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6882.48243058
delta logL = 0.373811184695

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7489       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2178       1.0000          .0000       5.0000    
     3 'Normalizat'    .98162       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0775       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=   6882.482     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      260 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7481        32.205        .52132E-02    .77249E-03
   2  alpha         2.2174        3.6049        .28681        .12050E-03
   3  Normalizat    .98168        .85099E-01    .45936E-01    .64645E-04
   4  Prefactor     1.0775        .76546E-01    .62448E-01    .40326E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.74806
  alpha      = 2.21737
  Normalizat = 0.981676
  Prefactor  = 1.0775
 **********
 **   18 **HESSE 
 **********

 FCN=   6882.482     FROM HESSE     STATUS=OK            33 CALLS      293 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7481        2.1975        .75781E-04   -1.5321    
   2  alpha         2.2174        .48075        .10172E-01   -.11329    
   3  Normalizat    .98168        .18474        .23103E-03   -.93647    
   4  Prefactor     1.0775        .22775        .27620E-03   -.90189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47593e-10
Minuit parameter uncertainties:
  1  2.19752
  2  0.483804
  3  0.184865
  4  0.227953
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/914679': 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) = 6882.48242971
delta logL = 0.37381205311

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  3.748e+00  2.198e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  2.217e+00  4.838e-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:  1.078e+00  2.280e-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.817e-01  1.849e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.96
Ra Dec: 192.084 58.343
Photon Index (Free Index): 2.22 +/- 0.48
Photon Flux (Free Index): 5.82e-08 +/- 3.80e-08
Energy Flux (Free Index): 2.53e-05 +/- 1.49e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/914679/cmap_HighResolution_572400001_572659201_4FGL_J1248.3+5820_daily_bin1285.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.61e-08', energy_flux2='2.53e-05', photon_flux_error='2.06e-08', dlogl='3.74e-01', energy_flux='3.62e-05', photon_flux2='5.82e-08', job_status='DONE', time_completed='2021-09-06 05:41:56.116006', photon_index_error2='0.48', photon_index2='2.22', ts='9.20', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='1.49e-05', EG='1.01', time_epoch_completed='1630932116.12', return_code='0', job_id='914679', GAL2='1.08', EG2='0.98', return_code2='0', energy_flux_error='2.06e-05', photon_flux_error2='3.80e-08', ts2='9.96', photon_index='1.81' WHERE bin_id='1285' AND source_name='4FGL J1248.3+5820' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:41:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 914679: <4FGL_J1248.3+5820_daily_bin1285> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.3+5820_daily_bin1285 192.084 58.3432 572400001 572659201 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 :                                   827.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            985 sec.

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

