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


Performing analysis on: 4FGL_J1246.7-2548_daily_bin1104
RA = 191.689, Dec = -25.8018
tmin = 525484801, tmax = 525744001
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='903918', job_status='RUN', time_executed='2021-09-06 04:53:14.944684', time_epoch_executed='1630929194.94' WHERE source_name='4FGL J1246.7-2548' and cadence='daily' and bin_id='1104'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/903918

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/903918/ft1_4FGL_J1246.7-2548_daily_bin1104.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/903918/ft2_4FGL_J1246.7-2548_daily_bin1104.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/903918/ft1_4FGL_J1246.7-2548_daily_bin1104.fits outfile=/scratch/kocevski/903918/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1104.fits ra=191.689 dec=-25.8018 rad=12.0 tmin=525484801.0 tmax=525744001.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.56
user 3.38
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/903918/ft2_4FGL_J1246.7-2548_daily_bin1104.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/903918/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1104.fits evtable="EVENTS" outfile="/scratch/kocevski/903918/ft1_filtered_4FGL_J1246.7-2548_daily_bin1104.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 1.09
user 0.32
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/903918/ft1_filtered_4FGL_J1246.7-2548_daily_bin1104.fits" evtable="EVENTS" scfile=/scratch/kocevski/903918/ft2_4FGL_J1246.7-2548_daily_bin1104.fits sctable="SC_DATA" outfile=/scratch/kocevski/903918/ltcube_525484801_525744001_4FGL_J1246.7-2548_daily_bin1104.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/903918/ft2_4FGL_J1246.7-2548_daily_bin1104.fits
.....................!
real 12.71
user 11.43
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/903918/ft1_filtered_4FGL_J1246.7-2548_daily_bin1104.fits evtable="EVENTS" scfile=/scratch/kocevski/903918/ft2_4FGL_J1246.7-2548_daily_bin1104.fits sctable="SC_DATA" expcube=/scratch/kocevski/903918/ltcube_525484801_525744001_4FGL_J1246.7-2548_daily_bin1104.fits outfile=/scratch/kocevski/903918/expmap_525484801_525744001_4FGL_J1246.7-2548_daily_bin1104.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/903918/ltcube_525484801_525744001_4FGL_J1246.7-2548_daily_bin1104.fits
.....................!
real 194.27
user 186.71
sys 4.59

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/903918/ft1_filtered_4FGL_J1246.7-2548_daily_bin1104.fits scfile=/scratch/kocevski/903918/ft2_4FGL_J1246.7-2548_daily_bin1104.fits outfile=/scratch/kocevski/903918/cmap_525484801_525744001_4FGL_J1246.7-2548_daily_bin1104.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.59
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/903918/ft1_filtered_4FGL_J1246.7-2548_daily_bin1104.fits scfile=/scratch/kocevski/903918/ft2_4FGL_J1246.7-2548_daily_bin1104.fits outfile=/scratch/kocevski/903918/cmap_HighResolution_525484801_525744001_4FGL_J1246.7-2548_daily_bin1104.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=191.689 yref=-25.8018 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/903918/ft1_filtered_4FGL_J1246.7-2548_daily_bin1104.fits evtable="EVENTS" scfile=/scratch/kocevski/903918/ft2_4FGL_J1246.7-2548_daily_bin1104.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/903918/Model_4FGL_J1246.7-2548_daily_bin1104.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/903918/ft1_filtered_4FGL_J1246.7-2548_daily_bin1104.fits.....................!
real 110.34
user 108.76
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10601E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.8427       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.715       1.0000         .10000E-03   10000.    
     5 'Prefactor '    85.471       1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.453       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.1373       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.5825       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.3475       1.0000         .10000E-03   10000.    
    14 'norm      '    3.6478       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .99441       1.0000         .10000E-03   10000.    
    16 'norm      '    12.175       1.0000         .10000E-03   10000.    
    17 'norm      '    .89875       1.0000         .10000E-03   10000.    
    18 'norm      '    .57032       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.1345       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.9756       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .64399       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=   6464.319     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     2357 TOTAL
                     EDM=   .55E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.249       -.88432E-06** at limit **
   2  Prefactor     .10000E-03    6.8710        .79937E-06** at limit **
   3  norm          5.8424        5.6554        .75231E-06   -.77110E-05
   4  Prefactor     12.713        10.442        .29377E-06    .23057E-04
   5  Prefactor     85.496        59.191       -.32301E-05   -.18091E-04
   6  Prefactor     29.458        55.418       -.79864E-06    .10163E-05
   7  Prefactor     .10000E-03    7.9453       -.10477E-05** at limit **
   8  Prefactor     .10000E-03    19.542       -.26800E-06** at limit **
   9  Prefactor     5.1368        44.206        .83250E-06    .27857E-05
  10  Prefactor     .10000E-03    9.2773        .66902E-06** at limit **
  11  norm          1.5827        1.1608        .24307E-07    .42668E-04
  12  Prefactor     .10000E-03    27.164        .12065E-05** at limit **
  13  norm          3.3487        10.966        .42364E-05    .78355E-05
  14  norm          3.6617        7.4084       -.12340E-06    .10972E-03
  15  Prefactor     .98424        13.100        .99521E-06   -.46713E-04
  16  norm          12.175        7.9091        .12866E-06    .13529E-04
  17  norm          .89915        2.2700       -.38694E-07   -.18287E-03
  18  norm          .58289        3.8076        .31256E-06   -.10959E-03
  19  Prefactor     6.1401        75.899       -.15186E-05    .84252E-07
  20  Prefactor     .10000E-03    6.0717       -.94491E-07** at limit **
  21  Normalizat    1.9755        .28922       -.85382E-06    .42825E-04
  22  Prefactor     .64402        .12040        .26006E-06    .58181E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.84242
  Prefactor  = 12.713
  Prefactor  = 85.4962
  Prefactor  = 29.458
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.13681
  Prefactor  = 0.0001
  norm       = 1.58268
  Prefactor  = 0.0001
  norm       = 3.3487
  norm       = 3.66167
  Prefactor  = 0.984243
  norm       = 12.1755
  norm       = 0.899146
  norm       = 0.582888
  Prefactor  = 6.14007
  Prefactor  = 0.0001
  Normalizat = 1.97554
  Prefactor  = 0.644021
 **********
 **   18 **HESSE 
 **********

 FCN=   6464.319     FROM HESSE     STATUS=OK           352 CALLS     2709 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.8895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.8424        5.6483        .83073E-03   -1.5224    
   4  Prefactor     12.713        10.415        .11234E-03   -1.4995    
   5  Prefactor     85.496        59.105        .21727E-03   -1.3856    
   6  Prefactor     29.458        55.237        .73824E-04   -1.4622    
   7  Prefactor     .10000E-03    7.9146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.1368        44.015        .17738E-03   -1.5255    
  10  Prefactor     .10000E-03    9.3094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.5827        1.1498        .70825E-04   -1.5456    
  12  Prefactor     .10000E-03    27.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.3487        10.940        .11060E-02   -1.5342    
  14  norm          3.6617        6.8031        .21151E-03   -1.5325    
  15  Prefactor     .98424        11.451        .42441E-03   -1.5510    
  16  norm          12.175        7.8734        .11480E-03   -1.5010    
  17  norm          .89915        1.9363        .18460E-02   -1.5518    
  18  norm          .58289        15.024        .29421E-02   -1.5555    
  19  Prefactor     6.1401        76.023        .16209E-03   -1.5212    
  20  Prefactor     .10000E-03    6.0764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.9755        .34228        .31609E-03   -.65165    
  22  Prefactor     .64402        .14283        .21712E-03   -1.0576    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41626e-08
