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


Performing analysis on: 4FGL_J1246.7-2548_daily_bin1427
RA = 191.689, Dec = -25.8018
tmin = 609206401, tmax = 609465601
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='905489', job_status='RUN', time_executed='2021-09-06 04:58:16.776708', time_epoch_executed='1630929496.78' WHERE source_name='4FGL J1246.7-2548' and cadence='daily' and bin_id='1427'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/905489

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/905489/ft1_4FGL_J1246.7-2548_daily_bin1427.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/905489/ft2_4FGL_J1246.7-2548_daily_bin1427.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/905489/ft1_4FGL_J1246.7-2548_daily_bin1427.fits outfile=/scratch/kocevski/905489/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1427.fits ra=191.689 dec=-25.8018 rad=12.0 tmin=609206401.0 tmax=609465601.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 2.99
user 2.76
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/905489/ft2_4FGL_J1246.7-2548_daily_bin1427.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/905489/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1427.fits evtable="EVENTS" outfile="/scratch/kocevski/905489/ft1_filtered_4FGL_J1246.7-2548_daily_bin1427.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/905489/ft1_filtered_4FGL_J1246.7-2548_daily_bin1427.fits" evtable="EVENTS" scfile=/scratch/kocevski/905489/ft2_4FGL_J1246.7-2548_daily_bin1427.fits sctable="SC_DATA" outfile=/scratch/kocevski/905489/ltcube_609206401_609465601_4FGL_J1246.7-2548_daily_bin1427.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/905489/ft2_4FGL_J1246.7-2548_daily_bin1427.fits
.....................!
real 12.67
user 12.29
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/905489/ft1_filtered_4FGL_J1246.7-2548_daily_bin1427.fits evtable="EVENTS" scfile=/scratch/kocevski/905489/ft2_4FGL_J1246.7-2548_daily_bin1427.fits sctable="SC_DATA" expcube=/scratch/kocevski/905489/ltcube_609206401_609465601_4FGL_J1246.7-2548_daily_bin1427.fits outfile=/scratch/kocevski/905489/expmap_609206401_609465601_4FGL_J1246.7-2548_daily_bin1427.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/905489/ltcube_609206401_609465601_4FGL_J1246.7-2548_daily_bin1427.fits
.....................!
real 190.56
user 185.21
sys 4.99

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/905489/ft1_filtered_4FGL_J1246.7-2548_daily_bin1427.fits scfile=/scratch/kocevski/905489/ft2_4FGL_J1246.7-2548_daily_bin1427.fits outfile=/scratch/kocevski/905489/cmap_609206401_609465601_4FGL_J1246.7-2548_daily_bin1427.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/905489/ft1_filtered_4FGL_J1246.7-2548_daily_bin1427.fits scfile=/scratch/kocevski/905489/ft2_4FGL_J1246.7-2548_daily_bin1427.fits outfile=/scratch/kocevski/905489/cmap_HighResolution_609206401_609465601_4FGL_J1246.7-2548_daily_bin1427.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/905489/ft1_filtered_4FGL_J1246.7-2548_daily_bin1427.fits evtable="EVENTS" scfile=/scratch/kocevski/905489/ft2_4FGL_J1246.7-2548_daily_bin1427.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/905489/Model_4FGL_J1246.7-2548_daily_bin1427.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/905489/ft1_filtered_4FGL_J1246.7-2548_daily_bin1427.fits....................................!
real 19.75
user 18.47
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/905489/ft1_filtered_4FGL_J1246.7-2548_daily_bin1427.fits', '/scratch/kocevski/905489/ft2_4FGL_J1246.7-2548_daily_bin1427.fits', expMap='/scratch/kocevski/905489/expmap_609206401_609465601_4FGL_J1246.7-2548_daily_bin1427.fits', expCube='/scratch/kocevski/905489/ltcube_609206401_609465601_4FGL_J1246.7-2548_daily_bin1427.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/905489/Model_4FGL_J1246.7-2548_daily_bin1427.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/905489/ft1_filtered_4FGL_J1246.7-2548_daily_bin1427.fits
Spacecraft file(s): /scratch/kocevski/905489/ft2_4FGL_J1246.7-2548_daily_bin1427.fits
Exposure map: /scratch/kocevski/905489/expmap_609206401_609465601_4FGL_J1246.7-2548_daily_bin1427.fits
Exposure cube: /scratch/kocevski/905489/ltcube_609206401_609465601_4FGL_J1246.7-2548_daily_bin1427.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/905489/Model_4FGL_J1246.7-2548_daily_bin1427.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 459.596482129

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 455.934634181

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .86785E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    78.956       1.0000         .10000E-03   10000.    
     3 'norm      '    .11756E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.195       1.0000         .10000E-03   10000.    
     5 'Prefactor '    117.73       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12914       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .58876E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .76032E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10094E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    160.87       1.0000         .10000E-03   10000.    
    11 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9585       1.0000         .10000E-03   10000.    
    13 'norm      '    .10710E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .78389E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .27763E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .35533E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.3035       1.0000         .10000E-03   10000.    
    18 'norm      '    5.1187       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.6273       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.2961       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1249       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   455.9270     FROM MIGRAD    STATUS=CONVERGED    153 CALLS      532 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    113.23       -.49268E-04** at limit **
   2  Prefactor     77.098        65.994       -.98769E-05   -.20293E-02
   3  norm          .10000E-03    12.523       -.66264E-05** at limit **
   4  Prefactor     26.212        21.014       -.74792E-04   -.43577E-02
   5  Prefactor     124.89        171.23        .66764E-04    .98409E-02
   6  Prefactor     .10000E-03    44.900       -.24559E-05** at limit **
   7  Prefactor     .10000E-03    52.805       -.17589E-04** at limit **
   8  Prefactor     .10001E-03    71.955       -.28442E-04** at limit **
   9  Prefactor     .10020E-03    10.453       -.76385E-05** at limit **
  10  Prefactor     156.24        104.92       -.35094E-04   -.12640E-01
  11  norm          .10000E-03    6.6373        .13525E-04** at limit **
  12  Prefactor     .11846E-03    653.10       -.90385E-04** at limit **
  13  norm          .10009E-03    184.70        .36596E-04** at limit **
  14  norm          .10062E-03    87.651       -.21048E-03** at limit **
  15  Prefactor     .10063E-03    82.482        .23194E-03** at limit **
  16  norm          .10000E-03    64.375       -.27989E-04** at limit **
  17  norm          1.3035        1.1038         .0000         .0000    
  18  norm          2.5762        299.29       -.21306E-03    .76656E-02
  19  Prefactor     8.6273        1.0017         .0000         .0000    
  20  Prefactor     1.2961        1.1056         .0000         .0000    
  21  Normalizat    .10000E-01    .25659       -.60492E-05** at limit **
  22  Prefactor     1.1266        .27922        .72579E-04    .55795E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Prefactor  = 77.098
  norm       = 0.0001
  Prefactor  = 26.2123
  Prefactor  = 124.887
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.000100196
  Prefactor  = 156.241
  norm       = 0.0001
  Prefactor  = 0.00011846
  norm       = 0.000100093
  norm       = 0.000100619
  Prefactor  = 0.000100627
  norm       = 0.000100001
  norm       = 1.30348
  norm       = 2.57618
  Prefactor  = 8.62728
  Prefactor  = 1.29613
  Normalizat = 0.01
  Prefactor  = 1.12656
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   455.9270     FROM HESSE     STATUS=FAILED        73 CALLS      605 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    113.22        .94480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     77.098        60.726        .11299E-02   -1.3950    
   3  norm          .10000E-03    12.492        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     26.212        20.104        .19568E-02   -1.4684    
   5  Prefactor     124.89        188.50        .92710E-03   -1.3468    
   6  Prefactor     .10000E-03    44.869        .96493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    52.595        .93133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    81.273        .93963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10020E-03    75.633        .90735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     156.24        186.75        .79486E-03   -1.3201    
  11  norm          .10000E-03    6.6317        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .11846E-03    653.01        .45152E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10009E-03    184.73        .10358E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10062E-03    87.952        .10457E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10063E-03    83.080        .99554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    64.363        .10658E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          581.69        580.15         .0000       -1.5480    
  18  norm          2.5762        .71295       -.21306E-03   -1.5387    
  19  Prefactor     8.6273        1.0017         .0000       -1.5120    
  20  Prefactor     1.2961        1.1056         .0000       -1.5480    
  21  Normalizat    .10000E-01    .25505       -.60492E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.1266        1.1347        .72579E-04   -.88622    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.81197e-10
