/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 88 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 = 6834
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1248.9+4840_daily_bin613
RA = 192.244, Dec = 48.67
tmin = 398217601, tmax = 398476801
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='919375', job_status='RUN', time_executed='2021-09-06 05:42:21.049651', time_epoch_executed='1630932141.05' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='613'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919375

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919375/ft1_4FGL_J1248.9+4840_daily_bin613.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919375/ft2_4FGL_J1248.9+4840_daily_bin613.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919375/ft1_4FGL_J1248.9+4840_daily_bin613.fits outfile=/scratch/kocevski/919375/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin613.fits ra=192.244 dec=48.67 rad=12.0 tmin=398217601.0 tmax=398476801.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 6.49
user 6.21
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919375/ft1_filtered_4FGL_J1248.9+4840_daily_bin613.fits evtable="EVENTS" scfile=/scratch/kocevski/919375/ft2_4FGL_J1248.9+4840_daily_bin613.fits sctable="SC_DATA" expcube=/scratch/kocevski/919375/ltcube_398217601_398476801_4FGL_J1248.9+4840_daily_bin613.fits outfile=/scratch/kocevski/919375/expmap_398217601_398476801_4FGL_J1248.9+4840_daily_bin613.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/919375/ltcube_398217601_398476801_4FGL_J1248.9+4840_daily_bin613.fits
.....................!
real 190.32
user 184.93
sys 4.99

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/919375/ft1_filtered_4FGL_J1248.9+4840_daily_bin613.fits scfile=/scratch/kocevski/919375/ft2_4FGL_J1248.9+4840_daily_bin613.fits outfile=/scratch/kocevski/919375/cmap_398217601_398476801_4FGL_J1248.9+4840_daily_bin613.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.60
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/919375/ft1_filtered_4FGL_J1248.9+4840_daily_bin613.fits scfile=/scratch/kocevski/919375/ft2_4FGL_J1248.9+4840_daily_bin613.fits outfile=/scratch/kocevski/919375/cmap_HighResolution_398217601_398476801_4FGL_J1248.9+4840_daily_bin613.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18498       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.023       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11934       1.0000         .10000E-03   10000.    
     7 'norm      '    1.1482       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3670       1.0000         .10000E-03   10000.    
    10 'norm      '    5.3583       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.617       1.0000         .10000E-03   10000.    
    15 'norm      '    7.7582       1.0000         .10000E-03   10000.    
    16 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.681       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.4258       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.974       1.0000         .10000E-03   10000.    
    22 'norm      '    10.552       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1470       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .85460       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=   4727.336     FROM MIGRAD    STATUS=CONVERGED    616 CALLS     2944 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17070        2.3893        .10973E-06   -.73910E-04
   2  Prefactor     20.014        25.718       -.17862E-07   -.27011E-04
   3  norm          .10000E-03    .45572       -.22314E-07** at limit **
   4  norm          .10000E-03    4.0903       -.16207E-06** at limit **
   5  Prefactor     .10000E-03    27.153        .55407E-08** at limit **
   6  Prefactor     .98132E-01    6.5353        .41747E-05   -.78354E-03
   7  norm          1.1499        2.2343        .93457E-07   -.29254E-03
   8  Prefactor     .10000E-03    20.915       -.15785E-06** at limit **
   9  Prefactor     1.3656        48.932        .22798E-04    .15089E-03
  10  norm          5.3582        2.8094        .32924E-07   -.95853E-04
  11  Prefactor     .10000E-03    5.6214        .28753E-06** at limit **
  12  Prefactor     .10000E-03    58.856        .18138E-06** at limit **
  13  Prefactor     .10000E-03    9.9570       -.12103E-06** at limit **
  14  Prefactor     19.610        24.301       -.66114E-06    .13150E-03
  15  norm          7.7590        21.581        .12918E-06   -.17045E-04
  16  norm          .10000E-03    2.8981        .11121E-07** at limit **
  17  Prefactor     .10000E-03    29.178       -.45774E-06** at limit **
  18  Prefactor     13.682        22.701       -.88173E-06    .27355E-03
  19  Prefactor     .10000E-03    13.994        .34870E-08** at limit **
  20  norm          6.4258        6.4685        .40097E-06    .12643E-03
  21  Prefactor     14.705        57.738        .14142E-05   -.25056E-05
  22  norm          10.551        2.8106        .36700E-07    .11876E-03
  23  norm          .10000E-03    42.666       -.16118E-07** at limit **
  24  Normalizat    1.1475        .19535       -.63897E-06   -.25008E-03
  25  Prefactor     .85416        .23818       -.60919E-07   -.78859E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.170696
  Prefactor  = 20.0136
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0981316
  norm       = 1.14994
  Prefactor  = 0.0001
  Prefactor  = 1.36562
  norm       = 5.35818
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 19.61
  norm       = 7.75896
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 13.6819
  Prefactor  = 0.0001
  norm       = 6.4258
  Prefactor  = 14.7052
  norm       = 10.5511
  norm       = 0.0001
  Normalizat = 1.14746
  Prefactor  = 0.854159
 **********
 **   18 **HESSE 
 **********

 FCN=   4727.336     FROM HESSE     STATUS=OK           427 CALLS     3371 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17070        18.711        .18270E-02   -1.5625    
   2  Prefactor     20.014        26.603        .89509E-04   -1.4813    
   3  norm          .10000E-03    .45699        .45322E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.1377        .13579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    27.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .98132E-01    79.819        .26017E-02   -1.5645    
   7  norm          1.1499        2.2171        .13065E-03   -1.5493    
   8  Prefactor     .10000E-03    21.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.3656        49.861        .18656E-02   -1.5474    
  10  norm          5.3582        2.8097        .80556E-04   -1.5245    
  11  Prefactor     .10000E-03    5.6385        .15929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    59.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.610        24.343        .90429E-04   -1.4822    
  15  norm          7.7590        21.637        .14397E-03   -1.5151    
  16  norm          .10000E-03    2.9340        .11426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    29.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.682        22.870        .10829E-03   -1.4968    
  19  Prefactor     .10000E-03    13.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.4258        6.4738        .14522E-03   -1.5201    
  21  Prefactor     14.705        57.910        .10350E-03   -1.4941    
  22  norm          10.551        2.8116        .57370E-04   -1.5058    
  23  norm          .10000E-03    42.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1475        .23030        .21733E-03   -.88242    
  25  Prefactor     .85416        .28134        .30526E-03   -.97762    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1501e-08
