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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin570
RA = 192.46, Dec = 37.1306
tmin = 387072001, tmax = 387331201
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='937260', job_status='RUN', time_executed='2021-09-06 06:38:48.404394', time_epoch_executed='1630935528.4' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='570'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937260

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937260/ft1_4FGL_J1249.8+3707_daily_bin570.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937260/ft2_4FGL_J1249.8+3707_daily_bin570.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937260/ft1_4FGL_J1249.8+3707_daily_bin570.fits outfile=/scratch/kocevski/937260/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin570.fits ra=192.46 dec=37.1306 rad=12.0 tmin=387072001.0 tmax=387331201.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.40
user 3.15
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/937260/ft2_4FGL_J1249.8+3707_daily_bin570.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/937260/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin570.fits evtable="EVENTS" outfile="/scratch/kocevski/937260/ft1_filtered_4FGL_J1249.8+3707_daily_bin570.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.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937260/ft1_filtered_4FGL_J1249.8+3707_daily_bin570.fits evtable="EVENTS" scfile=/scratch/kocevski/937260/ft2_4FGL_J1249.8+3707_daily_bin570.fits sctable="SC_DATA" expcube=/scratch/kocevski/937260/ltcube_387072001_387331201_4FGL_J1249.8+3707_daily_bin570.fits outfile=/scratch/kocevski/937260/expmap_387072001_387331201_4FGL_J1249.8+3707_daily_bin570.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/937260/ltcube_387072001_387331201_4FGL_J1249.8+3707_daily_bin570.fits
.....................!
real 190.37
user 185.94
sys 4.10

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/937260/ft1_filtered_4FGL_J1249.8+3707_daily_bin570.fits scfile=/scratch/kocevski/937260/ft2_4FGL_J1249.8+3707_daily_bin570.fits outfile=/scratch/kocevski/937260/cmap_387072001_387331201_4FGL_J1249.8+3707_daily_bin570.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/937260/ft1_filtered_4FGL_J1249.8+3707_daily_bin570.fits scfile=/scratch/kocevski/937260/ft2_4FGL_J1249.8+3707_daily_bin570.fits outfile=/scratch/kocevski/937260/cmap_HighResolution_387072001_387331201_4FGL_J1249.8+3707_daily_bin570.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.54
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.449       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.1370       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10048E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .27968       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8413       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.9862       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.602       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2158       1.0000         .10000E-03   10000.    
    12 'norm      '    1.3148       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .51090       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.700       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.4331       1.0000         .10000E-03   10000.    
    17 'norm      '    19.745       1.0000         .10000E-03   10000.    
    18 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    48.579       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .84064       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1378       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5640.732     FROM MIGRAD    STATUS=CONVERGED    126 CALLS     2610 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.486        2.5975       -.24033E-06    .67742E-02
   2  Prefactor     .10031E-03    14.177       -.68962E-06** at limit **
   3  norm          7.1364        3.1666        .27615E-06    .27780E-03
   4  Prefactor     .10404E-03    22.480       -.64992E-06** at limit **
   5  Prefactor     .27958        1.8184       -.40806E-06   -.28133E-04
   6  Prefactor     2.8414        2.0413       -.97696E-07    .64523E-05
   7  Prefactor     .10000E-03    5.1975        .77043E-06** at limit **
   8  Prefactor     5.9720        2.2681        .43748E-06   -.31619E-02
   9  Prefactor     10.601        1.0306        .18050E-07    .30811E-03
  10  Prefactor     .10002E-03    63.566        .10519E-04** at limit **
  11  Prefactor     4.2163        4.2906        .39844E-07    .33217E-03
  12  norm          1.3167        2.4942        .20606E-06    .12520E-03
  13  Prefactor     .11350E-03    1631.3        .43715E-04** at limit **
  14  Prefactor     21.684        1.7882        .20760E-06   -.18100E-02
  15  Prefactor     .10005E-03    12.954       -.79167E-06** at limit **
  16  norm          3.4333        3.8991       -.43233E-06   -.15045E-03
  17  norm          19.759        9.9278       -.45066E-06    .10014E-01
  18  norm          .10000E-03    1.4011       -.40437E-06** at limit **
  19  norm          .10000E-03    2.3259       -.31838E-06** at limit **
  20  Prefactor     .10000E-03    .78113        .44702E-06** at limit **
  21  Prefactor     .10000E-03    3.0985        .16005E-06** at limit **
  22  Prefactor     .10000E-03    20.498        .21665E-05** at limit **
  23  Prefactor     .10000E-03    5.8105       -.39880E-06** at limit **
  24  Prefactor     48.558        1.8028        .70400E-07    .29445E-02
  25  Normalizat    .84047        .18455       -.12111E-05    .17885E-03
  26  Prefactor     1.1381        .23924        .32439E-05    .22375E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.4864
  Prefactor  = 0.000100312
  norm       = 7.13642
  Prefactor  = 0.000104037
  Prefactor  = 0.279575
  Prefactor  = 2.84143
  Prefactor  = 0.0001
  Prefactor  = 5.97197
  Prefactor  = 10.6012
  Prefactor  = 0.000100018
  Prefactor  = 4.21629
  norm       = 1.31669
  Prefactor  = 0.000113497
  Prefactor  = 21.684
  Prefactor  = 0.000100051
  norm       = 3.43326
  norm       = 19.7585
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 48.5576
  Normalizat = 0.840467
  Prefactor  = 1.13813
 **********
 **   18 **HESSE 
 **********

 FCN=   5640.732     FROM HESSE     STATUS=OK           526 CALLS     3136 TOTAL
                     EDM=   .53E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.486        37.589        .15757E-02   -1.4435    
   2  Prefactor     .10031E-03    26.093        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.1364        3.2298        .37538E-02   -1.5174    
   4  Prefactor     .10404E-03    7.6797        .67395E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .27958        1.9451        .10336E-01   -1.5602    
   6  Prefactor     2.8414        2.0514        .60307E-02   -1.5371    
   7  Prefactor     .10000E-03    5.1510        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.9720        30.478        .41029E-02   -1.5219    
   9  Prefactor     10.601        12.064        .30763E-02   -1.5057    
  10  Prefactor     .10002E-03    63.886        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.2163        4.3191        .49065E-02   -1.5297    
  12  norm          1.3167        2.6267        .96048E-02   -1.5478    
  13  Prefactor     .11350E-03    35.068        .15459       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.684        18.114        .21496E-02   -1.4776    
  15  Prefactor     .10005E-03    25.618        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.4333        3.9203        .54576E-02   -1.5337    
  17  norm          19.759        15.509        .22534E-02   -1.4819    
  18  norm          .10000E-03    1.3365        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.2955        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .77700        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.0922        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    20.564        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.8152        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     48.558        66.691        .14383E-02   -1.4313    
  25  Normalizat    .84047        .16361        .44138E-01   -.98585    
  26  Prefactor     1.1381        .20300        .59572E-01   -.88257    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.26787e-07
