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


Performing analysis on: 4FGL_J1246.7-2548_daily_bin1425
RA = 191.689, Dec = -25.8018
tmin = 608688001, tmax = 608947201
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='905486', job_status='RUN', time_executed='2021-09-06 04:56:51.415258', time_epoch_executed='1630929411.42' WHERE source_name='4FGL J1246.7-2548' and cadence='daily' and bin_id='1425'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/905486

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/905486/ft1_4FGL_J1246.7-2548_daily_bin1425.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/905486/ft2_4FGL_J1246.7-2548_daily_bin1425.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/905486/ft1_4FGL_J1246.7-2548_daily_bin1425.fits outfile=/scratch/kocevski/905486/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1425.fits ra=191.689 dec=-25.8018 rad=12.0 tmin=608688001.0 tmax=608947201.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.04
user 2.82
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/905486/ft1_filtered_4FGL_J1246.7-2548_daily_bin1425.fits" evtable="EVENTS" scfile=/scratch/kocevski/905486/ft2_4FGL_J1246.7-2548_daily_bin1425.fits sctable="SC_DATA" outfile=/scratch/kocevski/905486/ltcube_608688001_608947201_4FGL_J1246.7-2548_daily_bin1425.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/905486/ft2_4FGL_J1246.7-2548_daily_bin1425.fits
.....................!
real 15.81
user 15.36
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/905486/ft1_filtered_4FGL_J1246.7-2548_daily_bin1425.fits evtable="EVENTS" scfile=/scratch/kocevski/905486/ft2_4FGL_J1246.7-2548_daily_bin1425.fits sctable="SC_DATA" expcube=/scratch/kocevski/905486/ltcube_608688001_608947201_4FGL_J1246.7-2548_daily_bin1425.fits outfile=/scratch/kocevski/905486/expmap_608688001_608947201_4FGL_J1246.7-2548_daily_bin1425.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/905486/ltcube_608688001_608947201_4FGL_J1246.7-2548_daily_bin1425.fits
.....................!
real 190.39
user 185.66
sys 4.41

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/905486/ft1_filtered_4FGL_J1246.7-2548_daily_bin1425.fits scfile=/scratch/kocevski/905486/ft2_4FGL_J1246.7-2548_daily_bin1425.fits outfile=/scratch/kocevski/905486/cmap_608688001_608947201_4FGL_J1246.7-2548_daily_bin1425.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.53
user 0.39
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/905486/ft1_filtered_4FGL_J1246.7-2548_daily_bin1425.fits evtable="EVENTS" scfile=/scratch/kocevski/905486/ft2_4FGL_J1246.7-2548_daily_bin1425.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/905486/Model_4FGL_J1246.7-2548_daily_bin1425.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/905486/ft1_filtered_4FGL_J1246.7-2548_daily_bin1425.fits..........................!
real 18.49
user 17.23
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/905486/ft1_filtered_4FGL_J1246.7-2548_daily_bin1425.fits', '/scratch/kocevski/905486/ft2_4FGL_J1246.7-2548_daily_bin1425.fits', expMap='/scratch/kocevski/905486/expmap_608688001_608947201_4FGL_J1246.7-2548_daily_bin1425.fits', expCube='/scratch/kocevski/905486/ltcube_608688001_608947201_4FGL_J1246.7-2548_daily_bin1425.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/905486/Model_4FGL_J1246.7-2548_daily_bin1425.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/905486/ft1_filtered_4FGL_J1246.7-2548_daily_bin1425.fits
Spacecraft file(s): /scratch/kocevski/905486/ft2_4FGL_J1246.7-2548_daily_bin1425.fits
Exposure map: /scratch/kocevski/905486/expmap_608688001_608947201_4FGL_J1246.7-2548_daily_bin1425.fits
Exposure cube: /scratch/kocevski/905486/ltcube_608688001_608947201_4FGL_J1246.7-2548_daily_bin1425.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/905486/Model_4FGL_J1246.7-2548_daily_bin1425.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 319.306628225

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 315.671342951

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44869E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .24536E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .10441E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11025E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16935       1.0000         .10000E-03   10000.    
     6 'Prefactor '    223.35       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13444E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .36894E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    160.07       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .96882       1.0000         .10000E-03   10000.    
    11 'norm      '    .12606E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.5464       1.0000         .10000E-03   10000.    
    13 'norm      '    1.9290       1.0000         .10000E-03   10000.    
    14 'norm      '    1.6350       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .96935E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    94.848       1.0000         .10000E-03   10000.    
    17 'norm      '    .59102E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    19.588       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.6273       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.2961       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0000       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=   315.5573     FROM MIGRAD    STATUS=CONVERGED    253 CALLS      594 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    83.383       -.14070E-05** at limit **
   2  Prefactor     .10000E-03    25.383        .29187E-06** at limit **
   3  norm          .10000E-03    8.2766        .18378E-07** at limit **
   4  Prefactor     .10000E-03    17.460       -.11737E-06** at limit **
   5  Prefactor     .10000E-03    97.380       -.37736E-06** at limit **
   6  Prefactor     219.15        162.02       -.42752E-05   -.23600E-01
   7  Prefactor     .10000E-03    66.978       -.39466E-06** at limit **
   8  Prefactor     .10001E-03    137.57        .17166E-05** at limit **
   9  Prefactor     159.34        111.71       -.52403E-05   -.90728E-02
  10  Prefactor     .10025E-03    904.08       -.85256E-04** at limit **
  11  norm          .10000E-03    10.151       -.32576E-06** at limit **
  12  Prefactor     1.6970        140.94        .23068E-04    .82923E-02
  13  norm          .10001E-03    470.27        .71603E-06** at limit **
  14  norm          .10001E-03    285.65        .19400E-05** at limit **
  15  Prefactor     .10000E-03    148.45        .26113E-06** at limit **
  16  norm          28.321        284.47        .13400E-03   -.26602E-02
  17  norm          .10000E-03    509.73        .14881E-05** at limit **
  18  norm          235.97        502.44       -.35027E-04   -.17802E-03
  19  Prefactor     8.6273        1.0017         .0000         .0000    
  20  Prefactor     1.2961        1.1056         .0000         .0000    
  21  Normalizat    .10000E-01    .81431        .40733E-04** at limit **
  22  Prefactor     1.0127        .29117        .56053E-05   -.66295E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 219.152
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 159.339
  Prefactor  = 0.000100249
  norm       = 0.0001
  Prefactor  = 1.69698
  norm       = 0.000100008
  norm       = 0.000100008
  Prefactor  = 0.0001
  norm       = 28.3209
  norm       = 0.000100003
  norm       = 235.974
  Prefactor  = 8.62728
  Prefactor  = 1.29613
  Normalizat = 0.01
  Prefactor  = 1.01275
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   315.5573     FROM HESSE     STATUS=FAILED        83 CALLS      677 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    82.699        .96740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.356        .91451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    8.2770        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.412        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    96.889        .98368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     219.15        169.19        .67673E-03   -1.2736    
   7  Prefactor     .10000E-03    66.087        .10277E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    137.29        .92059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     159.34        179.51        .79681E-03   -1.3177    
  10  Prefactor     .10025E-03    897.44        .13055E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    9.9882        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.6970        7909.7        .34280E-02   -1.5447    
  13  norm          .10001E-03    470.03        .74767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10001E-03    285.06        .82650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    147.16        .90715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          28.321        133.82        .10317E-02   -1.4643    
  17  norm          .10000E-03    510.14        .93144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          235.97        359.38        .22624E-02   -1.2623    
  19  Prefactor     500.48        491.82         .0000       -1.5120    
  20  Prefactor     1.2961        1.1056         .0000       -1.5480    
  21  Normalizat    .10000E-01    .25747        .40733E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.0127        1.3450        .56053E-05   -.92306    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.07464e-09
