/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 = 7470
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1246.7-2548_daily_bin534
RA = 191.689, Dec = -25.8018
tmin = 377740801, tmax = 378000001
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='900423', job_status='RUN', time_executed='2021-09-06 04:41:40.157266', time_epoch_executed='1630928500.16' WHERE source_name='4FGL J1246.7-2548' and cadence='daily' and bin_id='534'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/900423

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/900423/ft1_4FGL_J1246.7-2548_daily_bin534.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/900423/ft2_4FGL_J1246.7-2548_daily_bin534.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/900423/ft1_4FGL_J1246.7-2548_daily_bin534.fits outfile=/scratch/kocevski/900423/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin534.fits ra=191.689 dec=-25.8018 rad=12.0 tmin=377740801.0 tmax=378000001.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 4.45
user 4.23
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/900423/ft1_filtered_4FGL_J1246.7-2548_daily_bin534.fits" evtable="EVENTS" scfile=/scratch/kocevski/900423/ft2_4FGL_J1246.7-2548_daily_bin534.fits sctable="SC_DATA" outfile=/scratch/kocevski/900423/ltcube_377740801_378000001_4FGL_J1246.7-2548_daily_bin534.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/900423/ft2_4FGL_J1246.7-2548_daily_bin534.fits
.....................!
real 12.67
user 11.76
sys 0.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/900423/ft1_filtered_4FGL_J1246.7-2548_daily_bin534.fits evtable="EVENTS" scfile=/scratch/kocevski/900423/ft2_4FGL_J1246.7-2548_daily_bin534.fits sctable="SC_DATA" expcube=/scratch/kocevski/900423/ltcube_377740801_378000001_4FGL_J1246.7-2548_daily_bin534.fits outfile=/scratch/kocevski/900423/expmap_377740801_378000001_4FGL_J1246.7-2548_daily_bin534.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/900423/ltcube_377740801_378000001_4FGL_J1246.7-2548_daily_bin534.fits
.....................!
real 190.59
user 184.73
sys 5.44

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/900423/ft1_filtered_4FGL_J1246.7-2548_daily_bin534.fits scfile=/scratch/kocevski/900423/ft2_4FGL_J1246.7-2548_daily_bin534.fits outfile=/scratch/kocevski/900423/cmap_377740801_378000001_4FGL_J1246.7-2548_daily_bin534.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=191.689 yref=-25.8018 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/900423/ft1_filtered_4FGL_J1246.7-2548_daily_bin534.fits scfile=/scratch/kocevski/900423/ft2_4FGL_J1246.7-2548_daily_bin534.fits outfile=/scratch/kocevski/900423/cmap_HighResolution_377740801_378000001_4FGL_J1246.7-2548_daily_bin534.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/900423/ft1_filtered_4FGL_J1246.7-2548_daily_bin534.fits evtable="EVENTS" scfile=/scratch/kocevski/900423/ft2_4FGL_J1246.7-2548_daily_bin534.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/900423/Model_4FGL_J1246.7-2548_daily_bin534.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/900423/ft1_filtered_4FGL_J1246.7-2548_daily_bin534.fits.....................!
real 134.80
user 132.90
sys 1.60

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10275E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.1990       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .16906E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11591E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .67283E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .20446       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.539       1.0000         .10000E-03   10000.    
    11 'norm      '    3.9528       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.434       1.0000         .10000E-03   10000.    
    13 'norm      '    .29275E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.6144       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.1540       1.0000         .10000E-03   10000.    
    16 'norm      '    8.6204       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.2957       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .21020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.772       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5170       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98753       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=   7952.533     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2522 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.048        .90712E-02** at limit **
   2  Prefactor     .10000E-03    13.364        .90712E-02** at limit **
   3  norm          4.2098        5.6975        .49167E-02    .40160E-03
   4  Prefactor     .10000E-03    2.6242        .78122E-01** at limit **
   5  Prefactor     .10000E-03    86.531        .90712E-02** at limit **
   6  Prefactor     .10000E-03    11.828        .90712E-02** at limit **
   7  Prefactor     .10000E-03    19.446        .12581    ** at limit **
   8  Prefactor     .10000E-03    37.841        .15780    ** at limit **
   9  Prefactor     .10000E-03    6.6105        .90712E-02** at limit **
  10  Prefactor     12.525        19.506        .28281E-02    .23255E-03
  11  norm          3.9530        1.5278        .50722E-02    .28253E-03
  12  Prefactor     13.425        112.07        .27320E-02    .20398E-04
  13  norm          .10000E-03    6.0025        .10700    ** at limit **
  14  norm          5.6126        7.6572        .42386E-02    .24199E-03
  15  Prefactor     2.1541        7.6769        .70180E-02    .63306E-03
  16  norm          8.6207        5.7326        .34132E-02    .36283E-02
  17  norm          .10000E-03    .74276        .90712E-02** at limit **
  18  norm          8.2959        5.9352        .34798E-02    .12337E-03
  19  Prefactor     .10000E-03    87.599        .90712E-02** at limit **
  20  Prefactor     20.766        13.559        .21971E-02    .61835E-05
  21  Normalizat    1.5171        .26558        .82225E-01    .31684E-04
  22  Prefactor     .98752        .11467        .46111E-01    .39001E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.20981
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.5253
  norm       = 3.953
  Prefactor  = 13.4246
  norm       = 0.0001
  norm       = 5.61262
  Prefactor  = 2.15412
  norm       = 8.62069
  norm       = 0.0001
  norm       = 8.29588
  Prefactor  = 0.0001
  Prefactor  = 20.7658
  Normalizat = 1.5171
  Prefactor  = 0.987518
 **********
 **   18 **HESSE 
 **********

 FCN=   7952.533     FROM HESSE     STATUS=OK           366 CALLS     2888 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.2098        5.6800        .19667E-03   -1.5298    
   4  Prefactor     .10000E-03    17.505        .27614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    86.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.886        .11465       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    37.958        .15764       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.6144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.525        19.539        .11312E-03   -1.5000    
  11  norm          3.9530        1.5237        .64752E-04   -1.5310    
  12  Prefactor     13.425        110.96        .10928E-03   -1.4975    
  13  norm          .10000E-03    66.709        .41438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.6126        7.4086        .16954E-03   -1.5234    
  15  Prefactor     2.1541        7.3985        .28072E-03   -1.5414    
  16  norm          8.6207        5.7286        .68264E-03   -1.5121    
  17  norm          .10000E-03    .74480        .75049E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.2959        5.9309        .13919E-03   -1.5132    
  19  Prefactor     .10000E-03    89.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     20.766        13.560        .87883E-04   -1.4796    
  21  Normalizat    1.5171        .31119        .36397E-03   -.77299    
  22  Prefactor     .98752        .13638        .19568E-03   -.93147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48949e-10
