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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin430
RA = 192.244, Dec = 48.67
tmin = 350784001, tmax = 351043201
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='917987', job_status='RUN', time_executed='2021-09-06 05:36:21.797306', time_epoch_executed='1630931781.8' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='430'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917987

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917987/ft1_4FGL_J1248.9+4840_daily_bin430.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917987/ft2_4FGL_J1248.9+4840_daily_bin430.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917987/ft1_4FGL_J1248.9+4840_daily_bin430.fits outfile=/scratch/kocevski/917987/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin430.fits ra=192.244 dec=48.67 rad=12.0 tmin=350784001.0 tmax=351043201.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.36
user 3.14
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917987/ft1_filtered_4FGL_J1248.9+4840_daily_bin430.fits evtable="EVENTS" scfile=/scratch/kocevski/917987/ft2_4FGL_J1248.9+4840_daily_bin430.fits sctable="SC_DATA" expcube=/scratch/kocevski/917987/ltcube_350784001_351043201_4FGL_J1248.9+4840_daily_bin430.fits outfile=/scratch/kocevski/917987/expmap_350784001_351043201_4FGL_J1248.9+4840_daily_bin430.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/917987/ltcube_350784001_351043201_4FGL_J1248.9+4840_daily_bin430.fits
.....................!
real 190.02
user 185.30
sys 4.35

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/917987/ft1_filtered_4FGL_J1248.9+4840_daily_bin430.fits scfile=/scratch/kocevski/917987/ft2_4FGL_J1248.9+4840_daily_bin430.fits outfile=/scratch/kocevski/917987/cmap_350784001_351043201_4FGL_J1248.9+4840_daily_bin430.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.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2200       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.8023       1.0000         .10000E-03   10000.    
     4 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    39.146       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10250E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    2.0932       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.9191       1.0000         .10000E-03   10000.    
    10 'norm      '    1.9715       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.7140       1.0000         .10000E-03   10000.    
    15 'norm      '    22.506       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.2374       1.0000         .10000E-03   10000.    
    21 'Prefactor '    72.390       1.0000         .10000E-03   10000.    
    22 'norm      '    8.6939       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .88846       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0403       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=   5408.907     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2850 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2205        4.3050        .34959E-02    .51782E-03
   2  Prefactor     .10001E-03    14.316        .90712E-02** at limit **
   3  norm          1.8020        2.0158        .77838E-02    .33595E-03
   4  norm          .10000E-03    3.5033        .90712E-02** at limit **
   5  Prefactor     39.145        25.838        .16016E-02    .11576E-03
   6  Prefactor     .10012E-03    3.6012        .75039E-01** at limit **
   7  norm          2.0914        1.8252        .71327E-02   -.44288E-04
   8  Prefactor     .10001E-03    8.1527        .90712E-02** at limit **
   9  Prefactor     4.9185        13.989        .45336E-02    .13733E-02
  10  norm          1.9713        1.6631        .73826E-02   -.16443E-04
  11  Prefactor     .10000E-03    2.8858        .90712E-02** at limit **
  12  Prefactor     .10000E-03    11.206        .90712E-02** at limit **
  13  Prefactor     .10000E-03    4.9576        .90712E-02** at limit **
  14  Prefactor     2.7141        14.413        .61807E-02    .13035E-03
  15  norm          22.506        12.818        .21108E-02    .25061E-04
  16  norm          .10000E-03    1.3622        .90712E-02** at limit **
  17  Prefactor     .10000E-03    12.320        .90712E-02** at limit **
  18  Prefactor     .10000E-03    6.3815        .90712E-02** at limit **
  19  Prefactor     .10001E-03    9.2522        .90712E-02** at limit **
  20  norm          4.2383        3.2844        .48936E-02    .17712E-03
  21  Prefactor     72.390        63.405        .11796E-02    .66520E-03
  22  norm          8.6941        2.1085        .33986E-02   -.14165E-03
  23  norm          .10000E-03    42.368        .90712E-02** at limit **
  24  Normalizat    .88854        .17003        .44754E-01    .18219E-04
  25  Prefactor     1.0401        .20577        .61954E-01    .13385E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.22049
  Prefactor  = 0.000100008
  norm       = 1.80198
  norm       = 0.0001
  Prefactor  = 39.1454
  Prefactor  = 0.000100117
  norm       = 2.09141
  Prefactor  = 0.000100009
  Prefactor  = 4.91848
  norm       = 1.97132
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 2.71411
  norm       = 22.5064
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  norm       = 4.23829
  Prefactor  = 72.3899
  norm       = 8.69408
  norm       = 0.000100001
  Normalizat = 0.888536
  Prefactor  = 1.04014
 **********
 **   18 **HESSE 
 **********

 FCN=   5408.907     FROM HESSE     STATUS=OK           425 CALLS     3275 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2205        4.3017        .10564E-03   -1.5134    
   2  Prefactor     .10001E-03    14.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.8020        2.0053        .10579E-03   -1.5439    
   4  norm          .10000E-03    3.5291        .13432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     39.145        25.951        .64063E-04   -1.4456    
   6  Prefactor     .10012E-03    24.476        .26246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.0914        1.7891        .88008E-04   -1.5419    
   8  Prefactor     .10001E-03    8.1634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.9185        13.976        .90672E-03   -1.5264    
  10  norm          1.9713        1.6671        .84653E-04   -1.5427    
  11  Prefactor     .10000E-03    2.8878        .12199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.9755        .15990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.7141        14.369        .24723E-03   -1.5378    
  15  norm          22.506        12.819        .84432E-04   -1.4759    
  16  norm          .10000E-03    1.3699        .83814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.4054        .18139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    9.2616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.2383        3.2791        .11354E-03   -1.5296    
  21  Prefactor     72.390        63.666        .47185E-04   -1.4004    
  22  norm          8.6941        2.1093        .25354E-03   -1.5118    
  23  norm          .10000E-03    42.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .88854        .20090        .23392E-03   -.96864    
  25  Prefactor     1.0401        .24308        .27400E-03   -.91403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06672e-08
