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


Performing analysis on: 4FGL_J1246.7-2548_daily_bin1617
RA = 191.689, Dec = -25.8018
tmin = 658454401, tmax = 658713601
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='335055', job_status='RUN', time_executed='2021-12-07 23:22:41.925367', time_epoch_executed='1638948161.93' WHERE source_name='4FGL J1246.7-2548' and cadence='daily' and bin_id='1617'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/335055

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/335055/ft1_4FGL_J1246.7-2548_daily_bin1617.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/335055/ft2_4FGL_J1246.7-2548_daily_bin1617.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/335055/ft1_4FGL_J1246.7-2548_daily_bin1617.fits outfile=/scratch/kocevski/335055/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1617.fits ra=191.689 dec=-25.8018 rad=12.0 tmin=658454401.0 tmax=658713601.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.05
user 2.78
sys 0.23

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/335055/ft1_filtered_4FGL_J1246.7-2548_daily_bin1617.fits" evtable="EVENTS" scfile=/scratch/kocevski/335055/ft2_4FGL_J1246.7-2548_daily_bin1617.fits sctable="SC_DATA" outfile=/scratch/kocevski/335055/ltcube_658454401_658713601_4FGL_J1246.7-2548_daily_bin1617.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/335055/ft2_4FGL_J1246.7-2548_daily_bin1617.fits
.....................!
real 16.48
user 16.10
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/335055/ft1_filtered_4FGL_J1246.7-2548_daily_bin1617.fits evtable="EVENTS" scfile=/scratch/kocevski/335055/ft2_4FGL_J1246.7-2548_daily_bin1617.fits sctable="SC_DATA" expcube=/scratch/kocevski/335055/ltcube_658454401_658713601_4FGL_J1246.7-2548_daily_bin1617.fits outfile=/scratch/kocevski/335055/expmap_658454401_658713601_4FGL_J1246.7-2548_daily_bin1617.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/335055/ltcube_658454401_658713601_4FGL_J1246.7-2548_daily_bin1617.fits
.....................!
real 196.21
user 189.69
sys 6.08

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/335055/ft1_filtered_4FGL_J1246.7-2548_daily_bin1617.fits scfile=/scratch/kocevski/335055/ft2_4FGL_J1246.7-2548_daily_bin1617.fits outfile=/scratch/kocevski/335055/cmap_658454401_658713601_4FGL_J1246.7-2548_daily_bin1617.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/335055/ft1_filtered_4FGL_J1246.7-2548_daily_bin1617.fits scfile=/scratch/kocevski/335055/ft2_4FGL_J1246.7-2548_daily_bin1617.fits outfile=/scratch/kocevski/335055/cmap_HighResolution_658454401_658713601_4FGL_J1246.7-2548_daily_bin1617.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=191.689 yref=-25.8018 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/335055/ft1_filtered_4FGL_J1246.7-2548_daily_bin1617.fits evtable="EVENTS" scfile=/scratch/kocevski/335055/ft2_4FGL_J1246.7-2548_daily_bin1617.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/335055/Model_4FGL_J1246.7-2548_daily_bin1617.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/335055/ft1_filtered_4FGL_J1246.7-2548_daily_bin1617.fits.....................!
real 114.84
user 113.05
sys 1.51

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22803E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.5783       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11469E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    34.470       1.0000         .10000E-03   10000.    
     6 'Prefactor '    37.511       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10899E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10364E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    66.412       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6497       1.0000         .10000E-03   10000.    
    11 'norm      '    .43218       1.0000         .10000E-03   10000.    
    12 'Prefactor '    76.541       1.0000         .10000E-03   10000.    
    13 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.3850       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.0673       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .30804       1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.546       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.528       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3773       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .93260       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=   6918.756     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2426 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    126.58       -.70619E-06** at limit **
   2  Prefactor     .10000E-03    5.4934       -.61874E-08** at limit **
   3  norm          8.5773        5.2474       -.93968E-07    .56762E-04
   4  Prefactor     .10001E-03    4.1308       -.94802E-06** at limit **
   5  Prefactor     34.471        44.860       -.17729E-06    .31607E-05
   6  Prefactor     37.670        41.999       -.21886E-05   -.16381E-04
   7  Prefactor     .10000E-03    20.242       -.21439E-07** at limit **
   8  Prefactor     .10000E-03    25.524       -.15484E-06** at limit **
   9  Prefactor     66.396        38.292        .85620E-06    .64152E-04
  10  Prefactor     1.6488        10.397       -.24982E-05    .28612E-03
  11  norm          .43295        .82662       -.99720E-06   -.10804E-02
  12  Prefactor     76.524        105.57        .19133E-05    .65786E-04
  13  norm          .10000E-03    4.9166       -.21652E-06** at limit **
  14  norm          8.3851        7.2770       -.42802E-07    .26151E-03
  15  Prefactor     .10000E-03    2.2141       -.12528E-06** at limit **
  16  norm          5.0659        7.6843       -.14770E-06    .82732E-04
  17  norm          .10000E-03    .70245       -.66977E-08** at limit **
  18  norm          .32619        37.990        .14115E-04   -.73677E-04
  19  Prefactor     27.404        83.171        .33342E-05    .46786E-05
  20  Prefactor     16.546        31.260       -.21827E-06   -.63970E-04
  21  Normalizat    1.3774        .27299        .10662E-05    .16576E-03
  22  Prefactor     .93261        .12012       -.29273E-06    .21167E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.57734
  Prefactor  = 0.000100006
  Prefactor  = 34.4707
  Prefactor  = 37.6698
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 66.3957
  Prefactor  = 1.64876
  norm       = 0.432948
  Prefactor  = 76.5242
  norm       = 0.0001
  norm       = 8.38509
  Prefactor  = 0.0001
  norm       = 5.06592
  norm       = 0.0001
  norm       = 0.326186
  Prefactor  = 27.4041
  Prefactor  = 16.5463
  Normalizat = 1.37738
  Prefactor  = 0.932606
 **********
 **   18 **HESSE 
 **********

 FCN=   6918.756     FROM HESSE     STATUS=OK           348 CALLS     2774 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    127.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.4969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.5773        5.2442        .13686E-03   -1.5122    
   4  Prefactor     .10001E-03    9.3265        .30401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     34.471        44.841        .68255E-04   -1.4533    
   6  Prefactor     37.670        40.855        .65439E-04   -1.4480    
   7  Prefactor     .10000E-03    20.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    25.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     66.396        38.372        .49249E-04   -1.4076    
  10  Prefactor     1.6488        10.017        .32874E-03   -1.5451    
  11  norm          .43295        .80956        .10831E-02   -1.5576    
  12  Prefactor     76.524        105.63        .45898E-04   -1.3956    
  13  norm          .10000E-03    5.0081        .18007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.3851        7.2575        .13844E-03   -1.5129    
  15  Prefactor     .10000E-03    2.2160        .12076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.0659        7.6536        .17862E-03   -1.5258    
  17  norm          .10000E-03    .70355        .68080E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .32619        38.571        .39493E-02   -1.5594    
  19  Prefactor     27.404        83.432        .76331E-04   -1.4661    
  20  Prefactor     16.546        31.259        .98517E-04   -1.4894    
  21  Normalizat    1.3774        .32307        .36401E-03   -.81285    
  22  Prefactor     .93261        .14233        .19285E-03   -.95011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.33941e-08
