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


Performing analysis on: 4FGL_J1246.7-2548_daily_bin1620
RA = 191.689, Dec = -25.8018
tmin = 659232001, tmax = 659491201
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='335059', job_status='RUN', time_executed='2021-12-07 23:23:10.947654', time_epoch_executed='1638948190.95' WHERE source_name='4FGL J1246.7-2548' and cadence='daily' and bin_id='1620'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/335059

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/335059/ft1_4FGL_J1246.7-2548_daily_bin1620.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/335059/ft2_4FGL_J1246.7-2548_daily_bin1620.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/335059/ft1_4FGL_J1246.7-2548_daily_bin1620.fits outfile=/scratch/kocevski/335059/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1620.fits ra=191.689 dec=-25.8018 rad=12.0 tmin=659232001.0 tmax=659491201.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.82
user 2.60
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/335059/ft2_4FGL_J1246.7-2548_daily_bin1620.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/335059/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1620.fits evtable="EVENTS" outfile="/scratch/kocevski/335059/ft1_filtered_4FGL_J1246.7-2548_daily_bin1620.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/335059/ft1_filtered_4FGL_J1246.7-2548_daily_bin1620.fits" evtable="EVENTS" scfile=/scratch/kocevski/335059/ft2_4FGL_J1246.7-2548_daily_bin1620.fits sctable="SC_DATA" outfile=/scratch/kocevski/335059/ltcube_659232001_659491201_4FGL_J1246.7-2548_daily_bin1620.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/335059/ft2_4FGL_J1246.7-2548_daily_bin1620.fits
.....................!
real 13.20
user 12.82
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/335059/ft1_filtered_4FGL_J1246.7-2548_daily_bin1620.fits evtable="EVENTS" scfile=/scratch/kocevski/335059/ft2_4FGL_J1246.7-2548_daily_bin1620.fits sctable="SC_DATA" expcube=/scratch/kocevski/335059/ltcube_659232001_659491201_4FGL_J1246.7-2548_daily_bin1620.fits outfile=/scratch/kocevski/335059/expmap_659232001_659491201_4FGL_J1246.7-2548_daily_bin1620.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/335059/ltcube_659232001_659491201_4FGL_J1246.7-2548_daily_bin1620.fits
.....................!
real 193.17
user 188.10
sys 4.47

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/335059/ft1_filtered_4FGL_J1246.7-2548_daily_bin1620.fits scfile=/scratch/kocevski/335059/ft2_4FGL_J1246.7-2548_daily_bin1620.fits outfile=/scratch/kocevski/335059/cmap_659232001_659491201_4FGL_J1246.7-2548_daily_bin1620.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.56
user 0.38
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/335059/ft1_filtered_4FGL_J1246.7-2548_daily_bin1620.fits evtable="EVENTS" scfile=/scratch/kocevski/335059/ft2_4FGL_J1246.7-2548_daily_bin1620.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/335059/Model_4FGL_J1246.7-2548_daily_bin1620.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/335059/ft1_filtered_4FGL_J1246.7-2548_daily_bin1620.fits.....................!
real 113.51
user 112.01
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.614       1.0000         .10000E-03   10000.    
     3 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    50.097       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.292       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.134       1.0000         .10000E-03   10000.    
    11 'norm      '    1.8550       1.0000         .10000E-03   10000.    
    12 'Prefactor '    141.45       1.0000         .10000E-03   10000.    
    13 'norm      '    9.2951       1.0000         .10000E-03   10000.    
    14 'norm      '    .67250       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.9649       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.3664       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1464       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .81506       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=   6838.436     FROM MIGRAD    STATUS=CONVERGED    468 CALLS     2321 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.548        .59348E-06** at limit **
   2  Prefactor     14.613        10.991        .69690E-06   -.19895E-04
   3  norm          .10000E-03    1.7893       -.96330E-07** at limit **
   4  Prefactor     .10000E-03    1.1005       -.66888E-07** at limit **
   5  Prefactor     .10000E-03    38.037        .39633E-05** at limit **
   6  Prefactor     50.096        26.925        .19426E-06   -.23491E-04
   7  Prefactor     14.292        14.340        .70042E-07    .10780E-04
   8  Prefactor     .10000E-03    29.558       -.30213E-05** at limit **
   9  Prefactor     .10000E-03    4.7275        .57666E-07** at limit **
  10  Prefactor     15.132        12.722       -.13263E-06   -.71871E-04
  11  norm          1.8550        1.0735       -.12446E-06   -.40143E-03
  12  Prefactor     141.55        92.031        .52675E-05    .71019E-04
  13  norm          9.2948        8.6630       -.28635E-06   -.99764E-04
  14  norm          .66040        8.6643        .70633E-05   -.19821E-03
  15  Prefactor     .10000E-03    2.1662        .14802E-07** at limit **
  16  norm          6.9648        5.6247        .44473E-06    .40132E-04
  17  norm          .10000E-03    1.0936       -.51504E-07** at limit **
  18  norm          9.3656        7.0057        .11719E-06   -.11512E-04
  19  Prefactor     .10000E-03    58.173       -.21159E-05** at limit **
  20  Prefactor     .10000E-03    13.134        .11497E-06** at limit **
  21  Normalizat    1.1466        .23980       -.35787E-05   -.97685E-04
  22  Prefactor     .81498        .10664        .38583E-06   -.40800E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 14.613
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 50.0955
  Prefactor  = 14.2916
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.1318
  norm       = 1.85499
  Prefactor  = 141.552
  norm       = 9.29477
  norm       = 0.6604
  Prefactor  = 0.0001
  norm       = 6.96479
  norm       = 0.0001
  norm       = 9.36557
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.14663
  Prefactor  = 0.814977
 **********
 **   18 **HESSE 
 **********

 FCN=   6838.436     FROM HESSE     STATUS=OK           342 CALLS     2663 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.613        10.970        .52387E-03   -1.4943    
   3  norm          .10000E-03    1.7989        .10770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.1032        .84676E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    38.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     50.096        26.929        .56659E-04   -1.4291    
   7  Prefactor     14.292        14.331        .10595E-03   -1.4952    
   8  Prefactor     .10000E-03    29.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.7299        .17561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.132        12.757        .10296E-03   -1.4930    
  11  norm          1.8550        1.0744        .30604E-04   -1.5436    
  12  Prefactor     141.55        95.269        .16936E-03   -1.3323    
  13  norm          9.2948        8.6646        .13145E-03   -1.5098    
  14  norm          .66040        9.2100        .43993E-03   -1.5545    
  15  Prefactor     .10000E-03    2.1712        .11873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.9648        5.6245        .15201E-03   -1.5180    
  17  norm          .10000E-03    1.1107        .84443E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.3656        7.0033        .13095E-03   -1.5096    
  19  Prefactor     .10000E-03    58.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1466        .28217        .34052E-03   -.88269    
  22  Prefactor     .81498        .12650        .18019E-03   -.99179    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.43938e-10
