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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin519
RA = 192.46, Dec = 37.1306
tmin = 373852801, tmax = 374112001
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='937186', job_status='RUN', time_executed='2021-09-06 06:38:18.399043', time_epoch_executed='1630935498.4' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='519'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937186

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937186/ft1_4FGL_J1249.8+3707_daily_bin519.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937186/ft2_4FGL_J1249.8+3707_daily_bin519.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937186/ft1_4FGL_J1249.8+3707_daily_bin519.fits outfile=/scratch/kocevski/937186/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin519.fits ra=192.46 dec=37.1306 rad=12.0 tmin=373852801.0 tmax=374112001.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 4.58
user 4.31
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937186/ft1_filtered_4FGL_J1249.8+3707_daily_bin519.fits evtable="EVENTS" scfile=/scratch/kocevski/937186/ft2_4FGL_J1249.8+3707_daily_bin519.fits sctable="SC_DATA" expcube=/scratch/kocevski/937186/ltcube_373852801_374112001_4FGL_J1249.8+3707_daily_bin519.fits outfile=/scratch/kocevski/937186/expmap_373852801_374112001_4FGL_J1249.8+3707_daily_bin519.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/937186/ltcube_373852801_374112001_4FGL_J1249.8+3707_daily_bin519.fits
.....................!
real 193.08
user 187.67
sys 4.92

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/937186/ft1_filtered_4FGL_J1249.8+3707_daily_bin519.fits scfile=/scratch/kocevski/937186/ft2_4FGL_J1249.8+3707_daily_bin519.fits outfile=/scratch/kocevski/937186/cmap_373852801_374112001_4FGL_J1249.8+3707_daily_bin519.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.58
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/937186/ft1_filtered_4FGL_J1249.8+3707_daily_bin519.fits scfile=/scratch/kocevski/937186/ft2_4FGL_J1249.8+3707_daily_bin519.fits outfile=/scratch/kocevski/937186/cmap_HighResolution_373852801_374112001_4FGL_J1249.8+3707_daily_bin519.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.57
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.659       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10787E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.1255       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.8991       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7532       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.5098       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.532       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.8195       1.0000         .10000E-03   10000.    
    12 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7740       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.4677       1.0000         .10000E-03   10000.    
    16 'norm      '    .36569E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .40535       1.0000         .10000E-03   10000.    
    18 'norm      '    9.7484       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    145.62       1.0000         .10000E-03   10000.    
    24 'Prefactor '    51.926       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .98107       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .80756       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=   5420.340     FROM MIGRAD    STATUS=CONVERGED    625 CALLS     3114 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.652        36.584       -.60461E-05   -.19339E-05
   2  Prefactor     .10000E-03    64.813        .32601E-04** at limit **
   3  norm          3.1251        2.4808       -.17838E-06   -.16063E-03
   4  Prefactor     3.8926        7.4955        .93278E-07   -.35580E-03
   5  Prefactor     4.7528        2.4727       -.25373E-07   -.39846E-04
   6  Prefactor     .10000E-03    .65703       -.66996E-07** at limit **
   7  Prefactor     3.5063        7.6063       -.18579E-05   -.27923E-03
   8  Prefactor     .10000E-03    36.143       -.26920E-04** at limit **
   9  Prefactor     10.527        22.639       -.25604E-05    .31936E-04
  10  Prefactor     .10000E-03    17.523        .75202E-05** at limit **
  11  Prefactor     3.8108        8.5877       -.57148E-05   -.26019E-03
  12  norm          .10000E-03    2.2174        .71718E-07** at limit **
  13  Prefactor     .10000E-03    25.978        .22517E-04** at limit **
  14  Prefactor     4.7717        22.763       -.40935E-05   -.18537E-04
  15  Prefactor     7.5043        23.373        .26465E-05    .76775E-04
  16  norm          .20468E-01    4.0977       -.18711E-07   -.73351E-04
  17  norm          .16687        11.118       -.28788E-05    .29369E-03
  18  norm          9.7499        4.1833        .11172E-06    .10190E-03
  19  norm          .10000E-03    2.8244       -.33803E-07** at limit **
  20  Prefactor     .10000E-03    1.5990        .57421E-07** at limit **
  21  Prefactor     .10000E-03    8.5501        .24942E-06** at limit **
  22  Prefactor     .10000E-03    19.471       -.16259E-04** at limit **
  23  Prefactor     145.61        33.848       -.34943E-05    .33870E-04
  24  Prefactor     51.897        73.334       -.33072E-04    .29675E-04
  25  Normalizat    .98106        .17303        .52219E-05   -.31566E-04
  26  Prefactor     .80797        .20690       -.55448E-06    .29780E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.6517
  Prefactor  = 0.000100004
  norm       = 3.12509
  Prefactor  = 3.89261
  Prefactor  = 4.75281
  Prefactor  = 0.0001
  Prefactor  = 3.50628
  Prefactor  = 0.0001
  Prefactor  = 10.5272
  Prefactor  = 0.0001
  Prefactor  = 3.81076
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.77165
  Prefactor  = 7.50432
  norm       = 0.0204677
  norm       = 0.166867
  norm       = 9.74993
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 145.612
  Prefactor  = 51.897
  Normalizat = 0.981063
  Prefactor  = 0.807968
 **********
 **   18 **HESSE 
 **********

 FCN=   5420.340     FROM HESSE     STATUS=OK           476 CALLS     3590 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.652        36.590        .32655E-03   -1.4480    
   2  Prefactor     .10000E-03    65.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.1251        2.4869        .95405E-04   -1.5354    
   4  Prefactor     3.8926        7.4859        .20433E-03   -1.5313    
   5  Prefactor     4.7528        2.4810        .76987E-04   -1.5272    
   6  Prefactor     .10000E-03    .66335        .58224E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.5063        7.6136        .21580E-03   -1.5333    
   8  Prefactor     .10000E-03    36.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.527        22.494        .12346E-03   -1.5059    
  10  Prefactor     .10000E-03    17.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.8108        8.4395        .20652E-03   -1.5318    
  12  norm          .10000E-03    2.2608        .10678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    25.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.7717        22.508        .18414E-03   -1.5271    
  15  Prefactor     7.5043        23.049        .14676E-03   -1.5160    
  16  norm          .20468E-01    3.9447        .45482E-01   -1.5679    
  17  norm          .16687        16.085        .81120E-01   -1.5626    
  18  norm          9.7499        4.1706        .92395E-04   -1.5083    
  19  norm          .10000E-03    2.8267        .12068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.6401        .18157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.5918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    19.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     145.61        33.887        .16696E-03   -1.3289    
  24  Prefactor     51.897        73.664        .55657E-04   -1.4266    
  25  Normalizat    .98106        .20879        .21905E-03   -.93668    
  26  Prefactor     .80797        .24911        .29752E-03   -.99435    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86098e-09
