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


Performing analysis on: 4FGL_J1246.7-2548_daily_bin390
RA = 191.689, Dec = -25.8018
tmin = 340416001, tmax = 340675201
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='899339', job_status='RUN', time_executed='2021-09-06 04:38:38.942374', time_epoch_executed='1630928318.94' WHERE source_name='4FGL J1246.7-2548' and cadence='daily' and bin_id='390'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/899339

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/899339/ft1_4FGL_J1246.7-2548_daily_bin390.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/899339/ft2_4FGL_J1246.7-2548_daily_bin390.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/899339/ft1_4FGL_J1246.7-2548_daily_bin390.fits outfile=/scratch/kocevski/899339/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin390.fits ra=191.689 dec=-25.8018 rad=12.0 tmin=340416001.0 tmax=340675201.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 6.73
user 6.40
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/899339/ft1_filtered_4FGL_J1246.7-2548_daily_bin390.fits" evtable="EVENTS" scfile=/scratch/kocevski/899339/ft2_4FGL_J1246.7-2548_daily_bin390.fits sctable="SC_DATA" outfile=/scratch/kocevski/899339/ltcube_340416001_340675201_4FGL_J1246.7-2548_daily_bin390.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/899339/ft2_4FGL_J1246.7-2548_daily_bin390.fits
.....................!
real 11.21
user 10.87
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/899339/ft1_filtered_4FGL_J1246.7-2548_daily_bin390.fits evtable="EVENTS" scfile=/scratch/kocevski/899339/ft2_4FGL_J1246.7-2548_daily_bin390.fits sctable="SC_DATA" expcube=/scratch/kocevski/899339/ltcube_340416001_340675201_4FGL_J1246.7-2548_daily_bin390.fits outfile=/scratch/kocevski/899339/expmap_340416001_340675201_4FGL_J1246.7-2548_daily_bin390.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/899339/ltcube_340416001_340675201_4FGL_J1246.7-2548_daily_bin390.fits
.....................!
real 191.21
user 185.94
sys 4.83

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/899339/ft1_filtered_4FGL_J1246.7-2548_daily_bin390.fits scfile=/scratch/kocevski/899339/ft2_4FGL_J1246.7-2548_daily_bin390.fits outfile=/scratch/kocevski/899339/cmap_340416001_340675201_4FGL_J1246.7-2548_daily_bin390.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.57
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.915       1.0000         .10000E-03   10000.    
     2 'Prefactor '    62.959       1.0000         .10000E-03   10000.    
     3 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9635       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2720       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10636E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.7980       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    22.776       1.0000         .10000E-03   10000.    
    14 'norm      '    .80166       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.4713       1.0000         .10000E-03   10000.    
    16 'norm      '    7.0837       1.0000         .10000E-03   10000.    
    17 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.489       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2712       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1293       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=   8099.798     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2383 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.924        39.209        .32506E-05    .31649E-04
   2  Prefactor     62.955        22.959        .19147E-07   -.47323E-04
   3  norm          .10000E-03    4.0936        .55102E-06** at limit **
   4  Prefactor     .10000E-03    2.9490        .35366E-06** at limit **
   5  Prefactor     .10000E-03    44.411       -.29374E-06** at limit **
   6  Prefactor     1.9568        17.225        .13691E-05   -.22483E-03
   7  Prefactor     3.2695        37.713        .40486E-05    .15192E-04
   8  Prefactor     .10000E-03    173.82       -.41806E-05** at limit **
   9  Prefactor     .10000E-03    23.264       -.45790E-06** at limit **
  10  Prefactor     .10000E-03    6.7991        .53658E-06** at limit **
  11  norm          1.7981        1.1216       -.67543E-08   -.12491E-03
  12  Prefactor     .10000E-03    19.550        .11151E-05** at limit **
  13  norm          22.775        11.646       -.10289E-07   -.21269E-04
  14  norm          .80428        4.3107        .16069E-07   -.75412E-04
  15  Prefactor     9.4658        7.6598        .12420E-06   -.23729E-04
  16  norm          7.0838        6.3079        .15119E-05    .74641E-04
  17  norm          .10000E-03    3.3426        .31606E-06** at limit **
  18  norm          .10000E-03    3.4395        .15585E-06** at limit **
  19  Prefactor     .10000E-03    18.103        .14512E-06** at limit **
  20  Prefactor     19.487        16.746        .28423E-06    .13582E-05
  21  Normalizat    1.2714        .27475       -.15081E-05   -.21318E-04
  22  Prefactor     1.1292        .12334        .61852E-07   -.95214E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.9235
  Prefactor  = 62.9549
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.95682
  Prefactor  = 3.26948
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.79809
  Prefactor  = 0.0001
  norm       = 22.7746
  norm       = 0.804276
  Prefactor  = 9.46575
  norm       = 7.08381
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.4875
  Normalizat = 1.27138
  Prefactor  = 1.12923
 **********
 **   18 **HESSE 
 **********

 FCN=   8099.798     FROM HESSE     STATUS=OK           340 CALLS     2723 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.924        39.216        .65090E-04   -1.4476    
   2  Prefactor     62.955        22.926        .50573E-04   -1.4119    
   3  norm          .10000E-03    4.1092        .17712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.9668        .15077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    44.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.9568        96.593        .14800E-02   -1.5428    
   7  Prefactor     3.2695        37.853        .22387E-03   -1.5346    
   8  Prefactor     .10000E-03    177.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.8290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.7981        1.1152        .72090E-04   -1.5440    
  12  Prefactor     .10000E-03    19.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          22.775        11.640        .83931E-04   -1.4753    
  14  norm          .80428        17.668        .29788E-02   -1.5529    
  15  Prefactor     9.4658        8.2632        .13022E-03   -1.5093    
  16  norm          7.0838        6.2988        .15072E-03   -1.5176    
  17  norm          .10000E-03    3.5014        .32110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.4607        .16295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     19.487        16.749        .90727E-04   -1.4825    
  21  Normalizat    1.2714        .31878        .40019E-03   -.84425    
  22  Prefactor     1.1292        .14442        .19146E-03   -.88538    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48213e-08
