/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 8 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7385
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1248.9+4840_daily_bin1100
RA = 192.244, Dec = 48.67
tmin = 524448001, tmax = 524707201
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='922850', job_status='RUN', time_executed='2021-09-06 05:51:06.000594', time_epoch_executed='1630932666.0' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='1100'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/922850

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/922850/ft1_4FGL_J1248.9+4840_daily_bin1100.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/922850/ft2_4FGL_J1248.9+4840_daily_bin1100.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/922850/ft1_4FGL_J1248.9+4840_daily_bin1100.fits outfile=/scratch/kocevski/922850/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin1100.fits ra=192.244 dec=48.67 rad=12.0 tmin=524448001.0 tmax=524707201.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.44
user 3.19
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/922850/ft2_4FGL_J1248.9+4840_daily_bin1100.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/922850/ft2_4FGL_J1248.9+4840_daily_bin1100.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/922850/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin1100.fits evtable="EVENTS" outfile="/scratch/kocevski/922850/ft1_filtered_4FGL_J1248.9+4840_daily_bin1100.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.52
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/922850/ft1_filtered_4FGL_J1248.9+4840_daily_bin1100.fits" evtable="EVENTS" scfile=/scratch/kocevski/922850/ft2_4FGL_J1248.9+4840_daily_bin1100.fits sctable="SC_DATA" outfile=/scratch/kocevski/922850/ltcube_524448001_524707201_4FGL_J1248.9+4840_daily_bin1100.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/922850/ft2_4FGL_J1248.9+4840_daily_bin1100.fits
.....................!
real 11.86
user 11.46
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/922850/ft1_filtered_4FGL_J1248.9+4840_daily_bin1100.fits evtable="EVENTS" scfile=/scratch/kocevski/922850/ft2_4FGL_J1248.9+4840_daily_bin1100.fits sctable="SC_DATA" expcube=/scratch/kocevski/922850/ltcube_524448001_524707201_4FGL_J1248.9+4840_daily_bin1100.fits outfile=/scratch/kocevski/922850/expmap_524448001_524707201_4FGL_J1248.9+4840_daily_bin1100.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/922850/ltcube_524448001_524707201_4FGL_J1248.9+4840_daily_bin1100.fits
.....................!
real 193.13
user 187.75
sys 4.98

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 213 point sources and 0 extended sources

