/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 8 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 = 7426
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1248.3+5820_daily_bin281
RA = 192.084, Dec = 58.3432
tmin = 312163201, tmax = 312422401
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='908350', job_status='RUN', time_executed='2021-09-06 05:05:51.647678', time_epoch_executed='1630929951.65' WHERE source_name='4FGL J1248.3+5820' and cadence='daily' and bin_id='281'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/908350

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/908350/ft1_4FGL_J1248.3+5820_daily_bin281.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/908350/ft2_4FGL_J1248.3+5820_daily_bin281.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/908350/ft1_4FGL_J1248.3+5820_daily_bin281.fits outfile=/scratch/kocevski/908350/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin281.fits ra=192.084 dec=58.3432 rad=12.0 tmin=312163201.0 tmax=312422401.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.46
user 3.22
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/908350/ft2_4FGL_J1248.3+5820_daily_bin281.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/908350/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin281.fits evtable="EVENTS" outfile="/scratch/kocevski/908350/ft1_filtered_4FGL_J1248.3+5820_daily_bin281.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.50
user 0.34
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/908350/ft1_filtered_4FGL_J1248.3+5820_daily_bin281.fits evtable="EVENTS" scfile=/scratch/kocevski/908350/ft2_4FGL_J1248.3+5820_daily_bin281.fits sctable="SC_DATA" expcube=/scratch/kocevski/908350/ltcube_312163201_312422401_4FGL_J1248.3+5820_daily_bin281.fits outfile=/scratch/kocevski/908350/expmap_312163201_312422401_4FGL_J1248.3+5820_daily_bin281.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/908350/ltcube_312163201_312422401_4FGL_J1248.3+5820_daily_bin281.fits
.....................!
real 190.77
user 185.32
sys 4.97

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/908350/ft1_filtered_4FGL_J1248.3+5820_daily_bin281.fits scfile=/scratch/kocevski/908350/ft2_4FGL_J1248.3+5820_daily_bin281.fits outfile=/scratch/kocevski/908350/cmap_312163201_312422401_4FGL_J1248.3+5820_daily_bin281.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.38
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3487       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12224E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.5445       1.0000         .10000E-03   10000.    
     5 'norm      '    6.5413       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10251E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.7615       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.368       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .55867       1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.4314       1.0000         .10000E-03   10000.    
    14 'norm      '    5.4334       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11472E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.1293       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10614E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.6430       1.0000         .10000E-03   10000.    
    19 'norm      '    12.821       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10302E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .81900       1.0000         .10000E-03   10000.    
    24 'Prefactor '    38.642       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10843E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10558E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.7225       1.0000         .10000E-03   10000.    
    28 'norm      '    .11905E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .12651E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .88747       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0989       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6926.730     FROM MIGRAD    STATUS=CONVERGED    155 CALLS     3835 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3427        5.2900       -.27853E-04   -.10581E-02
   2  Prefactor     .10001E-03    97.627        .84383E-04** at limit **
   3  norm          .10000E-03    4.2078       -.78327E-06** at limit **
   4  Prefactor     9.5452        3.0207        .53665E-05    .23796E-02
   5  norm          6.5405        4.5631        .19766E-05    .64124E-03
   6  Prefactor     .10000E-03    2.5061       -.83895E-06** at limit **
   7  Prefactor     .10000E-03    10.059        .85704E-06** at limit **
   8  norm          9.7612        2.8014       -.60736E-06   -.55527E-03
   9  Prefactor     11.368        1.0418        .46181E-06   -.12826E-03
  10  Prefactor     .39113        377.11       -.19397E-03    .10195E-02
  11  norm          .10000E-03    2.6578       -.61260E-06** at limit **
  12  Prefactor     .10001E-03    38.696        .16105E-04** at limit **
  13  Prefactor     3.4279        1.1860        .14497E-05    .28054E-03
  14  norm          5.4346        2.4085        .87791E-07    .40423E-03
  15  Prefactor     .10123E-03    24.250        .88797E-05** at limit **
  16  norm          3.1292        1.8618       -.49873E-06   -.43668E-03
  17  Prefactor     .10035E-03    14.061        .12606E-04** at limit **
  18  Prefactor     5.6446        1.0478        .52122E-06    .62242E-03
  19  norm          12.820        5.1388        .17997E-05    .10718E-02
  20  Prefactor     .10036E-03    18.759       -.54260E-05** at limit **
  21  Prefactor     .10000E-03    13.735       -.59326E-05** at limit **
  22  Prefactor     .10116E-03    8.9887       -.66561E-05** at limit **
  23  norm          .81849        3.3902       -.94605E-06    .49524E-04
  24  Prefactor     38.658        2.4036        .14233E-05    .16251E-03
  25  Prefactor     .10000E-03    4.4674        .15314E-05** at limit **
  26  Prefactor     .10004E-03    30.008       -.24150E-04** at limit **
  27  Prefactor     7.7351        2.0808        .36664E-06    .57325E-02
  28  norm          .10014E-03    31.775       -.27798E-04** at limit **
  29  norm          .10000E-03    7.1990        .42474E-05** at limit **
  30  Prefactor     .10000E-03    8.8030       -.46389E-05** at limit **
  31  Prefactor     .15211E-03    179.42       -.85379E-04** at limit **
  32  Normalizat    .88742        .17728        .38630E-05    .22720E-03
  33  Prefactor     1.0990        .21709       -.77998E-06    .21377E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.3427
  Prefactor  = 0.000100007
  norm       = 0.0001
  Prefactor  = 9.54516
  norm       = 6.54053
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 9.76116
  Prefactor  = 11.3685
  Prefactor  = 0.39113
  norm       = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 3.42793
  norm       = 5.43458
  Prefactor  = 0.000101232
  norm       = 3.12919
  Prefactor  = 0.000100354
  Prefactor  = 5.64459
  norm       = 12.82
  Prefactor  = 0.000100364
  Prefactor  = 0.000100001
  Prefactor  = 0.000101157
  norm       = 0.818489
  Prefactor  = 38.6578
  Prefactor  = 0.0001
  Prefactor  = 0.000100041
  Prefactor  = 7.73507
  norm       = 0.000100145
  norm       = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.000152108
  Normalizat = 0.887422
  Prefactor  = 1.09904
 **********
 **   18 **HESSE 
 **********

 FCN=   6926.730     FROM HESSE     STATUS=OK           783 CALLS     4618 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3427        7.2385        .94213E-02   -1.5476    
   2  Prefactor     .10001E-03    114.64        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.2055        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.5452        5.7212        .32429E-02   -1.5090    
   5  norm          6.5405        4.6062        .39228E-02   -1.5196    
   6  Prefactor     .10000E-03    2.5044        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.027        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.7612        2.8085        .32065E-02   -1.5083    
   9  Prefactor     11.368        13.036        .29705E-02   -1.5033    
  10  Prefactor     .39113        37.872        .16212       -1.5583    
  11  norm          .10000E-03    2.6455        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    37.990        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.4279        6.5788        .54589E-02   -1.5338    
  14  norm          5.4346        2.6078        .43097E-02   -1.5242    
  15  Prefactor     .10123E-03    82.302        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.1292        1.8619        .57295E-02   -1.5354    
  17  Prefactor     .10035E-03    17.632        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.6446        7.5798        .42276E-02   -1.5233    
  19  norm          12.820        5.2147        .27968E-02   -1.4992    
  20  Prefactor     .10036E-03    21.988        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.946        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10116E-03    19.336        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .81849        3.4449        .12511E-01   -1.5527    
  24  Prefactor     38.658        49.438        .16119E-02   -1.4464    
  25  Prefactor     .10000E-03    2.6862        .39527E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10004E-03    78.175        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     7.7351        8.5745        .36075E-02   -1.5152    
  28  norm          .10014E-03    77.959        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    2.1135        .62993E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    8.8212        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .15211E-03    299.17        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .88742        .15824        .44741E-01   -.96904    
  33  Prefactor     1.0990        .18426        .61257E-01   -.89497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0112e-06
