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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin172
RA = 192.244, Dec = 48.67
tmin = 283910401, tmax = 284169601
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='917581', job_status='RUN', time_executed='2021-09-06 05:36:26.452039', time_epoch_executed='1630931786.45' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='172'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917581

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917581/ft1_4FGL_J1248.9+4840_daily_bin172.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917581/ft2_4FGL_J1248.9+4840_daily_bin172.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917581/ft1_4FGL_J1248.9+4840_daily_bin172.fits outfile=/scratch/kocevski/917581/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin172.fits ra=192.244 dec=48.67 rad=12.0 tmin=283910401.0 tmax=284169601.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.56
user 3.33
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/917581/ft2_4FGL_J1248.9+4840_daily_bin172.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/917581/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin172.fits evtable="EVENTS" outfile="/scratch/kocevski/917581/ft1_filtered_4FGL_J1248.9+4840_daily_bin172.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.54
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/917581/ft1_filtered_4FGL_J1248.9+4840_daily_bin172.fits" evtable="EVENTS" scfile=/scratch/kocevski/917581/ft2_4FGL_J1248.9+4840_daily_bin172.fits sctable="SC_DATA" outfile=/scratch/kocevski/917581/ltcube_283910401_284169601_4FGL_J1248.9+4840_daily_bin172.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/917581/ft2_4FGL_J1248.9+4840_daily_bin172.fits
.....................!
real 11.88
user 11.51
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917581/ft1_filtered_4FGL_J1248.9+4840_daily_bin172.fits evtable="EVENTS" scfile=/scratch/kocevski/917581/ft2_4FGL_J1248.9+4840_daily_bin172.fits sctable="SC_DATA" expcube=/scratch/kocevski/917581/ltcube_283910401_284169601_4FGL_J1248.9+4840_daily_bin172.fits outfile=/scratch/kocevski/917581/expmap_283910401_284169601_4FGL_J1248.9+4840_daily_bin172.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/917581/ltcube_283910401_284169601_4FGL_J1248.9+4840_daily_bin172.fits
.....................!
real 191.26
user 185.61
sys 5.06

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/917581/ft1_filtered_4FGL_J1248.9+4840_daily_bin172.fits scfile=/scratch/kocevski/917581/ft2_4FGL_J1248.9+4840_daily_bin172.fits outfile=/scratch/kocevski/917581/cmap_283910401_284169601_4FGL_J1248.9+4840_daily_bin172.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=192.244 yref=48.67 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/917581/ft1_filtered_4FGL_J1248.9+4840_daily_bin172.fits scfile=/scratch/kocevski/917581/ft2_4FGL_J1248.9+4840_daily_bin172.fits outfile=/scratch/kocevski/917581/cmap_HighResolution_283910401_284169601_4FGL_J1248.9+4840_daily_bin172.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/917581/ft1_filtered_4FGL_J1248.9+4840_daily_bin172.fits evtable="EVENTS" scfile=/scratch/kocevski/917581/ft2_4FGL_J1248.9+4840_daily_bin172.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/917581/Model_4FGL_J1248.9+4840_daily_bin172.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/917581/ft1_filtered_4FGL_J1248.9+4840_daily_bin172.fits.....................!
real 52.95
user 50.78
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4374       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.7209       1.0000         .10000E-03   10000.    
     4 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.1640       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.0634       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.8173       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.188       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.0787       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.130       1.0000         .10000E-03   10000.    
    15 'norm      '    9.6764       1.0000         .10000E-03   10000.    
    16 'norm      '    8.6126       1.0000         .10000E-03   10000.    
    17 'Prefactor '    83.968       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10323E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.5559       1.0000         .10000E-03   10000.    
    21 'Prefactor '    52.306       1.0000         .10000E-03   10000.    
    22 'norm      '    .20054       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2053       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .71053       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=   5924.542     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     2855 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4379        2.5369       -.18959E-06   -.51593E-03
   2  Prefactor     .10000E-03    13.203        .12794E-04** at limit **
   3  norm          1.7210        1.6109       -.90099E-07   -.34989E-03
   4  norm          .10000E-03    4.4408        .40661E-07** at limit **
   5  Prefactor     .10000E-03    15.591       -.77383E-05** at limit **
   6  Prefactor     .10000E-03    2.1420       -.82305E-08** at limit **
   7  norm          3.1639        2.0985       -.47361E-07   -.11421E-03
   8  Prefactor     9.0621        15.458       -.24712E-06   -.96209E-05
   9  Prefactor     .10000E-03    25.792        .10721E-04** at limit **
  10  norm          2.8173        1.9952       -.18097E-07    .14858E-04
  11  Prefactor     10.186        9.4968       -.13888E-06   -.99192E-04
  12  Prefactor     .10000E-03    30.422        .13288E-04** at limit **
  13  Prefactor     7.0786        8.0857       -.20318E-06   -.83111E-04
  14  Prefactor     16.130        18.817       -.10161E-06   -.15927E-04
  15  norm          9.6765        9.6400        .80890E-06    .81612E-03
  16  norm          8.6128        4.4414       -.25564E-06    .63413E-04
  17  Prefactor     83.962        45.803       -.54816E-05    .81815E-04
  18  Prefactor     .10000E-03    10.480       -.24857E-05** at limit **
  19  Prefactor     .10000E-03    16.221       -.10060E-04** at limit **
  20  norm          2.5579        3.5134        .10609E-05   -.20348E-03
  21  Prefactor     52.310        46.161        .37312E-05    .11067E-04
  22  norm          .20563        1.1175       -.36219E-06   -.64480E-03
  23  norm          .10000E-03    38.103       -.20107E-04** at limit **
  24  Normalizat    1.2053        .17143        .59983E-06   -.26331E-05
  25  Prefactor     .71050        .19839       -.20368E-06   -.41445E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.4379
  Prefactor  = 0.0001
  norm       = 1.72097
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.16386
  Prefactor  = 9.06211
  Prefactor  = 0.0001
  norm       = 2.81727
  Prefactor  = 10.1863
  Prefactor  = 0.0001
  Prefactor  = 7.07864
  Prefactor  = 16.1299
  norm       = 9.67651
  norm       = 8.61278
  Prefactor  = 83.9618
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.55786
  Prefactor  = 52.3098
  norm       = 0.205629
  norm       = 0.0001
  Normalizat = 1.2053
  Prefactor  = 0.710501
 **********
 **   18 **HESSE 
 **********

 FCN=   5924.542     FROM HESSE     STATUS=OK           427 CALLS     3282 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4379        2.5333        .12063E-03   -1.5396    
   2  Prefactor     .10000E-03    13.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.7210        1.5967        .90971E-04   -1.5446    
   4  norm          .10000E-03    4.5192        .15834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.1492        .10995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.1639        2.0933        .86992E-04   -1.5352    
   8  Prefactor     9.0621        15.451        .13313E-03   -1.5106    
   9  Prefactor     .10000E-03    26.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.8173        1.9955        .88522E-04   -1.5372    
  11  Prefactor     10.186        9.4939        .12554E-03   -1.5070    
  12  Prefactor     .10000E-03    30.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.0786        8.0770        .15078E-03   -1.5176    
  14  Prefactor     16.130        18.819        .99725E-04   -1.4905    
  15  norm          9.6765        9.7147        .64412E-03   -1.5086    
  16  norm          8.6128        4.4399        .11054E-03   -1.5121    
  17  Prefactor     83.962        45.561        .43837E-04   -1.3873    
  18  Prefactor     .10000E-03    10.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.5579        3.4877        .16128E-03   -1.5388    
  21  Prefactor     52.310        46.203        .55455E-04   -1.4260    
  22  norm          .20563        2.2363        .15363E-02   -1.5617    
  23  norm          .10000E-03    38.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2053        .19613        .21081E-03   -.86439    
  25  Prefactor     .71050        .22640        .31877E-03   -1.0312    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.71051e-10
