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


Performing analysis on: 4FGL_J1246.7-2548_daily_bin1246
RA = 191.689, Dec = -25.8018
tmin = 562291201, tmax = 562550401
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='905264', job_status='RUN', time_executed='2021-09-06 04:59:48.225744', time_epoch_executed='1630929588.23' WHERE source_name='4FGL J1246.7-2548' and cadence='daily' and bin_id='1246'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/905264

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/905264/ft1_4FGL_J1246.7-2548_daily_bin1246.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/905264/ft2_4FGL_J1246.7-2548_daily_bin1246.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/905264/ft1_4FGL_J1246.7-2548_daily_bin1246.fits outfile=/scratch/kocevski/905264/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1246.fits ra=191.689 dec=-25.8018 rad=12.0 tmin=562291201.0 tmax=562550401.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.88
user 3.33
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/905264/ft1_filtered_4FGL_J1246.7-2548_daily_bin1246.fits" evtable="EVENTS" scfile=/scratch/kocevski/905264/ft2_4FGL_J1246.7-2548_daily_bin1246.fits sctable="SC_DATA" outfile=/scratch/kocevski/905264/ltcube_562291201_562550401_4FGL_J1246.7-2548_daily_bin1246.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/905264/ft2_4FGL_J1246.7-2548_daily_bin1246.fits
.....................!
real 12.10
user 11.62
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/905264/ft1_filtered_4FGL_J1246.7-2548_daily_bin1246.fits evtable="EVENTS" scfile=/scratch/kocevski/905264/ft2_4FGL_J1246.7-2548_daily_bin1246.fits sctable="SC_DATA" expcube=/scratch/kocevski/905264/ltcube_562291201_562550401_4FGL_J1246.7-2548_daily_bin1246.fits outfile=/scratch/kocevski/905264/expmap_562291201_562550401_4FGL_J1246.7-2548_daily_bin1246.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/905264/ltcube_562291201_562550401_4FGL_J1246.7-2548_daily_bin1246.fits
.....................!
real 191.43
user 185.33
sys 5.42

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

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/905264/ft1_filtered_4FGL_J1246.7-2548_daily_bin1246.fits scfile=/scratch/kocevski/905264/ft2_4FGL_J1246.7-2548_daily_bin1246.fits outfile=/scratch/kocevski/905264/cmap_HighResolution_562291201_562550401_4FGL_J1246.7-2548_daily_bin1246.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.56
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/905264/ft1_filtered_4FGL_J1246.7-2548_daily_bin1246.fits evtable="EVENTS" scfile=/scratch/kocevski/905264/ft2_4FGL_J1246.7-2548_daily_bin1246.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/905264/Model_4FGL_J1246.7-2548_daily_bin1246.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/905264/ft1_filtered_4FGL_J1246.7-2548_daily_bin1246.fits.....................!
real 47.42
user 45.80
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.558       1.0000         .10000E-03   10000.    
     3 'norm      '    .10089E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .22514E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13756E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    46.931       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10954E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    107.86       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11162E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.8108       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.5005       1.0000         .10000E-03   10000.    
    14 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.691       1.0000         .10000E-03   10000.    
    16 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12082E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.307       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .64432       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0622       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=   2478.314     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2335 TOTAL
                     EDM=   .95E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.160       -.32335E-06** at limit **
   2  Prefactor     10.586        29.109        .72815E-06    .51194E-04
   3  norm          .10000E-03    11.568       -.29359E-06** at limit **
   4  Prefactor     .10000E-03    12.763       -.61846E-05** at limit **
   5  Prefactor     .10000E-03    265.97        .25957E-06** at limit **
   6  Prefactor     46.755        90.926        .82551E-06    .29420E-04
   7  Prefactor     .10000E-03    38.298        .76883E-07** at limit **
   8  Prefactor     107.88        99.692       -.12246E-06    .53509E-04
   9  Prefactor     .10000E-03    55.030       -.22578E-05** at limit **
  10  Prefactor     .10000E-03    8.9281        .36230E-06** at limit **
  11  norm          7.8102        3.9735       -.29931E-07    .19182E-03
  12  Prefactor     .10000E-03    84.909       -.10456E-06** at limit **
  13  norm          7.5017        15.972        .95286E-07    .41986E-04
  14  norm          .10000E-03    5.7594        .13882E-06** at limit **
  15  Prefactor     24.693        15.877       -.11629E-06    .38906E-04
  16  norm          .10000E-03    118.50        .18901E-05** at limit **
  17  norm          .10000E-03    2.2917        .10767E-06** at limit **
  18  norm          .10000E-03    136.90        .59903E-06** at limit **
  19  Prefactor     .10000E-03    113.80       -.23117E-05** at limit **
  20  Prefactor     18.189        70.420       -.16662E-05   -.11841E-04
  21  Normalizat    .64299        .53777       -.15323E-04    .46282E-04
  22  Prefactor     1.0627        .24837        .57903E-05    .12231E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.5857
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 46.7551
  Prefactor  = 0.0001
  Prefactor  = 107.885
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.81015
  Prefactor  = 0.0001
  norm       = 7.50171
  norm       = 0.0001
  Prefactor  = 24.693
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.189
  Normalizat = 0.642994
  Prefactor  = 1.06274
 **********
 **   18 **HESSE 
 **********

 FCN=   2478.314     FROM HESSE     STATUS=OK           336 CALLS     2671 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.586        28.758        .12331E-03   -1.5057    
   3  norm          .10000E-03    11.596        .16359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.373        .17677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    266.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     46.755        91.252        .29265E-03   -1.4339    
   7  Prefactor     .10000E-03    38.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     107.88        99.473        .38726E-04   -1.3627    
   9  Prefactor     .10000E-03    55.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.9456        .14531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.8102        3.9701        .65242E-04   -1.5149    
  12  Prefactor     .10000E-03    84.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.5017        15.941        .14644E-03   -1.5160    
  14  norm          .10000E-03    5.7664        .11662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     24.693        15.848        .80615E-04   -1.4714    
  16  norm          .10000E-03    120.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.3011        .73588E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    137.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    113.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.189        70.593        .93609E-04   -1.4855    
  21  Normalizat    .64299        .54867        .49768E-03   -1.0619    
  22  Prefactor     1.0627        .25804        .18315E-03   -.90667    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07626e-10
