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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin214
RA = 192.244, Dec = 48.67
tmin = 294796801, tmax = 295056001
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='917648', job_status='RUN', time_executed='2021-09-06 05:36:05.820861', time_epoch_executed='1630931765.82' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='214'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917648

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917648/ft1_4FGL_J1248.9+4840_daily_bin214.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917648/ft2_4FGL_J1248.9+4840_daily_bin214.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917648/ft1_4FGL_J1248.9+4840_daily_bin214.fits outfile=/scratch/kocevski/917648/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin214.fits ra=192.244 dec=48.67 rad=12.0 tmin=294796801.0 tmax=295056001.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 2.35
user 2.13
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917648/ft1_filtered_4FGL_J1248.9+4840_daily_bin214.fits evtable="EVENTS" scfile=/scratch/kocevski/917648/ft2_4FGL_J1248.9+4840_daily_bin214.fits sctable="SC_DATA" expcube=/scratch/kocevski/917648/ltcube_294796801_295056001_4FGL_J1248.9+4840_daily_bin214.fits outfile=/scratch/kocevski/917648/expmap_294796801_295056001_4FGL_J1248.9+4840_daily_bin214.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/917648/ltcube_294796801_295056001_4FGL_J1248.9+4840_daily_bin214.fits
.....................!
real 191.20
user 185.28
sys 5.28

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/917648/ft1_filtered_4FGL_J1248.9+4840_daily_bin214.fits scfile=/scratch/kocevski/917648/ft2_4FGL_J1248.9+4840_daily_bin214.fits outfile=/scratch/kocevski/917648/cmap_294796801_295056001_4FGL_J1248.9+4840_daily_bin214.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/917648/ft1_filtered_4FGL_J1248.9+4840_daily_bin214.fits scfile=/scratch/kocevski/917648/ft2_4FGL_J1248.9+4840_daily_bin214.fits outfile=/scratch/kocevski/917648/cmap_HighResolution_294796801_295056001_4FGL_J1248.9+4840_daily_bin214.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.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/917648/ft1_filtered_4FGL_J1248.9+4840_daily_bin214.fits', '/scratch/kocevski/917648/ft2_4FGL_J1248.9+4840_daily_bin214.fits', expMap='/scratch/kocevski/917648/expmap_294796801_295056001_4FGL_J1248.9+4840_daily_bin214.fits', expCube='/scratch/kocevski/917648/ltcube_294796801_295056001_4FGL_J1248.9+4840_daily_bin214.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/917648/Model_4FGL_J1248.9+4840_daily_bin214.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/917648/ft1_filtered_4FGL_J1248.9+4840_daily_bin214.fits
Spacecraft file(s): /scratch/kocevski/917648/ft2_4FGL_J1248.9+4840_daily_bin214.fits
Exposure map: /scratch/kocevski/917648/expmap_294796801_295056001_4FGL_J1248.9+4840_daily_bin214.fits
Exposure cube: /scratch/kocevski/917648/ltcube_294796801_295056001_4FGL_J1248.9+4840_daily_bin214.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/917648/Model_4FGL_J1248.9+4840_daily_bin214.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) = 5953.78322807

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1584       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .98899       1.0000         .10000E-03   10000.    
     3 'norm      '    8.5223       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4633       1.0000         .10000E-03   10000.    
     7 'norm      '    .44544       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.045       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.5163       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.7659       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.3748       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.949       1.0000         .10000E-03   10000.    
    16 'norm      '    26.640       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.0816       1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.311       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.0056       1.0000         .10000E-03   10000.    
    21 'Prefactor '    44.248       1.0000         .10000E-03   10000.    
    22 'norm      '    3.3096       1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .64622       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2983       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=   5953.778     FROM MIGRAD    STATUS=CONVERGED    596 CALLS     2919 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1506        3.8198        .42946E-07    .23522E-03
   2  Prefactor     .98243        14.267       -.16172E-05    .63951E-04
   3  norm          8.5221        2.7375        .12354E-07    .89772E-04
   4  norm          .10000E-03    5.7943       -.30272E-06** at limit **
   5  Prefactor     .10000E-03    34.253       -.22064E-05** at limit **
   6  Prefactor     3.4635        3.9671        .13401E-06   -.80192E-04
   7  norm          .44510        1.2384       -.31059E-06   -.15114E-02
   8  Prefactor     19.041        20.577       -.45234E-06    .19292E-04
   9  Prefactor     .10000E-03    10.375        .39000E-06** at limit **
  10  norm          2.5164        1.7068        .10349E-09    .13942E-03
  11  Prefactor     6.7661        6.4944        .73163E-05    .61661E-04
  12  Prefactor     .10000E-03    20.257        .18956E-05** at limit **
  13  Prefactor     4.3755        8.9628       -.12256E-05   -.15912E-03
  14  Prefactor     .10000E-03    7.2733       -.13003E-06** at limit **
  15  norm          10.950        12.305       -.21725E-06   -.17156E-04
  16  norm          26.643        7.3764       -.66713E-06    .19950E-03
  17  Prefactor     1.9393        141.18       -.17873E-04   -.15011E-04
  18  Prefactor     25.323        23.433       -.13302E-05    .11994E-04
  19  Prefactor     .10000E-03    17.630       -.20583E-05** at limit **
  20  norm          2.0028        4.9233        .42046E-06   -.58822E-03
  21  Prefactor     44.248        53.471       -.22975E-05    .38957E-05
  22  norm          3.3099        1.6327        .10325E-07    .67427E-04
  23  norm          .10000E-03    74.794        .57717E-05** at limit **
  24  Normalizat    .64622        .16664        .96877E-06    .16856E-03
  25  Prefactor     1.2983        .20396        .65535E-07    .18783E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.15065
  Prefactor  = 0.982429
  norm       = 8.52213
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.46349
  norm       = 0.4451
  Prefactor  = 19.0411
  Prefactor  = 0.0001
  norm       = 2.51637
  Prefactor  = 6.76607
  Prefactor  = 0.0001
  Prefactor  = 4.37554
  Prefactor  = 0.0001
  norm       = 10.95
  norm       = 26.6434
  Prefactor  = 1.93934
  Prefactor  = 25.3227
  Prefactor  = 0.0001
  norm       = 2.00279
  Prefactor  = 44.2483
  norm       = 3.30986
  norm       = 0.0001
  Normalizat = 0.646224
  Prefactor  = 1.29826
 **********
 **   18 **HESSE 
 **********

 FCN=   5953.778     FROM HESSE     STATUS=OK           437 CALLS     3356 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1506        4.0161        .11978E-03   -1.5300    
   2  Prefactor     .98243        103.62        .47808E-02   -1.5510    
   3  norm          8.5221        2.7398        .68926E-04   -1.5124    
   4  norm          .10000E-03    5.9015        .18126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    34.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.4635        3.9469        .15615E-03   -1.5336    
   7  norm          .44510        1.1807        .13672E-02   -1.5575    
   8  Prefactor     19.041        20.599        .91778E-04   -1.4835    
   9  Prefactor     .10000E-03    10.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.5164        1.7101        .80684E-04   -1.5391    
  11  Prefactor     6.7661        6.4556        .15426E-03   -1.5188    
  12  Prefactor     .10000E-03    20.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.3755        8.9278        .19256E-03   -1.5290    
  14  Prefactor     .10000E-03    7.2789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.950        12.309        .12108E-03   -1.5046    
  16  norm          26.643        7.3174        .77615E-04   -1.4675    
  17  Prefactor     1.9393        140.44        .28622E-03   -1.5429    
  18  Prefactor     25.323        22.927        .79624E-04   -1.4701    
  19  Prefactor     .10000E-03    17.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.0028        4.7989        .21507E-03   -1.5425    
  21  Prefactor     44.248        53.496        .60271E-04   -1.4377    
  22  norm          3.3099        1.6313        .66578E-04   -1.5344    
  23  norm          .10000E-03    74.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .64622        .19477        .27374E-03   -1.0606    
  25  Prefactor     1.2983        .24074        .25583E-03   -.83359    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32608e-09
