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


Performing analysis on: 4FGL_J1248.3+5820_daily_bin179
RA = 192.084, Dec = 58.3432
tmin = 285724801, tmax = 285984001
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='907198', job_status='RUN', time_executed='2021-09-06 05:05:16.450229', time_epoch_executed='1630929916.45' WHERE source_name='4FGL J1248.3+5820' and cadence='daily' and bin_id='179'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/907198

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/907198/ft1_4FGL_J1248.3+5820_daily_bin179.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/907198/ft2_4FGL_J1248.3+5820_daily_bin179.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/907198/ft1_4FGL_J1248.3+5820_daily_bin179.fits outfile=/scratch/kocevski/907198/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin179.fits ra=192.084 dec=58.3432 rad=12.0 tmin=285724801.0 tmax=285984001.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.23
user 3.00
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/907198/ft2_4FGL_J1248.3+5820_daily_bin179.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/907198/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin179.fits evtable="EVENTS" outfile="/scratch/kocevski/907198/ft1_filtered_4FGL_J1248.3+5820_daily_bin179.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.41
user 0.25
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/907198/ft1_filtered_4FGL_J1248.3+5820_daily_bin179.fits evtable="EVENTS" scfile=/scratch/kocevski/907198/ft2_4FGL_J1248.3+5820_daily_bin179.fits sctable="SC_DATA" expcube=/scratch/kocevski/907198/ltcube_285724801_285984001_4FGL_J1248.3+5820_daily_bin179.fits outfile=/scratch/kocevski/907198/expmap_285724801_285984001_4FGL_J1248.3+5820_daily_bin179.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/907198/ltcube_285724801_285984001_4FGL_J1248.3+5820_daily_bin179.fits
.....................!
real 147.31
user 142.85
sys 4.19

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/907198/ft1_filtered_4FGL_J1248.3+5820_daily_bin179.fits scfile=/scratch/kocevski/907198/ft2_4FGL_J1248.3+5820_daily_bin179.fits outfile=/scratch/kocevski/907198/cmap_285724801_285984001_4FGL_J1248.3+5820_daily_bin179.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.46
user 0.29
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/907198/ft1_filtered_4FGL_J1248.3+5820_daily_bin179.fits scfile=/scratch/kocevski/907198/ft2_4FGL_J1248.3+5820_daily_bin179.fits outfile=/scratch/kocevski/907198/cmap_HighResolution_285724801_285984001_4FGL_J1248.3+5820_daily_bin179.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.46
user 0.30
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5958       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8639       1.0000         .10000E-03   10000.    
     5 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .23028       1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.894       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16776E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.2227       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5874       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4216       1.0000         .10000E-03   10000.    
    14 'norm      '    1.9460       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.2600       1.0000         .10000E-03   10000.    
    16 'norm      '    1.2555       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10935E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.3270       1.0000         .10000E-03   10000.    
    19 'norm      '    12.798       1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.119       1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.047       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.6263       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.5906       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    21.926       1.0000         .10000E-03   10000.    
    29 'norm      '    .15365E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    48.746       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .18036E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .78086       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.2949       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=   5330.394     FROM MIGRAD    STATUS=CONVERGED    894 CALLS     4646 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5962        5.2900        .21249E-06    .69598E-04
   2  Prefactor     .10000E-03    16.051        .15094E-06** at limit **
   3  norm          .10000E-03    28.728       -.65303E-06** at limit **
   4  Prefactor     1.8638        4.1007       -.64724E-07    .78691E-04
   5  norm          .10000E-03    3.5335       -.36923E-08** at limit **
   6  Prefactor     .10000E-03    2.4080        .13456E-07** at limit **
   7  Prefactor     .10000E-03    14.026       -.16581E-06** at limit **
   8  norm          .23044        1.1548       -.23669E-06    .12055E-03
   9  Prefactor     27.891        29.004        .39865E-06    .62581E-04
  10  Prefactor     .10000E-03    122.57       -.67204E-05** at limit **
  11  norm          3.2252        9.9914        .34076E-05    .42439E-03
  12  Prefactor     3.5764        44.429       -.71841E-05    .55055E-04
  13  Prefactor     1.4227        7.2825       -.63584E-06    .13227E-03
  14  norm          1.9460        1.9495        .15627E-06    .37198E-03
  15  Prefactor     2.2660        84.072       -.26013E-05    .12135E-03
  16  norm          1.2555        1.8131        .14560E-06    .35550E-03
  17  Prefactor     .10000E-03    44.236        .13916E-05** at limit **
  18  Prefactor     2.3278        7.0845        .74556E-07    .12840E-03
  19  norm          12.797        5.9927        .94648E-07    .17035E-03
  20  Prefactor     26.118        56.687        .17490E-06    .38633E-05
  21  Prefactor     27.042        46.391        .51576E-06    .21112E-04
  22  Prefactor     .10000E-03    16.238        .25831E-06** at limit **
  23  norm          1.6267        2.9594       -.59644E-07    .71943E-04
  24  Prefactor     .10000E-03    16.643        .15768E-07** at limit **
  25  Prefactor     .10000E-03    3.3117       -.58558E-07** at limit **
  26  Prefactor     9.5978        32.772       -.16883E-05    .70977E-04
  27  Prefactor     .10000E-03    9.3446       -.12259E-07** at limit **
  28  norm          21.730        79.318        .56800E-05    .19316E-03
  29  norm          .10000E-03    6.7104       -.86370E-05** at limit **
  30  Prefactor     48.754        38.759       -.19839E-06    .63260E-05
  31  Prefactor     .10000E-03    180.15        .67120E-05** at limit **
  32  Normalizat    .78082        .17938       -.15550E-05    .45503E-03
  33  Prefactor     1.2949        .21614        .14527E-05    .63157E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.59624
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.86381
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.230441
  Prefactor  = 27.8911
  Prefactor  = 0.000100001
  norm       = 3.2252
  Prefactor  = 3.57639
  Prefactor  = 1.42269
  norm       = 1.94602
  Prefactor  = 2.26604
  norm       = 1.25549
  Prefactor  = 0.0001
  Prefactor  = 2.32784
  norm       = 12.7974
  Prefactor  = 26.1177
  Prefactor  = 27.0423
  Prefactor  = 0.0001
  norm       = 1.6267
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.59784
  Prefactor  = 0.0001
  norm       = 21.7303
  norm       = 0.000100001
  Prefactor  = 48.7542
  Prefactor  = 0.0001
  Normalizat = 0.780821
  Prefactor  = 1.29493
 **********
 **   18 **HESSE 
 **********

 FCN=   5330.394     FROM HESSE     STATUS=OK           695 CALLS     5341 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5962        5.2777        .23039E-03   -1.5386    
   2  Prefactor     .10000E-03    16.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    29.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.8638        4.0767        .21064E-03   -1.5435    
   5  norm          .10000E-03    3.6736        .26779E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.4128        .11063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .23044        1.0950        .15129E-03   -1.5612    
   9  Prefactor     27.891        29.125        .75855E-04   -1.4651    
  10  Prefactor     .10000E-03    123.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.2252        9.8677        .22566E-03   -1.5349    
  12  Prefactor     3.5764        42.952        .10668E-02   -1.5330    
  13  Prefactor     1.4227        6.9980        .33659E-03   -1.5469    
  14  norm          1.9460        1.9116        .90466E-04   -1.5429    
  15  Prefactor     2.2660        83.117        .13663E-02   -1.5407    
  16  norm          1.2555        1.7754        .11426E-03   -1.5484    
  17  Prefactor     .10000E-03    44.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.3278        7.0141        .26886E-03   -1.5403    
  19  norm          12.797        5.9901        .11197E-03   -1.4992    
  20  Prefactor     26.118        56.661        .78385E-04   -1.4685    
  21  Prefactor     27.042        46.365        .77031E-04   -1.4667    
  22  Prefactor     .10000E-03    16.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.6267        2.9247        .16332E-03   -1.5453    
  24  Prefactor     .10000E-03    16.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    3.3664        .12957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     9.5978        32.715        .12940E-03   -1.5088    
  27  Prefactor     .10000E-03    9.4777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          21.730        81.891        .85540E-04   -1.4775    
  29  norm          .10000E-03    6.7495        .22322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     48.754        38.754        .57435E-04   -1.4310    
  31  Prefactor     .10000E-03    179.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .78082        .21264        .24158E-03   -1.0078    
  33  Prefactor     1.2949        .25984        .24813E-03   -.83458    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39947e-09