Minuit parameter uncertainties:
  1  6.23605
  2  0.00183318
  3  2.84131e-05
  4  5.72154
  5  4.60649
  6  1.1342e-05
  7  0.000197175
  8  2.80856
  9  13.0392
  10  7.70154
  11  8.02687e-06
  12  0.00139157
  13  6.58015
  14  2.60788
  15  0.0201675
  16  1.86189
  17  0.00499557
  18  7.58108
  19  5.21484
  20  0.00566387
  21  0.000211941
  22  0.00946386
  23  3.35847
  24  49.4907
  25  3.16141e-05
  26  0.00359967
  27  8.57589
  28  0.00673299
  29  7.25917e-05
  30  0.000245667
  31  0.250975
  32  0.158322
  33  0.18437
Done.

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

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  5.435e+00  2.608e+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.099e+00  1.844e-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:  8.874e-01  1.583e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.80
Ra Dec: 192.084 58.343
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 4.80e-08 +/- 2.30e-08
Energy Flux (Fixed Index): 4.80e-05 +/- 2.30e-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) = 6926.38559475
delta logL = 0.344295975591

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6926.38261325
delta logL = 0.347277473067

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0370       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1258       1.0000          .0000       5.0000    
     3 'Normalizat'    .86439       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1138       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6926.383     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      272 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0370        2.4092        .75133E-04    .94495E-03
   2  alpha         2.1258        .38549        .92406E-02    .50975E-04
   3  Normalizat    .86439        .17529        .24112E-03   -.23622E-04
   4  Prefactor     1.1138        .21722        .26920E-03   -.31336E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.03698
  alpha      = 2.12581
  Normalizat = 0.864392
  Prefactor  = 1.11382
 **********
 **   18 **HESSE 
 **********

 FCN=   6926.383     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0370        2.3662        .30053E-05   -1.5259    
   2  alpha         2.1258        .37838        .36962E-03   -.15024    
   3  Normalizat    .86439        .17537        .96446E-05   -.97723    
   4  Prefactor     1.1138        .21739        .10768E-04   -.89026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.57595e-11