Minuit parameter uncertainties:
  1  4.01637
  2  20.2138
  3  2.73986
  4  2.8116e-06
  5  1.91391e-05
  6  3.94724
  7  1.1808
  8  20.6069
  9  4.15683e-05
  10  1.71009
  11  6.45627
  12  2.24027e-06
  13  8.93051
  14  3.67628e-05
  15  12.312
  16  7.31764
  17  33.0872
  18  22.9353
  19  8.23498e-05
  20  4.7998
  21  53.5543
  22  1.6313
  23  3.15761e-06
  24  0.194978
  25  0.240945
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.904e+01  2.061e+01  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:  1.298e+00  2.409e-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:  6.462e-01  1.950e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.15
Ra Dec: 192.244 48.670
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 2.92e-08 +/- 3.15e-08
Energy Flux (Fixed Index): 8.97e-06 +/- 9.70e-06

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

Saving results to:
/scratch/kocevski/917648/likelihoodResults_294796801_295056001_4FGL_J1248.9+4840_daily_bin214.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) = 5953.71004983
delta logL = 0.0678339510378

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5953.70771205
delta logL = 0.0701717374432

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.611       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8150       1.0000          .0000       10.000    
     3 'Normalizat'    .63436       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3087       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5953.708     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      282 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.648        27.075        .10857E-03    .23865E-03
   2  Index         2.8141        1.2436        .82522E-02    .96524E-04
   3  Normalizat    .63447        .19093        .27605E-03    .24389E-03
   4  Prefactor     1.3085        .24227        .25498E-03    .93390E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.6484
  Index      = 2.8141
  Normalizat = 0.634473
  Prefactor  = 1.30849
 **********
 **   18 **HESSE 
 **********

 FCN=   5953.708     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.648        22.412        .43427E-05   -1.4969    
   2  Index         2.8141        1.0322        .33009E-03   -.45246    
   3  Normalizat    .63447        .19055        .11042E-04   -1.0654    
   4  Prefactor     1.3085        .24180        .50997E-04   -.83055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36641e-10
