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


Performing analysis on: 4FGL_J1246.7-2548_daily_bin1765
RA = 191.689, Dec = -25.8018
tmin = 696816001, tmax = 697075201
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='634078', job_status='RUN', time_executed='2023-02-03 00:58:17.154901', time_epoch_executed='1675414697.15' WHERE source_name='4FGL J1246.7-2548' and cadence='daily' and bin_id='1765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/634078

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/634078/ft1_4FGL_J1246.7-2548_daily_bin1765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/634078/ft2_4FGL_J1246.7-2548_daily_bin1765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/634078/ft1_4FGL_J1246.7-2548_daily_bin1765.fits outfile=/scratch/kocevski/634078/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1765.fits ra=191.689 dec=-25.8018 rad=12.0 tmin=696816001.0 tmax=697075201.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.09
user 2.85
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/634078/ft2_4FGL_J1246.7-2548_daily_bin1765.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/634078/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1765.fits evtable="EVENTS" outfile="/scratch/kocevski/634078/ft1_filtered_4FGL_J1246.7-2548_daily_bin1765.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.48
user 0.31
sys 0.16

Number of photons that the gtmktime cut: 1038

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/634078/ft1_filtered_4FGL_J1246.7-2548_daily_bin1765.fits" evtable="EVENTS" scfile=/scratch/kocevski/634078/ft2_4FGL_J1246.7-2548_daily_bin1765.fits sctable="SC_DATA" outfile=/scratch/kocevski/634078/ltcube_696816001_697075201_4FGL_J1246.7-2548_daily_bin1765.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/634078/ft2_4FGL_J1246.7-2548_daily_bin1765.fits
.....................!
real 15.02
user 14.58
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/634078/ft1_filtered_4FGL_J1246.7-2548_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/634078/ft2_4FGL_J1246.7-2548_daily_bin1765.fits sctable="SC_DATA" expcube=/scratch/kocevski/634078/ltcube_696816001_697075201_4FGL_J1246.7-2548_daily_bin1765.fits outfile=/scratch/kocevski/634078/expmap_696816001_697075201_4FGL_J1246.7-2548_daily_bin1765.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/634078/ltcube_696816001_697075201_4FGL_J1246.7-2548_daily_bin1765.fits
.....................!
real 159.50
user 154.04
sys 4.72

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/634078/ft1_filtered_4FGL_J1246.7-2548_daily_bin1765.fits scfile=/scratch/kocevski/634078/ft2_4FGL_J1246.7-2548_daily_bin1765.fits outfile=/scratch/kocevski/634078/cmap_696816001_697075201_4FGL_J1246.7-2548_daily_bin1765.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.51
user 0.34
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/634078/ft1_filtered_4FGL_J1246.7-2548_daily_bin1765.fits scfile=/scratch/kocevski/634078/ft2_4FGL_J1246.7-2548_daily_bin1765.fits outfile=/scratch/kocevski/634078/cmap_HighResolution_696816001_697075201_4FGL_J1246.7-2548_daily_bin1765.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.51
user 0.34
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/634078/ft1_filtered_4FGL_J1246.7-2548_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/634078/ft2_4FGL_J1246.7-2548_daily_bin1765.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/634078/Model_4FGL_J1246.7-2548_daily_bin1765.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/634078/ft1_filtered_4FGL_J1246.7-2548_daily_bin1765.fits.....................!
real 145.46
user 143.89
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.8018       1.0000          .0000       .10000E+07
     2 'norm      '    .34725E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.5747       1.0000          .0000       .10000E+07
     4 'Prefactor '    5.3241       1.0000          .0000       .10000E+07
     5 'Prefactor '    9.2981       1.0000          .0000       .10000E+07
     6 'Prefactor '    .47835E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .25418E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    9.0963       1.0000          .0000       .10000E+07
     9 'norm      '    2.1171       1.0000          .0000       .10000E+07
    10 'Prefactor '    .11560E-02   1.0000          .0000       .10000E+07
    11 'norm      '    .17639E-03   1.0000          .0000       .10000E+07
    12 'norm      '    3.1470       1.0000          .0000       .10000E+07
    13 'Prefactor '    .45886E-06   1.0000          .0000       .10000E+07
    14 'norm      '    .14937E-05   1.0000          .0000       .10000E+07
    15 'norm      '    2.2432       1.0000          .0000       .10000E+07
    16 'norm      '    11.253       1.0000          .0000       .10000E+07
    17 'Prefactor '    .70220E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .77825E-03   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.0343       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0262       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=   10922.48     FROM MIGRAD    STATUS=CONVERGED    154 CALLS     1520 TOTAL
                     EDM=   .20E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7877        11.820       -.34291E-07    .34496E-04
   2  norm           .0000        2.1163       -.12634E-07** at limit **
   3  Prefactor     2.5541        4.2376       -.21523E-07   -.14406E-03
   4  Prefactor     5.3602        1.5558       -.11825E-07    .35829E-02
   5  Prefactor     9.2664        15.524       -.26016E-06    .22703E-03
   6  Prefactor      .0000        171.81        .14081E-05** at limit **
   7  Prefactor      .0000        3.8954        .21016E-07** at limit **
   8  Prefactor     9.0948        8.7779        .15631E-08   -.14816E-04
   9  norm          2.1172        .82666        .51355E-10   -.15654E-03
  10  Prefactor      .0000        15.813        .72622E-07** at limit **
  11  norm           .0000        1.9462        .80081E-08** at limit **
  12  norm          3.1464        3.3752       -.36160E-09    .47210E-04
  13  Prefactor      .0000        1.1283       -.53658E-09** at limit **
  14  norm           .0000        3.1232        .37600E-07** at limit **
  15  norm          2.2427        1.5653        .28867E-08   -.17147E-03
  16  norm          11.245        5.4165        .82286E-08   -.44786E-04
  17  Prefactor      .0000        15.496       -.23980E-06** at limit **
  18  Prefactor      .0000        6.5672       -.79193E-07** at limit **
  19  Normalizat    1.0347        .22834        .10678E-05   -.39896E-05
  20  Prefactor     1.0262        .10593       -.39448E-06    .84017E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.78768
  norm       = 0
  Prefactor  = 2.55406
  Prefactor  = 5.36016
  Prefactor  = 9.26636
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 9.09485
  norm       = 2.11716
  Prefactor  = 0
  norm       = 0
  norm       = 3.14638
  Prefactor  = 0
  norm       = 0
  norm       = 2.24269
  norm       = 11.2455
  Prefactor  = 0
  Prefactor  = 0
  Normalizat = 1.03465
  Prefactor  = 1.02621
 **********
 **   18 **HESSE 
 **********

 FCN=   10922.48     FROM HESSE     STATUS=OK           333 CALLS     1853 TOTAL
                     EDM=   .75E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7877        11.820        .31983E-03   -1.5645    
   2  norm           .0000        2.1153        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.5541        4.9424        .63582E-03   -1.5676    
   4  Prefactor     5.3602        34.118        .43533E-03   -1.5662    
   5  Prefactor     9.2664        15.550        .32842E-03   -1.5647    
   6  Prefactor      .0000        171.16        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        3.8949        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.0948        8.7772        .33207E-03   -1.5648    
   9  norm          2.1172        .82827        .70860E-03   -1.5679    
  10  Prefactor      .0000        15.813        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        1.9430        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.1464        3.3865        .57116E-03   -1.5672    
  13  Prefactor      .0000        1.1290        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        2.9899        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.2427        1.5671        .68591E-03   -1.5678    
  16  norm          11.245        5.4203        .29840E-03   -1.5641    
  17  Prefactor      .0000        15.488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        6.5626        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0347        .19476        .82172E-01   -.91878    
  20  Prefactor     1.0262        .89565E-01    .41567E-01   -.91861    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.48537e-07
