/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 61 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 = 7569
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1246.7-2548_daily_bin195
RA = 191.689, Dec = -25.8018
tmin = 289872001, tmax = 290131201
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='897682', job_status='RUN', time_executed='2021-09-06 04:32:31.984039', time_epoch_executed='1630927951.98' WHERE source_name='4FGL J1246.7-2548' and cadence='daily' and bin_id='195'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/897682

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/897682/ft1_4FGL_J1246.7-2548_daily_bin195.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/897682/ft2_4FGL_J1246.7-2548_daily_bin195.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/897682/ft1_4FGL_J1246.7-2548_daily_bin195.fits outfile=/scratch/kocevski/897682/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin195.fits ra=191.689 dec=-25.8018 rad=12.0 tmin=289872001.0 tmax=290131201.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.50
user 3.29
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/897682/ft2_4FGL_J1246.7-2548_daily_bin195.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/897682/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin195.fits evtable="EVENTS" outfile="/scratch/kocevski/897682/ft1_filtered_4FGL_J1246.7-2548_daily_bin195.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.52
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/897682/ft1_filtered_4FGL_J1246.7-2548_daily_bin195.fits" evtable="EVENTS" scfile=/scratch/kocevski/897682/ft2_4FGL_J1246.7-2548_daily_bin195.fits sctable="SC_DATA" outfile=/scratch/kocevski/897682/ltcube_289872001_290131201_4FGL_J1246.7-2548_daily_bin195.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/897682/ft2_4FGL_J1246.7-2548_daily_bin195.fits
.....................!
real 12.02
user 11.59
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/897682/ft1_filtered_4FGL_J1246.7-2548_daily_bin195.fits evtable="EVENTS" scfile=/scratch/kocevski/897682/ft2_4FGL_J1246.7-2548_daily_bin195.fits sctable="SC_DATA" expcube=/scratch/kocevski/897682/ltcube_289872001_290131201_4FGL_J1246.7-2548_daily_bin195.fits outfile=/scratch/kocevski/897682/expmap_289872001_290131201_4FGL_J1246.7-2548_daily_bin195.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/897682/ltcube_289872001_290131201_4FGL_J1246.7-2548_daily_bin195.fits
.....................!
real 190.94
user 185.10
sys 5.07

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/897682/ft1_filtered_4FGL_J1246.7-2548_daily_bin195.fits scfile=/scratch/kocevski/897682/ft2_4FGL_J1246.7-2548_daily_bin195.fits outfile=/scratch/kocevski/897682/cmap_289872001_290131201_4FGL_J1246.7-2548_daily_bin195.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.58
user 0.36
sys 0.15

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/897682/ft1_filtered_4FGL_J1246.7-2548_daily_bin195.fits evtable="EVENTS" scfile=/scratch/kocevski/897682/ft2_4FGL_J1246.7-2548_daily_bin195.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/897682/Model_4FGL_J1246.7-2548_daily_bin195.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/897682/ft1_filtered_4FGL_J1246.7-2548_daily_bin195.fits.....................!
real 115.00
user 113.59
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.6058       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.408       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10795E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16247E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4032       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.818       1.0000         .10000E-03   10000.    
    11 'norm      '    2.6061       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .26105E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    7.3225       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5224       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.2469       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2650       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95204       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=   7043.973     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2403 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.096       -.31087E-06** at limit **
   2  Prefactor     .10000E-03    12.693       -.94386E-07** at limit **
   3  norm          .10000E-03    1.7372        .12820E-07** at limit **
   4  Prefactor     6.6012        8.7454        .26369E-05    .97068E-03
   5  Prefactor     .10000E-03    68.923        .14964E-05** at limit **
   6  Prefactor     28.436        44.441       -.10840E-05    .15453E-03
   7  Prefactor     .10000E-03    110.00        .48045E-05** at limit **
   8  Prefactor     .10003E-03    411.02       -.53036E-05** at limit **
   9  Prefactor     3.3991        28.517        .74625E-05   -.27418E-03
  10  Prefactor     15.818        11.061        .97963E-06    .53034E-03
  11  norm          2.6060        1.3839        .33995E-07   -.11387E-03
  12  Prefactor     .10000E-03    46.390        .72045E-06** at limit **
  13  norm          .10134E-03    7.2467       -.14640E-05** at limit **
  14  norm          7.3237        5.7640        .11143E-06    .13587E-03
  15  Prefactor     1.5227        3.7167        .38484E-06   -.16101E-03
  16  norm          .10000E-03    2.3121        .75680E-08** at limit **
  17  norm          1.2470        2.3225        .23914E-06   -.16522E-03
  18  norm          .10000E-03    1.3842        .24258E-08** at limit **
  19  Prefactor     .10000E-03    14.037        .93117E-07** at limit **
  20  Prefactor     .10000E-03    9.0890        .74705E-08** at limit **
  21  Normalizat    1.2651        .26498       -.19262E-05    .11756E-03
  22  Prefactor     .95205        .11439       -.69458E-08    .98105E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.6012
  Prefactor  = 0.000100001
  Prefactor  = 28.4359
  Prefactor  = 0.000100005
  Prefactor  = 0.000100027
  Prefactor  = 3.39909
  Prefactor  = 15.8178
  norm       = 2.60601
  Prefactor  = 0.0001
  norm       = 0.000101343
  norm       = 7.32367
  Prefactor  = 1.52273
  norm       = 0.0001
  norm       = 1.24696
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.2651
  Prefactor  = 0.95205
 **********
 **   18 **HESSE 
 **********

 FCN=   7043.973     FROM HESSE     STATUS=OK           338 CALLS     2741 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    40.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.7416        .10802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.6012        9.0984        .15613E-03   -1.5194    
   5  Prefactor     .10000E-03    69.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     28.436        44.287        .75167E-04   -1.4641    
   7  Prefactor     .10000E-03    114.54        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10003E-03    427.60        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.3991        40.862        .10965E-02   -1.5339    
  10  Prefactor     15.818        11.183        .10071E-03   -1.4912    
  11  norm          2.6060        1.3774        .68171E-04   -1.5385    
  12  Prefactor     .10000E-03    46.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10134E-03    96.652        .41388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.3237        5.7345        .14822E-03   -1.5167    
  15  Prefactor     1.5227        3.6748        .24276E-03   -1.5461    
  16  norm          .10000E-03    2.3277        .12461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.2470        2.2929        .16931E-03   -1.5485    
  18  norm          .10000E-03    1.3865        .96432E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.1267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2651        .31512        .36320E-03   -.84614    
  22  Prefactor     .95205        .13809        .18311E-03   -.94345    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5516e-08