Minuit parameter uncertainties:
  1  0.00159567
  2  60.7751
  3  3.43845e-05
  4  20.109
  5  189.419
  6  2.00786e-05
  7  3.8653e-05
  8  0.0014076
  9  0.00771152
  10  187.46
  11  6.09362e-05
  12  0.222051
  13  0.00831599
  14  0.0147804
  15  0.0144519
  16  0.000444763
  17  1.10385
  18  0.712952
  19  1.00169
  20  1.10561
  21  6.99271e-08
  22  1.16064
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 455.926988596

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  1.000e-04  6.094e-05  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.127e+00  1.161e+00  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  6.993e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 191.689 -25.802
Photon Flux Upper Limit: 1.54e-06 ph cm-2 s-1
Energy Flux Upper Limit: 5.92e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/905489/likelihoodResults_609206401_609465601_4FGL_J1246.7-2548_daily_bin1427.txt

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) = 455.927647985
delta logL = -0.000659389352563

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 455.926988741
delta logL = -1.45225840242e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2071       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1264       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=   455.9270     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      218 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.4974        .53857E-03** at limit **
   2  alpha         1.9362        2.6495        .16606        .31168E-07
   3  Normalizat    .10000E-01    .25654        .33559E-02** at limit **
   4  Prefactor     1.1266        .26110        .17248E-03   -.10394E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.93621
  Normalizat = 0.01
  Prefactor  = 1.12656
 **********
 **   18 **HESSE 
 **********

 FCN=   455.9270     FROM HESSE     STATUS=OK            23 CALLS      241 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.9467        .10771E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9362        2.5074        .66423E-02   -.22747    
   3  Normalizat    .10000E-01    .25654        .67119E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1266        .26110        .68993E-05   -.88622    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07847e-11
Minuit parameter uncertainties:
  1  6.85163e-06
  2  336.688
  3  5.33319e-07
  4  0.261393
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/905489': 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) = 455.926988258
delta logL = 3.37241260695e-07

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  1.000e-04  6.852e-06  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  1.936e+00  3.367e+02  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.127e+00  2.614e-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  5.333e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 191.689 -25.802

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/905489/cmap_HighResolution_609206401_609465601_4FGL_J1246.7-2548_daily_bin1427.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.92e-04', job_status='DONE', photon_flux_upper_limit='1.54e-06', time_completed='2021-09-06 05:06:11.138510', job_id='905489', GAL2='1.13', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630929971.14', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.13', dlogl='3.37e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='1427' AND source_name='4FGL J1246.7-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:06:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 905489: <4FGL_J1246.7-2548_daily_bin1427> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1246.7-2548_daily_bin1427 191.689 -25.8018 609206401 609465601 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 :                                   329.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             219.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   607 sec.
    Turnaround time :                            608 sec.

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

