/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 216 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 = 7427
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1246.7-2548_daily_bin125
RA = 191.689, Dec = -25.8018
tmin = 271728001, tmax = 271987201
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='897597', job_status='RUN', time_executed='2021-09-06 04:34:53.074690', time_epoch_executed='1630928093.07' WHERE source_name='4FGL J1246.7-2548' and cadence='daily' and bin_id='125'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/897597

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/897597/ft1_4FGL_J1246.7-2548_daily_bin125.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/897597/ft2_4FGL_J1246.7-2548_daily_bin125.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/897597/ft1_4FGL_J1246.7-2548_daily_bin125.fits outfile=/scratch/kocevski/897597/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin125.fits ra=191.689 dec=-25.8018 rad=12.0 tmin=271728001.0 tmax=271987201.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.07
user 2.41
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/897597/ft1_filtered_4FGL_J1246.7-2548_daily_bin125.fits" evtable="EVENTS" scfile=/scratch/kocevski/897597/ft2_4FGL_J1246.7-2548_daily_bin125.fits sctable="SC_DATA" outfile=/scratch/kocevski/897597/ltcube_271728001_271987201_4FGL_J1246.7-2548_daily_bin125.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/897597/ft2_4FGL_J1246.7-2548_daily_bin125.fits
.....................!
real 10.24
user 9.73
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/897597/ft1_filtered_4FGL_J1246.7-2548_daily_bin125.fits evtable="EVENTS" scfile=/scratch/kocevski/897597/ft2_4FGL_J1246.7-2548_daily_bin125.fits sctable="SC_DATA" expcube=/scratch/kocevski/897597/ltcube_271728001_271987201_4FGL_J1246.7-2548_daily_bin125.fits outfile=/scratch/kocevski/897597/expmap_271728001_271987201_4FGL_J1246.7-2548_daily_bin125.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/897597/ltcube_271728001_271987201_4FGL_J1246.7-2548_daily_bin125.fits
.....................!
real 156.39
user 152.08
sys 3.59

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/897597/ft1_filtered_4FGL_J1246.7-2548_daily_bin125.fits scfile=/scratch/kocevski/897597/ft2_4FGL_J1246.7-2548_daily_bin125.fits outfile=/scratch/kocevski/897597/cmap_271728001_271987201_4FGL_J1246.7-2548_daily_bin125.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.47
user 0.31
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/897597/ft1_filtered_4FGL_J1246.7-2548_daily_bin125.fits scfile=/scratch/kocevski/897597/ft2_4FGL_J1246.7-2548_daily_bin125.fits outfile=/scratch/kocevski/897597/cmap_HighResolution_271728001_271987201_4FGL_J1246.7-2548_daily_bin125.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.47
user 0.32
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/897597/ft1_filtered_4FGL_J1246.7-2548_daily_bin125.fits evtable="EVENTS" scfile=/scratch/kocevski/897597/ft2_4FGL_J1246.7-2548_daily_bin125.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/897597/Model_4FGL_J1246.7-2548_daily_bin125.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/897597/ft1_filtered_4FGL_J1246.7-2548_daily_bin125.fits.....................!
real 111.47
user 110.29
sys 0.93

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    15.385       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7415       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.266       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.667       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4764       1.0000         .10000E-03   10000.    
    11 'norm      '    1.2096       1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.857       1.0000         .10000E-03   10000.    
    13 'norm      '    6.5232       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.5725       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.6489       1.0000         .10000E-03   10000.    
    18 'norm      '    6.0020       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5517       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .83625       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.

 FCN=   8284.357     FROM MIGRAD    STATUS=CONVERGED    463 CALLS     2318 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.779       -.47648E-05** at limit **
   2  Prefactor     .10000E-03    7.4497        .55978E-06** at limit **
   3  norm          15.386        6.5621       -.28532E-06   -.79345E-04
   4  Prefactor     2.7416        3.7627        .20966E-05   -.19216E-03
   5  Prefactor     22.270        53.624        .78571E-05    .25682E-04
   6  Prefactor     .10000E-03    20.541        .39401E-05** at limit **
   7  Prefactor     20.666        19.090       -.11505E-05   -.45630E-04
   8  Prefactor     .10000E-03    20.204        .35581E-05** at limit **
   9  Prefactor     .10000E-03    14.356       -.28426E-05** at limit **
  10  Prefactor     3.4767        10.096       -.35405E-06   -.16868E-03
  11  norm          1.2096        .90865        .61699E-07   -.36549E-03
  12  Prefactor     28.851        53.531       -.87046E-05   -.37567E-04
  13  norm          6.5233        7.3551       -.62326E-07   -.14435E-03
  14  norm          .10000E-03    3.8885       -.99805E-06** at limit **
  15  Prefactor     4.5725        3.5854        .50263E-06    .20870E-03
  16  norm          .10000E-03    4.0510        .30236E-05** at limit **
  17  norm          3.6489        2.5733       -.45279E-07   -.14404E-03
  18  norm          6.0022        5.0006        .45386E-07   -.92060E-04
  19  Prefactor     .10000E-03    13.364        .99494E-06** at limit **
  20  Prefactor     .10000E-03    4.4053       -.13841E-05** at limit **
  21  Normalizat    1.5517        .23758       -.18168E-06   -.10902E-03
  22  Prefactor     .83625        .10531       -.37687E-06   -.14582E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.3856
  Prefactor  = 2.74159
  Prefactor  = 22.2705
  Prefactor  = 0.0001
  Prefactor  = 20.6661
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.47665
  norm       = 1.20963
  Prefactor  = 28.8509
  norm       = 6.52329
  norm       = 0.0001
  Prefactor  = 4.57248
  norm       = 0.0001
  norm       = 3.64887
  norm       = 6.00225
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.55168
  Prefactor  = 0.836246
 **********
 **   18 **HESSE 
 **********

 FCN=   8284.357     FROM HESSE     STATUS=OK           342 CALLS     2660 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.4547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          15.386        6.5624        .10211E-03   -1.4923    
   4  Prefactor     2.7416        3.6673        .19566E-03   -1.5377    
   5  Prefactor     22.270        53.621        .84885E-04   -1.4764    
   6  Prefactor     .10000E-03    20.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.666        19.089        .88104E-04   -1.4798    
   8  Prefactor     .10000E-03    20.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.4767        10.099        .21688E-03   -1.5335    
  11  norm          1.2096        .89481        .71970E-04   -1.5488    
  12  Prefactor     28.851        53.314        .74581E-04   -1.4633    
  13  norm          6.5233        7.3553        .15713E-03   -1.5197    
  14  norm          .10000E-03    3.9873        .34681E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.5725        3.5892        .14701E-03   -1.5280    
  16  norm          .10000E-03    4.1374        .17888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.6489        2.5751        .11875E-03   -1.5326    
  18  norm          6.0022        5.0007        .16390E-03   -1.5218    
  19  Prefactor     .10000E-03    13.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.4139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.5517        .28440        .33446E-03   -.76336    
  22  Prefactor     .83625        .12627        .19492E-03   -.98406    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60268e-10
