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


Performing analysis on: 4FGL_J1246.7-2548_daily_bin1486
RA = 191.689, Dec = -25.8018
tmin = 624499201, tmax = 624758401
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='905575', job_status='RUN', time_executed='2021-09-06 04:57:56.067875', time_epoch_executed='1630929476.07' WHERE source_name='4FGL J1246.7-2548' and cadence='daily' and bin_id='1486'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/905575

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/905575/ft1_4FGL_J1246.7-2548_daily_bin1486.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/905575/ft2_4FGL_J1246.7-2548_daily_bin1486.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/905575/ft1_4FGL_J1246.7-2548_daily_bin1486.fits outfile=/scratch/kocevski/905575/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1486.fits ra=191.689 dec=-25.8018 rad=12.0 tmin=624499201.0 tmax=624758401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.48
user 3.24
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/905575/ft2_4FGL_J1246.7-2548_daily_bin1486.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/905575/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1486.fits evtable="EVENTS" outfile="/scratch/kocevski/905575/ft1_filtered_4FGL_J1246.7-2548_daily_bin1486.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/905575/ft1_filtered_4FGL_J1246.7-2548_daily_bin1486.fits" evtable="EVENTS" scfile=/scratch/kocevski/905575/ft2_4FGL_J1246.7-2548_daily_bin1486.fits sctable="SC_DATA" outfile=/scratch/kocevski/905575/ltcube_624499201_624758401_4FGL_J1246.7-2548_daily_bin1486.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/905575/ft2_4FGL_J1246.7-2548_daily_bin1486.fits
.....................!
real 11.81
user 11.47
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/905575/ft1_filtered_4FGL_J1246.7-2548_daily_bin1486.fits evtable="EVENTS" scfile=/scratch/kocevski/905575/ft2_4FGL_J1246.7-2548_daily_bin1486.fits sctable="SC_DATA" expcube=/scratch/kocevski/905575/ltcube_624499201_624758401_4FGL_J1246.7-2548_daily_bin1486.fits outfile=/scratch/kocevski/905575/expmap_624499201_624758401_4FGL_J1246.7-2548_daily_bin1486.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/905575/ltcube_624499201_624758401_4FGL_J1246.7-2548_daily_bin1486.fits
.....................!
real 190.40
user 185.42
sys 4.66

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/905575/ft1_filtered_4FGL_J1246.7-2548_daily_bin1486.fits scfile=/scratch/kocevski/905575/ft2_4FGL_J1246.7-2548_daily_bin1486.fits outfile=/scratch/kocevski/905575/cmap_624499201_624758401_4FGL_J1246.7-2548_daily_bin1486.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/905575/ft1_filtered_4FGL_J1246.7-2548_daily_bin1486.fits scfile=/scratch/kocevski/905575/ft2_4FGL_J1246.7-2548_daily_bin1486.fits outfile=/scratch/kocevski/905575/cmap_HighResolution_624499201_624758401_4FGL_J1246.7-2548_daily_bin1486.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/905575/ft1_filtered_4FGL_J1246.7-2548_daily_bin1486.fits evtable="EVENTS" scfile=/scratch/kocevski/905575/ft2_4FGL_J1246.7-2548_daily_bin1486.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/905575/Model_4FGL_J1246.7-2548_daily_bin1486.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/905575/ft1_filtered_4FGL_J1246.7-2548_daily_bin1486.fits.....................!
real 136.01
user 134.56
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.783       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11861E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    53.319       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.373       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10361E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16182E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.691       1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.209       1.0000         .10000E-03   10000.    
    11 'norm      '    5.9326       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .54800E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.1750       1.0000         .10000E-03   10000.    
    16 'norm      '    4.3225       1.0000         .10000E-03   10000.    
    17 'norm      '    .90575       1.0000         .10000E-03   10000.    
    18 'norm      '    1.5471       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11180E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.548       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3716       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0657       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=   8159.816     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2413 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.864        46.429       -.25179E-05    .43862E-04
   2  Prefactor     .10000E-03    9.1423        .31349E-06** at limit **
   3  norm          .10000E-03    1.8728        .15786E-06** at limit **
   4  Prefactor     .10000E-03    3.6766       -.45352E-06** at limit **
   5  Prefactor     53.319        46.563       -.87729E-06   -.22852E-03
   6  Prefactor     18.445        34.298        .99568E-06   -.80002E-04
   7  Prefactor     .10000E-03    11.407       -.25623E-06** at limit **
   8  Prefactor     .10014E-03    365.89       -.32173E-05** at limit **
   9  Prefactor     14.731        24.951        .25399E-05   -.12061E-03
  10  Prefactor     20.212        16.305        .22703E-06   -.10292E-03
  11  norm          5.9325        1.6613        .40846E-07   -.56462E-03
  12  Prefactor     .10000E-03    32.523       -.72468E-07** at limit **
  13  norm          .10008E-03    5.6660       -.20147E-05** at limit **
  14  norm          .10000E-03    6.8374        .23688E-06** at limit **
  15  Prefactor     8.1761        6.0555        .16338E-06   -.55492E-04
  16  norm          4.3242        5.1772       -.10766E-06   -.25591E-04
  17  norm          .90379        1.7693        .12463E-06    .10564E-03
  18  norm          1.5465        6.0199        .13763E-04   -.94445E-04
  19  Prefactor     .10000E-03    15.171        .12914E-06** at limit **
  20  Prefactor     15.551        13.202        .14707E-06   -.13770E-04
  21  Normalizat    1.3716        .27330        .13172E-05   -.25378E-03
  22  Prefactor     1.0657        .12036       -.26112E-05   -.90703E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.8642
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.3187
  Prefactor  = 18.4454
  Prefactor  = 0.0001
  Prefactor  = 0.000100141
  Prefactor  = 14.7315
  Prefactor  = 20.212
  norm       = 5.93251
  Prefactor  = 0.0001
  norm       = 0.000100084
  norm       = 0.0001
  Prefactor  = 8.17613
  norm       = 4.32422
  norm       = 0.903789
  norm       = 1.54651
  Prefactor  = 0.0001
  Prefactor  = 15.551
  Normalizat = 1.37163
  Prefactor  = 1.06566
 **********
 **   18 **HESSE 
 **********

 FCN=   8159.816     FROM HESSE     STATUS=OK           348 CALLS     2761 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.864        46.290        .72216E-04   -1.4596    
   2  Prefactor     .10000E-03    9.2325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.8876        .12072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.1507        .31947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     53.319        46.569        .54929E-04   -1.4246    
   6  Prefactor     18.445        33.137        .93440E-04   -1.4849    
   7  Prefactor     .10000E-03    11.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10014E-03    379.72        .40820E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.731        24.968        .10450E-03   -1.4940    
  10  Prefactor     20.212        16.326        .89098E-04   -1.4809    
  11  norm          5.9325        1.6607        .58489E-04   -1.5221    
  12  Prefactor     .10000E-03    32.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10008E-03    52.712        .40648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    6.9904        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.1761        6.0211        .14022E-03   -1.5136    
  16  norm          4.3242        5.1691        .19376E-03   -1.5292    
  17  norm          .90379        1.3219        .16350E-02   -1.5518    
  18  norm          1.5465        6.0442        .17128E-02   -1.5459    
  19  Prefactor     .10000E-03    15.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.551        13.202        .10157E-03   -1.4919    
  21  Normalizat    1.3716        .31730        .39157E-03   -.81453    
  22  Prefactor     1.0657        .14044        .19611E-03   -.90572    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81382e-09
