/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 166 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_bin1313
RA = 191.689, Dec = -25.8018
tmin = 579657601, tmax = 579916801
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='905360', job_status='RUN', time_executed='2021-09-06 04:59:11.366363', time_epoch_executed='1630929551.37' WHERE source_name='4FGL J1246.7-2548' and cadence='daily' and bin_id='1313'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/905360

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/905360/ft1_4FGL_J1246.7-2548_daily_bin1313.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/905360/ft2_4FGL_J1246.7-2548_daily_bin1313.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/905360/ft1_4FGL_J1246.7-2548_daily_bin1313.fits outfile=/scratch/kocevski/905360/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1313.fits ra=191.689 dec=-25.8018 rad=12.0 tmin=579657601.0 tmax=579916801.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.39
user 3.16
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/905360/ft2_4FGL_J1246.7-2548_daily_bin1313.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/905360/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1313.fits evtable="EVENTS" outfile="/scratch/kocevski/905360/ft1_filtered_4FGL_J1246.7-2548_daily_bin1313.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/905360/ft1_filtered_4FGL_J1246.7-2548_daily_bin1313.fits" evtable="EVENTS" scfile=/scratch/kocevski/905360/ft2_4FGL_J1246.7-2548_daily_bin1313.fits sctable="SC_DATA" outfile=/scratch/kocevski/905360/ltcube_579657601_579916801_4FGL_J1246.7-2548_daily_bin1313.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/905360/ft2_4FGL_J1246.7-2548_daily_bin1313.fits
.....................!
real 11.92
user 11.56
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/905360/ft1_filtered_4FGL_J1246.7-2548_daily_bin1313.fits evtable="EVENTS" scfile=/scratch/kocevski/905360/ft2_4FGL_J1246.7-2548_daily_bin1313.fits sctable="SC_DATA" expcube=/scratch/kocevski/905360/ltcube_579657601_579916801_4FGL_J1246.7-2548_daily_bin1313.fits outfile=/scratch/kocevski/905360/expmap_579657601_579916801_4FGL_J1246.7-2548_daily_bin1313.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/905360/ltcube_579657601_579916801_4FGL_J1246.7-2548_daily_bin1313.fits
.....................!
real 190.87
user 185.01
sys 5.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/905360/ft1_filtered_4FGL_J1246.7-2548_daily_bin1313.fits scfile=/scratch/kocevski/905360/ft2_4FGL_J1246.7-2548_daily_bin1313.fits outfile=/scratch/kocevski/905360/cmap_579657601_579916801_4FGL_J1246.7-2548_daily_bin1313.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/905360/ft1_filtered_4FGL_J1246.7-2548_daily_bin1313.fits scfile=/scratch/kocevski/905360/ft2_4FGL_J1246.7-2548_daily_bin1313.fits outfile=/scratch/kocevski/905360/cmap_HighResolution_579657601_579916801_4FGL_J1246.7-2548_daily_bin1313.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/905360/ft1_filtered_4FGL_J1246.7-2548_daily_bin1313.fits evtable="EVENTS" scfile=/scratch/kocevski/905360/ft2_4FGL_J1246.7-2548_daily_bin1313.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/905360/Model_4FGL_J1246.7-2548_daily_bin1313.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/905360/ft1_filtered_4FGL_J1246.7-2548_daily_bin1313.fits.....................!
real 103.72
user 102.26
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10681E-03   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 '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.4287       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.7404       1.0000         .10000E-03   10000.    
    14 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.210       1.0000         .10000E-03   10000.    
    16 'norm      '    7.4971       1.0000         .10000E-03   10000.    
    17 'norm      '    2.6518       1.0000         .10000E-03   10000.    
    18 'norm      '    4.0508       1.0000         .10000E-03   10000.    
    19 'Prefactor '    41.290       1.0000         .10000E-03   10000.    
    20 'Prefactor '    44.721       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2294       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92654       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=   6202.395     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     1986 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    69.476       -.78965E-05** at limit **
   2  Prefactor     .10000E-03    5.6148       -.88180E-08** at limit **
   3  norm          .10000E-03    1.6516       -.37562E-07** at limit **
   4  Prefactor     .10000E-03    3.0335       -.49048E-07** at limit **
   5  Prefactor     .10000E-03    36.341        .39952E-04** at limit **
   6  Prefactor     .10000E-03    66.625        .76338E-05** at limit **
   7  Prefactor     .10000E-03    11.756       -.42870E-06** at limit **
   8  Prefactor     .10000E-03    29.642       -.30491E-04** at limit **
   9  Prefactor     .10000E-03    17.546        .51737E-05** at limit **
  10  Prefactor     .10000E-03    17.543       -.21943E-05** at limit **
  11  norm          3.4287        1.4855       -.84148E-07   -.34722E-04
  12  Prefactor     .10000E-03    70.829       -.16453E-04** at limit **
  13  norm          4.7404        7.2575        .80153E-08   -.16105E-03
  14  norm          .10000E-03    4.0877        .50274E-07** at limit **
  15  Prefactor     13.210        7.4948       -.49834E-06   -.93199E-03
  16  norm          7.4969        6.9751       -.43038E-06   -.90391E-04
  17  norm          2.6518        2.3331        .50455E-07    .13587E-03
  18  norm          4.0502        6.6076       -.17301E-05   -.27775E-03
  19  Prefactor     41.245        45.420       -.47001E-04    .36865E-05
  20  Prefactor     44.717        25.470        .28196E-05    .17414E-04
  21  Normalizat    1.2296        .27576        .18711E-05    .25715E-04
  22  Prefactor     .92648        .12202        .11216E-05    .84990E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.42869
  Prefactor  = 0.0001
  norm       = 4.7404
  norm       = 0.0001
  Prefactor  = 13.2099
  norm       = 7.49686
  norm       = 2.65184
  norm       = 4.05021
  Prefactor  = 41.2452
  Prefactor  = 44.7165
  Normalizat = 1.22959
  Prefactor  = 0.926479
 **********
 **   18 **HESSE 
 **********

 FCN=   6202.395     FROM HESSE     STATUS=OK           338 CALLS     2324 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    69.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.6179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.6528        .98842E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.0506        .13393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    36.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    67.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    29.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.4287        1.4839        .60219E-04   -1.5338    
  12  Prefactor     .10000E-03    70.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.7404        7.2508        .18481E-03   -1.5272    
  14  norm          .10000E-03    4.1140        .15521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.210        7.4885        .55103E-03   -1.4981    
  16  norm          7.4969        6.9701        .14647E-03   -1.5160    
  17  norm          2.6518        2.3401        .10967E-03   -1.5382    
  18  norm          4.0502        6.5992        .20034E-03   -1.5305    
  19  Prefactor     41.245        45.404        .62384E-04   -1.4423    
  20  Prefactor     44.717        25.479        .59952E-04   -1.4370    
  21  Normalizat    1.2296        .32715        .37327E-03   -.85693    
  22  Prefactor     .92648        .14552        .18688E-03   -.95222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.2483e-10
