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


Performing analysis on: 4FGL_J1248.3+5820_daily_bin590
RA = 192.084, Dec = 58.3432
tmin = 392256001, tmax = 392515201
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='910271', job_status='RUN', time_executed='2021-09-06 05:11:17.253290', time_epoch_executed='1630930277.25' WHERE source_name='4FGL J1248.3+5820' and cadence='daily' and bin_id='590'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/910271

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/910271/ft1_4FGL_J1248.3+5820_daily_bin590.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/910271/ft2_4FGL_J1248.3+5820_daily_bin590.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/910271/ft1_4FGL_J1248.3+5820_daily_bin590.fits outfile=/scratch/kocevski/910271/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin590.fits ra=192.084 dec=58.3432 rad=12.0 tmin=392256001.0 tmax=392515201.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.39
user 3.16
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/910271/ft2_4FGL_J1248.3+5820_daily_bin590.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/910271/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin590.fits evtable="EVENTS" outfile="/scratch/kocevski/910271/ft1_filtered_4FGL_J1248.3+5820_daily_bin590.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.56
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/910271/ft1_filtered_4FGL_J1248.3+5820_daily_bin590.fits" evtable="EVENTS" scfile=/scratch/kocevski/910271/ft2_4FGL_J1248.3+5820_daily_bin590.fits sctable="SC_DATA" outfile=/scratch/kocevski/910271/ltcube_392256001_392515201_4FGL_J1248.3+5820_daily_bin590.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/910271/ft2_4FGL_J1248.3+5820_daily_bin590.fits
.....................!
real 13.95
user 13.51
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/910271/ft1_filtered_4FGL_J1248.3+5820_daily_bin590.fits evtable="EVENTS" scfile=/scratch/kocevski/910271/ft2_4FGL_J1248.3+5820_daily_bin590.fits sctable="SC_DATA" expcube=/scratch/kocevski/910271/ltcube_392256001_392515201_4FGL_J1248.3+5820_daily_bin590.fits outfile=/scratch/kocevski/910271/expmap_392256001_392515201_4FGL_J1248.3+5820_daily_bin590.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/910271/ltcube_392256001_392515201_4FGL_J1248.3+5820_daily_bin590.fits
.....................!
real 190.34
user 185.12
sys 4.61

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/910271/ft1_filtered_4FGL_J1248.3+5820_daily_bin590.fits scfile=/scratch/kocevski/910271/ft2_4FGL_J1248.3+5820_daily_bin590.fits outfile=/scratch/kocevski/910271/cmap_392256001_392515201_4FGL_J1248.3+5820_daily_bin590.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/910271/ft1_filtered_4FGL_J1248.3+5820_daily_bin590.fits scfile=/scratch/kocevski/910271/ft2_4FGL_J1248.3+5820_daily_bin590.fits outfile=/scratch/kocevski/910271/cmap_HighResolution_392256001_392515201_4FGL_J1248.3+5820_daily_bin590.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/910271/ft1_filtered_4FGL_J1248.3+5820_daily_bin590.fits evtable="EVENTS" scfile=/scratch/kocevski/910271/ft2_4FGL_J1248.3+5820_daily_bin590.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/910271/Model_4FGL_J1248.3+5820_daily_bin590.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/910271/ft1_filtered_4FGL_J1248.3+5820_daily_bin590.fits.....................!
real 54.39
user 52.56
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44529       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.2882       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.7197       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.6643       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.4062       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16099E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.983       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.192       1.0000         .10000E-03   10000.    
    14 'norm      '    8.5698       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.397       1.0000         .10000E-03   10000.    
    16 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.222       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10093E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14590E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.542       1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.5404       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .94098E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    38.211       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .84065       1.0000         .10000E-03   10000.    
    28 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10362E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    871.72       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .94249       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .99477       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=   5771.225     FROM MIGRAD    STATUS=CONVERGED    936 CALLS     4699 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44242        6.1707        .16741E-06   -.53074E-04
   2  Prefactor     .10000E-03    14.459        .29594E-07** at limit **
   3  norm          4.2934        10.107        .76753E-07   -.99352E-05
   4  Prefactor     .10000E-03    1.8958        .51965E-07** at limit **
   5  norm          7.7218        5.2710        .43743E-06   -.75939E-04
   6  Prefactor     3.6637        5.5516        .27127E-05   -.46330E-04
   7  Prefactor     .10000E-03    9.6581       -.67217E-07** at limit **
   8  norm          3.4061        3.1153        .10949E-06   -.70870E-04
   9  Prefactor     .10000E-03    11.482        .15595E-06** at limit **
  10  Prefactor     .10000E-03    44.683        .30485E-07** at limit **
  11  norm          .10000E-03    3.4742        .13691E-07** at limit **
  12  Prefactor     11.976        16.147        .10973E-06   -.14852E-04
  13  Prefactor     18.190        10.326       -.82654E-08   -.69291E-04
  14  norm          8.5685        3.9134        .28951E-07   -.75794E-04
  15  Prefactor     17.392        19.965        .58623E-07   -.24453E-05
  16  norm          .10000E-03    1.2553        .29312E-06** at limit **
  17  Prefactor     25.224        23.844        .42895E-07   -.79340E-05
  18  Prefactor     .10000E-03    12.132        .25835E-06** at limit **
  19  norm          .10011E-03    2.3215       -.20712E-06** at limit **
  20  Prefactor     .10000E-03    249.07        .75318E-05** at limit **
  21  Prefactor     .10000E-03    23.076        .77743E-07** at limit **
  22  Prefactor     20.545        14.877       -.13312E-06   -.14790E-04
  23  norm          .10000E-03    1.3089        .20720E-07** at limit **
  24  Prefactor     2.2916        357.61        .63193E-05   -.16682E-05
  25  Prefactor     .10013E-03    2.6752        .49155E-06** at limit **
  26  Prefactor     38.246        39.348       -.25451E-06   -.55482E-05
  27  Prefactor     .86984        6.5093        .10913E-06   -.16817E-03
  28  norm          .10000E-03    28.986       -.11858E-07** at limit **
  29  norm          .10000E-03    1.3253        .50596E-08** at limit **
  30  Prefactor     .10000E-03    145.40       -.69187E-06** at limit **
  31  Prefactor     870.97        554.43       -.11038E-05   -.40111E-04
  32  Normalizat    .94282        .17504       -.85839E-06   -.22495E-03
  33  Prefactor     .99425        .20269       -.36091E-06   -.19052E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.442416
  Prefactor  = 0.0001
  norm       = 4.29337
  Prefactor  = 0.0001
  norm       = 7.72181
  Prefactor  = 3.66371
  Prefactor  = 0.0001
  norm       = 3.40611
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.9762
  Prefactor  = 18.1899
  norm       = 8.56852
  Prefactor  = 17.3924
  norm       = 0.0001
  Prefactor  = 25.2241
  Prefactor  = 0.0001
  norm       = 0.000100113
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 20.5449
  norm       = 0.0001
  Prefactor  = 2.29158
  Prefactor  = 0.00010013
  Prefactor  = 38.2463
  Prefactor  = 0.86984
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 870.968
  Normalizat = 0.942824
  Prefactor  = 0.994253
 **********
 **   18 **HESSE 
 **********

 FCN=   5771.225     FROM HESSE     STATUS=OK           705 CALLS     5404 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44242        21.926        .35975E-02   -1.5575    
   2  Prefactor     .10000E-03    14.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.2934        10.102        .19455E-03   -1.5294    
   4  Prefactor     .10000E-03    1.9035        .10214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.7218        5.2624        .68127E-03   -1.5152    
   6  Prefactor     3.6637        5.5292        .10551E-02   -1.5325    
   7  Prefactor     .10000E-03    9.6716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.4061        3.1069        .11874E-03   -1.5339    
   9  Prefactor     .10000E-03    11.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    44.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.4931        .13820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.976        16.143        .11572E-03   -1.5016    
  13  Prefactor     18.190        10.352        .93903E-04   -1.4855    
  14  norm          8.5685        3.9160        .89654E-04   -1.5122    
  15  Prefactor     17.392        19.931        .96024E-04   -1.4874    
  16  norm          .10000E-03    1.9569        .16467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     25.224        23.847        .79763E-04   -1.4703    
  18  Prefactor     .10000E-03    12.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10011E-03    43.923        .22236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    257.47        .40985E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    23.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     20.545        14.837        .88371E-04   -1.4801    
  23  norm          .10000E-03    1.3126        .84819E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.2916        355.57        .25622E-03   -1.5405    
  25  Prefactor     .10013E-03    44.199        .20410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     38.246        39.237        .64839E-04   -1.4470    
  27  Prefactor     .86984        17.631        .31954E-02   -1.5521    
  28  norm          .10000E-03    28.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    1.3326        .85366E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    149.01        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     870.97        556.05        .70900E-04   -.97163    
  32  Normalizat    .94282        .20412        .22757E-03   -.94971    
  33  Prefactor     .99425        .23834        .27607E-03   -.92921    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.48863e-08
