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


Performing analysis on: 4FGL_J1246.7-2548_daily_bin520
RA = 191.689, Dec = -25.8018
tmin = 374112001, tmax = 374371201
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='900403', job_status='RUN', time_executed='2021-09-06 04:40:32.652590', time_epoch_executed='1630928432.65' WHERE source_name='4FGL J1246.7-2548' and cadence='daily' and bin_id='520'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/900403

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/900403/ft1_4FGL_J1246.7-2548_daily_bin520.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/900403/ft2_4FGL_J1246.7-2548_daily_bin520.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/900403/ft1_4FGL_J1246.7-2548_daily_bin520.fits outfile=/scratch/kocevski/900403/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin520.fits ra=191.689 dec=-25.8018 rad=12.0 tmin=374112001.0 tmax=374371201.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.53
user 3.19
sys 0.21

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/900403/ft1_filtered_4FGL_J1246.7-2548_daily_bin520.fits" evtable="EVENTS" scfile=/scratch/kocevski/900403/ft2_4FGL_J1246.7-2548_daily_bin520.fits sctable="SC_DATA" outfile=/scratch/kocevski/900403/ltcube_374112001_374371201_4FGL_J1246.7-2548_daily_bin520.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/900403/ft2_4FGL_J1246.7-2548_daily_bin520.fits
.....................!
real 12.08
user 11.62
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/900403/ft1_filtered_4FGL_J1246.7-2548_daily_bin520.fits evtable="EVENTS" scfile=/scratch/kocevski/900403/ft2_4FGL_J1246.7-2548_daily_bin520.fits sctable="SC_DATA" expcube=/scratch/kocevski/900403/ltcube_374112001_374371201_4FGL_J1246.7-2548_daily_bin520.fits outfile=/scratch/kocevski/900403/expmap_374112001_374371201_4FGL_J1246.7-2548_daily_bin520.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/900403/ltcube_374112001_374371201_4FGL_J1246.7-2548_daily_bin520.fits
.....................!
real 192.13
user 185.88
sys 5.35

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

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

This is gtbin version HEAD
real 0.59
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/900403/ft1_filtered_4FGL_J1246.7-2548_daily_bin520.fits evtable="EVENTS" scfile=/scratch/kocevski/900403/ft2_4FGL_J1246.7-2548_daily_bin520.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/900403/Model_4FGL_J1246.7-2548_daily_bin520.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/900403/ft1_filtered_4FGL_J1246.7-2548_daily_bin520.fits.....................!
real 127.04
user 123.89
sys 1.61

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.871       1.0000         .10000E-03   10000.    
     3 'norm      '    .18510       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11103E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.771       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .19034E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.866       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.1722       1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.338       1.0000         .10000E-03   10000.    
    13 'norm      '    9.6609       1.0000         .10000E-03   10000.    
    14 'norm      '    15.519       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.5021       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    11.942       1.0000         .10000E-03   10000.    
    19 'Prefactor '    71.819       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.5406       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4814       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .84774       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=   7347.071     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     2345 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.796       -.17168E-08** at limit **
   2  Prefactor     19.833        18.564       -.77552E-06    .10913E-03
   3  norm          .19446        4.6235       -.12080E-05    .66821E-03
   4  Prefactor     .10000E-03    2.4612       -.50639E-08** at limit **
   5  Prefactor     .10000E-03    28.763       -.20463E-07** at limit **
   6  Prefactor     .10000E-03    39.313        .45185E-06** at limit **
   7  Prefactor     32.728        25.845       -.43766E-06    .16257E-04
   8  Prefactor     .10000E-03    161.73        .76762E-06** at limit **
   9  Prefactor     21.854        28.381        .27468E-06    .33292E-05
  10  Prefactor     .10000E-03    10.827       -.38193E-06** at limit **
  11  norm          2.1723        1.1501       -.44859E-07   -.85864E-04
  12  Prefactor     27.065        111.67        .29519E-04    .12126E-04
  13  norm          9.6626        10.674       -.86349E-07   -.78512E-05
  14  norm          15.529        9.1059       -.18394E-05   -.38194E-04
  15  Prefactor     .10000E-03    1.9397       -.15617E-06** at limit **
  16  norm          2.5027        7.5885        .15860E-06    .31857E-05
  17  norm          .10000E-03    .85835        .24909E-07** at limit **
  18  norm          11.942        7.2045        .10346E-08   -.84226E-06
  19  Prefactor     71.821        43.227       -.26784E-07    .45596E-05
  20  Prefactor     1.5407        13.241        .65071E-05    .72674E-04
  21  Normalizat    1.4814        .26123       -.10145E-06    .27159E-04
  22  Prefactor     .84770        .11321       -.35984E-06    .62308E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 19.833
  norm       = 0.194459
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.7285
  Prefactor  = 0.0001
  Prefactor  = 21.8542
  Prefactor  = 0.0001
  norm       = 2.17232
  Prefactor  = 27.0647
  norm       = 9.66264
  norm       = 15.5289
  Prefactor  = 0.0001
  norm       = 2.50267
  norm       = 0.0001
  norm       = 11.942
  Prefactor  = 71.8207
  Prefactor  = 1.54075
  Normalizat = 1.48145
  Prefactor  = 0.847696
 **********
 **   18 **HESSE 
 **********

 FCN=   7347.071     FROM HESSE     STATUS=OK           346 CALLS     2691 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.833        21.401        .89850E-04   -1.4817    
   3  norm          .19446        24.488        .30084E-02   -1.5620    
   4  Prefactor     .10000E-03    2.4766        .13129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    39.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     32.728        25.818        .69997E-04   -1.4563    
   8  Prefactor     .10000E-03    162.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.854        28.450        .85658E-04   -1.4773    
  10  Prefactor     .10000E-03    10.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.1723        1.1465        .64065E-04   -1.5413    
  12  Prefactor     27.065        111.91        .38310E-03   -1.4667    
  13  norm          9.6626        10.674        .12893E-03   -1.5086    
  14  norm          15.529        9.1039        .10167E-03   -1.4920    
  15  Prefactor     .10000E-03    1.9441        .11654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.5027        7.5608        .25835E-03   -1.5392    
  17  norm          .10000E-03    .86357        .77543E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          11.942        7.1949        .11592E-03   -1.5017    
  19  Prefactor     71.821        43.243        .47371E-04   -1.4011    
  20  Prefactor     1.5407        13.297        .17175E-02   -1.5460    
  21  Normalizat    1.4814        .30886        .35165E-03   -.78301    
  22  Prefactor     .84770        .13383        .19650E-03   -.97993    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.85235e-09
