/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 230 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 = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1249.8+3707_daily_bin244
RA = 192.46, Dec = 37.1306
tmin = 302572801, tmax = 302832001
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='935684', job_status='RUN', time_executed='2021-09-06 06:34:44.563955', time_epoch_executed='1630935284.56' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='244'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935684

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935684/ft1_4FGL_J1249.8+3707_daily_bin244.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935684/ft2_4FGL_J1249.8+3707_daily_bin244.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935684/ft1_4FGL_J1249.8+3707_daily_bin244.fits outfile=/scratch/kocevski/935684/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin244.fits ra=192.46 dec=37.1306 rad=12.0 tmin=302572801.0 tmax=302832001.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.46
user 3.26
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/935684/ft1_filtered_4FGL_J1249.8+3707_daily_bin244.fits" evtable="EVENTS" scfile=/scratch/kocevski/935684/ft2_4FGL_J1249.8+3707_daily_bin244.fits sctable="SC_DATA" outfile=/scratch/kocevski/935684/ltcube_302572801_302832001_4FGL_J1249.8+3707_daily_bin244.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/935684/ft2_4FGL_J1249.8+3707_daily_bin244.fits
.....................!
real 11.73
user 11.38
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935684/ft1_filtered_4FGL_J1249.8+3707_daily_bin244.fits evtable="EVENTS" scfile=/scratch/kocevski/935684/ft2_4FGL_J1249.8+3707_daily_bin244.fits sctable="SC_DATA" expcube=/scratch/kocevski/935684/ltcube_302572801_302832001_4FGL_J1249.8+3707_daily_bin244.fits outfile=/scratch/kocevski/935684/expmap_302572801_302832001_4FGL_J1249.8+3707_daily_bin244.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/935684/ltcube_302572801_302832001_4FGL_J1249.8+3707_daily_bin244.fits
.....................!
real 191.79
user 186.20
sys 4.91

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/935684/ft1_filtered_4FGL_J1249.8+3707_daily_bin244.fits scfile=/scratch/kocevski/935684/ft2_4FGL_J1249.8+3707_daily_bin244.fits outfile=/scratch/kocevski/935684/cmap_302572801_302832001_4FGL_J1249.8+3707_daily_bin244.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/935684/ft1_filtered_4FGL_J1249.8+3707_daily_bin244.fits scfile=/scratch/kocevski/935684/ft2_4FGL_J1249.8+3707_daily_bin244.fits outfile=/scratch/kocevski/935684/cmap_HighResolution_302572801_302832001_4FGL_J1249.8+3707_daily_bin244.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    15.831       1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.569       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4906       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.447       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.1083       1.0000         .10000E-03   10000.    
    13 'Prefactor '    88.356       1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.918       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.3275       1.0000         .10000E-03   10000.    
    16 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    42.521       1.0000         .10000E-03   10000.    
    18 'norm      '    .10117E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.3700       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.1343       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.002       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12271E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1864       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .77601       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=   6341.123     FROM MIGRAD    STATUS=CONVERGED    592 CALLS     3060 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.370        .57135E-05** at limit **
   2  Prefactor     .10000E-03    16.765       -.69536E-05** at limit **
   3  norm          15.832        4.8121        .81050E-07   -.43540E-04
   4  Prefactor     22.570        10.295        .26399E-06   -.29202E-03
   5  Prefactor     .10000E-03    1.0144        .23370E-07** at limit **
   6  Prefactor     1.4907        3.2902        .87554E-07   -.91439E-03
   7  Prefactor     11.448        10.256       -.43961E-06   -.95473E-03
   8  Prefactor     .10000E-03    8.8841       -.22580E-06** at limit **
   9  Prefactor     .10000E-03    21.553        .40407E-05** at limit **
  10  Prefactor     .10000E-03    21.642        .21347E-05** at limit **
  11  Prefactor     .10000E-03    2.7859        .41367E-07** at limit **
  12  norm          4.1083        4.6399       -.44995E-06   -.37948E-03
  13  Prefactor     88.391        58.930        .31011E-04   -.19753E-04
  14  Prefactor     19.928        26.882        .10645E-04   -.12315E-04
  15  Prefactor     6.3272        14.845       -.10225E-05   -.90182E-04
  16  norm          .10000E-03    2.6861       -.74926E-07** at limit **
  17  norm          42.528        19.796       -.16181E-05   -.14570E-04
  18  norm          .10000E-03    2.4773       -.12595E-06** at limit **
  19  norm          .10000E-03    4.2848        .34624E-07** at limit **
  20  Prefactor     1.3752        3.3214        .24729E-06   -.78790E-03
  21  Prefactor     3.1070        28.142       -.84212E-05   -.13432E-03
  22  Prefactor     .10000E-03    20.689       -.44343E-05** at limit **
  23  Prefactor     24.015        24.105        .10158E-04   -.10958E-05
  24  Prefactor     .10000E-03    56.822        .30971E-05** at limit **
  25  Normalizat    1.1862        .17843       -.37374E-05    .18760E-03
  26  Prefactor     .77627        .20672       -.32440E-06   -.17317E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.8324
  Prefactor  = 22.5702
  Prefactor  = 0.0001
  Prefactor  = 1.49069
  Prefactor  = 11.4482
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.10832
  Prefactor  = 88.3914
  Prefactor  = 19.9277
  Prefactor  = 6.32717
  norm       = 0.0001
  norm       = 42.528
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.37518
  Prefactor  = 3.10701
  Prefactor  = 0.0001
  Prefactor  = 24.0145
  Prefactor  = 0.0001
  Normalizat = 1.18621
  Prefactor  = 0.776271
 **********
 **   18 **HESSE 
 **********

 FCN=   6341.123     FROM HESSE     STATUS=OK           454 CALLS     3514 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          15.832        4.7556        .87411E-04   -1.4912    
   4  Prefactor     22.570        10.303        .42157E-03   -1.4757    
   5  Prefactor     .10000E-03    1.0205        .78128E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.4907        3.2262        .18758E-03   -1.5464    
   7  Prefactor     11.448        10.205        .59203E-03   -1.5031    
   8  Prefactor     .10000E-03    8.8950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.7970        .12964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.1083        4.6193        .16150E-03   -1.5303    
  13  Prefactor     88.391        58.538        .21372E-03   -1.3825    
  14  Prefactor     19.928        26.866        .89746E-04   -1.4815    
  15  Prefactor     6.3272        14.791        .15957E-03   -1.5205    
  16  norm          .10000E-03    2.7115        .12720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          42.528        19.796        .61477E-04   -1.4403    
  18  norm          .10000E-03    2.5129        .12210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.3442        .16087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.3752        3.1534        .18332E-03   -1.5473    
  21  Prefactor     3.1070        26.013        .22899E-03   -1.5355    
  22  Prefactor     .10000E-03    20.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     24.015        24.069        .81762E-04   -1.4727    
  24  Prefactor     .10000E-03    57.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1862        .21124        .23298E-03   -.87030    
  26  Prefactor     .77627        .24320        .33572E-03   -1.0061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52466e-09
