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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin493
RA = 192.46, Dec = 37.1306
tmin = 367113601, tmax = 367372801
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='937149', job_status='RUN', time_executed='2021-09-06 06:39:32.548149', time_epoch_executed='1630935572.55' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='493'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937149

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937149/ft1_4FGL_J1249.8+3707_daily_bin493.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937149/ft2_4FGL_J1249.8+3707_daily_bin493.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937149/ft1_4FGL_J1249.8+3707_daily_bin493.fits outfile=/scratch/kocevski/937149/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin493.fits ra=192.46 dec=37.1306 rad=12.0 tmin=367113601.0 tmax=367372801.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 5.23
user 4.98
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/937149/ft1_filtered_4FGL_J1249.8+3707_daily_bin493.fits" evtable="EVENTS" scfile=/scratch/kocevski/937149/ft2_4FGL_J1249.8+3707_daily_bin493.fits sctable="SC_DATA" outfile=/scratch/kocevski/937149/ltcube_367113601_367372801_4FGL_J1249.8+3707_daily_bin493.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/937149/ft2_4FGL_J1249.8+3707_daily_bin493.fits
.....................!
real 12.15
user 11.77
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937149/ft1_filtered_4FGL_J1249.8+3707_daily_bin493.fits evtable="EVENTS" scfile=/scratch/kocevski/937149/ft2_4FGL_J1249.8+3707_daily_bin493.fits sctable="SC_DATA" expcube=/scratch/kocevski/937149/ltcube_367113601_367372801_4FGL_J1249.8+3707_daily_bin493.fits outfile=/scratch/kocevski/937149/expmap_367113601_367372801_4FGL_J1249.8+3707_daily_bin493.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/937149/ltcube_367113601_367372801_4FGL_J1249.8+3707_daily_bin493.fits
.....................!
real 189.95
user 184.72
sys 4.61

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/937149/ft1_filtered_4FGL_J1249.8+3707_daily_bin493.fits scfile=/scratch/kocevski/937149/ft2_4FGL_J1249.8+3707_daily_bin493.fits outfile=/scratch/kocevski/937149/cmap_367113601_367372801_4FGL_J1249.8+3707_daily_bin493.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/937149/ft1_filtered_4FGL_J1249.8+3707_daily_bin493.fits scfile=/scratch/kocevski/937149/ft2_4FGL_J1249.8+3707_daily_bin493.fits outfile=/scratch/kocevski/937149/cmap_HighResolution_367113601_367372801_4FGL_J1249.8+3707_daily_bin493.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.844       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.1278       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8903       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .30698E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.8008       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.798       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.7308       1.0000         .10000E-03   10000.    
    12 'norm      '    .10327E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    59.475       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.633       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .44140       1.0000         .10000E-03   10000.    
    17 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10169E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.6676       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.4578       1.0000         .10000E-03   10000.    
    24 'Prefactor '    51.126       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .86516       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2576       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=   5725.813     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     3108 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.845        62.880        .53358E-06    .39132E-05
   2  Prefactor     .10000E-03    52.246        .27815E-05** at limit **
   3  norm          8.1277        3.9926        .11529E-06    .44236E-03
   4  Prefactor     2.8906        1.0419        .18548E-06   -.58197E-03
   5  Prefactor     .10000E-03    1.6468       -.25678E-06** at limit **
   6  Prefactor     4.8019        2.8974        .31093E-08    .13722E-03
   7  Prefactor     .10000E-03    13.462       -.18759E-06** at limit **
   8  Prefactor     .10000E-03    7.1543        .15488E-07** at limit **
   9  Prefactor     11.798        15.651       -.35799E-07    .12104E-04
  10  Prefactor     .10000E-03    33.356       -.14851E-05** at limit **
  11  Prefactor     7.7309        7.1076       -.28102E-06    .66100E-04
  12  norm          .10000E-03    3.8176        .11555E-07** at limit **
  13  Prefactor     59.470        49.075       -.37514E-05   -.12343E-03
  14  Prefactor     21.637        31.762        .20501E-05    .13634E-03
  15  Prefactor     .10000E-03    25.304        .23273E-06** at limit **
  16  norm          .43966        5.2815       -.17654E-05    .39786E-03
  17  norm          .10000E-03    5.6616        .14389E-06** at limit **
  18  norm          .10000E-03    2.5456        .85273E-07** at limit **
  19  norm          .10000E-03    1.8377       -.19076E-06** at limit **
  20  Prefactor     .10000E-03    1.8163       -.11421E-06** at limit **
  21  Prefactor     5.6605        14.131       -.63735E-06    .18139E-04
  22  Prefactor     .10000E-03    120.81        .55113E-06** at limit **
  23  Prefactor     2.4583        29.617       -.24418E-06   -.43115E-05
  24  Prefactor     51.127        82.304        .66734E-06    .12109E-04
  25  Normalizat    .86501        .18501       -.13782E-06    .10078E-03
  26  Prefactor     1.2578        .22014        .16247E-06    .70367E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.8449
  Prefactor  = 0.0001
  norm       = 8.12768
  Prefactor  = 2.89064
  Prefactor  = 0.000100001
  Prefactor  = 4.80194
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.7977
  Prefactor  = 0.0001
  Prefactor  = 7.73092
  norm       = 0.0001
  Prefactor  = 59.4704
  Prefactor  = 21.6369
  Prefactor  = 0.0001
  norm       = 0.439662
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.66054
  Prefactor  = 0.0001
  Prefactor  = 2.45832
  Prefactor  = 51.1267
  Normalizat = 0.865007
  Prefactor  = 1.25783
 **********
 **   18 **HESSE 
 **********

 FCN=   5725.813     FROM HESSE     STATUS=OK           458 CALLS     3566 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.845        62.897        .87729E-04   -1.4795    
   2  Prefactor     .10000E-03    52.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.1277        3.6582        .91860E-04   -1.5138    
   4  Prefactor     2.8906        5.5785        .11952E-02   -1.5368    
   5  Prefactor     .10000E-03    8.8294        .16937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.8019        2.8895        .94435E-04   -1.5270    
   7  Prefactor     .10000E-03    13.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.1577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.798        15.645        .11663E-03   -1.5021    
  10  Prefactor     .10000E-03    33.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.7309        7.0891        .14422E-03   -1.5152    
  12  norm          .10000E-03    3.8399        .14363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     59.470        49.998        .52024E-04   -1.4164    
  14  Prefactor     21.637        31.776        .86116E-04   -1.4777    
  15  Prefactor     .10000E-03    25.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .43966        9.0830        .28608E-02   -1.5575    
  17  norm          .10000E-03    5.6749        .17589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.5762        .11741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.8409        .10021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.8320        .99257E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.6605        14.062        .16873E-03   -1.5232    
  22  Prefactor     .10000E-03    121.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.4583        29.664        .26089E-03   -1.5394    
  24  Prefactor     51.127        82.851        .56088E-04   -1.4277    
  25  Normalizat    .86501        .22097        .25967E-03   -.97701    
  26  Prefactor     1.2578        .26117        .27362E-03   -.84570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55273e-09
