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


Performing analysis on: 4FGL_J1246.7-2548_daily_bin1317
RA = 191.689, Dec = -25.8018
tmin = 580694401, tmax = 580953601
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='905367', job_status='RUN', time_executed='2021-09-06 04:57:38.408274', time_epoch_executed='1630929458.41' WHERE source_name='4FGL J1246.7-2548' and cadence='daily' and bin_id='1317'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/905367

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/905367/ft1_4FGL_J1246.7-2548_daily_bin1317.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/905367/ft2_4FGL_J1246.7-2548_daily_bin1317.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/905367/ft1_4FGL_J1246.7-2548_daily_bin1317.fits outfile=/scratch/kocevski/905367/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1317.fits ra=191.689 dec=-25.8018 rad=12.0 tmin=580694401.0 tmax=580953601.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 2.58
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/905367/ft1_filtered_4FGL_J1246.7-2548_daily_bin1317.fits" evtable="EVENTS" scfile=/scratch/kocevski/905367/ft2_4FGL_J1246.7-2548_daily_bin1317.fits sctable="SC_DATA" outfile=/scratch/kocevski/905367/ltcube_580694401_580953601_4FGL_J1246.7-2548_daily_bin1317.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/905367/ft2_4FGL_J1246.7-2548_daily_bin1317.fits
.....................!
real 12.97
user 12.07
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/905367/ft1_filtered_4FGL_J1246.7-2548_daily_bin1317.fits evtable="EVENTS" scfile=/scratch/kocevski/905367/ft2_4FGL_J1246.7-2548_daily_bin1317.fits sctable="SC_DATA" expcube=/scratch/kocevski/905367/ltcube_580694401_580953601_4FGL_J1246.7-2548_daily_bin1317.fits outfile=/scratch/kocevski/905367/expmap_580694401_580953601_4FGL_J1246.7-2548_daily_bin1317.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/905367/ltcube_580694401_580953601_4FGL_J1246.7-2548_daily_bin1317.fits
.....................!
real 193.90
user 186.52
sys 5.05

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/905367/ft1_filtered_4FGL_J1246.7-2548_daily_bin1317.fits scfile=/scratch/kocevski/905367/ft2_4FGL_J1246.7-2548_daily_bin1317.fits outfile=/scratch/kocevski/905367/cmap_580694401_580953601_4FGL_J1246.7-2548_daily_bin1317.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/905367/ft1_filtered_4FGL_J1246.7-2548_daily_bin1317.fits scfile=/scratch/kocevski/905367/ft2_4FGL_J1246.7-2548_daily_bin1317.fits outfile=/scratch/kocevski/905367/cmap_HighResolution_580694401_580953601_4FGL_J1246.7-2548_daily_bin1317.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.978       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.3967       1.0000         .10000E-03   10000.    
     3 'norm      '    .10153E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1759       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10246E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .44711E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.9383       1.0000         .10000E-03   10000.    
     9 'Prefactor '    61.602       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.0991       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .15659E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.446       1.0000         .10000E-03   10000.    
    16 'norm      '    12.435       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .25558E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.573       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2349       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94719       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=   4791.851     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2444 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.937        47.243       -.41820E-06   -.43168E-04
   2  Prefactor     4.4104        14.954        .23064E-05   -.62232E-04
   3  norm          .10000E-03    3.3814        .83071E-07** at limit **
   4  Prefactor     6.1789        7.8864        .15597E-05   -.30933E-04
   5  Prefactor     .10000E-03    26.438       -.11922E-06** at limit **
   6  Prefactor     .10001E-03    41.848       -.71949E-06** at limit **
   7  Prefactor     .10000E-03    59.469       -.56577E-06** at limit **
   8  Prefactor     4.7296        115.08        .34699E-06   -.49501E-05
   9  Prefactor     61.602        42.800        .32434E-06   -.11478E-03
  10  Prefactor     .10000E-03    3.1127        .20939E-08** at limit **
  11  norm          4.0991        1.7874        .36505E-08   -.51388E-03
  12  Prefactor     .10000E-03    70.172       -.43326E-06** at limit **
  13  norm          .10000E-03    5.3094       -.95467E-10** at limit **
  14  norm          .10013E-03    20.056       -.30479E-05** at limit **
  15  Prefactor     12.452        9.9241       -.20497E-05   -.79529E-03
  16  norm          12.429        12.347        .29283E-06   -.10784E-03
  17  norm          .10000E-03    1.5907        .10767E-07** at limit **
  18  norm          .10001E-03    11.438        .12470E-05** at limit **
  19  Prefactor     .10001E-03    51.511        .10520E-05** at limit **
  20  Prefactor     11.567        25.112       -.19066E-07    .31145E-04
  21  Normalizat    1.2349        .34517       -.20505E-05   -.15824E-03
  22  Prefactor     .94721        .14849        .83808E-07   -.38386E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.9374
  Prefactor  = 4.41038
  norm       = 0.0001
  Prefactor  = 6.1789
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 4.72959
  Prefactor  = 61.6018
  Prefactor  = 0.0001
  norm       = 4.09911
  Prefactor  = 0.000100003
  norm       = 0.0001
  norm       = 0.000100127
  Prefactor  = 12.4516
  norm       = 12.4288
  norm       = 0.0001
  norm       = 0.000100008
  Prefactor  = 0.000100013
  Prefactor  = 11.5674
  Normalizat = 1.23488
  Prefactor  = 0.947208
 **********
 **   18 **HESSE 
 **********

 FCN=   4791.851     FROM HESSE     STATUS=OK           342 CALLS     2786 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.937        47.336        .97202E-04   -1.4885    
   2  Prefactor     4.4104        15.451        .96036E-03   -1.5288    
   3  norm          .10000E-03    3.4050        .12402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.1789        8.2565        .80771E-03   -1.5211    
   5  Prefactor     .10000E-03    26.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    41.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    59.891        .21212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.7296        114.36        .18099E-03   -1.5273    
   9  Prefactor     61.602        42.800        .51123E-04   -1.4137    
  10  Prefactor     .10000E-03    3.1132        .11928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.0991        1.7859        .58333E-04   -1.5303    
  12  Prefactor     .10000E-03    70.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.3259        .15576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10013E-03    38.335        .38795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.452        9.8458        .11354E-03   -1.5002    
  16  norm          12.429        12.165        .11359E-03   -1.5003    
  17  norm          .10000E-03    1.5967        .85249E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10001E-03    83.510        .43219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    50.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.567        25.106        .11776E-03   -1.5028    
  21  Normalizat    1.2349        .41575        .37899E-03   -.85532    
  22  Prefactor     .94721        .18095        .19002E-03   -.94510    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66899e-09
