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


Performing analysis on: 4FGL_J1248.3+5820_daily_bin18
RA = 192.084, Dec = 58.3432
tmin = 243993601, tmax = 244252801
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='907008', job_status='RUN', time_executed='2021-09-06 05:02:55.157937', time_epoch_executed='1630929775.16' WHERE source_name='4FGL J1248.3+5820' and cadence='daily' and bin_id='18'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/907008

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/907008/ft1_4FGL_J1248.3+5820_daily_bin18.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/907008/ft2_4FGL_J1248.3+5820_daily_bin18.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/907008/ft1_4FGL_J1248.3+5820_daily_bin18.fits outfile=/scratch/kocevski/907008/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin18.fits ra=192.084 dec=58.3432 rad=12.0 tmin=243993601.0 tmax=244252801.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 1.44
user 1.22
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/907008/ft1_filtered_4FGL_J1248.3+5820_daily_bin18.fits" evtable="EVENTS" scfile=/scratch/kocevski/907008/ft2_4FGL_J1248.3+5820_daily_bin18.fits sctable="SC_DATA" outfile=/scratch/kocevski/907008/ltcube_243993601_244252801_4FGL_J1248.3+5820_daily_bin18.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/907008/ft2_4FGL_J1248.3+5820_daily_bin18.fits
.....................!
real 12.99
user 12.64
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/907008/ft1_filtered_4FGL_J1248.3+5820_daily_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/907008/ft2_4FGL_J1248.3+5820_daily_bin18.fits sctable="SC_DATA" expcube=/scratch/kocevski/907008/ltcube_243993601_244252801_4FGL_J1248.3+5820_daily_bin18.fits outfile=/scratch/kocevski/907008/expmap_243993601_244252801_4FGL_J1248.3+5820_daily_bin18.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/907008/ltcube_243993601_244252801_4FGL_J1248.3+5820_daily_bin18.fits
.....................!
real 191.27
user 185.59
sys 5.14

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/907008/ft1_filtered_4FGL_J1248.3+5820_daily_bin18.fits scfile=/scratch/kocevski/907008/ft2_4FGL_J1248.3+5820_daily_bin18.fits outfile=/scratch/kocevski/907008/cmap_243993601_244252801_4FGL_J1248.3+5820_daily_bin18.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.58
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/907008/ft1_filtered_4FGL_J1248.3+5820_daily_bin18.fits scfile=/scratch/kocevski/907008/ft2_4FGL_J1248.3+5820_daily_bin18.fits outfile=/scratch/kocevski/907008/cmap_HighResolution_243993601_244252801_4FGL_J1248.3+5820_daily_bin18.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.57
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .88934       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.481       1.0000         .10000E-03   10000.    
     3 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .46375E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.4817       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11639E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .14295E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    52.370       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16061E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.3204       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.1895       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.8984       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.4738       1.0000         .10000E-03   10000.    
    17 'Prefactor '    84.717       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    6.6019       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .25947E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    15.870       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .58643E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.5660       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .43166       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=   5368.881     FROM MIGRAD    STATUS=CONVERGED    889 CALLS     4622 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .88843        4.1729        .24004E-05    .19889E-03
   2  Prefactor     21.507        32.495        .53643E-06   -.64239E-04
   3  norm          .10000E-03    12.190        .39104E-06** at limit **
   4  Prefactor     .10000E-03    1.5988       -.24402E-08** at limit **
   5  norm          .10012E-03    3.8240        .18349E-05** at limit **
   6  Prefactor     5.5020        7.8648        .49092E-06   -.42522E-03
   7  Prefactor     .10000E-03    30.880       -.51052E-06** at limit **
   8  norm          .10033E-01    .91629        .20284E-06   -.42214E-03
   9  Prefactor     52.356        35.452        .34862E-06   -.19099E-03
  10  Prefactor     .10000E-03    56.827        .85673E-06** at limit **
  11  norm          3.3198        4.5823        .26427E-06    .90245E-04
  12  Prefactor     8.1937        14.577        .17947E-06    .38174E-05
  13  Prefactor     .10000E-03    2.3513        .99159E-08** at limit **
  14  norm          3.8982        2.0680        .98501E-08   -.71645E-04
  15  Prefactor     .10000E-03    7.6101       -.11605E-06** at limit **
  16  norm          6.4731        2.8696        .30791E-07   -.50215E-04
  17  Prefactor     84.756        58.289        .11806E-05    .20053E-03
  18  Prefactor     .10000E-03    5.0728        .28385E-07** at limit **
  19  norm          .10000E-03    1.1404       -.19444E-07** at limit **
  20  Prefactor     .10000E-03    35.179       -.68649E-06** at limit **
  21  Prefactor     .10000E-03    16.150        .29190E-06** at limit **
  22  Prefactor     .10000E-03    12.897       -.83902E-06** at limit **
  23  norm          6.5995        5.0569        .20378E-05    .73923E-03
  24  Prefactor     .10000E-03    112.04       -.12090E-05** at limit **
  25  Prefactor     .10017E-03    3.2301       -.52639E-06** at limit **
  26  Prefactor     .10000E-03    14.033       -.37535E-06** at limit **
  27  Prefactor     .10000E-03    7.3576        .77907E-07** at limit **
  28  norm          .10000E-03    29.413        .32216E-06** at limit **
  29  norm          .10000E-03    2.6922       -.58649E-07** at limit **
  30  Prefactor     15.868        35.386        .13007E-06    .29792E-05
  31  Prefactor     .10041E-03    7470.3       -.16075E-04** at limit **
  32  Normalizat    1.5665        .19919       -.11862E-05   -.27237E-03
  33  Prefactor     .43133        .22621        .20704E-06   -.15455E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.888431
  Prefactor  = 21.5067
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100123
  Prefactor  = 5.50198
  Prefactor  = 0.0001
  norm       = 0.0100329
  Prefactor  = 52.3563
  Prefactor  = 0.000100002
  norm       = 3.31976
  Prefactor  = 8.1937
  Prefactor  = 0.0001
  norm       = 3.89819
  Prefactor  = 0.0001
  norm       = 6.47309
  Prefactor  = 84.7556
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 6.59951
  Prefactor  = 0.000100001
  Prefactor  = 0.000100168
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 15.8683
  Prefactor  = 0.000100411
  Normalizat = 1.56652
  Prefactor  = 0.431329
 **********
 **   18 **HESSE 
 **********

 FCN=   5368.881     FROM HESSE     STATUS=OK           695 CALLS     5317 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .88843        4.1100        .29135E-03   -1.5519    
   2  Prefactor     21.507        32.181        .86422E-04   -1.4780    
   3  norm          .10000E-03    12.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.6048        .90472E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10012E-03    14.450        .22941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.5020        7.5506        .17161E-03   -1.5239    
   7  Prefactor     .10000E-03    31.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10033E-01    2.4535        .24377E-01   -1.5688    
   9  Prefactor     52.356        35.667        .55422E-04   -1.4260    
  10  Prefactor     .10000E-03    56.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.3198        4.5667        .17551E-03   -1.5344    
  12  Prefactor     8.1937        14.563        .14010E-03   -1.5135    
  13  Prefactor     .10000E-03    2.3602        .10971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.8982        2.0699        .74677E-04   -1.5313    
  15  Prefactor     .10000E-03    7.6194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.4731        2.8696        .79871E-04   -1.5199    
  17  Prefactor     84.756        58.501        .21822E-03   -1.3864    
  18  Prefactor     .10000E-03    5.0922        .16116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.1426        .76416E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    35.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.5995        5.1196        .70151E-03   -1.5194    
  24  Prefactor     .10000E-03    113.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10017E-03    40.807        .24425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    14.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    7.3808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    29.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    2.7283        .11737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     15.868        35.309        .10054E-03   -1.4911    
  31  Prefactor     .10041E-03    7485.8        .21076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.5665        .21817        .19733E-03   -.75926    
  33  Prefactor     .43133        .24461        .41283E-03   -1.1524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22091e-07