Minuit parameter uncertainties:
  1  37.6107
  2  0.00570659
  3  3.2299
  4  0.011138
  5  1.47467
  6  2.05149
  7  2.95804e-05
  8  27.0043
  9  12.0666
  10  0.00217179
  11  4.31941
  12  2.6269
  13  0.0435363
  14  18.1186
  15  0.00228377
  16  3.92057
  17  15.5118
  18  7.21155e-06
  19  7.18666e-06
  20  6.08478e-06
  21  4.20243e-06
  22  0.000207406
  23  1.59806e-05
  24  66.7938
  25  0.163707
  26  0.20314
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.060e+01  1.207e+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.138e+00  2.031e-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.405e-01  1.637e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.24
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 9.67e-09 +/- 1.10e-08
Energy Flux (Fixed Index): 1.23e-05 +/- 1.40e-05

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

Saving results to:
/scratch/kocevski/937260/likelihoodResults_387072001_387331201_4FGL_J1249.8+3707_daily_bin570.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) = 5640.72437524
delta logL = 0.00739026290466

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5640.71936625
delta logL = 0.012399249561

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1354       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9073       1.0000          .0000       10.000    
     3 'Normalizat'    .83881       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1388       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=   5640.719     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      252 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1320        15.272        .13260E-03    .75111E-03
   2  Index         1.9071        .86889        .84047E-02    .18071E-03
   3  Normalizat    .83876        .18462        .23475E-03   -.55293E-03
   4  Prefactor     1.1389        .23807        .26337E-03   -.57054E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.132
  Index      = 1.90714
  Normalizat = 0.838764
  Prefactor  = 1.13887
 **********
 **   18 **HESSE 
 **********

 FCN=   5640.719     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1320        14.188        .26520E-04   -1.5103    
   2  Index         1.9071        .80829        .33619E-03   -.66692    
   3  Normalizat    .83876        .18467        .46950E-04   -.98647    
   4  Prefactor     1.1389        .23824        .52673E-04   -.88234    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27329e-09
Minuit parameter uncertainties:
  1  14.1932
  2  0.814103
  3  0.184807
  4  0.238466
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937260': 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) = 5640.71936604
delta logL = 0.0123994623609

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  9.132e+00  1.419e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.907e+00  8.141e-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.139e+00  2.385e-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.388e-01  1.848e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.26
Ra Dec: 192.460 37.131
Photon Index (Free Index): 1.91 +/- 0.81
Photon Flux (Free Index): 1.15e-08 +/- 1.75e-08
Energy Flux (Free Index): 1.01e-05 +/- 1.64e-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/937260/cmap_HighResolution_387072001_387331201_4FGL_J1249.8+3707_daily_bin570.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.41e-03', comment='SUCCESS', photon_flux='9.67e-09', energy_flux2='1.01e-05', photon_flux_error='1.10e-08', dlogl='1.24e-02', energy_flux='1.23e-05', photon_flux2='1.15e-08', job_status='DONE', time_completed='2021-09-06 06:50:24.991753', photon_index_error2='0.81', photon_index2='1.91', ts='2.24', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='4.64e-08', energy_flux_error2='1.64e-05', EG='0.84', time_epoch_completed='1630936224.99', return_code='0', job_id='937260', GAL2='1.14', EG2='0.84', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='1.75e-08', ts2='2.26', photon_index='1.78' WHERE bin_id='570' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:50:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 937260: <4FGL_J1249.8+3707_daily_bin570> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin570> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 06:35:38 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:35:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 06:35:39 2021
Terminated at Mon Sep  6 06:50:25 2021
Results reported at Mon Sep  6 06:50:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin570 192.46 37.1306 387072001 387331201 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 :                                   694.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             253.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            887 sec.

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