Minuit parameter uncertainties:
  1  3.94091e-05
  2  10.9718
  3  3.69067e-06
  4  8.68099e-07
  5  0.000295775
  6  26.9355
  7  14.3349
  8  0.000151694
  9  5.74415e-06
  10  12.7592
  11  1.07443
  12  95.373
  13  8.6658
  14  4.933
  15  2.97525e-05
  16  5.62497
  17  2.58919e-06
  18  7.00387
  19  0.000136695
  20  1.75332e-05
  21  0.282543
  22  0.126548
Done.

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

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  1.855e+00  1.074e+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:  8.150e-01  1.265e-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.147e+00  2.825e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.67
Ra Dec: 191.689 -25.802
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 8.11e-08 +/- 4.70e-08
Energy Flux (Fixed Index): 3.11e-05 +/- 1.80e-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) = 6838.40803308
delta logL = 0.0277839470482

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6838.40675862
delta logL = 0.0290584114655

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8962       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0727       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1564       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81250       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=   6838.407     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8968        27.846        .75524E-02    .30461E-03
   2  alpha         2.0727        2.8812        .41769       -.37927E-05
   3  Normalizat    1.1566        .16717        .76653E-01    .76326E-04
   4  Prefactor     .81238        .62391E-01    .43880E-01    .13268E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.8968
  alpha      = 2.07266
  Normalizat = 1.1566
  Prefactor  = 0.812375
 **********
 **   18 **HESSE 
 **********

 FCN=   6838.407     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8968        1.1109        .64228E-04   -1.5433    
   2  alpha         2.0727        .56962        .14978E-01   -.17178    
   3  Normalizat    1.1566        .27724        .33928E-03   -.87955    
   4  Prefactor     .81238        .12605        .18045E-03   -.99274    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26959e-11
Minuit parameter uncertainties:
  1  1.11091
  2  0.574828
  3  0.277595
  4  0.126099
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/335059': 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) = 6838.406758
delta logL = 0.0290590248323

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  1.897e+00  1.111e+00  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  2.073e+00  5.748e-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:  8.124e-01  1.261e-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.157e+00  2.776e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.71
Ra Dec: 191.689 -25.802
Photon Index (Free Index): 2.07 +/- 0.57
Photon Flux (Free Index): 7.24e-08 +/- 5.50e-08
Energy Flux (Free Index): 3.32e-05 +/- 2.18e-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/335059/cmap_HighResolution_659232001_659491201_4FGL_J1246.7-2548_daily_bin1620.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.11e-08', energy_flux2='3.32e-05', photon_flux_error='4.70e-08', dlogl='2.91e-02', energy_flux='3.11e-05', photon_flux2='7.24e-08', job_status='DONE', time_completed='2021-12-07 23:34:19.882868', photon_index_error2='0.57', photon_index2='2.07', ts='5.67', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='2.18e-05', EG='1.15', time_epoch_completed='1638948859.88', return_code='0', job_id='335059', GAL2='0.81', EG2='1.16', return_code2='0', energy_flux_error='1.80e-05', photon_flux_error2='5.50e-08', ts2='5.71', photon_index='2.21' WHERE bin_id='1620' AND source_name='4FGL J1246.7-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 23:34:19 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 335059: <4FGL_J1246.7-2548_daily_bin1620> in cluster <slac> Done

Job <4FGL_J1246.7-2548_daily_bin1620> 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) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 23:21:51 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:51 2021
Terminated at Tue Dec  7 23:34:20 2021
Results reported at Tue Dec  7 23:34:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1246.7-2548_daily_bin1620 191.689 -25.8018 659232001 659491201 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 :                                   668.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             336.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            840 sec.

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

