aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 161 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7483
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1246.7-2548_daily_bin1770
RA = 191.689, Dec = -25.8018
tmin = 698112001, tmax = 698371201
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='485405', job_status='RUN', time_executed='2023-02-18 00:48:27.361527', time_epoch_executed='1676710107.36' WHERE source_name='4FGL J1246.7-2548' and cadence='daily' and bin_id='1770'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/485405

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/485405/ft1_4FGL_J1246.7-2548_daily_bin1770.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/485405/ft2_4FGL_J1246.7-2548_daily_bin1770.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/485405/ft1_4FGL_J1246.7-2548_daily_bin1770.fits outfile=/scratch/kocevski/485405/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1770.fits ra=191.689 dec=-25.8018 rad=12.0 tmin=698112001.0 tmax=698371201.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 4.33
user 4.12
sys 0.19

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

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

Number of photons that the gtmktime cut: 619

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/485405/ft1_filtered_4FGL_J1246.7-2548_daily_bin1770.fits" evtable="EVENTS" scfile=/scratch/kocevski/485405/ft2_4FGL_J1246.7-2548_daily_bin1770.fits sctable="SC_DATA" outfile=/scratch/kocevski/485405/ltcube_698112001_698371201_4FGL_J1246.7-2548_daily_bin1770.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/485405/ft2_4FGL_J1246.7-2548_daily_bin1770.fits
.....................!
real 14.84
user 14.50
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/485405/ft1_filtered_4FGL_J1246.7-2548_daily_bin1770.fits evtable="EVENTS" scfile=/scratch/kocevski/485405/ft2_4FGL_J1246.7-2548_daily_bin1770.fits sctable="SC_DATA" expcube=/scratch/kocevski/485405/ltcube_698112001_698371201_4FGL_J1246.7-2548_daily_bin1770.fits outfile=/scratch/kocevski/485405/expmap_698112001_698371201_4FGL_J1246.7-2548_daily_bin1770.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/485405/ltcube_698112001_698371201_4FGL_J1246.7-2548_daily_bin1770.fits
.....................!
real 189.06
user 184.89
sys 3.87

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_8years/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/485405/ft1_filtered_4FGL_J1246.7-2548_daily_bin1770.fits scfile=/scratch/kocevski/485405/ft2_4FGL_J1246.7-2548_daily_bin1770.fits outfile=/scratch/kocevski/485405/cmap_698112001_698371201_4FGL_J1246.7-2548_daily_bin1770.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.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/485405/ft1_filtered_4FGL_J1246.7-2548_daily_bin1770.fits scfile=/scratch/kocevski/485405/ft2_4FGL_J1246.7-2548_daily_bin1770.fits outfile=/scratch/kocevski/485405/cmap_HighResolution_698112001_698371201_4FGL_J1246.7-2548_daily_bin1770.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/485405/ft1_filtered_4FGL_J1246.7-2548_daily_bin1770.fits evtable="EVENTS" scfile=/scratch/kocevski/485405/ft2_4FGL_J1246.7-2548_daily_bin1770.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/485405/Model_4FGL_J1246.7-2548_daily_bin1770.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/485405/ft1_filtered_4FGL_J1246.7-2548_daily_bin1770.fits.....................!
real 114.57
user 113.25
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/485405/ft1_filtered_4FGL_J1246.7-2548_daily_bin1770.fits', '/scratch/kocevski/485405/ft2_4FGL_J1246.7-2548_daily_bin1770.fits', expMap='/scratch/kocevski/485405/expmap_698112001_698371201_4FGL_J1246.7-2548_daily_bin1770.fits', expCube='/scratch/kocevski/485405/ltcube_698112001_698371201_4FGL_J1246.7-2548_daily_bin1770.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/485405/Model_4FGL_J1246.7-2548_daily_bin1770.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  0.000e+00  1.000e+06 ( 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 -5.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/485405/ft1_filtered_4FGL_J1246.7-2548_daily_bin1770.fits
Spacecraft file(s): /scratch/kocevski/485405/ft2_4FGL_J1246.7-2548_daily_bin1770.fits
Exposure map: /scratch/kocevski/485405/expmap_698112001_698371201_4FGL_J1246.7-2548_daily_bin1770.fits
Exposure cube: /scratch/kocevski/485405/ltcube_698112001_698371201_4FGL_J1246.7-2548_daily_bin1770.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/485405/Model_4FGL_J1246.7-2548_daily_bin1770.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) = 6788.11995373

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10564E-03   1.0000          .0000       .10000E+07
     2 'norm      '    .20023E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .10647E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    32.255       1.0000          .0000       .10000E+07
     5 'Prefactor '    .78180E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .50276E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    .19359E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    24.336       1.0000          .0000       .10000E+07
     9 'norm      '    1.4006       1.0000          .0000       .10000E+07
    10 'Prefactor '    107.49       1.0000          .0000       .10000E+07
    11 'norm      '    .24540E-03   1.0000          .0000       .10000E+07
    12 'norm      '    .52328E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .20320E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .66176E-04   1.0000          .0000       .10000E+07
    15 'norm      '    2.3905       1.0000          .0000       .10000E+07
    16 'norm      '    14.102       1.0000          .0000       .10000E+07
    17 'Prefactor '    81.448       1.0000          .0000       .10000E+07
    18 'Prefactor '    .10315E-03   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.3616       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .84068       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=   6788.114     FROM MIGRAD    STATUS=CONVERGED    165 CALLS     1686 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    5.8931        .88227E-06** at limit **
   2  norm           .0000        1.8634       -.17643E-06** at limit **
   3  Prefactor      .0000        1.3129       -.13976E-06** at limit **
   4  Prefactor     32.235        24.412        .86878E-06    .82954E-02
   5  Prefactor     .55511E-10    8.4973        .13128E-05** at limit **
   6  Prefactor     .55511E-10    30.102        .25381E-05** at limit **
   7  Prefactor     .98310E-07    124.00        .11015E-04** at limit **
   8  Prefactor     24.397        16.969        .46512E-06    .28035E-02
   9  norm          1.4107        1.4241        .15522E-06    .89558E-03
  10  Prefactor     101.59        97.265       -.85966E-06   -.63605E-03
  11  norm           .0000        2.9878       -.71394E-06** at limit **
  12  norm          .55511E-10    3.2436        .13305E-05** at limit **
  13  Prefactor     .55511E-10    5.2401        .26477E-05** at limit **
  14  norm           .0000        2.0614        .13066E-06** at limit **
  15  norm          2.3920        1.9364        .27042E-06    .19890E-03
  16  norm          14.076        8.8488        .98233E-07   -.10581E-03
  17  Prefactor     81.531        3.5995       -.18892E-06    .12081    
  18  Prefactor     .55511E-09    17.889       -.11938E-05** at limit **
  19  Normalizat    1.3636        .31565       -.31026E-05    .68558E-04
  20  Prefactor     .84063        .13555        .83289E-06    .14232E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  norm       = 0
  Prefactor  = 0
  Prefactor  = 32.2355
  Prefactor  = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 9.83102e-08
  Prefactor  = 24.3967
  norm       = 1.41069
  Prefactor  = 101.588
  norm       = 0
  norm       = 5.55112e-11
  Prefactor  = 5.55112e-11
  norm       = 0
  norm       = 2.39195
  norm       = 14.0763
  Prefactor  = 81.531
  Prefactor  = 5.55112e-10
  Normalizat = 1.36355
  Prefactor  = 0.840631
 **********
 **   18 **HESSE 
 **********

 FCN=   6788.114     FROM HESSE     STATUS=OK           325 CALLS     2011 TOTAL
                     EDM=   .57E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    5.9058        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        1.8635        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        1.3113        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     32.235        24.472        .17610E-03   -1.5594    
   5  Prefactor     .55511E-10    8.5042        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-10    29.977        .15529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .98310E-07    123.23        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     24.397        16.972        .20276E-03   -1.5609    
   9  norm          1.4107        1.4508        .91644E-03   -1.5684    
  10  Prefactor     101.59        97.970        .96461E-04   -1.5506    
  11  norm           .0000        2.9951        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .55511E-10    3.2842        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .55511E-10    5.2370        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        2.0617        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.3920        1.9356        .66213E-03   -1.5677    
  16  norm          14.076        8.8823        .26647E-03   -1.5633    
  17  Prefactor     81.531        56.114        .11081E-03   -1.5527    
  18  Prefactor     .55511E-09    17.895        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3636        .26394        .78350E-01   -.81689    
  20  Prefactor     .84063        .11262        .44244E-01   -.98248    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.73498e-07
