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


Performing analysis on: 4FGL_J1246.7-2548_daily_bin555
RA = 191.689, Dec = -25.8018
tmin = 383184001, tmax = 383443201
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='900453', job_status='RUN', time_executed='2021-09-06 04:44:13.313384', time_epoch_executed='1630928653.31' WHERE source_name='4FGL J1246.7-2548' and cadence='daily' and bin_id='555'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/900453

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/900453/ft1_4FGL_J1246.7-2548_daily_bin555.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/900453/ft2_4FGL_J1246.7-2548_daily_bin555.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/900453/ft1_4FGL_J1246.7-2548_daily_bin555.fits outfile=/scratch/kocevski/900453/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin555.fits ra=191.689 dec=-25.8018 rad=12.0 tmin=383184001.0 tmax=383443201.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.56
user 3.26
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/900453/ft2_4FGL_J1246.7-2548_daily_bin555.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/900453/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin555.fits evtable="EVENTS" outfile="/scratch/kocevski/900453/ft1_filtered_4FGL_J1246.7-2548_daily_bin555.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/900453/ft1_filtered_4FGL_J1246.7-2548_daily_bin555.fits" evtable="EVENTS" scfile=/scratch/kocevski/900453/ft2_4FGL_J1246.7-2548_daily_bin555.fits sctable="SC_DATA" outfile=/scratch/kocevski/900453/ltcube_383184001_383443201_4FGL_J1246.7-2548_daily_bin555.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/900453/ft2_4FGL_J1246.7-2548_daily_bin555.fits
.....................!
real 12.21
user 11.79
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/900453/ft1_filtered_4FGL_J1246.7-2548_daily_bin555.fits evtable="EVENTS" scfile=/scratch/kocevski/900453/ft2_4FGL_J1246.7-2548_daily_bin555.fits sctable="SC_DATA" expcube=/scratch/kocevski/900453/ltcube_383184001_383443201_4FGL_J1246.7-2548_daily_bin555.fits outfile=/scratch/kocevski/900453/expmap_383184001_383443201_4FGL_J1246.7-2548_daily_bin555.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/900453/ltcube_383184001_383443201_4FGL_J1246.7-2548_daily_bin555.fits
.....................!
real 192.00
user 187.57
sys 4.01

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/900453/ft1_filtered_4FGL_J1246.7-2548_daily_bin555.fits scfile=/scratch/kocevski/900453/ft2_4FGL_J1246.7-2548_daily_bin555.fits outfile=/scratch/kocevski/900453/cmap_383184001_383443201_4FGL_J1246.7-2548_daily_bin555.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/900453/ft1_filtered_4FGL_J1246.7-2548_daily_bin555.fits scfile=/scratch/kocevski/900453/ft2_4FGL_J1246.7-2548_daily_bin555.fits outfile=/scratch/kocevski/900453/cmap_HighResolution_383184001_383443201_4FGL_J1246.7-2548_daily_bin555.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/900453/ft1_filtered_4FGL_J1246.7-2548_daily_bin555.fits evtable="EVENTS" scfile=/scratch/kocevski/900453/ft2_4FGL_J1246.7-2548_daily_bin555.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/900453/Model_4FGL_J1246.7-2548_daily_bin555.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/900453/ft1_filtered_4FGL_J1246.7-2548_daily_bin555.fits.....................!
real 114.73
user 113.27
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.433       1.0000         .10000E-03   10000.    
     3 'norm      '    .15742E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10452E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2837       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10777E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3841       1.0000         .10000E-03   10000.    
    11 'norm      '    2.5022       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.3928       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .51183       1.0000         .10000E-03   10000.    
    17 'norm      '    1.5757       1.0000         .10000E-03   10000.    
    18 'norm      '    1.5003       1.0000         .10000E-03   10000.    
    19 'Prefactor '    40.378       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .90142       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1080       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=   7091.852     FROM MIGRAD    STATUS=CONVERGED    493 CALLS     2369 TOTAL
                     EDM=   .23E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.933        .56478E-05** at limit **
   2  Prefactor     30.446        21.257       -.61799E-06   -.64366E-04
   3  norm          .10000E-03    9.1374        .29786E-06** at limit **
   4  Prefactor     .10000E-03    9.9874       -.32010E-06** at limit **
   5  Prefactor     1.2092        170.17        .63218E-05   -.49027E-05
   6  Prefactor     .10000E-03    25.981       -.21629E-05** at limit **
   7  Prefactor     .10000E-03    7.1774       -.83003E-07** at limit **
   8  Prefactor     .10000E-03    15.435        .38367E-06** at limit **
   9  Prefactor     .10000E-03    60.719       -.73189E-05** at limit **
  10  Prefactor     2.3844        6.3156        .36810E-05   -.69949E-05
  11  norm          2.5023        1.2325        .91635E-08    .60148E-04
  12  Prefactor     .10000E-03    127.83        .60983E-05** at limit **
  13  norm          .10000E-03    2.3306        .34881E-08** at limit **
  14  norm          8.3924        7.6627       -.24861E-06   -.99291E-04
  15  Prefactor     .10000E-03    5.0604        .57691E-08** at limit **
  16  norm          .51442        2.8527       -.55554E-07   -.35104E-04
  17  norm          1.5765        3.0680        .12885E-06   -.90639E-05
  18  norm          1.5013        6.5897        .60668E-06   -.37560E-05
  19  Prefactor     40.389        51.719       -.12496E-05   -.24815E-05
  20  Prefactor     .10000E-03    6.2732        .10705E-06** at limit **
  21  Normalizat    .90121        .27723        .47454E-06    .46631E-04
  22  Prefactor     1.1080        .12387       -.87918E-07    .14215E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 30.4462
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.20918
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.38444
  norm       = 2.5023
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.39243
  Prefactor  = 0.0001
  norm       = 0.514419
  norm       = 1.57648
  norm       = 1.5013
  Prefactor  = 40.3892
  Prefactor  = 0.0001
  Normalizat = 0.901207
  Prefactor  = 1.10799
 **********
 **   18 **HESSE 
 **********

 FCN=   7091.852     FROM HESSE     STATUS=OK           342 CALLS     2711 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     30.446        21.052        .72629E-04   -1.4604    
   3  norm          .10000E-03    9.3528        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.384        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.2092        174.47        .39148E-03   -1.5488    
   6  Prefactor     .10000E-03    26.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.1805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    61.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.3844        6.3163        .13264E-02   -1.5399    
  11  norm          2.5023        1.2308        .62573E-04   -1.5392    
  12  Prefactor     .10000E-03    128.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.3329        .12555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.3924        7.6165        .13838E-03   -1.5128    
  15  Prefactor     .10000E-03    5.1040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .51442        11.224        .26945E-02   -1.5565    
  17  norm          1.5765        3.0426        .19588E-03   -1.5457    
  18  norm          1.5013        6.5710        .34961E-03   -1.5463    
  19  Prefactor     40.389        51.781        .63081E-04   -1.4436    
  20  Prefactor     .10000E-03    6.2788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .90121        .31998        .42379E-03   -.96418    
  22  Prefactor     1.1080        .14511        .17426E-03   -.89212    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06123e-08