Minuit parameter uncertainties:
  1  6.23082
  2  3.15457e-06
  3  10.1061
  4  1.21541e-06
  5  5.26272
  6  5.52994
  7  1.7782e-05
  8  3.10705
  9  1.15323e-06
  10  2.84032e-05
  11  2.72265e-06
  12  16.1493
  13  10.353
  14  3.91607
  15  19.9389
  16  7.29084e-06
  17  23.8557
  18  1.30637e-05
  19  0.0044636
  20  0.00119465
  21  1.53892e-05
  22  14.8396
  23  1.29384e-06
  24  57.4396
  25  0.00480112
  26  39.263
  27  7.83451
  28  4.02583e-06
  29  5.15722e-07
  30  5.72892e-05
  31  559.719
  32  0.204291
  33  0.238594
Done.

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

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  8.569e+00  3.916e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  1.811e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
366         beta:  4.589e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
367           Eb:  1.135e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
695    Prefactor:  9.943e-01  2.386e-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.428e-01  2.043e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.06
Ra Dec: 192.084 58.343
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 7.56e-08 +/- 3.46e-08
Energy Flux (Fixed Index): 7.57e-05 +/- 3.46e-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) = 5769.14142906
delta logL = 2.08394910934

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5769.13636441
delta logL = 2.08901375622

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1881       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9434       1.0000          .0000       5.0000    
     3 'Normalizat'    .82463       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0931       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=   5769.136     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      250 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1877        14.142        .56736E-03    .16019E-02
   2  alpha         2.9436        2.0432        .12905        .84099E-04
   3  Normalizat    .82465        .96118E-01    .43931E-01    .17179E-04
   4  Prefactor     1.0932        .10129        .59856E-01    .97235E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.18774
  alpha      = 2.94362
  Normalizat = 0.82465
  Prefactor  = 1.09323
 **********
 **   18 **HESSE 
 **********

 FCN=   5769.136     FROM HESSE     STATUS=OK            33 CALLS      283 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1877        4.9283        .11347E-03   -1.5351    
   2  alpha         2.9436        .91210        .54939E-02    .17839    
   3  Normalizat    .82465        .20795        .24051E-03   -.99161    
   4  Prefactor     1.0932        .25238        .26471E-03   -.89683    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.172e-11
