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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin968
RA = 192.46, Dec = 37.1306
tmin = 490233601, tmax = 490492801
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='940248', job_status='RUN', time_executed='2021-09-06 06:47:59.230371', time_epoch_executed='1630936079.23' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='968'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/940248

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/940248/ft1_4FGL_J1249.8+3707_daily_bin968.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/940248/ft2_4FGL_J1249.8+3707_daily_bin968.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/940248/ft1_4FGL_J1249.8+3707_daily_bin968.fits outfile=/scratch/kocevski/940248/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin968.fits ra=192.46 dec=37.1306 rad=12.0 tmin=490233601.0 tmax=490492801.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.67
user 3.46
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/940248/ft1_filtered_4FGL_J1249.8+3707_daily_bin968.fits evtable="EVENTS" scfile=/scratch/kocevski/940248/ft2_4FGL_J1249.8+3707_daily_bin968.fits sctable="SC_DATA" expcube=/scratch/kocevski/940248/ltcube_490233601_490492801_4FGL_J1249.8+3707_daily_bin968.fits outfile=/scratch/kocevski/940248/expmap_490233601_490492801_4FGL_J1249.8+3707_daily_bin968.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/940248/ltcube_490233601_490492801_4FGL_J1249.8+3707_daily_bin968.fits
.....................!
real 190.37
user 185.13
sys 4.52

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/940248/ft1_filtered_4FGL_J1249.8+3707_daily_bin968.fits scfile=/scratch/kocevski/940248/ft2_4FGL_J1249.8+3707_daily_bin968.fits outfile=/scratch/kocevski/940248/cmap_490233601_490492801_4FGL_J1249.8+3707_daily_bin968.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/940248/ft1_filtered_4FGL_J1249.8+3707_daily_bin968.fits scfile=/scratch/kocevski/940248/ft2_4FGL_J1249.8+3707_daily_bin968.fits outfile=/scratch/kocevski/940248/cmap_HighResolution_490233601_490492801_4FGL_J1249.8+3707_daily_bin968.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.63
user 0.36
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0578       1.0000         .10000E-03   10000.    
     2 'Prefactor '    77.266       1.0000         .10000E-03   10000.    
     3 'norm      '    9.5105       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.2657       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.979       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10811E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.3053       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16137E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10771E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.4743       1.0000         .10000E-03   10000.    
    18 'norm      '    3.4895       1.0000         .10000E-03   10000.    
    19 'norm      '    6.2418       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.3068       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    34.435       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.8547       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1421       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .93695       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=   5835.268     FROM MIGRAD    STATUS=CONVERGED    607 CALLS     3067 TOTAL
                     EDM=   .22E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0472        130.04        .17415E-05    .71316E-06
   2  Prefactor     77.266        45.944        .11938E-06   -.46885E-05
   3  norm          9.5104        3.5507        .47662E-07    .14351E-04
   4  Prefactor     .10000E-03    4.0953       -.36874E-07** at limit **
   5  Prefactor     .10000E-03    .75077       -.23289E-07** at limit **
   6  Prefactor     .10000E-03    .64247       -.32211E-07** at limit **
   7  Prefactor     .10000E-03    4.8371       -.11716E-06** at limit **
   8  Prefactor     9.2663        29.757        .18237E-06   -.16273E-04
   9  Prefactor     16.978        16.302        .55433E-07   -.61073E-05
  10  Prefactor     .10000E-03    28.326        .48820E-06** at limit **
  11  Prefactor     .10000E-03    2.4537       -.12187E-08** at limit **
  12  norm          6.3049        5.2644       -.59578E-08   -.27666E-04
  13  Prefactor     .10000E-03    405.42        .24091E-04** at limit **
  14  Prefactor     .10000E-03    53.907        .79564E-06** at limit **
  15  Prefactor     .10000E-03    12.084       -.36707E-07** at limit **
  16  norm          .10000E-03    3.0891        .76610E-07** at limit **
  17  norm          1.4775        30.918       -.43032E-06   -.26151E-04
  18  norm          3.4890        7.8243        .12402E-05   -.39090E-04
  19  norm          6.2425        12.800       -.17609E-05   -.40453E-05
  20  Prefactor     1.3064        1.9450        .12740E-06   -.14822E-04
  21  Prefactor     .10000E-03    3.6365        .70184E-07** at limit **
  22  Prefactor     34.425        36.062        .55428E-06    .66470E-07
  23  Prefactor     .10000E-03    6.5520        .41682E-07** at limit **
  24  Prefactor     2.7472        444.82        .28267E-04   -.24349E-05
  25  Normalizat    1.1422        .18451       -.84373E-06   -.90650E-04
  26  Prefactor     .93701        .21703        .42255E-06   -.12037E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.04716
  Prefactor  = 77.2659
  norm       = 9.51043
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.26626
  Prefactor  = 16.9776
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.30487
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.47746
  norm       = 3.48902
  norm       = 6.24251
  Prefactor  = 1.30644
  Prefactor  = 0.0001
  Prefactor  = 34.4246
  Prefactor  = 0.0001
  Prefactor  = 2.74721
  Normalizat = 1.14216
  Prefactor  = 0.937009
 **********
 **   18 **HESSE 
 **********

 FCN=   5835.268     FROM HESSE     STATUS=OK           456 CALLS     3523 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0472        130.29        .14124E-03   -1.5141    
   2  Prefactor     77.266        46.050        .45683E-04   -1.3948    
   3  norm          9.5104        3.5479        .85056E-04   -1.5091    
   4  Prefactor     .10000E-03    4.1116        .15095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .75415        .64579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .64537        .59783E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.8579        .16407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.2663        29.940        .13166E-03   -1.5099    
   9  Prefactor     16.978        16.302        .48600E-03   -1.4884    
  10  Prefactor     .10000E-03    28.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.4592        .11684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.3049        5.2535        .75510E-03   -1.5206    
  13  Prefactor     .10000E-03    415.49        .40825E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    54.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.1137        .13105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.4775        31.144        .35376E-03   -1.5465    
  18  norm          3.4890        7.8005        .80440E-03   -1.5334    
  19  norm          6.2425        12.770        .16068E-03   -1.5208    
  20  Prefactor     1.3064        1.9093        .12555E-03   -1.5479    
  21  Prefactor     .10000E-03    3.6397        .14226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     34.425        36.055        .68289E-04   -1.4534    
  23  Prefactor     .10000E-03    6.5655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.7472        454.71        .24062E-02   -1.5376    
  25  Normalizat    1.1422        .22399        .23353E-03   -.88409    
  26  Prefactor     .93701        .26244        .30833E-03   -.94860    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.59227e-11
