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


Performing analysis on: 4FGL_J1246.7-2548_daily_bin1501
RA = 191.689, Dec = -25.8018
tmin = 628387201, tmax = 628646401
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='905596', job_status='RUN', time_executed='2021-09-06 04:56:33.582079', time_epoch_executed='1630929393.58' WHERE source_name='4FGL J1246.7-2548' and cadence='daily' and bin_id='1501'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/905596

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/905596/ft1_4FGL_J1246.7-2548_daily_bin1501.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/905596/ft2_4FGL_J1246.7-2548_daily_bin1501.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/905596/ft1_4FGL_J1246.7-2548_daily_bin1501.fits outfile=/scratch/kocevski/905596/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1501.fits ra=191.689 dec=-25.8018 rad=12.0 tmin=628387201.0 tmax=628646401.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.59
user 3.31
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/905596/ft2_4FGL_J1246.7-2548_daily_bin1501.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/905596/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1501.fits evtable="EVENTS" outfile="/scratch/kocevski/905596/ft1_filtered_4FGL_J1246.7-2548_daily_bin1501.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.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/905596/ft1_filtered_4FGL_J1246.7-2548_daily_bin1501.fits" evtable="EVENTS" scfile=/scratch/kocevski/905596/ft2_4FGL_J1246.7-2548_daily_bin1501.fits sctable="SC_DATA" outfile=/scratch/kocevski/905596/ltcube_628387201_628646401_4FGL_J1246.7-2548_daily_bin1501.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/905596/ft2_4FGL_J1246.7-2548_daily_bin1501.fits
.....................!
real 11.74
user 11.38
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/905596/ft1_filtered_4FGL_J1246.7-2548_daily_bin1501.fits evtable="EVENTS" scfile=/scratch/kocevski/905596/ft2_4FGL_J1246.7-2548_daily_bin1501.fits sctable="SC_DATA" expcube=/scratch/kocevski/905596/ltcube_628387201_628646401_4FGL_J1246.7-2548_daily_bin1501.fits outfile=/scratch/kocevski/905596/expmap_628387201_628646401_4FGL_J1246.7-2548_daily_bin1501.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/905596/ltcube_628387201_628646401_4FGL_J1246.7-2548_daily_bin1501.fits
.....................!
real 191.13
user 185.55
sys 5.14

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/905596/ft1_filtered_4FGL_J1246.7-2548_daily_bin1501.fits scfile=/scratch/kocevski/905596/ft2_4FGL_J1246.7-2548_daily_bin1501.fits outfile=/scratch/kocevski/905596/cmap_628387201_628646401_4FGL_J1246.7-2548_daily_bin1501.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/905596/ft1_filtered_4FGL_J1246.7-2548_daily_bin1501.fits scfile=/scratch/kocevski/905596/ft2_4FGL_J1246.7-2548_daily_bin1501.fits outfile=/scratch/kocevski/905596/cmap_HighResolution_628387201_628646401_4FGL_J1246.7-2548_daily_bin1501.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.57
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/905596/ft1_filtered_4FGL_J1246.7-2548_daily_bin1501.fits evtable="EVENTS" scfile=/scratch/kocevski/905596/ft2_4FGL_J1246.7-2548_daily_bin1501.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/905596/Model_4FGL_J1246.7-2548_daily_bin1501.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/905596/ft1_filtered_4FGL_J1246.7-2548_daily_bin1501.fits.....................!
real 186.15
user 184.51
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/905596/ft1_filtered_4FGL_J1246.7-2548_daily_bin1501.fits', '/scratch/kocevski/905596/ft2_4FGL_J1246.7-2548_daily_bin1501.fits', expMap='/scratch/kocevski/905596/expmap_628387201_628646401_4FGL_J1246.7-2548_daily_bin1501.fits', expCube='/scratch/kocevski/905596/ltcube_628387201_628646401_4FGL_J1246.7-2548_daily_bin1501.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/905596/Model_4FGL_J1246.7-2548_daily_bin1501.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/905596/ft1_filtered_4FGL_J1246.7-2548_daily_bin1501.fits
Spacecraft file(s): /scratch/kocevski/905596/ft2_4FGL_J1246.7-2548_daily_bin1501.fits
Exposure map: /scratch/kocevski/905596/expmap_628387201_628646401_4FGL_J1246.7-2548_daily_bin1501.fits
Exposure cube: /scratch/kocevski/905596/ltcube_628387201_628646401_4FGL_J1246.7-2548_daily_bin1501.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/905596/Model_4FGL_J1246.7-2548_daily_bin1501.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) = 11907.8975936

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.159       1.0000         .10000E-03   10000.    
     3 'norm      '    4.3522       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4658       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4486       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.0125       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.5416       1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.133       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12300E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    27.418       1.0000         .10000E-03   10000.    
    17 'norm      '    2.2099       1.0000         .10000E-03   10000.    
    18 'norm      '    5.2437       1.0000         .10000E-03   10000.    
    19 'Prefactor '    53.289       1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.776       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .72339       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2006       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=   11907.86     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2041 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.447       -.23032E-08** at limit **
   2  Prefactor     11.159        8.8936       -.10518E-07    .85062E-05
   3  norm          4.3522        3.2892        .21575E-07   -.42151E-04
   4  Prefactor     1.4655        3.5148        .18004E-05    .86104E-03
   5  Prefactor     .10000E-03    11.649        .21230E-07** at limit **
   6  Prefactor     1.4592        61.315       -.34394E-05    .92061E-04
   7  Prefactor     7.0124        7.5920       -.24483E-06    .93219E-05
   8  Prefactor     .10000E-03    7.9293        .17427E-07** at limit **
   9  Prefactor     .10000E-03    21.676        .39855E-06** at limit **
  10  Prefactor     .10000E-03    3.8972       -.11738E-07** at limit **
  11  norm          7.5416        1.3292       -.67574E-08    .42218E-03
  12  Prefactor     23.136        35.782       -.41559E-06    .13214E-03
  13  norm          .10000E-03    3.0320       -.16307E-07** at limit **
  14  norm          .10000E-03    1.6010        .41681E-07** at limit **
  15  Prefactor     .10001E-03    4.8750       -.30766E-05** at limit **
  16  norm          27.419        6.5386       -.62553E-07    .24331E-04
  17  norm          2.2100        1.8405       -.28772E-08    .45358E-04
  18  norm          5.2438        4.7679        .16023E-05    .13489E-03
  19  Prefactor     53.287        32.312        .15515E-07   -.11293E-03
  20  Prefactor     17.776        11.276        .11426E-07    .10528E-04
  21  Normalizat    .72341        .21909       -.64426E-08    .16654E-03
  22  Prefactor     1.2006        .10267       -.24273E-06    .38021E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 11.1587
  norm       = 4.35225
  Prefactor  = 1.46545
  Prefactor  = 0.000100001
  Prefactor  = 1.45924
  Prefactor  = 7.01245
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.54161
  Prefactor  = 23.1355
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100009
  norm       = 27.4186
  norm       = 2.20997
  norm       = 5.24378
  Prefactor  = 53.2872
  Prefactor  = 17.7764
  Normalizat = 0.723414
  Prefactor  = 1.20055
 **********
 **   18 **HESSE 
 **********

 FCN=   11907.86     FROM HESSE     STATUS=OK           344 CALLS     2385 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.159        8.8845        .11993E-03   -1.5040    
   3  norm          4.3522        3.2864        .16122E-03   -1.5291    
   4  Prefactor     1.4655        3.5919        .29624E-03   -1.5466    
   5  Prefactor     .10000E-03    11.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.4592        61.775        .35805E-03   -1.5466    
   7  Prefactor     7.0124        7.6051        .75746E-03   -1.5178    
   8  Prefactor     .10000E-03    7.9345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.9114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.5416        1.3254        .50113E-04   -1.5159    
  12  Prefactor     23.136        35.459        .83282E-04   -1.4746    
  13  norm          .10000E-03    3.0477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.6081        .13468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    10.574        .33013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          27.419        6.5368        .76508E-04   -1.4660    
  17  norm          2.2100        1.8440        .13113E-03   -1.5411    
  18  norm          5.2438        5.1997        .87767E-03   -1.5250    
  19  Prefactor     53.287        32.320        .54944E-04   -1.4247    
  20  Prefactor     17.776        11.274        .94996E-04   -1.4864    
  21  Normalizat    .72341        .23927        .46485E-03   -1.0298    
  22  Prefactor     1.2006        .11377        .17602E-03   -.86314    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6213e-09