Minuit parameter uncertainties:
  1  1.22034e-05
  2  1.67886e-05
  3  5.64877
  4  10.4167
  5  59.1457
  6  55.3328
  7  4.0041e-06
  8  1.79766e-05
  9  30.1027
  10  5.67608e-06
  11  1.14983
  12  7.1846e-06
  13  10.9464
  14  6.80453
  15  6.71547
  16  7.87404
  17  1.93645
  18  5.91965
  19  43.2783
  20  4.28722e-06
  21  0.342702
  22  0.142911
Done.

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

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  1.583e+00  1.150e+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:  6.440e-01  1.429e-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.976e+00  3.427e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.47
Ra Dec: 191.689 -25.802
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 6.92e-08 +/- 5.03e-08
Energy Flux (Fixed Index): 2.66e-05 +/- 1.93e-05

TS (Fixed Index): 3.47
Ra Dec: 191.689 -25.802
Photon Flux Upper Limit: 1.81e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.93e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/903918/likelihoodResults_525484801_525744001_4FGL_J1246.7-2548_daily_bin1104.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6464.31634626
delta logL = 0.00266792885486

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6464.31622388
delta logL = 0.00279031004266

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5787       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2679       1.0000          .0000       5.0000    
     3 'Normalizat'    1.9713       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64505       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=   6464.316     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      198 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5766        30.868        .84520E-02    .38600E-03
   2  alpha         2.2671        2.6766        .41378        .73615E-05
   3  Normalizat    1.9714        .15266        .71514E-01    .16776E-05
   4  Prefactor     .64504        .55505E-01    .41665E-01    .21205E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.57661
  alpha      = 2.2671
  Normalizat = 1.9714
  Prefactor  = 0.64504
 **********
 **   18 **HESSE 
 **********

 FCN=   6464.316     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5766        1.1473        .70083E-04   -1.5457    
   2  alpha         2.2671        .70528        .17669E-01   -.93294E-01
   3  Normalizat    1.9714        .33546        .31633E-03   -.65269    
   4  Prefactor     .64504        .14117        .21696E-03   -1.0572    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.22264e-11