Minuit parameter uncertainties:
  1  11.8197
  2  3.06451e-07
  3  4.94236
  4  27.0465
  5  15.5501
  6  7.71258e-05
  7  4.86137e-07
  8  8.77726
  9  0.828266
  10  3.77666e-05
  11  2.66697e-08
  12  3.38649
  13  3.12203e-07
  14  1.21981e-06
  15  1.56713
  16  5.42028
  17  2.00557e-05
  18  4.45565e-06
  19  0.194896
  20  0.0895784
Done.

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

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  2.117e+00  8.283e-01  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:  1.026e+00  8.958e-02  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.035e+00  1.949e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.87
Ra Dec: 191.689 -25.802
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 9.26e-08 +/- 3.62e-08
Energy Flux (Fixed Index): 3.55e-05 +/- 1.39e-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) = 10922.3054861
delta logL = 0.177022474367

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10922.301289
delta logL = 0.181219614105

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1444       1.0000          .0000       .10000E+07
     2 'alpha     '    1.9739       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0541       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0219       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=   10922.30     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      202 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1444        18.228        .70348E-03   -.77624E-02
   2  alpha         1.9739        3.2571        .36752       -.51995E-04
   3  Normalizat    1.0541        .26484        .81522E-01    .36659E-04
   4  Prefactor     1.0219        .97206E-01    .41959E-01    .99250E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.1444
  alpha      = 1.97388
  Normalizat = 1.05409
  Prefactor  = 1.02188
 **********
 **   18 **HESSE 
 **********

 FCN=   10922.30     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1444        .87914        .60224E-05   -1.5679    
   2  alpha         1.9739        .39616        .13769E-01   -.21203    
   3  Normalizat    1.0541        .22394        .36090E-03   -.91240    
   4  Prefactor     1.0219        .10548        .17236E-03   -.92004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09784e-10
