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


Performing analysis on: 4FGL_J1246.7-2548_daily_bin1480
RA = 191.689, Dec = -25.8018
tmin = 622944001, tmax = 623203201
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='905566', job_status='RUN', time_executed='2021-09-06 04:57:55.996105', time_epoch_executed='1630929476.0' WHERE source_name='4FGL J1246.7-2548' and cadence='daily' and bin_id='1480'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/905566

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/905566/ft1_4FGL_J1246.7-2548_daily_bin1480.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/905566/ft2_4FGL_J1246.7-2548_daily_bin1480.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/905566/ft1_4FGL_J1246.7-2548_daily_bin1480.fits outfile=/scratch/kocevski/905566/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1480.fits ra=191.689 dec=-25.8018 rad=12.0 tmin=622944001.0 tmax=623203201.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.05
user 2.81
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/905566/ft1_filtered_4FGL_J1246.7-2548_daily_bin1480.fits" evtable="EVENTS" scfile=/scratch/kocevski/905566/ft2_4FGL_J1246.7-2548_daily_bin1480.fits sctable="SC_DATA" outfile=/scratch/kocevski/905566/ltcube_622944001_623203201_4FGL_J1246.7-2548_daily_bin1480.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/905566/ft2_4FGL_J1246.7-2548_daily_bin1480.fits
.....................!
real 15.73
user 15.35
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/905566/ft1_filtered_4FGL_J1246.7-2548_daily_bin1480.fits evtable="EVENTS" scfile=/scratch/kocevski/905566/ft2_4FGL_J1246.7-2548_daily_bin1480.fits sctable="SC_DATA" expcube=/scratch/kocevski/905566/ltcube_622944001_623203201_4FGL_J1246.7-2548_daily_bin1480.fits outfile=/scratch/kocevski/905566/expmap_622944001_623203201_4FGL_J1246.7-2548_daily_bin1480.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/905566/ltcube_622944001_623203201_4FGL_J1246.7-2548_daily_bin1480.fits
.....................!
real 190.85
user 186.16
sys 4.27

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/905566/ft1_filtered_4FGL_J1246.7-2548_daily_bin1480.fits scfile=/scratch/kocevski/905566/ft2_4FGL_J1246.7-2548_daily_bin1480.fits outfile=/scratch/kocevski/905566/cmap_622944001_623203201_4FGL_J1246.7-2548_daily_bin1480.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/905566/ft1_filtered_4FGL_J1246.7-2548_daily_bin1480.fits scfile=/scratch/kocevski/905566/ft2_4FGL_J1246.7-2548_daily_bin1480.fits outfile=/scratch/kocevski/905566/cmap_HighResolution_622944001_623203201_4FGL_J1246.7-2548_daily_bin1480.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/905566/ft1_filtered_4FGL_J1246.7-2548_daily_bin1480.fits evtable="EVENTS" scfile=/scratch/kocevski/905566/ft2_4FGL_J1246.7-2548_daily_bin1480.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/905566/Model_4FGL_J1246.7-2548_daily_bin1480.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/905566/ft1_filtered_4FGL_J1246.7-2548_daily_bin1480.fits...............!
real 16.05
user 14.78
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10259E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10404E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11461E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10745E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    11 'norm      '    10000.       1.0000         .10000E-03   10000.    
    12 'Prefactor '    485.98       1.0000         .10000E-03   10000.    
    13 'norm      '    .21030E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    .10109E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    310.61       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11570E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.608       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    .26039       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=   157.2365     FROM MIGRAD    STATUS=CONVERGED    828 CALLS     3095 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    97.790        .12149E-02** at limit **
   2  Prefactor     .10000E-03    69.748        .10255E-02** at limit **
   3  norm          .10000E-03    28.038        .64976E-03** at limit **
   4  Prefactor     .10000E-03    19.942        .54790E-03** at limit **
   5  Prefactor     .10000E-03    581.25        .18142E-02** at limit **
   6  Prefactor     .10000E-03    167.60        .15924E-02** at limit **
   7  Prefactor     .10003E-03    452.82        .18142E-02** at limit **
   8  Prefactor     .10015E-03    824.01        .18142E-02** at limit **
   9  Prefactor     .10001E-03    1367.2        .18142E-02** at limit **
  10  Prefactor    10000.0        9989.0        .18253E-02** at limit **
  11  norm         10000.0        543.83        .18142E-02** at limit **
  12  Prefactor    10000.0        6717.0        .93012E-02** at limit **
  13  norm          .10001E-03    6429.9        .18255E-01** at limit **
  14  norm          .10000E-03    262.97        .18142E-02** at limit **
  15  Prefactor     .10000E-03    225.10        .18142E-02** at limit **
  16  norm          309.30        478.88        .11528E-03   -.30933E-04
  17  norm          .10000E-03    17.817        .51952E-03** at limit **
  18  norm          .10000E-03    23.622        .59559E-03** at limit **
  19  Prefactor     .10000E-03    64.040        .97974E-03** at limit **
  20  Prefactor     21.496        31.006        .81454E-04   -.75920E-04
  21  Normalizat    .10000E-01    .30791        .21423E-02** at limit **
  22  Prefactor     .25788        .19240        .14360E-03   -.66019E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.00010003
  Prefactor  = 0.000100153
  Prefactor  = 0.000100009
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  norm       = 0.000100011
  norm       = 0.000100003
  Prefactor  = 0.0001
  norm       = 309.305
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.4961
  Normalizat = 0.01
  Prefactor  = 0.257883
 **********
 **   18 **HESSE 
 **********

 FCN=   157.2365     FROM HESSE     STATUS=OK           320 CALLS     3415 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    97.790        .24298E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    69.748        .20511E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    28.038        .12995E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.942        .10958E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    581.25        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    167.60        .31847E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10003E-03    452.82        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10015E-03    824.01        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    1367.2        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor    10000.0        9988.9        .36507E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm         10000.0        543.80        .36285E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor    10000.0        6710.5        .18602E-02    1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10001E-03    6433.7        .36511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    262.97        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    225.10        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          309.30        478.88        .23057E-04   -1.2172    
  17  norm          .10000E-03    17.817        .10390E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    23.622        .11912E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    64.041        .19595E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     21.496        31.006        .16291E-04   -1.4780    
  21  Normalizat    .10000E-01    .30791        .42846E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .25788        .19240        .28721E-04   -1.2482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.26652e-10