Minuit parameter uncertainties:
  1  6.95164e-05
  2  8.88554
  3  3.28658
  4  3.59245
  5  0.000198718
  6  19.0093
  7  7.60615
  8  3.07867e-05
  9  8.53064e-05
  10  1.35182e-06
  11  1.32538
  12  35.4911
  13  8.10926e-08
  14  9.13381e-06
  15  0.00060275
  16  6.53692
  17  1.84403
  18  5.20011
  19  32.3308
  20  11.275
  21  0.239617
  22  0.113789
Done.

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

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  7.542e+00  1.325e+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

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  1.201e+00  1.138e-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:  7.234e-01  2.396e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 99.44
Ra Dec: 191.689 -25.802
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 3.30e-07 +/- 5.80e-08
Energy Flux (Fixed Index): 1.27e-04 +/- 2.22e-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) = 11907.8601195
delta logL = 0.00449460386881

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11907.8587504
delta logL = 0.00586372359976

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.4838       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2355       1.0000          .0000       5.0000    
     3 'Normalizat'    .71745       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2023       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=   11907.86     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      196 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.4838        7.8144        .36650E-02    .10704E-02
   2  alpha         2.2355        1.0227        .16704        .78699E-04
   3  Normalizat    .71745        .30580        .10525       -.17265E-03
   4  Prefactor     1.2023        .12825        .34578E-01   -.73826E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.48382
  alpha      = 2.23552
  Normalizat = 0.717448
  Prefactor  = 1.20226
 **********
 **   18 **HESSE 
 **********

 FCN=   11907.86     FROM HESSE     STATUS=OK            31 CALLS      227 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.4838        1.4330        .49713E-04   -1.5161    
   2  alpha         2.2355        .19911        .70969E-02   -.10599    
   3  Normalizat    .71745        .24309        .46656E-03   -1.0321    
   4  Prefactor     1.2023        .11427        .17590E-03   -.86262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.32313e-10
