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


Performing analysis on: 4FGL_J1246.7-2548_daily_bin1485
RA = 191.689, Dec = -25.8018
tmin = 624240001, tmax = 624499201
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='905573', job_status='RUN', time_executed='2021-09-06 04:56:20.815319', time_epoch_executed='1630929380.82' WHERE source_name='4FGL J1246.7-2548' and cadence='daily' and bin_id='1485'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/905573

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/905573/ft1_4FGL_J1246.7-2548_daily_bin1485.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/905573/ft2_4FGL_J1246.7-2548_daily_bin1485.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/905573/ft1_4FGL_J1246.7-2548_daily_bin1485.fits outfile=/scratch/kocevski/905573/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1485.fits ra=191.689 dec=-25.8018 rad=12.0 tmin=624240001.0 tmax=624499201.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.46
user 3.23
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/905573/ft1_filtered_4FGL_J1246.7-2548_daily_bin1485.fits" evtable="EVENTS" scfile=/scratch/kocevski/905573/ft2_4FGL_J1246.7-2548_daily_bin1485.fits sctable="SC_DATA" outfile=/scratch/kocevski/905573/ltcube_624240001_624499201_4FGL_J1246.7-2548_daily_bin1485.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/905573/ft2_4FGL_J1246.7-2548_daily_bin1485.fits
.....................!
real 11.81
user 11.45
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/905573/ft1_filtered_4FGL_J1246.7-2548_daily_bin1485.fits evtable="EVENTS" scfile=/scratch/kocevski/905573/ft2_4FGL_J1246.7-2548_daily_bin1485.fits sctable="SC_DATA" expcube=/scratch/kocevski/905573/ltcube_624240001_624499201_4FGL_J1246.7-2548_daily_bin1485.fits outfile=/scratch/kocevski/905573/expmap_624240001_624499201_4FGL_J1246.7-2548_daily_bin1485.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/905573/ltcube_624240001_624499201_4FGL_J1246.7-2548_daily_bin1485.fits
.....................!
real 190.35
user 185.48
sys 4.49

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/905573/ft1_filtered_4FGL_J1246.7-2548_daily_bin1485.fits scfile=/scratch/kocevski/905573/ft2_4FGL_J1246.7-2548_daily_bin1485.fits outfile=/scratch/kocevski/905573/cmap_624240001_624499201_4FGL_J1246.7-2548_daily_bin1485.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.55
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/905573/ft1_filtered_4FGL_J1246.7-2548_daily_bin1485.fits scfile=/scratch/kocevski/905573/ft2_4FGL_J1246.7-2548_daily_bin1485.fits outfile=/scratch/kocevski/905573/cmap_HighResolution_624240001_624499201_4FGL_J1246.7-2548_daily_bin1485.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.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/905573/ft1_filtered_4FGL_J1246.7-2548_daily_bin1485.fits evtable="EVENTS" scfile=/scratch/kocevski/905573/ft2_4FGL_J1246.7-2548_daily_bin1485.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/905573/Model_4FGL_J1246.7-2548_daily_bin1485.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/905573/ft1_filtered_4FGL_J1246.7-2548_daily_bin1485.fits.....................!
real 147.75
user 146.21
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    19.852       1.0000         .10000E-03   10000.    
     3 'norm      '    1.3230       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9467       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18134       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.9117       1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.125       1.0000         .10000E-03   10000.    
    11 'norm      '    4.0123       1.0000         .10000E-03   10000.    
    12 'Prefactor '    138.80       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    11.807       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    14.316       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10404E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.109       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5661       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89540       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=   8808.522     FROM MIGRAD    STATUS=CONVERGED    493 CALLS     2374 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.399        .77286E-06** at limit **
   2  Prefactor     19.863        15.266        .90773E-05   -.72270E-03
   3  norm          1.3191        3.9100       -.56805E-05   -.12866E-02
   4  Prefactor     1.9507        3.9907       -.93873E-06   -.92287E-03
   5  Prefactor     .10000E-03    12.833       -.78971E-06** at limit **
   6  Prefactor     .10011E-03    9.4343       -.46604E-06** at limit **
   7  Prefactor     .10000E-03    5.7172        .52900E-07** at limit **
   8  Prefactor     .10000E-03    9.9453        .26317E-07** at limit **
   9  Prefactor     8.9059        22.265        .10783E-04   -.25457E-03
  10  Prefactor     21.125        13.756        .45641E-05   -.63115E-03
  11  norm          4.0124        1.3431        .26371E-07   -.29759E-03
  12  Prefactor     138.79        76.645       -.58243E-05    .16007E-03
  13  norm          .10000E-03    5.1719        .62256E-07** at limit **
  14  norm          .10000E-03    1.7382        .88754E-07** at limit **
  15  Prefactor     .10000E-03    1.3396        .31110E-07** at limit **
  16  norm          11.807        5.9743       -.78901E-06    .26593E-03
  17  norm          .10000E-03    .80911       -.61848E-08** at limit **
  18  norm          14.316        7.0755        .14911E-06   -.43892E-04
  19  Prefactor     .10000E-03    63.014        .23130E-05** at limit **
  20  Prefactor     31.101        17.164        .10358E-05   -.13204E-03
  21  Normalizat    1.5660        .24578       -.22002E-05    .12088E-03
  22  Prefactor     .89549        .10731        .14238E-06   -.40667E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 19.8634
  norm       = 1.31912
  Prefactor  = 1.9507
  Prefactor  = 0.0001
  Prefactor  = 0.00010011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.90595
  Prefactor  = 21.1246
  norm       = 4.01238
  Prefactor  = 138.789
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.807
  norm       = 0.0001
  norm       = 14.316
  Prefactor  = 0.0001
  Prefactor  = 31.1011
  Normalizat = 1.566
  Prefactor  = 0.895493
 **********
 **   18 **HESSE 
 **********

 FCN=   8808.522     FROM HESSE     STATUS=OK           346 CALLS     2720 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.863        15.565        .89893E-04   -1.4816    
   3  norm          1.3191        4.0591        .28815E-03   -1.5478    
   4  Prefactor     1.9507        3.9918        .25464E-03   -1.5429    
   5  Prefactor     .10000E-03    12.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10011E-03    13.247        .10616       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.7213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.9472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.9059        22.041        .13426E-03   -1.5111    
  10  Prefactor     21.125        13.631        .87145E-04   -1.4788    
  11  norm          4.0124        1.3427        .59945E-04   -1.5307    
  12  Prefactor     138.79        76.504        .17095E-03   -1.3346    
  13  norm          .10000E-03    5.1987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.7431        .12079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.3419        .10606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          11.807        5.9758        .11658E-03   -1.5021    
  17  norm          .10000E-03    .81231        .82435E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          14.316        7.0745        .10586E-03   -1.4951    
  19  Prefactor     .10000E-03    63.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     31.101        17.155        .71837E-04   -1.4592    
  21  Normalizat    1.5660        .28979        .35292E-03   -.75940    
  22  Prefactor     .89549        .12686        .20092E-03   -.96299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55459e-09
