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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin315
RA = 192.244, Dec = 48.67
tmin = 320976001, tmax = 321235201
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='917808', job_status='RUN', time_executed='2021-09-06 05:36:17.322087', time_epoch_executed='1630931777.32' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='315'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917808

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917808/ft1_4FGL_J1248.9+4840_daily_bin315.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917808/ft2_4FGL_J1248.9+4840_daily_bin315.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917808/ft1_4FGL_J1248.9+4840_daily_bin315.fits outfile=/scratch/kocevski/917808/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin315.fits ra=192.244 dec=48.67 rad=12.0 tmin=320976001.0 tmax=321235201.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 4.59
user 3.26
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/917808/ft2_4FGL_J1248.9+4840_daily_bin315.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/917808/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin315.fits evtable="EVENTS" outfile="/scratch/kocevski/917808/ft1_filtered_4FGL_J1248.9+4840_daily_bin315.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.52
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/917808/ft1_filtered_4FGL_J1248.9+4840_daily_bin315.fits" evtable="EVENTS" scfile=/scratch/kocevski/917808/ft2_4FGL_J1248.9+4840_daily_bin315.fits sctable="SC_DATA" outfile=/scratch/kocevski/917808/ltcube_320976001_321235201_4FGL_J1248.9+4840_daily_bin315.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/917808/ft2_4FGL_J1248.9+4840_daily_bin315.fits
.....................!
real 12.40
user 12.00
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917808/ft1_filtered_4FGL_J1248.9+4840_daily_bin315.fits evtable="EVENTS" scfile=/scratch/kocevski/917808/ft2_4FGL_J1248.9+4840_daily_bin315.fits sctable="SC_DATA" expcube=/scratch/kocevski/917808/ltcube_320976001_321235201_4FGL_J1248.9+4840_daily_bin315.fits outfile=/scratch/kocevski/917808/expmap_320976001_321235201_4FGL_J1248.9+4840_daily_bin315.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/917808/ltcube_320976001_321235201_4FGL_J1248.9+4840_daily_bin315.fits
.....................!
real 190.70
user 186.04
sys 4.24

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/917808/ft1_filtered_4FGL_J1248.9+4840_daily_bin315.fits scfile=/scratch/kocevski/917808/ft2_4FGL_J1248.9+4840_daily_bin315.fits outfile=/scratch/kocevski/917808/cmap_320976001_321235201_4FGL_J1248.9+4840_daily_bin315.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/917808/ft1_filtered_4FGL_J1248.9+4840_daily_bin315.fits scfile=/scratch/kocevski/917808/ft2_4FGL_J1248.9+4840_daily_bin315.fits outfile=/scratch/kocevski/917808/cmap_HighResolution_320976001_321235201_4FGL_J1248.9+4840_daily_bin315.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.207       1.0000         .10000E-03   10000.    
     3 'norm      '    1.8977       1.0000         .10000E-03   10000.    
     4 'norm      '    6.8407       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.7524       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.5909       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12398E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.3799       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .48672E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .27971       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.594       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .46538       1.0000         .10000E-03   10000.    
    15 'norm      '    3.7813       1.0000         .10000E-03   10000.    
    16 'norm      '    2.4811       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10959E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.8236       1.0000         .10000E-03   10000.    
    22 'norm      '    2.3922       1.0000         .10000E-03   10000.    
    23 'norm      '    64.917       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2481       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88683       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=   6236.918     FROM MIGRAD    STATUS=CONVERGED    652 CALLS     3454 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9274       -.57967E-06** at limit **
   2  Prefactor     14.181        22.538        .90269E-06    .21991E-03
   3  norm          1.8975        1.7995        .76411E-07    .20577E-03
   4  norm          6.8398        5.6199        .15338E-05    .12202E-02
   5  Prefactor     5.7517        12.408       -.27642E-06    .22517E-04
   6  Prefactor     .10000E-03    5.3501        .35784E-06** at limit **
   7  norm          2.5911        1.9373        .28902E-07    .71288E-04
   8  Prefactor     .10000E-03    34.145        .46037E-06** at limit **
   9  Prefactor     .10000E-03    8.4688        .11191E-07** at limit **
  10  norm          3.3799        1.8326       -.11657E-07   -.49627E-04
  11  Prefactor     .10037E-03    15.442       -.38324E-05** at limit **
  12  Prefactor     .12381        55.173       -.80417E-06    .24261E-04
  13  Prefactor     10.594        10.219        .38373E-06    .32158E-03
  14  Prefactor     .43669        19.749        .24801E-05    .88833E-05
  15  norm          3.7877        11.930        .41807E-06    .36725E-04
  16  norm          2.4816        3.0459        .20530E-06    .20016E-03
  17  Prefactor     .10000E-03    23.601        .35165E-07** at limit **
  18  Prefactor     .10000E-03    13.343       -.36927E-06** at limit **
  19  Prefactor     .10000E-03    15.743        .46568E-07** at limit **
  20  norm          .10000E-03    2.6841       -.15362E-06** at limit **
  21  Prefactor     9.8273        52.491       -.16176E-05   -.99742E-04
  22  norm          2.3922        1.6099        .81109E-07    .21337E-03
  23  norm          64.974        96.299       -.30919E-06   -.30702E-04
  24  Normalizat    1.2480        .17075        .64833E-07    .21552E-03
  25  Prefactor     .88699        .20030       -.79426E-06    .10323E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 14.1807
  norm       = 1.89752
  norm       = 6.83979
  Prefactor  = 5.75165
  Prefactor  = 0.0001
  norm       = 2.59108
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.37989
  Prefactor  = 0.000100369
  Prefactor  = 0.123807
  Prefactor  = 10.5945
  Prefactor  = 0.436694
  norm       = 3.78774
  norm       = 2.48162
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.82727
  norm       = 2.39224
  norm       = 64.9739
  Normalizat = 1.24801
  Prefactor  = 0.886994
 **********
 **   18 **HESSE 
 **********

 FCN=   6236.918     FROM HESSE     STATUS=OK           445 CALLS     3899 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7979        .23427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.181        20.576        .10626E-03   -1.4955    
   3  norm          1.8975        1.7955        .99017E-04   -1.5432    
   4  norm          6.8398        5.7703        .76701E-03   -1.5185    
   5  Prefactor     5.7517        12.397        .16746E-03   -1.5228    
   6  Prefactor     .10000E-03    5.4203        .17787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.5911        1.9267        .90856E-04   -1.5386    
   8  Prefactor     .10000E-03    35.265        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.4721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.3799        1.8346        .76514E-04   -1.5340    
  11  Prefactor     .10037E-03    47.246        .36619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .12381        53.042        .15904       -1.5638    
  13  Prefactor     10.594        10.255        .12310E-03   -1.5057    
  14  Prefactor     .43669        263.94        .57148E-02   -1.5576    
  15  norm          3.7877        11.907        .20760E-03   -1.5319    
  16  norm          2.4816        3.0360        .14770E-03   -1.5393    
  17  Prefactor     .10000E-03    23.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    6.2049        .24867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.8273        53.853        .12785E-03   -1.5081    
  22  norm          2.3922        1.6045        .78815E-04   -1.5399    
  23  norm          64.974        96.359        .49809E-04   -1.4094    
  24  Normalizat    1.2480        .20449        .21684E-03   -.85132    
  25  Prefactor     .88699        .23777        .30637E-03   -.96597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.03918e-09
