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


Performing analysis on: 4FGL_J1246.7-2548_daily_bin1295
RA = 191.689, Dec = -25.8018
tmin = 574992001, tmax = 575251201
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='905334', job_status='RUN', time_executed='2021-09-06 04:58:21.318382', time_epoch_executed='1630929501.32' WHERE source_name='4FGL J1246.7-2548' and cadence='daily' and bin_id='1295'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/905334

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/905334/ft1_4FGL_J1246.7-2548_daily_bin1295.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/905334/ft2_4FGL_J1246.7-2548_daily_bin1295.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/905334/ft1_4FGL_J1246.7-2548_daily_bin1295.fits outfile=/scratch/kocevski/905334/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1295.fits ra=191.689 dec=-25.8018 rad=12.0 tmin=574992001.0 tmax=575251201.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.45
user 4.19
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/905334/ft1_filtered_4FGL_J1246.7-2548_daily_bin1295.fits" evtable="EVENTS" scfile=/scratch/kocevski/905334/ft2_4FGL_J1246.7-2548_daily_bin1295.fits sctable="SC_DATA" outfile=/scratch/kocevski/905334/ltcube_574992001_575251201_4FGL_J1246.7-2548_daily_bin1295.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/905334/ft2_4FGL_J1246.7-2548_daily_bin1295.fits
.....................!
real 9.82
user 9.52
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/905334/ft1_filtered_4FGL_J1246.7-2548_daily_bin1295.fits evtable="EVENTS" scfile=/scratch/kocevski/905334/ft2_4FGL_J1246.7-2548_daily_bin1295.fits sctable="SC_DATA" expcube=/scratch/kocevski/905334/ltcube_574992001_575251201_4FGL_J1246.7-2548_daily_bin1295.fits outfile=/scratch/kocevski/905334/expmap_574992001_575251201_4FGL_J1246.7-2548_daily_bin1295.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/905334/ltcube_574992001_575251201_4FGL_J1246.7-2548_daily_bin1295.fits
.....................!
real 155.64
user 151.45
sys 3.83

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/905334/ft1_filtered_4FGL_J1246.7-2548_daily_bin1295.fits scfile=/scratch/kocevski/905334/ft2_4FGL_J1246.7-2548_daily_bin1295.fits outfile=/scratch/kocevski/905334/cmap_574992001_575251201_4FGL_J1246.7-2548_daily_bin1295.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.49
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/905334/ft1_filtered_4FGL_J1246.7-2548_daily_bin1295.fits scfile=/scratch/kocevski/905334/ft2_4FGL_J1246.7-2548_daily_bin1295.fits outfile=/scratch/kocevski/905334/cmap_HighResolution_574992001_575251201_4FGL_J1246.7-2548_daily_bin1295.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.48
user 0.33
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/905334/ft1_filtered_4FGL_J1246.7-2548_daily_bin1295.fits evtable="EVENTS" scfile=/scratch/kocevski/905334/ft2_4FGL_J1246.7-2548_daily_bin1295.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/905334/Model_4FGL_J1246.7-2548_daily_bin1295.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/905334/ft1_filtered_4FGL_J1246.7-2548_daily_bin1295.fits.....................!
real 73.50
user 72.15
sys 1.03

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.740       1.0000         .10000E-03   10000.    
     2 'Prefactor '    74.086       1.0000         .10000E-03   10000.    
     3 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.117       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13798E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11219E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1379       1.0000         .10000E-03   10000.    
    13 'norm      '    19.277       1.0000         .10000E-03   10000.    
    14 'norm      '    7.9217       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.2892       1.0000         .10000E-03   10000.    
    16 'norm      '    3.3754       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .16047E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5804       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .78850       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=   5201.661     FROM MIGRAD    STATUS=CONVERGED    877 CALLS     2780 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.720        53.083        .64396E-04    .34532E-04
   2  Prefactor     74.059        30.508        .46646E-04    .86326E-04
   3  norm          .10000E-03    12.541        .36285E-03** at limit **
   4  Prefactor     11.105        10.645        .12016E-03    .13577E-03
   5  Prefactor     .10000E-03    19.035        .18142E-02** at limit **
   6  Prefactor     .10000E-03    46.932        .13444    ** at limit **
   7  Prefactor     .10000E-03    12.860        .18142E-02** at limit **
   8  Prefactor     .10000E-03    31.996        .18142E-02** at limit **
   9  Prefactor     .10000E-03    24.183        .18142E-02** at limit **
  10  Prefactor     .10000E-03    16.655        .18142E-02** at limit **
  11  norm          .10000E-03    .75123        .11904E-02** at limit **
  12  Prefactor     2.8236        1143.7        .22885E-02    .18530E-05
  13  norm          19.311        14.430        .91223E-04    .17323E-04
  14  norm          7.9270        10.455        .71231E-03    .22185E-04
  15  Prefactor     8.2882        8.7142        .13925E-03    .32250E-04
  16  norm          3.3752        8.1695        .11012E-02    .12853E-04
  17  norm          .10000E-03    1.4993        .85937E-03** at limit **
  18  norm          .10000E-03    7.6505        .36285E-03** at limit **
  19  Prefactor     .10000E-03    201.32        .18142E-02** at limit **
  20  Prefactor     .10000E-03    5.4407        .16427E-02** at limit **
  21  Normalizat    1.5804        .37038        .34504E-03    .70774E-04
  22  Prefactor     .78849        .15604        .19805E-03   -.16016E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.7197
  Prefactor  = 74.059
  norm       = 0.0001
  Prefactor  = 11.105
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.82358
  norm       = 19.3111
  norm       = 7.92701
  Prefactor  = 8.28821
  norm       = 3.37517
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.58044
  Prefactor  = 0.788494
 **********
 **   18 **HESSE 
 **********

 FCN=   5201.661     FROM HESSE     STATUS=OK           334 CALLS     3114 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.720        53.081        .12879E-04   -1.4463    
   2  Prefactor     74.059        30.507        .93293E-05   -1.3985    
   3  norm          .10000E-03    12.541        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.105        10.644        .48063E-05   -1.5041    
   5  Prefactor     .10000E-03    19.035        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    46.783        .13475       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.860        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    31.998        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    24.185        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.657        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .75186        .23807E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.8236        1111.0        .91540E-04   -1.5372    
  13  norm          19.311        14.428        .36489E-05   -1.4829    
  14  norm          7.9270        10.358        .28492E-04   -1.5145    
  15  Prefactor     8.2882        8.7052        .55698E-05   -1.5132    
  16  norm          3.3752        8.1637        .44049E-04   -1.5341    
  17  norm          .10000E-03    1.4994        .17187E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.6508        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    201.48        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.4407        .32855E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.5804        .37075        .13802E-04   -.75542    
  22  Prefactor     .78849        .15616        .79220E-05   -1.0015    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2277e-10
