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


Performing analysis on: 4FGL_J1246.7-2548_daily_bin1452
RA = 191.689, Dec = -25.8018
tmin = 615686401, tmax = 615945601
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='905526', job_status='RUN', time_executed='2021-09-06 04:57:29.949789', time_epoch_executed='1630929449.95' WHERE source_name='4FGL J1246.7-2548' and cadence='daily' and bin_id='1452'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/905526

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/905526/ft1_4FGL_J1246.7-2548_daily_bin1452.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/905526/ft2_4FGL_J1246.7-2548_daily_bin1452.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/905526/ft1_4FGL_J1246.7-2548_daily_bin1452.fits outfile=/scratch/kocevski/905526/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1452.fits ra=191.689 dec=-25.8018 rad=12.0 tmin=615686401.0 tmax=615945601.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.81
user 3.19
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/905526/ft2_4FGL_J1246.7-2548_daily_bin1452.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/905526/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1452.fits evtable="EVENTS" outfile="/scratch/kocevski/905526/ft1_filtered_4FGL_J1246.7-2548_daily_bin1452.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.94
user 0.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/905526/ft1_filtered_4FGL_J1246.7-2548_daily_bin1452.fits" evtable="EVENTS" scfile=/scratch/kocevski/905526/ft2_4FGL_J1246.7-2548_daily_bin1452.fits sctable="SC_DATA" outfile=/scratch/kocevski/905526/ltcube_615686401_615945601_4FGL_J1246.7-2548_daily_bin1452.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/905526/ft2_4FGL_J1246.7-2548_daily_bin1452.fits
.....................!
real 12.74
user 11.45
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/905526/ft1_filtered_4FGL_J1246.7-2548_daily_bin1452.fits evtable="EVENTS" scfile=/scratch/kocevski/905526/ft2_4FGL_J1246.7-2548_daily_bin1452.fits sctable="SC_DATA" expcube=/scratch/kocevski/905526/ltcube_615686401_615945601_4FGL_J1246.7-2548_daily_bin1452.fits outfile=/scratch/kocevski/905526/expmap_615686401_615945601_4FGL_J1246.7-2548_daily_bin1452.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/905526/ltcube_615686401_615945601_4FGL_J1246.7-2548_daily_bin1452.fits
.....................!
real 199.19
user 185.50
sys 5.20

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/905526/ft1_filtered_4FGL_J1246.7-2548_daily_bin1452.fits scfile=/scratch/kocevski/905526/ft2_4FGL_J1246.7-2548_daily_bin1452.fits outfile=/scratch/kocevski/905526/cmap_615686401_615945601_4FGL_J1246.7-2548_daily_bin1452.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/905526/ft1_filtered_4FGL_J1246.7-2548_daily_bin1452.fits scfile=/scratch/kocevski/905526/ft2_4FGL_J1246.7-2548_daily_bin1452.fits outfile=/scratch/kocevski/905526/cmap_HighResolution_615686401_615945601_4FGL_J1246.7-2548_daily_bin1452.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/905526/ft1_filtered_4FGL_J1246.7-2548_daily_bin1452.fits evtable="EVENTS" scfile=/scratch/kocevski/905526/ft2_4FGL_J1246.7-2548_daily_bin1452.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/905526/Model_4FGL_J1246.7-2548_daily_bin1452.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/905526/ft1_filtered_4FGL_J1246.7-2548_daily_bin1452.fits.....................!
real 113.25
user 111.54
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.5497       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8465       1.0000         .10000E-03   10000.    
     5 'Prefactor '    75.317       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.441       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10275E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.0879       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.4172       1.0000         .10000E-03   10000.    
    17 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10144E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .71337E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4088       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0283       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=   6817.786     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2351 TOTAL
                     EDM=   .27E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.493       -.17407E-06** at limit **
   2  Prefactor     .10000E-03    20.977       -.29319E-05** at limit **
   3  norm          1.5505        4.9750        .26301E-06    .22995E-04
   4  Prefactor     4.8503        6.3850       -.67828E-06   -.29685E-04
   5  Prefactor     75.315        60.446       -.43861E-06    .56978E-05
   6  Prefactor     .10000E-03    11.704       -.84805E-07** at limit **
   7  Prefactor     .10000E-03    18.602        .69254E-06** at limit **
   8  Prefactor     .10000E-03    35.761        .72964E-07** at limit **
   9  Prefactor     12.472        28.442        .29712E-05    .85908E-05
  10  Prefactor     .10000E-03    19.348        .51101E-06** at limit **
  11  norm          .10000E-03    .47167       -.18448E-06** at limit **
  12  Prefactor     .10000E-03    69.712        .19297E-05** at limit **
  13  norm          .10000E-03    4.0291        .75458E-07** at limit **
  14  norm          2.0861        3.8988       -.14162E-06   -.27060E-04
  15  Prefactor     .10000E-03    2.9707       -.14010E-06** at limit **
  16  norm          2.4193        5.2640       -.40914E-06   -.52223E-04
  17  norm          .10000E-03    1.3256        .52861E-07** at limit **
  18  norm          .10000E-03    5.1428        .52087E-07** at limit **
  19  Prefactor     .10000E-03    34.739       -.41756E-06** at limit **
  20  Prefactor     .10000E-03    225.35       -.44852E-05** at limit **
  21  Normalizat    1.4086        .27644        .98106E-08    .62442E-05
  22  Prefactor     1.0281        .12189       -.49240E-06    .43090E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.55045
  Prefactor  = 4.85035
  Prefactor  = 75.3151
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.4723
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.08611
  Prefactor  = 0.0001
  norm       = 2.41932
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.40864
  Prefactor  = 1.02805
 **********
 **   18 **HESSE 
 **********

 FCN=   6817.786     FROM HESSE     STATUS=OK           344 CALLS     2695 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    21.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.5505        4.9718        .31750E-03   -1.5459    
   4  Prefactor     4.8503        6.3955        .18273E-03   -1.5267    
   5  Prefactor     75.315        60.325        .46266E-04   -1.3970    
   6  Prefactor     .10000E-03    11.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    35.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.472        28.491        .11357E-03   -1.5001    
  10  Prefactor     .10000E-03    19.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .66142        .10711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    69.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.0431        .16187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.0861        3.8738        .21600E-03   -1.5419    
  15  Prefactor     .10000E-03    2.9771        .13877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.4193        5.2757        .26328E-03   -1.5397    
  17  norm          .10000E-03    1.3380        .92844E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.2332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    34.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.877        .99569E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4086        .32637        .36847E-03   -.80379    
  22  Prefactor     1.0281        .14407        .18720E-03   -.91800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.82932e-11
