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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin206
RA = 192.244, Dec = 48.67
tmin = 292723201, tmax = 292982401
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='917634', job_status='RUN', time_executed='2021-09-06 05:37:00.644056', time_epoch_executed='1630931820.64' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='206'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917634

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917634/ft1_4FGL_J1248.9+4840_daily_bin206.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917634/ft2_4FGL_J1248.9+4840_daily_bin206.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917634/ft1_4FGL_J1248.9+4840_daily_bin206.fits outfile=/scratch/kocevski/917634/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin206.fits ra=192.244 dec=48.67 rad=12.0 tmin=292723201.0 tmax=292982401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.36
user 4.12
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/917634/ft1_filtered_4FGL_J1248.9+4840_daily_bin206.fits" evtable="EVENTS" scfile=/scratch/kocevski/917634/ft2_4FGL_J1248.9+4840_daily_bin206.fits sctable="SC_DATA" outfile=/scratch/kocevski/917634/ltcube_292723201_292982401_4FGL_J1248.9+4840_daily_bin206.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/917634/ft2_4FGL_J1248.9+4840_daily_bin206.fits
.....................!
real 12.46
user 12.09
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917634/ft1_filtered_4FGL_J1248.9+4840_daily_bin206.fits evtable="EVENTS" scfile=/scratch/kocevski/917634/ft2_4FGL_J1248.9+4840_daily_bin206.fits sctable="SC_DATA" expcube=/scratch/kocevski/917634/ltcube_292723201_292982401_4FGL_J1248.9+4840_daily_bin206.fits outfile=/scratch/kocevski/917634/expmap_292723201_292982401_4FGL_J1248.9+4840_daily_bin206.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/917634/ltcube_292723201_292982401_4FGL_J1248.9+4840_daily_bin206.fits
.....................!
real 190.75
user 185.29
sys 5.00

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/917634/ft1_filtered_4FGL_J1248.9+4840_daily_bin206.fits scfile=/scratch/kocevski/917634/ft2_4FGL_J1248.9+4840_daily_bin206.fits outfile=/scratch/kocevski/917634/cmap_292723201_292982401_4FGL_J1248.9+4840_daily_bin206.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/917634/ft1_filtered_4FGL_J1248.9+4840_daily_bin206.fits scfile=/scratch/kocevski/917634/ft2_4FGL_J1248.9+4840_daily_bin206.fits outfile=/scratch/kocevski/917634/cmap_HighResolution_292723201_292982401_4FGL_J1248.9+4840_daily_bin206.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/917634/ft1_filtered_4FGL_J1248.9+4840_daily_bin206.fits evtable="EVENTS" scfile=/scratch/kocevski/917634/ft2_4FGL_J1248.9+4840_daily_bin206.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/917634/Model_4FGL_J1248.9+4840_daily_bin206.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/917634/ft1_filtered_4FGL_J1248.9+4840_daily_bin206.fits.....................!
real 53.90
user 51.54
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.4546       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .69159E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .31067E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9552       1.0000         .10000E-03   10000.    
     7 'norm      '    5.7289       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.8864       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    41.493       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.2824       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    12.111       1.0000         .10000E-03   10000.    
    16 'norm      '    9.8552       1.0000         .10000E-03   10000.    
    17 'Prefactor '    40.736       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.0651       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.2888       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    115.57       1.0000         .10000E-03   10000.    
    22 'norm      '    .61783       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .79805       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2894       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=   6594.714     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2912 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.4514        3.9827        .94156E-06    .14700E-02
   2  Prefactor     .10000E-03    85.768       -.28689E-06** at limit **
   3  norm          .10170E-03    1.1369       -.97778E-06** at limit **
   4  norm          .10000E-03    1.4020        .70121E-07** at limit **
   5  Prefactor     .10000E-03    9.6461        .28463E-06** at limit **
   6  Prefactor     2.9553        6.1528        .96765E-06    .23283E-03
   7  norm          5.7289        2.8588       -.83571E-07   -.19559E-04
   8  Prefactor     .10000E-03    20.004        .31542E-06** at limit **
   9  Prefactor     .10000E-03    7.1638        .76777E-07** at limit **
  10  norm          5.8864        2.6052        .22044E-07   -.19014E-04
  11  Prefactor     .10000E-03    2.6867        .50150E-07** at limit **
  12  Prefactor     41.421        67.458        .96627E-07   -.84436E-04
  13  Prefactor     7.2817        6.9375       -.56113E-07   -.32954E-04
  14  Prefactor     .10000E-03    4.8277        .17497E-07** at limit **
  15  norm          12.115        12.600       -.60086E-07   -.47905E-04
  16  norm          9.8554        4.5692        .35140E-07   -.90906E-04
  17  Prefactor     40.732        36.491       -.19897E-06   -.77988E-04
  18  Prefactor     7.0637        12.237        .23760E-06   -.89554E-05
  19  Prefactor     7.2774        52.404        .90841E-07   -.34983E-04
  20  norm          .10000E-03    1.2262       -.52574E-08** at limit **
  21  Prefactor     115.54        64.479        .16512E-06   -.55942E-04
  22  norm          .61885        1.1881        .59110E-06    .98960E-03
  23  norm          .10000E-03    35.729        .66421E-07** at limit **
  24  Normalizat    .79834        .16661       -.10088E-05   -.96238E-06
  25  Prefactor     1.2892        .20138       -.73479E-06   -.70968E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.45139
  Prefactor  = 0.000100002
  norm       = 0.0001017
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.95532
  norm       = 5.72885
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.88641
  Prefactor  = 0.0001
  Prefactor  = 41.4209
  Prefactor  = 7.2817
  Prefactor  = 0.0001
  norm       = 12.1146
  norm       = 9.85541
  Prefactor  = 40.732
  Prefactor  = 7.0637
  Prefactor  = 7.27739
  norm       = 0.0001
  Prefactor  = 115.542
  norm       = 0.618851
  norm       = 0.0001
  Normalizat = 0.79834
  Prefactor  = 1.28922
 **********
 **   18 **HESSE 
 **********

 FCN=   6594.714     FROM HESSE     STATUS=OK           431 CALLS     3343 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.4514        3.9374        .52284E-03   -1.5126    
   2  Prefactor     .10000E-03    88.156        .37438E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10170E-03    27.072        .13991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.4040        .93904E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.7099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.9553        6.1166        .23623E-03   -1.5364    
   7  norm          5.7289        2.8514        .88033E-04   -1.5229    
   8  Prefactor     .10000E-03    20.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.1664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.8864        2.6048        .84127E-04   -1.5223    
  11  Prefactor     .10000E-03    2.6886        .13000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     41.421        67.488        .62231E-04   -1.4420    
  13  Prefactor     7.2817        6.9353        .14863E-03   -1.5168    
  14  Prefactor     .10000E-03    4.8284        .17427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.115        12.595        .11511E-03   -1.5012    
  16  norm          9.8554        4.5671        .11301E-03   -1.5080    
  17  Prefactor     40.732        36.256        .62804E-04   -1.4431    
  18  Prefactor     7.0637        12.215        .15092E-03   -1.5176    
  19  Prefactor     7.2774        50.980        .14857E-03   -1.5168    
  20  norm          .10000E-03    1.2292        .87750E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     115.54        64.573        .37426E-04   -1.3554    
  22  norm          .61885        1.1389        .12007E-02   -1.5551    
  23  norm          .10000E-03    35.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .79834        .19267        .26167E-03   -1.0013    
  25  Prefactor     1.2892        .23633        .26626E-03   -.83628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.9171e-08
