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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin431
RA = 192.244, Dec = 48.67
tmin = 351043201, tmax = 351302401
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='917988', job_status='RUN', time_executed='2021-09-06 05:36:58.538711', time_epoch_executed='1630931818.54' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='431'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917988

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917988/ft1_4FGL_J1248.9+4840_daily_bin431.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917988/ft2_4FGL_J1248.9+4840_daily_bin431.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917988/ft1_4FGL_J1248.9+4840_daily_bin431.fits outfile=/scratch/kocevski/917988/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin431.fits ra=192.244 dec=48.67 rad=12.0 tmin=351043201.0 tmax=351302401.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.23
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/917988/ft2_4FGL_J1248.9+4840_daily_bin431.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/917988/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin431.fits evtable="EVENTS" outfile="/scratch/kocevski/917988/ft1_filtered_4FGL_J1248.9+4840_daily_bin431.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/917988/ft1_filtered_4FGL_J1248.9+4840_daily_bin431.fits" evtable="EVENTS" scfile=/scratch/kocevski/917988/ft2_4FGL_J1248.9+4840_daily_bin431.fits sctable="SC_DATA" outfile=/scratch/kocevski/917988/ltcube_351043201_351302401_4FGL_J1248.9+4840_daily_bin431.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/917988/ft2_4FGL_J1248.9+4840_daily_bin431.fits
.....................!
real 11.85
user 11.49
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917988/ft1_filtered_4FGL_J1248.9+4840_daily_bin431.fits evtable="EVENTS" scfile=/scratch/kocevski/917988/ft2_4FGL_J1248.9+4840_daily_bin431.fits sctable="SC_DATA" expcube=/scratch/kocevski/917988/ltcube_351043201_351302401_4FGL_J1248.9+4840_daily_bin431.fits outfile=/scratch/kocevski/917988/expmap_351043201_351302401_4FGL_J1248.9+4840_daily_bin431.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/917988/ltcube_351043201_351302401_4FGL_J1248.9+4840_daily_bin431.fits
.....................!
real 190.39
user 185.01
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/917988/ft1_filtered_4FGL_J1248.9+4840_daily_bin431.fits scfile=/scratch/kocevski/917988/ft2_4FGL_J1248.9+4840_daily_bin431.fits outfile=/scratch/kocevski/917988/cmap_351043201_351302401_4FGL_J1248.9+4840_daily_bin431.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.62
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/917988/ft1_filtered_4FGL_J1248.9+4840_daily_bin431.fits scfile=/scratch/kocevski/917988/ft2_4FGL_J1248.9+4840_daily_bin431.fits outfile=/scratch/kocevski/917988/cmap_HighResolution_351043201_351302401_4FGL_J1248.9+4840_daily_bin431.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.57
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.109       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.240       1.0000         .10000E-03   10000.    
     3 'norm      '    5.0547       1.0000         .10000E-03   10000.    
     4 'norm      '    .12533E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.861       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.3480       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.3810       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.6720       1.0000         .10000E-03   10000.    
    10 'norm      '    6.1551       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    58.192       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    19.476       1.0000         .10000E-03   10000.    
    16 'norm      '    2.2734       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.641       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    73.535       1.0000         .10000E-03   10000.    
    20 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    130.75       1.0000         .10000E-03   10000.    
    22 'norm      '    9.5562       1.0000         .10000E-03   10000.    
    23 'norm      '    186.06       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .80932       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .89546       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=   5903.177     FROM MIGRAD    STATUS=CONVERGED    536 CALLS     2843 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.110        5.1197        .72112E-07    .20366E-05
   2  Prefactor     21.241        26.136        .11460E-05    .40353E-05
   3  norm          5.0554        2.4606       -.31335E-06   -.80727E-04
   4  norm          .10001E-03    5.6609        .17626E-05** at limit **
   5  Prefactor     11.848        22.478       -.28022E-04   -.99457E-04
   6  Prefactor     .10000E-03    1.6683       -.55372E-07** at limit **
   7  norm          1.3481        1.6927       -.24907E-06   -.59594E-03
   8  Prefactor     7.3877        23.029        .20197E-04    .30942E-04
   9  Prefactor     7.6709        13.573       -.16696E-05   -.24796E-04
  10  norm          6.1555        2.4643       -.15042E-07    .11755E-04
  11  Prefactor     .10000E-03    2.5525       -.12236E-05** at limit **
  12  Prefactor     58.202        51.821        .11991E-04    .12085E-04
  13  Prefactor     .10000E-03    2.9294        .11967E-05** at limit **
  14  Prefactor     .10000E-03    10.974        .15869E-05** at limit **
  15  norm          19.476        15.092       -.12720E-05    .72464E-05
  16  norm          2.2761        4.0438        .64024E-05    .31283E-03
  17  Prefactor     10.589        34.856       -.14285E-03   -.10809E-03
  18  Prefactor     .10000E-03    5.6398       -.11273E-05** at limit **
  19  Prefactor     73.562        41.317        .32207E-04    .22828E-03
  20  norm          .10000E-03    1.9366        .57275E-06** at limit **
  21  Prefactor     130.77        59.790        .13255E-04    .10400E-04
  22  norm          9.5566        2.1398       -.11080E-06    .44614E-03
  23  norm          186.09        120.85        .21598E-04    .84894E-06
  24  Normalizat    .80894        .16643        .38449E-05   -.12013E-03
  25  Prefactor     .89589        .19376       -.18674E-05    .13515E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.1098
  Prefactor  = 21.2405
  norm       = 5.05542
  norm       = 0.000100005
  Prefactor  = 11.8478
  Prefactor  = 0.0001
  norm       = 1.34806
  Prefactor  = 7.38765
  Prefactor  = 7.67089
  norm       = 6.15546
  Prefactor  = 0.0001
  Prefactor  = 58.2016
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.4755
  norm       = 2.27613
  Prefactor  = 10.5888
  Prefactor  = 0.0001
  Prefactor  = 73.5623
  norm       = 0.0001
  Prefactor  = 130.768
  norm       = 9.55657
  norm       = 186.086
  Normalizat = 0.808936
  Prefactor  = 0.895889
 **********
 **   18 **HESSE 
 **********

 FCN=   5903.177     FROM HESSE     STATUS=OK           431 CALLS     3274 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.110        5.1280        .94810E-04   -1.4984    
   2  Prefactor     21.241        26.150        .86909E-04   -1.4786    
   3  norm          5.0554        2.4645        .80087E-04   -1.5258    
   4  norm          .10001E-03    5.7355        .17807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.848        22.456        .11632E-03   -1.5019    
   6  Prefactor     .10000E-03    1.6729        .96867E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.3481        1.6642        .10825E-03   -1.5476    
   8  Prefactor     7.3877        22.984        .14763E-03   -1.5164    
   9  Prefactor     7.6709        13.570        .14478E-03   -1.5154    
  10  norm          6.1555        2.4647        .73828E-04   -1.5212    
  11  Prefactor     .10000E-03    2.5536        .11988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     58.202        51.873        .52591E-04   -1.4181    
  13  Prefactor     .10000E-03    2.9471        .12840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          19.476        15.094        .90756E-04   -1.4825    
  16  norm          2.2761        4.0080        .19111E-03   -1.5406    
  17  Prefactor     10.589        34.841        .12282E-03   -1.5057    
  18  Prefactor     .10000E-03    5.6519        .17818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     73.562        41.330        .46820E-04   -1.3990    
  20  norm          .10000E-03    1.9657        .10436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     130.77        59.918        .17606E-03   -1.3416    
  22  norm          9.5566        2.1412        .50837E-04   -1.5090    
  23  norm          186.09        120.84        .14801E-03   -1.2971    
  24  Normalizat    .80894        .19518        .24089E-03   -.99738    
  25  Prefactor     .89589        .22608        .28444E-03   -.96285    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92966e-09