Minuit parameter uncertainties:
  1  3.71264e-05
  2  15.5683
  3  4.0599
  4  3.99233
  5  2.00815e-05
  6  0.00241257
  7  6.97878e-06
  8  8.40093e-06
  9  22.0613
  10  13.6326
  11  1.3427
  12  76.5588
  13  1.0903e-05
  14  9.88346e-06
  15  5.11499e-06
  16  5.97605
  17  1.8144e-06
  18  7.07488
  19  0.00023449
  20  17.1582
  21  0.290103
  22  0.126902
Done.

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

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  4.012e+00  1.343e+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:  8.955e-01  1.269e-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.566e+00  2.901e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.06
Ra Dec: 191.689 -25.802
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 1.76e-07 +/- 5.87e-08
Energy Flux (Fixed Index): 6.74e-05 +/- 2.25e-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) = 8808.30847768
delta logL = 0.213973649548

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8808.30582556
delta logL = 0.216625770143

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7748       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4595       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5225       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90601       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=   8808.306     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      239 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7728        14.814        .51946E-02    .24034E-03
   2  alpha         2.4596        3.7248        .25908        .65284E-04
   3  Normalizat    1.5222        .17122        .80578E-01    .99275E-05
   4  Prefactor     .90617        .55003E-01    .45082E-01    .14293E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.77285
  alpha      = 2.45956
  Normalizat = 1.52216
  Prefactor  = 0.906173
 **********
 **   18 **HESSE 
 **********

 FCN=   8808.306     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7728        1.3609        .53988E-04   -1.5319    
   2  alpha         2.4596        .38171        .10271E-01   -.16176E-01
   3  Normalizat    1.5222        .29101        .35665E-03   -.77158    
   4  Prefactor     .90617        .12777        .19975E-03   -.95926    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69948e-09
Minuit parameter uncertainties:
  1  1.36092
  2  0.383206
  3  0.29133
  4  0.127809
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/905573': 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) = 8808.30582335
delta logL = 0.216627975775

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  3.773e+00  1.361e+00  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  2.460e+00  3.832e-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:  9.062e-01  1.278e-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.522e+00  2.913e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.48
Ra Dec: 191.689 -25.802
Photon Index (Free Index): 2.46 +/- 0.38
Photon Flux (Free Index): 2.15e-07 +/- 8.62e-08
Energy Flux (Free Index): 6.44e-05 +/- 2.07e-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/905573/cmap_HighResolution_624240001_624499201_4FGL_J1246.7-2548_daily_bin1485.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.76e-07', energy_flux2='6.44e-05', photon_flux_error='5.87e-08', dlogl='2.17e-01', energy_flux='6.74e-05', photon_flux2='2.15e-07', job_status='DONE', time_completed='2021-09-06 05:10:01.380765', photon_index_error2='0.38', photon_index2='2.46', ts='21.06', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='2.07e-05', EG='1.57', time_epoch_completed='1630930201.38', return_code='0', job_id='905573', GAL2='0.91', EG2='1.52', return_code2='0', energy_flux_error='2.25e-05', photon_flux_error2='8.62e-08', ts2='21.48', photon_index='2.21' WHERE bin_id='1485' AND source_name='4FGL J1246.7-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:10:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 905573: <4FGL_J1246.7-2548_daily_bin1485> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1246.7-2548_daily_bin1485 191.689 -25.8018 624240001 624499201 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 :                                   800.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             370.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            833 sec.

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