Minuit parameter uncertainties:
  1  0.00049285
  2  9.24043e-05
  3  3.93136e-06
  4  1.94065e-05
  5  0.000437842
  6  169.566
  7  0.000147112
  8  0.00213215
  9  180.126
  10  0.0303496
  11  3.94039e-05
  12  229.481
  13  0.00396397
  14  0.00302145
  15  0.000196189
  16  123.577
  17  0.00245196
  18  362.826
  19  1.00169
  20  1.10561
  21  3.25089e-06
  22  1.39411
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 315.557259718

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  1.000e-04  3.940e-05  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:  1.013e+00  1.394e+00  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.000e-02  3.251e-06  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.82e-06 ph cm-2 s-1
Energy Flux Upper Limit: 6.97e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/905486/likelihoodResults_608688001_608947201_4FGL_J1246.7-2548_daily_bin1425.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) = 315.557711972
delta logL = -0.000452253672165

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 315.557285403
delta logL = -2.56849185689e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13757E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2256       1.0000          .0000       5.0000    
     3 'Normalizat'    .10039E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0129       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   315.5573     FROM MIGRAD    STATUS=FAILED        96 CALLS      247 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    892.42        .55219E-02** at limit **
   2  alpha         3.3514        4.1634        .16588       -.83409E-07
   3  Normalizat    .10000E-01    .11331        .90948E-02** at limit **
   4  Prefactor     1.0127        .10268        .15875E-03    .22367E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   315.5573     FROM SIMPLEX   STATUS=UNCHANGED    189 CALLS      436 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    892.42        .40641E-03** at limit **
   2  alpha         3.3514        4.1634        .81251E-06   -.83409E-07
   3  Normalizat    .10000E-01    .11331        .38961E-02** at limit **
   4  Prefactor     1.0127        .10268        .33537E-08    .22367E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   315.5573     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      466 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    15.692        .67949E-03** at limit **
   2  alpha         3.3575        3.9544        .66351E-02   -.86742E-08
   3  Normalizat    .10000E-01    .81161        .18190E-02** at limit **
   4  Prefactor     1.0127        .27547        .31750E-04    .23646E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.35746
  Normalizat = 0.01
  Prefactor  = 1.01275
 **********
 **   18 **HESSE 
 **********

 FCN=   315.5573     FROM HESSE     STATUS=OK            23 CALLS      489 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    15.688        .13590E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.3575        3.1449        .26540E-03    .35009    
   3  Normalizat    .10000E-01    .81161        .36379E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0127        .27546        .63499E-05   -.92306    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11686e-11
