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


Performing analysis on: 4FGL_J1246.7-2548_daily_bin1482
RA = 191.689, Dec = -25.8018
tmin = 623462401, tmax = 623721601
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='905569', job_status='RUN', time_executed='2021-09-06 04:59:17.990574', time_epoch_executed='1630929557.99' WHERE source_name='4FGL J1246.7-2548' and cadence='daily' and bin_id='1482'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/905569

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/905569/ft1_4FGL_J1246.7-2548_daily_bin1482.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/905569/ft2_4FGL_J1246.7-2548_daily_bin1482.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/905569/ft1_4FGL_J1246.7-2548_daily_bin1482.fits outfile=/scratch/kocevski/905569/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1482.fits ra=191.689 dec=-25.8018 rad=12.0 tmin=623462401.0 tmax=623721601.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 2.70
user 2.50
sys 0.18

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/905569/ft1_filtered_4FGL_J1246.7-2548_daily_bin1482.fits" evtable="EVENTS" scfile=/scratch/kocevski/905569/ft2_4FGL_J1246.7-2548_daily_bin1482.fits sctable="SC_DATA" outfile=/scratch/kocevski/905569/ltcube_623462401_623721601_4FGL_J1246.7-2548_daily_bin1482.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/905569/ft2_4FGL_J1246.7-2548_daily_bin1482.fits
.....................!
real 12.38
user 12.04
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/905569/ft1_filtered_4FGL_J1246.7-2548_daily_bin1482.fits evtable="EVENTS" scfile=/scratch/kocevski/905569/ft2_4FGL_J1246.7-2548_daily_bin1482.fits sctable="SC_DATA" expcube=/scratch/kocevski/905569/ltcube_623462401_623721601_4FGL_J1246.7-2548_daily_bin1482.fits outfile=/scratch/kocevski/905569/expmap_623462401_623721601_4FGL_J1246.7-2548_daily_bin1482.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/905569/ltcube_623462401_623721601_4FGL_J1246.7-2548_daily_bin1482.fits
.....................!
real 190.66
user 184.99
sys 4.97

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/905569/ft1_filtered_4FGL_J1246.7-2548_daily_bin1482.fits scfile=/scratch/kocevski/905569/ft2_4FGL_J1246.7-2548_daily_bin1482.fits outfile=/scratch/kocevski/905569/cmap_623462401_623721601_4FGL_J1246.7-2548_daily_bin1482.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.58
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/905569/ft1_filtered_4FGL_J1246.7-2548_daily_bin1482.fits scfile=/scratch/kocevski/905569/ft2_4FGL_J1246.7-2548_daily_bin1482.fits outfile=/scratch/kocevski/905569/cmap_HighResolution_623462401_623721601_4FGL_J1246.7-2548_daily_bin1482.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/905569/ft1_filtered_4FGL_J1246.7-2548_daily_bin1482.fits evtable="EVENTS" scfile=/scratch/kocevski/905569/ft2_4FGL_J1246.7-2548_daily_bin1482.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/905569/Model_4FGL_J1246.7-2548_daily_bin1482.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/905569/ft1_filtered_4FGL_J1246.7-2548_daily_bin1482.fits....................................!
real 20.50
user 18.67
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42534E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .72074E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .35250E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9999.8       1.0000         .10000E-03   10000.    
     6 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     7 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     8 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     9 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    10 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    11 'norm      '    .10131E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .24335E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .11086E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10630E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10357E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    12.518       1.0000         .10000E-03   10000.    
    18 'norm      '    19.971       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .43277E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10527E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96075       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   396.8417     FROM MIGRAD    STATUS=CONVERGED     57 CALLS     2325 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23959E-03    2.2807       -.37144E-06** at limit **
   2  Prefactor     .47714E-03    1.9717       -.35593E-06** at limit **
   3  norm          .13473E-03    4.1766       -.45021E-06** at limit **
   4  Prefactor    10000.0        2.2922        .40865E-06   -.11321E-02
   5  Prefactor     9999.8        .54733        .95703E-07   -.23480E-03
   6  Prefactor    10000.0        .33871        .71143E-07** at limit **
   7  Prefactor    10000.0        .35502        .10960E-06   -.32105E-03
   8  Prefactor    10000.0        .35476        .10869E-06   -.31510E-03
   9  Prefactor    10000.0        2.0759        .37065E-06** at limit **
  10  Prefactor    10000.0        .53411        .13976E-06** at limit **
  11  norm          .10000E-03    13.048       -.12741E-05** at limit **
  12  Prefactor     .72733E-02    10.146       -.88180E-06    .25636E-02
  13  norm          .10284E-03    75.435        .19767E-06** at limit **
  14  norm          .10501E-03    33.806        .15261E-05** at limit **
  15  Prefactor     .10056E-03    36.549       -.15269E-05** at limit **
  16  norm          .10000E-03    14.586       -.18885E-05** at limit **
  17  norm          12.516        1.0266       -.11035E-08    .49161E-04
  18  norm          19.963        1.2833       -.52230E-08    .11249E-03
  19  Prefactor     .12217E-03    6.2520       -.50378E-06** at limit **
  20  Prefactor     .10206E-03    29.789        .20204E-05** at limit **
  21  Normalizat    .10000E-01    2.1434       -.22372E-04** at limit **
  22  Prefactor     .96089        .25057        .12390E-04    .14032E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000239589
  Prefactor  = 0.000477138
  norm       = 0.00013473
  Prefactor  = 9999.99
  Prefactor  = 9999.79
  Prefactor  = 10000
  Prefactor  = 9999.97
  Prefactor  = 9999.96
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 0.00727335
  norm       = 0.000102841
  norm       = 0.000105014
  Prefactor  = 0.000100558
  norm       = 0.0001
  norm       = 12.516
  norm       = 19.9635
  Prefactor  = 0.000122165
  Prefactor  = 0.000102062
  Normalizat = 0.01
  Prefactor  = 0.960889
 **********
 **   18 **HESSE 
 **********

 FCN=   396.8417     FROM HESSE     STATUS=OK           370 CALLS     2695 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23959E-03    773.97        .10618E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .47714E-03    1227.2        .10482E-01   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .13473E-03    368.66        .10660E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor    10000.0        6515.6        .93590E-02    1.5693    
   5  Prefactor     9999.8        5002.6        .10017E-01    1.5617    
   6  Prefactor    10000.0        7761.2        .10519E-01    1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor    10000.0        9994.0        .91616E-02    1.5675    
   8  Prefactor    10000.0        9841.0        .92102E-02    1.5669    
   9  Prefactor    10000.0        1429.6        .10381E-01    1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor    10000.0        2128.1        .10667E-01    1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    13.049        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .72733E-02    1562.9        .90712E-02   -1.5691    
  13  norm          .10284E-03    92.758        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10501E-03    47.734        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10056E-03    37.433        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    14.582        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          12.516        19.696        .28304E-02   -1.5000    
  18  norm          19.963        22.575        .22406E-02   -1.4814    
  19  Prefactor     .12217E-03    283.04        .10614E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10206E-03    64.044        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .10000E-01    1.4184        .32229       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .96089        .32746        .45775E-01   -.94045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1861e-05