Minuit parameter uncertainties:
  1  3.93751
  2  0.000743728
  3  0.0135756
  4  2.88728e-06
  5  3.10135e-05
  6  6.11786
  7  2.85142
  8  9.02332e-05
  9  7.82554e-06
  10  2.60484
  11  3.33318e-06
  12  67.6129
  13  6.93605
  14  2.10583e-06
  15  12.5981
  16  4.56722
  17  36.2756
  18  12.2194
  19  38.5693
  20  6.6652e-07
  21  64.6125
  22  1.1389
  23  4.12799e-05
  24  0.192833
  25  0.236526
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  9.023e-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.289e+00  2.365e-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:  7.983e-01  1.928e-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.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/917634/likelihoodResults_292723201_292982401_4FGL_J1248.9+4840_daily_bin206.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) = 6594.71436991
delta logL = -0.000234497509155

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6594.71413536
delta logL = 5.89334376855e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8919       1.0000          .0000       10.000    
     3 'Normalizat'    .79834       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2892       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=   6594.714     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      235 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.537        .90712E-02** at limit **
   2  Index         2.8825        7.2391        .50000        .40229E-05
   3  Normalizat    .79834        .32770E-02    .43589E-01    .72102E-04
   4  Prefactor     1.2892        .41489E-02    .60207E-01    .38452E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.88245
  Normalizat = 0.798339
  Prefactor  = 1.28922
 **********
 **   18 **HESSE 
 **********

 FCN=   6594.714     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      270 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    61.946        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8825        5.8819        .50000       -.43732    
   3  Normalizat    .79834        .68769E-02    .26167E-03   -1.0013    
   4  Prefactor     1.2892        .87057E-02    .26626E-03   -.83628    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.91945e-08
Minuit parameter uncertainties:
  1  0.000253859
  2  229.72
  3  0.00687691
  4  0.00870575
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917634': 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) = 6594.71413534
delta logL = 7.26240614313e-08

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  2.539e-04  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.882e+00  2.297e+02  0.000e+00  1.000e+01 (-1.000e+00)
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.289e+00  8.706e-03  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:  7.983e-01  6.877e-03  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/917634/cmap_HighResolution_292723201_292982401_4FGL_J1248.9+4840_daily_bin206.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.31e-03', job_status='DONE', photon_flux_upper_limit='5.55e-08', time_completed='2021-09-06 05:50:36.061033', job_id='917634', GAL2='1.29', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1630932636.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='7.26e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='206' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:50:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 917634: <4FGL_J1248.9+4840_daily_bin206> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin206 192.244 48.67 292723201 292982401 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 :                                 1257 MB
    Average Memory :                             317.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            912 sec.

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