Minuit parameter uncertainties:
  1  36.6118
  2  0.000983775
  3  2.48694
  4  7.48773
  5  2.48101
  6  1.4283e-06
  7  7.61569
  8  5.3514e-05
  9  22.5125
  10  7.09045e-06
  11  8.44214
  12  6.20007e-06
  13  2.0841e-05
  14  20.7392
  15  23.0761
  16  0.566937
  17  3.27653
  18  4.17076
  19  1.59476e-06
  20  4.77189e-06
  21  1.52183e-05
  22  2.19217e-05
  23  33.8917
  24  73.7941
  25  0.208963
  26  0.249459
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.053e+01  2.251e+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:  8.080e-01  2.495e-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:  9.811e-01  2.090e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/937186/likelihoodResults_373852801_374112001_4FGL_J1249.8+3707_daily_bin519.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) = 5419.78828593
delta logL = 0.552157035087

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5419.77670265
delta logL = 0.563740312462

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8391       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6460       1.0000          .0000       10.000    
     3 'Normalizat'    .94880       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82412       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=   5419.777     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      280 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8409        36.535        .13126E-03    .17216E-02
   2  Index         2.6467        2.0617        .42655E-02    .50164E-03
   3  Normalizat    .94857        .20768        .22220E-03    .11727E-02
   4  Prefactor     .82440        .25423        .29449E-03    .82491E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.84086
  Index      = 2.64673
  Normalizat = 0.948565
  Prefactor  = 0.824403
 **********
 **   18 **HESSE 
 **********

 FCN=   5419.777     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8409        9.1199        .52505E-05   -1.5316    
   2  Index         2.6467        .81966        .17062E-03   -.49003    
   3  Normalizat    .94857        .19964        .44440E-04   -.94774    
   4  Prefactor     .82440        .24576        .58899E-04   -.98835    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00502e-09
Minuit parameter uncertainties:
  1  9.12319
  2  0.824452
  3  0.199798
  4  0.246092
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937186': 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) = 5419.7766988
delta logL = 0.563744163598

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  3.841e+00  9.123e+00  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  2.647e+00  8.245e-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:  8.244e-01  2.461e-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:  9.486e-01  1.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.50
Ra Dec: 192.460 37.131
Photon Index (Free Index): 2.65 +/- 0.82
Photon Flux (Free Index): 4.09e-08 +/- 4.21e-08
Energy Flux (Free Index): 1.03e-05 +/- 1.05e-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/937186/cmap_HighResolution_373852801_374112001_4FGL_J1249.8+3707_daily_bin519.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.56e-03', comment='SUCCESS', energy_flux2='1.03e-05', dlogl='5.64e-01', photon_flux2='4.09e-08', job_status='DONE', time_completed='2021-09-06 06:50:36.447160', photon_index_error2='0.82', photon_index2='2.65', ts='0.32', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='6.20e-08', energy_flux_error2='1.05e-05', EG='0.98', time_epoch_completed='1630936236.45', return_code='0', job_id='937186', GAL2='0.82', EG2='0.95', return_code2='0', photon_flux_error2='4.21e-08', ts2='1.50', photon_index='1.78' WHERE bin_id='519' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:50:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 937186: <4FGL_J1249.8+3707_daily_bin519> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin519> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 06:35:33 2021
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:35:35 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:35 2021
Terminated at Mon Sep  6 06:50:37 2021
Results reported at Mon Sep  6 06:50:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin519 192.46 37.1306 373852801 374112001 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 :                                   735.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             283.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            904 sec.

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

