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


Performing analysis on: 4FGL_J1249.3-0545_daily_bin466
RA = 192.326, Dec = -5.7621
tmin = 360115201, tmax = 360374401
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='927843', job_status='RUN', time_executed='2021-09-06 06:05:43.549265', time_epoch_executed='1630933543.55' WHERE source_name='4FGL J1249.3-0545' and cadence='daily' and bin_id='466'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/927843

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/927843/ft1_4FGL_J1249.3-0545_daily_bin466.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/927843/ft2_4FGL_J1249.3-0545_daily_bin466.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/927843/ft1_4FGL_J1249.3-0545_daily_bin466.fits outfile=/scratch/kocevski/927843/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin466.fits ra=192.326 dec=-5.7621 rad=12.0 tmin=360115201.0 tmax=360374401.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.53
user 3.24
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/927843/ft1_filtered_4FGL_J1249.3-0545_daily_bin466.fits" evtable="EVENTS" scfile=/scratch/kocevski/927843/ft2_4FGL_J1249.3-0545_daily_bin466.fits sctable="SC_DATA" outfile=/scratch/kocevski/927843/ltcube_360115201_360374401_4FGL_J1249.3-0545_daily_bin466.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/927843/ft2_4FGL_J1249.3-0545_daily_bin466.fits
.....................!
real 11.97
user 11.49
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/927843/ft1_filtered_4FGL_J1249.3-0545_daily_bin466.fits evtable="EVENTS" scfile=/scratch/kocevski/927843/ft2_4FGL_J1249.3-0545_daily_bin466.fits sctable="SC_DATA" expcube=/scratch/kocevski/927843/ltcube_360115201_360374401_4FGL_J1249.3-0545_daily_bin466.fits outfile=/scratch/kocevski/927843/expmap_360115201_360374401_4FGL_J1249.3-0545_daily_bin466.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/927843/ltcube_360115201_360374401_4FGL_J1249.3-0545_daily_bin466.fits
.....................!
real 191.61
user 185.19
sys 4.96

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/927843/ft1_filtered_4FGL_J1249.3-0545_daily_bin466.fits scfile=/scratch/kocevski/927843/ft2_4FGL_J1249.3-0545_daily_bin466.fits outfile=/scratch/kocevski/927843/cmap_360115201_360374401_4FGL_J1249.3-0545_daily_bin466.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/927843/ft1_filtered_4FGL_J1249.3-0545_daily_bin466.fits scfile=/scratch/kocevski/927843/ft2_4FGL_J1249.3-0545_daily_bin466.fits outfile=/scratch/kocevski/927843/cmap_HighResolution_360115201_360374401_4FGL_J1249.3-0545_daily_bin466.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/927843/ft1_filtered_4FGL_J1249.3-0545_daily_bin466.fits evtable="EVENTS" scfile=/scratch/kocevski/927843/ft2_4FGL_J1249.3-0545_daily_bin466.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/927843/Model_4FGL_J1249.3-0545_daily_bin466.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/927843/ft1_filtered_4FGL_J1249.3-0545_daily_bin466.fits.....................!
real 50.39
user 49.02
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/927843/ft1_filtered_4FGL_J1249.3-0545_daily_bin466.fits', '/scratch/kocevski/927843/ft2_4FGL_J1249.3-0545_daily_bin466.fits', expMap='/scratch/kocevski/927843/expmap_360115201_360374401_4FGL_J1249.3-0545_daily_bin466.fits', expCube='/scratch/kocevski/927843/ltcube_360115201_360374401_4FGL_J1249.3-0545_daily_bin466.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/927843/Model_4FGL_J1249.3-0545_daily_bin466.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/927843/ft1_filtered_4FGL_J1249.3-0545_daily_bin466.fits
Spacecraft file(s): /scratch/kocevski/927843/ft2_4FGL_J1249.3-0545_daily_bin466.fits
Exposure map: /scratch/kocevski/927843/expmap_360115201_360374401_4FGL_J1249.3-0545_daily_bin466.fits
Exposure cube: /scratch/kocevski/927843/ltcube_360115201_360374401_4FGL_J1249.3-0545_daily_bin466.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/927843/Model_4FGL_J1249.3-0545_daily_bin466.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) = 5945.82693944

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    67.580       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10518E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10165E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    53.321       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.4544       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.0991       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.872       1.0000         .10000E-03   10000.    
    12 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11117E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .82306       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    27.646       1.0000         .10000E-03   10000.    
    17 'norm      '    .43801       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    22.522       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.828       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.0758       1.0000         .10000E-03   10000.    
    24 'norm      '    1.6079       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.5878       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .81842       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.

 FCN=   5945.793     FROM MIGRAD    STATUS=CONVERGED    630 CALLS     2720 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.4962        .90712E-02** at limit **
   2  Prefactor     67.579        49.500        .12206E-02    .77155E-03
   3  Prefactor     .10000E-03    8.2281        .90712E-02** at limit **
   4  Prefactor     .10000E-03    6.2570        .90712E-01** at limit **
   5  norm          .10000E-03    1.8973        .32404E-01** at limit **
   6  norm          53.321        48.646        .13732E-02   -.24245E-03
   7  Prefactor     .10000E-03    2.4447        .90712E-02** at limit **
   8  norm          1.4540        .68863        .89210E-02    .23216E-03
   9  Prefactor     7.0993        2.7474        .37639E-02   -.11114E-02
  10  Prefactor     .10000E-03    3.5632        .90712E-02** at limit **
  11  Prefactor     27.870        17.161        .18971E-02   -.11726E-02
  12  norm          .10000E-03    .92106        .27018E-01** at limit **
  13  Prefactor     .10007E-03    4.2124        .54488E-01** at limit **
  14  Prefactor     .90386        25.283        .12526        .45165E-03
  15  Prefactor     .10001E-03    22.771        .90712E-02** at limit **
  16  norm          27.643        24.041        .19048E-02    .71441E-03
  17  norm          .43805        .24792        .61027E-02    .59447E-03
  18  Prefactor     .10004E-03    99.147        .90712E-02** at limit **
  19  norm          22.525        11.888        .21101E-02    .81824E-04
  20  norm          .10000E-03    2.8925        .90712E-02** at limit **
  21  Prefactor     24.831        18.231        .20098E-02   -.10595E-03
  22  Prefactor     .10000E-03    13.962        .90712E-02** at limit **
  23  Prefactor     3.0736        11.747        .57820E-02    .20793E-03
  24  norm          1.6080        1.6264        .83531E-02    .60412E-03
  25  Normalizat    1.5878        .26004        .66581E-01   -.59540E-05
  26  Prefactor     .81849        .16603        .43957E-01    .69190E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 67.5786
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 53.3212
  Prefactor  = 0.0001
  norm       = 1.454
  Prefactor  = 7.09933
  Prefactor  = 0.0001
  Prefactor  = 27.8703
  norm       = 0.0001
  Prefactor  = 0.000100071
  Prefactor  = 0.903864
  Prefactor  = 0.000100007
  norm       = 27.6426
  norm       = 0.438047
  Prefactor  = 0.000100044
  norm       = 22.5247
  norm       = 0.0001
  Prefactor  = 24.8311
  Prefactor  = 0.0001
  Prefactor  = 3.07362
  norm       = 1.60801
  Normalizat = 1.58775
  Prefactor  = 0.818487
 **********
 **   18 **HESSE 
 **********

 FCN=   5945.793     FROM HESSE     STATUS=OK           462 CALLS     3182 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.5053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     67.579        49.513        .24412E-03   -1.4062    
   3  Prefactor     .10000E-03    8.2347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    29.738        .35533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.8082        .19693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          53.321        48.824        .54928E-04   -1.4246    
   7  Prefactor     .10000E-03    2.4540        .11770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.4540        .68514        .39821E-04   -1.5467    
   9  Prefactor     7.0993        2.7496        .38502E-03   -1.5175    
  10  Prefactor     .10000E-03    3.5694        .14214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     27.870        17.195        .75884E-04   -1.4652    
  12  norm          .10000E-03    1.7283        .14271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10007E-03    25.720        .30652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .90386        167.57        .74356E-02   -1.5518    
  15  Prefactor     .10001E-03    22.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          27.643        23.976        .76193E-04   -1.4656    
  17  norm          .43805        .24438        .27333E-04   -1.5576    
  18  Prefactor     .10004E-03    99.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          22.525        11.891        .42201E-03   -1.4758    
  20  norm          .10000E-03    2.8926        .12808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     24.831        18.159        .80392E-04   -1.4711    
  22  Prefactor     .10000E-03    14.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.0736        11.682        .23128E-03   -1.5357    
  24  norm          1.6080        1.6102        .94928E-04   -1.5454    
  25  Normalizat    1.5878        .30240        .29451E-03   -.75342    
  26  Prefactor     .81849        .19261        .26250E-03   -.99050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3168e-08