Minuit parameter uncertainties:
  1  5.27866
  2  1.01281e-05
  3  6.20616e-05
  4  4.07732
  5  5.59845e-06
  6  1.96697e-06
  7  1.69517e-05
  8  1.00445
  9  29.1398
  10  0.000540967
  11  9.87267
  12  24.81
  13  6.3116
  14  1.91166
  15  27.4885
  16  1.77549
  17  1.00016e-05
  18  7.01659
  19  5.99038
  20  56.7776
  21  46.4266
  22  4.55714e-05
  23  2.92494
  24  1.71405e-05
  25  3.61178e-06
  26  32.7757
  27  1.26205e-05
  28  82.3186
  29  0.000156055
  30  38.7739
  31  6.70803e-05
  32  0.212868
  33  0.260104
Done.

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

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  1.946e+00  1.912e+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.295e+00  2.601e-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:  7.808e-01  2.129e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.49
Ra Dec: 192.084 58.343
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 1.72e-08 +/- 1.69e-08
Energy Flux (Fixed Index): 1.72e-05 +/- 1.69e-05

TS (Fixed Index): 2.49
Ra Dec: 192.084 58.343
Photon Flux Upper Limit: 5.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.87e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/907198/likelihoodResults_285724801_285984001_4FGL_J1248.3+5820_daily_bin179.txt

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) = 5330.39405602
delta logL = 1.17448789752e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5330.39405347
delta logL = 1.42971648529e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9460       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8076       1.0000          .0000       5.0000    
     3 'Normalizat'    .78087       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2949       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=   5330.394     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      184 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9458        64.817        .74385E-02    .13797E-03
   2  alpha         1.8067        2.9509        .43349       -.64302E-05
   3  Normalizat    .78094        .10670        .43360E-01    .21812E-04
   4  Prefactor     1.2948        .90783E-01    .56117E-01    .13686E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.94579
  alpha      = 1.80665
  Normalizat = 0.780939
  Prefactor  = 1.29485
 **********
 **   18 **HESSE 
 **********

 FCN=   5330.394     FROM HESSE     STATUS=OK            33 CALLS      217 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9458        1.7706        .90494E-04   -1.5429    
   2  alpha         1.8067        .74602        .16423E-01   -.28102    
   3  Normalizat    .78094        .19974        .24157E-03   -1.0078    
   4  Prefactor     1.2948        .25727        .24814E-03   -.83460    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.86445e-11
