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


Performing analysis on: 4FGL_J1249.3-0545_daily_bin699
RA = 192.326, Dec = -5.7621
tmin = 420508801, tmax = 420768001
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='929473', job_status='RUN', time_executed='2021-09-06 06:11:27.334968', time_epoch_executed='1630933887.33' WHERE source_name='4FGL J1249.3-0545' and cadence='daily' and bin_id='699'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929473

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929473/ft1_4FGL_J1249.3-0545_daily_bin699.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929473/ft2_4FGL_J1249.3-0545_daily_bin699.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929473/ft1_4FGL_J1249.3-0545_daily_bin699.fits outfile=/scratch/kocevski/929473/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin699.fits ra=192.326 dec=-5.7621 rad=12.0 tmin=420508801.0 tmax=420768001.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.36
user 3.16
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/929473/ft2_4FGL_J1249.3-0545_daily_bin699.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/929473/ft2_4FGL_J1249.3-0545_daily_bin699.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/929473/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin699.fits evtable="EVENTS" outfile="/scratch/kocevski/929473/ft1_filtered_4FGL_J1249.3-0545_daily_bin699.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929473/ft1_filtered_4FGL_J1249.3-0545_daily_bin699.fits" evtable="EVENTS" scfile=/scratch/kocevski/929473/ft2_4FGL_J1249.3-0545_daily_bin699.fits sctable="SC_DATA" outfile=/scratch/kocevski/929473/ltcube_420508801_420768001_4FGL_J1249.3-0545_daily_bin699.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/929473/ft2_4FGL_J1249.3-0545_daily_bin699.fits
.....................!
real 11.72
user 11.34
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929473/ft1_filtered_4FGL_J1249.3-0545_daily_bin699.fits evtable="EVENTS" scfile=/scratch/kocevski/929473/ft2_4FGL_J1249.3-0545_daily_bin699.fits sctable="SC_DATA" expcube=/scratch/kocevski/929473/ltcube_420508801_420768001_4FGL_J1249.3-0545_daily_bin699.fits outfile=/scratch/kocevski/929473/expmap_420508801_420768001_4FGL_J1249.3-0545_daily_bin699.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/929473/ltcube_420508801_420768001_4FGL_J1249.3-0545_daily_bin699.fits
.....................!
real 190.80
user 185.36
sys 4.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
Added 199 point sources and 0 extended sources