Minuit parameter uncertainties:
  1  7.47433e-05
  2  6.4745e-06
  3  2.35387e-06
  4  1.14825e-05
  5  5.00965e-05
  6  0.000318421
  7  1.57982e-05
  8  3.62166e-05
  9  3.95161e-05
  10  4.37731e-05
  11  1.48393
  12  2.39768e-05
  13  7.25219
  14  7.45363e-06
  15  7.48905
  16  6.97085
  17  2.34017
  18  6.60041
  19  45.4424
  20  25.4852
  21  0.327694
  22  0.145585
Done.

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

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  3.429e+00  1.484e+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.265e-01  1.456e-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.230e+00  3.277e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.43
Ra Dec: 191.689 -25.802
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 1.50e-07 +/- 6.49e-08
Energy Flux (Fixed Index): 5.76e-05 +/- 2.49e-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) = 6202.33155327
delta logL = 0.0638084251887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6202.32959664
delta logL = 0.0657650519997

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4813       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0655       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2477       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92219       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=   6202.330     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      202 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4813        2.6192        .54179E-02   -.43879E-03
   2  alpha         2.0655        .63630        .28256       -.19903E-04
   3  Normalizat    1.2477        .27986        .83806E-01    .25443E-05
   4  Prefactor     .92219        .12321        .45287E-01    .68614E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.48133
  alpha      = 2.06552
  Normalizat = 1.24767
  Prefactor  = 0.922187
 **********
 **   18 **HESSE 
 **********

 FCN=   6202.330     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4813        1.5338        .62124E-04   -1.5335    
   2  alpha         2.0655        .40560        .11464E-01   -.17468    
   3  Normalizat    1.2477        .32800        .37105E-03   -.85142    
   4  Prefactor     .92219        .14498        .18730E-03   -.95370    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32794e-11
Minuit parameter uncertainties:
  1  1.53386
  2  0.407456
  3  0.328549
  4  0.145044
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/905360': 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) = 6202.32959664
delta logL = 0.0657650521071

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  3.481e+00  1.534e+00  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  2.066e+00  4.075e-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.222e-01  1.450e-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.248e+00  3.285e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.56
Ra Dec: 191.689 -25.802
Photon Index (Free Index): 2.07 +/- 0.41
Photon Flux (Free Index): 1.32e-07 +/- 7.58e-08
Energy Flux (Free Index): 6.12e-05 +/- 2.94e-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/905360/cmap_HighResolution_579657601_579916801_4FGL_J1246.7-2548_daily_bin1313.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.50e-07', energy_flux2='6.12e-05', photon_flux_error='6.49e-08', dlogl='6.58e-02', energy_flux='5.76e-05', photon_flux2='1.32e-07', job_status='DONE', time_completed='2021-09-06 05:12:11.838624', photon_index_error2='0.41', photon_index2='2.07', ts='13.43', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='2.94e-05', EG='1.23', time_epoch_completed='1630930331.84', return_code='0', job_id='905360', GAL2='0.92', EG2='1.25', return_code2='0', energy_flux_error='2.49e-05', photon_flux_error2='7.58e-08', ts2='13.56', photon_index='2.21' WHERE bin_id='1313' 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@bullet0078>
Subject: Job 905360: <4FGL_J1246.7-2548_daily_bin1313> in cluster <slac> Done

Job <4FGL_J1246.7-2548_daily_bin1313> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 04:55:51 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 04:55:52 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:52 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_bin1313 191.689 -25.8018 579657601 579916801 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 :                                   603.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            981 sec.

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

