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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin931
RA = 192.244, Dec = 48.67
tmin = 480643201, tmax = 480902401
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='922576', job_status='RUN', time_executed='2021-09-06 05:52:01.372198', time_epoch_executed='1630932721.37' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='931'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/922576

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/922576/ft1_4FGL_J1248.9+4840_daily_bin931.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/922576/ft2_4FGL_J1248.9+4840_daily_bin931.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/922576/ft1_4FGL_J1248.9+4840_daily_bin931.fits outfile=/scratch/kocevski/922576/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin931.fits ra=192.244 dec=48.67 rad=12.0 tmin=480643201.0 tmax=480902401.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.59
user 3.32
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/922576/ft1_filtered_4FGL_J1248.9+4840_daily_bin931.fits" evtable="EVENTS" scfile=/scratch/kocevski/922576/ft2_4FGL_J1248.9+4840_daily_bin931.fits sctable="SC_DATA" outfile=/scratch/kocevski/922576/ltcube_480643201_480902401_4FGL_J1248.9+4840_daily_bin931.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/922576/ft2_4FGL_J1248.9+4840_daily_bin931.fits
.....................!
real 12.08
user 11.69
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/922576/ft1_filtered_4FGL_J1248.9+4840_daily_bin931.fits evtable="EVENTS" scfile=/scratch/kocevski/922576/ft2_4FGL_J1248.9+4840_daily_bin931.fits sctable="SC_DATA" expcube=/scratch/kocevski/922576/ltcube_480643201_480902401_4FGL_J1248.9+4840_daily_bin931.fits outfile=/scratch/kocevski/922576/expmap_480643201_480902401_4FGL_J1248.9+4840_daily_bin931.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/922576/ltcube_480643201_480902401_4FGL_J1248.9+4840_daily_bin931.fits
.....................!
real 190.69
user 185.78
sys 4.51

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/922576/ft1_filtered_4FGL_J1248.9+4840_daily_bin931.fits scfile=/scratch/kocevski/922576/ft2_4FGL_J1248.9+4840_daily_bin931.fits outfile=/scratch/kocevski/922576/cmap_480643201_480902401_4FGL_J1248.9+4840_daily_bin931.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/922576/ft1_filtered_4FGL_J1248.9+4840_daily_bin931.fits scfile=/scratch/kocevski/922576/ft2_4FGL_J1248.9+4840_daily_bin931.fits outfile=/scratch/kocevski/922576/cmap_HighResolution_480643201_480902401_4FGL_J1248.9+4840_daily_bin931.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10507E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.449       1.0000         .10000E-03   10000.    
     3 'norm      '    1.0095       1.0000         .10000E-03   10000.    
     4 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.3290       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.1508       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .61498       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.0904       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10149E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .22955E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .17921E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.4140       1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.984       1.0000         .10000E-03   10000.    
    20 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11808E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.9082       1.0000         .10000E-03   10000.    
    23 'norm      '    .16115E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1368       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .85010       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=   5795.370     FROM MIGRAD    STATUS=CONVERGED   1060 CALLS     3384 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8201        .19667E-03** at limit **
   2  Prefactor     13.406        17.408        .10922E-03    .16654E-05
   3  norm          1.0088        1.9317        .13938E-03   -.14136E-03
   4  norm          .10000E-03    6.6000        .36285E-03** at limit **
   5  Prefactor     2.3621        35.389        .13437E-02    .18301E-04
   6  Prefactor     .10000E-03    3.7094        .14152E-02** at limit **
   7  norm          2.1505        1.5542        .78393E-04   -.95424E-04
   8  Prefactor     .36290        30.379        .87566E-01    .31614E-03
   9  Prefactor     .10000E-03    7.8628        .18142E-02** at limit **
  10  norm          1.0903        1.9718        .14068E-03    .10102E-04
  11  Prefactor     .10000E-03    4.1265        .15081E-02** at limit **
  12  Prefactor     .10000E-03    16.698        .18142E-02** at limit **
  13  Prefactor     .10000E-03    13.962        .36285E-03** at limit **
  14  Prefactor     .10000E-03    8.8854        .18142E-02** at limit **
  15  norm          .10000E-03    6.6086        .18142E-02** at limit **
  16  norm          .10000E-03    9.8153        .20205E-02** at limit **
  17  Prefactor     .10000E-03    117.67        .55975E-02** at limit **
  18  Prefactor     5.4102        8.6682        .86351E-03   -.37917E-05
  19  Prefactor     35.970        36.085        .66809E-04    .51050E-05
  20  norm          .10000E-03    .99666        .74138E-03** at limit **
  21  Prefactor     .10000E-03    25.737        .18142E-02** at limit **
  22  norm          2.9072        1.5375        .65678E-04    .70624E-04
  23  norm          .10000E-03    41.216        .18142E-02** at limit **
  24  Normalizat    1.1371        .19524        .20435E-03    .19618E-03
  25  Prefactor     .84991        .23308        .28786E-03    .20785E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.4063
  norm       = 1.00875
  norm       = 0.0001
  Prefactor  = 2.36206
  Prefactor  = 0.0001
  norm       = 2.15047
  Prefactor  = 0.362899
  Prefactor  = 0.0001
  norm       = 1.09027
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100004
  Prefactor  = 0.000100004
  Prefactor  = 5.41015
  Prefactor  = 35.9698
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.90722
  norm       = 0.0001
  Normalizat = 1.13715
  Prefactor  = 0.849912
 **********
 **   18 **HESSE 
 **********

 FCN=   5795.370     FROM HESSE     STATUS=OK           415 CALLS     3799 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8201        .39335E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.406        17.405        .43689E-05   -1.4976    
   3  norm          1.0088        1.9313        .55750E-05   -1.5507    
   4  norm          .10000E-03    6.6002        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.3621        35.174        .53746E-04   -1.5401    
   6  Prefactor     .10000E-03    3.7113        .28303E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.1505        1.5541        .31357E-05   -1.5415    
   8  Prefactor     .36290        25.501        .97214E-01   -1.5587    
   9  Prefactor     .10000E-03    7.8629        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.0903        1.9717        .56272E-05   -1.5499    
  11  Prefactor     .10000E-03    4.1269        .30161E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.698        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.963        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.8860        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.6091        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    9.8919        .40410E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    119.92        .11195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.4102        8.6671        .34540E-04   -1.5243    
  19  Prefactor     35.970        36.051        .26723E-05   -1.4508    
  20  norm          .10000E-03    .99667        .14828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    25.738        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.9072        1.5374        .26271E-05   -1.5367    
  23  norm          .10000E-03    41.216        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1371        .19523        .40870E-04   -.88568    
  25  Prefactor     .84991        .23327        .11515E-04   -.97914    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40071e-09