Minuit parameter uncertainties:
  1  4.57377e-05
  2  3.24127e-06
  3  6.04309e-06
  4  24.4718
  5  3.24947e-05
  6  7.72885e-05
  7  0.00696125
  8  16.9717
  9  1.45075
  10  97.9711
  11  1.34258e-05
  12  2.00209e-05
  13  2.83307e-05
  14  4.9968e-06
  15  1.93555
  16  8.8823
  17  56.1147
  18  0.000201343
  19  0.264205
  20  0.112647
Done.

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

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  1.411e+00  1.451e+00  0.000e+00  1.000e+06 ( 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 -5.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:  8.406e-01  1.126e-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.364e+00  2.642e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.28
Ra Dec: 191.689 -25.802
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 6.17e-08 +/- 6.34e-08
Energy Flux (Fixed Index): 2.37e-05 +/- 2.44e-05

TS (Fixed Index): 1.28
Ra Dec: 191.689 -25.802
Photon Flux Upper Limit: 1.88e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.23e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/485405/likelihoodResults_698112001_698371201_4FGL_J1246.7-2548_daily_bin1770.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) = 6786.0685856
delta logL = 2.04524102808

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6786.02378458
delta logL = 2.09004203978

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .46730       1.0000          .0000       .10000E+07
     2 'alpha     '    4.0713       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1253       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90894       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=   6786.024     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      246 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .46731        2.9186        .56252E-03    .18855E-01
   2  alpha         4.0714        4.3337        .27726        .44616E-04
   3  Normalizat    1.1255        .87720E-01    .84807E-01    .16717E-04
   4  Prefactor     .90883        .39055E-01    .45119E-01    .17377E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.467305
  alpha      = 4.07135
  Normalizat = 1.12547
  Prefactor  = 0.908834
 **********
 **   18 **HESSE 
 **********

 FCN=   6786.024     FROM HESSE     STATUS=OK            31 CALLS      277 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .46731        1.1192        .25190E-05   -1.5694    
   2  alpha         4.0714        1.4057        .12351E-02    .67968    
   3  Normalizat    1.1255        .33173        .37551E-03   -.88938    
   4  Prefactor     .90883        .14229        .18031E-03   -.95833    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29157e-10