Minuit parameter uncertainties:
  1  4.92891
  2  0.934403
  3  0.208147
  4  0.252652
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/910271': 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) = 5769.13636276
delta logL = 2.08901540879

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  3.188e+00  4.929e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  2.944e+00  9.344e-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.093e+00  2.527e-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.246e-01  2.081e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.76
Ra Dec: 192.084 58.343
Photon Index (Free Index): 2.94 +/- 0.93
Photon Flux (Free Index): 1.75e-07 +/- 7.26e-08
Energy Flux (Free Index): 3.78e-05 +/- 1.61e-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/910271/cmap_HighResolution_392256001_392515201_4FGL_J1248.3+5820_daily_bin590.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.56e-08', energy_flux2='3.78e-05', photon_flux_error='3.46e-08', dlogl='2.09e+00', energy_flux='7.57e-05', photon_flux2='1.75e-07', job_status='DONE', time_completed='2021-09-06 05:26:22.962156', photon_index_error2='0.93', photon_index2='2.94', ts='12.06', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.61e-05', EG='0.94', time_epoch_completed='1630931182.96', return_code='0', job_id='910271', GAL2='1.09', EG2='0.82', return_code2='0', energy_flux_error='3.46e-05', photon_flux_error2='7.26e-08', ts2='16.76', photon_index='1.81' WHERE bin_id='590' AND source_name='4FGL J1248.3+5820' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:26:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 910271: <4FGL_J1248.3+5820_daily_bin590> in cluster <slac> Done

Job <4FGL_J1248.3+5820_daily_bin590> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 05:10:54 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:10:55 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:10:55 2021
Terminated at Mon Sep  6 05:26:23 2021
Results reported at Mon Sep  6 05:26:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.3+5820_daily_bin590 192.084 58.3432 392256001 392515201 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 :                                   885.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            929 sec.

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