Minuit parameter uncertainties:
  1  3.98058e-05
  2  20.5863
  3  1.79556
  4  5.77074
  5  12.4026
  6  2.9732e-05
  7  1.92679
  8  0.000162899
  9  5.96867e-06
  10  1.83458
  11  0.00835364
  12  5.12774
  13  10.2571
  14  21.5653
  15  11.9148
  16  3.03615
  17  8.30827e-06
  18  4.58089e-05
  19  1.25677e-05
  20  4.4542e-05
  21  46.0739
  22  1.60448
  23  96.5918
  24  0.204624
  25  0.238051
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  1.629e-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:  8.870e-01  2.381e-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.248e+00  2.046e-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: 6.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/917808/likelihoodResults_320976001_321235201_4FGL_J1248.9+4840_daily_bin315.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) = 6236.91778371
delta logL = -0.000135247310936

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6236.91764888
delta logL = -4.11092514696e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11175E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4905       1.0000          .0000       10.000    
     3 'Normalizat'    1.2480       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88699       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=   6236.918     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      298 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11108E-03    133.85        .36285E-02** at limit **
   2  Index         2.3415        6.1676        .50000        .16658E-04
   3  Normalizat    1.2480        .66586E-02    .21684E-03   -.97517E-05
   4  Prefactor     .88699        .81162E-02    .30637E-03    .43416E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000111078
  Index      = 2.34152
  Normalizat = 1.24801
  Prefactor  = 0.886994
 **********
 **   18 **HESSE 
 **********

 FCN=   6236.918     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      327 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11108E-03    575.51        .72569E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3415        6.6377        .50000       -.56060    
   3  Normalizat    1.2480        .13986E-01    .86737E-05   -.85132    
   4  Prefactor     .88699        .17048E-01    .12255E-04   -.96597    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.35948e-09
Minuit parameter uncertainties:
  1  0.161265
  2  396.211
  3  0.0139862
  4  0.0170478
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917808': 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) = 6236.91764811
delta logL = 3.57395038009e-07

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.111e-04  1.613e-01  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.342e+00  3.962e+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.870e-01  1.705e-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.248e+00  1.399e-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/917808/cmap_HighResolution_320976001_321235201_4FGL_J1248.9+4840_daily_bin315.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-03', job_status='DONE', photon_flux_upper_limit='6.17e-08', time_completed='2021-09-06 05:50:27.275578', job_id='917808', GAL2='0.89', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1630932627.28', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='3.57e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='315' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:50:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 917808: <4FGL_J1248.9+4840_daily_bin315> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin315 192.244 48.67 320976001 321235201 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 :                                   843.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            889 sec.

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