Minuit parameter uncertainties:
  1  1.7707
  2  0.758571
  3  0.199924
  4  0.257519
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/907198': 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) = 5330.3940527
delta logL = 1.50587511598e-05

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  1.946e+00  1.771e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  1.807e+00  7.586e-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.295e+00  2.575e-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:  7.809e-01  1.999e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.49
Ra Dec: 192.084 58.343
Photon Index (Free Index): 1.81 +/- 0.76
Photon Flux (Free Index): 1.71e-08 +/- 2.17e-08
Energy Flux (Free Index): 1.73e-05 +/- 2.39e-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/907198/cmap_HighResolution_285724801_285984001_4FGL_J1248.3+5820_daily_bin179.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.87e-05', comment='SUCCESS', photon_flux='1.72e-08', energy_flux2='1.73e-05', photon_flux_error='1.69e-08', dlogl='1.51e-05', energy_flux='1.72e-05', photon_flux2='1.71e-08', job_status='DONE', time_completed='2021-09-06 05:17:30.685145', photon_index_error2='0.76', photon_index2='1.81', ts='2.49', fit_tolerance='1e-08', GAL='1.29', photon_index_error='0.00', photon_flux_upper_limit='5.87e-08', energy_flux_error2='2.39e-05', EG='0.78', time_epoch_completed='1630930650.69', return_code='0', job_id='907198', GAL2='1.29', EG2='0.78', return_code2='0', energy_flux_error='1.69e-05', photon_flux_error2='2.17e-08', ts2='2.49', photon_index='1.81' WHERE bin_id='179' AND source_name='4FGL J1248.3+5820' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:17:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 907198: <4FGL_J1248.3+5820_daily_bin179> in cluster <slac> Done

Job <4FGL_J1248.3+5820_daily_bin179> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 05:01:08 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:01:09 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:01:09 2021
Terminated at Mon Sep  6 05:17:31 2021
Results reported at Mon Sep  6 05:17:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.3+5820_daily_bin179 192.084 58.3432 285724801 285984001 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 :                                   730.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             229.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            983 sec.

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