Minuit parameter uncertainties:
  1  4.13963e-05
  2  435.69
  3  2.48389e-06
  4  0.275843
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/905486': 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) = 315.557257915
delta logL = 1.80354356871e-06

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  1.000e-04  4.140e-05  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  3.357e+00  4.357e+02  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:  1.013e+00  2.758e-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.000e-02  2.484e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 191.689 -25.802

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/905486/cmap_HighResolution_608688001_608947201_4FGL_J1246.7-2548_daily_bin1425.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.97e-04', job_status='DONE', photon_flux_upper_limit='1.82e-06', time_completed='2021-09-06 05:02:45.076598', job_id='905486', GAL2='1.01', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630929765.08', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.01', dlogl='1.80e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='1425' AND source_name='4FGL J1246.7-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:02:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 905486: <4FGL_J1246.7-2548_daily_bin1425> in cluster <slac> Done

Job <4FGL_J1246.7-2548_daily_bin1425> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 04:56:03 2021
Job was executed on host(s) <bullet0103>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 04:56:04 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:56:04 2021
Terminated at Mon Sep  6 05:02:45 2021
Results reported at Mon Sep  6 05:02:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1246.7-2548_daily_bin1425 191.689 -25.8018 608688001 608947201 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 :                                   331.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             231.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   401 sec.
    Turnaround time :                            402 sec.

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