Minuit parameter uncertainties:
  1  0.000158917
  2  6.91376e-06
  3  5.24447
  4  0.000462777
  5  44.8845
  6  40.8854
  7  1.19017e-05
  8  5.62761e-06
  9  38.3862
  10  8.12977
  11  0.809584
  12  105.89
  13  2.10383e-05
  14  7.25824
  15  1.2472e-05
  16  7.65504
  17  4.0202e-07
  18  7.09758
  19  83.7901
  20  31.2902
  21  0.323548
  22  0.142388
Done.

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

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  4.329e-01  8.096e-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:  9.326e-01  1.424e-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.377e+00  3.235e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.40
Ra Dec: 191.689 -25.802
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.45e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/335055/likelihoodResults_658454401_658713601_4FGL_J1246.7-2548_daily_bin1617.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): 0
logL (Free Index) = 6918.41327885
delta logL = 0.342577977602

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6918.38906798
delta logL = 0.366788847646

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .31143       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2021       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3930       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92806       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=   6918.389     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      209 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .31080        .59391        .15378E-01    .45869E-03
   2  alpha         1.2003        .65099        .50000       -.45241E-04
   3  Normalizat    1.3929        .26316        .81845E-01    .12688E-04
   4  Prefactor     .92805        .11824        .45362E-01    .74240E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.310796
  alpha      = 1.20033
  Normalizat = 1.39287
  Prefactor  = 0.928054
 **********
 **   18 **HESSE 
 **********

 FCN=   6918.389     FROM HESSE     STATUS=OK            35 CALLS      244 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .31080        .58501        .78420E-03   -1.5596    
   2  alpha         1.2003        .94372        .22864E-01   -.54670    
   3  Normalizat    1.3929        .31272        .36231E-03   -.80835    
   4  Prefactor     .92805        .14073        .19319E-03   -.95168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.0697e-09
Minuit parameter uncertainties:
  1  0.585018
  2  0.977501
  3  0.313147
  4  0.140786
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/335055': 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) = 6918.38906588
delta logL = 0.366790949087

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  3.108e-01  5.850e-01  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  1.200e+00  9.775e-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.281e-01  1.408e-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.393e+00  3.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.13
Ra Dec: 191.689 -25.802
Photon Index (Free Index): 1.20 +/- 0.98
Photon Flux (Free Index): 7.94e-09 +/- 1.40e-08
Energy Flux (Free Index): 2.12e-05 +/- 3.96e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/335055/cmap_HighResolution_658454401_658713601_4FGL_J1246.7-2548_daily_bin1617.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.45e-05', comment='SUCCESS', energy_flux2='2.12e-05', dlogl='3.67e-01', photon_flux2='7.94e-09', job_status='DONE', time_completed='2021-12-07 23:35:29.811075', photon_index_error2='0.98', photon_index2='1.20', ts='0.40', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='3.96e-05', EG='1.38', time_epoch_completed='1638948929.81', return_code='0', job_id='335055', GAL2='0.93', EG2='1.39', return_code2='0', photon_flux_error2='1.40e-08', ts2='1.13', photon_index='2.21' WHERE bin_id='1617' AND source_name='4FGL J1246.7-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 23:35:29 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0143>
Subject: Job 335055: <4FGL_J1246.7-2548_daily_bin1617> in cluster <slac> Done

Job <4FGL_J1246.7-2548_daily_bin1617> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Dec  7 23:20:20 2021
Job was executed on host(s) <bullet0143>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 23:21:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 23:21:47 2021
Terminated at Tue Dec  7 23:35:30 2021
Results reported at Tue Dec  7 23:35:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1246.7-2548_daily_bin1617 191.689 -25.8018 658454401 658713601 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 :                                   766.60 sec.
    Max Memory :                                 1127 MB
    Average Memory :                             357.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            910 sec.

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