Setting source of interest to:
4FGL J1248.9+4840 @ 192.244 48.67

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/922850/ft1_filtered_4FGL_J1248.9+4840_daily_bin1100.fits scfile=/scratch/kocevski/922850/ft2_4FGL_J1248.9+4840_daily_bin1100.fits outfile=/scratch/kocevski/922850/cmap_524448001_524707201_4FGL_J1248.9+4840_daily_bin1100.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.244 yref=48.67 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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/922850/ft1_filtered_4FGL_J1248.9+4840_daily_bin1100.fits scfile=/scratch/kocevski/922850/ft2_4FGL_J1248.9+4840_daily_bin1100.fits outfile=/scratch/kocevski/922850/cmap_HighResolution_524448001_524707201_4FGL_J1248.9+4840_daily_bin1100.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.244 yref=48.67 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.35
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/922850/ft1_filtered_4FGL_J1248.9+4840_daily_bin1100.fits evtable="EVENTS" scfile=/scratch/kocevski/922850/ft2_4FGL_J1248.9+4840_daily_bin1100.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/922850/Model_4FGL_J1248.9+4840_daily_bin1100.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/922850/ft1_filtered_4FGL_J1248.9+4840_daily_bin1100.fits.....................!
real 50.13
user 48.78
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/922850/ft1_filtered_4FGL_J1248.9+4840_daily_bin1100.fits', '/scratch/kocevski/922850/ft2_4FGL_J1248.9+4840_daily_bin1100.fits', expMap='/scratch/kocevski/922850/expmap_524448001_524707201_4FGL_J1248.9+4840_daily_bin1100.fits', expCube='/scratch/kocevski/922850/ltcube_524448001_524707201_4FGL_J1248.9+4840_daily_bin1100.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/922850/Model_4FGL_J1248.9+4840_daily_bin1100.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1248.9+4840'

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  3.227e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.450e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/922850/ft1_filtered_4FGL_J1248.9+4840_daily_bin1100.fits
Spacecraft file(s): /scratch/kocevski/922850/ft2_4FGL_J1248.9+4840_daily_bin1100.fits
Exposure map: /scratch/kocevski/922850/expmap_524448001_524707201_4FGL_J1248.9+4840_daily_bin1100.fits
Exposure cube: /scratch/kocevski/922850/ltcube_524448001_524707201_4FGL_J1248.9+4840_daily_bin1100.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/922850/Model_4FGL_J1248.9+4840_daily_bin1100.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) = 5663.79208459

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .56945       1.0000         .10000E-03   10000.    
     3 'norm      '    2.4084       1.0000         .10000E-03   10000.    
     4 'norm      '    4.8254       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5365       1.0000         .10000E-03   10000.    
     7 'norm      '    2.9581       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.8953       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.3337       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.8331       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .62924E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.501       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10369E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.9108       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    11.631       1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5595       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .21632       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5663.725     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     2953 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3448        .23555E-07** at limit **
   2  Prefactor     .61046        7.4756       -.69673E-06   -.11691E-03
   3  norm          2.4084        1.6833        .10157E-07   -.11946E-04
   4  norm          4.8253        5.3802       -.34694E-06   -.22027E-03
   5  Prefactor     .10000E-03    35.192        .65754E-05** at limit **
   6  Prefactor     1.5367        3.7938       -.44216E-06   -.56646E-03
   7  norm          2.9582        2.4174        .12685E-06   -.80787E-04
   8  Prefactor     .10000E-03    45.218       -.61710E-05** at limit **
   9  Prefactor     .10000E-03    10.437       -.26367E-07** at limit **
  10  norm          1.8955        1.8070       -.29255E-07   -.17512E-03
  11  Prefactor     7.3340        8.7405        .61113E-05    .11034E-03
  12  Prefactor     .10000E-03    62.477        .10181E-04** at limit **
  13  Prefactor     4.8334        5.4468       -.15662E-05    .64001E-04
  14  Prefactor     .10000E-03    45.170       -.11160E-04** at limit **
  15  norm          .33860E-01    8.8532       -.79666E-06    .97875E-04
  16  norm          .10000E-03    3.4970        .14382E-06** at limit **
  17  Prefactor     31.505        35.996       -.33294E-05    .20834E-04
  18  Prefactor     .10000E-03    11.047       -.12891E-07** at limit **
  19  Prefactor     .10000E-03    44.976       -.23617E-05** at limit **
  20  norm          2.9112        3.7810       -.35569E-07   -.33130E-03
  21  Prefactor     .10000E-03    33.639       -.98315E-05** at limit **
  22  norm          11.631        2.4657        .35677E-07    .12995E-03
  23  norm          .10000E-03    37.495        .14422E-04** at limit **
  24  Normalizat    1.5596        .21433        .48460E-06    .21636E-03
  25  Prefactor     .21611        .24378       -.12006E-05   -.30356E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.610462
  norm       = 2.40841
  norm       = 4.82532
  Prefactor  = 0.0001
  Prefactor  = 1.53673
  norm       = 2.95822
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.89547
  Prefactor  = 7.33399
  Prefactor  = 0.0001
  Prefactor  = 4.83337
  Prefactor  = 0.000100004
  norm       = 0.0338596
  norm       = 0.0001
  Prefactor  = 31.5047
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.91125
  Prefactor  = 0.0001
  norm       = 11.631
  norm       = 0.0001
  Normalizat = 1.55964
  Prefactor  = 0.216113
 **********
 **   18 **HESSE 
 **********

 FCN=   5663.725     FROM HESSE     STATUS=OK           437 CALLS     3390 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.3712        .85098E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .61046        38.707        .39568E-02   -1.5552    
   3  norm          2.4084        1.6834        .78891E-04   -1.5398    
   4  norm          4.8253        5.3773        .17770E-03   -1.5269    
   5  Prefactor     .10000E-03    35.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.5367        3.7531        .21905E-03   -1.5460    
   7  norm          2.9582        2.4080        .99461E-04   -1.5364    
   8  Prefactor     .10000E-03    46.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.8955        1.7947        .95605E-04   -1.5433    
  11  Prefactor     7.3340        8.7230        .14811E-03   -1.5166    
  12  Prefactor     .10000E-03    62.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.8334        5.4321        .18030E-03   -1.5268    
  14  Prefactor     .10000E-03    46.985        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .33860E-01    10.466        .79154E-01   -1.5671    
  16  norm          .10000E-03    3.6181        .27436E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     31.505        35.941        .71390E-04   -1.4585    
  18  Prefactor     .10000E-03    11.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    45.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.9112        3.7627        .15953E-03   -1.5367    
  21  Prefactor     .10000E-03    33.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          11.631        2.4665        .52415E-04   -1.5026    
  23  norm          .10000E-03    37.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.5596        .18492        .18300E-03   -.76116    
  25  Prefactor     .21611        .20639        .52329E-03   -1.2757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01836e-09
