/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 197 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 = 7395
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1246.7-2548_daily_bin432
RA = 191.689, Dec = -25.8018
tmin = 351302401, tmax = 351561601
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='899399', job_status='RUN', time_executed='2021-09-06 04:39:50.208064', time_epoch_executed='1630928390.21' WHERE source_name='4FGL J1246.7-2548' and cadence='daily' and bin_id='432'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/899399

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/899399/ft1_4FGL_J1246.7-2548_daily_bin432.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/899399/ft2_4FGL_J1246.7-2548_daily_bin432.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/899399/ft1_4FGL_J1246.7-2548_daily_bin432.fits outfile=/scratch/kocevski/899399/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin432.fits ra=191.689 dec=-25.8018 rad=12.0 tmin=351302401.0 tmax=351561601.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.40
user 3.22
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/899399/ft2_4FGL_J1246.7-2548_daily_bin432.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/899399/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin432.fits evtable="EVENTS" outfile="/scratch/kocevski/899399/ft1_filtered_4FGL_J1246.7-2548_daily_bin432.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.56
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/899399/ft1_filtered_4FGL_J1246.7-2548_daily_bin432.fits" evtable="EVENTS" scfile=/scratch/kocevski/899399/ft2_4FGL_J1246.7-2548_daily_bin432.fits sctable="SC_DATA" outfile=/scratch/kocevski/899399/ltcube_351302401_351561601_4FGL_J1246.7-2548_daily_bin432.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/899399/ft2_4FGL_J1246.7-2548_daily_bin432.fits
.....................!
real 12.40
user 12.06
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/899399/ft1_filtered_4FGL_J1246.7-2548_daily_bin432.fits evtable="EVENTS" scfile=/scratch/kocevski/899399/ft2_4FGL_J1246.7-2548_daily_bin432.fits sctable="SC_DATA" expcube=/scratch/kocevski/899399/ltcube_351302401_351561601_4FGL_J1246.7-2548_daily_bin432.fits outfile=/scratch/kocevski/899399/expmap_351302401_351561601_4FGL_J1246.7-2548_daily_bin432.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/899399/ltcube_351302401_351561601_4FGL_J1246.7-2548_daily_bin432.fits
.....................!
real 190.42
user 185.92
sys 4.16

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/899399/ft1_filtered_4FGL_J1246.7-2548_daily_bin432.fits scfile=/scratch/kocevski/899399/ft2_4FGL_J1246.7-2548_daily_bin432.fits outfile=/scratch/kocevski/899399/cmap_351302401_351561601_4FGL_J1246.7-2548_daily_bin432.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.61
user 0.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/899399/ft1_filtered_4FGL_J1246.7-2548_daily_bin432.fits evtable="EVENTS" scfile=/scratch/kocevski/899399/ft2_4FGL_J1246.7-2548_daily_bin432.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/899399/Model_4FGL_J1246.7-2548_daily_bin432.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/899399/ft1_filtered_4FGL_J1246.7-2548_daily_bin432.fits.....................!
real 130.90
user 129.14
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/899399/ft1_filtered_4FGL_J1246.7-2548_daily_bin432.fits', '/scratch/kocevski/899399/ft2_4FGL_J1246.7-2548_daily_bin432.fits', expMap='/scratch/kocevski/899399/expmap_351302401_351561601_4FGL_J1246.7-2548_daily_bin432.fits', expCube='/scratch/kocevski/899399/ltcube_351302401_351561601_4FGL_J1246.7-2548_daily_bin432.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/899399/Model_4FGL_J1246.7-2548_daily_bin432.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/899399/ft1_filtered_4FGL_J1246.7-2548_daily_bin432.fits
Spacecraft file(s): /scratch/kocevski/899399/ft2_4FGL_J1246.7-2548_daily_bin432.fits
Exposure map: /scratch/kocevski/899399/expmap_351302401_351561601_4FGL_J1246.7-2548_daily_bin432.fits
Exposure cube: /scratch/kocevski/899399/ltcube_351302401_351561601_4FGL_J1246.7-2548_daily_bin432.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/899399/Model_4FGL_J1246.7-2548_daily_bin432.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 7960.37910895

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    87.717       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.4680       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7770       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.728       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .23284E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.9415       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10595E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    21.687       1.0000         .10000E-03   10000.    
    14 'norm      '    5.4292       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.5432       1.0000         .10000E-03   10000.    
    17 'norm      '    .90457       1.0000         .10000E-03   10000.    
    18 'norm      '    10.362       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.671       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.5750       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1454       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98394       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=   7960.269     FROM MIGRAD    STATUS=CONVERGED    493 CALLS     2060 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     87.727        58.813        .45922E-06    .68292E-04
   2  Prefactor     .10000E-03    13.424        .87009E-06** at limit **
   3  norm          2.4686        4.6122       -.20008E-05    .95145E-04
   4  Prefactor     1.7718        5.5761       -.39696E-05    .92712E-04
   5  Prefactor     .10000E-03    24.441        .16032E-06** at limit **
   6  Prefactor     11.753        35.165        .26049E-05    .42327E-04
   7  Prefactor     .10000E-03    176.27        .20879E-04** at limit **
   8  Prefactor     .10000E-03    234.42       -.26831E-05** at limit **
   9  Prefactor     .10000E-03    16.638        .32962E-06** at limit **
  10  Prefactor     .10000E-03    7.4810        .43231E-07** at limit **
  11  norm          3.9414        1.2966        .17040E-08    .35743E-03
  12  Prefactor     .10000E-03    200.16       -.40411E-05** at limit **
  13  norm          21.686        10.270       -.25115E-07   -.13719E-04
  14  norm          5.4247        6.1545        .11280E-05    .49467E-03
  15  Prefactor     .10000E-03    4.0952       -.11901E-05** at limit **
  16  norm          4.5432        6.2357       -.18792E-07    .82998E-04
  17  norm          .90456        2.1326       -.28945E-06    .12166E-03
  18  norm          10.362        6.8256        .16200E-07   -.70095E-05
  19  Prefactor     17.659        32.653        .20709E-07   -.16935E-04
  20  Prefactor     5.5746        6.8222        .29495E-07   -.74294E-05
  21  Normalizat    1.1454        .24880        .64824E-06    .18894E-03
  22  Prefactor     .98394        .10952       -.38276E-06    .25277E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 87.7273
  Prefactor  = 0.000100001
  norm       = 2.46864
  Prefactor  = 1.77178
  Prefactor  = 0.0001
  Prefactor  = 11.7534
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.94137
  Prefactor  = 0.000100002
  norm       = 21.6864
  norm       = 5.42469
  Prefactor  = 0.0001
  norm       = 4.54324
  norm       = 0.904559
  norm       = 10.3622
  Prefactor  = 17.6591
  Prefactor  = 5.57461
  Normalizat = 1.14542
  Prefactor  = 0.98394
 **********
 **   18 **HESSE 
 **********

 FCN=   7960.269     FROM HESSE     STATUS=OK           348 CALLS     2408 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     87.727        58.817        .21449E-03   -1.3832    
   2  Prefactor     .10000E-03    13.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.4686        4.5751        .12605E-02   -1.5394    
   4  Prefactor     1.7718        5.5947        .15701E-02   -1.5442    
   5  Prefactor     .10000E-03    24.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.753        35.215        .11698E-03   -1.5022    
   7  Prefactor     .10000E-03    168.42        .70857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    234.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.5096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.9414        1.2957        .55666E-04   -1.5311    
  12  Prefactor     .10000E-03    201.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          21.686        10.275        .86009E-04   -1.4776    
  14  norm          5.4247        6.2983        .17246E-03   -1.5242    
  15  Prefactor     .10000E-03    4.2014        .17700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.5432        6.2233        .18887E-03   -1.5282    
  17  norm          .90456        2.0897        .19242E-03   -1.5518    
  18  norm          10.362        6.8198        .12447E-03   -1.5064    
  19  Prefactor     17.659        32.647        .95278E-04   -1.4867    
  20  Prefactor     5.5746        6.8196        .85075E-03   -1.5236    
  21  Normalizat    1.1454        .29126        .38417E-03   -.88307    
  22  Prefactor     .98394        .12957        .18447E-03   -.93267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56489e-10