Minuit parameter uncertainties:
  1  22.4261
  2  1.04145
  3  0.19075
  4  0.242012
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917648': 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) = 5953.70771005
delta logL = 0.070173737372

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.365e+01  2.243e+01  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.814e+00  1.041e+00  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:  1.308e+00  2.420e-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:  6.345e-01  1.907e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.30
Ra Dec: 192.244 48.670
Photon Index (Free Index): 2.81 +/- 1.04
Photon Flux (Free Index): 3.73e-08 +/- 4.06e-08
Energy Flux (Free Index): 8.27e-06 +/- 8.58e-06

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/917648/cmap_HighResolution_294796801_295056001_4FGL_J1248.9+4840_daily_bin214.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.68e-03', comment='SUCCESS', photon_flux='2.92e-08', energy_flux2='8.27e-06', photon_flux_error='3.15e-08', dlogl='7.02e-02', energy_flux='8.97e-06', photon_flux2='3.73e-08', job_status='DONE', time_completed='2021-09-06 05:49:02.423658', photon_index_error2='1.04', photon_index2='2.81', ts='1.15', fit_tolerance='1e-08', GAL='1.30', photon_index_error='0.00', photon_flux_upper_limit='9.91e-08', energy_flux_error2='8.58e-06', EG='0.65', time_epoch_completed='1630932542.42', return_code='0', job_id='917648', GAL2='1.31', EG2='0.63', return_code2='0', energy_flux_error='9.70e-06', photon_flux_error2='4.06e-08', ts2='1.30', photon_index='2.45' WHERE bin_id='214' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:49:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 917648: <4FGL_J1248.9+4840_daily_bin214> in cluster <slac> Done

Job <4FGL_J1248.9+4840_daily_bin214> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 05:35:25 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:35:26 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:35:26 2021
Terminated at Mon Sep  6 05:49:03 2021
Results reported at Mon Sep  6 05:49:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin214 192.244 48.67 294796801 295056001 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 :                                   767.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             345.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            818 sec.

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