Minuit parameter uncertainties:
  1  4.46371e-06
  2  2.32124e-05
  3  4.97313
  4  6.39645
  5  60.3738
  6  9.01591e-06
  7  1.77596e-05
  8  2.27794e-05
  9  28.5222
  10  2.06266e-05
  11  9.06334e-06
  12  3.77405e-05
  13  2.84775e-06
  14  3.87425
  15  3.96751e-06
  16  5.27676
  17  1.57257e-06
  18  6.74329e-06
  19  1.06989e-05
  20  7.27752e-07
  21  0.326851
  22  0.14412
Done.

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

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  1.000e-04  9.063e-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:  1.028e+00  1.441e-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.409e+00  3.269e-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: 9.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.75e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/905526/likelihoodResults_615686401_615945601_4FGL_J1246.7-2548_daily_bin1452.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): 102
logL (Free Index) = 6817.79275865
delta logL = -0.00718806839814

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6817.50229481
delta logL = 0.283275765797

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .56974E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.5895       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3380       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0446       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6817.502     FROM MIGRAD    STATUS=FAILED        96 CALLS      477 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .56683E-01    4.6542        .26556E-04   -.15279E-02
   2  alpha         4.5925        3.3323        .50000        .37817E-03
   3  Normalizat    1.3381        .15227        .37647E-03   -.78877E-04
   4  Prefactor     1.0446        .67174E-01    .18584E-03   -.96704E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6817.502     FROM SIMPLEX   STATUS=UNCHANGED     86 CALLS      563 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .56683E-01    4.6542        .43193E-04   -.15279E-02
   2  alpha         4.5925        3.3323        .62136E-02    .37817E-03
   3  Normalizat    1.3381        .15227        .14787E-03   -.78877E-04
   4  Prefactor     1.0446        .67174E-01    .27512E-04   -.96704E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6817.502     FROM MIGRAD    STATUS=FAILED        74 CALLS      637 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .56682E-01    4.6730        .37337E-06   -.93051E-03
   2  alpha         4.5925        3.3056        .50000        .38441E-03
   3  Normalizat    1.3381        .15346        .30118E-05   -.60396E-04
   4  Prefactor     1.0446        .67716E-01    .74337E-05   -.74632E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0566824
  alpha      = 4.59249
  Normalizat = 1.33808
  Prefactor  = 1.0446
 **********
 **   18 **HESSE 
 **********

 FCN=   6817.502     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      666 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .56682E-01    4.6732        .37337E-06   -1.5660    
   2  alpha         4.5925        3.3053        .50000        .99177    
   3  Normalizat    1.3381        .15339        .60236E-06   -.82437    
   4  Prefactor     1.0446        .67710E-01    .14867E-05   -.91257    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.69599e-05
Minuit parameter uncertainties:
  1  1.02852
  2  14.5155
  3  0.153443
  4  0.0677152
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/905526': 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): 1
logL (Free Index) = 6817.50229363
delta logL = 0.283276950426

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  5.668e-02  1.029e+00  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  4.592e+00  1.452e+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:  1.045e+00  6.772e-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.338e+00  1.534e-01  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/905526/cmap_HighResolution_615686401_615945601_4FGL_J1246.7-2548_daily_bin1452.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.75e-05', job_status='DONE', photon_flux_upper_limit='9.77e-08', time_completed='2021-09-06 05:12:04.621887', job_id='905526', GAL2='1.04', fit_tolerance='1e-08', EG2='1.34', EG='1.41', time_epoch_completed='1630930324.62', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='2.83e-01', ts2='0.63', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='1452' AND source_name='4FGL J1246.7-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:12:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 905526: <4FGL_J1246.7-2548_daily_bin1452> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1246.7-2548_daily_bin1452 191.689 -25.8018 615686401 615945601 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 :                                   775.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            959 sec.

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