Minuit parameter uncertainties:
  1  2.78462e-05
  2  17.4112
  3  1.93143
  4  3.53237e-05
  5  18.2425
  6  1.64149e-05
  7  1.55412
  8  6.08603
  9  5.34199e-06
  10  1.97177
  11  6.06788e-06
  12  2.87044e-05
  13  0.000110667
  14  7.31679e-06
  15  1.06167e-05
  16  0.000412635
  17  0.00145434
  18  8.66916
  19  36.0727
  20  1.61123e-06
  21  9.67916e-06
  22  1.53741
  23  6.41841e-05
  24  0.195351
  25  0.233546
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  3.629e-01  6.086e+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

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  8.499e-01  2.335e-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.137e+00  1.954e-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: 8.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/922576/likelihoodResults_480643201_480902401_4FGL_J1248.9+4840_daily_bin931.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) = 5795.36636501
delta logL = 0.0036418138161

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5795.34850725
delta logL = 0.0214995777733

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7462       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1522       1.0000          .0000       10.000    
     3 'Normalizat'    1.1279       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85531       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5795.349     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      303 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7527        53.600        .15869E-02    .45959E-03
   2  Index         3.1513        6.5539        .48645E-02    .15437E-04
   3  Normalizat    1.1279        .19244        .20509E-03    .36031E-05
   4  Prefactor     .85537        .23329        .28704E-03    .25348E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.75267
  Index      = 3.15129
  Normalizat = 1.12792
  Prefactor  = 0.855365
 **********
 **   18 **HESSE 
 **********

 FCN=   5795.349     FROM HESSE     STATUS=OK            27 CALLS      330 TOTAL
                     EDM=   .58E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7527        23.903        .31737E-03   -1.5443    
   2  Index         3.1513        3.0229        .97290E-03   -.37873    
   3  Normalizat    1.1279        .19262        .82036E-05   -.88860    
   4  Prefactor     .85537        .23359        .11482E-04   -.97719    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.83719e-14
Minuit parameter uncertainties:
  1  12.951
  2  3.29147
  3  0.192739
  4  0.233864
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/922576': 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) = 5795.34850695
delta logL = 0.0214998774163

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.753e+00  1.295e+01  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  3.151e+00  3.291e+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:  8.554e-01  2.339e-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.128e+00  1.927e-01  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/922576/cmap_HighResolution_480643201_480902401_4FGL_J1248.9+4840_daily_bin931.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.22e-03', job_status='DONE', photon_flux_upper_limit='8.02e-08', time_completed='2021-09-06 06:05:37.496786', job_id='922576', GAL2='0.86', fit_tolerance='1e-08', EG2='1.13', EG='1.14', time_epoch_completed='1630933537.5', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='2.15e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='931' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:05:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 922576: <4FGL_J1248.9+4840_daily_bin931> in cluster <slac> Done

Job <4FGL_J1248.9+4840_daily_bin931> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 05:50:27 2021
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:50:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 05:50:28 2021
Terminated at Mon Sep  6 06:05:38 2021
Results reported at Mon Sep  6 06:05:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin931 192.244 48.67 480643201 480902401 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 :                                   797.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            911 sec.

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