Setting source of interest to:
4FGL J1249.3-0545 @ 192.326 -5.7621

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/929473/ft1_filtered_4FGL_J1249.3-0545_daily_bin699.fits scfile=/scratch/kocevski/929473/ft2_4FGL_J1249.3-0545_daily_bin699.fits outfile=/scratch/kocevski/929473/cmap_420508801_420768001_4FGL_J1249.3-0545_daily_bin699.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=192.326 yref=-5.7621 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929473/ft1_filtered_4FGL_J1249.3-0545_daily_bin699.fits scfile=/scratch/kocevski/929473/ft2_4FGL_J1249.3-0545_daily_bin699.fits outfile=/scratch/kocevski/929473/cmap_HighResolution_420508801_420768001_4FGL_J1249.3-0545_daily_bin699.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=192.326 yref=-5.7621 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/929473/ft1_filtered_4FGL_J1249.3-0545_daily_bin699.fits evtable="EVENTS" scfile=/scratch/kocevski/929473/ft2_4FGL_J1249.3-0545_daily_bin699.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/929473/Model_4FGL_J1249.3-0545_daily_bin699.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/929473/ft1_filtered_4FGL_J1249.3-0545_daily_bin699.fits.....................!
real 59.65
user 56.00
sys 1.54

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/929473/ft1_filtered_4FGL_J1249.3-0545_daily_bin699.fits', '/scratch/kocevski/929473/ft2_4FGL_J1249.3-0545_daily_bin699.fits', expMap='/scratch/kocevski/929473/expmap_420508801_420768001_4FGL_J1249.3-0545_daily_bin699.fits', expCube='/scratch/kocevski/929473/ltcube_420508801_420768001_4FGL_J1249.3-0545_daily_bin699.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/929473/Model_4FGL_J1249.3-0545_daily_bin699.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1249.3-0545'

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  6.563e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
332        Index:  2.058e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  2.757e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/929473/ft1_filtered_4FGL_J1249.3-0545_daily_bin699.fits
Spacecraft file(s): /scratch/kocevski/929473/ft2_4FGL_J1249.3-0545_daily_bin699.fits
Exposure map: /scratch/kocevski/929473/expmap_420508801_420768001_4FGL_J1249.3-0545_daily_bin699.fits
Exposure cube: /scratch/kocevski/929473/ltcube_420508801_420768001_4FGL_J1249.3-0545_daily_bin699.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/929473/Model_4FGL_J1249.3-0545_daily_bin699.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) = 7186.63803443

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.481       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11523E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.9919       1.0000         .10000E-03   10000.    
     6 'norm      '    .13167E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.2035       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.7032       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .30747E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.331       1.0000         .10000E-03   10000.    
    12 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.2801       1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.610       1.0000         .10000E-03   10000.    
    15 'Prefactor '    46.351       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.5319       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .28367E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    13.012       1.0000         .10000E-03   10000.    
    20 'norm      '    7.8808       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.534       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.9278       1.0000         .10000E-03   10000.    
    24 'norm      '    5.4966       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0361       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2576       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7186.604     FROM MIGRAD    STATUS=CONVERGED    620 CALLS     3113 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5493       -.95086E-07** at limit **
   2  Prefactor     .10000E-03    54.475       -.33760E-07** at limit **
   3  Prefactor     17.433        31.249        .13596E-05    .36705E-04
   4  Prefactor     .10000E-03    11.931       -.12397E-05** at limit **
   5  norm          1.9915        2.1019       -.14148E-06   -.42306E-03
   6  norm          .10000E-03    137.84       -.19235E-06** at limit **
   7  Prefactor     .10000E-03    2.1806        .70379E-07** at limit **
   8  norm          2.2029        .76319        .28522E-07    .94580E-04
   9  Prefactor     5.7035        2.4532       -.50902E-08   -.96231E-04
  10  Prefactor     .10000E-03    16.363        .82232E-05** at limit **
  11  Prefactor     12.331        11.784        .16571E-07    .11992E-04
  12  norm          .10000E-03    .75079        .72949E-07** at limit **
  13  Prefactor     5.2826        8.5214        .61443E-06    .15673E-03
  14  Prefactor     29.611        36.939        .20181E-07   -.20584E-04
  15  Prefactor     46.350        48.527        .32036E-07   -.37089E-04
  16  norm          .10000E-03    18.055        .51807E-07** at limit **
  17  norm          1.5316        .37543       -.26306E-07   -.18205E-02
  18  Prefactor     .10004E-03    268.24       -.44744E-05** at limit **
  19  norm          12.995        12.536        .22338E-06   -.95956E-04
  20  norm          7.8809        8.3180       -.75287E-07   -.62045E-04
  21  Prefactor     .10000E-03    4.6039        .52908E-07** at limit **
  22  Prefactor     16.506        23.726       -.34711E-06   -.44671E-04
  23  Prefactor     7.9241        10.387        .26703E-06    .12458E-03
  24  norm          5.4966        2.1517       -.56805E-08    .35654E-05
  25  Normalizat    1.0364        .27380        .12673E-05   -.76237E-04
  26  Prefactor     1.2574        .16890       -.85422E-06   -.24272E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.4326
  Prefactor  = 0.000100002
  norm       = 1.99153
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.20285
  Prefactor  = 5.70355
  Prefactor  = 0.000100001
  Prefactor  = 12.331
  norm       = 0.0001
  Prefactor  = 5.28256
  Prefactor  = 29.6114
  Prefactor  = 46.3499
  norm       = 0.0001
  norm       = 1.53156
  Prefactor  = 0.000100042
  norm       = 12.9949
  norm       = 7.88093
  Prefactor  = 0.0001
  Prefactor  = 16.5059
  Prefactor  = 7.92409
  norm       = 5.49663
  Normalizat = 1.03638
  Prefactor  = 1.25736
 **********
 **   18 **HESSE 
 **********

 FCN=   7186.604     FROM HESSE     STATUS=OK           460 CALLS     3573 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    54.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.433        31.409        .95793E-04   -1.4873    
   4  Prefactor     .10000E-03    12.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9915        2.1010        .12144E-03   -1.5426    
   6  norm          .10000E-03    139.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.1852        .12224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.2029        .76397        .40508E-04   -1.5411    
   9  Prefactor     5.7035        2.4543        .84353E-04   -1.5230    
  10  Prefactor     .10000E-03    16.424        .38634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.331        11.793        .11408E-03   -1.5006    
  12  norm          .10000E-03    .77456        .14334E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.2826        8.5020        .17492E-03   -1.5248    
  14  Prefactor     29.611        36.950        .73629E-04   -1.4619    
  15  Prefactor     46.350        48.877        .58893E-04   -1.4345    
  16  norm          .10000E-03    18.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.5316        .37906        .23190E-04   -1.5460    
  18  Prefactor     .10004E-03    274.04        .21413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          12.995        12.500        .11104E-03   -1.4987    
  20  norm          7.8809        8.3210        .14283E-03   -1.5146    
  21  Prefactor     .10000E-03    4.6168        .17763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     16.506        23.784        .98500E-04   -1.4895    
  23  Prefactor     7.9241        10.421        .14241E-03   -1.5145    
  24  norm          5.4966        2.1514        .74394E-04   -1.5239    
  25  Normalizat    1.0364        .32189        .38710E-03   -.91822    
  26  Prefactor     1.2574        .19998        .24015E-03   -.84584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.15315e-10
