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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin125
RA = 192.244, Dec = 48.67
tmin = 271728001, tmax = 271987201
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='916363', job_status='RUN', time_executed='2021-09-06 05:31:42.856732', time_epoch_executed='1630931502.86' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='125'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/916363

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/916363/ft1_4FGL_J1248.9+4840_daily_bin125.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/916363/ft2_4FGL_J1248.9+4840_daily_bin125.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/916363/ft1_4FGL_J1248.9+4840_daily_bin125.fits outfile=/scratch/kocevski/916363/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin125.fits ra=192.244 dec=48.67 rad=12.0 tmin=271728001.0 tmax=271987201.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.14
user 2.91
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/916363/ft2_4FGL_J1248.9+4840_daily_bin125.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/916363/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin125.fits evtable="EVENTS" outfile="/scratch/kocevski/916363/ft1_filtered_4FGL_J1248.9+4840_daily_bin125.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/916363/ft1_filtered_4FGL_J1248.9+4840_daily_bin125.fits" evtable="EVENTS" scfile=/scratch/kocevski/916363/ft2_4FGL_J1248.9+4840_daily_bin125.fits sctable="SC_DATA" outfile=/scratch/kocevski/916363/ltcube_271728001_271987201_4FGL_J1248.9+4840_daily_bin125.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/916363/ft2_4FGL_J1248.9+4840_daily_bin125.fits
.....................!
real 12.63
user 12.13
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/916363/ft1_filtered_4FGL_J1248.9+4840_daily_bin125.fits evtable="EVENTS" scfile=/scratch/kocevski/916363/ft2_4FGL_J1248.9+4840_daily_bin125.fits sctable="SC_DATA" expcube=/scratch/kocevski/916363/ltcube_271728001_271987201_4FGL_J1248.9+4840_daily_bin125.fits outfile=/scratch/kocevski/916363/expmap_271728001_271987201_4FGL_J1248.9+4840_daily_bin125.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/916363/ltcube_271728001_271987201_4FGL_J1248.9+4840_daily_bin125.fits
.....................!
real 190.49
user 185.80
sys 4.18

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/916363/ft1_filtered_4FGL_J1248.9+4840_daily_bin125.fits scfile=/scratch/kocevski/916363/ft2_4FGL_J1248.9+4840_daily_bin125.fits outfile=/scratch/kocevski/916363/cmap_271728001_271987201_4FGL_J1248.9+4840_daily_bin125.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/916363/ft1_filtered_4FGL_J1248.9+4840_daily_bin125.fits scfile=/scratch/kocevski/916363/ft2_4FGL_J1248.9+4840_daily_bin125.fits outfile=/scratch/kocevski/916363/cmap_HighResolution_271728001_271987201_4FGL_J1248.9+4840_daily_bin125.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26247E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18805E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10253E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.724       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.6736       1.0000         .10000E-03   10000.    
     7 'norm      '    3.8410       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .62790       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10797E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.8333       1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.495       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .16289E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    15.740       1.0000         .10000E-03   10000.    
    16 'norm      '    4.0879       1.0000         .10000E-03   10000.    
    17 'Prefactor '    49.867       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    44.722       1.0000         .10000E-03   10000.    
    20 'norm      '    2.7622       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .27060E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    12.610       1.0000         .10000E-03   10000.    
    23 'norm      '    .11113E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1048       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0036       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=   6442.407     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     2953 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .65816E-01    1.6325       -.12640E-06    .19077E-03
   2  Prefactor     .10000E-03    65.438       -.64709E-05** at limit **
   3  norm          .10000E-03    1.0013        .25287E-07** at limit **
   4  norm          .10000E-03    2.9727        .74605E-07** at limit **
   5  Prefactor     15.708        17.821       -.18408E-05    .18051E-04
   6  Prefactor     3.6732        6.3119       -.42211E-05   -.46592E-03
   7  norm          3.8427        2.3510        .59578E-06    .48560E-04
   8  Prefactor     .67212        15.032       -.42647E-06   -.39018E-03
   9  Prefactor     .10000E-03    71.671       -.13873E-04** at limit **
  10  norm          1.8339        1.3613       -.17315E-07    .72933E-04
  11  Prefactor     24.506        13.685       -.26334E-05    .18767E-03
  12  Prefactor     .10000E-03    85.188        .77969E-05** at limit **
  13  Prefactor     .10000E-03    7.4223        .22663E-06** at limit **
  14  Prefactor     .10000E-03    12.439       -.52599E-06** at limit **
  15  norm          15.750        11.963       -.92726E-05   -.28341E-06
  16  norm          4.0897        3.6190       -.32525E-05   -.32482E-03
  17  Prefactor     49.956        48.444        .93748E-04    .71522E-04
  18  Prefactor     .10000E-03    11.116        .25987E-06** at limit **
  19  Prefactor     44.632        53.419       -.80494E-04   -.45952E-05
  20  norm          2.7673        3.0643       -.40595E-06   -.39506E-04
  21  Prefactor     .10000E-03    158.61       -.19557E-04** at limit **
  22  norm          12.612        2.7744        .64777E-06   -.70847E-04
  23  norm          .10000E-03    53.075        .80386E-05** at limit **
  24  Normalizat    1.1040        .17724       -.11545E-05    .38475E-03
  25  Prefactor     1.0037        .20825        .22243E-05    .80241E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0658162
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 15.7082
  Prefactor  = 3.67324
  norm       = 3.84269
  Prefactor  = 0.672124
  Prefactor  = 0.000100003
  norm       = 1.83387
  Prefactor  = 24.5059
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.7497
  norm       = 4.08969
  Prefactor  = 49.9565
  Prefactor  = 0.0001
  Prefactor  = 44.6322
  norm       = 2.76735
  Prefactor  = 0.0001
  norm       = 12.6125
  norm       = 0.0001
  Normalizat = 1.10397
  Prefactor  = 1.00375
 **********
 **   18 **HESSE 
 **********

 FCN=   6442.407     FROM HESSE     STATUS=OK           431 CALLS     3384 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .65816E-01    49.989        .19104E-02   -1.5657    
   2  Prefactor     .10000E-03    67.377        .40567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.7857        .15511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.9835        .13496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.708        17.832        .10100E-03   -1.4915    
   6  Prefactor     3.6732        6.3006        .21074E-03   -1.5325    
   7  norm          3.8427        2.3451        .87670E-04   -1.5316    
   8  Prefactor     .67212        141.54        .58190E-02   -1.5544    
   9  Prefactor     .10000E-03    72.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.8339        1.3597        .78600E-04   -1.5437    
  11  Prefactor     24.506        13.670        .80936E-04   -1.4717    
  12  Prefactor     .10000E-03    85.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.4900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          15.750        11.964        .10095E-03   -1.4914    
  16  norm          4.0897        3.6160        .13723E-03   -1.5303    
  17  Prefactor     49.956        48.433        .56788E-04   -1.4293    
  18  Prefactor     .10000E-03    11.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     44.632        53.478        .59951E-04   -1.4371    
  20  norm          2.7673        3.0615        .14276E-03   -1.5375    
  21  Prefactor     .10000E-03    160.48        .19938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          12.612        2.7772        .59251E-04   -1.4998    
  23  norm          .10000E-03    53.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1040        .21292        .23355E-03   -.89625    
  25  Prefactor     1.0037        .24596        .30090E-03   -.92605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.10663e-09
