/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 59 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 = 7314
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1246.7-2548_daily_bin1070
RA = 191.689, Dec = -25.8018
tmin = 516672001, tmax = 516931201
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='903860', job_status='RUN', time_executed='2021-09-06 04:54:30.298653', time_epoch_executed='1630929270.3' WHERE source_name='4FGL J1246.7-2548' and cadence='daily' and bin_id='1070'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/903860

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/903860/ft1_4FGL_J1246.7-2548_daily_bin1070.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/903860/ft2_4FGL_J1246.7-2548_daily_bin1070.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/903860/ft1_4FGL_J1246.7-2548_daily_bin1070.fits outfile=/scratch/kocevski/903860/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1070.fits ra=191.689 dec=-25.8018 rad=12.0 tmin=516672001.0 tmax=516931201.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.00
user 3.27
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/903860/ft2_4FGL_J1246.7-2548_daily_bin1070.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/903860/ft2_4FGL_J1246.7-2548_daily_bin1070.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/903860/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1070.fits evtable="EVENTS" outfile="/scratch/kocevski/903860/ft1_filtered_4FGL_J1246.7-2548_daily_bin1070.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.52
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/903860/ft1_filtered_4FGL_J1246.7-2548_daily_bin1070.fits" evtable="EVENTS" scfile=/scratch/kocevski/903860/ft2_4FGL_J1246.7-2548_daily_bin1070.fits sctable="SC_DATA" outfile=/scratch/kocevski/903860/ltcube_516672001_516931201_4FGL_J1246.7-2548_daily_bin1070.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/903860/ft2_4FGL_J1246.7-2548_daily_bin1070.fits
.....................!
real 13.47
user 13.09
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/903860/ft1_filtered_4FGL_J1246.7-2548_daily_bin1070.fits evtable="EVENTS" scfile=/scratch/kocevski/903860/ft2_4FGL_J1246.7-2548_daily_bin1070.fits sctable="SC_DATA" expcube=/scratch/kocevski/903860/ltcube_516672001_516931201_4FGL_J1246.7-2548_daily_bin1070.fits outfile=/scratch/kocevski/903860/expmap_516672001_516931201_4FGL_J1246.7-2548_daily_bin1070.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/903860/ltcube_516672001_516931201_4FGL_J1246.7-2548_daily_bin1070.fits
.....................!
real 189.81
user 185.06
sys 4.37

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
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Added 184 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1246.7-2548 @ 191.689 -25.8018

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/903860/ft1_filtered_4FGL_J1246.7-2548_daily_bin1070.fits scfile=/scratch/kocevski/903860/ft2_4FGL_J1246.7-2548_daily_bin1070.fits outfile=/scratch/kocevski/903860/cmap_516672001_516931201_4FGL_J1246.7-2548_daily_bin1070.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=191.689 yref=-25.8018 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.65
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/903860/ft1_filtered_4FGL_J1246.7-2548_daily_bin1070.fits scfile=/scratch/kocevski/903860/ft2_4FGL_J1246.7-2548_daily_bin1070.fits outfile=/scratch/kocevski/903860/cmap_HighResolution_516672001_516931201_4FGL_J1246.7-2548_daily_bin1070.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=191.689 yref=-25.8018 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.92
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/903860/ft1_filtered_4FGL_J1246.7-2548_daily_bin1070.fits evtable="EVENTS" scfile=/scratch/kocevski/903860/ft2_4FGL_J1246.7-2548_daily_bin1070.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/903860/Model_4FGL_J1246.7-2548_daily_bin1070.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 CenA Lobes
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/903860/ft1_filtered_4FGL_J1246.7-2548_daily_bin1070.fits.....................!
real 125.92
user 121.52
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/903860/ft1_filtered_4FGL_J1246.7-2548_daily_bin1070.fits', '/scratch/kocevski/903860/ft2_4FGL_J1246.7-2548_daily_bin1070.fits', expMap='/scratch/kocevski/903860/expmap_516672001_516931201_4FGL_J1246.7-2548_daily_bin1070.fits', expCube='/scratch/kocevski/903860/ltcube_516672001_516931201_4FGL_J1246.7-2548_daily_bin1070.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/903860/Model_4FGL_J1246.7-2548_daily_bin1070.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1246.7-2548'

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  2.651e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  2.214e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
277         beta:  1.173e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
278           Eb:  6.582e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/903860/ft1_filtered_4FGL_J1246.7-2548_daily_bin1070.fits
Spacecraft file(s): /scratch/kocevski/903860/ft2_4FGL_J1246.7-2548_daily_bin1070.fits
Exposure map: /scratch/kocevski/903860/expmap_516672001_516931201_4FGL_J1246.7-2548_daily_bin1070.fits
Exposure cube: /scratch/kocevski/903860/ltcube_516672001_516931201_4FGL_J1246.7-2548_daily_bin1070.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/903860/Model_4FGL_J1246.7-2548_daily_bin1070.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) = 7263.62528246

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.026       1.0000         .10000E-03   10000.    
     3 'norm      '    2.6470       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.5518       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10772E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.526       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10424E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .88128E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.8922       1.0000         .10000E-03   10000.    
    11 'norm      '    1.3439       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12342E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.2896       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.8330       1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.2299       1.0000         .10000E-03   10000.    
    18 'norm      '    9.2799       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.076       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3831       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .83324       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7263.542     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2401 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    83.599       -.11166E-04** at limit **
   2  Prefactor     26.059        32.076        .87738E-06    .21865E-03
   3  norm          2.6439        9.8766       -.15871E-05    .30895E-03
   4  Prefactor     6.5536        8.1872        .48179E-06    .66548E-03
   5  Prefactor     .10000E-03    59.569        .38540E-06** at limit **
   6  Prefactor     14.529        32.995       -.83142E-06    .68283E-04
   7  Prefactor     .10000E-03    8.4453        .64812E-07** at limit **
   8  Prefactor     .10000E-03    22.541       -.40914E-07** at limit **
   9  Prefactor     .10000E-03    117.91       -.43588E-04** at limit **
  10  Prefactor     5.8813        13.571        .11259E-05    .11901E-03
  11  norm          1.3439        .91775       -.38492E-07    .15076E-04
  12  Prefactor     .10000E-03    57.645        .28311E-05** at limit **
  13  norm          3.2900        5.3798       -.59045E-06    .15158E-04
  14  norm          .10000E-03    4.1748       -.10534E-07** at limit **
  15  Prefactor     6.8328        5.5775       -.67392E-08   -.45472E-04
  16  norm          .10000E-03    3.7258       -.12751E-06** at limit **
  17  norm          4.2295        2.9810       -.28334E-07    .11445E-03
  18  norm          9.2804        5.9095        .66030E-07    .13681E-03
  19  Prefactor     12.076        35.255       -.19213E-06    .48026E-05
  20  Prefactor     .10000E-03    9.1062       -.27585E-07** at limit **
  21  Normalizat    1.3831        .24600       -.54398E-06    .19732E-03
  22  Prefactor     .83328        .10778        .40967E-06    .46219E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Prefactor  = 26.0591
  norm       = 2.64395
  Prefactor  = 6.55365
  Prefactor  = 0.000100002
  Prefactor  = 14.5286
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 5.88125
  norm       = 1.34388
  Prefactor  = 0.0001
  norm       = 3.28996
  norm       = 0.0001
  Prefactor  = 6.83276
  norm       = 0.0001
  norm       = 4.2295
  norm       = 9.28042
  Prefactor  = 12.0759
  Prefactor  = 0.0001
  Normalizat = 1.38315
  Prefactor  = 0.833282
 **********
 **   18 **HESSE 
 **********

 FCN=   7263.542     FROM HESSE     STATUS=OK           346 CALLS     2747 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    84.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     26.059        32.371        .78525E-04   -1.4687    
   3  norm          2.6439        10.029        .25058E-03   -1.5383    
   4  Prefactor     6.5536        8.1871        .15678E-03   -1.5196    
   5  Prefactor     .10000E-03    59.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.529        32.738        .10509E-03   -1.4945    
   7  Prefactor     .10000E-03    8.4491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    114.52        .51419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.8813        13.598        .16544E-03   -1.5223    
  11  norm          1.3439        .91102        .64812E-04   -1.5476    
  12  Prefactor     .10000E-03    57.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.2900        5.3666        .22324E-03   -1.5345    
  14  norm          .10000E-03    4.1928        .16940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.8328        5.5537        .15349E-03   -1.5185    
  16  norm          .10000E-03    3.8681        .32115E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.2295        2.9795        .11912E-03   -1.5297    
  18  norm          9.2804        5.9097        .13156E-03   -1.5099    
  19  Prefactor     12.076        35.258        .11528E-03   -1.5013    
  20  Prefactor     .10000E-03    9.1741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3831        .29236        .33715E-03   -.81117    
  22  Prefactor     .83328        .12892        .18692E-03   -.98513    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.37936e-10