Minuit parameter uncertainties:
  1  2.36629
  2  0.379875
  3  0.175485
  4  0.217568
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/908350': 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) = 6926.38261325
delta logL = 0.347277478606

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  5.037e+00  2.366e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  2.126e+00  3.799e-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.114e+00  2.176e-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:  8.644e-01  1.755e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.47
Ra Dec: 192.084 58.343
Photon Index (Free Index): 2.13 +/- 0.38
Photon Flux (Free Index): 6.80e-08 +/- 3.71e-08
Energy Flux (Free Index): 3.44e-05 +/- 1.82e-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/908350/cmap_HighResolution_312163201_312422401_4FGL_J1248.3+5820_daily_bin281.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.80e-08', energy_flux2='3.44e-05', photon_flux_error='2.30e-08', dlogl='3.47e-01', energy_flux='4.80e-05', photon_flux2='6.80e-08', job_status='DONE', time_completed='2021-09-06 05:21:22.733130', photon_index_error2='0.38', photon_index2='2.13', ts='17.80', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='1.82e-05', EG='0.89', time_epoch_completed='1630930882.73', return_code='0', job_id='908350', GAL2='1.11', EG2='0.86', return_code2='0', energy_flux_error='2.30e-05', photon_flux_error2='3.71e-08', ts2='18.47', photon_index='1.81' WHERE bin_id='281' AND source_name='4FGL J1248.3+5820' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:21:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 908350: <4FGL_J1248.3+5820_daily_bin281> in cluster <slac> Done

Job <4FGL_J1248.3+5820_daily_bin281> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 05:05:32 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:05:34 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:05:34 2021
Terminated at Mon Sep  6 05:21:23 2021
Results reported at Mon Sep  6 05:21:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.3+5820_daily_bin281 192.084 58.3432 312163201 312422401 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 :                                   924.07 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             343.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            951 sec.

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