Minuit parameter uncertainties:
  1  0.000214905
  2  4.69915e-05
  3  1.90582e-06
  4  9.10031
  5  0.00044264
  6  44.3385
  7  0.00149538
  8  0.0067921
  9  23.5902
  10  11.1845
  11  1.37744
  12  0.000221754
  13  0.0228247
  14  5.73494
  15  3.67537
  16  3.64934e-06
  17  2.29304
  18  9.36795e-07
  19  1.86807e-05
  20  7.14472e-06
  21  0.315598
  22  0.138142
Done.

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

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  2.606e+00  1.377e+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:  9.521e-01  1.381e-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.265e+00  3.156e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.88
Ra Dec: 191.689 -25.802
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 1.14e-07 +/- 6.02e-08
Energy Flux (Fixed Index): 4.37e-05 +/- 2.31e-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) = 7043.40493211
delta logL = 0.568206706317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7043.39725918
delta logL = 0.575879638159

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2500       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6976       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2108       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96461       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=   7043.397     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      260 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2493        20.014        .68483E-03    .23596E-03
   2  alpha         2.6973        3.8353        .27246        .57045E-04
   3  Normalizat    1.2108        .16709        .83523E-01    .28679E-04
   4  Prefactor     .96464        .65765E-01    .45823E-01    .13261E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.24933
  alpha      = 2.69727
  Normalizat = 1.21076
  Prefactor  = 0.96464
 **********
 **   18 **HESSE 
 **********

 FCN=   7043.397     FROM HESSE     STATUS=OK            33 CALLS      293 TOTAL
                     EDM=   .65E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2493        1.3102        .27393E-04   -1.5408    
   2  alpha         2.6973        .46979        .11122E-01    .78991E-01
   3  Normalizat    1.2108        .31152        .36980E-03   -.86271    
   4  Prefactor     .96464        .13756        .18192E-03   -.93918    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.47859e-12
Minuit parameter uncertainties:
  1  1.31017
  2  0.472621
  3  0.312001
  4  0.137609
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/897682': 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) = 7043.39725831
delta logL = 0.575880510069

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  2.249e+00  1.310e+00  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  2.697e+00  4.726e-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:  9.646e-01  1.376e-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.211e+00  3.120e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.04
Ra Dec: 191.689 -25.802
Photon Index (Free Index): 2.70 +/- 0.47
Photon Flux (Free Index): 1.70e-07 +/- 8.97e-08
Energy Flux (Free Index): 4.25e-05 +/- 2.02e-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/897682/cmap_HighResolution_289872001_290131201_4FGL_J1246.7-2548_daily_bin195.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.14e-07', energy_flux2='4.25e-05', photon_flux_error='6.02e-08', dlogl='5.76e-01', energy_flux='4.37e-05', photon_flux2='1.70e-07', job_status='DONE', time_completed='2021-09-06 04:43:56.908403', photon_index_error2='0.47', photon_index2='2.70', ts='5.88', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='2.02e-05', EG='1.27', time_epoch_completed='1630928636.91', return_code='0', job_id='897682', GAL2='0.96', EG2='1.21', return_code2='0', energy_flux_error='2.31e-05', photon_flux_error2='8.97e-08', ts2='7.04', photon_index='2.21' WHERE bin_id='195' AND source_name='4FGL J1246.7-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 04:43:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 897682: <4FGL_J1246.7-2548_daily_bin195> in cluster <slac> Done

Job <4FGL_J1246.7-2548_daily_bin195> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 04:30:59 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 04:31:01 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:31:01 2021
Terminated at Mon Sep  6 04:43:57 2021
Results reported at Mon Sep  6 04:43:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1246.7-2548_daily_bin195 191.689 -25.8018 289872001 290131201 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 :                                   680.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            778 sec.

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