Minuit parameter uncertainties:
  1  58.8564
  2  0.000165285
  3  4.57579
  4  5.59636
  5  1.55675e-05
  6  35.2773
  7  0.000648885
  8  0.000160738
  9  0.000149088
  10  6.22175e-05
  11  1.29572
  12  0.00110848
  13  10.2754
  14  6.29906
  15  1.56461e-05
  16  6.22414
  17  2.0899
  18  6.82029
  19  32.6796
  20  6.82059
  21  0.291667
  22  0.129615
Done.

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

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  3.941e+00  1.296e+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.839e-01  1.296e-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.145e+00  2.917e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 24.57
Ra Dec: 191.689 -25.802
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 1.72e-07 +/- 5.67e-08
Energy Flux (Fixed Index): 6.62e-05 +/- 2.18e-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) = 7960.12060562
delta logL = 0.147894741963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7960.11465235
delta logL = 0.153848007806

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0239       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0303       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1707       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97810       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=   7960.115     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      201 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0239        1.9457        .50257E-02   -.53770E-02
   2  alpha         2.0303        .43783        .25964        .38484E-04
   3  Normalizat    1.1707        .24451        .85973E-01    .14265E-04
   4  Prefactor     .97812        .10906        .45993E-01    .41788E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.02393
  alpha      = 2.03028
  Normalizat = 1.17065
  Prefactor  = 0.978118
 **********
 **   18 **HESSE 
 **********

 FCN=   7960.115     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0239        1.3580        .58086E-04   -1.5307    
   2  alpha         2.0303        .32942        .10601E-01   -.18901    
   3  Normalizat    1.1707        .28653        .38070E-03   -.87515    
   4  Prefactor     .97812        .12835        .18500E-03   -.93463    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38577e-09