Minuit parameter uncertainties:
  1  0.000719145
  2  0.000787557
  3  2.81341e-06
  4  1.21341e-07
  5  0.00287736
  6  0.000551949
  7  0.00736888
  8  0.0227855
  9  0.00717327
  10  0.121691
  11  0.00627498
  12  59.2293
  13  0.0119334
  14  0.00172855
  15  6.27213e-05
  16  485.211
  17  7.00012e-06
  18  3.32846e-05
  19  3.6691e-06
  20  31.0295
  21  8.0583e-07
  22  0.192874
Done.

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

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  1.000e+04  6.275e-03  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:  2.579e-01  1.929e-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.000e-02  8.058e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 36.83
Ra Dec: 191.689 -25.802
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 4.37e-04 +/- 2.74e-10
Energy Flux (Fixed Index): 1.68e-01 +/- 1.05e-07

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) = 123.919845633
delta logL = 33.3166798747

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 123.91251304
delta logL = 33.3240124672

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .24150       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=   123.9125     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      179 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm         10000.0        465.64        .90727E-02** at limit **
   2  alpha         5.0000        .39415E-01    .46267E-01** at limit **
   3  Normalizat    .10000E-01    .24075        .76916E-01** at limit **
   4  Prefactor     .24150        .16146        .25854E-01   -.59177E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 10000
  alpha      = 5
  Normalizat = 0.01
  Prefactor  = 0.241499
 **********
 **   18 **HESSE 
 **********

 FCN=   123.9125     FROM HESSE     STATUS=OK            25 CALLS      204 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm         10000.0        465.64        .18145E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        .39407E-01    .96839E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .10000E-01    .24180        .16906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .24150        .16081        .11428E-03   -1.2587    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56568e-11
Minuit parameter uncertainties:
  1  0.000581254
  2  2.62379e-08
  3  1.87652e-06
  4  0.161101
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/905566': 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) = 123.912502965
delta logL = 33.3240225423

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  1.000e+04  5.813e-04  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  5.000e+00  2.624e-08  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:  2.415e-01  1.611e-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.000e-02  1.877e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 105.46
Ra Dec: 191.689 -25.802
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 2.26e-02 +/- 1.62e-09
Energy Flux (Free Index): 3.09e+00 +/- 2.17e-07

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/905566/cmap_HighResolution_622944001_623203201_4FGL_J1246.7-2548_daily_bin1480.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.37e-04', energy_flux2='3.09e+00', photon_flux_error='2.74e-10', dlogl='3.33e+01', energy_flux='1.68e-01', photon_flux2='2.26e-02', job_status='DONE', time_completed='2021-09-06 05:05:36.813931', photon_index_error2='0.00', photon_index2='5.00', ts='36.83', fit_tolerance='1e-08', GAL='0.26', photon_index_error='0.00', energy_flux_error2='2.17e-07', EG='0.01', time_epoch_completed='1630929936.81', return_code='0', job_id='905566', GAL2='0.24', EG2='0.01', return_code2='0', energy_flux_error='1.05e-07', photon_flux_error2='1.62e-09', ts2='105.46', photon_index='2.21' WHERE bin_id='1480' AND source_name='4FGL J1246.7-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:05:36 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1246.7-2548_daily_bin1480 191.689 -25.8018 622944001 623203201 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 :                                   333.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             241.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   568 sec.
    Turnaround time :                            569 sec.

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

