/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 139 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_bin978
RA = 192.244, Dec = 48.67
tmin = 492825601, tmax = 493084801
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='922654', job_status='RUN', time_executed='2021-09-06 05:53:00.554488', time_epoch_executed='1630932780.55' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='978'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/922654

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/922654/ft1_4FGL_J1248.9+4840_daily_bin978.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/922654/ft2_4FGL_J1248.9+4840_daily_bin978.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/922654/ft1_4FGL_J1248.9+4840_daily_bin978.fits outfile=/scratch/kocevski/922654/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin978.fits ra=192.244 dec=48.67 rad=12.0 tmin=492825601.0 tmax=493084801.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.80
user 3.51
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/922654/ft1_filtered_4FGL_J1248.9+4840_daily_bin978.fits evtable="EVENTS" scfile=/scratch/kocevski/922654/ft2_4FGL_J1248.9+4840_daily_bin978.fits sctable="SC_DATA" expcube=/scratch/kocevski/922654/ltcube_492825601_493084801_4FGL_J1248.9+4840_daily_bin978.fits outfile=/scratch/kocevski/922654/expmap_492825601_493084801_4FGL_J1248.9+4840_daily_bin978.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/922654/ltcube_492825601_493084801_4FGL_J1248.9+4840_daily_bin978.fits
.....................!
real 189.95
user 184.89
sys 4.43

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/922654/ft1_filtered_4FGL_J1248.9+4840_daily_bin978.fits scfile=/scratch/kocevski/922654/ft2_4FGL_J1248.9+4840_daily_bin978.fits outfile=/scratch/kocevski/922654/cmap_492825601_493084801_4FGL_J1248.9+4840_daily_bin978.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.60
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/922654/ft1_filtered_4FGL_J1248.9+4840_daily_bin978.fits scfile=/scratch/kocevski/922654/ft2_4FGL_J1248.9+4840_daily_bin978.fits outfile=/scratch/kocevski/922654/cmap_HighResolution_492825601_493084801_4FGL_J1248.9+4840_daily_bin978.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.60
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    36.509       1.0000         .10000E-03   10000.    
     3 'norm      '    5.6469       1.0000         .10000E-03   10000.    
     4 'norm      '    2.7148       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11522E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10346E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.5445       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12426E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.3695       1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.799       1.0000         .10000E-03   10000.    
    15 'norm      '    16.528       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.411       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10451E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.9825       1.0000         .10000E-03   10000.    
    23 'norm      '    .11009E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .81444       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2585       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=   5606.733     FROM MIGRAD    STATUS=CONVERGED    596 CALLS     2917 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8970       -.25661E-07** at limit **
   2  Prefactor     36.519        26.053        .70127E-06   -.46211E-04
   3  norm          5.6467        2.7666       -.32881E-07   -.18855E-03
   4  norm          2.7181        5.6047       -.93070E-06   -.41484E-03
   5  Prefactor     .10000E-03    20.835        .45244E-05** at limit **
   6  Prefactor     .10000E-03    4.1776       -.44219E-07** at limit **
   7  norm          .10000E-03    .86340       -.31536E-07** at limit **
   8  Prefactor     .10000E-03    9.5930       -.32891E-06** at limit **
   9  Prefactor     .10000E-03    11.484       -.77457E-06** at limit **
  10  norm          7.5453        3.0787       -.53416E-08    .97008E-05
  11  Prefactor     .10059E-03    8.4983        .36360E-05** at limit **
  12  Prefactor     .10000E-03    15.507        .12116E-05** at limit **
  13  Prefactor     4.3691        4.4458        .16470E-06    .13001E-03
  14  Prefactor     19.727        21.269       -.50911E-05   -.39167E-03
  15  norm          16.523        13.824       -.45813E-07   -.17467E-04
  16  norm          .10000E-03    2.6270       -.30109E-07** at limit **
  17  Prefactor     .10000E-03    11.191        .14466E-05** at limit **
  18  Prefactor     11.412        11.123        .32288E-06    .96891E-04
  19  Prefactor     .10000E-03    14.759       -.23996E-05** at limit **
  20  norm          .10055E-03    2.2291       -.43764E-06** at limit **
  21  Prefactor     .10000E-03    22.968       -.38593E-05** at limit **
  22  norm          2.9827        1.4263       -.79586E-08    .29395E-05
  23  norm          .10000E-03    42.958       -.27857E-05** at limit **
  24  Normalizat    .81431        .17072        .35909E-06   -.19168E-03
  25  Prefactor     1.2585        .21262       -.14756E-06   -.12060E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 36.5186
  norm       = 5.64667
  norm       = 2.71814
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.54532
  Prefactor  = 0.000100591
  Prefactor  = 0.0001
  Prefactor  = 4.36914
  Prefactor  = 19.7268
  norm       = 16.5233
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.4117
  Prefactor  = 0.0001
  norm       = 0.000100545
  Prefactor  = 0.0001
  norm       = 2.98268
  norm       = 0.0001
  Normalizat = 0.814315
  Prefactor  = 1.25847
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9169        .10033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     36.519        25.991        .66327E-04   -1.4499    
   3  norm          5.6467        2.7698        .82872E-04   -1.5233    
   4  norm          2.7181        5.7069        .24719E-03   -1.5378    
   5  Prefactor     .10000E-03    20.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.2698        .29835E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.5139        .13513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.6079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.5453        3.0796        .80877E-04   -1.5159    
  11  Prefactor     .10059E-03    67.700        .37626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.3691        4.4537        .15543E-03   -1.5290    
  14  Prefactor     19.727        21.179        .90014E-04   -1.4819    
  15  norm          16.523        13.825        .98516E-04   -1.4895    
  16  norm          .10000E-03    2.6735        .11846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.412        11.195        .11860E-03   -1.5032    
  19  Prefactor     .10000E-03    14.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10055E-03    4.7185        .36933E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    22.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.9827        1.4256        .59796E-04   -1.5363    
  23  norm          .10000E-03    42.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .81431        .20238        .24654E-03   -.99540    
  25  Prefactor     1.2585        .25308        .25943E-03   -.84550    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.06038e-09