Minuit parameter uncertainties:
  1  1.83972e-06
  2  9.72771
  3  1.68339
  4  5.37785
  5  2.48648e-05
  6  3.7537
  7  2.40806
  8  9.80924e-05
  9  5.55199e-05
  10  1.79471
  11  8.72447
  12  2.07151e-05
  13  5.43263
  14  0.000846409
  15  1.18905
  16  2.27194e-05
  17  35.9653
  18  1.47731e-05
  19  0.000208346
  20  3.76301
  21  1.60204e-05
  22  2.46651
  23  1.87401e-07
  24  0.185003
  25  0.207089
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  9.809e-05  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.450e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  2.161e-01  2.071e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  1.560e+00  1.850e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 192.244 48.670
Photon Flux Upper Limit: 7.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/922850/likelihoodResults_524448001_524707201_4FGL_J1248.9+4840_daily_bin1100.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): 102
logL (Free Index) = 5663.72535772
delta logL = -0.000103475520518

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5663.72525442
delta logL = -1.69903614733e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3871       1.0000          .0000       10.000    
     3 'Normalizat'    1.5596       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .21612       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5663.725     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      248 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2034.1        .90712E-02** at limit **
   2  Index         2.4341        6.1842        .50000       -.11195E-04
   3  Normalizat    1.5596        .30619E-01    .29284E-01   -.32082E-03
   4  Prefactor     .21612        .35097E-01    .11833        .33134E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.4341
  Normalizat = 1.55964
  Prefactor  = 0.216117
 **********
 **   18 **HESSE 
 **********

 FCN=   5663.725     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      279 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7308.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4341        7.9210        .50000       -.53888    
   3  Normalizat    1.5596        .55252E-01    .18300E-03   -.76116    
   4  Prefactor     .21612        .63292E-01    .52329E-03   -1.2757    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.24254e-08
Minuit parameter uncertainties:
  1  0.00206819
  2  48.5486
  3  0.0552537
  4  0.0633117
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/922850': 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): 102
logL (Free Index) = 5663.72525429
delta logL = -4.18922354584e-08

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  2.068e-03  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.434e+00  4.855e+01  0.000e+00  1.000e+01 (-1.000e+00)
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  2.161e-01  6.331e-02  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  1.560e+00  5.525e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 192.244 48.670

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/922850/cmap_HighResolution_524448001_524707201_4FGL_J1248.9+4840_daily_bin1100.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.65e-03', job_status='DONE', photon_flux_upper_limit='7.29e-08', time_completed='2021-09-06 06:03:54.839316', job_id='922850', GAL2='0.22', fit_tolerance='1e-08', EG2='1.56', EG='1.56', time_epoch_completed='1630933434.84', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.22', dlogl='-4.19e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1100' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:03:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 922850: <4FGL_J1248.9+4840_daily_bin1100> in cluster <slac> Done

Job <4FGL_J1248.9+4840_daily_bin1100> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 05:50:46 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:50:48 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:50:48 2021
Terminated at Mon Sep  6 06:03:55 2021
Results reported at Mon Sep  6 06:03:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin1100 192.244 48.67 524448001 524707201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1248.9+4840 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   758.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   787 sec.
    Turnaround time :                            789 sec.

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