Minuit parameter uncertainties:
  1  0.666174
  2  1.39009
  3  0.227718
  4  8.93996
  5  283.567
  6  3.68786
  7  52.9776
  8  67.3359
  9  1.8932
  10  1.29587
  11  6.56041e-05
  12  6.88461
  13  0.0325186
  14  0.0309644
  15  0.00914985
  16  1.01542e-05
  17  19.7061
  18  22.5847
  19  0.159168
  20  0.0230093
  21  7.12713e-06
  22  0.328133
Done.

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

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  1.000e-04  6.560e-05  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.609e-01  3.281e-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.000e-02  7.127e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 191.689 -25.802
Photon Flux Upper Limit: 3.29e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/905569/likelihoodResults_623462401_623721601_4FGL_J1246.7-2548_daily_bin1482.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) = 396.842068004
delta logL = -0.000330545434792

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 396.841743012
delta logL = -5.55313727091e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10381E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2158       1.0000          .0000       5.0000    
     3 'Normalizat'    .10025E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96090       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   396.2179     FROM MIGRAD    STATUS=CONVERGED    157 CALLS      305 TOTAL
                     EDM=   .64E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0791        3.2266        .70343E-02    .13523E-03
   2  alpha         5.0000        .63527        .16597    ** at limit **
   3  Normalizat    .10000E-01    .68989        .11857E-01** at limit **
   4  Prefactor     .88639        .24779        .16567E-03    .11836E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.07909
  alpha      = 5
  Normalizat = 0.01
  Prefactor  = 0.886391
 **********
 **   18 **HESSE 
 **********

 FCN=   396.2179     FROM HESSE     STATUS=OK            25 CALLS      330 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0791        3.1503        .34184E-04   -1.5357    
   2  alpha         5.0000        .61811        .69366E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .10000E-01    .68994        .23714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .88639        .24774        .33133E-04   -.96618    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21306e-12
Minuit parameter uncertainties:
  1  3.15049
  2  1.52227e-06
  3  2.13752e-07
  4  0.248058
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/905569': 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) = 396.21793097
delta logL = 0.623806488853

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  3.079e+00  3.150e+00  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  5.000e+00  1.522e-06  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.864e-01  2.481e-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.000e-02  2.138e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.34
Ra Dec: 191.689 -25.802
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 6.96e-06 +/- 7.09e-06
Energy Flux (Free Index): 9.51e-04 +/- 9.71e-04

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/905569/cmap_HighResolution_623462401_623721601_4FGL_J1246.7-2548_daily_bin1482.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-03', comment='SUCCESS', energy_flux2='9.51e-04', dlogl='6.24e-01', photon_flux2='6.96e-06', job_status='DONE', time_completed='2021-09-06 05:08:20.313694', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='3.29e-06', energy_flux_error2='9.71e-04', EG='0.01', time_epoch_completed='1630930100.31', return_code='0', job_id='905569', GAL2='0.89', EG2='0.01', return_code2='0', photon_flux_error2='7.09e-06', ts2='1.34', photon_index='2.21' WHERE bin_id='1482' AND source_name='4FGL J1246.7-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:08:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 905569: <4FGL_J1246.7-2548_daily_bin1482> in cluster <slac> Done

Job <4FGL_J1246.7-2548_daily_bin1482> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 04:56:08 2021
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 04:56:09 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:56:09 2021
Terminated at Mon Sep  6 05:08:21 2021
Results reported at Mon Sep  6 05:08:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1246.7-2548_daily_bin1482 191.689 -25.8018 623462401 623721601 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 :                                   344.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             214.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            733 sec.

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

