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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin677
RA = 192.46, Dec = 37.1306
tmin = 414806401, tmax = 415065601
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='938555', job_status='RUN', time_executed='2021-09-06 06:43:34.739617', time_epoch_executed='1630935814.74' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='677'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938555

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938555/ft1_4FGL_J1249.8+3707_daily_bin677.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938555/ft2_4FGL_J1249.8+3707_daily_bin677.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938555/ft1_4FGL_J1249.8+3707_daily_bin677.fits outfile=/scratch/kocevski/938555/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin677.fits ra=192.46 dec=37.1306 rad=12.0 tmin=414806401.0 tmax=415065601.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.90
user 5.62
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/938555/ft2_4FGL_J1249.8+3707_daily_bin677.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/938555/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin677.fits evtable="EVENTS" outfile="/scratch/kocevski/938555/ft1_filtered_4FGL_J1249.8+3707_daily_bin677.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.52
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938555/ft1_filtered_4FGL_J1249.8+3707_daily_bin677.fits evtable="EVENTS" scfile=/scratch/kocevski/938555/ft2_4FGL_J1249.8+3707_daily_bin677.fits sctable="SC_DATA" expcube=/scratch/kocevski/938555/ltcube_414806401_415065601_4FGL_J1249.8+3707_daily_bin677.fits outfile=/scratch/kocevski/938555/expmap_414806401_415065601_4FGL_J1249.8+3707_daily_bin677.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/938555/ltcube_414806401_415065601_4FGL_J1249.8+3707_daily_bin677.fits
.....................!
real 192.78
user 187.33
sys 4.98

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/938555/ft1_filtered_4FGL_J1249.8+3707_daily_bin677.fits scfile=/scratch/kocevski/938555/ft2_4FGL_J1249.8+3707_daily_bin677.fits outfile=/scratch/kocevski/938555/cmap_414806401_415065601_4FGL_J1249.8+3707_daily_bin677.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 1.44
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938555/ft1_filtered_4FGL_J1249.8+3707_daily_bin677.fits scfile=/scratch/kocevski/938555/ft2_4FGL_J1249.8+3707_daily_bin677.fits outfile=/scratch/kocevski/938555/cmap_HighResolution_414806401_415065601_4FGL_J1249.8+3707_daily_bin677.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 1.21
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.0739       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8051       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8850       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.4791       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2017       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .75690       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.035       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.3977       1.0000         .10000E-03   10000.    
    12 'norm      '    3.7514       1.0000         .10000E-03   10000.    
    13 'Prefactor '    78.724       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10807E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .69465E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10523E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.1756       1.0000         .10000E-03   10000.    
    19 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    27.836       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    122.39       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .88860       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0056       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=   3360.051     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     3037 TOTAL
                     EDM=   .94E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    47.078        .66619E-06** at limit **
   2  Prefactor     .10000E-03    10.042        .52087E-07** at limit **
   3  norm          6.0745        4.2131       -.43186E-07    .98491E-05
   4  Prefactor     4.8056        5.5258       -.10818E-08    .44526E-05
   5  Prefactor     2.8854        3.0497       -.11627E-07    .14192E-04
   6  Prefactor     5.4788        3.4784       -.49779E-07    .31789E-04
   7  Prefactor     1.2095        39.307       -.14807E-05   -.49089E-06
   8  Prefactor     .81586        180.48        .31131E-04    .23573E-05
   9  Prefactor     20.036        23.622        .79481E-06    .33954E-04
  10  Prefactor     .10000E-03    47.870       -.37464E-06** at limit **
  11  Prefactor     3.4042        7.7082       -.36433E-05    .41125E-04
  12  norm          3.7523        5.4098       -.12380E-06    .16874E-04
  13  Prefactor     78.847        88.286        .12266E-04    .25375E-04
  14  Prefactor     .10000E-03    9.0611        .28565E-06** at limit **
  15  Prefactor     .10000E-03    44.995       -.89264E-05** at limit **
  16  norm          .10000E-03    3.7678        .64977E-06** at limit **
  17  norm          .10000E-03    16.248       -.23563E-05** at limit **
  18  norm          4.1760        4.2125        .25220E-06    .10116E-03
  19  norm          .10000E-03    6.6305       -.42519E-06** at limit **
  20  Prefactor     .10000E-03    1.2582        .18411E-06** at limit **
  21  Prefactor     .10000E-03    6.5354        .61905E-06** at limit **
  22  Prefactor     27.811        50.523       -.35779E-05    .24845E-05
  23  Prefactor     .10000E-03    8.1530       -.14714E-06** at limit **
  24  Prefactor     122.29        107.33       -.89425E-05    .82572E-05
  25  Normalizat    .88865        .22546        .19916E-05    .77141E-04
  26  Prefactor     1.0056        .27742       -.21929E-05    .15533E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.07449
  Prefactor  = 4.8056
  Prefactor  = 2.88536
  Prefactor  = 5.47879
  Prefactor  = 1.20951
  Prefactor  = 0.815861
  Prefactor  = 20.0361
  Prefactor  = 0.0001
  Prefactor  = 3.40416
  norm       = 3.75229
  Prefactor  = 78.8469
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.17597
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.811
  Prefactor  = 0.0001
  Prefactor  = 122.291
  Normalizat = 0.888648
  Prefactor  = 1.00562
 **********
 **   18 **HESSE 
 **********

 FCN=   3360.051     FROM HESSE     STATUS=OK           460 CALLS     3497 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    47.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.050        .17942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.0745        4.2303        .88192E-04   -1.5215    
   4  Prefactor     4.8056        5.5248        .14214E-03   -1.5269    
   5  Prefactor     2.8854        3.0549        .92753E-04   -1.5368    
   6  Prefactor     5.4788        3.4407        .78862E-04   -1.5240    
   7  Prefactor     1.2095        39.115        .41392E-03   -1.5488    
   8  Prefactor     .81586        176.98        .56082E-02   -1.5527    
   9  Prefactor     20.036        23.620        .89483E-04   -1.4812    
  10  Prefactor     .10000E-03    47.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.4042        7.7146        .10974E-02   -1.5339    
  12  norm          3.7523        5.3928        .15412E-03   -1.5321    
  13  Prefactor     78.847        88.478        .22631E-03   -1.3930    
  14  Prefactor     .10000E-03    9.0635        .17042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    45.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    22.444        .21758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    16.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.1760        4.1814        .11305E-03   -1.5299    
  19  norm          .10000E-03    6.6537        .14500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.2620        .63484E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.5472        .14473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     27.811        50.529        .75934E-04   -1.4653    
  23  Prefactor     .10000E-03    8.1604        .16166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     122.29        107.32        .18190E-03   -1.3492    
  25  Normalizat    .88865        .26297        .23216E-03   -.96860    
  26  Prefactor     1.0056        .32453        .27701E-03   -.92543    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04e-10
