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


Performing analysis on: 4FGL_J1246.7-2548_daily_bin1314
RA = 191.689, Dec = -25.8018
tmin = 579916801, tmax = 580176001
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='905362', job_status='RUN', time_executed='2021-09-06 04:58:07.859862', time_epoch_executed='1630929487.86' WHERE source_name='4FGL J1246.7-2548' and cadence='daily' and bin_id='1314'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/905362

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/905362/ft1_4FGL_J1246.7-2548_daily_bin1314.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/905362/ft2_4FGL_J1246.7-2548_daily_bin1314.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/905362/ft1_4FGL_J1246.7-2548_daily_bin1314.fits outfile=/scratch/kocevski/905362/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1314.fits ra=191.689 dec=-25.8018 rad=12.0 tmin=579916801.0 tmax=580176001.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.44
user 3.19
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/905362/ft2_4FGL_J1246.7-2548_daily_bin1314.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/905362/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1314.fits evtable="EVENTS" outfile="/scratch/kocevski/905362/ft1_filtered_4FGL_J1246.7-2548_daily_bin1314.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/905362/ft1_filtered_4FGL_J1246.7-2548_daily_bin1314.fits" evtable="EVENTS" scfile=/scratch/kocevski/905362/ft2_4FGL_J1246.7-2548_daily_bin1314.fits sctable="SC_DATA" outfile=/scratch/kocevski/905362/ltcube_579916801_580176001_4FGL_J1246.7-2548_daily_bin1314.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/905362/ft2_4FGL_J1246.7-2548_daily_bin1314.fits
.....................!
real 12.04
user 11.64
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/905362/ft1_filtered_4FGL_J1246.7-2548_daily_bin1314.fits evtable="EVENTS" scfile=/scratch/kocevski/905362/ft2_4FGL_J1246.7-2548_daily_bin1314.fits sctable="SC_DATA" expcube=/scratch/kocevski/905362/ltcube_579916801_580176001_4FGL_J1246.7-2548_daily_bin1314.fits outfile=/scratch/kocevski/905362/expmap_579916801_580176001_4FGL_J1246.7-2548_daily_bin1314.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/905362/ltcube_579916801_580176001_4FGL_J1246.7-2548_daily_bin1314.fits
.....................!
real 190.63
user 185.57
sys 4.63

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/905362/ft1_filtered_4FGL_J1246.7-2548_daily_bin1314.fits scfile=/scratch/kocevski/905362/ft2_4FGL_J1246.7-2548_daily_bin1314.fits outfile=/scratch/kocevski/905362/cmap_579916801_580176001_4FGL_J1246.7-2548_daily_bin1314.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.38
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/905362/ft1_filtered_4FGL_J1246.7-2548_daily_bin1314.fits evtable="EVENTS" scfile=/scratch/kocevski/905362/ft2_4FGL_J1246.7-2548_daily_bin1314.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/905362/Model_4FGL_J1246.7-2548_daily_bin1314.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/905362/ft1_filtered_4FGL_J1246.7-2548_daily_bin1314.fits....................!
real 104.92
user 103.06
sys 1.42

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.254       1.0000         .10000E-03   10000.    
     3 'norm      '    .10272E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    86.492       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11056E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10339E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.252       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.9420       1.0000         .10000E-03   10000.    
    12 'Prefactor '    34.754       1.0000         .10000E-03   10000.    
    13 'norm      '    7.0040       1.0000         .10000E-03   10000.    
    14 'norm      '    .10474E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.9796       1.0000         .10000E-03   10000.    
    17 'norm      '    .34652       1.0000         .10000E-03   10000.    
    18 'norm      '    21.265       1.0000         .10000E-03   10000.    
    19 'Prefactor '    52.196       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.8058       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .91728       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97829       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=   6203.493     FROM MIGRAD    STATUS=CONVERGED    463 CALLS     2335 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.249       -.10712E-05** at limit **
   2  Prefactor     14.254        15.232        .19232E-06    .88138E-05
   3  norm          .10000E-03    2.7580       -.84925E-08** at limit **
   4  Prefactor     .10000E-03    4.7171        .48068E-07** at limit **
   5  Prefactor     86.486        61.257       -.53190E-06   -.82978E-04
   6  Prefactor     .10000E-03    12.448       -.96949E-06** at limit **
   7  Prefactor     .10000E-03    19.655        .19584E-05** at limit **
   8  Prefactor     .10000E-03    32.415       -.11236E-05** at limit **
   9  Prefactor     13.251        26.171       -.10144E-06   -.23034E-04
  10  Prefactor     .10000E-03    10.086        .12329E-05** at limit **
  11  norm          7.9421        1.8605        .83791E-08   -.32822E-04
  12  Prefactor     34.751        82.968       -.76365E-06   -.95614E-05
  13  norm          7.0049        11.566        .12998E-06   -.24198E-04
  14  norm          .10000E-03    8.2599       -.47618E-06** at limit **
  15  Prefactor     .10000E-03    4.2529       -.56667E-07** at limit **
  16  norm          8.9796        7.4863        .47038E-07   -.20183E-04
  17  norm          .34671        3.5379        .21882E-05   -.29923E-03
  18  norm          21.264        10.113        .35520E-06   -.98317E-04
  19  Prefactor     52.197        44.946        .13754E-06    .11189E-04
  20  Prefactor     9.8057        13.667        .29538E-07   -.82505E-05
  21  Normalizat    .91733        .28526       -.33051E-06   -.42973E-04
  22  Prefactor     .97829        .12487       -.19977E-06   -.85953E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 14.2543
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 86.4856
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 13.2509
  Prefactor  = 0.0001
  norm       = 7.94211
  Prefactor  = 34.7514
  norm       = 7.00488
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.97956
  norm       = 0.346708
  norm       = 21.2644
  Prefactor  = 52.1969
  Prefactor  = 9.80572
  Normalizat = 0.91733
  Prefactor  = 0.978286
 **********
 **   18 **HESSE 
 **********

 FCN=   6203.493     FROM HESSE     STATUS=OK           342 CALLS     2677 TOTAL
                     EDM=   .93E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.254        15.224        .10609E-03   -1.4953    
   3  norm          .10000E-03    2.7660        .12755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.9189        .33402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     86.486        61.832        .43198E-04   -1.3845    
   6  Prefactor     .10000E-03    12.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    32.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.251        26.205        .11003E-03   -1.4980    
  10  Prefactor     .10000E-03    10.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.9421        1.8604        .49446E-04   -1.5144    
  12  Prefactor     34.751        82.788        .67977E-04   -1.4528    
  13  norm          7.0049        11.564        .15159E-03   -1.5179    
  14  norm          .10000E-03    8.4567        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.2829        .15847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.9796        7.4845        .13375E-03   -1.5109    
  17  norm          .34671        3.7814        .28801E-02   -1.5590    
  18  norm          21.264        10.139        .43429E-03   -1.4785    
  19  Prefactor     52.197        44.957        .55514E-04   -1.4262    
  20  Prefactor     9.8057        13.663        .12797E-03   -1.5082    
  21  Normalizat    .91733        .33249        .41781E-03   -.95854    
  22  Prefactor     .97829        .14731        .18034E-03   -.93457    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.30996e-08
