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


Performing analysis on: 4FGL_J1246.7-2548_daily_bin1744
RA = 191.689, Dec = -25.8018
tmin = 691372801, tmax = 691632001
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='579400', job_status='RUN', time_executed='2022-12-02 00:56:42.158633', time_epoch_executed='1669971402.16' WHERE source_name='4FGL J1246.7-2548' and cadence='daily' and bin_id='1744'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/579400

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/579400/ft1_4FGL_J1246.7-2548_daily_bin1744.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/579400/ft2_4FGL_J1246.7-2548_daily_bin1744.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/579400/ft1_4FGL_J1246.7-2548_daily_bin1744.fits outfile=/scratch/kocevski/579400/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1744.fits ra=191.689 dec=-25.8018 rad=12.0 tmin=691372801.0 tmax=691632001.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.51
user 2.32
sys 0.18

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

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

Number of photons that the gtmktime cut: 988

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/579400/ft1_filtered_4FGL_J1246.7-2548_daily_bin1744.fits" evtable="EVENTS" scfile=/scratch/kocevski/579400/ft2_4FGL_J1246.7-2548_daily_bin1744.fits sctable="SC_DATA" outfile=/scratch/kocevski/579400/ltcube_691372801_691632001_4FGL_J1246.7-2548_daily_bin1744.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/579400/ft2_4FGL_J1246.7-2548_daily_bin1744.fits
.....................!
real 12.70
user 12.35
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/579400/ft1_filtered_4FGL_J1246.7-2548_daily_bin1744.fits evtable="EVENTS" scfile=/scratch/kocevski/579400/ft2_4FGL_J1246.7-2548_daily_bin1744.fits sctable="SC_DATA" expcube=/scratch/kocevski/579400/ltcube_691372801_691632001_4FGL_J1246.7-2548_daily_bin1744.fits outfile=/scratch/kocevski/579400/expmap_691372801_691632001_4FGL_J1246.7-2548_daily_bin1744.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/579400/ltcube_691372801_691632001_4FGL_J1246.7-2548_daily_bin1744.fits
.....................!
real 190.89
user 185.96
sys 4.58

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/579400/ft1_filtered_4FGL_J1246.7-2548_daily_bin1744.fits scfile=/scratch/kocevski/579400/ft2_4FGL_J1246.7-2548_daily_bin1744.fits outfile=/scratch/kocevski/579400/cmap_691372801_691632001_4FGL_J1246.7-2548_daily_bin1744.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/579400/ft1_filtered_4FGL_J1246.7-2548_daily_bin1744.fits scfile=/scratch/kocevski/579400/ft2_4FGL_J1246.7-2548_daily_bin1744.fits outfile=/scratch/kocevski/579400/cmap_HighResolution_691372801_691632001_4FGL_J1246.7-2548_daily_bin1744.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/579400/ft1_filtered_4FGL_J1246.7-2548_daily_bin1744.fits evtable="EVENTS" scfile=/scratch/kocevski/579400/ft2_4FGL_J1246.7-2548_daily_bin1744.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/579400/Model_4FGL_J1246.7-2548_daily_bin1744.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/579400/ft1_filtered_4FGL_J1246.7-2548_daily_bin1744.fits.....................!
real 178.92
user 177.32
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7094       1.0000          .0000       .10000E+07
     2 'norm      '    6.5631       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.0336       1.0000          .0000       .10000E+07
     4 'Prefactor '    .38830E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    21.210       1.0000          .0000       .10000E+07
     6 'Prefactor '    .17658E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    25.772       1.0000          .0000       .10000E+07
     8 'Prefactor '    1.2067       1.0000          .0000       .10000E+07
     9 'norm      '    .60120       1.0000          .0000       .10000E+07
    10 'Prefactor '    .16273E-02   1.0000          .0000       .10000E+07
    11 'norm      '    5.1135       1.0000          .0000       .10000E+07
    12 'norm      '    10.135       1.0000          .0000       .10000E+07
    13 'Prefactor '    .16504E-04   1.0000          .0000       .10000E+07
    14 'norm      '    .72895       1.0000          .0000       .10000E+07
    15 'norm      '    .18013E-06   1.0000          .0000       .10000E+07
    16 'norm      '    6.7209       1.0000          .0000       .10000E+07
    17 'Prefactor '    .20532       1.0000          .0000       .10000E+07
    18 'Prefactor '    3.1840       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.5716       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .75363       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=   10434.63     FROM MIGRAD    STATUS=CONVERGED    135 CALLS     1208 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6827        3.6726        .51026E-07   -.59218E-02
   2  norm          6.5733        3.4879       -.13507E-07    .29563E-02
   3  Prefactor     1.0353        3.3820        .89277E-07   -.19790E-04
   4  Prefactor     .77716E-09    22.285        .11716E-06** at limit **
   5  Prefactor     21.243        12.420       -.11733E-07    .29099E-01
   6  Prefactor     .96034E-08    14.187       -.20702E-06** at limit **
   7  Prefactor     25.976        2.4369        .69216E-08    .12396    
   8  Prefactor     1.1880        11.141        .56091E-06    .20803E-02
   9  norm          .60190        .54116       -.11568E-08   -.45291E-02
  10  Prefactor     .72164E-09    105.02        .34627E-06** at limit **
  11  norm          5.0660        6.0133        .41408E-08    .14916E-03
  12  norm          10.138        5.0713        .17499E-06    .26336E-02
  13  Prefactor      .0000        1.6677       -.68040E-07** at limit **
  14  norm          .75902        7.5844       -.87275E-06   -.14504E-02
  15  norm           .0000        .69832        .16650E-07** at limit **
  16  norm          6.6863        4.5278       -.68033E-09    .72870E-03
  17  Prefactor     .14433E-08    48.180        .52534E-06** at limit **
  18  Prefactor     3.2620        3.0006        .22249E-07    .24523E-01
  19  Normalizat    1.5714        .23529        .23489E-06    .36865E-05
  20  Prefactor     .75371        .10551        .38979E-06    .23828E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.68269
  norm       = 6.57328
  Prefactor  = 1.03533
  Prefactor  = 7.77156e-10
  Prefactor  = 21.2426
  Prefactor  = 9.60343e-09
  Prefactor  = 25.9762
  Prefactor  = 1.18801
  norm       = 0.601901
  Prefactor  = 7.21645e-10
  norm       = 5.06602
  norm       = 10.1383
  Prefactor  = 0
  norm       = 0.759018
  norm       = 0
  norm       = 6.68626
  Prefactor  = 1.44329e-09
  Prefactor  = 3.26196
  Normalizat = 1.57139
  Prefactor  = 0.753712
 **********
 **   18 **HESSE 
 **********

 FCN=   10434.63     FROM HESSE     STATUS=OK           335 CALLS     1543 TOTAL
                     EDM=   .71E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6827        12.061        .38715E-03   -1.5656    
   2  norm          6.5733        4.0274        .39149E-03   -1.5657    
   3  Prefactor     1.0353        3.3859        .12428E-02   -1.5688    
   4  Prefactor     .77716E-09    22.512        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.243        13.147        .21720E-03   -1.5616    
   6  Prefactor     .96034E-08    14.233        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     25.976        15.642        .19702E-03   -1.5606    
   8  Prefactor     1.1880        10.476        .10309E-02   -1.5686    
   9  norm          .60190        .54219        .69120E-04   -1.5692    
  10  Prefactor     .72164E-09    106.60        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.0660        6.0225        .44437E-03   -1.5663    
  12  norm          10.138        5.0707        .31449E-03   -1.5644    
  13  Prefactor      .0000        1.6854        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .75902        7.5904        .58389E-03   -1.5691    
  15  norm           .0000        .69958        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.6863        4.5394        .38681E-03   -1.5656    
  17  Prefactor     .14433E-08    48.456        .11682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.2620        16.879        .56765E-03   -1.5672    
  19  Normalizat    1.5714        .19897        .69683E-01   -.75792    
  20  Prefactor     .75371        .88580E-01    .43111E-01   -1.0146    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.14986e-07