Minuit parameter uncertainties:
  1  0.00139159
  2  32.393
  3  10.0355
  4  8.18849
  5  0.000618167
  6  32.7788
  7  2.3043e-05
  8  3.09696e-05
  9  0.000843999
  10  13.605
  11  0.911034
  12  0.000252581
  13  5.36735
  14  2.64712e-05
  15  5.55409
  16  1.88784e-05
  17  2.97965
  18  5.91009
  19  35.3191
  20  7.92941e-06
  21  0.292709
  22  0.128971
Done.

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

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  1.344e+00  9.110e-01  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  2.214e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
277         beta:  1.173e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
278           Eb:  6.582e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  8.333e-01  1.290e-01  0.000e+00  1.000e+01 ( 1.000e+00)
604        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
605        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  1.383e+00  2.927e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.90
Ra Dec: 191.689 -25.802
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 5.88e-08 +/- 3.98e-08
Energy Flux (Fixed Index): 2.26e-05 +/- 1.53e-05

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) = 7263.26060782
delta logL = 0.281591363163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7263.2579235
delta logL = 0.284275680422

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3253       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7579       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4050       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82795       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7263.258     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      201 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3253        1.6579        .95468E-02   -.38242E-03
   2  alpha         1.7579        .79006        .43531       -.30816E-04
   3  Normalizat    1.4051        .24184        .75702E-01    .48061E-04
   4  Prefactor     .82793        .10805        .44080E-01    .79520E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.32527
  alpha      = 1.75786
  Normalizat = 1.40508
  Prefactor  = 0.827935
 **********
 **   18 **HESSE 
 **********

 FCN=   7263.258     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3253        1.0080        .67927E-04   -1.5478    
   2  alpha         1.7579        .58540        .15924E-01   -.30140    
   3  Normalizat    1.4051        .28656        .33502E-03   -.80482    
   4  Prefactor     .82793        .12782        .18748E-03   -.98707    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21572e-11
