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


Performing analysis on: 4FGL_J1246.7-2548_daily_bin1326
RA = 191.689, Dec = -25.8018
tmin = 583027201, tmax = 583286401
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='905381', job_status='RUN', time_executed='2021-09-06 04:56:36.760575', time_epoch_executed='1630929396.76' WHERE source_name='4FGL J1246.7-2548' and cadence='daily' and bin_id='1326'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/905381

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/905381/ft1_4FGL_J1246.7-2548_daily_bin1326.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/905381/ft2_4FGL_J1246.7-2548_daily_bin1326.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/905381/ft1_4FGL_J1246.7-2548_daily_bin1326.fits outfile=/scratch/kocevski/905381/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1326.fits ra=191.689 dec=-25.8018 rad=12.0 tmin=583027201.0 tmax=583286401.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.56
user 3.33
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/905381/ft1_filtered_4FGL_J1246.7-2548_daily_bin1326.fits" evtable="EVENTS" scfile=/scratch/kocevski/905381/ft2_4FGL_J1246.7-2548_daily_bin1326.fits sctable="SC_DATA" outfile=/scratch/kocevski/905381/ltcube_583027201_583286401_4FGL_J1246.7-2548_daily_bin1326.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/905381/ft2_4FGL_J1246.7-2548_daily_bin1326.fits
.....................!
real 15.24
user 14.86
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/905381/ft1_filtered_4FGL_J1246.7-2548_daily_bin1326.fits evtable="EVENTS" scfile=/scratch/kocevski/905381/ft2_4FGL_J1246.7-2548_daily_bin1326.fits sctable="SC_DATA" expcube=/scratch/kocevski/905381/ltcube_583027201_583286401_4FGL_J1246.7-2548_daily_bin1326.fits outfile=/scratch/kocevski/905381/expmap_583027201_583286401_4FGL_J1246.7-2548_daily_bin1326.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/905381/ltcube_583027201_583286401_4FGL_J1246.7-2548_daily_bin1326.fits
.....................!
real 191.26
user 185.35
sys 5.26

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/905381/ft1_filtered_4FGL_J1246.7-2548_daily_bin1326.fits scfile=/scratch/kocevski/905381/ft2_4FGL_J1246.7-2548_daily_bin1326.fits outfile=/scratch/kocevski/905381/cmap_583027201_583286401_4FGL_J1246.7-2548_daily_bin1326.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/905381/ft1_filtered_4FGL_J1246.7-2548_daily_bin1326.fits scfile=/scratch/kocevski/905381/ft2_4FGL_J1246.7-2548_daily_bin1326.fits outfile=/scratch/kocevski/905381/cmap_HighResolution_583027201_583286401_4FGL_J1246.7-2548_daily_bin1326.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/905381/ft1_filtered_4FGL_J1246.7-2548_daily_bin1326.fits evtable="EVENTS" scfile=/scratch/kocevski/905381/ft2_4FGL_J1246.7-2548_daily_bin1326.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/905381/Model_4FGL_J1246.7-2548_daily_bin1326.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/905381/ft1_filtered_4FGL_J1246.7-2548_daily_bin1326.fits.....................!
real 139.50
user 137.93
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.546       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .11083E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3745       1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.848       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7509       1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.403       1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.935       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .12230       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.6916       1.0000         .10000E-03   10000.    
    14 'norm      '    5.4969       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.3670       1.0000         .10000E-03   10000.    
    16 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .70202       1.0000         .10000E-03   10000.    
    18 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.320       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3450       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86767       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=   8379.362     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2409 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.532        25.987        .20228E-05    .92459E-05
   2  Prefactor     .10000E-03    3.0350       -.38364E-07** at limit **
   3  norm          .10000E-03    1.4485       -.44065E-06** at limit **
   4  Prefactor     2.3750        3.3427        .17519E-05   -.10648E-03
   5  Prefactor     23.827        40.596        .43847E-05    .27100E-04
   6  Prefactor     2.7468        50.532       -.51458E-06    .97922E-06
   7  Prefactor     30.410        35.980       -.19408E-05   -.11471E-05
   8  Prefactor     23.924        63.036        .26699E-05    .24065E-05
   9  Prefactor     .10000E-03    9.9051        .25426E-07** at limit **
  10  Prefactor     .10000E-03    3.2395       -.10634E-06** at limit **
  11  norm          .12321        .47535        .58217E-08   -.10928E-03
  12  Prefactor     .10000E-03    61.691       -.25293E-06** at limit **
  13  norm          9.6917        7.6204        .17295E-06   -.10250E-04
  14  norm          5.4972        6.0038        .13821E-05   -.30719E-04
  15  Prefactor     9.3684        6.6617       -.44681E-06   -.37968E-04
  16  norm          .10000E-03    4.0691        .12171E-06** at limit **
  17  norm          .70204        1.6630        .16145E-06   -.69852E-05
  18  norm          .10000E-03    3.4720        .12608E-06** at limit **
  19  Prefactor     29.303        31.328        .24762E-05    .11493E-04
  20  Prefactor     .10000E-03    4.9699       -.13106E-06** at limit **
  21  Normalizat    1.3449        .21914       -.53254E-06   -.17020E-04
  22  Prefactor     .86773        .98158E-01   -.38514E-06   -.51525E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.5316
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.37497
  Prefactor  = 23.8271
  Prefactor  = 2.7468
  Prefactor  = 30.4103
  Prefactor  = 23.9239
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.123213
  Prefactor  = 0.0001
  norm       = 9.6917
  norm       = 5.49716
  Prefactor  = 9.36836
  norm       = 0.0001
  norm       = 0.702044
  norm       = 0.0001
  Prefactor  = 29.3035
  Prefactor  = 0.0001
  Normalizat = 1.3449
  Prefactor  = 0.867734
 **********
 **   18 **HESSE 
 **********

 FCN=   8379.362     FROM HESSE     STATUS=OK           354 CALLS     2763 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.532        25.979        .10502E-03   -1.4945    
   2  Prefactor     .10000E-03    3.0384        .15573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.6002        .21356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.3750        3.3470        .93904E-03   -1.5400    
   5  Prefactor     23.827        40.634        .82025E-04   -1.4731    
   6  Prefactor     2.7468        50.312        .24544E-03   -1.5376    
   7  Prefactor     30.410        35.912        .72664E-04   -1.4604    
   8  Prefactor     23.924        62.931        .81876E-04   -1.4729    
   9  Prefactor     .10000E-03    9.9321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.2423        .16089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .12321        1.5555        .11591E-02   -1.5638    
  12  Prefactor     .10000E-03    61.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.6917        7.6203        .64361E-03   -1.5085    
  14  norm          5.4972        5.9736        .85687E-03   -1.5239    
  15  Prefactor     9.3684        6.6402        .13094E-03   -1.5096    
  16  norm          .10000E-03    4.1844        .36046E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .70204        1.5244        .17583E-02   -1.5540    
  18  norm          .10000E-03    3.5273        .16654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     29.303        31.308        .73991E-04   -1.4625    
  20  Prefactor     .10000E-03    4.9805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3449        .26031        .32892E-03   -.82236    
  22  Prefactor     .86773        .11725        .18118E-03   -.97278    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54871e-08