Minuit parameter uncertainties:
  1  53.1462
  2  30.513
  3  9.38532e-06
  4  10.6458
  5  2.87475e-06
  6  0.000242878
  7  4.99911e-06
  8  9.50031e-06
  9  2.21141e-06
  10  4.11409e-05
  11  7.13314e-06
  12  114.218
  13  14.4307
  14  10.3604
  15  8.70654
  16  8.16639
  17  9.59989e-06
  18  1.03199e-05
  19  7.70879e-05
  20  1.60436e-06
  21  0.371393
  22  0.156245
Done.

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

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  1.000e-04  7.133e-06  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:  7.885e-01  1.562e-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.580e+00  3.714e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/905334/likelihoodResults_574992001_575251201_4FGL_J1246.7-2548_daily_bin1295.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) = 5201.66570158
delta logL = -0.00494259027528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5201.66076983
delta logL = -1.08402273327e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10607E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6973       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5805       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78851       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=   5201.146     FROM MIGRAD    STATUS=CONVERGED    130 CALLS      353 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .49448E-01    .55251E-01    .98612E-03   -.34093E-02
   2  alpha         5.0000        .94697        .50000    ** at limit **
   3  Normalizat    1.4604        .38243        .34504E-02   -.14145E-04
   4  Prefactor     .81958        .15742        .19805E-03    .11308E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0494482
  alpha      = 5
  Normalizat = 1.46039
  Prefactor  = 0.819579
 **********
 **   18 **HESSE 
 **********

 FCN=   5201.146     FROM HESSE     STATUS=OK            29 CALLS      382 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .49448E-01    .55566E-01    .16611E-04   -1.5752    
   2  alpha         5.0000        1.1456        .61666E-01    7.8540    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.4604        .37926        .13802E-03   -.78897    
   4  Prefactor     .81958        .15732        .79219E-05   -.99011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.197e-11
Minuit parameter uncertainties:
  1  0.0555663
  2  6.19593e-06
  3  0.379998
  4  0.157403
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/905334': 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) = 5201.14643624
delta logL = 0.514322745579

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  4.945e-02  5.557e-02  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  5.000e+00  6.196e-06  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.196e-01  1.574e-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.460e+00  3.800e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.12
Ra Dec: 191.689 -25.802
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.12e-07 +/- 1.25e-07
Energy Flux (Free Index): 1.53e-05 +/- 1.71e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/905334/cmap_HighResolution_574992001_575251201_4FGL_J1246.7-2548_daily_bin1295.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.44e-05', comment='SUCCESS', energy_flux2='1.53e-05', dlogl='5.14e-01', photon_flux2='1.12e-07', job_status='DONE', time_completed='2021-09-06 05:09:54.630647', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='1.71e-05', EG='1.58', time_epoch_completed='1630930194.63', return_code='0', job_id='905334', GAL2='0.82', EG2='1.46', return_code2='0', photon_flux_error2='1.25e-07', ts2='1.12', photon_index='2.21' WHERE bin_id='1295' AND source_name='4FGL J1246.7-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:09:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 905334: <4FGL_J1246.7-2548_daily_bin1295> in cluster <slac> Done

Job <4FGL_J1246.7-2548_daily_bin1295> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 04:55:50 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 04:55:51 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:55:51 2021
Terminated at Mon Sep  6 05:09:55 2021
Results reported at Mon Sep  6 05:09:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1246.7-2548_daily_bin1295 191.689 -25.8018 574992001 575251201 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 :                                   549.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            845 sec.

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

