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


Performing analysis on: 4FGL_J1248.3+5820_daily_bin270
RA = 192.084, Dec = 58.3432
tmin = 309312001, tmax = 309571201
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='908332', job_status='RUN', time_executed='2021-09-06 05:05:49.191485', time_epoch_executed='1630929949.19' WHERE source_name='4FGL J1248.3+5820' and cadence='daily' and bin_id='270'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/908332

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/908332/ft1_4FGL_J1248.3+5820_daily_bin270.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/908332/ft2_4FGL_J1248.3+5820_daily_bin270.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/908332/ft1_4FGL_J1248.3+5820_daily_bin270.fits outfile=/scratch/kocevski/908332/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin270.fits ra=192.084 dec=58.3432 rad=12.0 tmin=309312001.0 tmax=309571201.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 4.03
user 3.78
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/908332/ft1_filtered_4FGL_J1248.3+5820_daily_bin270.fits" evtable="EVENTS" scfile=/scratch/kocevski/908332/ft2_4FGL_J1248.3+5820_daily_bin270.fits sctable="SC_DATA" outfile=/scratch/kocevski/908332/ltcube_309312001_309571201_4FGL_J1248.3+5820_daily_bin270.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/908332/ft2_4FGL_J1248.3+5820_daily_bin270.fits
.....................!
real 11.93
user 11.51
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/908332/ft1_filtered_4FGL_J1248.3+5820_daily_bin270.fits evtable="EVENTS" scfile=/scratch/kocevski/908332/ft2_4FGL_J1248.3+5820_daily_bin270.fits sctable="SC_DATA" expcube=/scratch/kocevski/908332/ltcube_309312001_309571201_4FGL_J1248.3+5820_daily_bin270.fits outfile=/scratch/kocevski/908332/expmap_309312001_309571201_4FGL_J1248.3+5820_daily_bin270.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/908332/ltcube_309312001_309571201_4FGL_J1248.3+5820_daily_bin270.fits
.....................!
real 189.34
user 184.94
sys 3.99

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/908332/ft1_filtered_4FGL_J1248.3+5820_daily_bin270.fits scfile=/scratch/kocevski/908332/ft2_4FGL_J1248.3+5820_daily_bin270.fits outfile=/scratch/kocevski/908332/cmap_309312001_309571201_4FGL_J1248.3+5820_daily_bin270.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/908332/ft1_filtered_4FGL_J1248.3+5820_daily_bin270.fits scfile=/scratch/kocevski/908332/ft2_4FGL_J1248.3+5820_daily_bin270.fits outfile=/scratch/kocevski/908332/cmap_HighResolution_309312001_309571201_4FGL_J1248.3+5820_daily_bin270.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4370       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.5027       1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.8776       1.0000         .10000E-03   10000.    
     5 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.9852       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10303E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.1253       1.0000         .10000E-03   10000.    
     9 'Prefactor '    57.278       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17572E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .45455       1.0000         .10000E-03   10000.    
    12 'Prefactor '    82.493       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.9798       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.567       1.0000         .10000E-03   10000.    
    16 'norm      '    3.8549       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .69524       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10962E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.129       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10478E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.0569       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12737E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.4346       1.0000         .10000E-03   10000.    
    26 'Prefactor '    48.157       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .11684E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .11009E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .66593E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .30511       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.5202       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=   5171.599     FROM MIGRAD    STATUS=CONVERGED    899 CALLS     4616 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4425        9.0963       -.14457E-06    .26820E-04
   2  Prefactor     7.4863        24.334       -.39531E-06   -.17919E-04
   3  norm          .10000E-03    4.2943        .92181E-08** at limit **
   4  Prefactor     8.8688        6.3876       -.33934E-06   -.32202E-03
   5  norm          .10000E-03    2.2167        .10214E-06** at limit **
   6  Prefactor     9.9866        7.9606       -.39804E-07    .40392E-04
   7  Prefactor     .10000E-03    9.7294        .40547E-07** at limit **
   8  norm          3.1241        2.5588       -.10590E-06   -.14894E-03
   9  Prefactor     57.283        28.231       -.63696E-07    .43204E-04
  10  Prefactor     .10000E-03    55.556       -.21485E-05** at limit **
  11  norm          .45284        29.547        .13105E-04   -.44478E-03
  12  Prefactor     82.410        36.524       -.32299E-05   -.47608E-03
  13  Prefactor     .10000E-03    1.2806        .17687E-07** at limit **
  14  norm          4.9797        2.3355       -.93053E-09   -.74467E-05
  15  Prefactor     17.580        24.204       -.55574E-07   -.13553E-03
  16  norm          3.8545        2.0320       -.13360E-07   -.15398E-03
  17  Prefactor     .10000E-03    29.388       -.10578E-05** at limit **
  18  Prefactor     .10000E-03    3.6321        .42634E-07** at limit **
  19  norm          .69517        3.3607        .30165E-06    .54727E-03
  20  Prefactor     .10000E-03    38.676        .11773E-05** at limit **
  21  Prefactor     19.125        35.414        .20464E-06    .34621E-04
  22  Prefactor     .10000E-03    7.2881        .17125E-06** at limit **
  23  norm          4.0562        3.3476        .65382E-08   -.78435E-04
  24  Prefactor     .10000E-03    42.071        .13570E-05** at limit **
  25  Prefactor     4.4325        4.2583       -.21191E-08    .44155E-04
  26  Prefactor     48.230        43.696       -.12759E-05   -.27350E-03
  27  Prefactor     .10000E-03    3.5431       -.30651E-08** at limit **
  28  norm          .10000E-03    45.811        .54139E-06** at limit **
  29  norm          .10001E-03    4.0672        .40423E-05** at limit **
  30  Prefactor     .10000E-03    20.299        .16918E-06** at limit **
  31  Prefactor     .10000E-03    147.75       -.21741E-05** at limit **
  32  Normalizat    .30504        .20595        .34281E-05   -.29002E-04
  33  Prefactor     1.5202        .23180       -.19306E-05   -.28012E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.4425
  Prefactor  = 7.48634
  norm       = 0.0001
  Prefactor  = 8.86877
  norm       = 0.0001
  Prefactor  = 9.98657
  Prefactor  = 0.0001
  norm       = 3.12413
  Prefactor  = 57.2826
  Prefactor  = 0.000100004
  norm       = 0.452838
  Prefactor  = 82.4103
  Prefactor  = 0.0001
  norm       = 4.97965
  Prefactor  = 17.5804
  norm       = 3.85454
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.695166
  Prefactor  = 0.000100001
  Prefactor  = 19.1248
  Prefactor  = 0.0001
  norm       = 4.05619
  Prefactor  = 0.000100003
  Prefactor  = 4.43255
  Prefactor  = 48.2304
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Normalizat = 0.305038
  Prefactor  = 1.52019
 **********
 **   18 **HESSE 
 **********

 FCN=   5171.599     FROM HESSE     STATUS=OK           693 CALLS     5309 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4425        9.0197        .14707E-03   -1.5162    
   2  Prefactor     7.4863        24.186        .14642E-03   -1.5161    
   3  norm          .10000E-03    4.2959        .14555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.8688        6.3699        .13452E-03   -1.5112    
   5  norm          .10000E-03    2.2315        .10441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.9866        7.9355        .12681E-03   -1.5076    
   7  Prefactor     .10000E-03    9.7352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.1241        2.5352        .96482E-04   -1.5354    
   9  Prefactor     57.283        28.074        .53007E-04   -1.4193    
  10  Prefactor     .10000E-03    55.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .45284        45.145        .30125E-02   -1.5573    
  12  Prefactor     82.410        38.668        .44224E-04   -1.3890    
  13  Prefactor     .10000E-03    1.2812        .79472E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.9797        2.3338        .73051E-04   -1.5262    
  15  Prefactor     17.580        24.170        .95558E-04   -1.4869    
  16  norm          3.8545        2.0313        .72297E-04   -1.5315    
  17  Prefactor     .10000E-03    29.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.6405        .13383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .69517        3.2535        .24753E-03   -1.5541    
  20  Prefactor     .10000E-03    38.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.125        35.122        .91575E-04   -1.4833    
  22  Prefactor     .10000E-03    7.3023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.0562        3.3449        .11536E-03   -1.5305    
  24  Prefactor     .10000E-03    42.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.4325        4.2242        .13554E-03   -1.5287    
  26  Prefactor     48.230        43.720        .57783E-04   -1.4318    
  27  Prefactor     .10000E-03    3.5468        .13210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    45.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10001E-03    7.1388        .22279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    20.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    147.70        .21008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .30504        .21069        .35804E-03   -1.2254    
  33  Prefactor     1.5202        .24792        .22095E-03   -.76976    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.69315e-09
