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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin300
RA = 192.244, Dec = 48.67
tmin = 317088001, tmax = 317347201
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='917785', job_status='RUN', time_executed='2021-09-06 05:35:54.044433', time_epoch_executed='1630931754.04' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='300'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917785

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917785/ft1_4FGL_J1248.9+4840_daily_bin300.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917785/ft2_4FGL_J1248.9+4840_daily_bin300.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917785/ft1_4FGL_J1248.9+4840_daily_bin300.fits outfile=/scratch/kocevski/917785/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin300.fits ra=192.244 dec=48.67 rad=12.0 tmin=317088001.0 tmax=317347201.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.85
user 3.65
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/917785/ft1_filtered_4FGL_J1248.9+4840_daily_bin300.fits" evtable="EVENTS" scfile=/scratch/kocevski/917785/ft2_4FGL_J1248.9+4840_daily_bin300.fits sctable="SC_DATA" outfile=/scratch/kocevski/917785/ltcube_317088001_317347201_4FGL_J1248.9+4840_daily_bin300.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/917785/ft2_4FGL_J1248.9+4840_daily_bin300.fits
.....................!
real 11.93
user 11.53
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917785/ft1_filtered_4FGL_J1248.9+4840_daily_bin300.fits evtable="EVENTS" scfile=/scratch/kocevski/917785/ft2_4FGL_J1248.9+4840_daily_bin300.fits sctable="SC_DATA" expcube=/scratch/kocevski/917785/ltcube_317088001_317347201_4FGL_J1248.9+4840_daily_bin300.fits outfile=/scratch/kocevski/917785/expmap_317088001_317347201_4FGL_J1248.9+4840_daily_bin300.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/917785/ltcube_317088001_317347201_4FGL_J1248.9+4840_daily_bin300.fits
.....................!
real 190.25
user 185.58
sys 4.19

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/917785/ft1_filtered_4FGL_J1248.9+4840_daily_bin300.fits scfile=/scratch/kocevski/917785/ft2_4FGL_J1248.9+4840_daily_bin300.fits outfile=/scratch/kocevski/917785/cmap_317088001_317347201_4FGL_J1248.9+4840_daily_bin300.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/917785/ft1_filtered_4FGL_J1248.9+4840_daily_bin300.fits scfile=/scratch/kocevski/917785/ft2_4FGL_J1248.9+4840_daily_bin300.fits outfile=/scratch/kocevski/917785/cmap_HighResolution_317088001_317347201_4FGL_J1248.9+4840_daily_bin300.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1211       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.7598       1.0000         .10000E-03   10000.    
     4 'norm      '    .11732E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.8527       1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.630       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .69157       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11072E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    65.874       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    44.916       1.0000         .10000E-03   10000.    
    15 'norm      '    3.8217       1.0000         .10000E-03   10000.    
    16 'norm      '    .10195E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15050E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    92.045       1.0000         .10000E-03   10000.    
    20 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    69.346       1.0000         .10000E-03   10000.    
    22 'norm      '    3.8791       1.0000         .10000E-03   10000.    
    23 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .99644       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99233       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=   6338.382     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2956 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1215        2.4674        .15546E-06    .32247E-03
   2  Prefactor     .10000E-03    4.5359       -.31335E-07** at limit **
   3  norm          1.7601        1.8729        .28478E-06    .60057E-03
   4  norm          .10018E-03    11.952       -.50601E-05** at limit **
   5  Prefactor     .10001E-03    28.415        .16833E-05** at limit **
   6  Prefactor     .10000E-03    1.6238       -.70983E-07** at limit **
   7  norm          2.8527        1.8934        .27454E-06    .83069E-03
   8  Prefactor     30.652        25.092        .83343E-06    .33515E-03
   9  Prefactor     .10000E-03    7.3663       -.80734E-07** at limit **
  10  norm          .69100        1.7310        .14861E-05    .15170E-02
  11  Prefactor     .10000E-03    6.5961       -.53492E-06** at limit **
  12  Prefactor     65.870        49.401        .16220E-06   -.28144E-04
  13  Prefactor     .10000E-03    6.2972       -.83974E-07** at limit **
  14  Prefactor     44.910        28.948        .14737E-06   -.10414E-03
  15  norm          3.8210        9.6291        .57842E-06    .10782E-03
  16  norm          .10000E-03    2.8254        .76752E-06** at limit **
  17  Prefactor     .10001E-03    27.351        .33066E-05** at limit **
  18  Prefactor     .10000E-03    12.501        .27276E-06** at limit **
  19  Prefactor     92.068        37.753        .11050E-05    .40153E-03
  20  norm          .10000E-03    1.7150        .25881E-06** at limit **
  21  Prefactor     69.341        53.818        .60341E-06   -.37246E-04
  22  norm          3.8791        1.6255        .55339E-07    .22989E-03
  23  norm          .10000E-03    42.332       -.26687E-06** at limit **
  24  Normalizat    .99599        .17782       -.31569E-05    .10828E-03
  25  Prefactor     .99294        .20695        .23602E-05    .16495E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.12153
  Prefactor  = 0.0001
  norm       = 1.76012
  norm       = 0.000100183
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 2.8527
  Prefactor  = 30.6518
  Prefactor  = 0.0001
  norm       = 0.690996
  Prefactor  = 0.0001
  Prefactor  = 65.8696
  Prefactor  = 0.0001
  Prefactor  = 44.9105
  norm       = 3.82105
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 92.0685
  norm       = 0.0001
  Prefactor  = 69.3415
  norm       = 3.8791
  norm       = 0.0001
  Normalizat = 0.995992
  Prefactor  = 0.992937
 **********
 **   18 **HESSE 
 **********

 FCN=   6338.382     FROM HESSE     STATUS=OK           419 CALLS     3375 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1215        2.4650        .10741E-03   -1.5355    
   2  Prefactor     .10000E-03    4.5389        .16558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.7601        1.8667        .10700E-03   -1.5443    
   4  norm          .10018E-03    23.170        .33182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    28.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.6278        .99057E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.8527        1.9011        .43350E-03   -1.5370    
   8  Prefactor     30.652        25.330        .72395E-04   -1.4600    
   9  Prefactor     .10000E-03    7.3687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .69100        1.8040        .16709E-03   -1.5542    
  11  Prefactor     .10000E-03    6.6245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     65.870        49.421        .49448E-04   -1.4083    
  13  Prefactor     .10000E-03    6.3990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     44.910        28.993        .59823E-04   -1.4367    
  15  norm          3.8210        9.6275        .20646E-03   -1.5317    
  16  norm          .10000E-03    2.9067        .13105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    27.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     92.068        38.085        .20943E-03   -1.3786    
  20  norm          .10000E-03    1.7367        .10186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     69.341        53.986        .48203E-04   -1.4041    
  22  norm          3.8791        1.6248        .62859E-04   -1.5314    
  23  norm          .10000E-03    42.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .99599        .20322        .22884E-03   -.93165    
  25  Prefactor     .99294        .23668        .28447E-03   -.92965    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0064e-08
