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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin918
RA = 192.46, Dec = 37.1306
tmin = 477273601, tmax = 477532801
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='938901', job_status='RUN', time_executed='2021-09-06 06:44:17.024440', time_epoch_executed='1630935857.02' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='918'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938901

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938901/ft1_4FGL_J1249.8+3707_daily_bin918.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938901/ft2_4FGL_J1249.8+3707_daily_bin918.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938901/ft1_4FGL_J1249.8+3707_daily_bin918.fits outfile=/scratch/kocevski/938901/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin918.fits ra=192.46 dec=37.1306 rad=12.0 tmin=477273601.0 tmax=477532801.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.54
user 3.35
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/938901/ft2_4FGL_J1249.8+3707_daily_bin918.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/938901/ft2_4FGL_J1249.8+3707_daily_bin918.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/938901/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin918.fits evtable="EVENTS" outfile="/scratch/kocevski/938901/ft1_filtered_4FGL_J1249.8+3707_daily_bin918.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.52
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/938901/ft1_filtered_4FGL_J1249.8+3707_daily_bin918.fits" evtable="EVENTS" scfile=/scratch/kocevski/938901/ft2_4FGL_J1249.8+3707_daily_bin918.fits sctable="SC_DATA" outfile=/scratch/kocevski/938901/ltcube_477273601_477532801_4FGL_J1249.8+3707_daily_bin918.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/938901/ft2_4FGL_J1249.8+3707_daily_bin918.fits
.....................!
real 11.85
user 11.47
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938901/ft1_filtered_4FGL_J1249.8+3707_daily_bin918.fits evtable="EVENTS" scfile=/scratch/kocevski/938901/ft2_4FGL_J1249.8+3707_daily_bin918.fits sctable="SC_DATA" expcube=/scratch/kocevski/938901/ltcube_477273601_477532801_4FGL_J1249.8+3707_daily_bin918.fits outfile=/scratch/kocevski/938901/expmap_477273601_477532801_4FGL_J1249.8+3707_daily_bin918.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/938901/ltcube_477273601_477532801_4FGL_J1249.8+3707_daily_bin918.fits
.....................!
real 191.07
user 186.47
sys 4.24

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 196 point sources and 0 extended sources