Minuit parameter uncertainties:
  1  8.65238e-06
  2  3.31928e-05
  3  4.75572
  4  10.3037
  5  2.59139e-06
  6  3.22654
  7  10.2067
  8  9.57256e-06
  9  7.60923e-06
  10  8.295e-06
  11  1.48337e-06
  12  4.61967
  13  58.5767
  14  26.8819
  15  14.7992
  16  2.14443e-06
  17  19.7992
  18  1.72048e-05
  19  6.16891e-07
  20  3.15383
  21  17.9906
  22  3.06717e-05
  23  24.0787
  24  9.86597e-05
  25  0.211396
  26  0.24354
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  7.609e-06  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:  7.763e-01  2.435e-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.186e+00  2.114e-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: 3.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/935684/likelihoodResults_302572801_302832001_4FGL_J1249.8+3707_daily_bin244.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) = 6341.12332201
delta logL = -0.000217788843656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6341.12310413
delta logL = 9.02527972357e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10716E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9000       1.0000          .0000       10.000    
     3 'Normalizat'    1.1862       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77627       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=   6341.123     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      250 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.9839        .90712E-02** at limit **
   2  Index         1.9196        8.8166        .50000       -.56108E-05
   3  Normalizat    1.1862        .17534E-02    .52694E-01   -.85154E-03
   4  Prefactor     .77628        .20998E-02    .75845E-01   -.46916E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 1.91961
  Normalizat = 1.1862
  Prefactor  = 0.776278
 **********
 **   18 **HESSE 
 **********

 FCN=   6341.123     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    293.21        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9196        5.5289        .50000       -.66375    
   3  Normalizat    1.1862        .15064E-01    .23298E-03   -.87030    
   4  Prefactor     .77628        .18012E-01    .33571E-03   -1.0061    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.03819e-08
Minuit parameter uncertainties:
  1  0.00193695
  2  149.7
  3  0.0150641
  4  0.0180121
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935684': 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) = 6341.12310396
delta logL = 2.6733505365e-07

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.937e-03  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.920e+00  1.497e+02  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:  7.763e-01  1.801e-02  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.186e+00  1.506e-02  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/935684/cmap_HighResolution_302572801_302832001_4FGL_J1249.8+3707_daily_bin244.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.79e-03', job_status='DONE', photon_flux_upper_limit='3.80e-08', time_completed='2021-09-06 06:47:19.795030', job_id='935684', GAL2='0.78', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1630936039.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='2.67e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='244' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:47:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 935684: <4FGL_J1249.8+3707_daily_bin244> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin244> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 06:30:44 2021
Job was executed on host(s) <bullet0025>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:30:45 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:30:45 2021
Terminated at Mon Sep  6 06:47:20 2021
Results reported at Mon Sep  6 06:47:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin244 192.46 37.1306 302572801 302832001 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.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             234.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            996 sec.

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