Minuit parameter uncertainties:
  1  1.14734
  2  0.71508
  3  0.335859
  4  0.141249
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/903918': 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) = 6464.3162213
delta logL = 0.00279288732781

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  1.577e+00  1.147e+00  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  2.267e+00  7.151e-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:  6.450e-01  1.412e-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.971e+00  3.359e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.47
Ra Dec: 191.689 -25.802
Photon Index (Free Index): 2.27 +/- 0.72
Photon Flux (Free Index): 7.28e-08 +/- 6.95e-08
Energy Flux (Free Index): 2.63e-05 +/- 1.93e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/903918/cmap_HighResolution_525484801_525744001_4FGL_J1246.7-2548_daily_bin1104.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.93e-05', comment='SUCCESS', photon_flux='6.92e-08', energy_flux2='2.63e-05', photon_flux_error='5.03e-08', dlogl='2.79e-03', energy_flux='2.66e-05', photon_flux2='7.28e-08', job_status='DONE', time_completed='2021-09-06 05:05:49.643962', photon_index_error2='0.72', photon_index2='2.27', ts='3.47', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', photon_flux_upper_limit='1.81e-07', energy_flux_error2='1.93e-05', EG='1.98', time_epoch_completed='1630929949.64', return_code='0', job_id='903918', GAL2='0.65', EG2='1.97', return_code2='0', energy_flux_error='1.93e-05', photon_flux_error2='6.95e-08', ts2='3.47', photon_index='2.21' WHERE bin_id='1104' AND source_name='4FGL J1246.7-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:05:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 903918: <4FGL_J1246.7-2548_daily_bin1104> in cluster <slac> Done

Job <4FGL_J1246.7-2548_daily_bin1104> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 04:51:07 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 04:51:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 04:51:09 2021
Terminated at Mon Sep  6 05:05:50 2021
Results reported at Mon Sep  6 05:05:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1246.7-2548_daily_bin1104 191.689 -25.8018 525484801 525744001 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 :                                   721.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            883 sec.

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