Minuit parameter uncertainties:
  1  1.00802
  2  0.591434
  3  0.286884
  4  0.12787
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/903860': 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) = 7263.25792348
delta logL = 0.28427569548

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  1.325e+00  1.008e+00  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  1.758e+00  5.914e-01  0.000e+00  5.000e+00 ( 1.000e+00)
277         beta:  1.173e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
278           Eb:  6.582e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  8.279e-01  1.279e-01  0.000e+00  1.000e+01 ( 1.000e+00)
604        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
605        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  1.405e+00  2.869e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.48
Ra Dec: 191.689 -25.802
Photon Index (Free Index): 1.76 +/- 0.59
Photon Flux (Free Index): 3.95e-08 +/- 3.79e-08
Energy Flux (Free Index): 3.01e-05 +/- 2.56e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/903860/cmap_HighResolution_516672001_516931201_4FGL_J1246.7-2548_daily_bin1070.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.88e-08', energy_flux2='3.01e-05', photon_flux_error='3.98e-08', dlogl='2.84e-01', energy_flux='2.26e-05', photon_flux2='3.95e-08', job_status='DONE', time_completed='2021-09-06 05:06:48.382668', photon_index_error2='0.59', photon_index2='1.76', ts='4.90', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='2.56e-05', EG='1.38', time_epoch_completed='1630930008.38', return_code='0', job_id='903860', GAL2='0.83', EG2='1.41', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='3.79e-08', ts2='5.48', photon_index='2.21' WHERE bin_id='1070' AND source_name='4FGL J1246.7-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:06:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 903860: <4FGL_J1246.7-2548_daily_bin1070> in cluster <slac> Done

Job <4FGL_J1246.7-2548_daily_bin1070> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 04:51:04 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 04:51:05 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 04:51:05 2021
Terminated at Mon Sep  6 05:06:49 2021
Results reported at Mon Sep  6 05:06:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1246.7-2548_daily_bin1070 191.689 -25.8018 516672001 516931201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1246.7-2548 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   703.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            945 sec.

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

