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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin215
RA = 192.244, Dec = 48.67
tmin = 295056001, tmax = 295315201
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='917650', job_status='RUN', time_executed='2021-09-06 05:37:15.228303', time_epoch_executed='1630931835.23' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917650

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917650/ft1_4FGL_J1248.9+4840_daily_bin215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917650/ft2_4FGL_J1248.9+4840_daily_bin215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917650/ft1_4FGL_J1248.9+4840_daily_bin215.fits outfile=/scratch/kocevski/917650/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin215.fits ra=192.244 dec=48.67 rad=12.0 tmin=295056001.0 tmax=295315201.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 2.60
user 2.33
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/917650/ft2_4FGL_J1248.9+4840_daily_bin215.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/917650/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin215.fits evtable="EVENTS" outfile="/scratch/kocevski/917650/ft1_filtered_4FGL_J1248.9+4840_daily_bin215.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917650/ft1_filtered_4FGL_J1248.9+4840_daily_bin215.fits evtable="EVENTS" scfile=/scratch/kocevski/917650/ft2_4FGL_J1248.9+4840_daily_bin215.fits sctable="SC_DATA" expcube=/scratch/kocevski/917650/ltcube_295056001_295315201_4FGL_J1248.9+4840_daily_bin215.fits outfile=/scratch/kocevski/917650/expmap_295056001_295315201_4FGL_J1248.9+4840_daily_bin215.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/917650/ltcube_295056001_295315201_4FGL_J1248.9+4840_daily_bin215.fits
.....................!
real 191.15
user 185.42
sys 5.26

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/917650/ft1_filtered_4FGL_J1248.9+4840_daily_bin215.fits scfile=/scratch/kocevski/917650/ft2_4FGL_J1248.9+4840_daily_bin215.fits outfile=/scratch/kocevski/917650/cmap_295056001_295315201_4FGL_J1248.9+4840_daily_bin215.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/917650/ft1_filtered_4FGL_J1248.9+4840_daily_bin215.fits scfile=/scratch/kocevski/917650/ft2_4FGL_J1248.9+4840_daily_bin215.fits outfile=/scratch/kocevski/917650/cmap_HighResolution_295056001_295315201_4FGL_J1248.9+4840_daily_bin215.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    44.516       1.0000         .10000E-03   10000.    
     3 'norm      '    7.5232       1.0000         .10000E-03   10000.    
     4 'norm      '    2.7047       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.5299       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7951       1.0000         .10000E-03   10000.    
     7 'norm      '    1.2374       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.621       1.0000         .10000E-03   10000.    
    10 'norm      '    1.8882       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .50975E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.964       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12427E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10196E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    35.062       1.0000         .10000E-03   10000.    
    17 'Prefactor '    43.607       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .52269E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .53453       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .15533       1.0000         .10000E-03   10000.    
    22 'norm      '    .54279       1.0000         .10000E-03   10000.    
    23 'norm      '    .61646E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1928       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .69605       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5022.986     FROM MIGRAD    STATUS=CONVERGED    144 CALLS     2121 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.1739       -.36486E-06** at limit **
   2  Prefactor     44.625        8.4545        .37300E-06   -.85308E-02
   3  norm          7.5209        2.9404        .48451E-07    .42982E-04
   4  norm          2.7099        4.7206       -.18157E-06   -.20207E-04
   5  Prefactor     7.3631        17.495        .30290E-06   -.46113E-03
   6  Prefactor     5.7973        5.0561        .10411E-06    .12925E-03
   7  norm          1.2380        1.7351       -.53437E-06   -.40199E-03
   8  Prefactor     .10000E-03    8.9045       -.12788E-06** at limit **
   9  Prefactor     37.521        6.0280       -.27504E-06    .59422E-02
  10  norm          1.8877        2.1587       -.12469E-06   -.10171E-03
  11  Prefactor     .10000E-03    4.0752       -.15080E-05** at limit **
  12  Prefactor     .10022E-03    27.159       -.15205E-05** at limit **
  13  Prefactor     12.886        8.1524       -.44053E-06   -.65810E-02
  14  Prefactor     .10002E-03    18.627        .86863E-06** at limit **
  15  norm          .10000E-03    8.8546       -.78962E-07** at limit **
  16  norm          35.102        8.2358       -.66389E-08    .44557E-02
  17  Prefactor     43.428        5.1334       -.13250E-06   -.20096E-02
  18  Prefactor     .10000E-03    16.107       -.16072E-05** at limit **
  19  Prefactor     .10330E-03    280.91       -.49348E-05** at limit **
  20  norm          .10000E-03    1.3815       -.32796E-06** at limit **
  21  Prefactor     .10544E-03    271.81        .63539E-05** at limit **
  22  norm          .54706        1.8993        .37346E-06    .82279E-04
  23  norm          .10061E-03    28.432        .23216E-05** at limit **
  24  Normalizat    1.1934        .21142       -.12394E-05   -.64499E-04
  25  Prefactor     .69586        .25006        .15305E-05   -.10625E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 44.6248
  norm       = 7.52093
  norm       = 2.70987
  Prefactor  = 7.3631
  Prefactor  = 5.79726
  norm       = 1.23804
  Prefactor  = 0.0001
  Prefactor  = 37.5212
  norm       = 1.88768
  Prefactor  = 0.0001
  Prefactor  = 0.000100224
  Prefactor  = 12.8861
  Prefactor  = 0.000100017
  norm       = 0.0001
  norm       = 35.102
  Prefactor  = 43.4275
  Prefactor  = 0.0001
  Prefactor  = 0.000103305
  norm       = 0.0001
  Prefactor  = 0.000105437
  norm       = 0.547057
  norm       = 0.000100605
  Normalizat = 1.19341
  Prefactor  = 0.695862
 **********
 **   18 **HESSE 
 **********

 FCN=   5022.986     FROM HESSE     STATUS=OK           481 CALLS     2602 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1211        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     44.625        24.818        .15022E-02   -1.4371    
   3  norm          7.5209        2.9409        .36554E-02   -1.5159    
   4  norm          2.7099        4.7645        .61921E-02   -1.5379    
   5  Prefactor     7.3631        17.999        .36537E-02   -1.5165    
   6  Prefactor     5.7973        5.0766        .41709E-02   -1.5226    
   7  norm          1.2380        1.7753        .10087E-01   -1.5485    
   8  Prefactor     .10000E-03    8.8930        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     37.521        23.785        .16336E-02   -1.4482    
  10  norm          1.8877        2.1756        .75713E-02   -1.5433    
  11  Prefactor     .10000E-03    4.0732        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10022E-03    30.267        .95878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.886        10.475        .27813E-02   -1.4990    
  14  Prefactor     .10002E-03    18.730        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.8383        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          35.102        8.5424        .16920E-02   -1.4522    
  17  Prefactor     43.428        44.716        .15177E-02   -1.4389    
  18  Prefactor     .10000E-03    16.003        .10568E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10330E-03    296.00        .11411E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.3798        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10544E-03    291.84        .97718E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .54706        1.9022        .11444E-01   -1.5560    
  23  norm          .10061E-03    50.353        .10525E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1934        .18857        .35071E-01   -.86807    
  25  Prefactor     .69586        .22146        .74946E-01   -1.0369    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65473e-07