Minuit parameter uncertainties:
  1  1.35801
  2  0.330416
  3  0.286919
  4  0.128392
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/899399': 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) = 7960.11465234
delta logL = 0.153848022986

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  4.024e+00  1.358e+00  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  2.030e+00  3.304e-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.781e-01  1.284e-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.171e+00  2.869e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 24.83
Ra Dec: 191.689 -25.802
Photon Index (Free Index): 2.03 +/- 0.33
Photon Flux (Free Index): 1.48e-07 +/- 6.62e-08
Energy Flux (Free Index): 7.20e-05 +/- 2.74e-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/899399/cmap_HighResolution_351302401_351561601_4FGL_J1246.7-2548_daily_bin432.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.72e-07', energy_flux2='7.20e-05', photon_flux_error='5.67e-08', dlogl='1.54e-01', energy_flux='6.62e-05', photon_flux2='1.48e-07', job_status='DONE', time_completed='2021-09-06 04:51:33.514192', photon_index_error2='0.33', photon_index2='2.03', ts='24.57', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='2.74e-05', EG='1.15', time_epoch_completed='1630929093.51', return_code='0', job_id='899399', GAL2='0.98', EG2='1.17', return_code2='0', energy_flux_error='2.18e-05', photon_flux_error2='6.62e-08', ts2='24.83', photon_index='2.21' WHERE bin_id='432' AND source_name='4FGL J1246.7-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 04:51:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 899399: <4FGL_J1246.7-2548_daily_bin432> in cluster <slac> Done

Job <4FGL_J1246.7-2548_daily_bin432> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 04:36:22 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 04:36:24 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:36:24 2021
Terminated at Mon Sep  6 04:51:34 2021
Results reported at Mon Sep  6 04:51:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1246.7-2548_daily_bin432 191.689 -25.8018 351302401 351561601 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 :                                   702.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             314.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            912 sec.

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

