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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin791
RA = 192.46, Dec = 37.1306
tmin = 444355201, tmax = 444614401
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='938716', job_status='RUN', time_executed='2021-09-06 06:44:42.582968', time_epoch_executed='1630935882.58' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='791'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938716

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938716/ft1_4FGL_J1249.8+3707_daily_bin791.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938716/ft2_4FGL_J1249.8+3707_daily_bin791.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938716/ft1_4FGL_J1249.8+3707_daily_bin791.fits outfile=/scratch/kocevski/938716/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin791.fits ra=192.46 dec=37.1306 rad=12.0 tmin=444355201.0 tmax=444614401.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 6.63
user 6.30
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/938716/ft1_filtered_4FGL_J1249.8+3707_daily_bin791.fits" evtable="EVENTS" scfile=/scratch/kocevski/938716/ft2_4FGL_J1249.8+3707_daily_bin791.fits sctable="SC_DATA" outfile=/scratch/kocevski/938716/ltcube_444355201_444614401_4FGL_J1249.8+3707_daily_bin791.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/938716/ft2_4FGL_J1249.8+3707_daily_bin791.fits
.....................!
real 11.31
user 10.93
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938716/ft1_filtered_4FGL_J1249.8+3707_daily_bin791.fits evtable="EVENTS" scfile=/scratch/kocevski/938716/ft2_4FGL_J1249.8+3707_daily_bin791.fits sctable="SC_DATA" expcube=/scratch/kocevski/938716/ltcube_444355201_444614401_4FGL_J1249.8+3707_daily_bin791.fits outfile=/scratch/kocevski/938716/expmap_444355201_444614401_4FGL_J1249.8+3707_daily_bin791.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/938716/ltcube_444355201_444614401_4FGL_J1249.8+3707_daily_bin791.fits
.....................!
real 192.60
user 185.84
sys 6.36

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/938716/ft1_filtered_4FGL_J1249.8+3707_daily_bin791.fits scfile=/scratch/kocevski/938716/ft2_4FGL_J1249.8+3707_daily_bin791.fits outfile=/scratch/kocevski/938716/cmap_444355201_444614401_4FGL_J1249.8+3707_daily_bin791.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.60
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938716/ft1_filtered_4FGL_J1249.8+3707_daily_bin791.fits scfile=/scratch/kocevski/938716/ft2_4FGL_J1249.8+3707_daily_bin791.fits outfile=/scratch/kocevski/938716/cmap_HighResolution_444355201_444614401_4FGL_J1249.8+3707_daily_bin791.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.60
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/938716/ft1_filtered_4FGL_J1249.8+3707_daily_bin791.fits', '/scratch/kocevski/938716/ft2_4FGL_J1249.8+3707_daily_bin791.fits', expMap='/scratch/kocevski/938716/expmap_444355201_444614401_4FGL_J1249.8+3707_daily_bin791.fits', expCube='/scratch/kocevski/938716/ltcube_444355201_444614401_4FGL_J1249.8+3707_daily_bin791.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/938716/Model_4FGL_J1249.8+3707_daily_bin791.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/938716/ft1_filtered_4FGL_J1249.8+3707_daily_bin791.fits
Spacecraft file(s): /scratch/kocevski/938716/ft2_4FGL_J1249.8+3707_daily_bin791.fits
Exposure map: /scratch/kocevski/938716/expmap_444355201_444614401_4FGL_J1249.8+3707_daily_bin791.fits
Exposure cube: /scratch/kocevski/938716/ltcube_444355201_444614401_4FGL_J1249.8+3707_daily_bin791.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/938716/Model_4FGL_J1249.8+3707_daily_bin791.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) = 4373.60494423

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.722       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10400E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    16.248       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.9880       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3676       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12229E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    62.727       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .22763       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10671E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    51.937       1.0000         .10000E-03   10000.    
    15 'Prefactor '    33.166       1.0000         .10000E-03   10000.    
    16 'norm      '    1.4794       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.1332       1.0000         .10000E-03   10000.    
    19 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.0147       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .20439E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.9427       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10602E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1842       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .81025       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=   4373.550     FROM MIGRAD    STATUS=CONVERGED   1143 CALLS     3705 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.741        46.967        .58045E-04    .10811E-04
   2  Prefactor     .10025E-03    52.514        .12885    ** at limit **
   3  norm          16.250        5.4950        .83909E-04    .67473E-04
   4  Prefactor     .10000E-03    9.7465        .18142E-02** at limit **
   5  Prefactor     .10000E-03    3.3887        .23241E-03** at limit **
   6  Prefactor     4.9872        3.4807        .47255E-03    .19552E-03
   7  Prefactor     4.3681        13.169        .19273E-03   -.83174E-05
   8  Prefactor     .10000E-03    7.7208        .17947E-02** at limit **
   9  Prefactor     .10000E-03    76.873        .53572E-02** at limit **
  10  Prefactor     62.831        106.95        .25333E-03    .76516E-04
  11  Prefactor     .10000E-03    4.6195        .13841E-02** at limit **
  12  norm          .20507        109.43        .25882E-02    .54017E-03
  13  Prefactor     .10000E-03    27.662        .18142E-02** at limit **
  14  Prefactor     52.002        46.885        .55651E-04    .13164E-03
  15  Prefactor     33.175        24.767        .69580E-04    .16502E-04
  16  norm          1.4787        4.3360        .22389E-03    .18280E-05
  17  norm          .10000E-03    7.4517        .17622E-02** at limit **
  18  norm          2.1349        4.0141        .17055E-03   -.27963E-03
  19  norm          .10001E-03    18.490        .32163E-02** at limit **
  20  Prefactor     1.0136        2.8701        .18362E-03    .15726E-04
  21  Prefactor     .10000E-03    11.569        .18142E-02** at limit **
  22  Prefactor     .10000E-03    193.77        .18142E-02** at limit **
  23  Prefactor     1.9388        35.858        .29784E-03   -.10153E-04
  24  Prefactor     .10000E-03    23.212        .18142E-02** at limit **
  25  Normalizat    1.1844        .24240        .22857E-03    .15918E-03
  26  Prefactor     .81019        .28963        .32715E-03    .82984E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.7415
  Prefactor  = 0.000100248
  norm       = 16.2498
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.98723
  Prefactor  = 4.3681
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.8314
  Prefactor  = 0.0001
  norm       = 0.205073
  Prefactor  = 0.0001
  Prefactor  = 52.0019
  Prefactor  = 33.1753
  norm       = 1.47865
  norm       = 0.0001
  norm       = 2.13489
  norm       = 0.000100007
  Prefactor  = 1.01359
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.93875
  Prefactor  = 0.0001
  Normalizat = 1.18437
  Prefactor  = 0.810189
 **********
 **   18 **HESSE 
 **********

 FCN=   4373.550     FROM HESSE     STATUS=OK           442 CALLS     4147 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.741        46.967        .11609E-04   -1.4325    
   2  Prefactor     .10025E-03    52.558        .12877       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          16.250        5.4949        .33564E-05   -1.4902    
   4  Prefactor     .10000E-03    9.7511        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.3888        .46481E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.9872        3.4802        .18902E-04   -1.5261    
   7  Prefactor     4.3681        13.165        .77090E-05   -1.5290    
   8  Prefactor     .10000E-03    7.7208        .35893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    78.421        .10714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     62.831        104.37        .10133E-04   -1.4121    
  11  Prefactor     .10000E-03    4.6199        .27683E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .20507        89.700        .10353E-03   -1.5617    
  13  Prefactor     .10000E-03    27.663        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     52.002        43.106        .11130E-04   -1.4264    
  15  Prefactor     33.175        24.747        .27832E-05   -1.4555    
  16  norm          1.4787        4.3351        .89558E-05   -1.5465    
  17  norm          .10000E-03    7.4520        .35244E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.1349        3.9995        .68221E-05   -1.5416    
  19  norm          .10001E-03    18.505        .64326E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.0136        2.8692        .73449E-05   -1.5507    
  21  Prefactor     .10000E-03    11.572        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    193.83        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.9388        35.849        .11913E-04   -1.5429    
  24  Prefactor     .10000E-03    23.213        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1844        .24245        .45714E-04   -.87087    
  26  Prefactor     .81019        .28929        .13086E-04   -.99354    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.71953e-09