Minuit parameter uncertainties:
  1  1.13977e-05
  2  28.7959
  3  1.263e-05
  4  0.000192871
  5  3.83828e-05
  6  91.5262
  7  1.63202e-06
  8  99.6277
  9  4.42647e-05
  10  1.23304e-05
  11  3.97023
  12  0.000280277
  13  15.9504
  14  7.64919e-06
  15  15.8507
  16  7.08954e-05
  17  5.35847e-08
  18  0.000365862
  19  0.000199673
  20  70.9195
  21  0.553428
  22  0.258342
Done.

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

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  7.810e+00  3.970e+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.063e+00  2.583e-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:  6.430e-01  5.534e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.48
Ra Dec: 191.689 -25.802
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 3.42e-07 +/- 1.74e-07
Energy Flux (Fixed Index): 1.31e-04 +/- 6.66e-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) = 2477.98011712
delta logL = 0.33353498904

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2477.9765439
delta logL = 0.337108207679

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.2312       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5858       1.0000          .0000       5.0000    
     3 'Normalizat'    .56845       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0786       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=   2477.977     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      265 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.2312        3.7399        .56951E-04    .76765E-03
   2  alpha         2.5858        .45689        .73333E-02    .54505E-04
   3  Normalizat    .56851        .54052        .52554E-03   -.25094E-05
   4  Prefactor     1.0786        .25347        .18160E-03   -.20677E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.23117
  alpha      = 2.58579
  Normalizat = 0.568508
  Prefactor  = 1.07855
 **********
 **   18 **HESSE 
 **********

 FCN=   2477.977     FROM HESSE     STATUS=OK            25 CALLS      290 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.2312        3.6961        .22780E-05   -1.5170    
   2  alpha         2.5858        .45140        .29333E-03    .34323E-01
   3  Normalizat    .56851        .54042        .21021E-04   -1.0934    
   4  Prefactor     1.0786        .25341        .36321E-04   -.90155    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13107e-10
Minuit parameter uncertainties:
  1  3.69619
  2  0.453889
  3  0.545539
  4  0.253694
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/905264': 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) = 2477.97654388
delta logL = 0.337108225476

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  7.231e+00  3.696e+00  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  2.586e+00  4.539e-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.079e+00  2.537e-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:  5.685e-01  5.455e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.16
Ra Dec: 191.689 -25.802
Photon Index (Free Index): 2.59 +/- 0.45
Photon Flux (Free Index): 4.77e-07 +/- 2.62e-07
Energy Flux (Free Index): 1.29e-04 +/- 5.89e-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/905264/cmap_HighResolution_562291201_562550401_4FGL_J1246.7-2548_daily_bin1246.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.42e-07', energy_flux2='1.29e-04', photon_flux_error='1.74e-07', dlogl='3.37e-01', energy_flux='1.31e-04', photon_flux2='4.77e-07', job_status='DONE', time_completed='2021-09-06 05:07:14.889253', photon_index_error2='0.45', photon_index2='2.59', ts='8.48', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='5.89e-05', EG='0.64', time_epoch_completed='1630930034.89', return_code='0', job_id='905264', GAL2='1.08', EG2='0.57', return_code2='0', energy_flux_error='6.66e-05', photon_flux_error2='2.62e-07', ts2='9.16', photon_index='2.21' WHERE bin_id='1246' AND source_name='4FGL J1246.7-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:07:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 905264: <4FGL_J1246.7-2548_daily_bin1246> in cluster <slac> Done

Job <4FGL_J1246.7-2548_daily_bin1246> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 04:55:45 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 04:55:46 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:55:46 2021
Terminated at Mon Sep  6 05:07:15 2021
Results reported at Mon Sep  6 05:07:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1246.7-2548_daily_bin1246 191.689 -25.8018 562291201 562550401 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 :                                   440.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             258.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   689 sec.
    Turnaround time :                            690 sec.

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