Minuit parameter uncertainties:
  1  25.9989
  2  7.03115e-06
  3  8.73455e-07
  4  3.34729
  5  40.6816
  6  23.5341
  7  35.9375
  8  63.106
  9  9.14842e-07
  10  6.51334e-07
  11  0.875258
  12  4.15772e-07
  13  7.62107
  14  5.97424
  15  6.64076
  16  1.06549e-05
  17  1.52446
  18  5.83116e-06
  19  31.3258
  20  1.08915e-05
  21  0.260562
  22  0.117283
Done.

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

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  1.232e-01  8.753e-01  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  2.214e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
277         beta:  1.173e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
278           Eb:  6.582e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  8.677e-01  1.173e-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.345e+00  2.606e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 191.689 -25.802
Photon Flux Upper Limit: 9.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.79e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/905381/likelihoodResults_583027201_583286401_4FGL_J1246.7-2548_daily_bin1326.txt

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): 102
logL (Free Index) = 8378.04499576
delta logL = 1.31659235529

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8378.03908607
delta logL = 1.32250204841

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .63380E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.7833       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2308       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89712       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8378.039     FROM MIGRAD    STATUS=FAILED       103 CALLS      329 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62879E-01    1.4669        .15523E-03    .18411E-01
   2  alpha         4.7877        2.6061        .48697E-01   -.13586E-04
   3  Normalizat    1.2303        .21342        .34111E-03   -.41327E-05
   4  Prefactor     .89731        .96060E-01    .17832E-03   -.63755E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8378.039     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      418 TOTAL
                     EDM=   .72E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62879E-01    1.4669        .26180E-04    .18411E-01
   2  alpha         4.7877        2.6061        .69229E-02   -.13586E-04
   3  Normalizat    1.2303        .21342        .80239E-04   -.41327E-05
   4  Prefactor     .89731        .96060E-01    .41319E-04   -.63755E-06
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8378.039     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      450 TOTAL
                     EDM=   .54E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62878E-01    .49147        .31046E-04   -.30979E-03
   2  alpha         4.7877        4.6289        .19479E-02   -.14241E-05
   3  Normalizat    1.2303        .26454        .13644E-04   -.13331E-05
   4  Prefactor     .89731        .11884        .71328E-05    .19126E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0628784
  alpha      = 4.78771
  Normalizat = 1.23032
  Prefactor  = 0.897312
 **********
 **   18 **HESSE 
 **********

 FCN=   8378.039     FROM HESSE     STATUS=OK            23 CALLS      473 TOTAL
                     EDM=   .36E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .62878E-01    .21590        .12418E-05   -1.5658    
   2  alpha         4.7877        4.6443        .77915E-04    1.1557    
   3  Normalizat    1.2303        .26446        .27289E-05   -.85671    
   4  Prefactor     .89731        .11843        .14266E-05   -.96235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5911e-13