Minuit parameter uncertainties:
  1  5.81142e-06
  2  25.9986
  3  2.76983
  4  5.70805
  5  0.000168974
  6  2.9468e-07
  7  6.99595e-07
  8  8.39823e-06
  9  9.54149e-08
  10  3.07971
  11  0.0126668
  12  4.11763e-05
  13  4.45401
  14  21.1875
  15  13.8276
  16  1.25556e-07
  17  4.17089e-05
  18  11.1973
  19  8.17318e-05
  20  0.00320891
  21  0.000160576
  22  1.42558
  23  0.000158955
  24  0.202566
  25  0.25333
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  8.398e-06  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.258e+00  2.533e-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.143e-01  2.026e-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.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/922654/likelihoodResults_492825601_493084801_4FGL_J1248.9+4840_daily_bin978.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) = 5606.73351393
delta logL = -0.000495548879371

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5606.7330184
delta logL = -1.55714587891e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4545       1.0000          .0000       10.000    
     3 'Normalizat'    .81431       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2585       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=   5606.733     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1756.1        .90712E-02** at limit **
   2  Index         2.4589        6.0571        .50000       -.41254E-05
   3  Normalizat    .81432        .87087E-01    .43797E-01    .96727E-04
   4  Prefactor     1.2585        .11104        .58666E-01    .81161E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.45885
  Normalizat = 0.814316
  Prefactor  = 1.25847
 **********
 **   18 **HESSE 
 **********

 FCN=   5606.733     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4589        6.1340        .50000       -.53313    
   3  Normalizat    .81432        .19521        .24654E-03   -.99540    
   4  Prefactor     1.2585        .25060        .25943E-03   -.84550    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.23262e-11
Minuit parameter uncertainties:
  1  6.46002e-05
  2  5.66212
  3  0.195376
  4  0.250835
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/922654': 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) = 5606.73301838
delta logL = 8.21273715701e-09

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  6.460e-05  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.459e+00  5.662e+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.258e+00  2.508e-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.143e-01  1.954e-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/922654/cmap_HighResolution_492825601_493084801_4FGL_J1248.9+4840_daily_bin978.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.64e-03', job_status='DONE', photon_flux_upper_limit='5.99e-08', time_completed='2021-09-06 06:05:36.335343', job_id='922654', GAL2='1.26', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1630933536.34', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='8.21e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='978' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:05:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 922654: <4FGL_J1248.9+4840_daily_bin978> in cluster <slac> Done

Job <4FGL_J1248.9+4840_daily_bin978> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 05:50:32 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:50:32 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:32 2021
Terminated at Mon Sep  6 06:05:37 2021
Results reported at Mon Sep  6 06:05:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin978 192.244 48.67 492825601 493084801 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 :                                   733.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             250.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            905 sec.

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

