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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin501
RA = 192.244, Dec = 48.67
tmin = 369187201, tmax = 369446401
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='919176', job_status='RUN', time_executed='2021-09-06 05:43:10.557622', time_epoch_executed='1630932190.56' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='501'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919176

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919176/ft1_4FGL_J1248.9+4840_daily_bin501.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919176/ft2_4FGL_J1248.9+4840_daily_bin501.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919176/ft1_4FGL_J1248.9+4840_daily_bin501.fits outfile=/scratch/kocevski/919176/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin501.fits ra=192.244 dec=48.67 rad=12.0 tmin=369187201.0 tmax=369446401.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.44
user 3.22
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919176/ft1_filtered_4FGL_J1248.9+4840_daily_bin501.fits" evtable="EVENTS" scfile=/scratch/kocevski/919176/ft2_4FGL_J1248.9+4840_daily_bin501.fits sctable="SC_DATA" outfile=/scratch/kocevski/919176/ltcube_369187201_369446401_4FGL_J1248.9+4840_daily_bin501.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/919176/ft2_4FGL_J1248.9+4840_daily_bin501.fits
.....................!
real 12.37
user 12.01
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919176/ft1_filtered_4FGL_J1248.9+4840_daily_bin501.fits evtable="EVENTS" scfile=/scratch/kocevski/919176/ft2_4FGL_J1248.9+4840_daily_bin501.fits sctable="SC_DATA" expcube=/scratch/kocevski/919176/ltcube_369187201_369446401_4FGL_J1248.9+4840_daily_bin501.fits outfile=/scratch/kocevski/919176/expmap_369187201_369446401_4FGL_J1248.9+4840_daily_bin501.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/919176/ltcube_369187201_369446401_4FGL_J1248.9+4840_daily_bin501.fits
.....................!
real 191.56
user 186.28
sys 4.70

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/919176/ft1_filtered_4FGL_J1248.9+4840_daily_bin501.fits scfile=/scratch/kocevski/919176/ft2_4FGL_J1248.9+4840_daily_bin501.fits outfile=/scratch/kocevski/919176/cmap_369187201_369446401_4FGL_J1248.9+4840_daily_bin501.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/919176/ft1_filtered_4FGL_J1248.9+4840_daily_bin501.fits scfile=/scratch/kocevski/919176/ft2_4FGL_J1248.9+4840_daily_bin501.fits outfile=/scratch/kocevski/919176/cmap_HighResolution_369187201_369446401_4FGL_J1248.9+4840_daily_bin501.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.62
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    12.320       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.2760       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.9415       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.1622       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2897       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.421       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10181E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4979       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.1141       1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.212       1.0000         .10000E-03   10000.    
    22 'norm      '    28.870       1.0000         .10000E-03   10000.    
    23 'norm      '    .12728E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .89385       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0615       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=   6405.916     FROM MIGRAD    STATUS=CONVERGED    582 CALLS     2481 TOTAL
                     EDM=   .70E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.0359        .65803E-07** at limit **
   2  Prefactor     .10000E-03    8.1243        .89364E-07** at limit **
   3  norm          12.319        3.5626        .12698E-06   -.18945E-04
   4  norm          .10000E-03    3.7039        .92997E-07** at limit **
   5  Prefactor     .10000E-03    13.502        .46532E-07** at limit **
   6  Prefactor     .10000E-03    15.635        .53951E-06** at limit **
   7  norm          4.2754        2.7091        .95853E-07   -.50099E-04
   8  Prefactor     .10000E-03    6.3385       -.10346E-06** at limit **
   9  Prefactor     .10000E-03    7.7331        .21721E-07** at limit **
  10  norm          7.9413        3.0898        .55541E-07   -.53708E-04
  11  Prefactor     7.1617        7.4425        .49571E-07    .15412E-05
  12  Prefactor     1.1229        480.92       -.25004E-04    .91746E-05
  13  Prefactor     17.417        13.163        .34561E-06   -.32784E-04
  14  Prefactor     .10000E-03    6.4823       -.48004E-07** at limit **
  15  norm          .10000E-03    16.884       -.43919E-05** at limit **
  16  norm          .10000E-03    1.0633       -.87404E-07** at limit **
  17  Prefactor     .10000E-03    16.894       -.81285E-07** at limit **
  18  Prefactor     1.4850        38.065        .76643E-05    .26014E-04
  19  Prefactor     .10000E-03    24.478       -.14415E-07** at limit **
  20  norm          3.1155        3.3577       -.35078E-06   -.21144E-03
  21  Prefactor     22.309        52.072       -.45131E-07    .17707E-04
  22  norm          28.870        3.3568        .12787E-07   -.18624E-04
  23  norm          .10000E-03    193.61        .29070E-05** at limit **
  24  Normalizat    .89391        .17736       -.23871E-05    .14769E-04
  25  Prefactor     1.0615        .21256        .57306E-06   -.95796E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.3189
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.27542
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.94129
  Prefactor  = 7.16171
  Prefactor  = 1.12288
  Prefactor  = 17.4166
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.48504
  Prefactor  = 0.0001
  norm       = 3.11554
  Prefactor  = 22.3094
  norm       = 28.8698
  norm       = 0.000100001
  Normalizat = 0.89391
  Prefactor  = 1.06151
 **********
 **   18 **HESSE 
 **********

 FCN=   6405.916     FROM HESSE     STATUS=OK           427 CALLS     2908 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.0459        .79557E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.1449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          12.319        3.5724        .76937E-04   -1.5006    
   4  norm          .10000E-03    3.7445        .15042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.179        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.2754        2.7002        .98902E-04   -1.5294    
   8  Prefactor     .10000E-03    6.3428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.7367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.9413        3.0901        .84514E-04   -1.5144    
  11  Prefactor     7.1617        7.4432        .14989E-03   -1.5173    
  12  Prefactor     1.1229        492.74        .39001E-02   -1.5496    
  13  Prefactor     17.417        13.142        .95959E-04   -1.4873    
  14  Prefactor     .10000E-03    6.4860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    16.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.0708        .80569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.4850        38.452        .34998E-03   -1.5464    
  19  Prefactor     .10000E-03    24.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.1155        3.3112        .13764E-03   -1.5355    
  21  Prefactor     22.309        52.129        .84988E-04   -1.4763    
  22  norm          28.870        3.3571        .48256E-04   -1.4633    
  23  norm          .10000E-03    195.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .89391        .20693        .25761E-03   -.96674    
  25  Prefactor     1.0615        .25039        .29949E-03   -.90706    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72388e-10