Minuit parameter uncertainties:
  1  9.02136
  2  24.2178
  3  1.19476e-06
  4  6.37039
  5  1.32326e-05
  6  7.93637
  7  1.13433e-05
  8  2.5353
  9  28.0808
  10  0.00093398
  11  9.04892
  12  38.6803
  13  2.63752e-07
  14  2.33388
  15  24.1833
  16  2.03131
  17  0.000351662
  18  5.20549e-06
  19  3.00786
  20  0.000370685
  21  35.1604
  22  1.77216e-05
  23  3.34509
  24  0.00066559
  25  4.22446
  26  43.7487
  27  5.99639e-06
  28  0.000187583
  29  0.00053633
  30  3.33022e-05
  31  0.00152483
  32  0.211238
  33  0.248114
Done.

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

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  4.980e+00  2.334e+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.520e+00  2.481e-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:  3.050e-01  2.112e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.25
Ra Dec: 192.084 58.343
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 4.39e-08 +/- 2.06e-08
Energy Flux (Fixed Index): 4.40e-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) = 5171.1825717
delta logL = 0.416769660144

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5171.17633643
delta logL = 0.423004935058

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9965       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4951       1.0000          .0000       5.0000    
     3 'Normalizat'    .31516       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5153       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=   5171.176     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      210 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9969        2.4790        .44977E-02   -.25292E-04
   2  alpha         1.4953        .31517        .22503       -.23301E-04
   3  Normalizat    .31505        .17216        .79581E-01    .46291E-04
   4  Prefactor     1.5152        .22527        .50056E-01   -.15696E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.99693
  alpha      = 1.4953
  Normalizat = 0.315054
  Prefactor  = 1.51525
 **********
 **   18 **HESSE 
 **********

 FCN=   5171.176     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9969        2.4837        .75694E-04   -1.5261    
   2  alpha         1.4953        .33373        .94017E-02   -.41357    
   3  Normalizat    .31505        .18508        .35238E-03   -1.2195    
   4  Prefactor     1.5152        .24303        .22127E-03   -.77114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71928e-12