Minuit parameter uncertainties:
  1  0.215902
  2  2.10056
  3  0.264744
  4  0.118461
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/905381': 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) = 8378.03908067
delta logL = 1.32250744595

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  6.288e-02  2.159e-01  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  4.788e+00  2.101e+00  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:  8.973e-01  1.185e-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  2.647e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.84
Ra Dec: 191.689 -25.802
Photon Index (Free Index): 4.79 +/- 2.10
Photon Flux (Free Index): 1.01e-07 +/- 7.06e-08
Energy Flux (Free Index): 1.41e-05 +/- 1.04e-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/905381/cmap_HighResolution_583027201_583286401_4FGL_J1246.7-2548_daily_bin1326.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.79e-05', comment='SUCCESS', energy_flux2='1.41e-05', dlogl='1.32e+00', photon_flux2='1.01e-07', job_status='DONE', time_completed='2021-09-06 05:11:30.823517', photon_index_error2='2.10', photon_index2='4.79', ts='0.02', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='9.87e-08', energy_flux_error2='1.04e-05', EG='1.34', time_epoch_completed='1630930290.82', return_code='0', job_id='905381', GAL2='0.90', EG2='1.23', return_code2='0', photon_flux_error2='7.06e-08', ts2='2.84', photon_index='2.21' WHERE bin_id='1326' AND source_name='4FGL J1246.7-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:11:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 905381: <4FGL_J1246.7-2548_daily_bin1326> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1246.7-2548_daily_bin1326 191.689 -25.8018 583027201 583286401 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 :                                   883.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             357.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            939 sec.

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