Minuit parameter uncertainties:
  1  0.879143
  2  0.397913
  3  0.224145
  4  0.105501
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/634078': 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) = 10922.301289
delta logL = 0.181219614415

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  2.144e+00  8.791e-01  0.000e+00  1.000e+06 ( 1.000e-11)
276        alpha:  1.974e+00  3.979e-01  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:  1.022e+00  1.055e-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.054e+00  2.241e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.23
Ra Dec: 191.689 -25.802
Photon Index (Free Index): 1.97 +/- 0.40
Photon Flux (Free Index): 7.51e-08 +/- 4.18e-08
Energy Flux (Free Index): 3.97e-05 +/- 1.85e-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/634078/cmap_HighResolution_696816001_697075201_4FGL_J1246.7-2548_daily_bin1765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.26e-08', energy_flux2='3.97e-05', photon_flux_error='3.62e-08', dlogl='1.81e-01', energy_flux='3.55e-05', photon_flux2='7.51e-08', job_status='DONE', time_completed='2023-02-03 01:09:14.850888', photon_index_error2='0.40', photon_index2='1.97', ts='18.87', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.85e-05', EG='1.03', time_epoch_completed='1675415354.85', return_code='0', job_id='634078', GAL2='1.02', EG2='1.05', return_code2='0', energy_flux_error='1.39e-05', photon_flux_error2='4.18e-08', ts2='19.23', photon_index='2.21' WHERE bin_id='1765' AND source_name='4FGL J1246.7-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb  3 01:09:14 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 634078: <4FGL_J1246.7-2548_daily_bin1765> in cluster <slac> Done

Job <4FGL_J1246.7-2548_daily_bin1765> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Feb  3 00:55:19 2023
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb  3 00:56:41 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb  3 00:56:41 2023
Terminated at Fri Feb  3 01:09:15 2023
Results reported at Fri Feb  3 01:09:15 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1246.7-2548_daily_bin1765 191.689 -25.8018 696816001 697075201 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 :                                   657.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             347.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   754 sec.
    Turnaround time :                            836 sec.

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