Minuit parameter uncertainties:
  1  1.51055e-05
  2  6.04775e-05
  3  31.4389
  4  0.00030841
  5  2.10105
  6  3.2894e-05
  7  6.57421e-06
  8  0.763976
  9  2.45437
  10  0.000261097
  11  11.7955
  12  3.34559e-06
  13  8.50396
  14  36.9783
  15  48.9193
  16  1.64283e-05
  17  0.379056
  18  0.00683298
  19  12.5028
  20  8.32219
  21  7.01074e-06
  22  23.7978
  23  10.4231
  24  2.15138
  25  0.322495
  26  0.200099
Done.

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

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  4.635e+01  4.892e+01  1.000e-04  1.000e+04 ( 1.000e-14)
332        Index:  2.058e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  2.757e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  1.257e+00  2.001e-01  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  1.036e+00  3.225e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.08
Ra Dec: 192.326 -5.762
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 4.04e-08 +/- 4.26e-08
Energy Flux (Fixed Index): 2.43e-05 +/- 2.57e-05

TS (Fixed Index): 2.08
Ra Dec: 192.326 -5.762
Photon Flux Upper Limit: 1.43e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.08e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/929473/likelihoodResults_420508801_420768001_4FGL_J1249.3-0545_daily_bin699.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) = 7186.57534929
delta logL = 0.0286168125231

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7186.56300167
delta logL = 0.0409644357387

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.400       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2697       1.0000          .0000       10.000    
     3 'Normalizat'    1.0230       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2614       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+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=   7186.563     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      303 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.400        54.055        .64679E-04    .63277E-05
   2  Index         2.2699        .80254        .78425E-02    .58871E-03
   3  Normalizat    1.0225        .29687        .38927E-03    .57534E-05
   4  Prefactor     1.2617        .19811        .23973E-03    .12994E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.4005
  Index      = 2.26988
  Normalizat = 1.02255
  Prefactor  = 1.26171
 **********
 **   18 **HESSE 
 **********

 FCN=   7186.563     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .70E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.400        49.788        .25872E-05   -1.4468    
   2  Index         2.2699        .73867        .15685E-02   -.57761    
   3  Normalizat    1.0225        .29606        .15571E-04   -.92279    
   4  Prefactor     1.2617        .19802        .95892E-05   -.84453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.98949e-13
Minuit parameter uncertainties:
  1  49.8421
  2  0.742557
  3  0.296538
  4  0.19814
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929473': 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) = 7186.56300052
delta logL = 0.040965587461

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  3.840e+01  4.984e+01  1.000e-04  1.000e+04 ( 1.000e-14)
332        Index:  2.270e+00  7.426e-01  0.000e+00  1.000e+01 (-1.000e+00)
333        Scale:  2.757e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  1.262e+00  1.981e-01  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  1.023e+00  2.965e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.19
Ra Dec: 192.326 -5.762
Photon Index (Free Index): 2.27 +/- 0.74
Photon Flux (Free Index): 5.63e-08 +/- 7.74e-08
Energy Flux (Free Index): 2.24e-05 +/- 2.19e-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/929473/cmap_HighResolution_420508801_420768001_4FGL_J1249.3-0545_daily_bin699.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', comment='SUCCESS', photon_flux='4.04e-08', energy_flux2='2.24e-05', photon_flux_error='4.26e-08', dlogl='4.10e-02', energy_flux='2.43e-05', photon_flux2='5.63e-08', job_status='DONE', time_completed='2021-09-06 06:25:40.881162', photon_index_error2='0.74', photon_index2='2.27', ts='2.08', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', photon_flux_upper_limit='1.43e-07', energy_flux_error2='2.19e-05', EG='1.04', time_epoch_completed='1630934740.88', return_code='0', job_id='929473', GAL2='1.26', EG2='1.02', return_code2='0', energy_flux_error='2.57e-05', photon_flux_error2='7.74e-08', ts2='2.19', photon_index='2.06' WHERE bin_id='699' AND source_name='4FGL J1249.3-0545' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:25:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 929473: <4FGL_J1249.3-0545_daily_bin699> in cluster <slac> Done

Job <4FGL_J1249.3-0545_daily_bin699> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Sep  6 06:10:38 2021
Job was executed on host(s) <bullet0294>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:10:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 06:10:39 2021
Terminated at Mon Sep  6 06:25:41 2021
Results reported at Mon Sep  6 06:25:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.3-0545_daily_bin699 192.326 -5.7621 420508801 420768001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1249.3-0545 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   844.35 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             297.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            903 sec.

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