Minuit parameter uncertainties:
  1  4.30186
  2  0.000658445
  3  2.00536
  4  1.88561e-06
  5  25.9585
  6  0.00339153
  7  1.78912
  8  0.000543035
  9  13.9855
  10  1.66711
  11  2.58053e-07
  12  0.000417909
  13  1.50746e-05
  14  12.4945
  15  12.8203
  16  3.89977e-07
  17  0.00041882
  18  0.000106903
  19  0.000594143
  20  3.27923
  21  63.7258
  22  2.10929
  23  0.00033161
  24  0.201069
  25  0.243338
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  5.430e-04  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.450e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.040e+00  2.433e-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.885e-01  2.011e-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: 5.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/917987/likelihoodResults_350784001_351043201_4FGL_J1248.9+4840_daily_bin430.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) = 5408.90743928
delta logL = -0.000583062308579

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5408.9068563
delta logL = -8.29950295156e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4457       1.0000          .0000       10.000    
     3 'Normalizat'    .88862       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0400       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=   5408.907     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      201 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1788.6        .90712E-02** at limit **
   2  Index         2.4414        6.6151        .50000        .46199E-05
   3  Normalizat    .88854        .12551        .44756E-01    .13417E-04
   4  Prefactor     1.0401        .15749        .61954E-01    .10444E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.44139
  Normalizat = 0.888536
  Prefactor  = 1.04014
 **********
 **   18 **HESSE 
 **********

 FCN=   5408.907     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4414        6.1455        .50000       -.53719    
   3  Normalizat    .88854        .18947        .23392E-03   -.96864    
   4  Prefactor     1.0401        .23924        .27400E-03   -.91403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60643e-11
Minuit parameter uncertainties:
  1  2.43579e-06
  2  5.49635
  3  0.189609
  4  0.239484
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917987': 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) = 5408.9068562
delta logL = 1.00717443274e-08

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  2.436e-06  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.441e+00  5.496e+00  0.000e+00  1.000e+01 (-1.000e+00)
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.040e+00  2.395e-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.885e-01  1.896e-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/917987/cmap_HighResolution_350784001_351043201_4FGL_J1248.9+4840_daily_bin430.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.30e-03', job_status='DONE', photon_flux_upper_limit='5.54e-08', time_completed='2021-09-06 05:48:51.061520', job_id='917987', GAL2='1.04', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1630932531.06', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.01e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='430' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:48:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 917987: <4FGL_J1248.9+4840_daily_bin430> in cluster <slac> Done

Job <4FGL_J1248.9+4840_daily_bin430> 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) <bullet0085>, 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:48:51 2021
Results reported at Mon Sep  6 05:48:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin430 192.244 48.67 350784001 351043201 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 :                                   742.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             319.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            780 sec.

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