Minuit parameter uncertainties:
  1  3.79719e-05
  2  21.0573
  3  1.959e-05
  4  1.10664e-06
  5  29.135
  6  1.09721e-05
  7  4.91854e-06
  8  4.3347e-06
  9  0.000161131
  10  6.31806
  11  1.23077
  12  8.5383e-05
  13  6.52215e-07
  14  7.61734
  15  2.1622e-06
  16  4.80635
  17  3.04289
  18  6.28269
  19  51.8385
  20  9.59156e-06
  21  0.320654
  22  0.145162
Done.

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

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  2.502e+00  1.231e+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.108e+00  1.452e-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:  9.012e-01  3.207e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.41
Ra Dec: 191.689 -25.802
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 1.09e-07 +/- 5.38e-08
Energy Flux (Fixed Index): 4.20e-05 +/- 2.07e-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) = 7091.36811956
delta logL = 0.484065336743

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7091.19650548
delta logL = 0.655679423997

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3493       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4131       1.0000          .0000       5.0000    
     3 'Normalizat'    .95595       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1056       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=   7091.197     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      209 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3483        .96948        .94185E-02    .78703E-03
   2  alpha         1.4122        .40987        .31578       -.87709E-04
   3  Normalizat    .95587        .26831        .93281E-01    .13258E-04
   4  Prefactor     1.1056        .12166        .37378E-01    .87798E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.34834
  alpha      = 1.41218
  Normalizat = 0.955869
  Prefactor  = 1.10558
 **********
 **   18 **HESSE 
 **********

 FCN=   7091.197     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3483        1.7141        .58998E-04   -1.5476    
   2  alpha         1.4122        .75957        .12972E-01   -.45018    
   3  Normalizat    .95587        .31401        .41318E-03   -.94524    
   4  Prefactor     1.1056        .14332        .17465E-03   -.89289    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.72381e-11
Minuit parameter uncertainties:
  1  1.71416
  2  0.774781
  3  0.314614
  4  0.143366
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/900453': 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) = 7091.19650369
delta logL = 0.655681213962

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  1.348e+00  1.714e+00  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  1.412e+00  7.748e-01  0.000e+00  5.000e+00 ( 1.000e+00)
277         beta:  1.173e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
278           Eb:  6.582e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  1.106e+00  1.434e-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:  9.559e-01  3.146e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.72
Ra Dec: 191.689 -25.802
Photon Index (Free Index): 1.41 +/- 0.77
Photon Flux (Free Index): 3.46e-08 +/- 4.86e-08
Energy Flux (Free Index): 5.50e-05 +/- 4.65e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/900453/cmap_HighResolution_383184001_383443201_4FGL_J1246.7-2548_daily_bin555.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.09e-07', energy_flux2='5.50e-05', photon_flux_error='5.38e-08', dlogl='6.56e-01', energy_flux='4.20e-05', photon_flux2='3.46e-08', job_status='DONE', time_completed='2021-09-06 04:55:35.818637', photon_index_error2='0.77', photon_index2='1.41', ts='14.41', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='4.65e-05', EG='0.90', time_epoch_completed='1630929335.82', return_code='0', job_id='900453', GAL2='1.11', EG2='0.96', return_code2='0', energy_flux_error='2.07e-05', photon_flux_error2='4.86e-08', ts2='15.72', photon_index='2.21' WHERE bin_id='555' AND source_name='4FGL J1246.7-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 04:55:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 900453: <4FGL_J1246.7-2548_daily_bin555> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1246.7-2548_daily_bin555 191.689 -25.8018 383184001 383443201 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 :                                   678.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             280.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            914 sec.

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

