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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin814
RA = 192.46, Dec = 37.1306
tmin = 450316801, tmax = 450576001
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='938748', job_status='RUN', time_executed='2021-09-06 06:43:48.525144', time_epoch_executed='1630935828.53' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='814'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938748

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938748/ft1_4FGL_J1249.8+3707_daily_bin814.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938748/ft2_4FGL_J1249.8+3707_daily_bin814.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938748/ft1_4FGL_J1249.8+3707_daily_bin814.fits outfile=/scratch/kocevski/938748/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin814.fits ra=192.46 dec=37.1306 rad=12.0 tmin=450316801.0 tmax=450576001.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.99
user 3.75
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938748/ft1_filtered_4FGL_J1249.8+3707_daily_bin814.fits evtable="EVENTS" scfile=/scratch/kocevski/938748/ft2_4FGL_J1249.8+3707_daily_bin814.fits sctable="SC_DATA" expcube=/scratch/kocevski/938748/ltcube_450316801_450576001_4FGL_J1249.8+3707_daily_bin814.fits outfile=/scratch/kocevski/938748/expmap_450316801_450576001_4FGL_J1249.8+3707_daily_bin814.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/938748/ltcube_450316801_450576001_4FGL_J1249.8+3707_daily_bin814.fits
.....................!
real 191.50
user 185.86
sys 5.25

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/938748/ft1_filtered_4FGL_J1249.8+3707_daily_bin814.fits scfile=/scratch/kocevski/938748/ft2_4FGL_J1249.8+3707_daily_bin814.fits outfile=/scratch/kocevski/938748/cmap_450316801_450576001_4FGL_J1249.8+3707_daily_bin814.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938748/ft1_filtered_4FGL_J1249.8+3707_daily_bin814.fits scfile=/scratch/kocevski/938748/ft2_4FGL_J1249.8+3707_daily_bin814.fits outfile=/scratch/kocevski/938748/cmap_HighResolution_450316801_450576001_4FGL_J1249.8+3707_daily_bin814.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.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10345E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.4463       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.6847       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7731       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.649       1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.664       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.1768       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.4219       1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.565       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.0718       1.0000         .10000E-03   10000.    
    17 'norm      '    .11007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.1561       1.0000         .10000E-03   10000.    
    19 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .53756       1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.412       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10351E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10722E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .79745       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3699       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=   6306.076     FROM MIGRAD    STATUS=CONVERGED    612 CALLS     3066 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.365        .11295E-07** at limit **
   2  Prefactor     .10000E-03    9.4875       -.10239E-06** at limit **
   3  norm          3.4462        2.5376        .40443E-08    .20681E-04
   4  Prefactor     .10000E-03    17.447       -.10410E-05** at limit **
   5  Prefactor     2.6850        2.1694       -.34472E-07   -.31087E-04
   6  Prefactor     1.7732        2.0520        .15915E-06    .24756E-03
   7  Prefactor     13.649        10.189       -.38582E-07    .81643E-05
   8  Prefactor     24.686        20.426        .57153E-07    .39436E-04
   9  Prefactor     8.1714        13.230        .10714E-06    .24075E-04
  10  Prefactor     .10000E-03    22.891       -.26649E-06** at limit **
  11  Prefactor     .10000E-03    1.6320       -.61512E-08** at limit **
  12  norm          4.4216        3.3096        .95876E-08    .54855E-04
  13  Prefactor     32.617        39.061       -.29470E-07    .74692E-04
  14  Prefactor     .10000E-03    7.7775       -.11180E-06** at limit **
  15  Prefactor     .10000E-03    5.1823        .33630E-07** at limit **
  16  norm          8.0632        5.6907        .42072E-06    .40108E-03
  17  norm          .10000E-03    23.572        .22649E-05** at limit **
  18  norm          9.1529        4.2313        .20795E-06    .55731E-03
  19  norm          .10000E-03    3.5358       -.44437E-06** at limit **
  20  Prefactor     .54490        5.2664        .14768E-05   -.96195E-03
  21  Prefactor     19.368        17.501        .19442E-05    .39921E-03
  22  Prefactor     .10000E-03    34.527        .27174E-07** at limit **
  23  Prefactor     .10000E-03    16.329       -.18640E-06** at limit **
  24  Prefactor     .10000E-03    53.023       -.32828E-06** at limit **
  25  Normalizat    .79707        .17446        .27264E-06    .17473E-03
  26  Prefactor     1.3703        .21942       -.54617E-08    .16939E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.44617
  Prefactor  = 0.0001
  Prefactor  = 2.68504
  Prefactor  = 1.77317
  Prefactor  = 13.6489
  Prefactor  = 24.6862
  Prefactor  = 8.1714
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.4216
  Prefactor  = 32.6173
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.06325
  norm       = 0.000100001
  norm       = 9.15289
  norm       = 0.0001
  Prefactor  = 0.544898
  Prefactor  = 19.3684
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.797068
  Prefactor  = 1.37029
 **********
 **   18 **HESSE 
 **********

 FCN=   6306.076     FROM HESSE     STATUS=OK           456 CALLS     3522 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.4954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.4462        2.5470        .10063E-03   -1.5337    
   4  Prefactor     .10000E-03    18.188        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.6850        2.1827        .97332E-04   -1.5380    
   6  Prefactor     1.7732        2.0299        .11678E-03   -1.5442    
   7  Prefactor     13.649        10.172        .10842E-03   -1.4969    
   8  Prefactor     24.686        20.430        .80660E-04   -1.4714    
   9  Prefactor     8.1714        13.224        .14021E-03   -1.5136    
  10  Prefactor     .10000E-03    22.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.6341        .99059E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.4216        3.3082        .12115E-03   -1.5287    
  13  Prefactor     32.617        38.946        .70217E-04   -1.4565    
  14  Prefactor     .10000E-03    7.7868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.1861        .17648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.0632        5.8202        .14112E-03   -1.5140    
  17  norm          .10000E-03    24.230        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.1529        4.2408        .10379E-03   -1.5103    
  19  norm          .10000E-03    3.5658        .14593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .54490        9.4915        .21205E-02   -1.5560    
  21  Prefactor     19.368        19.434        .90906E-04   -1.4827    
  22  Prefactor     .10000E-03    34.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    53.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .79707        .20705        .26924E-03   -1.0018    
  26  Prefactor     1.3703        .26115        .27151E-03   -.81240    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.74385e-09