Minuit parameter uncertainties:
  1  46.3434
  2  8.67773e-05
  3  1.31511e-05
  4  4.85304e-05
  5  46.6009
  6  33.1697
  7  4.0978e-05
  8  0.0147278
  9  24.9856
  10  16.3292
  11  1.6607
  12  3.78316e-05
  13  0.00421606
  14  4.93563e-05
  15  6.02159
  16  5.16966
  17  1.32191
  18  6.04662
  19  9.47715e-06
  20  13.2047
  21  0.317759
  22  0.140488
Done.

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

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  5.933e+00  1.661e+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.066e+00  1.405e-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.372e+00  3.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 32.75
Ra Dec: 191.689 -25.802
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 2.60e-07 +/- 7.26e-08
Energy Flux (Fixed Index): 9.96e-05 +/- 2.79e-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) = 8159.7014062
delta logL = 0.11508963185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8159.70039457
delta logL = 0.116101255547

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6581       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3623       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3403       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0739       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=   8159.700     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      262 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6580        1.7277        .55592E-04    .39735E-02
   2  alpha         2.3623        .31288        .88331E-02    .22268E-03
   3  Normalizat    1.3401        .31637        .39517E-03   -.54086E-05
   4  Prefactor     1.0739        .14039        .19539E-03   -.13202E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.65799
  alpha      = 2.36233
  Normalizat = 1.34015
  Prefactor  = 1.07394
 **********
 **   18 **HESSE 
 **********

 FCN=   8159.700     FROM HESSE     STATUS=OK            23 CALLS      285 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6580        1.7062        .11118E-04   -1.5232    
   2  alpha         2.3623        .30877        .35332E-03   -.55096E-01
   3  Normalizat    1.3401        .31644        .15807E-04   -.82376    
   4  Prefactor     1.0739        .14045        .39078E-04   -.90304    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.83928e-10
Minuit parameter uncertainties:
  1  1.70625
  2  0.309559
  3  0.316896
  4  0.140495
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/905575': 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) = 8159.70039441
delta logL = 0.116101420265

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  5.658e+00  1.706e+00  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  2.362e+00  3.096e-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.074e+00  1.405e-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.340e+00  3.169e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 32.93
Ra Dec: 191.689 -25.802
Photon Index (Free Index): 2.36 +/- 0.31
Photon Flux (Free Index): 2.89e-07 +/- 9.90e-08
Energy Flux (Free Index): 9.48e-05 +/- 2.73e-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/905575/cmap_HighResolution_624499201_624758401_4FGL_J1246.7-2548_daily_bin1486.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.60e-07', energy_flux2='9.48e-05', photon_flux_error='7.26e-08', dlogl='1.16e-01', energy_flux='9.96e-05', photon_flux2='2.89e-07', job_status='DONE', time_completed='2021-09-06 05:12:34.530429', photon_index_error2='0.31', photon_index2='2.36', ts='32.75', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='2.73e-05', EG='1.37', time_epoch_completed='1630930354.53', return_code='0', job_id='905575', GAL2='1.07', EG2='1.34', return_code2='0', energy_flux_error='2.79e-05', photon_flux_error2='9.90e-08', ts2='32.93', photon_index='2.21' WHERE bin_id='1486' AND source_name='4FGL J1246.7-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:12:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 905575: <4FGL_J1246.7-2548_daily_bin1486> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1246.7-2548_daily_bin1486 191.689 -25.8018 624499201 624758401 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 :                                   752.10 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            986 sec.

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