Minuit parameter uncertainties:
  1  3.62801
  2  0.00031007
  3  3.07504e-06
  4  1.15585e-05
  5  17.838
  6  6.30169
  7  2.34519
  8  19.5527
  9  0.00100366
  10  1.35974
  11  13.6719
  12  3.32266e-05
  13  2.58661e-05
  14  5.29407e-05
  15  11.9661
  16  3.6162
  17  48.4709
  18  7.76957e-05
  19  53.5355
  20  3.06163
  21  0.000157631
  22  2.77725
  23  1.74539e-06
  24  0.213086
  25  0.246233
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  6.721e-01  1.955e+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:  1.004e+00  2.462e-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.104e+00  2.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 192.244 48.670
Photon Flux Upper Limit: 7.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/916363/likelihoodResults_271728001_271987201_4FGL_J1248.9+4840_daily_bin125.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) = 6442.35611552
delta logL = 0.0507667619604

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6442.3529046
delta logL = 0.0539776879059

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2520       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5701       1.0000          .0000       10.000    
     3 'Normalizat'    1.0892       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0136       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=   6442.353     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      287 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2479        580.48        .26264E-03    .59734E-05
   2  Index         3.5728        7.8378        .70728E-02    .28081E-05
   3  Normalizat    1.0892        .17741        .23492E-03    .19358E-06
   4  Prefactor     1.0137        .22307        .29959E-03    .37948E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.24791
  Index      = 3.57283
  Normalizat = 1.08923
  Prefactor  = 1.01372
 **********
 **   18 **HESSE 
 **********

 FCN=   6442.353     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .67E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2479        24.166        .10506E-04   -1.5485    
   2  Index         3.5728        6.6927        .28291E-03   -.28946    
   3  Normalizat    1.0892        .20395        .93968E-05   -.90098    
   4  Prefactor     1.0137        .24803        .11984E-04   -.92274    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.72789e-14
Minuit parameter uncertainties:
  1  10.9878
  2  4.82401
  3  0.204093
  4  0.248315
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/916363': 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) = 6442.35290408
delta logL = 0.0539782032938

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.248e+00  1.099e+01  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  3.573e+00  4.824e+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.014e+00  2.483e-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.089e+00  2.041e-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/916363/cmap_HighResolution_271728001_271987201_4FGL_J1248.9+4840_daily_bin125.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.83e-03', job_status='DONE', photon_flux_upper_limit='7.53e-08', time_completed='2021-09-06 05:45:12.776276', job_id='916363', GAL2='1.01', fit_tolerance='1e-08', EG2='1.09', EG='1.10', time_epoch_completed='1630932312.78', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='5.40e-02', ts2='0.12', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='125' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:45:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 916363: <4FGL_J1248.9+4840_daily_bin125> in cluster <slac> Done

Job <4FGL_J1248.9+4840_daily_bin125> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 05:31:03 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:31:05 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:31:05 2021
Terminated at Mon Sep  6 05:45:13 2021
Results reported at Mon Sep  6 05:45:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin125 192.244 48.67 271728001 271987201 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 :                                   806.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            850 sec.

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