Minuit parameter uncertainties:
  1  2.46509
  2  7.97797e-07
  3  1.86681
  4  0.0041175
  5  0.000799156
  6  4.20288e-06
  7  1.90116
  8  25.3392
  9  8.35421e-06
  10  1.8041
  11  7.45889e-05
  12  49.4519
  13  2.82283e-06
  14  29.0023
  15  9.63137
  16  6.06411e-05
  17  0.00089954
  18  6.10997e-05
  19  38.0948
  20  1.6448e-05
  21  54.0244
  22  1.6248
  23  0.000163609
  24  0.203378
  25  0.23693
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  3.065e+01  2.534e+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:  9.929e-01  2.369e-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:  9.960e-01  2.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.92
Ra Dec: 192.244 48.670
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 4.69e-08 +/- 3.88e-08
Energy Flux (Fixed Index): 1.44e-05 +/- 1.19e-05

TS (Fixed Index): 1.92
Ra Dec: 192.244 48.670
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/917785/likelihoodResults_317088001_317347201_4FGL_J1248.9+4840_daily_bin300.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) = 6337.43882466
delta logL = 0.943591191506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6337.41940134
delta logL = 0.963014516963

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.7111       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4768       1.0000          .0000       10.000    
     3 'Normalizat'    .93990       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0415       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=   6337.419     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      281 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7143        33.113        .12859E-03    .25183E-02
   2  Index         3.4769        1.8199        .42835E-02    .74906E-03
   3  Normalizat    .93986        .19654        .23459E-03    .11950E-02
   4  Prefactor     1.0415        .24109        .27874E-03    .90200E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.71427
  Index      = 3.47695
  Normalizat = 0.939861
  Prefactor  = 1.04154
 **********
 **   18 **HESSE 
 **********

 FCN=   6337.419     FROM HESSE     STATUS=OK            23 CALLS      304 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7143        16.244        .51437E-05   -1.5085    
   2  Index         3.4769        .90820        .17134E-03   -.30953    
   3  Normalizat    .93986        .19594        .46919E-04   -.95073    
   4  Prefactor     1.0415        .23885        .55749E-04   -.91357    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78727e-09
Minuit parameter uncertainties:
  1  16.2511
  2  0.913792
  3  0.196092
  4  0.239095
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917785': 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) = 6337.41940097
delta logL = 0.96301488846

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  9.714e+00  1.625e+01  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  3.477e+00  9.138e-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:  1.042e+00  2.391e-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:  9.399e-01  1.961e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.99
Ra Dec: 192.244 48.670
Photon Index (Free Index): 3.48 +/- 0.91
Photon Flux (Free Index): 8.39e-08 +/- 4.98e-08
Energy Flux (Free Index): 1.41e-05 +/- 8.61e-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/917785/cmap_HighResolution_317088001_317347201_4FGL_J1248.9+4840_daily_bin300.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.49e-03', comment='SUCCESS', photon_flux='4.69e-08', energy_flux2='1.41e-05', photon_flux_error='3.88e-08', dlogl='9.63e-01', energy_flux='1.44e-05', photon_flux2='8.39e-08', job_status='DONE', time_completed='2021-09-06 05:49:32.568637', photon_index_error2='0.91', photon_index2='3.48', ts='1.92', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='8.61e-06', EG='1.00', time_epoch_completed='1630932572.57', return_code='0', job_id='917785', GAL2='1.04', EG2='0.94', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='4.98e-08', ts2='3.99', photon_index='2.45' WHERE bin_id='300' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:49:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 917785: <4FGL_J1248.9+4840_daily_bin300> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin300 192.244 48.67 317088001 317347201 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 :                                   809.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             374.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            838 sec.

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