Minuit parameter uncertainties:
  1  4.18987e-05
  2  1.50709e-05
  3  2.54704
  4  0.00015386
  5  2.18277
  6  2.02996
  7  10.1735
  8  20.436
  9  13.2282
  10  0.000102608
  11  2.26904e-06
  12  3.30837
  13  38.9768
  14  2.49356e-05
  15  8.79916e-06
  16  5.82057
  17  0.000284787
  18  4.24099
  19  4.15112e-05
  20  4.54878
  21  19.4408
  22  2.31493e-05
  23  1.63093e-05
  24  0.000145627
  25  0.207253
  26  0.261405
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  8.171e+00  1.323e+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.370e+00  2.614e-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.971e-01  2.073e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/938748/likelihoodResults_450316801_450576001_4FGL_J1249.8+3707_daily_bin814.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) = 6305.85831008
delta logL = 0.21808070333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6305.85660725
delta logL = 0.2197835357

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7501       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3247       1.0000          .0000       10.000    
     3 'Normalizat'    .79179       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3709       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=   6305.857     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      302 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7489        11.915        .18787E-03   -.28047E-03
   2  Index         2.3249        1.1378        .66959E-02   -.56649E-04
   3  Normalizat    .79180        .20149        .27002E-03   -.16412E-03
   4  Prefactor     1.3710        .25916        .27137E-03   -.19227E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.74894
  Index      = 2.32488
  Normalizat = 0.791804
  Prefactor  = 1.37098
 **********
 **   18 **HESSE 
 **********

 FCN=   6305.857     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7489        8.6723        .75150E-05   -1.5321    
   2  Index         2.3249        .83318        .26783E-03   -.56454    
   3  Normalizat    .79180        .20155        .10801E-04   -1.0037    
   4  Prefactor     1.3710        .25930        .54274E-04   -.81220    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15731e-10
Minuit parameter uncertainties:
  1  8.67525
  2  0.838674
  3  0.201745
  4  0.259544
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938748': 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) = 6305.85660712
delta logL = 0.219783667726

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  3.749e+00  8.675e+00  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  2.325e+00  8.387e-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.371e+00  2.595e-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.918e-01  2.017e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.05
Ra Dec: 192.460 37.131
Photon Index (Free Index): 2.32 +/- 0.84
Photon Flux (Free Index): 1.51e-08 +/- 2.06e-08
Energy Flux (Free Index): 5.51e-06 +/- 8.04e-06

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/938748/cmap_HighResolution_450316801_450576001_4FGL_J1249.8+3707_daily_bin814.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.27e-03', comment='SUCCESS', energy_flux2='5.51e-06', dlogl='2.20e-01', photon_flux2='1.51e-08', job_status='DONE', time_completed='2021-09-06 06:56:33.345315', photon_index_error2='0.84', photon_index2='2.32', ts='0.60', fit_tolerance='1e-08', GAL='1.37', photon_index_error='0.00', photon_flux_upper_limit='4.45e-08', energy_flux_error2='8.04e-06', EG='0.80', time_epoch_completed='1630936593.35', return_code='0', job_id='938748', GAL2='1.37', EG2='0.79', return_code2='0', photon_flux_error2='2.06e-08', ts2='1.05', photon_index='1.78' WHERE bin_id='814' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:56:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 938748: <4FGL_J1249.8+3707_daily_bin814> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin814 192.46 37.1306 450316801 450576001 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 :                                   758.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            962 sec.

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