Minuit parameter uncertainties:
  1  0.000167023
  2  15.228
  3  5.98513e-07
  4  6.221e-06
  5  61.8785
  6  0.00012977
  7  0.000386285
  8  0.000217961
  9  26.2273
  10  0.000143513
  11  1.86046
  12  83.0638
  13  11.5674
  14  3.67517e-05
  15  5.47154e-07
  16  7.48524
  17  2.28988
  18  10.1401
  19  44.9866
  20  13.6672
  21  0.333237
  22  0.147366
Done.

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

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  7.942e+00  1.860e+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.783e-01  1.474e-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:  9.173e-01  3.332e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 71.50
Ra Dec: 191.689 -25.802
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 3.47e-07 +/- 8.14e-08
Energy Flux (Fixed Index): 1.33e-04 +/- 3.12e-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) = 6198.8658855
delta logL = 4.62677628636

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6198.76190995
delta logL = 4.73075184433

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.9144       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4690       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0869       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94069       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=   6198.762     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      216 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.9144        1.9133        .38143E-02    .71250E-02
   2  alpha         1.4690        .20293        .14545       -.20855E-03
   3  Normalizat    1.0869        .27529        .87787E-01    .11129E-03
   4  Prefactor     .94068        .12225        .45522E-01    .80580E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.91439
  alpha      = 1.46903
  Normalizat = 1.08691
  Prefactor  = 0.940679
 **********
 **   18 **HESSE 
 **********

 FCN=   6198.762     FROM HESSE     STATUS=OK            27 CALLS      243 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.9144        2.2112        .51368E-04   -1.5182    
   2  alpha         1.4690        .23862        .63188E-03   -.42507    
   3  Normalizat    1.0869        .32779        .38877E-03   -.90173    
   4  Prefactor     .94068        .14592        .18379E-03   -.94734    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65309e-09
Minuit parameter uncertainties:
  1  2.21126
  2  0.239057
  3  0.328408
  4  0.145979
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/905362': 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) = 6198.76190994
delta logL = 4.73075184842

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  6.914e+00  2.211e+00  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  1.469e+00  2.391e-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.407e-01  1.460e-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.087e+00  3.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 81.21
Ra Dec: 191.689 -25.802
Photon Index (Free Index): 1.47 +/- 0.24
Photon Flux (Free Index): 1.80e-07 +/- 6.54e-08
Energy Flux (Free Index): 2.51e-04 +/- 9.68e-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/905362/cmap_HighResolution_579916801_580176001_4FGL_J1246.7-2548_daily_bin1314.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.47e-07', energy_flux2='2.51e-04', photon_flux_error='8.14e-08', dlogl='4.73e+00', energy_flux='1.33e-04', photon_flux2='1.80e-07', job_status='DONE', time_completed='2021-09-06 05:11:02.046935', photon_index_error2='0.24', photon_index2='1.47', ts='71.50', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='9.68e-05', EG='0.92', time_epoch_completed='1630930262.05', return_code='0', job_id='905362', GAL2='0.94', EG2='1.09', return_code2='0', energy_flux_error='3.12e-05', photon_flux_error2='6.54e-08', ts2='81.21', photon_index='2.21' WHERE bin_id='1314' AND source_name='4FGL J1246.7-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:11:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 905362: <4FGL_J1246.7-2548_daily_bin1314> in cluster <slac> Done

Job <4FGL_J1246.7-2548_daily_bin1314> 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) <bullet0079>, 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:11:03 2021
Results reported at Mon Sep  6 05:11:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1246.7-2548_daily_bin1314 191.689 -25.8018 579916801 580176001 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 :                                   633.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            912 sec.

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