Minuit parameter uncertainties:
  1  2.48372
  2  0.334926
  3  0.185444
  4  0.243214
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/908332': 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) = 5171.17633514
delta logL = 0.423006219407

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  4.997e+00  2.484e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  1.495e+00  3.349e-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.515e+00  2.432e-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:  3.151e-01  1.854e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.06
Ra Dec: 192.084 58.343
Photon Index (Free Index): 1.50 +/- 0.33
Photon Flux (Free Index): 3.27e-08 +/- 1.93e-08
Energy Flux (Free Index): 7.91e-05 +/- 6.45e-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/908332/cmap_HighResolution_309312001_309571201_4FGL_J1248.3+5820_daily_bin270.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.39e-08', energy_flux2='7.91e-05', photon_flux_error='2.06e-08', dlogl='4.23e-01', energy_flux='4.40e-05', photon_flux2='3.27e-08', job_status='DONE', time_completed='2021-09-06 05:19:39.096606', photon_index_error2='0.33', photon_index2='1.50', ts='17.25', fit_tolerance='1e-08', GAL='1.52', photon_index_error='0.00', energy_flux_error2='6.45e-05', EG='0.31', time_epoch_completed='1630930779.1', return_code='0', job_id='908332', GAL2='1.52', EG2='0.32', return_code2='0', energy_flux_error='2.06e-05', photon_flux_error2='1.93e-08', ts2='18.06', photon_index='1.81' WHERE bin_id='270' AND source_name='4FGL J1248.3+5820' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:19:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 908332: <4FGL_J1248.3+5820_daily_bin270> in cluster <slac> Done

Job <4FGL_J1248.3+5820_daily_bin270> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 05:05:31 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:05:33 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:33 2021
Terminated at Mon Sep  6 05:19:39 2021
Results reported at Mon Sep  6 05:19:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.3+5820_daily_bin270 192.084 58.3432 309312001 309571201 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 :                                   822.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            848 sec.

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