Minuit parameter uncertainties:
  1  2.05286e-06
  2  49.5429
  3  2.41308e-06
  4  0.000246231
  5  2.37414e-07
  6  48.861
  7  1.47721e-06
  8  0.68514
  9  2.74969
  10  1.6593e-06
  11  17.1983
  12  8.17279e-07
  13  0.00270655
  14  24.683
  15  0.000779944
  16  23.984
  17  0.244382
  18  0.0041921
  19  11.892
  20  3.36459e-07
  21  18.163
  22  3.99078e-05
  23  11.6908
  24  1.6102
  25  0.302752
  26  0.192767
Done.

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

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  7.799e-04  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:  8.185e-01  1.928e-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.588e+00  3.028e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 192.326 -5.762
Photon Flux Upper Limit: 7.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/927843/likelihoodResults_360115201_360374401_4FGL_J1249.3-0545_daily_bin466.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) = 5945.79325429
delta logL = -0.000208842473512

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5945.79304543
delta logL = 1.25210135593e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1425       1.0000          .0000       10.000    
     3 'Normalizat'    1.5877       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81849       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.

 FCN=   5945.793     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      234 TOTAL
                     EDM=   .55E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.102        .90712E-02** at limit **
   2  Index         2.1482        6.0720        .50000       -.22344E-05
   3  Normalizat    1.5878        .24265        .66581E-01    .63339E-05
   4  Prefactor     .81849        .16280        .43957E-01    .16835E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.14818
  Normalizat = 1.58775
  Prefactor  = 0.818487
 **********
 **   18 **HESSE 
 **********

 FCN=   5945.793     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      267 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1179.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1482        6.0673        .50000       -.60695    
   3  Normalizat    1.5878        .49498E-01    .29451E-03   -.75342    
   4  Prefactor     .81849        .33214E-01    .26250E-03   -.99050    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.73235e-10
