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


Performing analysis on: 4FGL_J1246.7-2548_daily_bin1462
RA = 191.689, Dec = -25.8018
tmin = 618278401, tmax = 618537601
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='905541', job_status='RUN', time_executed='2021-09-06 04:56:15.750216', time_epoch_executed='1630929375.75' WHERE source_name='4FGL J1246.7-2548' and cadence='daily' and bin_id='1462'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/905541

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/905541/ft1_4FGL_J1246.7-2548_daily_bin1462.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/905541/ft2_4FGL_J1246.7-2548_daily_bin1462.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/905541/ft1_4FGL_J1246.7-2548_daily_bin1462.fits outfile=/scratch/kocevski/905541/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1462.fits ra=191.689 dec=-25.8018 rad=12.0 tmin=618278401.0 tmax=618537601.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.01
user 2.77
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/905541/ft1_filtered_4FGL_J1246.7-2548_daily_bin1462.fits" evtable="EVENTS" scfile=/scratch/kocevski/905541/ft2_4FGL_J1246.7-2548_daily_bin1462.fits sctable="SC_DATA" outfile=/scratch/kocevski/905541/ltcube_618278401_618537601_4FGL_J1246.7-2548_daily_bin1462.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/905541/ft2_4FGL_J1246.7-2548_daily_bin1462.fits
.....................!
real 9.35
user 9.06
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/905541/ft1_filtered_4FGL_J1246.7-2548_daily_bin1462.fits evtable="EVENTS" scfile=/scratch/kocevski/905541/ft2_4FGL_J1246.7-2548_daily_bin1462.fits sctable="SC_DATA" expcube=/scratch/kocevski/905541/ltcube_618278401_618537601_4FGL_J1246.7-2548_daily_bin1462.fits outfile=/scratch/kocevski/905541/expmap_618278401_618537601_4FGL_J1246.7-2548_daily_bin1462.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/905541/ltcube_618278401_618537601_4FGL_J1246.7-2548_daily_bin1462.fits
.....................!
real 150.85
user 146.10
sys 4.31

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/905541/ft1_filtered_4FGL_J1246.7-2548_daily_bin1462.fits scfile=/scratch/kocevski/905541/ft2_4FGL_J1246.7-2548_daily_bin1462.fits outfile=/scratch/kocevski/905541/cmap_618278401_618537601_4FGL_J1246.7-2548_daily_bin1462.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.65
user 0.31
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/905541/ft1_filtered_4FGL_J1246.7-2548_daily_bin1462.fits scfile=/scratch/kocevski/905541/ft2_4FGL_J1246.7-2548_daily_bin1462.fits outfile=/scratch/kocevski/905541/cmap_HighResolution_618278401_618537601_4FGL_J1246.7-2548_daily_bin1462.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.58
user 0.31
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/905541/ft1_filtered_4FGL_J1246.7-2548_daily_bin1462.fits evtable="EVENTS" scfile=/scratch/kocevski/905541/ft2_4FGL_J1246.7-2548_daily_bin1462.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/905541/Model_4FGL_J1246.7-2548_daily_bin1462.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/905541/ft1_filtered_4FGL_J1246.7-2548_daily_bin1462.fits.....................!
real 163.76
user 155.31
sys 1.02

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2045       1.0000         .10000E-03   10000.    
     2 'Prefactor '    46.016       1.0000         .10000E-03   10000.    
     3 'norm      '    1.0639       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .20315E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4493       1.0000         .10000E-03   10000.    
     6 'Prefactor '    71.304       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10742E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .97214       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10617E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .61717       1.0000         .10000E-03   10000.    
    11 'norm      '    3.6379       1.0000         .10000E-03   10000.    
    12 'Prefactor '    88.345       1.0000         .10000E-03   10000.    
    13 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10149E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.0672       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .84306       1.0000         .10000E-03   10000.    
    18 'norm      '    3.5446       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .93394       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0296       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=   12161.23     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2466 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1962        168.63        .53291E-05   -.47737E-05
   2  Prefactor     45.968        20.298       -.31316E-05   -.53921E-03
   3  norm          1.0793        6.5133        .70853E-05   -.66141E-04
   4  Prefactor     .10002E-03    1.9259       -.62941E-06** at limit **
   5  Prefactor     2.4503        43.720       -.61969E-05   -.95189E-04
   6  Prefactor     71.333        25.249       -.89160E-06   -.40619E-03
   7  Prefactor     .10000E-03    8.3175       -.12096E-06** at limit **
   8  Prefactor     .90940        16.065       -.22301E-05    .46608E-03
   9  Prefactor     .10000E-03    38.214       -.54456E-06** at limit **
  10  Prefactor     .62347        4.2381       -.15284E-06    .60467E-04
  11  norm          3.6381        .94083       -.76889E-08    .15142E-03
  12  Prefactor     88.205        51.911       -.35394E-05   -.16755E-03
  13  norm          .10000E-03    1.8644       -.11097E-07** at limit **
  14  norm          .10000E-03    3.8495       -.97897E-06** at limit **
  15  Prefactor     7.0720        4.1489        .10113E-05   -.77298E-03
  16  norm          .10000E-03    1.2642        .78231E-07** at limit **
  17  norm          .84264        1.3686       -.12108E-06   -.39342E-03
  18  norm          3.5429        3.7543        .21686E-06   -.19206E-03
  19  Prefactor     .10000E-03    16.244        .19782E-07** at limit **
  20  Prefactor     .10000E-03    4.6712        .10264E-06** at limit **
  21  Normalizat    .93363        .19187        .10117E-05    .31302E-04
  22  Prefactor     1.0297        .88283E-01   -.23482E-06    .26261E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.19617
  Prefactor  = 45.9676
  norm       = 1.07929
  Prefactor  = 0.000100017
  Prefactor  = 2.4503
  Prefactor  = 71.3331
  Prefactor  = 0.0001
  Prefactor  = 0.909396
  Prefactor  = 0.0001
  Prefactor  = 0.623467
  norm       = 3.63811
  Prefactor  = 88.2053
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.07199
  norm       = 0.0001
  norm       = 0.842639
  norm       = 3.54293
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.933629
  Prefactor  = 1.02967
 **********
 **   18 **HESSE 
 **********

 FCN=   12161.23     FROM HESSE     STATUS=OK           350 CALLS     2816 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1962        167.99        .27709E-03   -1.5412    
   2  Prefactor     45.968        20.060        .59106E-04   -1.4351    
   3  norm          1.0793        6.5824        .42283E-03   -1.5500    
   4  Prefactor     .10002E-03    5.3581        .28600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.4503        44.951        .26138E-03   -1.5395    
   6  Prefactor     71.333        25.380        .47541E-04   -1.4017    
   7  Prefactor     .10000E-03    8.3698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .90940        151.49        .83243E-02   -1.5517    
   9  Prefactor     .10000E-03    39.289        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .62347        16.873        .43661E-02   -1.5550    
  11  norm          3.6381        .93987        .52039E-04   -1.5326    
  12  Prefactor     88.205        51.671        .21373E-03   -1.3827    
  13  norm          .10000E-03    1.8778        .14704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.9644        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.0720        4.1045        .75450E-03   -1.5176    
  16  norm          .10000E-03    1.2770        .12105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .84264        1.0027        .15965E-02   -1.5524    
  18  norm          3.5429        3.7479        .21255E-03   -1.5331    
  19  Prefactor     .10000E-03    16.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.7056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .93363        .22453        .38354E-03   -.95288    
  22  Prefactor     1.0297        .10501        .17224E-03   -.91747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05725e-08