Minuit parameter uncertainties:
  1  64.9275
  2  46.0712
  3  3.54795
  4  1.14624e-06
  5  1.08716e-07
  6  3.91755e-08
  7  4.2433e-07
  8  29.9888
  9  16.3059
  10  1.27203e-05
  11  8.07954e-08
  12  5.25391
  13  0.0011592
  14  1.95165e-05
  15  4.85859e-06
  16  1.04873e-06
  17  13.5744
  18  7.80282
  19  12.7758
  20  1.90938
  21  1.00553e-06
  22  36.0776
  23  7.02297e-08
  24  71.2431
  25  0.224182
  26  0.2628
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.698e+01  1.631e+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:  9.370e-01  2.628e-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.142e+00  2.242e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.62
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 1.55e-08 +/- 1.49e-08
Energy Flux (Fixed Index): 1.97e-05 +/- 1.89e-05

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

Saving results to:
/scratch/kocevski/940248/likelihoodResults_490233601_490492801_4FGL_J1249.8+3707_daily_bin968.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) = 5835.23140814
delta logL = 0.0364174261595

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5835.22965515
delta logL = 0.0381704177416

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.696       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9962       1.0000          .0000       10.000    
     3 'Normalizat'    1.1357       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93987       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=   5835.230     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      314 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.688        19.943        .10823E-03    .23928E-03
   2  Index         1.9958        .86064        .77959E-02    .49758E-04
   3  Normalizat    1.1356        .21586        .23411E-03    .21454E-03
   4  Prefactor     .94020        .25921        .30783E-03    .28511E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.6879
  Index      = 1.99582
  Normalizat = 1.13563
  Prefactor  = 0.9402
 **********
 **   18 **HESSE 
 **********

 FCN=   5835.230     FROM HESSE     STATUS=OK            25 CALLS      339 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.688        18.301        .21647E-04   -1.4968    
   2  Index         1.9958        .78987        .31184E-03   -.64455    
   3  Normalizat    1.1356        .21545        .46823E-04   -.88616    
   4  Prefactor     .94020        .25924        .12313E-04   -.94750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1912e-10
Minuit parameter uncertainties:
  1  18.3089
  2  0.795101
  3  0.215621
  4  0.259586
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/940248': 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) = 5835.2296519
delta logL = 0.0381736649142

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.369e+01  1.831e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.996e+00  7.951e-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:  9.402e-01  2.596e-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.136e+00  2.156e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.69
Ra Dec: 192.460 37.131
Photon Index (Free Index): 2.00 +/- 0.80
Photon Flux (Free Index): 2.18e-08 +/- 3.27e-08
Energy Flux (Free Index): 1.52e-05 +/- 1.85e-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/940248/cmap_HighResolution_490233601_490492801_4FGL_J1249.8+3707_daily_bin968.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.32e-03', comment='SUCCESS', photon_flux='1.55e-08', energy_flux2='1.52e-05', photon_flux_error='1.49e-08', dlogl='3.82e-02', energy_flux='1.97e-05', photon_flux2='2.18e-08', job_status='DONE', time_completed='2021-09-06 07:00:30.534890', photon_index_error2='0.80', photon_index2='2.00', ts='2.62', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='5.88e-08', energy_flux_error2='1.85e-05', EG='1.14', time_epoch_completed='1630936830.53', return_code='0', job_id='940248', GAL2='0.94', EG2='1.14', return_code2='0', energy_flux_error='1.89e-05', photon_flux_error2='3.27e-08', ts2='2.69', photon_index='1.78' WHERE bin_id='968' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:00:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 940248: <4FGL_J1249.8+3707_daily_bin968> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin968> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Mon Sep  6 06:45:23 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:45:25 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:45:25 2021
Terminated at Mon Sep  6 07:00:31 2021
Results reported at Mon Sep  6 07:00:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin968 192.46 37.1306 490233601 490492801 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 :                                   741.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             252.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            908 sec.

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