Minuit parameter uncertainties:
  1  1.43301
  2  0.199326
  3  0.243456
  4  0.114296
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/905596': 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) = 11907.8587504
delta logL = 0.00586372451471

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  7.484e+00  1.433e+00  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  2.236e+00  1.993e-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:  1.202e+00  1.143e-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:  7.174e-01  2.435e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 99.00
Ra Dec: 191.689 -25.802
Photon Index (Free Index): 2.24 +/- 0.20
Photon Flux (Free Index): 3.35e-07 +/- 7.18e-08
Energy Flux (Free Index): 1.25e-04 +/- 2.53e-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/905596/cmap_HighResolution_628387201_628646401_4FGL_J1246.7-2548_daily_bin1501.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.30e-07', energy_flux2='1.25e-04', photon_flux_error='5.80e-08', dlogl='5.86e-03', energy_flux='1.27e-04', photon_flux2='3.35e-07', job_status='DONE', time_completed='2021-09-06 05:12:11.649073', photon_index_error2='0.20', photon_index2='2.24', ts='99.44', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', energy_flux_error2='2.53e-05', EG='0.72', time_epoch_completed='1630930331.65', return_code='0', job_id='905596', GAL2='1.20', EG2='0.72', return_code2='0', energy_flux_error='2.22e-05', photon_flux_error2='7.18e-08', ts2='99.00', photon_index='2.21' WHERE bin_id='1501' AND source_name='4FGL J1246.7-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:12:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 905596: <4FGL_J1246.7-2548_daily_bin1501> in cluster <slac> Done

Job <4FGL_J1246.7-2548_daily_bin1501> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 04:56:10 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 04:56:11 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:56:11 2021
Terminated at Mon Sep  6 05:12:12 2021
Results reported at Mon Sep  6 05:12:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1246.7-2548_daily_bin1501 191.689 -25.8018 628387201 628646401 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 :                                   906.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             355.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            962 sec.

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