Minuit parameter uncertainties:
  1  63.0976
  2  0.000257805
  3  3.65828
  4  5.57948
  5  0.000193102
  6  2.88954
  7  9.69677e-06
  8  2.38112e-06
  9  15.6509
  10  0.000127799
  11  7.08988
  12  1.49565e-05
  13  50.0338
  14  31.8005
  15  0.000146324
  16  3.99696
  17  9.29572e-06
  18  2.29066e-06
  19  3.68447e-06
  20  1.81399e-06
  21  14.0698
  22  0.000194047
  23  17.0894
  24  83.0384
  25  0.221205
  26  0.261446
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.180e+01  1.565e+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.258e+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:  8.650e-01  2.212e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.14
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 1.08e-08 +/- 1.43e-08
Energy Flux (Fixed Index): 1.37e-05 +/- 1.81e-05

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

Saving results to:
/scratch/kocevski/937149/likelihoodResults_367113601_367372801_4FGL_J1249.8+3707_daily_bin493.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) = 5725.78649226
delta logL = 0.0266842325327

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5725.7812951
delta logL = 0.0318813962986

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.520       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5405       1.0000          .0000       10.000    
     3 'Normalizat'    .86800       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2569       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=   5725.781     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      257 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.522        18.482        .10893E-03    .18681E-04
   2  Index         1.5402        .92138        .14865E-01    .99371E-04
   3  Normalizat    .86803        .20603        .25926E-03   -.12804E-04
   4  Prefactor     1.2570        .25736        .27371E-03   -.29490E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.5224
  Index      = 1.54021
  Normalizat = 0.868034
  Prefactor  = 1.25696
 **********
 **   18 **HESSE 
 **********

 FCN=   5725.781     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.522        18.302        .43573E-05   -1.4972    
   2  Index         1.5402        .91293        .29729E-02   -.76420    
   3  Normalizat    .86803        .20622        .10370E-04   -.97593    
   4  Prefactor     1.2570        .25763        .10948E-04   -.84596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2046e-12
Minuit parameter uncertainties:
  1  18.3096
  2  0.922952
  3  0.206404
  4  0.257894
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937149': 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) = 5725.78129484
delta logL = 0.0318816521285

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.352e+01  1.831e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.540e+00  9.230e-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.257e+00  2.579e-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.680e-01  2.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.21
Ra Dec: 192.460 37.131
Photon Index (Free Index): 1.54 +/- 0.92
Photon Flux (Free Index): 7.20e-09 +/- 1.49e-08
Energy Flux (Free Index): 1.99e-05 +/- 3.99e-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/937149/cmap_HighResolution_367113601_367372801_4FGL_J1249.8+3707_daily_bin493.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.13e-03', comment='SUCCESS', photon_flux='1.08e-08', energy_flux2='1.99e-05', photon_flux_error='1.43e-08', dlogl='3.19e-02', energy_flux='1.37e-05', photon_flux2='7.20e-09', job_status='DONE', time_completed='2021-09-06 06:51:47.885192', photon_index_error2='0.92', photon_index2='1.54', ts='1.14', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', photon_flux_upper_limit='5.61e-08', energy_flux_error2='3.99e-05', EG='0.87', time_epoch_completed='1630936307.89', return_code='0', job_id='937149', GAL2='1.26', EG2='0.87', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='1.49e-08', ts2='1.21', photon_index='1.78' WHERE bin_id='493' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:51:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 937149: <4FGL_J1249.8+3707_daily_bin493> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin493 192.46 37.1306 367113601 367372801 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 :                                   731.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             260.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   976 sec.
    Turnaround time :                            978 sec.

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