Minuit parameter uncertainties:
  1  2.17733e-06
  2  8.07534e-06
  3  3.57247
  4  1.00113e-05
  5  2.49825e-05
  6  3.58496e-05
  7  2.70029
  8  1.22648e-05
  9  7.20527e-06
  10  3.09016
  11  7.44418
  12  47.4402
  13  13.1438
  14  1.6235e-07
  15  0.000106865
  16  1.85068e-06
  17  2.00785e-05
  18  15.1235
  19  2.27332e-05
  20  3.31144
  21  52.236
  22  3.35716
  23  0.0010767
  24  0.207117
  25  0.250671
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  1.226e-05  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.062e+00  2.507e-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.939e-01  2.071e-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: 4.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/919176/likelihoodResults_369187201_369446401_4FGL_J1248.9+4840_daily_bin501.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) = 6405.91630128
delta logL = -0.00074905976544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6405.91555225
delta logL = -2.60552042164e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4337       1.0000          .0000       10.000    
     3 'Normalizat'    .89395       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0615       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=   6405.916     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      242 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10217E-03    99.794        .18142E-02** at limit **
   2  Index         2.3436        6.8687        .50000        .17526E-04
   3  Normalizat    .89391        .16305E-01    .25761E-03   -.17167E-04
   4  Prefactor     1.0615        .20567E-01    .29949E-03   -.14501E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102172
  Index      = 2.34356
  Normalizat = 0.893909
  Prefactor  = 1.06152
 **********
 **   18 **HESSE 
 **********

 FCN=   6405.916     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10217E-03    399.30        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3436        5.9602        .50000       -.56012    
   3  Normalizat    .89391        .34648E-01    .10304E-04   -.96674    
   4  Prefactor     1.0615        .43704E-01    .11979E-04   -.90706    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.83567e-08
Minuit parameter uncertainties:
  1  0.0593009
  2  1040.52
  3  0.0346486
  4  0.0437055
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919176': 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) = 6405.91555189
delta logL = 3.34845026373e-07

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.022e-04  5.930e-02  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.344e+00  1.041e+03  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.062e+00  4.371e-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:  8.939e-01  3.465e-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/919176/cmap_HighResolution_369187201_369446401_4FGL_J1248.9+4840_daily_bin501.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.79e-03', job_status='DONE', photon_flux_upper_limit='4.89e-08', time_completed='2021-09-06 05:56:06.133067', job_id='919176', GAL2='1.06', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1630932966.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='3.35e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='501' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:56:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 919176: <4FGL_J1248.9+4840_daily_bin501> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin501 192.244 48.67 369187201 369446401 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 :                                   773.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            935 sec.

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