Minuit parameter uncertainties:
  1  1.11922
  2  1.57118
  3  0.332343
  4  0.142349
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/485405': 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) = 6786.02378423
delta logL = 2.09004239342

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  4.673e-01  1.119e+00  0.000e+00  1.000e+06 ( 1.000e-11)
276        alpha:  4.071e+00  1.571e+00  0.000e+00  5.000e+00 ( 1.000e+00)
277         beta:  1.173e-01  0.000e+00 -5.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.088e-01  1.423e-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.125e+00  3.323e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.01
Ra Dec: 191.689 -25.802
Photon Index (Free Index): 4.07 +/- 1.57
Photon Flux (Free Index): 2.45e-07 +/- 1.21e-07
Energy Flux (Free Index): 3.77e-05 +/- 2.04e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/485405/cmap_HighResolution_698112001_698371201_4FGL_J1246.7-2548_daily_bin1770.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.23e-05', comment='SUCCESS', photon_flux='6.17e-08', energy_flux2='3.77e-05', photon_flux_error='6.34e-08', dlogl='2.09e+00', energy_flux='2.37e-05', photon_flux2='2.45e-07', job_status='DONE', time_completed='2023-02-18 00:59:39.865145', photon_index_error2='1.57', photon_index2='4.07', ts='1.28', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.88e-07', energy_flux_error2='2.04e-05', EG='1.36', time_epoch_completed='1676710779.87', return_code='0', job_id='485405', GAL2='0.91', EG2='1.13', return_code2='0', energy_flux_error='2.44e-05', photon_flux_error2='1.21e-07', ts2='6.01', photon_index='2.21' WHERE bin_id='1770' AND source_name='4FGL J1246.7-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb 18 00:59:39 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 485405: <4FGL_J1246.7-2548_daily_bin1770> in cluster <slac> Done

Job <4FGL_J1246.7-2548_daily_bin1770> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Feb 18 00:45:24 2023
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb 18 00:45:30 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb 18 00:45:30 2023
Terminated at Sat Feb 18 00:59:51 2023
Results reported at Sat Feb 18 00:59:51 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1246.7-2548_daily_bin1770 191.689 -25.8018 698112001 698371201 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 :                                   673.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            867 sec.

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