Minuit parameter uncertainties:
  1  2.77264e-06
  2  1.18637e-06
  3  4.23052
  4  5.52543
  5  3.05504
  6  3.4408
  7  13.7657
  8  24.1033
  9  23.6308
  10  1.16908e-05
  11  7.71686
  12  5.39352
  13  88.626
  14  2.79078e-06
  15  0.000272786
  16  5.96242e-05
  17  0.000176762
  18  4.18171
  19  1.27089e-05
  20  4.6141e-06
  21  1.10049e-05
  22  50.6072
  23  1.76596e-06
  24  107.491
  25  0.263355
  26  0.325166
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  2.004e+01  2.363e+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.006e+00  3.252e-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.886e-01  2.634e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.66
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 1.83e-08 +/- 2.15e-08
Energy Flux (Fixed Index): 2.32e-05 +/- 2.74e-05

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

Saving results to:
/scratch/kocevski/938555/likelihoodResults_414806401_415065601_4FGL_J1249.8+3707_daily_bin677.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) = 3359.72013378
delta logL = 0.3307880886

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3359.7133738
delta logL = 0.337548067539

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4900       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4138       1.0000          .0000       10.000    
     3 'Normalizat'    .86673       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0182       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3359.713     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      311 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5032        20.954        .73188E-03   -.69202E-05
   2  Index         2.4126        1.0577        .37367E-02    .34012E-03
   3  Normalizat    .86687        .25853        .23467E-03    .94952E-05
   4  Prefactor     1.0179        .32477        .27554E-03    .10397E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.50318
  Index      = 2.41261
  Normalizat = 0.866871
  Prefactor  = 1.0179
 **********
 **   18 **HESSE 
 **********

 FCN=   3359.713     FROM HESSE     STATUS=OK            27 CALLS      338 TOTAL
                     EDM=   .37E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5032        15.698        .29275E-04   -1.5160    
   2  Index         2.4126        .79548        .74733E-03   -.54390    
   3  Normalizat    .86687        .25804        .93869E-05   -.97634    
   4  Prefactor     1.0179        .32461        .11022E-04   -.92135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7097e-13
Minuit parameter uncertainties:
  1  15.7071
  2  0.800136
  3  0.258403
  4  0.325235
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938555': 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) = 3359.71337178
delta logL = 0.337550087336

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  7.503e+00  1.571e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  2.413e+00  8.001e-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.018e+00  3.252e-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.669e-01  2.584e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.33
Ra Dec: 192.460 37.131
Photon Index (Free Index): 2.41 +/- 0.80
Photon Flux (Free Index): 3.92e-08 +/- 4.28e-08
Energy Flux (Free Index): 1.26e-05 +/- 1.37e-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/938555/cmap_HighResolution_414806401_415065601_4FGL_J1249.8+3707_daily_bin677.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.12e-03', comment='SUCCESS', photon_flux='1.83e-08', energy_flux2='1.26e-05', photon_flux_error='2.15e-08', dlogl='3.38e-01', energy_flux='2.32e-05', photon_flux2='3.92e-08', job_status='DONE', time_completed='2021-09-06 06:53:24.062198', photon_index_error2='0.80', photon_index2='2.41', ts='1.66', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='8.33e-08', energy_flux_error2='1.37e-05', EG='0.89', time_epoch_completed='1630936404.06', return_code='0', job_id='938555', GAL2='1.02', EG2='0.87', return_code2='0', energy_flux_error='2.74e-05', photon_flux_error2='4.28e-08', ts2='2.33', photon_index='1.78' WHERE bin_id='677' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:53:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 938555: <4FGL_J1249.8+3707_daily_bin677> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin677> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 06:40:20 2021
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:40:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 06:40:23 2021
Terminated at Mon Sep  6 06:53:24 2021
Results reported at Mon Sep  6 06:53:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin677 192.46 37.1306 414806401 415065601 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 :                                   579.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            784 sec.

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