Minuit parameter uncertainties:
  1  3.65213e-06
  2  21.4089
  3  4.36508
  4  2.67352e-06
  5  2.97568e-05
  6  2.68366e-05
  7  25.8272
  8  0.000458608
  9  28.4677
  10  3.23185e-05
  11  1.14652
  12  110.425
  13  10.6765
  14  9.10469
  15  6.29964e-06
  16  7.56365
  17  5.38517e-07
  18  7.19539
  19  43.2618
  20  9.05496
  21  0.309256
  22  0.133885
Done.

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

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  2.172e+00  1.147e+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:  8.477e-01  1.339e-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.481e+00  3.093e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.01
Ra Dec: 191.689 -25.802
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 9.50e-08 +/- 5.01e-08
Energy Flux (Fixed Index): 3.65e-05 +/- 1.92e-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) = 7347.05717888
delta logL = 0.0134898540991

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7347.0561086
delta logL = 0.0145601345348

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1329       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2989       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4744       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84944       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=   7347.056     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      201 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1329        23.993        .70571E-02   -.30243E-03
   2  alpha         2.2989        3.3901        .35768        .25666E-04
   3  Normalizat    1.4743        .15462        .79600E-01    .10969E-04
   4  Prefactor     .84944        .59922E-01    .44357E-01    .85782E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.1329
  alpha      = 2.29888
  Normalizat = 1.47434
  Prefactor  = 0.849445
 **********
 **   18 **HESSE 
 **********

 FCN=   7347.056     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1329        1.1600        .62631E-04   -1.5416    
   2  alpha         2.2989        .49942        .13672E-01   -.80534E-01
   3  Normalizat    1.4743        .30338        .35231E-03   -.78502    
   4  Prefactor     .84944        .13263        .19630E-03   -.97931    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34642e-11
Minuit parameter uncertainties:
  1  1.16006
  2  0.502824
  3  0.30375
  4  0.132685
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/900403': 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) = 7347.0561086
delta logL = 0.0145601384183

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  2.133e+00  1.160e+00  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  2.299e+00  5.028e-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:  8.494e-01  1.327e-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.474e+00  3.037e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.03
Ra Dec: 191.689 -25.802
Photon Index (Free Index): 2.30 +/- 0.50
Photon Flux (Free Index): 1.02e-07 +/- 6.51e-08
Energy Flux (Free Index): 3.56e-05 +/- 1.93e-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/900403/cmap_HighResolution_374112001_374371201_4FGL_J1246.7-2548_daily_bin520.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.50e-08', energy_flux2='3.56e-05', photon_flux_error='5.01e-08', dlogl='1.46e-02', energy_flux='3.65e-05', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-06 04:52:19.721879', photon_index_error2='0.50', photon_index2='2.30', ts='8.01', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='1.93e-05', EG='1.48', time_epoch_completed='1630929139.72', return_code='0', job_id='900403', GAL2='0.85', EG2='1.47', return_code2='0', energy_flux_error='1.92e-05', photon_flux_error2='6.51e-08', ts2='8.03', photon_index='2.21' WHERE bin_id='520' AND source_name='4FGL J1246.7-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 04:52:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 900403: <4FGL_J1246.7-2548_daily_bin520> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1246.7-2548_daily_bin520 191.689 -25.8018 374112001 374371201 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 :                                   700.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             394.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   721 sec.
    Turnaround time :                            724 sec.

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