Minuit parameter uncertainties:
  1  2.53338
  2  1.4605e-05
  3  1.59676
  4  3.96687e-06
  5  1.63023e-05
  6  1.35336e-07
  7  2.09332
  8  15.4579
  9  6.5408e-05
  10  1.99559
  11  9.4953
  12  2.95816e-06
  13  8.07829
  14  18.8264
  15  9.71625
  16  4.44006
  17  45.58
  18  3.64424e-05
  19  7.82944e-05
  20  3.48795
  21  46.2347
  22  1.35597
  23  2.80298e-06
  24  0.19625
  25  0.226696
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  7.105e-01  2.267e-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.205e+00  1.963e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/917581/likelihoodResults_283910401_284169601_4FGL_J1248.9+4840_daily_bin172.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): 0
logL (Free Index) = 5924.19638995
delta logL = 0.345818688581

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5924.1067487
delta logL = 0.43545993584

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.104       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7066       1.0000          .0000       10.000    
     3 'Normalizat'    1.2174       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69547       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=   5924.107     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      249 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.088        64.851        .24211E-02    .48911E-04
   2  Index         1.7061        1.5245        .27809       -.26701E-04
   3  Normalizat    1.2169        .17123        .34477E-01   -.31502E-04
   4  Prefactor     .69593        .20666        .72657E-01    .11420E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.0876
  Index      = 1.70606
  Normalizat = 1.2169
  Prefactor  = 0.695933
 **********
 **   18 **HESSE 
 **********

 FCN=   5924.107     FROM HESSE     STATUS=OK            33 CALLS      282 TOTAL
                     EDM=   .69E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.088        21.276        .96842E-04   -1.4881    
   2  Index         1.7061        .65045        .10016E-01   -.71921    
   3  Normalizat    1.2169        .18871        .20989E-03   -.86082    
   4  Prefactor     .69593        .22561        .32159E-03   -1.0369    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.88157e-12
Minuit parameter uncertainties:
  1  21.2853
  2  0.653739
  3  0.188817
  4  0.225909
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917581': 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) = 5924.10674409
delta logL = 0.435464545992

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.709e+01  2.129e+01  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  1.706e+00  6.537e-01  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.259e-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.217e+00  1.888e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.37
Ra Dec: 192.244 48.670
Photon Index (Free Index): 1.71 +/- 0.65
Photon Flux (Free Index): 1.03e-08 +/- 1.50e-08
Energy Flux (Free Index): 1.65e-05 +/- 2.95e-05

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/917581/cmap_HighResolution_283910401_284169601_4FGL_J1248.9+4840_daily_bin172.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.10e-03', comment='SUCCESS', energy_flux2='1.65e-05', dlogl='4.35e-01', photon_flux2='1.03e-08', job_status='DONE', time_completed='2021-09-06 05:49:12.033692', photon_index_error2='0.65', photon_index2='1.71', ts='0.49', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='7.86e-08', energy_flux_error2='2.95e-05', EG='1.21', time_epoch_completed='1630932552.03', return_code='0', job_id='917581', GAL2='0.70', EG2='1.22', return_code2='0', photon_flux_error2='1.50e-08', ts2='1.37', photon_index='2.45' WHERE bin_id='172' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:49:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 917581: <4FGL_J1248.9+4840_daily_bin172> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin172 192.244 48.67 283910401 284169601 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 :                                   757.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            833 sec.

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