Minuit parameter uncertainties:
  1  3.82197
  2  32.2068
  3  7.05867e-05
  4  8.35242e-07
  5  0.00266873
  6  7.55188
  7  0.000129064
  8  0.312234
  9  35.6815
  10  0.000666069
  11  4.56718
  12  14.5693
  13  1.21676e-06
  14  2.06992
  15  2.68331e-05
  16  2.86962
  17  58.5406
  18  3.80187e-06
  19  2.81405e-07
  20  0.000387071
  21  0.000132009
  22  0.000185198
  23  5.11995
  24  0.000767359
  25  0.00524669
  26  0.000131811
  27  3.83384e-05
  28  0.000176044
  29  3.25731e-07
  30  35.3554
  31  0.100309
  32  0.218302
  33  0.245202
Done.

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

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  3.898e+00  2.070e+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:  4.313e-01  2.452e-01  0.000e+00  1.000e+01 ( 1.000e+00)
696        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
697        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
694   Normalization:  1.567e+00  2.183e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.02
Ra Dec: 192.084 58.343
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 3.44e-08 +/- 1.83e-08
Energy Flux (Fixed Index): 3.44e-05 +/- 1.83e-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) = 5368.64378736
delta logL = 0.237480355558

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5368.63450742
delta logL = 0.246760298442

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8756       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5340       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5748       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .42679       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=   5368.635     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      207 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8756        2.1511        .51242E-02    .10769E-02
   2  alpha         1.5339        .35989        .26104       -.22012E-04
   3  Normalizat    1.5748        .19102        .44549E-01   -.25242E-04
   4  Prefactor     .42677        .22349        .93623E-01    .66563E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.87561
  alpha      = 1.5339
  Normalizat = 1.5748
  Prefactor  = 0.426771
 **********
 **   18 **HESSE 
 **********

 FCN=   5368.635     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8756        2.1192        .75462E-04   -1.5314    
   2  alpha         1.5339        .37801        .10802E-01   -.39677    
   3  Normalizat    1.5748        .20752        .19691E-03   -.75698    
   4  Prefactor     .42677        .24206        .41493E-03   -1.1546    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83495e-10