Minuit parameter uncertainties:
  1  6.27997e-06
  2  2.60859e-06
  3  5.6807
  4  4.83757e-06
  5  0.000142822
  6  2.96465e-06
  7  0.000213699
  8  0.000108278
  9  3.3024e-06
  10  19.5485
  11  1.52374
  12  77.3846
  13  4.13849e-05
  14  7.40982
  15  7.40165
  16  5.72894
  17  5.21983e-07
  18  5.93134
  19  0.000151261
  20  13.5623
  21  0.311588
  22  0.136431
Done.

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

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  3.953e+00  1.524e+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:  9.875e-01  1.364e-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.517e+00  3.116e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.35
Ra Dec: 191.689 -25.802
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 1.73e-07 +/- 6.66e-08
Energy Flux (Fixed Index): 6.64e-05 +/- 2.56e-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) = 7952.46426672
delta logL = 0.0689735102778

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7952.45966803
delta logL = 0.0735722028685

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7375       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3814       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4877       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99626       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=   7952.460     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      230 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7375        20.154        .52214E-02    .39557E-03
   2  alpha         2.3814        3.6807        .29168        .18606E-04
   3  Normalizat    1.4877        .17971        .82851E-01   -.16716E-03
   4  Prefactor     .99626        .62311E-01    .46220E-01   -.27772E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.73751
  alpha      = 2.38144
  Normalizat = 1.48767
  Prefactor  = 0.996259
 **********
 **   18 **HESSE 
 **********

 FCN=   7952.460     FROM HESSE     STATUS=OK            31 CALLS      261 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7375        1.6374        .61268E-04   -1.5321    
   2  alpha         2.3814        .45502        .11177E-01   -.47440E-01
   3  Normalizat    1.4877        .31271        .36676E-03   -.78125    
   4  Prefactor     .99626        .13780        .19491E-03   -.92854    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.07056e-11
Minuit parameter uncertainties:
  1  1.63746
  2  0.457578
  3  0.313113
  4  0.137848
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/900423': 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) = 7952.45966803
delta logL = 0.0735722048785

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  3.738e+00  1.637e+00  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  2.381e+00  4.576e-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.963e-01  1.378e-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.488e+00  3.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.47
Ra Dec: 191.689 -25.802
Photon Index (Free Index): 2.38 +/- 0.46
Photon Flux (Free Index): 1.95e-07 +/- 9.08e-08
Energy Flux (Free Index): 6.27e-05 +/- 2.56e-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/900423/cmap_HighResolution_377740801_378000001_4FGL_J1246.7-2548_daily_bin534.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.73e-07', energy_flux2='6.27e-05', photon_flux_error='6.66e-08', dlogl='7.36e-02', energy_flux='6.64e-05', photon_flux2='1.95e-07', job_status='DONE', time_completed='2021-09-06 04:54:23.553995', photon_index_error2='0.46', photon_index2='2.38', ts='12.35', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='2.56e-05', EG='1.52', time_epoch_completed='1630929263.55', return_code='0', job_id='900423', GAL2='1.00', EG2='1.49', return_code2='0', energy_flux_error='2.56e-05', photon_flux_error2='9.08e-08', ts2='12.47', photon_index='2.21' WHERE bin_id='534' AND source_name='4FGL J1246.7-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 04:54:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 900423: <4FGL_J1246.7-2548_daily_bin534> in cluster <slac> Done

Job <4FGL_J1246.7-2548_daily_bin534> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 04:40:20 2021
Job was executed on host(s) <bullet0159>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 04:40:22 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:40:22 2021
Terminated at Mon Sep  6 04:54:24 2021
Results reported at Mon Sep  6 04:54:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1246.7-2548_daily_bin534 191.689 -25.8018 377740801 378000001 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 :                                   759.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             373.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            844 sec.

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