Minuit parameter uncertainties:
  1  3.57439
  2  26.6184
  3  1.07622e-06
  4  2.07032e-05
  5  0.000587801
  6  5.60207
  7  2.21722
  8  1.27389e-05
  9  16.5177
  10  2.80979
  11  2.91202e-05
  12  0.000548281
  13  4.82494e-05
  14  24.3558
  15  21.6584
  16  1.36124e-06
  17  0.000451312
  18  22.8846
  19  5.28262e-06
  20  6.47452
  21  58.1323
  22  2.8116
  23  1.55522e-05
  24  0.230503
  25  0.281822
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  1.274e-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:  8.542e-01  2.818e-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.147e+00  2.305e-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.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/919375/likelihoodResults_398217601_398476801_4FGL_J1248.9+4840_daily_bin613.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) = 4727.3357767
delta logL = -0.000226023250434

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4727.33555212
delta logL = -1.43920897244e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7720       1.0000          .0000       10.000    
     3 'Normalizat'    1.1475       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85416       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=   4727.336     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      280 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10591E-03    7.9209        .18142E-01** at limit **
   2  Index         2.6577        5.7827        .50000        .23197E-04
   3  Normalizat    1.1475        .33025E-02    .21733E-03   -.23797E-03
   4  Prefactor     .85415        .40796E-02    .30526E-03   -.30115E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105906
  Index      = 2.65769
  Normalizat = 1.14747
  Prefactor  = 0.854153
 **********
 **   18 **HESSE 
 **********

 FCN=   4727.336     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      309 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10591E-03    356.88        .52542E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6577        5.0105        .50000       -.48755    
   3  Normalizat    1.1475        .22444E-01    .43467E-04   -.88242    
   4  Prefactor     .85415        .27725E-01    .61052E-04   -.97762    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.05813e-08
Minuit parameter uncertainties:
  1  0.0923755
  2  564.659
  3  0.022444
  4  0.0277254
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919375': 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) = 4727.33555165
delta logL = -9.72961061052e-07

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.059e-04  9.238e-02  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.658e+00  5.647e+02  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:  8.542e-01  2.773e-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.147e+00  2.244e-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/919375/cmap_HighResolution_398217601_398476801_4FGL_J1248.9+4840_daily_bin613.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.84e-03', job_status='DONE', photon_flux_upper_limit='7.53e-08', time_completed='2021-09-06 05:54:01.967736', job_id='919375', GAL2='0.85', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1630932841.97', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='-9.73e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='613' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:54:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 919375: <4FGL_J1248.9+4840_daily_bin613> in cluster <slac> Done

Job <4FGL_J1248.9+4840_daily_bin613> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 05:40:40 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:40:42 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:40:42 2021
Terminated at Mon Sep  6 05:54:02 2021
Results reported at Mon Sep  6 05:54:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin613 192.244 48.67 398217601 398476801 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 :                                   695.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            802 sec.

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