Minuit parameter uncertainties:
  1  38.5273
  2  20.0631
  3  5.33139
  4  0.000606509
  5  21.0078
  6  25.3842
  7  5.74611e-05
  8  23.5344
  9  0.00018832
  10  6.4884
  11  0.939872
  12  51.6977
  13  1.15532e-06
  14  3.2267e-05
  15  4.10469
  16  2.02425e-06
  17  1.00276
  18  3.74813
  19  2.13358e-05
  20  4.37814e-06
  21  0.22476
  22  0.105028
Done.

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

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  3.638e+00  9.399e-01  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.030e+00  1.050e-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.336e-01  2.248e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 37.90
Ra Dec: 191.689 -25.802
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 1.59e-07 +/- 4.11e-08
Energy Flux (Fixed Index): 6.11e-05 +/- 1.58e-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) = 12160.8298568
delta logL = 0.401167452967

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12160.8167142
delta logL = 0.414310009177

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2256       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4766       1.0000          .0000       5.0000    
     3 'Normalizat'    .89400       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0415       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=   12160.82     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      236 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2256        10.342        .56388E-02   -.77332E-03
   2  alpha         2.4766        3.6258        .22005        .17327E-05
   3  Normalizat    .89400        .12937        .88230E-01   -.17281E-04
   4  Prefactor     1.0415        .46742E-01    .40433E-01   -.16157E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.22555
  alpha      = 2.47659
  Normalizat = 0.894003
  Prefactor  = 1.04153
 **********
 **   18 **HESSE 
 **********

 FCN=   12160.82     FROM HESSE     STATUS=OK            31 CALLS      267 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2256        1.0162        .46581E-04   -1.5349    
   2  alpha         2.4766        .30103        .90966E-02   -.93625E-02
   3  Normalizat    .89400        .22510        .39071E-03   -.96671    
   4  Prefactor     1.0415        .10492        .17130E-03   -.91358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.97938e-11
Minuit parameter uncertainties:
  1  1.01617
  2  0.301762
  3  0.225334
  4  0.104942
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/905541': 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) = 12160.8167142
delta logL = 0.414310010745

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  3.226e+00  1.016e+00  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  2.477e+00  3.018e-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.042e+00  1.049e-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:  8.940e-01  2.253e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 38.72
Ra Dec: 191.689 -25.802
Photon Index (Free Index): 2.48 +/- 0.30
Photon Flux (Free Index): 1.87e-07 +/- 5.37e-08
Energy Flux (Free Index): 5.53e-05 +/- 1.49e-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/905541/cmap_HighResolution_618278401_618537601_4FGL_J1246.7-2548_daily_bin1462.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.59e-07', energy_flux2='5.53e-05', photon_flux_error='4.11e-08', dlogl='4.14e-01', energy_flux='6.11e-05', photon_flux2='1.87e-07', job_status='DONE', time_completed='2021-09-06 05:10:11.182446', photon_index_error2='0.30', photon_index2='2.48', ts='37.90', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.49e-05', EG='0.93', time_epoch_completed='1630930211.18', return_code='0', job_id='905541', GAL2='1.04', EG2='0.89', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='5.37e-08', ts2='38.72', photon_index='2.21' WHERE bin_id='1462' AND source_name='4FGL J1246.7-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:10:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 905541: <4FGL_J1246.7-2548_daily_bin1462> in cluster <slac> Done

Job <4FGL_J1246.7-2548_daily_bin1462> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 04:56:07 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 04:56:08 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:56:08 2021
Terminated at Mon Sep  6 05:10:11 2021
Results reported at Mon Sep  6 05:10:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1246.7-2548_daily_bin1462 191.689 -25.8018 618278401 618537601 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 :                                   819.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             386.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            844 sec.

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