Minuit parameter uncertainties:
  1  12.0609
  2  4.02738
  3  3.38591
  4  0.000262038
  5  13.1471
  6  0.000739669
  7  15.6417
  8  7.05574
  9  0.542187
  10  0.000559393
  11  6.02248
  12  5.0707
  13  2.63635e-06
  14  4.80052
  15  2.91094e-06
  16  4.53942
  17  0.000532316
  18  14.8403
  19  0.199067
  20  0.0885967
Done.

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

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  6.019e-01  5.422e-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:  7.537e-01  8.860e-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.571e+00  1.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.78
Ra Dec: 191.689 -25.802
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 2.63e-08 +/- 2.37e-08
Energy Flux (Fixed Index): 1.01e-05 +/- 9.10e-06

TS (Fixed Index): 1.78
Ra Dec: 191.689 -25.802
Photon Flux Upper Limit: 8.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.10e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/579400/likelihoodResults_691372801_691632001_4FGL_J1246.7-2548_daily_bin1744.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) = 10434.6093373
delta logL = 0.0164474146659

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10434.6077345
delta logL = 0.0180503085612

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .57212       1.0000          .0000       .10000E+07
     2 'alpha     '    2.3461       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5686       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75450       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=   10434.61     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      237 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .57202        .56497        .68302E-05    .13882E-02
   2  alpha         2.3462        .71570        .23102E-01    .20009E-04
   3  Normalizat    1.5686        .23152        .30850E-03    .15434E-03
   4  Prefactor     .75448        .10506        .19211E-03    .26370E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.57202
  alpha      = 2.34616
  Normalizat = 1.56858
  Prefactor  = 0.754482
 **********
 **   18 **HESSE 
 **********

 FCN=   10434.61     FROM HESSE     STATUS=OK            25 CALLS      262 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .57202        .55093        .27321E-06   -1.5693    
   2  alpha         2.3462        .69841        .92407E-03   -.61574E-01
   3  Normalizat    1.5686        .23170        .12340E-04   -.75869    
   4  Prefactor     .75448        .10514        .76844E-05   -1.0143    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02669e-11