Minuit parameter uncertainties:
  1  39.2428
  2  22.9287
  3  1.44577e-06
  4  4.46975e-07
  5  5.6567e-05
  6  27.5431
  7  22.2668
  8  0.00133845
  9  9.7116e-06
  10  1.09546e-05
  11  1.11525
  12  2.42196e-05
  13  11.6409
  14  7.54129
  15  8.2642
  16  6.29944
  17  4.9001e-06
  18  1.2669e-06
  19  5.39652e-06
  20  16.7534
  21  0.319269
  22  0.144466
Done.

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

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  1.798e+00  1.115e+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:  1.129e+00  1.445e-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.271e+00  3.193e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.90
Ra Dec: 191.689 -25.802
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 7.87e-08 +/- 4.88e-08
Energy Flux (Fixed Index): 3.02e-05 +/- 1.87e-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) = 8098.38965462
delta logL = 1.40788466747

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8098.38914539
delta logL = 1.40839389895

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9334       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4991       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3130       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1150       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=   8098.389     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      200 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9334        1.0565        .74668E-03    .86468E-03
   2  alpha         1.4990        .32448        .30390       -.30972E-04
   3  Normalizat    1.3130        .26682        .89130E-01   -.14096E-04
   4  Prefactor     1.1150        .12203        .37042E-01    .11441E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.93341
  alpha      = 1.49904
  Normalizat = 1.31301
  Prefactor  = 1.11504
 **********
 **   18 **HESSE 
 **********

 FCN=   8098.389     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9334        1.1712        .29867E-04   -1.5430    
   2  alpha         1.4990        .38772        .12442E-01   -.41194    
   3  Normalizat    1.3130        .31204        .39471E-03   -.83179    
   4  Prefactor     1.1150        .14318        .19233E-03   -.88987    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.14334e-10
Minuit parameter uncertainties:
  1  1.17125
  2  0.389598
  3  0.312485
  4  0.143225
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/899339': 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) = 8098.38914539
delta logL = 1.40839390016

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  1.933e+00  1.171e+00  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  1.499e+00  3.896e-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:  1.115e+00  1.432e-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.313e+00  3.125e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.77
Ra Dec: 191.689 -25.802
Photon Index (Free Index): 1.50 +/- 0.39
Photon Flux (Free Index): 5.07e-08 +/- 3.40e-08
Energy Flux (Free Index): 6.61e-05 +/- 4.84e-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/899339/cmap_HighResolution_340416001_340675201_4FGL_J1246.7-2548_daily_bin390.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.87e-08', energy_flux2='6.61e-05', photon_flux_error='4.88e-08', dlogl='1.41e+00', energy_flux='3.02e-05', photon_flux2='5.07e-08', job_status='DONE', time_completed='2021-09-06 04:51:25.009310', photon_index_error2='0.39', photon_index2='1.50', ts='4.90', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='4.84e-05', EG='1.27', time_epoch_completed='1630929085.01', return_code='0', job_id='899339', GAL2='1.12', EG2='1.31', return_code2='0', energy_flux_error='1.87e-05', photon_flux_error2='3.40e-08', ts2='7.77', photon_index='2.21' WHERE bin_id='390' AND source_name='4FGL J1246.7-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 04:51:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 899339: <4FGL_J1246.7-2548_daily_bin390> in cluster <slac> Done

Job <4FGL_J1246.7-2548_daily_bin390> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 04:36:17 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 04:36:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 04:36:20 2021
Terminated at Mon Sep  6 04:51:26 2021
Results reported at Mon Sep  6 04:51:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1246.7-2548_daily_bin390 191.689 -25.8018 340416001 340675201 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 :                                   761.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             318.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            909 sec.

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