Minuit parameter uncertainties:
  1  1.13309e-05
  2  24.8233
  3  2.94098
  4  4.76518
  5  18.012
  6  5.07696
  7  1.77542
  8  5.07972e-05
  9  23.7908
  10  2.17571
  11  5.45694e-05
  12  0.0052087
  13  10.477
  14  0.00111509
  15  3.85572e-05
  16  8.54266
  17  44.7502
  18  0.000156011
  19  0.0628653
  20  6.78041e-06
  21  0.0800571
  22  1.90245
  23  0.0110509
  24  0.188677
  25  0.221737
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  5.080e-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:  6.959e-01  2.217e-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.193e+00  1.887e-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.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/917650/likelihoodResults_295056001_295315201_4FGL_J1248.9+4840_daily_bin215.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) = 5022.98639205
delta logL = -0.000533418397026

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5022.98585863
delta logL = 5.6415956351e-09

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 'Index     '    2.4446       1.0000          .0000       10.000    
     3 'Normalizat'    1.1934       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69586       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=   5022.986     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      205 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.442        .90712E-02** at limit **
   2  Index         2.4391        5.8880        .50000        .53355E-05
   3  Normalizat    1.1934        .18093        .35055E-01   -.53456E-05
   4  Prefactor     .69586        .21796        .74946E-01    .23602E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.43909
  Normalizat = 1.19342
  Prefactor  = 0.695862
 **********
 **   18 **HESSE 
 **********

 FCN=   5022.986     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4391        6.2169        .50000       -.53772    
   3  Normalizat    1.1934        .20451        .21676E-03   -.86807    
   4  Prefactor     .69586        .24583        .33176E-03   -1.0369    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10903e-11
Minuit parameter uncertainties:
  1  1.36817e-05
  2  4.63334
  3  0.204649
  4  0.246211
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917650': 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) = 5022.98585862
delta logL = 1.39079929795e-08

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  1.368e-05  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.439e+00  4.633e+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:  6.959e-01  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.193e+00  2.046e-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/917650/cmap_HighResolution_295056001_295315201_4FGL_J1248.9+4840_daily_bin215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.80e-03', job_status='DONE', photon_flux_upper_limit='6.19e-08', time_completed='2021-09-06 05:48:05.369497', job_id='917650', GAL2='0.70', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1630932485.37', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='1.39e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='215' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:48:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 917650: <4FGL_J1248.9+4840_daily_bin215> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin215 192.244 48.67 295056001 295315201 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 :                                   645.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            761 sec.

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