Minuit parameter uncertainties:
  1  0.550932
  2  0.707865
  3  0.231861
  4  0.105167
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/579400': 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) = 10434.6077343
delta logL = 0.0180504650525

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  5.720e-01  5.509e-01  0.000e+00  1.000e+06 ( 1.000e-11)
276        alpha:  2.346e+00  7.079e-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:  7.545e-01  1.052e-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.569e+00  2.319e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.82
Ra Dec: 191.689 -25.802
Photon Index (Free Index): 2.35 +/- 0.71
Photon Flux (Free Index): 2.87e-08 +/- 2.81e-08
Energy Flux (Free Index): 9.56e-06 +/- 9.01e-06

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/579400/cmap_HighResolution_691372801_691632001_4FGL_J1246.7-2548_daily_bin1744.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.10e-05', comment='SUCCESS', photon_flux='2.63e-08', energy_flux2='9.56e-06', photon_flux_error='2.37e-08', dlogl='1.81e-02', energy_flux='1.01e-05', photon_flux2='2.87e-08', job_status='DONE', time_completed='2022-12-02 01:09:45.019017', photon_index_error2='0.71', photon_index2='2.35', ts='1.78', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='8.09e-08', energy_flux_error2='9.01e-06', EG='1.57', time_epoch_completed='1669972185.02', return_code='0', job_id='579400', GAL2='0.75', EG2='1.57', return_code2='0', energy_flux_error='9.10e-06', photon_flux_error2='2.81e-08', ts2='1.82', photon_index='2.21' WHERE bin_id='1744' AND source_name='4FGL J1246.7-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec  2 01:09:45 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 579400: <4FGL_J1246.7-2548_daily_bin1744> in cluster <slac> Done

Job <4FGL_J1246.7-2548_daily_bin1744> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Dec  2 00:55:21 2022
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec  2 00:55:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec  2 00:55:22 2022
Terminated at Fri Dec  2 01:09:45 2022
Results reported at Fri Dec  2 01:09:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1246.7-2548_daily_bin1744 191.689 -25.8018 691372801 691632001 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 :                                   785.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             308.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            864 sec.

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