Minuit parameter uncertainties:
  1  2.11925
  2  0.379727
  3  0.207635
  4  0.242646
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/907008': 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) = 5368.63450737
delta logL = 0.246760341205

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  3.876e+00  2.119e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  1.534e+00  3.797e-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:  4.268e-01  2.426e-01  0.000e+00  1.000e+01 ( 1.000e+00)
696        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
697        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
694   Normalization:  1.575e+00  2.076e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.52
Ra Dec: 192.084 58.343
Photon Index (Free Index): 1.53 +/- 0.38
Photon Flux (Free Index): 2.61e-08 +/- 1.72e-08
Energy Flux (Free Index): 5.62e-05 +/- 5.12e-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/907008/cmap_HighResolution_243993601_244252801_4FGL_J1248.3+5820_daily_bin18.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.44e-08', energy_flux2='5.62e-05', photon_flux_error='1.83e-08', dlogl='2.47e-01', energy_flux='3.44e-05', photon_flux2='2.61e-08', job_status='DONE', time_completed='2021-09-06 05:17:08.156146', photon_index_error2='0.38', photon_index2='1.53', ts='21.02', fit_tolerance='1e-08', GAL='0.43', photon_index_error='0.00', energy_flux_error2='5.12e-05', EG='1.57', time_epoch_completed='1630930628.16', return_code='0', job_id='907008', GAL2='0.43', EG2='1.57', return_code2='0', energy_flux_error='1.83e-05', photon_flux_error2='1.72e-08', ts2='21.52', photon_index='1.81' WHERE bin_id='18' AND source_name='4FGL J1248.3+5820' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:17:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0139>
Subject: Job 907008: <4FGL_J1248.3+5820_daily_bin18> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.3+5820_daily_bin18 192.084 58.3432 243993601 244252801 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 :                                   849.25 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             304.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            974 sec.

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