Minuit parameter uncertainties:
  1  7.97286e-06
  2  30.0664
  3  0.0494998
  4  0.0332144
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/927843': 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): 102
logL (Free Index) = 5945.79304541
delta logL = 3.26617737301e-08

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  7.973e-06  1.000e-04  1.000e+04 ( 1.000e-14)
332        Index:  2.148e+00  3.007e+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:  8.185e-01  3.321e-02  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.588e+00  4.950e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 192.326 -5.762

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/927843/cmap_HighResolution_360115201_360374401_4FGL_J1249.3-0545_daily_bin466.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.84e-03', job_status='DONE', photon_flux_upper_limit='7.75e-08', time_completed='2021-09-06 06:17:56.560968', job_id='927843', GAL2='0.82', fit_tolerance='1e-08', EG2='1.59', EG='1.59', time_epoch_completed='1630934276.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='3.27e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='466' AND source_name='4FGL J1249.3-0545' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:17:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 927843: <4FGL_J1249.3-0545_daily_bin466> in cluster <slac> Done

Job <4FGL_J1249.3-0545_daily_bin466> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 06:05:20 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:05:22 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:05:22 2021
Terminated at Mon Sep  6 06:17:57 2021
Results reported at Mon Sep  6 06:17:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.3-0545_daily_bin466 192.326 -5.7621 360115201 360374401 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 :                                   726.10 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             373.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   754 sec.
    Turnaround time :                            757 sec.

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