Setting source of interest to:
4FGL J1249.8+3707 @ 192.46 37.1306

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/938901/ft1_filtered_4FGL_J1249.8+3707_daily_bin918.fits scfile=/scratch/kocevski/938901/ft2_4FGL_J1249.8+3707_daily_bin918.fits outfile=/scratch/kocevski/938901/cmap_477273601_477532801_4FGL_J1249.8+3707_daily_bin918.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.46 yref=37.1306 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.74
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938901/ft1_filtered_4FGL_J1249.8+3707_daily_bin918.fits scfile=/scratch/kocevski/938901/ft2_4FGL_J1249.8+3707_daily_bin918.fits outfile=/scratch/kocevski/938901/cmap_HighResolution_477273601_477532801_4FGL_J1249.8+3707_daily_bin918.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.46 yref=37.1306 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.78
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/938901/ft1_filtered_4FGL_J1249.8+3707_daily_bin918.fits evtable="EVENTS" scfile=/scratch/kocevski/938901/ft2_4FGL_J1249.8+3707_daily_bin918.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/938901/Model_4FGL_J1249.8+3707_daily_bin918.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/938901/ft1_filtered_4FGL_J1249.8+3707_daily_bin918.fits.....................!
real 51.99
user 48.96
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/938901/ft1_filtered_4FGL_J1249.8+3707_daily_bin918.fits', '/scratch/kocevski/938901/ft2_4FGL_J1249.8+3707_daily_bin918.fits', expMap='/scratch/kocevski/938901/expmap_477273601_477532801_4FGL_J1249.8+3707_daily_bin918.fits', expCube='/scratch/kocevski/938901/ltcube_477273601_477532801_4FGL_J1249.8+3707_daily_bin918.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/938901/Model_4FGL_J1249.8+3707_daily_bin918.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1249.8+3707'

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  2.229e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.780e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  4.011e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/938901/ft1_filtered_4FGL_J1249.8+3707_daily_bin918.fits
Spacecraft file(s): /scratch/kocevski/938901/ft2_4FGL_J1249.8+3707_daily_bin918.fits
Exposure map: /scratch/kocevski/938901/expmap_477273601_477532801_4FGL_J1249.8+3707_daily_bin918.fits
Exposure cube: /scratch/kocevski/938901/ltcube_477273601_477532801_4FGL_J1249.8+3707_daily_bin918.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/938901/Model_4FGL_J1249.8+3707_daily_bin918.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) = 6191.62958768

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.8485       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.1191       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.8702       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.6651       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.675       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4436       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.8149       1.0000         .10000E-03   10000.    
    15 'Prefactor '    32.200       1.0000         .10000E-03   10000.    
    16 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.7135       1.0000         .10000E-03   10000.    
    18 'norm      '    .11664E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.2083       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.8587       1.0000         .10000E-03   10000.    
    24 'Prefactor '    19.254       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .80392       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1572       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6191.566     FROM MIGRAD    STATUS=CONVERGED    607 CALLS     3119 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8100        93.353       -.15323E-04   -.14449E-03
   2  Prefactor     .10000E-03    10.712       -.19878E-07** at limit **
   3  norm          6.1189        3.2017        .68898E-08   -.23435E-04
   4  Prefactor     .10000E-03    3.9707        .34679E-06** at limit **
   5  Prefactor     4.8701        2.5463       -.57424E-07   -.13505E-03
   6  Prefactor     4.6654        2.7888        .15949E-06    .24447E-03
   7  Prefactor     .10000E-03    3.8901       -.28763E-06** at limit **
   8  Prefactor     .10000E-03    5.7518       -.17779E-06** at limit **
   9  Prefactor     17.682        18.965        .17895E-06    .17325E-03
  10  Prefactor     3.4477        186.22        .38178E-05    .14563E-04
  11  Prefactor     .10000E-03    4.4121       -.17402E-07** at limit **
  12  norm          .10000E-03    1.5102        .63812E-07** at limit **
  13  Prefactor     .10000E-03    25.845        .34002E-06** at limit **
  14  Prefactor     5.8171        16.448       -.16750E-06    .55770E-05
  15  Prefactor     32.212        19.440        .23877E-06    .37174E-03
  16  norm          .10000E-03    2.9517        .28886E-06** at limit **
  17  norm          9.7129        10.151        .26877E-07    .28986E-05
  18  norm          .10001E-03    1.5492        .42882E-07** at limit **
  19  norm          .10000E-03    1.8653       -.52650E-07** at limit **
  20  Prefactor     .10000E-03    1.1723       -.27396E-06** at limit **
  21  Prefactor     4.2083        8.3648        .54084E-05   -.43478E-03
  22  Prefactor     .10000E-03    21.034        .32740E-06** at limit **
  23  Prefactor     5.8604        17.797       -.24393E-06    .14905E-05
  24  Prefactor     19.255        57.478        .44718E-06    .45891E-05
  25  Normalizat    .80379        .16913       -.12958E-05    .62079E-04
  26  Prefactor     1.1573        .20367        .67636E-06   -.46331E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.80995
  Prefactor  = 0.0001
  norm       = 6.11886
  Prefactor  = 0.0001
  Prefactor  = 4.87007
  Prefactor  = 4.6654
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.6821
  Prefactor  = 3.4477
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.81708
  Prefactor  = 32.2121
  norm       = 0.0001
  norm       = 9.71288
  norm       = 0.000100007
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.20825
  Prefactor  = 0.0001
  Prefactor  = 5.86042
  Prefactor  = 19.2549
  Normalizat = 0.803793
  Prefactor  = 1.1573
 **********
 **   18 **HESSE 
 **********

 FCN=   6191.566     FROM HESSE     STATUS=OK           456 CALLS     3575 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8100        104.47        .12769E-03   -1.5081    
   2  Prefactor     .10000E-03    10.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.1189        3.2015        .94698E-04   -1.5213    
   4  Prefactor     .10000E-03    3.9967        .15320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.8701        2.5479        .84984E-04   -1.5267    
   6  Prefactor     4.6654        2.7849        .95594E-04   -1.5276    
   7  Prefactor     .10000E-03    3.9015        .15164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.7560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.682        18.785        .95267E-04   -1.4867    
  10  Prefactor     3.4477        186.00        .21795E-03   -1.5337    
  11  Prefactor     .10000E-03    18.839        .30752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.5157        .94332E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    25.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.8171        16.232        .16655E-03   -1.5226    
  15  Prefactor     32.212        19.154        .70613E-04   -1.4572    
  16  norm          .10000E-03    2.9785        .13169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.7129        10.151        .12858E-03   -1.5085    
  18  norm          .10001E-03    6.4605        .18569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.8717        .10489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.1974        .83415E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.2083        8.5926        .98221E-03   -1.5298    
  22  Prefactor     .10000E-03    21.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.8604        17.780        .16592E-03   -1.5224    
  24  Prefactor     19.255        57.588        .91277E-04   -1.4830    
  25  Normalizat    .80379        .20181        .25142E-03   -.99928    
  26  Prefactor     1.1573        .24434        .26648E-03   -.87656    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62787e-09