Minuit parameter uncertainties:
  1  47.4408
  2  15.4649
  3  7.75425e-07
  4  8.25798
  5  0.000141973
  6  0.00113815
  7  1.38361e-05
  8  46.6125
  9  42.8214
  10  1.12898e-06
  11  1.78592
  12  0.00092688
  13  7.56818e-06
  14  0.00441814
  15  9.84703
  16  12.1675
  17  4.40621e-06
  18  0.00166264
  19  0.00164105
  20  25.1288
  21  0.416874
  22  0.181065
Done.

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

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  4.099e+00  1.786e+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:  9.472e-01  1.811e-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.235e+00  4.169e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.11
Ra Dec: 191.689 -25.802
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 1.79e-07 +/- 7.81e-08
Energy Flux (Fixed Index): 6.88e-05 +/- 3.00e-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) = 4791.82661617
delta logL = 0.024142446081

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4791.82545069
delta logL = 0.0253079296026

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0352       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3063       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2237       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94952       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=   4791.825     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      201 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0349        37.037        .50185E-02    .14407E-02
   2  alpha         2.3065        3.3903        .23938        .28149E-04
   3  Normalizat    1.2232        .47180        .85912E-01    .50247E-03
   4  Prefactor     .94971        .19147        .45633E-01    .83677E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.03487
  alpha      = 2.30647
  Normalizat = 1.22322
  Prefactor  = 0.949708
 **********
 **   18 **HESSE 
 **********

 FCN=   4791.825     FROM HESSE     STATUS=OK            29 CALLS      230 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0349        1.7730        .56779E-04   -1.5306    
   2  alpha         2.3065        .41021        .99494E-02   -.77488E-01
   3  Normalizat    1.2232        .39962        .38042E-03   -.85888    
   4  Prefactor     .94971        .17828        .18976E-03   -.94425    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.41138e-10
Minuit parameter uncertainties:
  1  1.77302
  2  0.412089
  3  0.400629
  4  0.178388
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/905367': 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) = 4791.82544994
delta logL = 0.0253086786752

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  4.035e+00  1.773e+00  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  2.306e+00  4.121e-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.497e-01  1.784e-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.223e+00  4.006e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.15
Ra Dec: 191.689 -25.802
Photon Index (Free Index): 2.31 +/- 0.41
Photon Flux (Free Index): 1.94e-07 +/- 1.04e-07
Energy Flux (Free Index): 6.73e-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/905367/cmap_HighResolution_580694401_580953601_4FGL_J1246.7-2548_daily_bin1317.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.79e-07', energy_flux2='6.73e-05', photon_flux_error='7.81e-08', dlogl='2.53e-02', energy_flux='6.88e-05', photon_flux2='1.94e-07', job_status='DONE', time_completed='2021-09-06 05:08:49.595432', photon_index_error2='0.41', photon_index2='2.31', ts='15.11', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='2.95e-05', EG='1.23', time_epoch_completed='1630930129.6', return_code='0', job_id='905367', GAL2='0.95', EG2='1.22', return_code2='0', energy_flux_error='3.00e-05', photon_flux_error2='1.04e-07', ts2='15.15', photon_index='2.21' WHERE bin_id='1317' AND source_name='4FGL J1246.7-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:08:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 905367: <4FGL_J1246.7-2548_daily_bin1317> in cluster <slac> Done

Job <4FGL_J1246.7-2548_daily_bin1317> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 04:55:52 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 04:55:54 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:55:54 2021
Terminated at Mon Sep  6 05:08:50 2021
Results reported at Mon Sep  6 05:08:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1246.7-2548_daily_bin1317 191.689 -25.8018 580694401 580953601 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 :                                   571.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            778 sec.

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