Minuit parameter uncertainties:
  1  0.00016503
  2  1.48392e-06
  3  6.56266
  4  3.66758
  5  53.7369
  6  6.2028e-05
  7  19.0949
  8  7.80458e-05
  9  7.04766e-05
  10  10.1044
  11  0.894816
  12  53.4024
  13  7.35635
  14  5.31925e-05
  15  3.58934
  16  3.10097e-05
  17  2.57517
  18  5.00104
  19  2.55428e-05
  20  1.66018e-05
  21  0.2847
  22  0.12631
Done.

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

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  1.210e+00  8.948e-01  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:  8.362e-01  1.263e-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.552e+00  2.847e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.66
Ra Dec: 191.689 -25.802
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 5.29e-08 +/- 3.91e-08
Energy Flux (Fixed Index): 2.03e-05 +/- 1.50e-05

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

Saving results to:
/scratch/kocevski/897597/likelihoodResults_271728001_271987201_4FGL_J1246.7-2548_daily_bin125.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) = 8283.99647987
delta logL = 0.360945668384

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8283.98525995
delta logL = 0.372165584706

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0762       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8121       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5066       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84651       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=   8283.985     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0752        9.4774        .11650E-01    .25511E-03
   2  alpha         2.8126        3.9054        .41564        .41028E-04
   3  Normalizat    1.5067        .69757E-01    .76465E-01   -.28125E-03
   4  Prefactor     .84646        .29476E-01    .44320E-01   -.55901E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.07521
  alpha      = 2.81258
  Normalizat = 1.50666
  Prefactor  = 0.84646
 **********
 **   18 **HESSE 
 **********

 FCN=   8283.985     FROM HESSE     STATUS=OK            29 CALLS      234 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0752        .86247        .57234E-04   -1.5501    
   2  alpha         2.8126        .71024        .15397E-01    .12536    
   3  Normalizat    1.5067        .28765        .33839E-03   -.77591    
   4  Prefactor     .84646        .12634        .19378E-03   -.98038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.74723e-09
Minuit parameter uncertainties:
  1  0.862485
  2  0.720326
  3  0.287968
  4  0.126388
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/897597': 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) = 8283.98525906
delta logL = 0.372166479279

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  1.075e+00  8.625e-01  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  2.813e+00  7.203e-01  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:  8.465e-01  1.264e-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.507e+00  2.880e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.41
Ra Dec: 191.689 -25.802
Photon Index (Free Index): 2.81 +/- 0.72
Photon Flux (Free Index): 9.39e-08 +/- 7.06e-08
Energy Flux (Free Index): 2.19e-05 +/- 1.37e-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/897597/cmap_HighResolution_271728001_271987201_4FGL_J1246.7-2548_daily_bin125.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.44e-05', comment='SUCCESS', photon_flux='5.29e-08', energy_flux2='2.19e-05', photon_flux_error='3.91e-08', dlogl='3.72e-01', energy_flux='2.03e-05', photon_flux2='9.39e-08', job_status='DONE', time_completed='2021-09-06 04:46:19.998658', photon_index_error2='0.72', photon_index2='2.81', ts='3.66', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.42e-07', energy_flux_error2='1.37e-05', EG='1.55', time_epoch_completed='1630928780.0', return_code='0', job_id='897597', GAL2='0.85', EG2='1.51', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='7.06e-08', ts2='4.41', photon_index='2.21' WHERE bin_id='125' AND source_name='4FGL J1246.7-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 04:46:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 897597: <4FGL_J1246.7-2548_daily_bin125> in cluster <slac> Done

Job <4FGL_J1246.7-2548_daily_bin125> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 04:30:52 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 04:30:55 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:30:55 2021
Terminated at Mon Sep  6 04:46:20 2021
Results reported at Mon Sep  6 04:46:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1246.7-2548_daily_bin125 191.689 -25.8018 271728001 271987201 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 :                                   682.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            928 sec.

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