Minuit parameter uncertainties:
  1  64.1697
  2  1.31409e-06
  3  3.20156
  4  2.63908e-05
  5  2.54795
  6  2.78495
  7  2.50924e-05
  8  1.58919e-05
  9  18.7911
  10  50.8128
  11  0.000238108
  12  2.55417e-06
  13  5.8597e-05
  14  16.2447
  15  19.1572
  16  1.74701e-05
  17  10.1529
  18  0.000417893
  19  6.00893e-06
  20  1.86777e-05
  21  8.59514
  22  4.09003e-05
  23  17.7964
  24  57.7547
  25  0.201998
  26  0.244581
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.768e+01  1.879e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.780e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  4.011e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  1.157e+00  2.446e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  8.038e-01  2.020e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.81
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 1.61e-08 +/- 1.71e-08
Energy Flux (Fixed Index): 2.05e-05 +/- 2.18e-05

TS (Fixed Index): 1.81
Ra Dec: 192.460 37.131
Photon Flux Upper Limit: 6.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/938901/likelihoodResults_477273601_477532801_4FGL_J1249.8+3707_daily_bin918.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) = 6190.24858302
delta logL = 1.31734864315

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6190.24788482
delta logL = 1.31804684462

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8852       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1218       1.0000          .0000       10.000    
     3 'Normalizat'    .70969       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2268       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+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=   6190.248     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      303 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8873        29.349        .15157E-03    .12058E-03
   2  Index         3.1214        2.6036        .27023E-02    .41057E-04
   3  Normalizat    .70974        .22712        .26578E-03   -.19249E-05
   4  Prefactor     1.2268        .25659        .25956E-03   -.62635E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.88727
  Index      = 3.12142
  Normalizat = 0.709735
  Prefactor  = 1.22677
 **********
 **   18 **HESSE 
 **********

 FCN=   6190.248     FROM HESSE     STATUS=OK            27 CALLS      330 TOTAL
                     EDM=   .37E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8873        5.0072        .30313E-04   -1.5433    
   2  Index         3.1214        .92518        .10809E-03   -.38517    
   3  Normalizat    .70974        .20920        .10631E-04   -1.0351    
   4  Prefactor     1.2268        .25296        .10382E-04   -.85512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71218e-13
Minuit parameter uncertainties:
  1  5.00828
  2  0.931435
  3  0.209439
  4  0.253213
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938901': 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) = 6190.2478847
delta logL = 1.31804696183

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.887e+00  5.008e+00  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  3.121e+00  9.314e-01  0.000e+00  1.000e+01 (-1.000e+00)
315        Scale:  4.011e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  1.227e+00  2.532e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  7.097e-01  2.094e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.58
Ra Dec: 192.460 37.131
Photon Index (Free Index): 3.12 +/- 0.93
Photon Flux (Free Index): 9.00e-08 +/- 6.52e-08
Energy Flux (Free Index): 1.70e-05 +/- 1.01e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/938901/cmap_HighResolution_477273601_477532801_4FGL_J1249.8+3707_daily_bin918.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.59e-03', comment='SUCCESS', photon_flux='1.61e-08', energy_flux2='1.70e-05', photon_flux_error='1.71e-08', dlogl='1.32e+00', energy_flux='2.05e-05', photon_flux2='9.00e-08', job_status='DONE', time_completed='2021-09-06 06:56:53.716935', photon_index_error2='0.93', photon_index2='3.12', ts='1.81', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='6.25e-08', energy_flux_error2='1.01e-05', EG='0.80', time_epoch_completed='1630936613.72', return_code='0', job_id='938901', GAL2='1.23', EG2='0.71', return_code2='0', energy_flux_error='2.18e-05', photon_flux_error2='6.52e-08', ts2='4.58', photon_index='1.78' WHERE bin_id='918' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:56:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 938901: <4FGL_J1249.8+3707_daily_bin918> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin918> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 06:40:42 2021
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:40:43 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:40:43 2021
Terminated at Mon Sep  6 06:56:54 2021
Results reported at Mon Sep  6 06:56:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin918 192.46 37.1306 477273601 477532801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1249.8+3707 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   752.19 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             256.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            972 sec.

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