Minuit parameter uncertainties:
  1  47.0035
  2  0.00722641
  3  5.49504
  4  3.08107e-05
  5  3.41034e-05
  6  3.48032
  7  13.1741
  8  6.07544e-06
  9  0.000385166
  10  104.673
  11  5.07042e-06
  12  8.58873
  13  3.11732e-05
  14  43.1321
  15  24.7549
  16  4.33604
  17  7.15371e-06
  18  4
  19  0.000717136
  20  2.86961
  21  8.77956e-05
  22  0.000344096
  23  16.6848
  24  7.03193e-05
  25  0.242682
  26  0.289839
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  3.852e-04  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:  8.102e-01  2.898e-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:  1.184e+00  2.427e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/938716/likelihoodResults_444355201_444614401_4FGL_J1249.8+3707_daily_bin791.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) = 4373.55025
delta logL = -6.07614238106e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4373.55024999
delta logL = -6.07526981184e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96355E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7801       1.0000          .0000       10.000    
     3 'Normalizat'    1.1844       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81018       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.

 FCN=   4373.550     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      237 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .65752E-03    .70291        .11648    ** at limit **
   2  Index         1.6055        5.0794        .50000        .61473E-04
   3  Normalizat    1.1844        .94211E-03    .51698E-01    .47425E-04
   4  Prefactor     .81018        .11435E-02    .73922E-01   -.10957E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000657518
  Index      = 1.60553
  Normalizat = 1.18437
  Prefactor  = 0.810184
 **********
 **   18 **HESSE 
 **********

 FCN=   4373.550     FROM HESSE     STATUS=NOT POSDEF    43 CALLS      280 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .65752E-03    .86576        .10375       -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6055        5.2160        .50000       -.74625    
   3  Normalizat    1.1844        .98017E-03    .22857E-03   -.87087    
   4  Prefactor     .81018        .11881E-02    .32715E-03   -.99354    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.06752e-08
Minuit parameter uncertainties:
  1  0.0439404
  2  6.4657
  3  0.000980168
  4  0.00118807
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938716': 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) = 4373.55018807
delta logL = 1.169778443e-06

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  6.575e-04  4.394e-02  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.606e+00  6.466e+00  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:  8.102e-01  1.188e-03  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:  1.184e+00  9.802e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 192.460 37.131

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/938716/cmap_HighResolution_444355201_444614401_4FGL_J1249.8+3707_daily_bin791.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.78e-03', job_status='DONE', photon_flux_upper_limit='5.14e-08', time_completed='2021-09-06 06:56:11.237030', job_id='938716', GAL2='0.81', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1630936571.24', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.17e-06', ts2='0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='791' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:56:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 938716: <4FGL_J1249.8+3707_daily_bin791> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin791 192.46 37.1306 444355201 444614401 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 :                                   685.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             226.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            942 sec.

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