Minuit parameter uncertainties:
  1  5.12815
  2  26.1643
  3  2.46453
  4  0.000348437
  5  22.4718
  6  1.4972e-06
  7  1.66423
  8  23.0119
  9  13.5756
  10  2.46477
  11  8.97197e-07
  12  51.9129
  13  8.10454e-06
  14  1.91077e-05
  15  15.0972
  16  4.00849
  17  34.9078
  18  1.1241e-05
  19  41.3463
  20  3.27485e-05
  21  59.946
  22  2.14125
  23  121.003
  24  0.19535
  25  0.226316
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  7.388e+00  2.301e+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:  8.959e-01  2.263e-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:  8.089e-01  1.953e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/917988/likelihoodResults_351043201_351302401_4FGL_J1248.9+4840_daily_bin431.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) = 5902.96240191
delta logL = 0.214369106357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5902.96171719
delta logL = 0.21505382438

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0959       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2180       1.0000          .0000       10.000    
     3 'Normalizat'    .76975       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92919       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=   5902.962     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      305 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0827        30.478        .11383E-01   -.62283E-03
   2  Index         4.2242        3.6690        .13551       -.31582E-04
   3  Normalizat    .76974        .33586E-01    .43214E-01   -.26012E-03
   4  Prefactor     .92921        .41647E-01    .45376E-01   -.14775E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.08268
  Index      = 4.22422
  Normalizat = 0.769745
  Prefactor  = 0.929215
 **********
 **   18 **HESSE 
 **********

 FCN=   5902.962     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      338 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0827        93.648        .10430E-03   -1.5500    
   2  Index         4.2242        6.6937        .79026E-02   -.15579    
   3  Normalizat    .76974        .14675        .24640E-03   -1.0120    
   4  Prefactor     .92921        .17891        .27967E-03   -.95128    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.78944e-09
Minuit parameter uncertainties:
  1  20.1704
  2  9.88844
  3  0.146824
  4  0.17902
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917988': 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) = 5902.96171593
delta logL = 0.215055084689

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.083e+00  2.017e+01  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  4.224e+00  9.888e+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:  9.292e-01  1.790e-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:  7.697e-01  1.468e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
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/917988/cmap_HighResolution_351043201_351302401_4FGL_J1248.9+4840_daily_bin431.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.98e-03', job_status='DONE', photon_flux_upper_limit='9.00e-08', time_completed='2021-09-06 05:49:43.800124', job_id='917988', GAL2='0.93', fit_tolerance='1e-08', EG2='0.77', EG='0.81', time_epoch_completed='1630932583.8', return_code2='102', ts='0.12', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='2.15e-01', ts2='0.60', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='431' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:49:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 917988: <4FGL_J1248.9+4840_daily_bin431> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin431 192.244 48.67 351043201 351302401 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 :                                   759.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            833 sec.

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

